blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 201 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 7 100 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 260
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 11.4k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 80
values | src_encoding stringclasses 28
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 8 9.86M | extension stringclasses 52
values | content stringlengths 8 9.86M | authors listlengths 1 1 | author stringlengths 0 119 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c2c1c95b652a6cb23cd808a2ed459615fc42b34 | 477c8309420eb102b8073ce067d8df0afc5a79b1 | /VTK/Charts/vtkChartPie.h | 47dbc8e7bdead5d51d6b1f495acc7fbfb1f32e9a | [
"LicenseRef-scancode-paraview-1.2",
"BSD-3-Clause"
] | permissive | aashish24/paraview-climate-3.11.1 | e0058124e9492b7adfcb70fa2a8c96419297fbe6 | c8ea429f56c10059dfa4450238b8f5bac3208d3a | refs/heads/uvcdat-master | 2021-07-03T11:16:20.129505 | 2013-05-10T13:14:30 | 2013-05-10T13:14:30 | 4,238,077 | 1 | 0 | NOASSERTION | 2020-10-12T21:28:23 | 2012-05-06T02:32:44 | C++ | UTF-8 | C++ | false | false | 4,155 | h | /*=========================================================================
Program: Visualization Toolkit
Module: vtkChartPie.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkChartPie - Factory class for drawing pie charts
//
// .SECTION Description
// This class implements an pie chart.
#ifndef __vtkChartPie_h
#define __vtkChartPie_h
#include "vtkChart.h"
class vtkChartLegend;
class vtkTooltipItem;
class vtkChartPiePrivate;
class VTK_CHARTS_EXPORT vtkChartPie : public vtkChart
{
public:
vtkTypeMacro(vtkChartPie, vtkChart);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
// Creates a 2D Chart object.
static vtkChartPie *New();
// Description:
// Perform any updates to the item that may be necessary before rendering.
// The scene should take care of calling this on all items before their
// Paint function is invoked.
virtual void Update();
// Description:
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
// Description:
// Add a plot to the chart.
virtual vtkPlot * AddPlot(int type);
// Description:
// Add a plot to the chart. Return the index of the plot, -1 if it failed.
virtual vtkIdType AddPlot(vtkPlot* plot)
{ return Superclass::AddPlot(plot); }
// Description:
// Get the plot at the specified index, returns null if the index is invalid.
virtual vtkPlot* GetPlot(vtkIdType index);
// Description:
// Get the number of plots the chart contains.
virtual vtkIdType GetNumberOfPlots();
// Description:
// Set whether the chart should draw a legend.
virtual void SetShowLegend(bool visible);
// Description:
// Get the legend for the chart, if available. Can return NULL if there is no
// legend.
virtual vtkChartLegend * GetLegend();
// Description:
// Set the vtkContextScene for the item, always set for an item in a scene.
virtual void SetScene(vtkContextScene *scene);
//BTX
// Description:
// Return true if the supplied x, y coordinate is inside the item.
virtual bool Hit(const vtkContextMouseEvent &mouse);
// Description:
// Mouse enter event.
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse);
// Description:
// Mouse move event.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse);
// Description:
// Mouse leave event.
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse);
// Description:
// Mouse button down event
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse);
// Description:
// Mouse button release event.
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse);
// Description:
// Mouse wheel event, positive delta indicates forward movement of the wheel.
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta);
//ETX
//BTX
protected:
vtkChartPie();
~vtkChartPie();
// Description:
// Recalculate the necessary transforms.
void RecalculatePlotTransforms();
// Description:
// The legend for the chart.
vtkChartLegend *Legend;
// Description:
// The tooltip item for the chart - can be used to display extra information.
vtkTooltipItem *Tooltip;
// Description:
// Does the plot area transform need to be recalculated?
bool PlotTransformValid;
private:
vtkChartPie(const vtkChartPie &); // Not implemented.
void operator=(const vtkChartPie &); // Not implemented.
// Description:
// Try to locate a point within the plots to display in a tooltip
bool LocatePointInPlots(const vtkContextMouseEvent &mouse);
// Description:
// Private implementation details
vtkChartPiePrivate *Private;
//ETX
};
#endif //__vtkChartPie_h
| [
"aashish.chaudhary@kitware.com"
] | aashish.chaudhary@kitware.com |
b406fcfad47772c9bfbafa00d9fe9bdc85d5875e | 5495b49642d3cb76b682e09cc4c7febc3938fcda | /MyCpro/MyCpro/myc++/include/EptHeartBeat.hpp | c5df80733230dfffe7bb518c3d981701e9b00357 | [] | no_license | DeXianLin/MyCPro | d04dd8bbad74080aa2a4640149e3df4b84f03a35 | 0c28f009d81c5fcc3e350397d076b3cf33cca87b | refs/heads/master | 2023-05-29T04:48:27.965539 | 2021-06-16T06:11:54 | 2021-06-16T06:11:54 | 377,346,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,641 | hpp | #ifndef __EPT_HEARTBEAT_HPP__
#define __EPT_HEARTBEAT_HPP__
#include <stdlib.h>
#include "vl_types.h"
#include "vl_const.h"
#include "vl_time.hpp"
//#include <WinSock2.h>
#include <sys/socket.h>
#include <netinet/in.h>
#define __MALLOC malloc
#define __FREE free
#define __MEMCPY memcpy
extern "C" {
//void notifyMediaHeartbeatReceive(int i);
}
/**
* 心跳基类。
* 心跳时间以秒为单位,心跳协议与普通的业务协议区分开,优先判断是否为网络心跳协议。
*/
class EptHeartBeat
{
public:
virtual ~EptHeartBeat()
{
if (NULL != this->data)
{
__FREE(this->data);
}
}
EptHeartBeat(const char* ip, const vl_uint16 port, vl_uint32 interval, vl_uint32 timeout,
void* data = NULL, vl_size length = 0)
: remotePort(port), interval(interval), timeoutSec(timeout), data(NULL), length(0)
{
this->beatTimes = 0;
this->rspTimes = 0;
long tempIp = inet_addr(ip);
remoteIp = ntohl(tempIp);
if (NULL != data && length != 0) {
this->setHeartBeat(data, length);
}
}
/**
* 初始化远程ip,端口
*/
EptHeartBeat(const vl_uint32 ip, const vl_uint16 port, vl_uint32 interval,vl_uint32 timeout,
void* data = NULL, vl_size length = 0)
: remoteIp(ip), remotePort(port), interval(interval), timeoutSec(timeout), data(NULL), length(0)
{
this->beatTimes = 0;
this->rspTimes = 0;
if (NULL != data && length != 0)
{
this->setHeartBeat(data, length);
}
}
EptHeartBeat(const EptHeartBeat& rhs) : data(NULL),length(0)
{
this->beatTimes = 0;
this->rspTimes = 0;
vl_uint32 ip = rhs.getRemoteIp();
printf("EptHeartBeat copy construct, remote ip = %d.%d.%d.%d remote port = %d ", (ip >> 24) & 0xFF, (ip >> 16) & 0xFF,
(ip >> 8) & 0xFF,(ip) & 0xFF, rhs.getRemotePort());
deepCopy(rhs);
}
EptHeartBeat& operator=(const EptHeartBeat& rhs)
{
printf("EptHeartBeat copy from equal override !!!");
deepCopy(rhs);
return *this;
}
/**
* 产生心跳数据
*/
virtual vl_status getHearBeat(void ** data, vl_size * len) const
{
if (NULL != data && length != 0)
{
*data = this->data;
*len = this->length;
return VL_SUCCESS;
}
printf("EndPoint get heartbeat failed");
return VL_FAILED;
}
/**
* 设置心跳,心跳内容采用内存拷贝方式
*/
vl_status setHeartBeat(void* data, vl_size length)
{
if (NULL != this->data)
{
__FREE(this->data);
}
this->data = __MALLOC(length);
__MEMCPY(this->data, data, length);
this->length = length;
return VL_SUCCESS;
}
/**
* 是否需要心跳回复
*/
vl_bool needRsp() const
{
if(0 == timeoutSec)
{
return VL_FALSE;
} else
{
return VL_TRUE;
}
}
vl_uint32 getRemoteIp() const { return remoteIp; }
vl_uint16 getRemotePort() const { return remotePort; }
vl_uint32 getInterval() const { return interval; }
vl_uint32 getTimeoutSec() const {return timeoutSec; }
// for logs
void markHeartBeat() {
++this->beatTimes;
time_t _time;
char buffer[40];
struct tm* tm_info;
time(&_time);
tm_info = localtime(&_time);
strftime(buffer, sizeof(buffer), "%Y/%m/%d %H:%M:%S", tm_info);
printf("%s EptHeartBeat send remote %d.%d.%d.%d:%d",buffer,
(remoteIp >> 24) & 0xFF, (remoteIp >> 16) & 0xFF, (remoteIp >> 8) & 0xFF,(remoteIp) & 0xFF, remotePort);
}
void onResponse() {
++this->rspTimes;
//notifyMediaHeartbeatReceive(remoteIp);
}
vl_bool isResponse(void *packet, vl_size pktlen)
{
if(20 == pktlen && 0x1F == *((char*)packet)) {
printf("EptHeartBeat response !!!");
return VL_TRUE;
}
return VL_FALSE;
}
void resetBeatLog() {
this->rspTimes = 0;
this->beatTimes = 0;
}
void triggerLog() {
printf("EptHeartBeat remote %d.%d.%d.%d:%d sent=%d, rsp=%d",
(remoteIp >> 24) & 0xFF, (remoteIp >> 16) & 0xFF, (remoteIp >> 8) & 0xFF,(remoteIp) & 0xFF, remotePort,
beatTimes, rspTimes);
}
private:
void deepCopy(const EptHeartBeat& rhs) {
this->remoteIp = rhs.remoteIp;
this->remotePort = rhs.remotePort;
if(this->data != NULL && rhs.data != this->data) {
__FREE(this->data);
this->data = NULL;
this->length = 0;
}
if(rhs.length > 0 && rhs.data != NULL) {
this->data = __MALLOC(rhs.length);
this->length = rhs.length;
__MEMCPY(this->data, rhs.data, rhs.length);
}
this->maxRetrans = rhs.maxRetrans;
this->retransTimes = rhs.retransTimes;
this->interval = rhs.interval;
this->timeoutSec = rhs.timeoutSec;
}
/* 远程ip地址 */
vl_uint32 remoteIp;
vl_uint16 remotePort;
/* 心跳数据 */
void * data;
/* 心跳数据长度 */
vl_size length;
/* 最大重发次数 */
vl_uint32 maxRetrans;
/* 当前重发次数 */
vl_uint32 retransTimes;
/* 心跳间隔 */
vl_uint32 interval;
/* 心跳超时时间 */
vl_uint32 timeoutSec;
// for debug
vl_size beatTimes;
vl_size rspTimes;
};
#endif
| [
"285492845@qq.com"
] | 285492845@qq.com |
de60dd2df54c488c8b7069557fdd1ad8deaa265a | 728de43d34e192c677916365696e96af5e992b19 | /A-STD/src/State.h | 92cae89458a8fd67695d1fc8ca04f656912d8bc7 | [] | no_license | majineu/Parser | a8a8b497e51410f1c7739c83668a0e24c3f5f0d6 | ed7548a7bfe72a57deebbee631eb555e161ee713 | refs/heads/master | 2020-05-18T06:14:10.149277 | 2015-06-06T08:08:37 | 2015-06-06T08:08:37 | 22,898,740 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,210 | h | #ifndef __STATE_H__
#define __STATE_H__
#include "DepTree.h"
#include "SparseScorer.h"
#define MAX_STACK_LEN 256
class CState
{
public:
CState (CState *pState, CPool &rPool, bool cpEvent);
CState() {memset(this, 0, sizeof(*this));}
~CState() {memset(this, 0, sizeof(*this));}
static CState * CopyState(CState *pState, CPool &rPool, bool cpEvent) {
CState *pNew = (CState *)rPool.Allocate(sizeof(CState));
new (pNew)CState(pState, rPool, cpEvent);
return pNew;
}
static CState * MakeState(CPool &rPool) {
CState *pNew = (CState *)rPool.Allocate(sizeof(CState));
new (pNew)CState();
return pNew;
}
void DisAction(FILE *fp = stderr) const;
void PrintState(vector<wstring *> *pVLabels = NULL,
FILE *fp = stderr) const;
SEvent * GetAccEvent() {return pAccHead;}
SEvent * GetLastCorrEvent() {return pAccTail;}
SEvent ** GetAccEventPtr() {return &pAccHead;}
CDepTree * GetTopStack() const {return m_stack[m_stackSize - 1];}
CDepTree * GetStack1() const {assert(m_stackSize > 1); return m_stack[m_stackSize - 2];}
int GetQIndex() const {return m_idxQ;}
int GetStackLen() const {return m_stackSize;}
const CDepTree** GetStack() const {return (const CDepTree **)m_stack;}
double GetScore() const {return m_fScore;}
double IncreaseScore(double s) {return m_fScore += s;}
bool StackEmpty() {return m_stackSize == 0;}
bool IsPossible() {return m_bMaybeGold;}
bool operator() (const CState* l, const CState *r) {return l->m_fScore > r->m_fScore;}
void SetPossible(bool possible) {m_bMaybeGold = possible;}
void ClearStack() {m_stackSize = 0, memset(m_stack, 0, sizeof(m_stack));}
void AddAccEvent(SEvent *pEvent) {pAccTail = pAccHead = pEvent;}
bool IsGold(CState *pState, bool ignoreDLabel = false);
// Goldberg et al., 2014 (Dynamic oracle).
// Cost of each element on the stack, from top to bottum.
int StackCosts(const vector<CDepTree *> &gold_nodes,
vector<int> * costs) const;
// Update cost after an action, here labels are ignored.
void UpdateCost(const vector<CDepTree *> &gold_nodes,
const CIDMap::ACTION_TYPE action,
const vector<int> & costs,
const int old_cost_sum,
int * cost_sum,
int * top_stack_cost) const;
// Build left and right stacks.
// Note that left_stack[0] and right_stack[0] points to the same element.
void BuildStacks(const vector<CDepTree *> &nodes,
CIDMap::ACTION_TYPE action,
vector<int> *left_stack,
vector<int> *right_stack) const;
void Shift (CPool &rPool, SSentence *pSen) {
CDepTree * pTree = CDepTree::MakeTree(rPool);
pTree->SetIndex(m_idxQ);
pTree->SetSen(pSen);
pTree->SetPuncID(pSen->PuncID(m_idxQ));
pTree->SetPuncNum(pSen->SepNum(m_idxQ++));
m_stack[m_stackSize ++] = pTree;
}
bool AllowReduce() const {return m_stackSize > 1;}
bool AllowShift(int sentence_length) const {return m_idxQ < sentence_length;}
bool AllowAction(CIDMap::ACTION_TYPE action, int sentence_length) const {
if (action == CIDMap::SHIFT) return AllowShift(sentence_length);
return AllowReduce();
}
void MatchBEPunc(CDepTree * p0, CDepTree *p1, CDepTree * pOut) {
int nSep1 = p1->PuncNum();
int id1 = p1->PuncID();
int nSep0 = p0->PuncNum();
int id0 = p0->PuncID();
if ((SSenNode::IsBSep(id0) && SSenNode::IsBSep(id1)) ||
(SSenNode::IsESep(id0) && SSenNode::IsESep(id1))) {
pOut->SetPuncNum(nSep1 + nSep0);
pOut->SetPuncID(pOut == p0 ? id1 : id0);
} else {
if (nSep1 == nSep0) {
pOut->SetPuncNum(0);
pOut->SetPuncID(SSenNode::EMap(id0));
} else {
pOut->SetPuncNum(abs(nSep1 - nSep0));
pOut->SetPuncID(nSep1 > nSep0 ? id1 : id0);
}
}
}
void ReduceLeft(int depLabelId) {
if (m_stackSize < 2) {
fprintf(stderr, "Error: reduce not allowed\n");
exit(0);
}
CDepTree *p0 = m_stack[--m_stackSize];
CDepTree *p1 = m_stack[--m_stackSize];
p0->AddLeftChild(p1); //note here the new tree should be inserted at the head
p1->SetDepId(depLabelId);
m_stack[m_stackSize ++] = p0;
// Processing punctuation properties.
int nSep1 = p1->PuncNum();
int id1 = p1->PuncID(), id0 = p0->PuncID();
if (SSenNode::IsBSep(id1)) {
if (SSenNode::IsBSep(id0) || SSenNode::IsESep(id0)) {
MatchBEPunc(p0, p1, p0);
} else {
// Rewrite the original punc property in s0.
p0->SetPuncNum(nSep1);
p0->SetPuncID(id1);
}
} else if (!SSenNode::IsNonBEPunc(id0) && !SSenNode::IsESep(id0)) {
// When s1 does not take any BPunc, and s0 does not contain
// nonBEPunc nor EPunc, then just clear s0's punc property.
p0->SetPuncNum(0);
p0->SetPuncID(SSenNode::s_iPuncNul);
}
}
void ReduceRight(int depLabelId) {
if (m_stackSize < 2) {
fprintf(stderr, "Error: reduce not allowed\n");
exit(0);
}
CDepTree *p0 = m_stack[--m_stackSize];
CDepTree *p1 = m_stack[--m_stackSize];
p1->AddRightChild(p0);
p0->SetDepId(depLabelId);
m_stack[m_stackSize ++] = p1;
int nSep1 = p1->PuncNum();
int nSep0 = p0->PuncNum();
if (SSenNode::IsESep(p0->PuncID())) {
if (SSenNode::IsESep(p1->PuncID())) {
p1->SetPuncNum(nSep1 + nSep0);
// using the right most punc property.
p1->SetPuncID(p0->PuncID());
} else if (SSenNode::IsBSep(p1->PuncID())) {
if (nSep1 < nSep0) {
p1->SetPuncID(p0->PuncID());
p1->SetPuncNum(nSep0 - nSep1);
} else if (nSep1 > nSep0) {
p1->SetPuncNum(nSep1 - nSep0);
} else {
p1->SetPuncNum(0);
p1->SetPuncID(SSenNode::BMap(p1->PuncID()));
}
} else {
// When p1 contains no punc, paired-punc or nonBEPunc,
// then rewrite with epunc from s0.
p1->SetPuncID(p0->PuncID());
p1->SetPuncNum(nSep0);
}
} else if (SSenNode::IsNonBEPunc(p0->PuncID())) {
// nonBEPunc are also propagated from right to left.
if (!SSenNode::IsBSep(p1->PuncID())) {
// Only BPunc is preserved, others are overwrite.
p1->SetPuncNum(0);
p1->SetPuncID(p0->PuncID());
}
} else {
// When p0 contains BPunc or no punc at all, we only need to
// clear p1's punc properties.
// The only exception is when s1 contains a BPunc, then that
// BPunc will be reserved.
if (!SSenNode::IsBSep(p1->PuncID())) {
p1->SetPuncNum(0);
p1->SetPuncID(SSenNode::s_iPuncNul);
}
}
}
void GetTopThreeElements (CDepTree ** ppTree0) const {
memset(ppTree0, 0, sizeof(CDepTree*) * 3);
for (int i = 0; m_stackSize - i - 1 >=0 && i < 3; ++i)
ppTree0[i] = m_stack[m_stackSize - i - 1];
}
private:
CDepTree* m_stack[MAX_STACK_LEN];
int m_stackSize;
int m_idxQ;
bool m_bMaybeGold;
double m_fScore;
SEvent *pAccHead;
SEvent *pAccTail;
};
#endif /*__STATE_H__*/
| [
"majineu@outlook.com"
] | majineu@outlook.com |
c575a7ab222178d8c7a7456947fd458207527d36 | 5b2ed95730474ffa993e2655a0e5bbc2d482d871 | /software/include/coshfunc.h | cb4340de87c179ca91d30da292a00b19db1f0303 | [] | no_license | johnbower2012/ProgramHandOff | 133d4fa8b08b2e86d779f7b03c20a2879778b097 | c13dcecca42f099679ce8c2121736574794952ba | refs/heads/master | 2021-01-02T22:01:21.072429 | 2020-02-11T17:17:12 | 2020-02-11T17:17:12 | 239,816,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,454 | h | #ifndef __COSHFUNC_H__
#define __COSHFUNC_H__
#include<iostream>
#include<cmath>
#include<fstream>
#include<Eigen/Dense>
#include<random>
#include <cstdlib>
#include <cstdio>
#include <complex>
#define PI 4.0*atan(1.0)
class CDistribution{
public:
CDistribution();
virtual void GenX(int ab,double &x,double &weight);
};
class CCosh{
public:
int nmax;
Eigen::MatrixXd A;
Eigen::VectorXd I;
Eigen::VectorXd Z;
CCosh();
CCosh(int nmaxset);
void Set_NMax(int nmaxset);
double GetG(int n,double x);
double GetRandomX();
void TestOverlap();
void CalcOverlap(int n,int nprime);
void CalcOverlapNumerical(int n,int nprime);
void Integrate(double x);
int seed;
std::mt19937 rng;
std::uniform_real_distribution<double> uniform_dist;
};
class CDistCosh : public CDistribution{
public:
//Function set
CCosh coshcalc;
//widths & coeffs of invcosh functions
Eigen::VectorXd width;
Eigen::MatrixXd g;
CDistCosh();
CDistCosh(Eigen::VectorXd Width, Eigen::MatrixXd G);
void Set_WG(Eigen::VectorXd Width, Eigen::MatrixXd G);
void GenX(int ab,double &x,double &weight);
Eigen::MatrixXd GenG0(int ab, Eigen::MatrixXd G);
Eigen::MatrixXd FixG0(int ab, Eigen::MatrixXd G);
Eigen::MatrixXd Functions(int grid, double x);
Eigen::MatrixXd FunctionSet(int grid, double x, int samples, int ab, int nmax, Eigen::MatrixXd G);
double Integrate(int ab);
double IntegrateNumerical(int ab);
};
#endif
| [
"johnbower2012@gmail.com"
] | johnbower2012@gmail.com |
539f7ae2ef7b98377d03e30d81dd4b690099818c | a2a6229d0198ebd9d938e7313f58f0f9d257fc28 | /src/main.cpp | 46b555eca0e81a0b3fe9a6c4bcb6819ba3edb681 | [
"MIT"
] | permissive | pharmacurrency/pharma | 0170119b6cbd932e0163995d9b4f8076daa6ee6b | c078e884cf1cc64d7004cfe3cb9b580278b3bc4a | refs/heads/master | 2021-01-10T05:36:33.922752 | 2015-06-06T17:21:34 | 2015-06-06T17:21:34 | 36,977,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153,067 | cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include "alert.h"
#include "chainparams.h"
#include "checkpoints.h"
#include "db.h"
#include "init.h"
#include "kernel.h"
#include "net.h"
#include "txdb.h"
#include "txmempool.h"
#include "ui_interface.h"
#include "instantx.h"
#include "darksend.h"
#include "masternode.h"
#include "spork.h"
using namespace std;
using namespace boost;
//
// Global state
//
CCriticalSection cs_setpwalletRegistered;
set<CWallet*> setpwalletRegistered;
CCriticalSection cs_main;
CTxMemPool mempool;
map<uint256, CBlockIndex*> mapBlockIndex;
set<pair<COutPoint, unsigned int> > setStakeSeen;
CBigNum bnProofOfStakeLimit(~uint256(0) >> 20);
unsigned int nStakeMinAge = Params().StakeMinAge();
unsigned int nModifierInterval = Params().ModifierInterval(); // time to elapse before new modifier is computed
CBlockIndex* pindexGenesisBlock = NULL;
int nBestHeight = -1;
uint256 nBestChainTrust = 0;
uint256 nBestInvalidTrust = 0;
uint256 hashBestChain = 0;
CBlockIndex* pindexBest = NULL;
int64_t nTimeBestReceived = 0;
bool fImporting = false;
bool fReindex = false;
bool fAddrIndex = false;
bool fHaveGUI = false;
struct COrphanBlock {
uint256 hashBlock;
uint256 hashPrev;
std::pair<COutPoint, unsigned int> stake;
vector<unsigned char> vchBlock;
};
map<uint256, COrphanBlock*> mapOrphanBlocks;
multimap<uint256, COrphanBlock*> mapOrphanBlocksByPrev;
set<pair<COutPoint, unsigned int> > setStakeSeenOrphan;
map<uint256, CTransaction> mapOrphanTransactions;
map<uint256, set<uint256> > mapOrphanTransactionsByPrev;
// Constant stuff for coinbase transactions we create:
CScript COINBASE_FLAGS;
const string strMessageMagic = "Pharma Signed Message:\n";
extern enum Checkpoints::CPMode CheckpointsMode;
std::set<uint256> setValidatedTx;
//////////////////////////////////////////////////////////////////////////////
//
// dispatching functions
//
// These functions dispatch to one or all registered wallets
namespace {
struct CMainSignals {
// Notifies listeners of updated transaction data (passing hash, transaction, and optionally the block it is found in.
boost::signals2::signal<void (const CTransaction &, const CBlock *, bool)> SyncTransaction;
// Notifies listeners of an erased transaction (currently disabled, requires transaction replacement).
boost::signals2::signal<void (const uint256 &)> EraseTransaction;
// Notifies listeners of an updated transaction without new data (for now: a coinbase potentially becoming visible).
boost::signals2::signal<void (const uint256 &)> UpdatedTransaction;
// Notifies listeners of a new active block chain.
boost::signals2::signal<void (const CBlockLocator &)> SetBestChain;
// Notifies listeners about an inventory item being seen on the network.
boost::signals2::signal<void (const uint256 &)> Inventory;
// Tells listeners to broadcast their data.
boost::signals2::signal<void (bool)> Broadcast;
} g_signals;
}
void RegisterWallet(CWalletInterface* pwalletIn) {
g_signals.SyncTransaction.connect(boost::bind(&CWalletInterface::SyncTransaction, pwalletIn, _1, _2, _3));
g_signals.EraseTransaction.connect(boost::bind(&CWalletInterface::EraseFromWallet, pwalletIn, _1));
g_signals.UpdatedTransaction.connect(boost::bind(&CWalletInterface::UpdatedTransaction, pwalletIn, _1));
g_signals.SetBestChain.connect(boost::bind(&CWalletInterface::SetBestChain, pwalletIn, _1));
g_signals.Inventory.connect(boost::bind(&CWalletInterface::Inventory, pwalletIn, _1));
g_signals.Broadcast.connect(boost::bind(&CWalletInterface::ResendWalletTransactions, pwalletIn, _1));
}
void UnregisterWallet(CWalletInterface* pwalletIn) {
g_signals.Broadcast.disconnect(boost::bind(&CWalletInterface::ResendWalletTransactions, pwalletIn, _1));
g_signals.Inventory.disconnect(boost::bind(&CWalletInterface::Inventory, pwalletIn, _1));
g_signals.SetBestChain.disconnect(boost::bind(&CWalletInterface::SetBestChain, pwalletIn, _1));
g_signals.UpdatedTransaction.disconnect(boost::bind(&CWalletInterface::UpdatedTransaction, pwalletIn, _1));
g_signals.EraseTransaction.disconnect(boost::bind(&CWalletInterface::EraseFromWallet, pwalletIn, _1));
g_signals.SyncTransaction.disconnect(boost::bind(&CWalletInterface::SyncTransaction, pwalletIn, _1, _2, _3));
}
void UnregisterAllWallets() {
g_signals.Broadcast.disconnect_all_slots();
g_signals.Inventory.disconnect_all_slots();
g_signals.SetBestChain.disconnect_all_slots();
g_signals.UpdatedTransaction.disconnect_all_slots();
g_signals.EraseTransaction.disconnect_all_slots();
g_signals.SyncTransaction.disconnect_all_slots();
}
void SyncWithWallets(const CTransaction &tx, const CBlock *pblock, bool fConnect) {
g_signals.SyncTransaction(tx, pblock, fConnect);
}
void ResendWalletTransactions(bool fForce) {
g_signals.Broadcast(fForce);
}
//////////////////////////////////////////////////////////////////////////////
//
// Registration of network node signals.
//
void RegisterNodeSignals(CNodeSignals& nodeSignals)
{
nodeSignals.ProcessMessages.connect(&ProcessMessages);
nodeSignals.SendMessages.connect(&SendMessages);
}
void UnregisterNodeSignals(CNodeSignals& nodeSignals)
{
nodeSignals.ProcessMessages.disconnect(&ProcessMessages);
nodeSignals.SendMessages.disconnect(&SendMessages);
}
bool AbortNode(const std::string &strMessage, const std::string &userMessage) {
strMiscWarning = strMessage;
LogPrintf("*** %s\n", strMessage);
uiInterface.ThreadSafeMessageBox(
userMessage.empty() ? _("Error: A fatal internal error occured, see debug.log for details") : userMessage,
"", CClientUIInterface::MSG_ERROR);
StartShutdown();
return false;
}
//////////////////////////////////////////////////////////////////////////////
//
// mapOrphanTransactions
//
bool AddOrphanTx(const CTransaction& tx)
{
uint256 hash = tx.GetHash();
if (mapOrphanTransactions.count(hash))
return false;
// Ignore big transactions, to avoid a
// send-big-orphans memory exhaustion attack. If a peer has a legitimate
// large transaction with a missing parent then we assume
// it will rebroadcast it later, after the parent transaction(s)
// have been mined or received.
// 10,000 orphans, each of which is at most 5,000 bytes big is
// at most 500 megabytes of orphans:
size_t nSize = tx.GetSerializeSize(SER_NETWORK, CTransaction::CURRENT_VERSION);
if (nSize > 5000)
{
LogPrint("mempool", "ignoring large orphan tx (size: %u, hash: %s)\n", nSize, hash.ToString());
return false;
}
mapOrphanTransactions[hash] = tx;
BOOST_FOREACH(const CTxIn& txin, tx.vin)
mapOrphanTransactionsByPrev[txin.prevout.hash].insert(hash);
LogPrint("mempool", "stored orphan tx %s (mapsz %u)\n", hash.ToString(),
mapOrphanTransactions.size());
return true;
}
void static EraseOrphanTx(uint256 hash)
{
map<uint256, CTransaction>::iterator it = mapOrphanTransactions.find(hash);
if (it == mapOrphanTransactions.end())
return;
BOOST_FOREACH(const CTxIn& txin, it->second.vin)
{
map<uint256, set<uint256> >::iterator itPrev = mapOrphanTransactionsByPrev.find(txin.prevout.hash);
if (itPrev == mapOrphanTransactionsByPrev.end())
continue;
itPrev->second.erase(hash);
if (itPrev->second.empty())
mapOrphanTransactionsByPrev.erase(itPrev);
}
mapOrphanTransactions.erase(it);
}
unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans)
{
unsigned int nEvicted = 0;
while (mapOrphanTransactions.size() > nMaxOrphans)
{
// Evict a random orphan:
uint256 randomhash = GetRandHash();
map<uint256, CTransaction>::iterator it = mapOrphanTransactions.lower_bound(randomhash);
if (it == mapOrphanTransactions.end())
it = mapOrphanTransactions.begin();
EraseOrphanTx(it->first);
++nEvicted;
}
return nEvicted;
}
//////////////////////////////////////////////////////////////////////////////
//
// CTransaction and CTxIndex
//
bool CTransaction::ReadFromDisk(CTxDB& txdb, COutPoint prevout, CTxIndex& txindexRet)
{
SetNull();
if (!txdb.ReadTxIndex(prevout.hash, txindexRet))
return false;
if (!ReadFromDisk(txindexRet.pos))
return false;
if (prevout.n >= vout.size())
{
SetNull();
return false;
}
return true;
}
bool CTransaction::ReadFromDisk(CTxDB& txdb, COutPoint prevout)
{
CTxIndex txindex;
return ReadFromDisk(txdb, prevout, txindex);
}
bool CTransaction::ReadFromDisk(COutPoint prevout)
{
CTxDB txdb("r");
CTxIndex txindex;
return ReadFromDisk(txdb, prevout, txindex);
}
bool IsStandardTx(const CTransaction& tx, string& reason)
{
if (tx.nVersion > CTransaction::CURRENT_VERSION) {
reason = "version";
return false;
}
// Treat non-final transactions as non-standard to prevent a specific type
// of double-spend attack, as well as DoS attacks. (if the transaction
// can't be mined, the attacker isn't expending resources broadcasting it)
// Basically we don't want to propagate transactions that can't be included in
// the next block.
//
// However, IsFinalTx() is confusing... Without arguments, it uses
// chainActive.Height() to evaluate nLockTime; when a block is accepted, chainActive.Height()
// is set to the value of nHeight in the block. However, when IsFinalTx()
// is called within CBlock::AcceptBlock(), the height of the block *being*
// evaluated is what is used. Thus if we want to know if a transaction can
// be part of the *next* block, we need to call IsFinalTx() with one more
// than chainActive.Height().
//
// Timestamps on the other hand don't get any special treatment, because we
// can't know what timestamp the next block will have, and there aren't
// timestamp applications where it matters.
if (!IsFinalTx(tx, nBestHeight + 1)) {
reason = "non-final";
return false;
}
// nTime has different purpose from nLockTime but can be used in similar attacks
if (tx.nTime > FutureDrift(GetAdjustedTime())) {
reason = "time-too-new";
return false;
}
// Extremely large transactions with lots of inputs can cost the network
// almost as much to process as they cost the sender in fees, because
// computing signature hashes is O(ninputs*txsize). Limiting transactions
// to MAX_STANDARD_TX_SIZE mitigates CPU exhaustion attacks.
unsigned int sz = tx.GetSerializeSize(SER_NETWORK, CTransaction::CURRENT_VERSION);
if (sz >= MAX_STANDARD_TX_SIZE) {
reason = "tx-size";
return false;
}
BOOST_FOREACH(const CTxIn& txin, tx.vin)
{
// Biggest 'standard' txin is a 15-of-15 P2SH multisig with compressed
// keys. (remember the 520 byte limit on redeemScript size) That works
// out to a (15*(33+1))+3=513 byte redeemScript, 513+1+15*(73+1)+3=1627
// bytes of scriptSig, which we round off to 1650 bytes for some minor
// future-proofing. That's also enough to spend a 20-of-20
// CHECKMULTISIG scriptPubKey, though such a scriptPubKey is not
// considered standard)
if (txin.scriptSig.size() > 1650) {
reason = "scriptsig-size";
return false;
}
if (!txin.scriptSig.IsPushOnly()) {
reason = "scriptsig-not-pushonly";
return false;
}
if (!txin.scriptSig.HasCanonicalPushes()) {
reason = "scriptsig-non-canonical-push";
return false;
}
}
unsigned int nDataOut = 0;
txnouttype whichType;
BOOST_FOREACH(const CTxOut& txout, tx.vout) {
if (!::IsStandard(txout.scriptPubKey, whichType)) {
reason = "scriptpubkey";
//All scriptpubkey tx is accetable now
//return false;
}
if (whichType == TX_NULL_DATA)
nDataOut++;
if (txout.nValue == 0) {
reason = "dust";
return false;
}
if (!txout.scriptPubKey.HasCanonicalPushes()) {
reason = "scriptpubkey-non-canonical-push";
return false;
}
}
// not more than one data txout per non-data txout is permitted
// only one data txout is permitted too
if (nDataOut > 1 && nDataOut > tx.vout.size()/2) {
reason = "multi-op-return";
return false;
}
return true;
}
bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime)
{
AssertLockHeld(cs_main);
// Time based nLockTime implemented in 0.1.6
if (tx.nLockTime == 0)
return true;
if (nBlockHeight == 0)
nBlockHeight = nBestHeight;
if (nBlockTime == 0)
nBlockTime = GetAdjustedTime();
if ((int64_t)tx.nLockTime < ((int64_t)tx.nLockTime < LOCKTIME_THRESHOLD ? (int64_t)nBlockHeight : nBlockTime))
return true;
BOOST_FOREACH(const CTxIn& txin, tx.vin)
if (!txin.IsFinal())
return false;
return true;
}
//
// Check transaction inputs to mitigate two
// potential denial-of-service attacks:
//
// 1. scriptSigs with extra data stuffed into them,
// not consumed by scriptPubKey (or P2SH script)
// 2. P2SH scripts with a crazy number of expensive
// CHECKSIG/CHECKMULTISIG operations
//
bool AreInputsStandard(const CTransaction& tx, const MapPrevTx& mapInputs)
{
if (tx.IsCoinBase())
return true; // Coinbases don't use vin normally
for (unsigned int i = 0; i < tx.vin.size(); i++)
{
const CTxOut& prev = tx.GetOutputFor(tx.vin[i], mapInputs);
vector<vector<unsigned char> > vSolutions;
txnouttype whichType;
// get the scriptPubKey corresponding to this input:
const CScript& prevScript = prev.scriptPubKey;
if (!Solver(prevScript, whichType, vSolutions))
return false;
int nArgsExpected = ScriptSigArgsExpected(whichType, vSolutions);
if (nArgsExpected < 0)
return false;
// Transactions with extra stuff in their scriptSigs are
// non-standard. Note that this EvalScript() call will
// be quick, because if there are any operations
// beside "push data" in the scriptSig
// IsStandard() will have already returned false
// and this method isn't called.
vector<vector<unsigned char> > stack;
if (!EvalScript(stack, tx.vin[i].scriptSig, tx, i, SCRIPT_VERIFY_NONE, 0))
return false;
if (whichType == TX_SCRIPTHASH)
{
if (stack.empty())
return false;
CScript subscript(stack.back().begin(), stack.back().end());
vector<vector<unsigned char> > vSolutions2;
txnouttype whichType2;
if (Solver(subscript, whichType2, vSolutions2))
{
int tmpExpected = ScriptSigArgsExpected(whichType2, vSolutions2);
if (tmpExpected < 0)
return false;
nArgsExpected += tmpExpected;
}
else
{
// Any other Script with less than 15 sigops OK:
unsigned int sigops = subscript.GetSigOpCount(true);
// ... extra data left on the stack after execution is OK, too:
return (sigops <= MAX_P2SH_SIGOPS);
}
}
if (stack.size() != (unsigned int)nArgsExpected)
return false;
}
return true;
}
unsigned int GetLegacySigOpCount(const CTransaction& tx)
{
unsigned int nSigOps = 0;
BOOST_FOREACH(const CTxIn& txin, tx.vin)
{
nSigOps += txin.scriptSig.GetSigOpCount(false);
}
BOOST_FOREACH(const CTxOut& txout, tx.vout)
{
nSigOps += txout.scriptPubKey.GetSigOpCount(false);
}
return nSigOps;
}
unsigned int GetP2SHSigOpCount(const CTransaction& tx, const MapPrevTx& inputs)
{
if (tx.IsCoinBase())
return 0;
unsigned int nSigOps = 0;
for (unsigned int i = 0; i < tx.vin.size(); i++)
{
const CTxOut& prevout = tx.GetOutputFor(tx.vin[i], inputs);
if (prevout.scriptPubKey.IsPayToScriptHash())
nSigOps += prevout.scriptPubKey.GetSigOpCount(tx.vin[i].scriptSig);
}
return nSigOps;
}
int CMerkleTx::SetMerkleBranch(const CBlock* pblock)
{
AssertLockHeld(cs_main);
CBlock blockTmp;
if (pblock == NULL)
{
// Load the block this tx is in
CTxIndex txindex;
if (!CTxDB("r").ReadTxIndex(GetHash(), txindex))
return 0;
if (!blockTmp.ReadFromDisk(txindex.pos.nFile, txindex.pos.nBlockPos))
return 0;
pblock = &blockTmp;
}
// Update the tx's hashBlock
hashBlock = pblock->GetHash();
// Locate the transaction
for (nIndex = 0; nIndex < (int)pblock->vtx.size(); nIndex++)
if (pblock->vtx[nIndex] == *(CTransaction*)this)
break;
if (nIndex == (int)pblock->vtx.size())
{
vMerkleBranch.clear();
nIndex = -1;
LogPrintf("ERROR: SetMerkleBranch() : couldn't find tx in block\n");
return 0;
}
// Fill in merkle branch
vMerkleBranch = pblock->GetMerkleBranch(nIndex);
// Is the tx in a block that's in the main chain
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashBlock);
if (mi == mapBlockIndex.end())
return 0;
CBlockIndex* pindex = (*mi).second;
if (!pindex || !pindex->IsInMainChain())
return 0;
return pindexBest->nHeight - pindex->nHeight + 1;
}
bool CTransaction::CheckTransaction() const
{
// Basic checks that don't depend on any context
if (vin.empty())
return DoS(10, error("CTransaction::CheckTransaction() : vin empty"));
if (vout.empty())
return DoS(10, error("CTransaction::CheckTransaction() : vout empty"));
// Size limits
if (::GetSerializeSize(*this, SER_NETWORK, PROTOCOL_VERSION) > MAX_BLOCK_SIZE)
return DoS(100, error("CTransaction::CheckTransaction() : size limits failed"));
// Check for negative or overflow output values
int64_t nValueOut = 0;
for (unsigned int i = 0; i < vout.size(); i++)
{
const CTxOut& txout = vout[i];
if (txout.IsEmpty() && !IsCoinBase() && !IsCoinStake())
return DoS(100, error("CTransaction::CheckTransaction() : txout empty for user transaction"));
if (txout.nValue < 0)
return DoS(100, error("CTransaction::CheckTransaction() : txout.nValue negative"));
if (txout.nValue > MAX_MONEY)
return DoS(100, error("CTransaction::CheckTransaction() : txout.nValue too high"));
nValueOut += txout.nValue;
if (!MoneyRange(nValueOut))
return DoS(100, error("CTransaction::CheckTransaction() : txout total out of range"));
}
// Check for duplicate inputs
set<COutPoint> vInOutPoints;
BOOST_FOREACH(const CTxIn& txin, vin)
{
if (vInOutPoints.count(txin.prevout))
return false;
vInOutPoints.insert(txin.prevout);
}
if (IsCoinBase())
{
if (vin[0].scriptSig.size() < 2 || vin[0].scriptSig.size() > 100)
return DoS(100, error("CTransaction::CheckTransaction() : coinbase script size is invalid"));
}
else
{
BOOST_FOREACH(const CTxIn& txin, vin)
if (txin.prevout.IsNull())
return DoS(10, error("CTransaction::CheckTransaction() : prevout is null"));
}
return true;
}
int64_t GetMinFee(const CTransaction& tx, unsigned int nBlockSize, enum GetMinFee_mode mode, unsigned int nBytes)
{
// Base fee is either MIN_TX_FEE or MIN_RELAY_TX_FEE
int64_t nBaseFee = (mode == GMF_RELAY) ? MIN_RELAY_TX_FEE : MIN_TX_FEE;
unsigned int nNewBlockSize = nBlockSize + nBytes;
int64_t nMinFee = (1 + (int64_t)nBytes / 1000) * nBaseFee;
// Raise the price as the block approaches full
if (nBlockSize != 1 && nNewBlockSize >= MAX_BLOCK_SIZE_GEN/2)
{
if (nNewBlockSize >= MAX_BLOCK_SIZE_GEN)
return MAX_MONEY;
nMinFee *= MAX_BLOCK_SIZE_GEN / (MAX_BLOCK_SIZE_GEN - nNewBlockSize);
}
if (!MoneyRange(nMinFee))
nMinFee = MAX_MONEY;
return nMinFee;
}
bool AcceptToMemoryPool(CTxMemPool& pool, CTransaction &tx, bool fLimitFree,
bool* pfMissingInputs)
{
AssertLockHeld(cs_main);
if (pfMissingInputs)
*pfMissingInputs = false;
if (!tx.CheckTransaction())
return error("AcceptToMemoryPool : CheckTransaction failed");
// Coinbase is only valid in a block, not as a loose transaction
if (tx.IsCoinBase())
return tx.DoS(100, error("AcceptToMemoryPool : coinbase as individual tx"));
// ppcoin: coinstake is also only valid in a block, not as a loose transaction
if (tx.IsCoinStake())
return tx.DoS(100, error("AcceptToMemoryPool : coinstake as individual tx"));
// Rather not work on nonstandard transactions (unless -testnet)
string reason;
if (!TestNet() && !IsStandardTx(tx, reason))
return error("AcceptToMemoryPool : nonstandard transaction: %s",
reason);
// is it already in the memory pool?
uint256 hash = tx.GetHash();
if (pool.exists(hash))
return false;
// Check for conflicts with in-memory transactions
{
LOCK(pool.cs); // protect pool.mapNextTx
for (unsigned int i = 0; i < tx.vin.size(); i++)
{
COutPoint outpoint = tx.vin[i].prevout;
if (pool.mapNextTx.count(outpoint))
{
// Disable replacement feature for now
return false;
}
}
}
{
CTxDB txdb("r");
// do we already have it?
if (txdb.ContainsTx(hash))
return false;
MapPrevTx mapInputs;
map<uint256, CTxIndex> mapUnused;
bool fInvalid = false;
if (!tx.FetchInputs(txdb, mapUnused, false, false, mapInputs, fInvalid))
{
if (fInvalid)
return error("AcceptToMemoryPool : FetchInputs found invalid tx %s", hash.ToString());
if (pfMissingInputs)
*pfMissingInputs = true;
return false;
}
// Check for non-standard pay-to-script-hash in inputs
if (!TestNet() && !AreInputsStandard(tx, mapInputs))
return error("AcceptToMemoryPool : nonstandard transaction input");
// Check that the transaction doesn't have an excessive number of
// sigops, making it impossible to mine. Since the coinbase transaction
// itself can contain sigops MAX_TX_SIGOPS is less than
// MAX_BLOCK_SIGOPS; we still consider this an invalid rather than
// merely non-standard transaction.
unsigned int nSigOps = GetLegacySigOpCount(tx);
nSigOps += GetP2SHSigOpCount(tx, mapInputs);
if (nSigOps > MAX_TX_SIGOPS)
return tx.DoS(0,
error("AcceptToMemoryPool : too many sigops %s, %d > %d",
hash.ToString(), nSigOps, MAX_TX_SIGOPS));
int64_t nFees = tx.GetValueIn(mapInputs)-tx.GetValueOut();
unsigned int nSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);
// Don't accept it if it can't get into a block
int64_t txMinFee = GetMinFee(tx, 1000, GMF_RELAY, nSize);
if ((fLimitFree && nFees < txMinFee) || (!fLimitFree && nFees < MIN_TX_FEE))
return error("AcceptToMemoryPool : not enough fees %s, %d < %d",
hash.ToString(),
nFees, txMinFee);
// Continuously rate-limit free transactions
// This mitigates 'penny-flooding' -- sending thousands of free transactions just to
// be annoying or make others' transactions take longer to confirm.
if (fLimitFree && nFees < MIN_RELAY_TX_FEE)
{
static CCriticalSection csFreeLimiter;
static double dFreeCount;
static int64_t nLastTime;
int64_t nNow = GetTime();
LOCK(csFreeLimiter);
// Use an exponentially decaying ~10-minute window:
dFreeCount *= pow(1.0 - 1.0/600.0, (double)(nNow - nLastTime));
nLastTime = nNow;
// -limitfreerelay unit is thousand-bytes-per-minute
// At default rate it would take over a month to fill 1GB
if (dFreeCount > GetArg("-limitfreerelay", 15)*10*1000)
return error("AcceptToMemoryPool : free transaction rejected by rate limiter");
LogPrint("mempool", "Rate limit dFreeCount: %g => %g\n", dFreeCount, dFreeCount+nSize);
dFreeCount += nSize;
}
// Check against previous transactions
// This is done last to help prevent CPU exhaustion denial-of-service attacks.
if (!tx.ConnectInputs(txdb, mapInputs, mapUnused, CDiskTxPos(1,1,1), pindexBest, false, false, STANDARD_SCRIPT_VERIFY_FLAGS))
{
return error("AcceptToMemoryPool : ConnectInputs failed %s", hash.ToString());
}
// Check again against just the consensus-critical mandatory script
// verification flags, in case of bugs in the standard flags that cause
// transactions to pass as valid when they're actually invalid. For
// instance the STRICTENC flag was incorrectly allowing certain
// CHECKSIG NOT scripts to pass, even though they were invalid.
//
// There is a similar check in CreateNewBlock() to prevent creating
// invalid blocks, however allowing such transactions into the mempool
// can be exploited as a DoS attack.
if (!tx.ConnectInputs(txdb, mapInputs, mapUnused, CDiskTxPos(1,1,1), pindexBest, false, false, MANDATORY_SCRIPT_VERIFY_FLAGS))
{
return error("AcceptToMemoryPool: : BUG! PLEASE REPORT THIS! ConnectInputs failed against MANDATORY but not STANDARD flags %s", hash.ToString());
}
}
// Store transaction in memory
pool.addUnchecked(hash, tx);
setValidatedTx.insert(hash);
SyncWithWallets(tx, NULL);
LogPrint("mempool", "AcceptToMemoryPool : accepted %s (poolsz %u)\n",
hash.ToString(),
pool.mapTx.size());
return true;
}
bool AcceptableInputs(CTxMemPool& pool, const CTransaction &txo, bool fLimitFree,
bool* pfMissingInputs)
{
AssertLockHeld(cs_main);
if (pfMissingInputs)
*pfMissingInputs = false;
CTransaction tx(txo);
if (!tx.CheckTransaction())
return error("AcceptableInputs : CheckTransaction failed");
// Coinbase is only valid in a block, not as a loose transaction
if (tx.IsCoinBase())
return tx.DoS(100, error("AcceptableInputs : coinbase as individual tx"));
// ppcoin: coinstake is also only valid in a block, not as a loose transaction
if (tx.IsCoinStake())
return tx.DoS(100, error("AcceptableInputs : coinstake as individual tx"));
// Rather not work on nonstandard transactions (unless -testnet)
string reason;
if (!TestNet() && !IsStandardTx(tx, reason))
return error("AcceptableInputs : nonstandard transaction: %s",
reason);
// is it already in the memory pool?
uint256 hash = tx.GetHash();
if (pool.exists(hash))
return false;
// Check for conflicts with in-memory transactions
{
LOCK(pool.cs); // protect pool.mapNextTx
for (unsigned int i = 0; i < tx.vin.size(); i++)
{
COutPoint outpoint = tx.vin[i].prevout;
if (pool.mapNextTx.count(outpoint))
{
// Disable replacement feature for now
return false;
}
}
}
{
CTxDB txdb("r");
// do we already have it?
if (txdb.ContainsTx(hash))
return false;
MapPrevTx mapInputs;
map<uint256, CTxIndex> mapUnused;
bool fInvalid = false;
if (!tx.FetchInputs(txdb, mapUnused, false, false, mapInputs, fInvalid))
{
if (fInvalid)
return error("AcceptableInputs : FetchInputs found invalid tx %s", hash.ToString());
if (pfMissingInputs)
*pfMissingInputs = true;
return false;
}
// Check for non-standard pay-to-script-hash in inputs
//if (!TestNet() && !AreInputsStandard(tx, mapInputs))
// return error("AcceptToMemoryPool : nonstandard transaction input");
// Check that the transaction doesn't have an excessive number of
// sigops, making it impossible to mine. Since the coinbase transaction
// itself can contain sigops MAX_TX_SIGOPS is less than
// MAX_BLOCK_SIGOPS; we still consider this an invalid rather than
// merely non-standard transaction.
unsigned int nSigOps = GetLegacySigOpCount(tx);
nSigOps += GetP2SHSigOpCount(tx, mapInputs);
if (nSigOps > MAX_TX_SIGOPS)
return tx.DoS(0,
error("AcceptableInputs : too many sigops %s, %d > %d",
hash.ToString(), nSigOps, MAX_TX_SIGOPS));
int64_t nFees = tx.GetValueIn(mapInputs)-tx.GetValueOut();
unsigned int nSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);
// Don't accept it if it can't get into a block
int64_t txMinFee = GetMinFee(tx, 1000, GMF_RELAY, nSize);
if ((fLimitFree && nFees < txMinFee) || (!fLimitFree && nFees < MIN_TX_FEE))
return error("AcceptableInputs : not enough fees %s, %d < %d",
hash.ToString(),
nFees, txMinFee);
// Continuously rate-limit free transactions
// This mitigates 'penny-flooding' -- sending thousands of free transactions just to
// be annoying or make others' transactions take longer to confirm.
if (fLimitFree && nFees < MIN_RELAY_TX_FEE)
{
static CCriticalSection csFreeLimiter;
static double dFreeCount;
static int64_t nLastTime;
int64_t nNow = GetTime();
LOCK(csFreeLimiter);
// Use an exponentially decaying ~10-minute window:
dFreeCount *= pow(1.0 - 1.0/600.0, (double)(nNow - nLastTime));
nLastTime = nNow;
// -limitfreerelay unit is thousand-bytes-per-minute
// At default rate it would take over a month to fill 1GB
if (dFreeCount > GetArg("-limitfreerelay", 15)*10*1000)
return error("AcceptableInputs : free transaction rejected by rate limiter");
LogPrint("mempool", "Rate limit dFreeCount: %g => %g\n", dFreeCount, dFreeCount+nSize);
dFreeCount += nSize;
}
// Check against previous transactions
// This is done last to help prevent CPU exhaustion denial-of-service attacks.
if (!tx.ConnectInputs(txdb, mapInputs, mapUnused, CDiskTxPos(1,1,1), pindexBest, true, false, STANDARD_SCRIPT_VERIFY_FLAGS, false))
{
return error("AcceptableInputs : ConnectInputs failed %s", hash.ToString());
}
}
LogPrint("mempool", "AcceptableInputs : accepted %s (poolsz %u)\n",
hash.ToString(),
pool.mapTx.size());
return true;
}
int CMerkleTx::GetDepthInMainChainINTERNAL(CBlockIndex* &pindexRet) const
{
if (hashBlock == 0 || nIndex == -1)
return 0;
AssertLockHeld(cs_main);
// Find the block it claims to be in
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashBlock);
if (mi == mapBlockIndex.end())
return 0;
CBlockIndex* pindex = (*mi).second;
if (!pindex || !pindex->IsInMainChain())
return 0;
// Make sure the merkle branch connects to this block
if (!fMerkleVerified)
{
if (CBlock::CheckMerkleBranch(GetHash(), vMerkleBranch, nIndex) != pindex->hashMerkleRoot)
return 0;
fMerkleVerified = true;
}
pindexRet = pindex;
return pindexBest->nHeight - pindex->nHeight + 1;
}
int CMerkleTx::GetDepthInMainChain(CBlockIndex* &pindexRet) const
{
AssertLockHeld(cs_main);
int nResult = GetDepthInMainChainINTERNAL(pindexRet);
if (nResult == 0 && !mempool.exists(GetHash()))
return -1; // Not in chain, not in mempool
return nResult;
}
int CMerkleTx::GetBlocksToMaturity() const
{
if (!(IsCoinBase() || IsCoinStake()))
return 0;
return max(0, (Params().CoinbaseMaturity()+1) - GetDepthInMainChain());
}
bool CMerkleTx::AcceptToMemoryPool(bool fLimitFree)
{
return ::AcceptToMemoryPool(mempool, *this, fLimitFree, NULL);
}
bool CWalletTx::AcceptWalletTransaction(CTxDB& txdb)
{
{
// Add previous supporting transactions first
BOOST_FOREACH(CMerkleTx& tx, vtxPrev)
{
if (!(tx.IsCoinBase() || tx.IsCoinStake()))
{
uint256 hash = tx.GetHash();
if (!mempool.exists(hash) && !txdb.ContainsTx(hash))
tx.AcceptToMemoryPool(false);
}
}
return AcceptToMemoryPool(false);
}
return false;
}
bool CWalletTx::AcceptWalletTransaction()
{
CTxDB txdb("r");
return AcceptWalletTransaction(txdb);
}
int GetInputAge(CTxIn& vin)
{
const uint256& prevHash = vin.prevout.hash;
CTransaction tx;
uint256 hashBlock;
bool fFound = GetTransaction(prevHash, tx, hashBlock);
if(fFound)
{
if(mapBlockIndex.find(hashBlock) != mapBlockIndex.end())
{
return pindexBest->nHeight - mapBlockIndex[hashBlock]->nHeight;
}
else
return 0;
}
else
return 0;
}
int CTxIndex::GetDepthInMainChain() const
{
// Read block header
CBlock block;
if (!block.ReadFromDisk(pos.nFile, pos.nBlockPos, false))
return 0;
// Find the block in the index
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(block.GetHash());
if (mi == mapBlockIndex.end())
return 0;
CBlockIndex* pindex = (*mi).second;
if (!pindex || !pindex->IsInMainChain())
return 0;
return 1 + nBestHeight - pindex->nHeight;
}
// Return transaction in tx, and if it was found inside a block, its hash is placed in hashBlock
bool GetTransaction(const uint256 &hash, CTransaction &tx, uint256 &hashBlock)
{
{
LOCK(cs_main);
{
if (mempool.lookup(hash, tx))
{
return true;
}
}
CTxDB txdb("r");
CTxIndex txindex;
if (tx.ReadFromDisk(txdb, COutPoint(hash, 0), txindex))
{
CBlock block;
if (block.ReadFromDisk(txindex.pos.nFile, txindex.pos.nBlockPos, false))
hashBlock = block.GetHash();
return true;
}
}
return false;
}
//////////////////////////////////////////////////////////////////////////////
//
// CBlock and CBlockIndex
//
static CBlockIndex* pblockindexFBBHLast;
CBlockIndex* FindBlockByHeight(int nHeight)
{
CBlockIndex *pblockindex;
if (nHeight < nBestHeight / 2)
pblockindex = pindexGenesisBlock;
else
pblockindex = pindexBest;
if (pblockindexFBBHLast && abs(nHeight - pblockindex->nHeight) > abs(nHeight - pblockindexFBBHLast->nHeight))
pblockindex = pblockindexFBBHLast;
while (pblockindex->nHeight > nHeight)
pblockindex = pblockindex->pprev;
while (pblockindex->nHeight < nHeight)
pblockindex = pblockindex->pnext;
pblockindexFBBHLast = pblockindex;
return pblockindex;
}
bool CBlock::ReadFromDisk(const CBlockIndex* pindex, bool fReadTransactions)
{
if (!fReadTransactions)
{
*this = pindex->GetBlockHeader();
return true;
}
if (!ReadFromDisk(pindex->nFile, pindex->nBlockPos, fReadTransactions))
return false;
if (GetHash() != pindex->GetBlockHash())
return error("CBlock::ReadFromDisk() : GetHash() doesn't match index");
return true;
}
uint256 static GetOrphanRoot(const uint256& hash)
{
map<uint256, COrphanBlock*>::iterator it = mapOrphanBlocks.find(hash);
if (it == mapOrphanBlocks.end())
return hash;
// Work back to the first block in the orphan chain
do {
map<uint256, COrphanBlock*>::iterator it2 = mapOrphanBlocks.find(it->second->hashPrev);
if (it2 == mapOrphanBlocks.end())
return it->first;
it = it2;
} while(true);
}
// ppcoin: find block wanted by given orphan block
uint256 WantedByOrphan(const COrphanBlock* pblockOrphan)
{
// Work back to the first block in the orphan chain
while (mapOrphanBlocks.count(pblockOrphan->hashPrev))
pblockOrphan = mapOrphanBlocks[pblockOrphan->hashPrev];
return pblockOrphan->hashPrev;
}
// Remove a random orphan block (which does not have any dependent orphans).
void static PruneOrphanBlocks()
{
if (mapOrphanBlocksByPrev.size() <= (size_t)std::max((int64_t)0, GetArg("-maxorphanblocks", DEFAULT_MAX_ORPHAN_BLOCKS)))
return;
// Pick a random orphan block.
int pos = insecure_rand() % mapOrphanBlocksByPrev.size();
std::multimap<uint256, COrphanBlock*>::iterator it = mapOrphanBlocksByPrev.begin();
while (pos--) it++;
// As long as this block has other orphans depending on it, move to one of those successors.
do {
std::multimap<uint256, COrphanBlock*>::iterator it2 = mapOrphanBlocksByPrev.find(it->second->hashBlock);
if (it2 == mapOrphanBlocksByPrev.end())
break;
it = it2;
} while(1);
setStakeSeenOrphan.erase(it->second->stake);
uint256 hash = it->second->hashBlock;
delete it->second;
mapOrphanBlocksByPrev.erase(it);
mapOrphanBlocks.erase(hash);
}
static CBigNum GetProofOfStakeLimit(int nHeight)
{
return bnProofOfStakeLimit;
}
// miner's coin base reward
int64_t GetProofOfWorkReward(int64_t nHeight, int64_t nFees)
{
int64_t nSubsidy = Params().InstaMinePoWReward();
if ((nHeight > Params().InstaMineLastBlock()) && (nHeight <= Params().LastPOWBlock()))
nSubsidy = Params().RegularPoWReward();
LogPrint("creation", "GetProofOfWorkReward() : create=%s nSubsidy=%d\n", FormatMoney(nSubsidy), nSubsidy);
return nSubsidy + nFees;
}
// miner's coin stake reward based on coin age spent (coin-days)
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees, bool fMasternodePayment)
{
int64_t nSubsidy = nCoinAge * (1 + Params().PoSCoinReward() / 100.) * 33 / (365 * 33 + 8) + fMasternodePayment * Params().MasternodeFixReward();
LogPrint("creation", "GetProofOfStakeReward(): create=%s nCoinAge=%d\n", FormatMoney(nSubsidy), nCoinAge);
return nSubsidy + nFees;
}
//static int64_t nTargetTimespan = Params().TargetSpacing()*60;
//
// maximum nBits value could possible be required nTime after
//
unsigned int ComputeMaxBits(CBigNum bnTargetLimit, unsigned int nBase, int64_t nTime)
{
CBigNum bnResult;
bnResult.SetCompact(nBase);
bnResult *= 2;
while (nTime > 0 && bnResult < bnTargetLimit)
{
// Maximum 200% adjustment per day...
bnResult *= 2;
nTime -= 24 * 60 * 60;
}
if (bnResult > bnTargetLimit)
bnResult = bnTargetLimit;
return bnResult.GetCompact();
}
//
// minimum amount of work that could possibly be required nTime after
// minimum proof-of-work required was nBase
//
unsigned int ComputeMinWork(unsigned int nBase, int64_t nTime)
{
return ComputeMaxBits(Params().ProofOfWorkLimit(), nBase, nTime);
}
//
// minimum amount of stake that could possibly be required nTime after
// minimum proof-of-stake required was nBase
//
unsigned int ComputeMinStake(unsigned int nBase, int64_t nTime, unsigned int nBlockTime)
{
return ComputeMaxBits(bnProofOfStakeLimit, nBase, nTime);
}
// ppcoin: find last block index up to pindex
const CBlockIndex* GetLastBlockIndex(const CBlockIndex* pindex, bool fProofOfStake)
{
while (pindex && pindex->pprev && (pindex->IsProofOfStake() != fProofOfStake))
pindex = pindex->pprev;
return pindex;
}
unsigned int GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfStake)
{
int64_t nTargetTimespan = Params().TargetSpacing() * 10;
CBigNum bnTargetLimit = fProofOfStake ? GetProofOfStakeLimit(pindexLast->nHeight) : Params().ProofOfWorkLimit();
if (pindexLast == NULL)
return bnTargetLimit.GetCompact(); // genesis block
const CBlockIndex* pindexPrev = GetLastBlockIndex(pindexLast, fProofOfStake);
if (pindexPrev->pprev == NULL)
return bnTargetLimit.GetCompact(); // first block
const CBlockIndex* pindexPrevPrev = GetLastBlockIndex(pindexPrev->pprev, fProofOfStake);
if (pindexPrevPrev->pprev == NULL)
return bnTargetLimit.GetCompact(); // second block
int64_t nActualSpacing = pindexPrev->GetBlockTime() - pindexPrevPrev->GetBlockTime();
if (nActualSpacing < 0)
nActualSpacing = Params().TargetSpacing();
// ppcoin: target change every block
// ppcoin: retarget with exponential moving toward target spacing
CBigNum bnNew;
bnNew.SetCompact(pindexPrev->nBits);
int64_t nInterval = nTargetTimespan / Params().TargetSpacing();
bnNew *= ((nInterval - 1) * Params().TargetSpacing() + nActualSpacing + nActualSpacing);
bnNew /= ((nInterval + 1) * Params().TargetSpacing());
// LogPrintf("bnNew(post): %s\n", bnNew.GetHex().c_str());
if (bnNew <= 0 || bnNew > bnTargetLimit)
bnNew = bnTargetLimit;
return bnNew.GetCompact();
}
bool CheckProofOfWork(uint256 hash, unsigned int nBits)
{
CBigNum bnTarget;
bnTarget.SetCompact(nBits);
// Check range
if (bnTarget <= 0 || bnTarget > Params().ProofOfWorkLimit())
return error("CheckProofOfWork() : nBits below minimum work");
// Check proof of work matches claimed amount
if (hash > bnTarget.getuint256())
return error("CheckProofOfWork() : hash doesn't match nBits");
return true;
}
bool IsInitialBlockDownload()
{
LOCK(cs_main);
if (pindexBest == NULL || nBestHeight < Checkpoints::GetTotalBlocksEstimate())
return true;
static int64_t nLastUpdate;
static CBlockIndex* pindexLastBest;
if (pindexBest != pindexLastBest)
{
pindexLastBest = pindexBest;
nLastUpdate = GetTime();
}
return (GetTime() - nLastUpdate < 15 &&
pindexBest->GetBlockTime() < GetTime() - 8 * 60 * 60);
}
// Requires cs_main.
void Misbehaving(NodeId pnode, int howmuch)
{
if (howmuch == 0)
return;
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pn, vNodes)
{
if(pn->GetId() == pnode)
{
pn->nMisbehavior += howmuch;
int banscore = GetArg("-banscore", 100);
if (pn->nMisbehavior >= banscore && pn->nMisbehavior - howmuch < banscore)
{
LogPrintf("Misbehaving: %s (%d -> %d) BAN THRESHOLD EXCEEDED\n", pn->addrName, pn->nMisbehavior-howmuch, pn->nMisbehavior);
//pn->fShouldBan = true;
}
else
LogPrintf("Misbehaving: %s (%d -> %d)\n", pn->addrName, pn->nMisbehavior-howmuch, pn->nMisbehavior);
break;
}
}
}
void static InvalidChainFound(CBlockIndex* pindexNew)
{
if (pindexNew->nChainTrust > nBestInvalidTrust)
{
nBestInvalidTrust = pindexNew->nChainTrust;
CTxDB().WriteBestInvalidTrust(CBigNum(nBestInvalidTrust));
}
uint256 nBestInvalidBlockTrust = pindexNew->nChainTrust - pindexNew->pprev->nChainTrust;
uint256 nBestBlockTrust = pindexBest->nHeight != 0 ? (pindexBest->nChainTrust - pindexBest->pprev->nChainTrust) : pindexBest->nChainTrust;
LogPrintf("InvalidChainFound: invalid block=%s height=%d trust=%s blocktrust=%d date=%s\n",
pindexNew->GetBlockHash().ToString(), pindexNew->nHeight,
CBigNum(pindexNew->nChainTrust).ToString(), nBestInvalidBlockTrust.Get64(),
DateTimeStrFormat("%x %H:%M:%S", pindexNew->GetBlockTime()));
LogPrintf("InvalidChainFound: current best=%s height=%d trust=%s blocktrust=%d date=%s\n",
hashBestChain.ToString(), nBestHeight,
CBigNum(pindexBest->nChainTrust).ToString(),
nBestBlockTrust.Get64(),
DateTimeStrFormat("%x %H:%M:%S", pindexBest->GetBlockTime()));
}
void CBlock::UpdateTime(const CBlockIndex* pindexPrev)
{
nTime = max(GetBlockTime(), GetAdjustedTime());
}
bool CTransaction::DisconnectInputs(CTxDB& txdb)
{
// Relinquish previous transactions' spent pointers
if (!IsCoinBase())
{
BOOST_FOREACH(const CTxIn& txin, vin)
{
COutPoint prevout = txin.prevout;
// Get prev txindex from disk
CTxIndex txindex;
if (!txdb.ReadTxIndex(prevout.hash, txindex))
return error("DisconnectInputs() : ReadTxIndex failed");
if (prevout.n >= txindex.vSpent.size())
return error("DisconnectInputs() : prevout.n out of range");
// Mark outpoint as not spent
txindex.vSpent[prevout.n].SetNull();
// Write back
if (!txdb.UpdateTxIndex(prevout.hash, txindex))
return error("DisconnectInputs() : UpdateTxIndex failed");
}
}
// Remove transaction from index
// This can fail if a duplicate of this transaction was in a chain that got
// reorganized away. This is only possible if this transaction was completely
// spent, so erasing it would be a no-op anyway.
txdb.EraseTxIndex(*this);
return true;
}
bool CTransaction::FetchInputs(CTxDB& txdb, const map<uint256, CTxIndex>& mapTestPool,
bool fBlock, bool fMiner, MapPrevTx& inputsRet, bool& fInvalid)
{
// FetchInputs can return false either because we just haven't seen some inputs
// (in which case the transaction should be stored as an orphan)
// or because the transaction is malformed (in which case the transaction should
// be dropped). If tx is definitely invalid, fInvalid will be set to true.
fInvalid = false;
if (IsCoinBase())
return true; // Coinbase transactions have no inputs to fetch.
for (unsigned int i = 0; i < vin.size(); i++)
{
COutPoint prevout = vin[i].prevout;
if (inputsRet.count(prevout.hash))
continue; // Got it already
// Read txindex
CTxIndex& txindex = inputsRet[prevout.hash].first;
bool fFound = true;
if ((fBlock || fMiner) && mapTestPool.count(prevout.hash))
{
// Get txindex from current proposed changes
txindex = mapTestPool.find(prevout.hash)->second;
}
else
{
// Read txindex from txdb
fFound = txdb.ReadTxIndex(prevout.hash, txindex);
}
if (!fFound && (fBlock || fMiner))
return fMiner ? false : error("FetchInputs() : %s prev tx %s index entry not found", GetHash().ToString(), prevout.hash.ToString());
// Read txPrev
CTransaction& txPrev = inputsRet[prevout.hash].second;
if (!fFound || txindex.pos == CDiskTxPos(1,1,1))
{
// Get prev tx from single transactions in memory
if (!mempool.lookup(prevout.hash, txPrev))
return error("FetchInputs() : %s mempool Tx prev not found %s", GetHash().ToString(), prevout.hash.ToString());
if (!fFound)
txindex.vSpent.resize(txPrev.vout.size());
}
else
{
// Get prev tx from disk
if (!txPrev.ReadFromDisk(txindex.pos))
return error("FetchInputs() : %s ReadFromDisk prev tx %s failed", GetHash().ToString(), prevout.hash.ToString());
}
}
// Make sure all prevout.n indexes are valid:
for (unsigned int i = 0; i < vin.size(); i++)
{
const COutPoint prevout = vin[i].prevout;
assert(inputsRet.count(prevout.hash) != 0);
const CTxIndex& txindex = inputsRet[prevout.hash].first;
const CTransaction& txPrev = inputsRet[prevout.hash].second;
if (prevout.n >= txPrev.vout.size() || prevout.n >= txindex.vSpent.size())
{
// Revisit this if/when transaction replacement is implemented and allows
// adding inputs:
fInvalid = true;
return DoS(100, error("FetchInputs() : %s prevout.n out of range %d %u %u prev tx %s\n%s", GetHash().ToString(), prevout.n, txPrev.vout.size(), txindex.vSpent.size(), prevout.hash.ToString(), txPrev.ToString()));
}
}
return true;
}
const CTxOut& CTransaction::GetOutputFor(const CTxIn& input, const MapPrevTx& inputs) const
{
MapPrevTx::const_iterator mi = inputs.find(input.prevout.hash);
if (mi == inputs.end())
throw std::runtime_error("CTransaction::GetOutputFor() : prevout.hash not found");
const CTransaction& txPrev = (mi->second).second;
if (input.prevout.n >= txPrev.vout.size())
throw std::runtime_error("CTransaction::GetOutputFor() : prevout.n out of range");
return txPrev.vout[input.prevout.n];
}
int64_t CTransaction::GetValueIn(const MapPrevTx& inputs) const
{
if (IsCoinBase())
return 0;
int64_t nResult = 0;
for (unsigned int i = 0; i < vin.size(); i++)
{
nResult += GetOutputFor(vin[i], inputs).nValue;
}
return nResult;
}
bool CTransaction::ConnectInputs(CTxDB& txdb, MapPrevTx inputs, map<uint256, CTxIndex>& mapTestPool, const CDiskTxPos& posThisTx,
const CBlockIndex* pindexBlock, bool fBlock, bool fMiner, unsigned int flags, bool fValidateSig)
{
// Take over previous transactions' spent pointers
// fBlock is true when this is called from AcceptBlock when a new best-block is added to the blockchain
// fMiner is true when called from the internal bitcoin miner
// ... both are false when called from CTransaction::AcceptToMemoryPool
if (!IsCoinBase())
{
int64_t nValueIn = 0;
int64_t nFees = 0;
for (unsigned int i = 0; i < vin.size(); i++)
{
COutPoint prevout = vin[i].prevout;
assert(inputs.count(prevout.hash) > 0);
CTxIndex& txindex = inputs[prevout.hash].first;
CTransaction& txPrev = inputs[prevout.hash].second;
if (prevout.n >= txPrev.vout.size() || prevout.n >= txindex.vSpent.size())
return DoS(100, error("ConnectInputs() : %s prevout.n out of range %d %u %u prev tx %s\n%s", GetHash().ToString(), prevout.n, txPrev.vout.size(), txindex.vSpent.size(), prevout.hash.ToString(), txPrev.ToString()));
// If prev is coinbase or coinstake, check that it's matured
if (txPrev.IsCoinBase() || txPrev.IsCoinStake())
for (const CBlockIndex* pindex = pindexBlock; pindex && pindexBlock->nHeight - pindex->nHeight < Params().CoinbaseMaturity(); pindex = pindex->pprev)
if (pindex->nBlockPos == txindex.pos.nBlockPos && pindex->nFile == txindex.pos.nFile)
return error("ConnectInputs() : tried to spend %s at depth %d", txPrev.IsCoinBase() ? "coinbase" : "coinstake", pindexBlock->nHeight - pindex->nHeight);
// ppcoin: check transaction timestamp
if (txPrev.nTime > nTime)
return DoS(100, error("ConnectInputs() : transaction timestamp earlier than input transaction"));
// Check for negative or overflow input values
nValueIn += txPrev.vout[prevout.n].nValue;
if (!MoneyRange(txPrev.vout[prevout.n].nValue) || !MoneyRange(nValueIn))
return DoS(100, error("ConnectInputs() : txin values out of range"));
}
// The first loop above does all the inexpensive checks.
// Only if ALL inputs pass do we perform expensive ECDSA signature checks.
// Helps prevent CPU exhaustion attacks.
for (unsigned int i = 0; i < vin.size(); i++)
{
COutPoint prevout = vin[i].prevout;
assert(inputs.count(prevout.hash) > 0);
CTxIndex& txindex = inputs[prevout.hash].first;
CTransaction& txPrev = inputs[prevout.hash].second;
// Check for conflicts (double-spend)
// This doesn't trigger the DoS code on purpose; if it did, it would make it easier
// for an attacker to attempt to split the network.
if (!txindex.vSpent[prevout.n].IsNull())
return fMiner ? false : error("ConnectInputs() : %s prev tx already used at %s", GetHash().ToString(), txindex.vSpent[prevout.n].ToString());
if(fValidateSig)
{
// Skip ECDSA signature verification when connecting blocks (fBlock=true)
// before the last blockchain checkpoint. This is safe because block merkle hashes are
// still computed and checked, and any change will be caught at the next checkpoint.
if (!(fBlock && (nBestHeight < Checkpoints::GetTotalBlocksEstimate())))
{
// Verify signature
if (!VerifySignature(txPrev, *this, i, flags, 0))
{
if (flags & STANDARD_NOT_MANDATORY_VERIFY_FLAGS) {
// Check whether the failure was caused by a
// non-mandatory script verification check, such as
// non-null dummy arguments;
// if so, don't trigger DoS protection to
// avoid splitting the network between upgraded and
// non-upgraded nodes.
if (VerifySignature(txPrev, *this, i, flags & ~STANDARD_NOT_MANDATORY_VERIFY_FLAGS, 0))
return error("ConnectInputs() : %s non-mandatory VerifySignature failed", GetHash().ToString());
}
// Failures of other flags indicate a transaction that is
// invalid in new blocks, e.g. a invalid P2SH. We DoS ban
// such nodes as they are not following the protocol. That
// said during an upgrade careful thought should be taken
// as to the correct behavior - we may want to continue
// peering with non-upgraded nodes even after a soft-fork
// super-majority vote has passed.
return DoS(100,error("ConnectInputs() : %s VerifySignature failed", GetHash().ToString()));
}
}
}
// Mark outpoints as spent
txindex.vSpent[prevout.n] = posThisTx;
// Write back
if (fBlock || fMiner)
{
mapTestPool[prevout.hash] = txindex;
}
}
if (!IsCoinStake())
{
if (nValueIn < GetValueOut())
return DoS(100, error("ConnectInputs() : %s value in < value out", GetHash().ToString()));
// Tally transaction fees
int64_t nTxFee = nValueIn - GetValueOut();
if (nTxFee < 0)
return DoS(100, error("ConnectInputs() : %s nTxFee < 0", GetHash().ToString()));
// enforce transaction fees for every block
int64_t nRequiredFee = GetMinFee(*this);
if (nTxFee < nRequiredFee)
return fBlock? DoS(100, error("ConnectInputs() : %s not paying required fee=%s, paid=%s", GetHash().ToString(), FormatMoney(nRequiredFee), FormatMoney(nTxFee))) : false;
nFees += nTxFee;
if (!MoneyRange(nFees))
return DoS(100, error("ConnectInputs() : nFees out of range"));
}
}
return true;
}
bool CBlock::DisconnectBlock(CTxDB& txdb, CBlockIndex* pindex)
{
// Disconnect in reverse order
for (int i = vtx.size()-1; i >= 0; i--)
if (!vtx[i].DisconnectInputs(txdb))
return false;
// Update block index on disk without changing it in memory.
// The memory index structure will be changed after the db commits.
if (pindex->pprev)
{
CDiskBlockIndex blockindexPrev(pindex->pprev);
blockindexPrev.hashNext = 0;
if (!txdb.WriteBlockIndex(blockindexPrev))
return error("DisconnectBlock() : WriteBlockIndex failed");
}
// ppcoin: clean up wallet after disconnecting coinstake
BOOST_FOREACH(CTransaction& tx, vtx)
SyncWithWallets(tx, this, false);
return true;
}
bool static BuildAddrIndex(const CScript &script, std::vector<uint160>& addrIds)
{
CScript::const_iterator pc = script.begin();
CScript::const_iterator pend = script.end();
std::vector<unsigned char> data;
opcodetype opcode;
bool fHaveData = false;
while (pc < pend) {
script.GetOp(pc, opcode, data);
if (0 <= opcode && opcode <= OP_PUSHDATA4 && data.size() >= 8) { // data element
uint160 addrid = 0;
if (data.size() <= 20) {
memcpy(&addrid, &data[0], data.size());
} else {
addrid = Hash160(data);
}
addrIds.push_back(addrid);
fHaveData = true;
}
}
if (!fHaveData) {
uint160 addrid = Hash160(script);
addrIds.push_back(addrid);
return true;
}
else
{
if(addrIds.size() > 0)
return true;
else
return false;
}
}
bool FindTransactionsByDestination(const CTxDestination &dest, std::vector<uint256> &vtxhash) {
uint160 addrid = 0;
const CKeyID *pkeyid = boost::get<CKeyID>(&dest);
if (pkeyid)
addrid = static_cast<uint160>(*pkeyid);
if (!addrid) {
const CScriptID *pscriptid = boost::get<CScriptID>(&dest);
if (pscriptid)
addrid = static_cast<uint160>(*pscriptid);
}
if (!addrid)
{
LogPrintf("FindTransactionsByDestination(): Couldn't parse dest into addrid\n");
return false;
}
LOCK(cs_main);
CTxDB txdb("r");
if(!txdb.ReadAddrIndex(addrid, vtxhash))
{
LogPrintf("FindTransactionsByDestination(): txdb.ReadAddrIndex failed\n");
return false;
}
return true;
}
void CBlock::RebuildAddressIndex(CTxDB& txdb)
{
BOOST_FOREACH(CTransaction& tx, vtx)
{
uint256 hashTx = tx.GetHash();
// inputs
if(!tx.IsCoinBase())
{
MapPrevTx mapInputs;
map<uint256, CTxIndex> mapQueuedChangesT;
bool fInvalid;
if (!tx.FetchInputs(txdb, mapQueuedChangesT, true, false, mapInputs, fInvalid))
return;
MapPrevTx::const_iterator mi;
for(MapPrevTx::const_iterator mi = mapInputs.begin(); mi != mapInputs.end(); ++mi)
{
BOOST_FOREACH(const CTxOut &atxout, (*mi).second.second.vout)
{
std::vector<uint160> addrIds;
if(BuildAddrIndex(atxout.scriptPubKey, addrIds))
{
BOOST_FOREACH(uint160 addrId, addrIds)
{
if(!txdb.WriteAddrIndex(addrId, hashTx))
LogPrintf("RebuildAddressIndex(): txins WriteAddrIndex failed addrId: %s txhash: %s\n", addrId.ToString().c_str(), hashTx.ToString().c_str());
}
}
}
}
}
// outputs
BOOST_FOREACH(const CTxOut &atxout, tx.vout) {
std::vector<uint160> addrIds;
if(BuildAddrIndex(atxout.scriptPubKey, addrIds))
{
BOOST_FOREACH(uint160 addrId, addrIds)
{
if(!txdb.WriteAddrIndex(addrId, hashTx))
LogPrintf("RebuildAddressIndex(): txouts WriteAddrIndex failed addrId: %s txhash: %s\n", addrId.ToString().c_str(), hashTx.ToString().c_str());
}
}
}
}
}
static int64_t nTimeConnect = 0;
bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)
{
// Check it again in case a previous version let a bad block in, but skip BlockSig checking
if (!CheckBlock(!fJustCheck, !fJustCheck, false))
return false;
unsigned int flags = SCRIPT_VERIFY_NOCACHE;
//// issue here: it doesn't know the version
unsigned int nTxPos;
if (fJustCheck)
// FetchInputs treats CDiskTxPos(1,1,1) as a special "refer to memorypool" indicator
// Since we're just checking the block and not actually connecting it, it might not (and probably shouldn't) be on the disk to get the transaction from
nTxPos = 1;
else
nTxPos = pindex->nBlockPos + ::GetSerializeSize(CBlock(), SER_DISK, CLIENT_VERSION) - (2 * GetSizeOfCompactSize(0)) + GetSizeOfCompactSize(vtx.size());
map<uint256, CTxIndex> mapQueuedChanges;
int64_t nFees = 0;
int64_t nValueIn = 0;
int64_t nValueOut = 0;
int64_t nStakeReward = 0;
unsigned int nSigOps = 0;
int nTxCacheHits = 0;
int nInputs = 0;
int64_t nTimeStart = GetTimeMicros();
BOOST_FOREACH(CTransaction& tx, vtx)
{
uint256 hashTx = tx.GetHash();
nInputs += tx.vin.size();
// Do not allow blocks that contain transactions which 'overwrite' older transactions,
// unless those are already completely spent.
// If such overwrites are allowed, coinbases and transactions depending upon those
// can be duplicated to remove the ability to spend the first instance -- even after
// being sent to another address.
// See BIP30 and http://r6.ca/blog/20120206T005236Z.html for more information.
// This logic is not necessary for memory pool transactions, as AcceptToMemoryPool
// already refuses previously-known transaction ids entirely.
// This rule was originally applied all blocks whose timestamp was after March 15, 2012, 0:00 UTC.
// Now that the whole chain is irreversibly beyond that time it is applied to all blocks except the
// two in the chain that violate it. This prevents exploiting the issue against nodes in their
// initial block download.
CTxIndex txindexOld;
if (txdb.ReadTxIndex(hashTx, txindexOld)) {
BOOST_FOREACH(CDiskTxPos &pos, txindexOld.vSpent)
if (pos.IsNull())
return DoS(100, error("ConnectBlock() : tried to overwrite transaction"));
}
nSigOps += GetLegacySigOpCount(tx);
if (nSigOps > MAX_BLOCK_SIGOPS)
return DoS(100, error("ConnectBlock() : too many sigops"));
CDiskTxPos posThisTx(pindex->nFile, pindex->nBlockPos, nTxPos);
if (!fJustCheck)
nTxPos += ::GetSerializeSize(tx, SER_DISK, CLIENT_VERSION);
MapPrevTx mapInputs;
if (tx.IsCoinBase())
nValueOut += tx.GetValueOut();
else
{
bool fInvalid;
if (!tx.FetchInputs(txdb, mapQueuedChanges, true, false, mapInputs, fInvalid))
return false;
// Add in sigops done by pay-to-script-hash inputs;
// this is to prevent a "rogue miner" from creating
// an incredibly-expensive-to-validate block.
nSigOps += GetP2SHSigOpCount(tx, mapInputs);
if (nSigOps > MAX_BLOCK_SIGOPS)
return DoS(100, error("ConnectBlock() : too many sigops"));
int64_t nTxValueIn = tx.GetValueIn(mapInputs);
int64_t nTxValueOut = tx.GetValueOut();
nValueIn += nTxValueIn;
nValueOut += nTxValueOut;
if (!tx.IsCoinStake())
nFees += nTxValueIn - nTxValueOut;
if (tx.IsCoinStake())
nStakeReward = nTxValueOut - nTxValueIn;
//if(setValidatedTx.find(hashTx) == setValidatedTx.end())
//{
if (!tx.ConnectInputs(txdb, mapInputs, mapQueuedChanges, posThisTx, pindex, true, false, flags))
return false;
//else
// setValidatedTx.insert(hashTx);
//}
//else
//{
// ++nTxCacheHits;
// }
}
mapQueuedChanges[hashTx] = CTxIndex(posThisTx, tx.vout.size());
}
int64_t nTime1 = GetTimeMicros(); nTimeConnect += nTime1 - nTimeStart;
if(fDebug)
{
LogPrintf("bench - Connect %u transactions: %.2fms (%.3fms/tx, %.3fms/txin) [%.2fs]\n", (unsigned)vtx.size(), 0.001 * (nTime1 - nTimeStart), 0.001 * (nTime1 - nTimeStart) / vtx.size(), nInputs <= 1 ? 0 : 0.001 * (nTime1 - nTimeStart) / (nInputs-1), nTimeConnect * 0.000001);
LogPrintf("bench - %u transaction validations cached\n", nTxCacheHits);
}
if (IsProofOfWork())
{
int64_t nReward = GetProofOfWorkReward(pindex->nHeight, nFees);
// Check coinbase reward
if (vtx[0].GetValueOut() > nReward)
return DoS(50, error("ConnectBlock() : coinbase reward exceeded (actual=%d vs calculated=%d)",
vtx[0].GetValueOut(),
nReward));
}
if (IsProofOfStake())
{
// ppcoin: coin stake tx earns reward instead of paying fee
uint64_t nCoinAge;
if (!vtx[1].GetCoinAge(txdb, nCoinAge))
return error("ConnectBlock() : %s unable to get coin age for coinstake", vtx[1].GetHash().ToString());
int64_t nCalculatedStakeReward = GetProofOfStakeReward(nCoinAge, nFees, HasMasternodePayment());
if (nStakeReward > nCalculatedStakeReward)
return DoS(1, error("ConnectBlock() : coinstake pays too much(actual=%d vs calculated=%d)", nStakeReward, nCalculatedStakeReward));
}
// ppcoin: track money supply and mint amount info
pindex->nMint = nValueOut - nValueIn + nFees;
pindex->nMoneySupply = (pindex->pprev? pindex->pprev->nMoneySupply : 0) + nValueOut - nValueIn;
if (!txdb.WriteBlockIndex(CDiskBlockIndex(pindex)))
return error("Connect() : WriteBlockIndex for pindex failed");
if (fJustCheck)
return true;
// Write queued txindex changes
for (map<uint256, CTxIndex>::iterator mi = mapQueuedChanges.begin(); mi != mapQueuedChanges.end(); ++mi)
{
if (!txdb.UpdateTxIndex((*mi).first, (*mi).second))
return error("ConnectBlock() : UpdateTxIndex failed");
}
// Write Address Index
BOOST_FOREACH(CTransaction& tx, vtx)
{
uint256 hashTx = tx.GetHash();
// inputs
if(!tx.IsCoinBase())
{
MapPrevTx mapInputs;
map<uint256, CTxIndex> mapQueuedChangesT;
bool fInvalid;
if (!tx.FetchInputs(txdb, mapQueuedChangesT, true, false, mapInputs, fInvalid))
return false;
MapPrevTx::const_iterator mi;
for(MapPrevTx::const_iterator mi = mapInputs.begin(); mi != mapInputs.end(); ++mi)
{
BOOST_FOREACH(const CTxOut &atxout, (*mi).second.second.vout)
{
std::vector<uint160> addrIds;
if(BuildAddrIndex(atxout.scriptPubKey, addrIds))
{
BOOST_FOREACH(uint160 addrId, addrIds)
{
if(!txdb.WriteAddrIndex(addrId, hashTx))
LogPrintf("ConnectBlock(): txins WriteAddrIndex failed addrId: %s txhash: %s\n", addrId.ToString().c_str(), hashTx.ToString().c_str());
}
}
}
}
}
// outputs
BOOST_FOREACH(const CTxOut &atxout, tx.vout) {
std::vector<uint160> addrIds;
if(BuildAddrIndex(atxout.scriptPubKey, addrIds))
{
BOOST_FOREACH(uint160 addrId, addrIds)
{
if(!txdb.WriteAddrIndex(addrId, hashTx))
LogPrintf("ConnectBlock(): txouts WriteAddrIndex failed addrId: %s txhash: %s\n", addrId.ToString().c_str(), hashTx.ToString().c_str());
}
}
}
}
// Update block index on disk without changing it in memory.
// The memory index structure will be changed after the db commits.
if (pindex->pprev)
{
CDiskBlockIndex blockindexPrev(pindex->pprev);
blockindexPrev.hashNext = pindex->GetBlockHash();
if (!txdb.WriteBlockIndex(blockindexPrev))
return error("ConnectBlock() : WriteBlockIndex failed");
}
// Watch for transactions paying to me
BOOST_FOREACH(CTransaction& tx, vtx)
SyncWithWallets(tx, this);
return true;
}
bool static Reorganize(CTxDB& txdb, CBlockIndex* pindexNew)
{
LogPrintf("REORGANIZE\n");
// Find the fork
CBlockIndex* pfork = pindexBest;
CBlockIndex* plonger = pindexNew;
while (pfork != plonger)
{
while (plonger->nHeight > pfork->nHeight)
if (!(plonger = plonger->pprev))
return error("Reorganize() : plonger->pprev is null");
if (pfork == plonger)
break;
if (!(pfork = pfork->pprev))
return error("Reorganize() : pfork->pprev is null");
}
// List of what to disconnect
vector<CBlockIndex*> vDisconnect;
for (CBlockIndex* pindex = pindexBest; pindex != pfork; pindex = pindex->pprev)
vDisconnect.push_back(pindex);
// List of what to connect
vector<CBlockIndex*> vConnect;
for (CBlockIndex* pindex = pindexNew; pindex != pfork; pindex = pindex->pprev)
vConnect.push_back(pindex);
reverse(vConnect.begin(), vConnect.end());
LogPrintf("REORGANIZE: Disconnect %u blocks; %s..%s\n", vDisconnect.size(), pfork->GetBlockHash().ToString(), pindexBest->GetBlockHash().ToString());
LogPrintf("REORGANIZE: Connect %u blocks; %s..%s\n", vConnect.size(), pfork->GetBlockHash().ToString(), pindexNew->GetBlockHash().ToString());
// Disconnect shorter branch
list<CTransaction> vResurrect;
BOOST_FOREACH(CBlockIndex* pindex, vDisconnect)
{
CBlock block;
if (!block.ReadFromDisk(pindex))
return error("Reorganize() : ReadFromDisk for disconnect failed");
if (!block.DisconnectBlock(txdb, pindex))
return error("Reorganize() : DisconnectBlock %s failed", pindex->GetBlockHash().ToString());
// Queue memory transactions to resurrect.
// We only do this for blocks after the last checkpoint (reorganisation before that
// point should only happen with -reindex/-loadblock, or a misbehaving peer.
BOOST_REVERSE_FOREACH(const CTransaction& tx, block.vtx)
if (!(tx.IsCoinBase() || tx.IsCoinStake()) && pindex->nHeight > Checkpoints::GetTotalBlocksEstimate())
vResurrect.push_front(tx);
}
// Connect longer branch
vector<CTransaction> vDelete;
for (unsigned int i = 0; i < vConnect.size(); i++)
{
CBlockIndex* pindex = vConnect[i];
CBlock block;
if (!block.ReadFromDisk(pindex))
return error("Reorganize() : ReadFromDisk for connect failed");
if (!block.ConnectBlock(txdb, pindex))
{
// Invalid block
return error("Reorganize() : ConnectBlock %s failed", pindex->GetBlockHash().ToString());
}
// Queue memory transactions to delete
BOOST_FOREACH(const CTransaction& tx, block.vtx)
vDelete.push_back(tx);
}
if (!txdb.WriteHashBestChain(pindexNew->GetBlockHash()))
return error("Reorganize() : WriteHashBestChain failed");
// Make sure it's successfully written to disk before changing memory structure
if (!txdb.TxnCommit())
return error("Reorganize() : TxnCommit failed");
// Disconnect shorter branch
BOOST_FOREACH(CBlockIndex* pindex, vDisconnect)
if (pindex->pprev)
pindex->pprev->pnext = NULL;
// Connect longer branch
BOOST_FOREACH(CBlockIndex* pindex, vConnect)
if (pindex->pprev)
pindex->pprev->pnext = pindex;
// Resurrect memory transactions that were in the disconnected branch
BOOST_FOREACH(CTransaction& tx, vResurrect)
AcceptToMemoryPool(mempool, tx, false, NULL);
// Delete redundant memory transactions that are in the connected branch
BOOST_FOREACH(CTransaction& tx, vDelete) {
mempool.remove(tx);
mempool.removeConflicts(tx);
}
LogPrintf("REORGANIZE: done\n");
return true;
}
// Called from inside SetBestChain: attaches a block to the new best chain being built
bool CBlock::SetBestChainInner(CTxDB& txdb, CBlockIndex *pindexNew)
{
uint256 hash = GetHash();
// Adding to current best branch
if (!ConnectBlock(txdb, pindexNew) || !txdb.WriteHashBestChain(hash))
{
txdb.TxnAbort();
InvalidChainFound(pindexNew);
return false;
}
if (!txdb.TxnCommit())
return error("SetBestChain() : TxnCommit failed");
// Add to current best branch
pindexNew->pprev->pnext = pindexNew;
// Delete redundant memory transactions
BOOST_FOREACH(CTransaction& tx, vtx)
mempool.remove(tx);
return true;
}
bool CBlock::SetBestChain(CTxDB& txdb, CBlockIndex* pindexNew)
{
uint256 hash = GetHash();
if (!txdb.TxnBegin())
return error("SetBestChain() : TxnBegin failed");
if (pindexGenesisBlock == NULL && hash == Params().HashGenesisBlock())
{
txdb.WriteHashBestChain(hash);
if (!txdb.TxnCommit())
return error("SetBestChain() : TxnCommit failed");
pindexGenesisBlock = pindexNew;
}
else if (hashPrevBlock == hashBestChain)
{
if (!SetBestChainInner(txdb, pindexNew))
return error("SetBestChain() : SetBestChainInner failed");
}
else
{
// the first block in the new chain that will cause it to become the new best chain
CBlockIndex *pindexIntermediate = pindexNew;
// list of blocks that need to be connected afterwards
std::vector<CBlockIndex*> vpindexSecondary;
// Reorganize is costly in terms of db load, as it works in a single db transaction.
// Try to limit how much needs to be done inside
while (pindexIntermediate->pprev && pindexIntermediate->pprev->nChainTrust > pindexBest->nChainTrust)
{
vpindexSecondary.push_back(pindexIntermediate);
pindexIntermediate = pindexIntermediate->pprev;
}
if (!vpindexSecondary.empty())
LogPrintf("Postponing %u reconnects\n", vpindexSecondary.size());
// Switch to new best branch
if (!Reorganize(txdb, pindexIntermediate))
{
txdb.TxnAbort();
InvalidChainFound(pindexNew);
return error("SetBestChain() : Reorganize failed");
}
// Connect further blocks
BOOST_REVERSE_FOREACH(CBlockIndex *pindex, vpindexSecondary)
{
CBlock block;
if (!block.ReadFromDisk(pindex))
{
LogPrintf("SetBestChain() : ReadFromDisk failed\n");
break;
}
if (!txdb.TxnBegin()) {
LogPrintf("SetBestChain() : TxnBegin 2 failed\n");
break;
}
// errors now are not fatal, we still did a reorganisation to a new chain in a valid way
if (!block.SetBestChainInner(txdb, pindex))
break;
}
}
// Update best block in wallet (so we can detect restored wallets)
bool fIsInitialDownload = IsInitialBlockDownload();
if ((pindexNew->nHeight % 20160) == 0 || (!fIsInitialDownload && (pindexNew->nHeight % 144) == 0))
{
const CBlockLocator locator(pindexNew);
g_signals.SetBestChain(locator);
}
// New best block
hashBestChain = hash;
pindexBest = pindexNew;
pblockindexFBBHLast = NULL;
nBestHeight = pindexBest->nHeight;
nBestChainTrust = pindexNew->nChainTrust;
nTimeBestReceived = GetTime();
mempool.AddTransactionsUpdated(1);
uint256 nBestBlockTrust = pindexBest->nHeight != 0 ? (pindexBest->nChainTrust - pindexBest->pprev->nChainTrust) : pindexBest->nChainTrust;
LogPrintf("SetBestChain: new best=%s height=%d trust=%s blocktrust=%d date=%s\n",
hashBestChain.ToString(), nBestHeight,
CBigNum(nBestChainTrust).ToString(),
nBestBlockTrust.Get64(),
DateTimeStrFormat("%x %H:%M:%S", pindexBest->GetBlockTime()));
// Check the version of the last 100 blocks to see if we need to upgrade:
if (!fIsInitialDownload)
{
int nUpgraded = 0;
const CBlockIndex* pindex = pindexBest;
for (int i = 0; i < 100 && pindex != NULL; i++)
{
if (pindex->nVersion > CBlock::CURRENT_VERSION)
++nUpgraded;
pindex = pindex->pprev;
}
if (nUpgraded > 0)
LogPrintf("SetBestChain: %d of last 100 blocks above version %d\n", nUpgraded, (int)CBlock::CURRENT_VERSION);
if (nUpgraded > 100/2)
// strMiscWarning is read by GetWarnings(), called by Qt and the JSON-RPC code to warn the user:
strMiscWarning = _("Warning: This version is obsolete, upgrade required!");
}
std::string strCmd = GetArg("-blocknotify", "");
if (!fIsInitialDownload && !strCmd.empty())
{
boost::replace_all(strCmd, "%s", hashBestChain.GetHex());
boost::thread t(runCommand, strCmd); // thread runs free
}
return true;
}
// ppcoin: total coin age spent in transaction, in the unit of coin-days.
// Only those coins meeting minimum age requirement counts. As those
// transactions not in main chain are not currently indexed so we
// might not find out about their coin age. Older transactions are
// guaranteed to be in main chain by sync-checkpoint. This rule is
// introduced to help nodes establish a consistent view of the coin
// age (trust score) of competing branches.
bool CTransaction::GetCoinAge(CTxDB& txdb, uint64_t& nCoinAge) const
{
CBigNum bnCentSecond = 0; // coin age in the unit of cent-seconds
nCoinAge = 0;
if (IsCoinBase())
return true;
BOOST_FOREACH(const CTxIn& txin, vin)
{
// First try finding the previous transaction in database
CTransaction txPrev;
CTxIndex txindex;
if (!txPrev.ReadFromDisk(txdb, txin.prevout, txindex))
continue; // previous transaction not in main chain
if (nTime < txPrev.nTime)
return false; // Transaction timestamp violation
// Read block header
CBlock block;
if (!block.ReadFromDisk(txindex.pos.nFile, txindex.pos.nBlockPos, false))
return false; // unable to read block of previous transaction
if (block.GetBlockTime() + nStakeMinAge > nTime)
continue; // only count coins meeting min age requirement
int64_t nValueIn = txPrev.vout[txin.prevout.n].nValue;
bnCentSecond += CBigNum(nValueIn) * (nTime-txPrev.nTime) / CENT;
LogPrint("coinage", "coin age nValueIn=%d nTimeDiff=%d bnCentSecond=%s\n", nValueIn, nTime - txPrev.nTime, bnCentSecond.ToString());
}
CBigNum bnCoinDay = bnCentSecond * CENT / COIN / (24 * 60 * 60);
LogPrint("coinage", "coin age bnCoinDay=%s\n", bnCoinDay.ToString());
nCoinAge = bnCoinDay.getuint64();
return true;
}
bool CBlock::AddToBlockIndex(unsigned int nFile, unsigned int nBlockPos, const uint256& hashProof)
{
AssertLockHeld(cs_main);
// Check for duplicate
uint256 hash = GetHash();
if (mapBlockIndex.count(hash))
return error("AddToBlockIndex() : %s already exists", hash.ToString());
// Construct new block index object
CBlockIndex* pindexNew = new CBlockIndex(nFile, nBlockPos, *this);
if (!pindexNew)
return error("AddToBlockIndex() : new CBlockIndex failed");
pindexNew->phashBlock = &hash;
map<uint256, CBlockIndex*>::iterator miPrev = mapBlockIndex.find(hashPrevBlock);
if (miPrev != mapBlockIndex.end())
{
pindexNew->pprev = (*miPrev).second;
pindexNew->nHeight = pindexNew->pprev->nHeight + 1;
}
// ppcoin: compute chain trust score
pindexNew->nChainTrust = (pindexNew->pprev ? pindexNew->pprev->nChainTrust : 0) + pindexNew->GetBlockTrust();
// ppcoin: compute stake entropy bit for stake modifier
if (!pindexNew->SetStakeEntropyBit(GetStakeEntropyBit()))
return error("AddToBlockIndex() : SetStakeEntropyBit() failed");
// Record proof hash value
pindexNew->hashProof = hashProof;
// ppcoin: compute stake modifier
uint64_t nStakeModifier = 0;
bool fGeneratedStakeModifier = false;
if (!ComputeNextStakeModifier(pindexNew->pprev, nStakeModifier, fGeneratedStakeModifier))
return error("AddToBlockIndex() : ComputeNextStakeModifier() failed");
pindexNew->SetStakeModifier(nStakeModifier, fGeneratedStakeModifier);
// Add to mapBlockIndex
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first;
if (pindexNew->IsProofOfStake())
setStakeSeen.insert(make_pair(pindexNew->prevoutStake, pindexNew->nStakeTime));
pindexNew->phashBlock = &((*mi).first);
// Write to disk block index
CTxDB txdb;
if (!txdb.TxnBegin())
return false;
txdb.WriteBlockIndex(CDiskBlockIndex(pindexNew));
if (!txdb.TxnCommit())
return false;
// New best
if (pindexNew->nChainTrust > nBestChainTrust)
if (!SetBestChain(txdb, pindexNew))
return false;
if (pindexNew == pindexBest)
{
// Notify UI to display prev block's coinbase if it was ours
static uint256 hashPrevBestCoinBase;
g_signals.UpdatedTransaction(hashPrevBestCoinBase);
hashPrevBestCoinBase = vtx[0].GetHash();
}
return true;
}
bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot, bool fCheckSig) const
{
// These are checks that are independent of context
// that can be verified before saving an orphan block.
// Size limits
if (vtx.empty() || vtx.size() > MAX_BLOCK_SIZE || ::GetSerializeSize(*this, SER_NETWORK, PROTOCOL_VERSION) > MAX_BLOCK_SIZE)
return DoS(100, error("CheckBlock() : size limits failed"));
// Check proof of work matches claimed amount
if (fCheckPOW && IsProofOfWork() && !CheckProofOfWork(GetPoWHash(), nBits))
return DoS(50, error("CheckBlock() : proof of work failed"));
// Check timestamp
if (GetBlockTime() > FutureDrift(GetAdjustedTime()))
return error("CheckBlock() : block timestamp too far in the future");
// First transaction must be coinbase, the rest must not be
if (vtx.empty() || !vtx[0].IsCoinBase())
return DoS(100, error("CheckBlock() : first tx is not coinbase"));
for (unsigned int i = 1; i < vtx.size(); i++)
if (vtx[i].IsCoinBase())
return DoS(100, error("CheckBlock() : more than one coinbase"));
if (IsProofOfStake())
{
// Coinbase output should be empty if proof-of-stake block
if (vtx[0].vout.size() != 1 || !vtx[0].vout[0].IsEmpty())
return DoS(100, error("CheckBlock() : coinbase output not empty for proof-of-stake block"));
// Second transaction must be coinstake, the rest must not be
if (vtx.empty() || !vtx[1].IsCoinStake())
return DoS(100, error("CheckBlock() : second tx is not coinstake"));
for (unsigned int i = 2; i < vtx.size(); i++)
if (vtx[i].IsCoinStake())
return DoS(100, error("CheckBlock() : more than one coinstake"));
}
// Check proof-of-stake block signature
if (fCheckSig && !CheckBlockSignature())
return DoS(100, error("CheckBlock() : bad proof-of-stake block signature"));
// ----------- instantX transaction scanning -----------
if(IsSporkActive(SPORK_1_MASTERNODE_PAYMENTS_ENFORCEMENT_DEFAULT)){
BOOST_FOREACH(const CTransaction& tx, vtx){
if (!tx.IsCoinBase()){
//only reject blocks when it's based on complete consensus
BOOST_FOREACH(const CTxIn& in, tx.vin){
if(mapLockedInputs.count(in.prevout)){
if(mapLockedInputs[in.prevout] != tx.GetHash()){
if(fDebug) { LogPrintf("CheckBlock() : found conflicting transaction with transaction lock %s %s\n", mapLockedInputs[in.prevout].ToString().c_str(), tx.GetHash().ToString().c_str()); }
return DoS(0, error("CheckBlock() : found conflicting transaction with transaction lock"));
}
}
}
}
}
} else {
if(fDebug) { LogPrintf("CheckBlock() : skipping transaction locking checks\n"); }
}
// ----------- masternode payments -----------
bool MasternodePayments = false;
if(nTime > START_MASTERNODE_PAYMENTS) MasternodePayments = true;
if(!IsSporkActive(SPORK_1_MASTERNODE_PAYMENTS_ENFORCEMENT)){
MasternodePayments = false;
if(fDebug) LogPrintf("CheckBlock() : Masternode payment enforcement is off\n");
}
if(MasternodePayments)
{
LOCK2(cs_main, mempool.cs);
CBlockIndex *pindex = pindexBest;
if(pindex != NULL){
if(pindex->GetBlockHash() == hashPrevBlock){
CAmount masternodePaymentAmount = GetMasternodePayment(pindex->nHeight+1, vtx[0].GetValueOut());
bool fIsInitialDownload = IsInitialBlockDownload();
// If we don't already have its previous block, skip masternode payment step
if (!fIsInitialDownload && pindex != NULL)
{
bool foundPaymentAmount = false;
bool foundPayee = false;
bool foundPaymentAndPayee = false;
CScript payee;
if(!masternodePayments.GetBlockPayee(pindexBest->nHeight+1, payee) || payee == CScript()){
foundPayee = true; //doesn't require a specific payee
foundPaymentAmount = true;
foundPaymentAndPayee = true;
if(fDebug) { LogPrintf("CheckBlock() : Using non-specific masternode payments %d\n", pindexBest->nHeight+1); }
}
for (unsigned int i = 0; i < vtx[0].vout.size(); i++) {
if(vtx[0].vout[i].nValue == masternodePaymentAmount )
foundPaymentAmount = true;
if(vtx[0].vout[i].scriptPubKey == payee )
foundPayee = true;
if(vtx[0].vout[i].nValue == masternodePaymentAmount && vtx[0].vout[i].scriptPubKey == payee)
foundPaymentAndPayee = true;
}
if(!foundPaymentAndPayee) {
CTxDestination address1;
ExtractDestination(payee, address1);
CBitcoinAddress address2(address1);
if(fDebug) { LogPrintf("CheckBlock() : Couldn't find masternode payment(%d|%d) or payee(%d|%s) nHeight %d. \n", foundPaymentAmount, masternodePaymentAmount, foundPayee, address2.ToString().c_str(), pindexBest->nHeight+1); }
return DoS(100, error("CheckBlock() : Couldn't find masternode payment or payee"));
} else {
if(fDebug) { LogPrintf("CheckBlock() : Found masternode payment %d\n", pindexBest->nHeight+1); }
}
} else {
if(fDebug) { LogPrintf("CheckBlock() : Is initial download, skipping masternode payment check %d\n", pindexBest->nHeight+1); }
}
} else {
if(fDebug) { LogPrintf("CheckBlock() : Skipping masternode payment check - nHeight %d Hash %s\n", pindexBest->nHeight+1, GetHash().ToString().c_str()); }
}
} else {
if(fDebug) { LogPrintf("CheckBlock() : pindex is null, skipping masternode payment check\n"); }
}
} else {
if(fDebug) { LogPrintf("CheckBlock() : skipping masternode payment checks\n"); }
}
// Check transactions
BOOST_FOREACH(const CTransaction& tx, vtx)
{
if (!tx.CheckTransaction())
return DoS(tx.nDoS, error("CheckBlock() : CheckTransaction failed"));
// ppcoin: check transaction timestamp
if (GetBlockTime() < (int64_t)tx.nTime)
return DoS(50, error("CheckBlock() : block timestamp earlier than transaction timestamp"));
}
// Check for duplicate txids. This is caught by ConnectInputs(),
// but catching it earlier avoids a potential DoS attack:
set<uint256> uniqueTx;
BOOST_FOREACH(const CTransaction& tx, vtx)
{
uniqueTx.insert(tx.GetHash());
}
if (uniqueTx.size() != vtx.size())
return DoS(100, error("CheckBlock() : duplicate transaction"));
unsigned int nSigOps = 0;
BOOST_FOREACH(const CTransaction& tx, vtx)
{
nSigOps += GetLegacySigOpCount(tx);
}
if (nSigOps > MAX_BLOCK_SIGOPS)
return DoS(100, error("CheckBlock() : out-of-bounds SigOpCount"));
// Check merkle root
if (fCheckMerkleRoot && hashMerkleRoot != BuildMerkleTree())
return DoS(100, error("CheckBlock() : hashMerkleRoot mismatch"));
return true;
}
bool CBlock::HasMasternodePayment()
{
CBlockIndex *pindex = pindexBest;
CScript payee;
if (GetTime() > START_MASTERNODE_PAYMENTS && !IsInitialBlockDownload() && (GetTime() - GetBlockTime()< 300)&& pindex != NULL) {
//spork
if(!masternodePayments.GetBlockPayee(pindexBest->nHeight+1, payee)){
int winningNode = GetCurrentMasterNode(1);
if(winningNode >= 0){
return true;
} else {
return false;
}
}
}
return true;
}
bool CBlock::AcceptBlock()
{
AssertLockHeld(cs_main);
if (nVersion > CURRENT_VERSION)
return DoS(100, error("AcceptBlock() : reject unknown block version %d", nVersion));
// Check for duplicate
uint256 hash = GetHash();
if (mapBlockIndex.count(hash))
return error("AcceptBlock() : block already in mapBlockIndex");
// Get prev block index
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashPrevBlock);
if (mi == mapBlockIndex.end())
return DoS(10, error("AcceptBlock() : prev block not found"));
CBlockIndex* pindexPrev = (*mi).second;
int nHeight = pindexPrev->nHeight+1;
if (nVersion < 7)
return DoS(100, error("AcceptBlock() : reject too old nVersion = %d", nVersion));
if (IsProofOfWork() && nHeight > Params().LastPOWBlock())
return DoS(100, error("AcceptBlock() : reject proof-of-work at height %d", nHeight));
// Check coinbase timestamp
if (GetBlockTime() > FutureDrift((int64_t)vtx[0].nTime))
return DoS(50, error("AcceptBlock() : coinbase timestamp is too early"));
// Check coinstake timestamp
if (IsProofOfStake() && !CheckCoinStakeTimestamp(nHeight, GetBlockTime(), (int64_t)vtx[1].nTime))
return DoS(50, error("AcceptBlock() : coinstake timestamp violation nTimeBlock=%d nTimeTx=%u", GetBlockTime(), vtx[1].nTime));
if (IsProofOfStake() && nHeight < Params().FirstPOSBlock())
return DoS(100, error("AcceptBlock() : reject proof-of-stake at height %d", nHeight));
// Check proof-of-work or proof-of-stake
if (nBits != GetNextTargetRequired(pindexPrev, IsProofOfStake()))
return DoS(100, error("AcceptBlock() : incorrect %s", IsProofOfWork() ? "proof-of-work" : "proof-of-stake"));
// Check timestamp against prev
if (GetBlockTime() <= pindexPrev->GetPastTimeLimit() || FutureDrift(GetBlockTime()) < pindexPrev->GetBlockTime())
return error("AcceptBlock() : block's timestamp is too early");
// Check that all transactions are finalized
BOOST_FOREACH(const CTransaction& tx, vtx)
if (!IsFinalTx(tx, nHeight, GetBlockTime()))
return DoS(10, error("AcceptBlock() : contains a non-final transaction"));
// Check that the block chain matches the known block chain up to a checkpoint
if (!Checkpoints::CheckHardened(nHeight, hash))
return DoS(100, error("AcceptBlock() : rejected by hardened checkpoint lock-in at %d", nHeight));
uint256 hashProof;
// Verify hash target and signature of coinstake tx
if (IsProofOfStake())
{
if (GetBlockTime() < pindexPrev->nTime + 1)
return DoS(100, error("AcceptBlock() : time interval violation, new block generated too early"));
uint256 targetProofOfStake;
if (!CheckProofOfStake(pindexPrev, vtx[1], nBits, hashProof, targetProofOfStake))
{
return error("AcceptBlock() : check proof-of-stake failed for block %s", hash.ToString());
}
}
// PoW is checked in CheckBlock()
if (IsProofOfWork())
{
hashProof = GetPoWHash();
}
bool cpSatisfies = Checkpoints::CheckSync(hash, pindexPrev);
// Check that the block satisfies synchronized checkpoint
if (CheckpointsMode == Checkpoints::STRICT && !cpSatisfies)
return error("AcceptBlock() : rejected by synchronized checkpoint");
if (CheckpointsMode == Checkpoints::ADVISORY && !cpSatisfies)
strMiscWarning = _("WARNING: syncronized checkpoint violation detected, but skipped!");
// Enforce rule that the coinbase starts with serialized block height
CScript expect = CScript() << nHeight;
if (vtx[0].vin[0].scriptSig.size() < expect.size() ||
!std::equal(expect.begin(), expect.end(), vtx[0].vin[0].scriptSig.begin()))
return DoS(100, error("AcceptBlock() : block height mismatch in coinbase"));
// Write block to history file
if (!CheckDiskSpace(::GetSerializeSize(*this, SER_DISK, CLIENT_VERSION)))
return error("AcceptBlock() : out of disk space");
unsigned int nFile = -1;
unsigned int nBlockPos = 0;
if (!WriteToDisk(nFile, nBlockPos))
return error("AcceptBlock() : WriteToDisk failed");
if (!AddToBlockIndex(nFile, nBlockPos, hashProof))
return error("AcceptBlock() : AddToBlockIndex failed");
// Relay inventory, but don't relay old inventory during initial block download
int nBlockEstimate = Checkpoints::GetTotalBlocksEstimate();
if (hashBestChain == hash)
{
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes)
if (nBestHeight > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : nBlockEstimate))
pnode->PushInventory(CInv(MSG_BLOCK, hash));
}
// ppcoin: check pending sync-checkpoint
Checkpoints::AcceptPendingSyncCheckpoint();
return true;
}
uint256 CBlockIndex::GetBlockTrust() const
{
CBigNum bnTarget;
bnTarget.SetCompact(nBits);
if (bnTarget <= 0)
return 0;
return ((CBigNum(1)<<256) / (bnTarget+1)).getuint256();
}
bool CBlockIndex::IsSuperMajority(int minVersion, const CBlockIndex* pstart, unsigned int nRequired, unsigned int nToCheck)
{
unsigned int nFound = 0;
for (unsigned int i = 0; i < nToCheck && nFound < nRequired && pstart != NULL; i++)
{
if (pstart->nVersion >= minVersion)
++nFound;
pstart = pstart->pprev;
}
return (nFound >= nRequired);
}
void PushGetBlocks(CNode* pnode, CBlockIndex* pindexBegin, uint256 hashEnd)
{
// Filter out duplicate requests
if (pindexBegin == pnode->pindexLastGetBlocksBegin && hashEnd == pnode->hashLastGetBlocksEnd)
return;
pnode->pindexLastGetBlocksBegin = pindexBegin;
pnode->hashLastGetBlocksEnd = hashEnd;
pnode->PushMessage("getblocks", CBlockLocator(pindexBegin), hashEnd);
}
bool static ReserealizeBlockSignature(CBlock* pblock)
{
if (pblock->IsProofOfWork()) {
pblock->vchBlockSig.clear();
return true;
}
return CKey::ReserealizeSignature(pblock->vchBlockSig);
}
bool static IsCanonicalBlockSignature(CBlock* pblock)
{
if (pblock->IsProofOfWork()) {
return pblock->vchBlockSig.empty();
}
return IsDERSignature(pblock->vchBlockSig, false);
}
bool ProcessBlock(CNode* pfrom, CBlock* pblock)
{
AssertLockHeld(cs_main);
// Check for duplicate
uint256 hash = pblock->GetHash();
if (mapBlockIndex.count(hash))
return error("ProcessBlock() : already have block %d %s", mapBlockIndex[hash]->nHeight, hash.ToString());
if (mapOrphanBlocks.count(hash))
return error("ProcessBlock() : already have block (orphan) %s", hash.ToString());
// ppcoin: check proof-of-stake
// Limited duplicity on stake: prevents block flood attack
// Duplicate stake allowed only when there is orphan child block
if (pblock->IsProofOfStake() && setStakeSeen.count(pblock->GetProofOfStake()) && !mapOrphanBlocksByPrev.count(hash) && !Checkpoints::WantedByPendingSyncCheckpoint(hash))
return error("ProcessBlock() : duplicate proof-of-stake (%s, %d) for block %s", pblock->GetProofOfStake().first.ToString(), pblock->GetProofOfStake().second, hash.ToString());
CBlockIndex* pcheckpoint = Checkpoints::GetLastSyncCheckpoint();
if (pcheckpoint && pblock->hashPrevBlock != hashBestChain && !Checkpoints::WantedByPendingSyncCheckpoint(hash))
{
// Extra checks to prevent "fill up memory by spamming with bogus blocks"
int64_t deltaTime = pblock->GetBlockTime() - pcheckpoint->nTime;
if (deltaTime < 0)
{
if (pfrom)
pfrom->Misbehaving(1);
return error("ProcessBlock() : block with timestamp before last checkpoint");
}
}
// Block signature can be malleated in such a way that it increases block size up to maximum allowed by protocol
// For now we just strip garbage from newly received blocks
if (!IsCanonicalBlockSignature(pblock)) {
if (!ReserealizeBlockSignature(pblock))
LogPrintf("WARNING: ProcessBlock() : ReserealizeBlockSignature FAILED\n");
}
// Preliminary checks
if (!pblock->CheckBlock())
return error("ProcessBlock() : CheckBlock FAILED");
// ppcoin: ask for pending sync-checkpoint if any
if (!IsInitialBlockDownload())
Checkpoints::AskForPendingSyncCheckpoint(pfrom);
// If we don't already have its previous block, shunt it off to holding area until we get it
if (!mapBlockIndex.count(pblock->hashPrevBlock))
{
LogPrintf("ProcessBlock: ORPHAN BLOCK %lu, prev=%s\n", (unsigned long)mapOrphanBlocks.size(), pblock->hashPrevBlock.ToString());
// Accept orphans as long as there is a node to request its parents from
if (pfrom) {
// ppcoin: check proof-of-stake
if (pblock->IsProofOfStake())
{
// Limited duplicity on stake: prevents block flood attack
// Duplicate stake allowed only when there is orphan child block
if (setStakeSeenOrphan.count(pblock->GetProofOfStake()) && !mapOrphanBlocksByPrev.count(hash) && !Checkpoints::WantedByPendingSyncCheckpoint(hash))
return error("ProcessBlock() : duplicate proof-of-stake (%s, %d) for orphan block %s", pblock->GetProofOfStake().first.ToString(), pblock->GetProofOfStake().second, hash.ToString());
}
PruneOrphanBlocks();
COrphanBlock* pblock2 = new COrphanBlock();
{
CDataStream ss(SER_DISK, CLIENT_VERSION);
ss << *pblock;
pblock2->vchBlock = std::vector<unsigned char>(ss.begin(), ss.end());
}
pblock2->hashBlock = hash;
pblock2->hashPrev = pblock->hashPrevBlock;
pblock2->stake = pblock->GetProofOfStake();
mapOrphanBlocks.insert(make_pair(hash, pblock2));
mapOrphanBlocksByPrev.insert(make_pair(pblock2->hashPrev, pblock2));
if (pblock->IsProofOfStake())
setStakeSeenOrphan.insert(pblock->GetProofOfStake());
// Ask this guy to fill in what we're missing
PushGetBlocks(pfrom, pindexBest, GetOrphanRoot(hash));
// ppcoin: getblocks may not obtain the ancestor block rejected
// earlier by duplicate-stake check so we ask for it again directly
if (!IsInitialBlockDownload())
pfrom->AskFor(CInv(MSG_BLOCK, WantedByOrphan(pblock2)));
}
return true;
}
// Store to disk
if (!pblock->AcceptBlock())
return error("ProcessBlock() : AcceptBlock FAILED");
// Recursively process any orphan blocks that depended on this one
vector<uint256> vWorkQueue;
vWorkQueue.push_back(hash);
for (unsigned int i = 0; i < vWorkQueue.size(); i++)
{
uint256 hashPrev = vWorkQueue[i];
for (multimap<uint256, COrphanBlock*>::iterator mi = mapOrphanBlocksByPrev.lower_bound(hashPrev);
mi != mapOrphanBlocksByPrev.upper_bound(hashPrev);
++mi)
{
CBlock block;
{
CDataStream ss(mi->second->vchBlock, SER_DISK, CLIENT_VERSION);
ss >> block;
}
block.BuildMerkleTree();
if (block.AcceptBlock())
vWorkQueue.push_back(mi->second->hashBlock);
mapOrphanBlocks.erase(mi->second->hashBlock);
setStakeSeenOrphan.erase(block.GetProofOfStake());
delete mi->second;
}
mapOrphanBlocksByPrev.erase(hashPrev);
}
LogPrintf("ProcessBlock: ACCEPTED\n");
// ppcoin: if responsible for sync-checkpoint send it
if (pfrom && !CSyncCheckpoint::strMasterPrivKey.empty())
Checkpoints::SendSyncCheckpoint(Checkpoints::AutoSelectSyncCheckpoint());
return true;
}
#ifdef ENABLE_WALLET
// novacoin: attempt to generate suitable proof-of-stake
bool CBlock::SignBlock(CWallet& wallet, int64_t nFees)
{
// if we are trying to sign
// something except proof-of-stake block template
if (!vtx[0].vout[0].IsEmpty())
return false;
// if we are trying to sign
// a complete proof-of-stake block
if (IsProofOfStake())
return true;
static int64_t nLastCoinStakeSearchTime = GetAdjustedTime(); // startup timestamp
CKey key;
CTransaction txCoinStake;
txCoinStake.nTime &= ~STAKE_TIMESTAMP_MASK;
int64_t nSearchTime = txCoinStake.nTime; // search to current time
if (nSearchTime > nLastCoinStakeSearchTime)
{
int64_t nSearchInterval = 1;
if (wallet.CreateCoinStake(wallet, nBits, nSearchInterval, nFees, txCoinStake, key))
{
if (txCoinStake.nTime >= pindexBest->GetPastTimeLimit()+1)
{
// make sure coinstake would meet timestamp protocol
// as it would be the same as the block timestamp
vtx[0].nTime = nTime = txCoinStake.nTime;
// we have to make sure that we have no future timestamps in
// our transactions set
for (vector<CTransaction>::iterator it = vtx.begin(); it != vtx.end();)
if (it->nTime > nTime) { it = vtx.erase(it); } else { ++it; }
vtx.insert(vtx.begin() + 1, txCoinStake);
hashMerkleRoot = BuildMerkleTree();
// append a signature to our block
return key.Sign(GetHash(), vchBlockSig);
}
}
nLastCoinStakeSearchInterval = nSearchTime - nLastCoinStakeSearchTime;
nLastCoinStakeSearchTime = nSearchTime;
}
return false;
}
#endif
bool CBlock::CheckBlockSignature() const
{
if (IsProofOfWork())
return vchBlockSig.empty();
if (vchBlockSig.empty())
return false;
vector<valtype> vSolutions;
txnouttype whichType;
const CTxOut& txout = vtx[1].vout[1];
if (!Solver(txout.scriptPubKey, whichType, vSolutions))
return false;
if (whichType == TX_PUBKEY)
{
valtype& vchPubKey = vSolutions[0];
return CPubKey(vchPubKey).Verify(GetHash(), vchBlockSig);
}
return false;
}
bool CheckDiskSpace(uint64_t nAdditionalBytes)
{
uint64_t nFreeBytesAvailable = filesystem::space(GetDataDir()).available;
// Check for nMinDiskSpace bytes (currently 50MB)
if (nFreeBytesAvailable < nMinDiskSpace + nAdditionalBytes)
{
string strMessage = _("Error: Disk space is low!");
strMiscWarning = strMessage;
LogPrintf("*** %s\n", strMessage);
uiInterface.ThreadSafeMessageBox(strMessage, "", CClientUIInterface::MSG_ERROR);
StartShutdown();
return false;
}
return true;
}
static filesystem::path BlockFilePath(unsigned int nFile)
{
string strBlockFn = strprintf("blk%04u.dat", nFile);
return GetDataDir() / strBlockFn;
}
FILE* OpenBlockFile(unsigned int nFile, unsigned int nBlockPos, const char* pszMode)
{
if ((nFile < 1) || (nFile == (unsigned int) -1))
return NULL;
FILE* file = fopen(BlockFilePath(nFile).string().c_str(), pszMode);
if (!file)
return NULL;
if (nBlockPos != 0 && !strchr(pszMode, 'a') && !strchr(pszMode, 'w'))
{
if (fseek(file, nBlockPos, SEEK_SET) != 0)
{
fclose(file);
return NULL;
}
}
return file;
}
static unsigned int nCurrentBlockFile = 1;
FILE* AppendBlockFile(unsigned int& nFileRet)
{
nFileRet = 0;
while (true)
{
FILE* file = OpenBlockFile(nCurrentBlockFile, 0, "ab");
if (!file)
return NULL;
if (fseek(file, 0, SEEK_END) != 0)
return NULL;
// FAT32 file size max 4GB, fseek and ftell max 2GB, so we must stay under 2GB
if (ftell(file) < (long)(0x7F000000 - MAX_SIZE))
{
nFileRet = nCurrentBlockFile;
return file;
}
fclose(file);
nCurrentBlockFile++;
}
}
bool LoadBlockIndex(bool fAllowNew)
{
LOCK(cs_main);
if (TestNet())
{
nStakeMinAge = 1 * 60 * 60; // test net min age is 1 hour
//nCoinbaseMaturity = 10; // test maturity is 10 blocks
}
//
// Load block index
//
CTxDB txdb("cr+");
if (!txdb.LoadBlockIndex())
return false;
//
// Init with genesis block
//
if (mapBlockIndex.empty())
{
if (!fAllowNew)
return false;
CBlock &block = const_cast<CBlock&>(Params().GenesisBlock());
// Start new block file
unsigned int nFile;
unsigned int nBlockPos;
if (!block.WriteToDisk(nFile, nBlockPos))
return error("LoadBlockIndex() : writing genesis block to disk failed");
if (!block.AddToBlockIndex(nFile, nBlockPos, Params().HashGenesisBlock()))
return error("LoadBlockIndex() : genesis block not accepted");
// ppcoin: initialize synchronized checkpoint
if (!Checkpoints::WriteSyncCheckpoint(Params().HashGenesisBlock()))
return error("LoadBlockIndex() : failed to init sync checkpoint");
}
string strPubKey = "";
// if checkpoint master key changed must reset sync-checkpoint
if (!txdb.ReadCheckpointPubKey(strPubKey) || strPubKey != CSyncCheckpoint::strMasterPubKey)
{
// write checkpoint master key to db
txdb.TxnBegin();
if (!txdb.WriteCheckpointPubKey(CSyncCheckpoint::strMasterPubKey))
return error("LoadBlockIndex() : failed to write new checkpoint master key to db");
if (!txdb.TxnCommit())
return error("LoadBlockIndex() : failed to commit new checkpoint master key to db");
if ((Params().NetworkID() == CChainParams::MAIN) && !Checkpoints::ResetSyncCheckpoint())
return error("LoadBlockIndex() : failed to reset sync-checkpoint");
}
return true;
}
void PrintBlockTree()
{
AssertLockHeld(cs_main);
// pre-compute tree structure
map<CBlockIndex*, vector<CBlockIndex*> > mapNext;
for (map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi)
{
CBlockIndex* pindex = (*mi).second;
mapNext[pindex->pprev].push_back(pindex);
// test
//while (rand() % 3 == 0)
// mapNext[pindex->pprev].push_back(pindex);
}
vector<pair<int, CBlockIndex*> > vStack;
vStack.push_back(make_pair(0, pindexGenesisBlock));
int nPrevCol = 0;
while (!vStack.empty())
{
int nCol = vStack.back().first;
CBlockIndex* pindex = vStack.back().second;
vStack.pop_back();
// print split or gap
if (nCol > nPrevCol)
{
for (int i = 0; i < nCol-1; i++)
LogPrintf("| ");
LogPrintf("|\\\n");
}
else if (nCol < nPrevCol)
{
for (int i = 0; i < nCol; i++)
LogPrintf("| ");
LogPrintf("|\n");
}
nPrevCol = nCol;
// print columns
for (int i = 0; i < nCol; i++)
LogPrintf("| ");
// print item
CBlock block;
block.ReadFromDisk(pindex);
LogPrintf("%d (%u,%u) %s %08x %s mint %7s tx %u",
pindex->nHeight,
pindex->nFile,
pindex->nBlockPos,
block.GetHash().ToString(),
block.nBits,
DateTimeStrFormat("%x %H:%M:%S", block.GetBlockTime()),
FormatMoney(pindex->nMint),
block.vtx.size());
// put the main time-chain first
vector<CBlockIndex*>& vNext = mapNext[pindex];
for (unsigned int i = 0; i < vNext.size(); i++)
{
if (vNext[i]->pnext)
{
swap(vNext[0], vNext[i]);
break;
}
}
// iterate children
for (unsigned int i = 0; i < vNext.size(); i++)
vStack.push_back(make_pair(nCol+i, vNext[i]));
}
}
bool LoadExternalBlockFile(FILE* fileIn)
{
int64_t nStart = GetTimeMillis();
int nLoaded = 0;
{
try {
CAutoFile blkdat(fileIn, SER_DISK, CLIENT_VERSION);
unsigned int nPos = 0;
while (nPos != (unsigned int)-1 && blkdat.good())
{
boost::this_thread::interruption_point();
unsigned char pchData[65536];
do {
fseek(blkdat, nPos, SEEK_SET);
int nRead = fread(pchData, 1, sizeof(pchData), blkdat);
if (nRead <= 8)
{
nPos = (unsigned int)-1;
break;
}
void* nFind = memchr(pchData, Params().MessageStart()[0], nRead+1-MESSAGE_START_SIZE);
if (nFind)
{
if (memcmp(nFind, Params().MessageStart(), MESSAGE_START_SIZE)==0)
{
nPos += ((unsigned char*)nFind - pchData) + MESSAGE_START_SIZE;
break;
}
nPos += ((unsigned char*)nFind - pchData) + 1;
}
else
nPos += sizeof(pchData) - MESSAGE_START_SIZE + 1;
boost::this_thread::interruption_point();
} while(true);
if (nPos == (unsigned int)-1)
break;
fseek(blkdat, nPos, SEEK_SET);
unsigned int nSize;
blkdat >> nSize;
if (nSize > 0 && nSize <= MAX_BLOCK_SIZE)
{
CBlock block;
blkdat >> block;
LOCK(cs_main);
if (ProcessBlock(NULL,&block))
{
nLoaded++;
nPos += 4 + nSize;
}
}
}
}
catch (std::exception &e) {
LogPrintf("%s() : Deserialize or I/O error caught during load\n",
__PRETTY_FUNCTION__);
}
}
LogPrintf("Loaded %i blocks from external file in %dms\n", nLoaded, GetTimeMillis() - nStart);
return nLoaded > 0;
}
struct CImportingNow
{
CImportingNow() {
assert(fImporting == false);
fImporting = true;
}
~CImportingNow() {
assert(fImporting == true);
fImporting = false;
}
};
void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
{
RenameThread("pharma-loadblk");
CImportingNow imp;
// -loadblock=
BOOST_FOREACH(boost::filesystem::path &path, vImportFiles) {
FILE *file = fopen(path.string().c_str(), "rb");
if (file)
LoadExternalBlockFile(file);
}
// hardcoded $DATADIR/bootstrap.dat
filesystem::path pathBootstrap = GetDataDir() / "bootstrap.dat";
if (filesystem::exists(pathBootstrap)) {
FILE *file = fopen(pathBootstrap.string().c_str(), "rb");
if (file) {
filesystem::path pathBootstrapOld = GetDataDir() / "bootstrap.dat.old";
LoadExternalBlockFile(file);
RenameOver(pathBootstrap, pathBootstrapOld);
}
}
}
//////////////////////////////////////////////////////////////////////////////
//
// CAlert
//
extern map<uint256, CAlert> mapAlerts;
extern CCriticalSection cs_mapAlerts;
string GetWarnings(string strFor)
{
int nPriority = 0;
string strStatusBar;
string strRPC;
if (GetBoolArg("-testsafemode", false))
strRPC = "test";
if (!CLIENT_VERSION_IS_RELEASE)
strStatusBar = _("This is a pre-release test build - use at your own risk - do not use for mining or merchant applications");
// Misc warnings like out of disk space and clock is wrong
if (strMiscWarning != "")
{
nPriority = 1000;
strStatusBar = strMiscWarning;
}
// if detected invalid checkpoint enter safe mode
if (Checkpoints::hashInvalidCheckpoint != 0)
{
nPriority = 3000;
strStatusBar = strRPC = _("WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.");
}
// Alerts
{
LOCK(cs_mapAlerts);
BOOST_FOREACH(PAIRTYPE(const uint256, CAlert)& item, mapAlerts)
{
const CAlert& alert = item.second;
if (alert.AppliesToMe() && alert.nPriority > nPriority)
{
nPriority = alert.nPriority;
strStatusBar = alert.strStatusBar;
if (nPriority > 1000)
strRPC = strStatusBar;
}
}
}
if (strFor == "statusbar")
return strStatusBar;
else if (strFor == "rpc")
return strRPC;
assert(!"GetWarnings() : invalid parameter");
return "error";
}
//////////////////////////////////////////////////////////////////////////////
//
// Messages
//
bool static AlreadyHave(CTxDB& txdb, const CInv& inv)
{
switch (inv.type)
{
case MSG_TX:
{
bool txInMap = false;
txInMap = mempool.exists(inv.hash);
return txInMap ||
mapOrphanTransactions.count(inv.hash) ||
txdb.ContainsTx(inv.hash);
}
case MSG_BLOCK:
return mapBlockIndex.count(inv.hash) ||
mapOrphanBlocks.count(inv.hash);
case MSG_TXLOCK_REQUEST:
return mapTxLockReq.count(inv.hash) ||
mapTxLockReqRejected.count(inv.hash);
case MSG_TXLOCK_VOTE:
return mapTxLockVote.count(inv.hash);
case MSG_SPORK:
return mapSporks.count(inv.hash);
case MSG_MASTERNODE_WINNER:
return mapSeenMasternodeVotes.count(inv.hash);
}
// Don't know what it is, just say we already got one
return true;
}
void static ProcessGetData(CNode* pfrom)
{
std::deque<CInv>::iterator it = pfrom->vRecvGetData.begin();
vector<CInv> vNotFound;
LOCK(cs_main);
while (it != pfrom->vRecvGetData.end()) {
// Don't bother if send buffer is too full to respond anyway
if (pfrom->nSendSize >= SendBufferSize())
break;
const CInv &inv = *it;
{
boost::this_thread::interruption_point();
it++;
if (inv.type == MSG_BLOCK)
{
// Send block from disk
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(inv.hash);
if (mi != mapBlockIndex.end())
{
CBlock block;
block.ReadFromDisk((*mi).second);
pfrom->PushMessage("block", block);
// Trigger them to send a getblocks request for the next batch of inventory
if (inv.hash == pfrom->hashContinue)
{
// Bypass PushInventory, this must send even if redundant,
// and we want it right after the last block so they don't
// wait for other stuff first.
vector<CInv> vInv;
vInv.push_back(CInv(MSG_BLOCK, hashBestChain));
pfrom->PushMessage("inv", vInv);
pfrom->hashContinue = 0;
}
}
}
else if (inv.IsKnownType())
{
// Send stream from relay memory
bool pushed = false;
{
LOCK(cs_mapRelay);
map<CInv, CDataStream>::iterator mi = mapRelay.find(inv);
if (mi != mapRelay.end()) {
pfrom->PushMessage(inv.GetCommand(), (*mi).second);
pushed = true;
}
}
if (!pushed && inv.type == MSG_TX) {
if(mapDarksendBroadcastTxes.count(inv.hash)){
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss.reserve(1000);
ss <<
mapDarksendBroadcastTxes[inv.hash].tx <<
mapDarksendBroadcastTxes[inv.hash].vin <<
mapDarksendBroadcastTxes[inv.hash].vchSig <<
mapDarksendBroadcastTxes[inv.hash].sigTime;
pfrom->PushMessage("dstx", ss);
pushed = true;
} else {
CTransaction tx;
if (mempool.lookup(inv.hash, tx)) {
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss.reserve(1000);
ss << tx;
pfrom->PushMessage("tx", ss);
pushed = true;
}
}
}
if (!pushed && inv.type == MSG_TXLOCK_VOTE) {
if(mapTxLockVote.count(inv.hash)){
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss.reserve(1000);
ss << mapTxLockVote[inv.hash];
pfrom->PushMessage("txlvote", ss);
pushed = true;
}
}
if (!pushed && inv.type == MSG_TXLOCK_REQUEST) {
if(mapTxLockReq.count(inv.hash)){
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss.reserve(1000);
ss << mapTxLockReq[inv.hash];
pfrom->PushMessage("txlreq", ss);
pushed = true;
}
}
if (!pushed && inv.type == MSG_SPORK) {
if(mapSporks.count(inv.hash)){
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss.reserve(1000);
ss << mapSporks[inv.hash];
pfrom->PushMessage("spork", ss);
pushed = true;
}
}
if (!pushed && inv.type == MSG_MASTERNODE_WINNER) {
if(mapSeenMasternodeVotes.count(inv.hash)){
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
int a = 0;
ss.reserve(1000);
ss << mapSeenMasternodeVotes[inv.hash] << a;
pfrom->PushMessage("mnw", ss);
pushed = true;
}
}
if (!pushed) {
vNotFound.push_back(inv);
}
}
// Track requests for our stuff.
g_signals.Inventory(inv.hash);
if (inv.type == MSG_BLOCK /* || inv.type == MSG_FILTERED_BLOCK */)
break;
}
}
pfrom->vRecvGetData.erase(pfrom->vRecvGetData.begin(), it);
if (!vNotFound.empty()) {
// Let the peer know that we didn't find what it asked for, so it doesn't
// have to wait around forever. Currently only SPV clients actually care
// about this message: it's needed when they are recursively walking the
// dependencies of relevant unconfirmed transactions. SPV clients want to
// do that because they want to know about (and store and rebroadcast and
// risk analyze) the dependencies of transactions relevant to them, without
// having to download the entire memory pool.
pfrom->PushMessage("notfound", vNotFound);
}
}
bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTimeReceived)
{
RandAddSeedPerfmon();
LogPrint("net", "received: %s (%u bytes)\n", strCommand, vRecv.size());
if (mapArgs.count("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0)
{
LogPrintf("dropmessagestest DROPPING RECV MESSAGE\n");
return true;
}
if (strCommand == "version")
{
// Each connection can only send one version message
if (pfrom->nVersion != 0)
{
pfrom->Misbehaving(1);
return false;
}
int64_t nTime;
CAddress addrMe;
CAddress addrFrom;
uint64_t nNonce = 1;
vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe;
if (pfrom->nVersion < MIN_PEER_PROTO_VERSION)
{
// disconnect from peers older than this proto version
LogPrintf("partner %s using obsolete version %i; disconnecting\n", pfrom->addr.ToString(), pfrom->nVersion);
pfrom->fDisconnect = true;
return false;
}
if (pfrom->nVersion == 10300)
pfrom->nVersion = 300;
if (!vRecv.empty())
vRecv >> addrFrom >> nNonce;
if (!vRecv.empty())
vRecv >> pfrom->strSubVer;
if (!vRecv.empty())
vRecv >> pfrom->nStartingHeight;
pfrom->cleanSubVer = SanitizeString(pfrom->strSubVer);
// Disconnect if we connected to ourself
if (nNonce == nLocalHostNonce && nNonce > 1)
{
LogPrintf("connected to self at %s, disconnecting\n", pfrom->addr.ToString());
pfrom->fDisconnect = true;
return true;
}
pfrom->addrLocal = addrMe;
if (pfrom->fInbound && addrMe.IsRoutable())
{
SeenLocal(addrMe);
}
// Be shy and don't send version until we hear
if (pfrom->fInbound)
pfrom->PushVersion();
pfrom->fClient = !(pfrom->nServices & NODE_NETWORK);
// Change version
pfrom->PushMessage("verack");
pfrom->ssSend.SetVersion(min(pfrom->nVersion, PROTOCOL_VERSION));
if (!pfrom->fInbound)
{
// Advertise our address
if (!fNoListen && !IsInitialBlockDownload())
{
CAddress addr = GetLocalAddress(&pfrom->addr);
if (addr.IsRoutable())
{
pfrom->PushAddress(addr);
} else if (IsPeerAddrLocalGood(pfrom)) {
addr.SetIP(pfrom->addrLocal);
pfrom->PushAddress(addr);
}
}
// Get recent addresses
if (pfrom->fOneShot || pfrom->nVersion >= CADDR_TIME_VERSION || addrman.size() < 1000)
{
pfrom->PushMessage("getaddr");
pfrom->fGetAddr = true;
}
addrman.Good(pfrom->addr);
} else {
if (((CNetAddr)pfrom->addr) == (CNetAddr)addrFrom)
{
addrman.Add(addrFrom, addrFrom);
addrman.Good(addrFrom);
}
}
// Relay alerts
{
LOCK(cs_mapAlerts);
BOOST_FOREACH(PAIRTYPE(const uint256, CAlert)& item, mapAlerts)
item.second.RelayTo(pfrom);
}
// Relay sync-checkpoint
{
LOCK(Checkpoints::cs_hashSyncCheckpoint);
if (!Checkpoints::checkpointMessage.IsNull())
Checkpoints::checkpointMessage.RelayTo(pfrom);
}
pfrom->fSuccessfullyConnected = true;
LogPrintf("receive version message: version %d, blocks=%d, us=%s, them=%s, peer=%s\n", pfrom->nVersion, pfrom->nStartingHeight, addrMe.ToString(), addrFrom.ToString(), pfrom->addr.ToString());
// ppcoin: ask for pending sync-checkpoint if any
if (!IsInitialBlockDownload())
Checkpoints::AskForPendingSyncCheckpoint(pfrom);
if (GetBoolArg("-synctime", true))
AddTimeData(pfrom->addr, nTime);
}
else if (pfrom->nVersion == 0)
{
// Must have a version message before anything else
pfrom->Misbehaving(1);
return false;
}
else if (strCommand == "verack")
{
pfrom->SetRecvVersion(min(pfrom->nVersion, PROTOCOL_VERSION));
}
else if (strCommand == "addr")
{
vector<CAddress> vAddr;
vRecv >> vAddr;
// Don't want addr from older versions unless seeding
if (pfrom->nVersion < CADDR_TIME_VERSION && addrman.size() > 1000)
return true;
if (vAddr.size() > 1000)
{
pfrom->Misbehaving(20);
return error("message addr size() = %u", vAddr.size());
}
// Store the new addresses
vector<CAddress> vAddrOk;
int64_t nNow = GetAdjustedTime();
int64_t nSince = nNow - 10 * 60;
BOOST_FOREACH(CAddress& addr, vAddr)
{
boost::this_thread::interruption_point();
if (addr.nTime <= 100000000 || addr.nTime > nNow + 10 * 60)
addr.nTime = nNow - 5 * 24 * 60 * 60;
pfrom->AddAddressKnown(addr);
bool fReachable = IsReachable(addr);
if (addr.nTime > nSince && !pfrom->fGetAddr && vAddr.size() <= 10 && addr.IsRoutable())
{
// Relay to a limited number of other nodes
{
LOCK(cs_vNodes);
// Use deterministic randomness to send to the same nodes for 24 hours
// at a time so the setAddrKnowns of the chosen nodes prevent repeats
static uint256 hashSalt;
if (hashSalt == 0)
hashSalt = GetRandHash();
uint64_t hashAddr = addr.GetHash();
uint256 hashRand = hashSalt ^ (hashAddr<<32) ^ ((GetTime()+hashAddr)/(24*60*60));
hashRand = Hash(BEGIN(hashRand), END(hashRand));
multimap<uint256, CNode*> mapMix;
BOOST_FOREACH(CNode* pnode, vNodes)
{
if (pnode->nVersion < CADDR_TIME_VERSION)
continue;
unsigned int nPointer;
memcpy(&nPointer, &pnode, sizeof(nPointer));
uint256 hashKey = hashRand ^ nPointer;
hashKey = Hash(BEGIN(hashKey), END(hashKey));
mapMix.insert(make_pair(hashKey, pnode));
}
int nRelayNodes = fReachable ? 2 : 1; // limited relaying of addresses outside our network(s)
for (multimap<uint256, CNode*>::iterator mi = mapMix.begin(); mi != mapMix.end() && nRelayNodes-- > 0; ++mi)
((*mi).second)->PushAddress(addr);
}
}
// Do not store addresses outside our network
if (fReachable)
vAddrOk.push_back(addr);
}
addrman.Add(vAddrOk, pfrom->addr, 2 * 60 * 60);
if (vAddr.size() < 1000)
pfrom->fGetAddr = false;
if (pfrom->fOneShot)
pfrom->fDisconnect = true;
}
else if (strCommand == "inv")
{
vector<CInv> vInv;
vRecv >> vInv;
if (vInv.size() > MAX_INV_SZ)
{
pfrom->Misbehaving(20);
return error("message inv size() = %u", vInv.size());
}
// find last block in inv vector
unsigned int nLastBlock = (unsigned int)(-1);
for (unsigned int nInv = 0; nInv < vInv.size(); nInv++) {
if (vInv[vInv.size() - 1 - nInv].type == MSG_BLOCK) {
nLastBlock = vInv.size() - 1 - nInv;
break;
}
}
LOCK(cs_main);
CTxDB txdb("r");
for (unsigned int nInv = 0; nInv < vInv.size(); nInv++)
{
const CInv &inv = vInv[nInv];
boost::this_thread::interruption_point();
pfrom->AddInventoryKnown(inv);
bool fAlreadyHave = AlreadyHave(txdb, inv);
LogPrint("net", " got inventory: %s %s\n", inv.ToString(), fAlreadyHave ? "have" : "new");
if (!fAlreadyHave) {
if (!fImporting)
pfrom->AskFor(inv);
} else if (inv.type == MSG_BLOCK && mapOrphanBlocks.count(inv.hash)) {
PushGetBlocks(pfrom, pindexBest, GetOrphanRoot(inv.hash));
} else if (nInv == nLastBlock) {
// In case we are on a very long side-chain, it is possible that we already have
// the last block in an inv bundle sent in response to getblocks. Try to detect
// this situation and push another getblocks to continue.
PushGetBlocks(pfrom, mapBlockIndex[inv.hash], uint256(0));
if (fDebug)
LogPrintf("force request: %s\n", inv.ToString());
}
// Track requests for our stuff
g_signals.Inventory(inv.hash);
}
}
else if (strCommand == "getdata")
{
vector<CInv> vInv;
vRecv >> vInv;
if (vInv.size() > MAX_INV_SZ)
{
pfrom->Misbehaving(20);
return error("message getdata size() = %u", vInv.size());
}
if (fDebug || (vInv.size() != 1))
LogPrint("net", "received getdata (%u invsz)\n", vInv.size());
if ((fDebug && vInv.size() > 0) || (vInv.size() == 1))
LogPrint("net", "received getdata for: %s\n", vInv[0].ToString());
pfrom->vRecvGetData.insert(pfrom->vRecvGetData.end(), vInv.begin(), vInv.end());
ProcessGetData(pfrom);
}
else if (strCommand == "getblocks")
{
CBlockLocator locator;
uint256 hashStop;
vRecv >> locator >> hashStop;
LOCK(cs_main);
// Find the last block the caller has in the main chain
CBlockIndex* pindex = locator.GetBlockIndex();
// Send the rest of the chain
if (pindex)
pindex = pindex->pnext;
int nLimit = 500;
LogPrint("net", "getblocks %d to %s limit %d\n", (pindex ? pindex->nHeight : -1), hashStop.ToString(), nLimit);
for (; pindex; pindex = pindex->pnext)
{
if (pindex->GetBlockHash() == hashStop)
{
LogPrint("net", " getblocks stopping at %d %s\n", pindex->nHeight, pindex->GetBlockHash().ToString());
break;
}
pfrom->PushInventory(CInv(MSG_BLOCK, pindex->GetBlockHash()));
if (--nLimit <= 0)
{
// When this block is requested, we'll send an inv that'll make them
// getblocks the next batch of inventory.
LogPrint("net", " getblocks stopping at limit %d %s\n", pindex->nHeight, pindex->GetBlockHash().ToString());
pfrom->hashContinue = pindex->GetBlockHash();
break;
}
}
}
else if (strCommand == "checkpoint")
{
CSyncCheckpoint checkpoint;
vRecv >> checkpoint;
if (checkpoint.ProcessSyncCheckpoint(pfrom))
{
// Relay
pfrom->hashCheckpointKnown = checkpoint.hashCheckpoint;
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes)
checkpoint.RelayTo(pnode);
}
}
else if (strCommand == "getheaders")
{
CBlockLocator locator;
uint256 hashStop;
vRecv >> locator >> hashStop;
LOCK(cs_main);
CBlockIndex* pindex = NULL;
if (locator.IsNull())
{
// If locator is null, return the hashStop block
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashStop);
if (mi == mapBlockIndex.end())
return true;
pindex = (*mi).second;
}
else
{
// Find the last block the caller has in the main chain
pindex = locator.GetBlockIndex();
if (pindex)
pindex = pindex->pnext;
}
vector<CBlock> vHeaders;
int nLimit = 2000;
LogPrint("net", "getheaders %d to %s\n", (pindex ? pindex->nHeight : -1), hashStop.ToString());
for (; pindex; pindex = pindex->pnext)
{
vHeaders.push_back(pindex->GetBlockHeader());
if (--nLimit <= 0 || pindex->GetBlockHash() == hashStop)
break;
}
pfrom->PushMessage("headers", vHeaders);
}
else if (strCommand == "tx")
{
vector<uint256> vWorkQueue;
vector<uint256> vEraseQueue;
CTransaction tx;
vRecv >> tx;
CInv inv(MSG_TX, tx.GetHash());
pfrom->AddInventoryKnown(inv);
LOCK(cs_main);
bool fMissingInputs = false;
mapAlreadyAskedFor.erase(inv);
if (AcceptToMemoryPool(mempool, tx, true, &fMissingInputs))
{
RelayTransaction(tx, inv.hash);
vWorkQueue.push_back(inv.hash);
vEraseQueue.push_back(inv.hash);
// Recursively process any orphan transactions that depended on this one
for (unsigned int i = 0; i < vWorkQueue.size(); i++)
{
map<uint256, set<uint256> >::iterator itByPrev = mapOrphanTransactionsByPrev.find(vWorkQueue[i]);
if (itByPrev == mapOrphanTransactionsByPrev.end())
continue;
for (set<uint256>::iterator mi = itByPrev->second.begin();
mi != itByPrev->second.end();
++mi)
{
const uint256& orphanTxHash = *mi;
CTransaction& orphanTx = mapOrphanTransactions[orphanTxHash];
bool fMissingInputs2 = false;
if (AcceptToMemoryPool(mempool, orphanTx, true, &fMissingInputs2))
{
LogPrint("mempool", " accepted orphan tx %s\n", orphanTxHash.ToString());
RelayTransaction(orphanTx, orphanTxHash);
vWorkQueue.push_back(orphanTxHash);
vEraseQueue.push_back(orphanTxHash);
}
else if (!fMissingInputs2)
{
// invalid or too-little-fee orphan
vEraseQueue.push_back(orphanTxHash);
LogPrint("mempool", " removed orphan tx %s\n", orphanTxHash.ToString());
}
}
}
BOOST_FOREACH(uint256 hash, vEraseQueue)
EraseOrphanTx(hash);
}
else if (fMissingInputs)
{
AddOrphanTx(tx);
// DoS prevention: do not allow mapOrphanTransactions to grow unbounded
unsigned int nEvicted = LimitOrphanTxSize(MAX_ORPHAN_TRANSACTIONS);
if (nEvicted > 0)
LogPrint("mempool", "mapOrphan overflow, removed %u tx\n", nEvicted);
}
if (tx.nDoS) pfrom->Misbehaving(tx.nDoS);
}
else if (strCommand == "block")
{
CBlock block;
vRecv >> block;
uint256 hashBlock = block.GetHash();
LogPrint("net", "received block %s\n", hashBlock.ToString());
CInv inv(MSG_BLOCK, hashBlock);
pfrom->AddInventoryKnown(inv);
LOCK(cs_main);
if (ProcessBlock(pfrom, &block))
mapAlreadyAskedFor.erase(inv);
if (block.nDoS) pfrom->Misbehaving(block.nDoS);
}
else if (strCommand == "getaddr")
{
// Don't return addresses older than nCutOff timestamp
int64_t nCutOff = GetTime() - (nNodeLifespan * 24 * 60 * 60);
pfrom->vAddrToSend.clear();
vector<CAddress> vAddr = addrman.GetAddr();
BOOST_FOREACH(const CAddress &addr, vAddr)
if(addr.nTime > nCutOff)
pfrom->PushAddress(addr);
}
else if (strCommand == "mempool")
{
LOCK(cs_main);
std::vector<uint256> vtxid;
mempool.queryHashes(vtxid);
vector<CInv> vInv;
for (unsigned int i = 0; i < vtxid.size(); i++) {
CInv inv(MSG_TX, vtxid[i]);
vInv.push_back(inv);
if (i == (MAX_INV_SZ - 1))
break;
}
if (vInv.size() > 0)
pfrom->PushMessage("inv", vInv);
}
else if (strCommand == "ping")
{
if (pfrom->nVersion > BIP0031_VERSION)
{
uint64_t nonce = 0;
vRecv >> nonce;
// Echo the message back with the nonce. This allows for two useful features:
//
// 1) A remote node can quickly check if the connection is operational
// 2) Remote nodes can measure the latency of the network thread. If this node
// is overloaded it won't respond to pings quickly and the remote node can
// avoid sending us more work, like chain download requests.
//
// The nonce stops the remote getting confused between different pings: without
// it, if the remote node sends a ping once per second and this node takes 5
// seconds to respond to each, the 5th ping the remote sends would appear to
// return very quickly.
pfrom->PushMessage("pong", nonce);
}
}
else if (strCommand == "pong")
{
int64_t pingUsecEnd = nTimeReceived;
uint64_t nonce = 0;
size_t nAvail = vRecv.in_avail();
bool bPingFinished = false;
std::string sProblem;
if (nAvail >= sizeof(nonce)) {
vRecv >> nonce;
// Only process pong message if there is an outstanding ping (old ping without nonce should never pong)
if (pfrom->nPingNonceSent != 0) {
if (nonce == pfrom->nPingNonceSent) {
// Matching pong received, this ping is no longer outstanding
bPingFinished = true;
int64_t pingUsecTime = pingUsecEnd - pfrom->nPingUsecStart;
if (pingUsecTime > 0) {
// Successful ping time measurement, replace previous
pfrom->nPingUsecTime = pingUsecTime;
} else {
// This should never happen
sProblem = "Timing mishap";
}
} else {
// Nonce mismatches are normal when pings are overlapping
sProblem = "Nonce mismatch";
if (nonce == 0) {
// This is most likely a bug in another implementation somewhere, cancel this ping
bPingFinished = true;
sProblem = "Nonce zero";
}
}
} else {
sProblem = "Unsolicited pong without ping";
}
} else {
// This is most likely a bug in another implementation somewhere, cancel this ping
bPingFinished = true;
sProblem = "Short payload";
}
if (!(sProblem.empty())) {
LogPrint("net", "pong %s %s: %s, %x expected, %x received, %zu bytes\n"
, pfrom->addr.ToString()
, pfrom->strSubVer
, sProblem
, pfrom->nPingNonceSent
, nonce
, nAvail);
}
if (bPingFinished) {
pfrom->nPingNonceSent = 0;
}
}
else if (strCommand == "alert")
{
CAlert alert;
vRecv >> alert;
uint256 alertHash = alert.GetHash();
if (pfrom->setKnown.count(alertHash) == 0)
{
if (alert.ProcessAlert())
{
// Relay
pfrom->setKnown.insert(alertHash);
{
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes)
alert.RelayTo(pnode);
}
}
else {
// Small DoS penalty so peers that send us lots of
// duplicate/expired/invalid-signature/whatever alerts
// eventually get banned.
// This isn't a Misbehaving(100) (immediate ban) because the
// peer might be an older or different implementation with
// a different signature key, etc.
pfrom->Misbehaving(10);
}
}
}
else
{
ProcessMessageDarksend(pfrom, strCommand, vRecv);
ProcessMessageMasternode(pfrom, strCommand, vRecv);
ProcessMessageInstantX(pfrom, strCommand, vRecv);
ProcessSpork(pfrom, strCommand, vRecv);
// Ignore unknown commands for extensibility
}
// Update the last seen time for this node's address
if (pfrom->fNetworkNode)
if (strCommand == "version" || strCommand == "addr" || strCommand == "inv" || strCommand == "getdata" || strCommand == "ping")
AddressCurrentlyConnected(pfrom->addr);
return true;
}
// requires LOCK(cs_vRecvMsg)
bool ProcessMessages(CNode* pfrom)
{
//if (fDebug)
// LogPrintf("ProcessMessages(%zu messages)\n", pfrom->vRecvMsg.size());
//
// Message format
// (4) message start
// (12) command
// (4) size
// (4) checksum
// (x) data
//
bool fOk = true;
if (!pfrom->vRecvGetData.empty())
ProcessGetData(pfrom);
// this maintains the order of responses
if (!pfrom->vRecvGetData.empty()) return fOk;
std::deque<CNetMessage>::iterator it = pfrom->vRecvMsg.begin();
while (!pfrom->fDisconnect && it != pfrom->vRecvMsg.end()) {
// Don't bother if send buffer is too full to respond anyway
if (pfrom->nSendSize >= SendBufferSize())
break;
// get next message
CNetMessage& msg = *it;
//if (fDebug)
// LogPrintf("ProcessMessages(message %u msgsz, %zu bytes, complete:%s)\n",
// msg.hdr.nMessageSize, msg.vRecv.size(),
// msg.complete() ? "Y" : "N");
// end, if an incomplete message is found
if (!msg.complete())
break;
// at this point, any failure means we can delete the current message
it++;
// Scan for message start
if (memcmp(msg.hdr.pchMessageStart, Params().MessageStart(), MESSAGE_START_SIZE) != 0) {
LogPrintf("\n\nPROCESSMESSAGE: INVALID MESSAGESTART\n\n");
fOk = false;
break;
}
// Read header
CMessageHeader& hdr = msg.hdr;
if (!hdr.IsValid())
{
LogPrintf("\n\nPROCESSMESSAGE: ERRORS IN HEADER %s\n\n\n", hdr.GetCommand());
continue;
}
string strCommand = hdr.GetCommand();
// Message size
unsigned int nMessageSize = hdr.nMessageSize;
// Checksum
CDataStream& vRecv = msg.vRecv;
uint256 hash = Hash(vRecv.begin(), vRecv.begin() + nMessageSize);
unsigned int nChecksum = 0;
memcpy(&nChecksum, &hash, sizeof(nChecksum));
if (nChecksum != hdr.nChecksum)
{
LogPrintf("ProcessMessages(%s, %u bytes) : CHECKSUM ERROR nChecksum=%08x hdr.nChecksum=%08x\n",
strCommand, nMessageSize, nChecksum, hdr.nChecksum);
continue;
}
// Process message
bool fRet = false;
try
{
fRet = ProcessMessage(pfrom, strCommand, vRecv, msg.nTime);
boost::this_thread::interruption_point();
}
catch (std::ios_base::failure& e)
{
if (strstr(e.what(), "end of data"))
{
// Allow exceptions from under-length message on vRecv
LogPrintf("ProcessMessages(%s, %u bytes) : Exception '%s' caught, normally caused by a message being shorter than its stated length\n", strCommand, nMessageSize, e.what());
}
else if (strstr(e.what(), "size too large"))
{
// Allow exceptions from over-long size
LogPrintf("ProcessMessages(%s, %u bytes) : Exception '%s' caught\n", strCommand, nMessageSize, e.what());
}
else
{
PrintExceptionContinue(&e, "ProcessMessages()");
}
}
catch (boost::thread_interrupted) {
throw;
}
catch (std::exception& e) {
PrintExceptionContinue(&e, "ProcessMessages()");
} catch (...) {
PrintExceptionContinue(NULL, "ProcessMessages()");
}
if (!fRet)
LogPrintf("ProcessMessage(%s, %u bytes) FAILED\n", strCommand, nMessageSize);
break;
}
// In case the connection got shut down, its receive buffer was wiped
if (!pfrom->fDisconnect)
pfrom->vRecvMsg.erase(pfrom->vRecvMsg.begin(), it);
return fOk;
}
bool SendMessages(CNode* pto, bool fSendTrickle)
{
TRY_LOCK(cs_main, lockMain);
if (lockMain) {
// Don't send anything until we get their version message
if (pto->nVersion == 0)
return true;
//
// Message: ping
//
bool pingSend = false;
if (pto->fPingQueued) {
// RPC ping request by user
pingSend = true;
}
if (pto->nPingNonceSent == 0 && pto->nPingUsecStart + PING_INTERVAL * 1000000 < GetTimeMicros()) {
// Ping automatically sent as a latency probe & keepalive.
pingSend = true;
}
if (pingSend) {
uint64_t nonce = 0;
while (nonce == 0) {
RAND_bytes((unsigned char*)&nonce, sizeof(nonce));
}
pto->fPingQueued = false;
pto->nPingUsecStart = GetTimeMicros();
if (pto->nVersion > BIP0031_VERSION) {
pto->nPingNonceSent = nonce;
pto->PushMessage("ping", nonce);
} else {
// Peer is too old to support ping command with nonce, pong will never arrive.
pto->nPingNonceSent = 0;
pto->PushMessage("ping");
}
}
// Start block sync
if (pto->fStartSync && !fImporting && !fReindex) {
pto->fStartSync = false;
PushGetBlocks(pto, pindexBest, uint256(0));
}
// Resend wallet transactions that haven't gotten in a block yet
ResendWalletTransactions();
// Address refresh broadcast
static int64_t nLastRebroadcast;
if (!IsInitialBlockDownload() && (GetTime() - nLastRebroadcast > 24 * 60 * 60))
{
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes)
{
// Periodically clear setAddrKnown to allow refresh broadcasts
if (nLastRebroadcast)
pnode->setAddrKnown.clear();
// Rebroadcast our address
AdvertizeLocal(pnode);
}
if (!vNodes.empty())
nLastRebroadcast = GetTime();
}
//
// Message: addr
//
if (fSendTrickle)
{
vector<CAddress> vAddr;
vAddr.reserve(pto->vAddrToSend.size());
BOOST_FOREACH(const CAddress& addr, pto->vAddrToSend)
{
// returns true if wasn't already contained in the set
if (pto->setAddrKnown.insert(addr).second)
{
vAddr.push_back(addr);
// receiver rejects addr messages larger than 1000
if (vAddr.size() >= 1000)
{
pto->PushMessage("addr", vAddr);
vAddr.clear();
}
}
}
pto->vAddrToSend.clear();
if (!vAddr.empty())
pto->PushMessage("addr", vAddr);
}
//
// Message: inventory
//
vector<CInv> vInv;
vector<CInv> vInvWait;
{
LOCK(pto->cs_inventory);
vInv.reserve(pto->vInventoryToSend.size());
vInvWait.reserve(pto->vInventoryToSend.size());
BOOST_FOREACH(const CInv& inv, pto->vInventoryToSend)
{
if (pto->setInventoryKnown.count(inv))
continue;
// trickle out tx inv to protect privacy
if (inv.type == MSG_TX && !fSendTrickle)
{
// 1/4 of tx invs blast to all immediately
static uint256 hashSalt;
if (hashSalt == 0)
hashSalt = GetRandHash();
uint256 hashRand = inv.hash ^ hashSalt;
hashRand = Hash(BEGIN(hashRand), END(hashRand));
bool fTrickleWait = ((hashRand & 3) != 0);
if (fTrickleWait)
{
vInvWait.push_back(inv);
continue;
}
}
// returns true if wasn't already contained in the set
if (pto->setInventoryKnown.insert(inv).second)
{
vInv.push_back(inv);
if (vInv.size() >= 1000)
{
pto->PushMessage("inv", vInv);
vInv.clear();
}
}
}
pto->vInventoryToSend = vInvWait;
}
if (!vInv.empty())
pto->PushMessage("inv", vInv);
//
// Message: getdata
//
vector<CInv> vGetData;
int64_t nNow = GetTime() * 1000000;
CTxDB txdb("r");
while (!pto->mapAskFor.empty() && (*pto->mapAskFor.begin()).first <= nNow)
{
const CInv& inv = (*pto->mapAskFor.begin()).second;
if (!AlreadyHave(txdb, inv))
{
if (fDebug)
LogPrint("net", "sending getdata: %s\n", inv.ToString());
vGetData.push_back(inv);
if (vGetData.size() >= 1000)
{
pto->PushMessage("getdata", vGetData);
vGetData.clear();
}
mapAlreadyAskedFor[inv] = nNow;
}
pto->mapAskFor.erase(pto->mapAskFor.begin());
}
if (!vGetData.empty())
pto->PushMessage("getdata", vGetData);
}
return true;
}
int64_t GetMasternodePayment(int nHeight, int64_t blockValue)
{
int64_t fix=0, prop=0;
prop = blockValue * Params().MasternodeProportionalReward() / 100;
fix = Params().MasternodeFixReward();
return (int64_t)(prop+fix);
}
| [
"pharmacurrency@gmail.com"
] | pharmacurrency@gmail.com |
f8b821bda42cf31d33d1438e484c3efad1de6423 | 6aa83d5d852be4e7b4d28c3317299bc78407e76c | /histogram.cpp | 28a428cf25e6c186a97c0a39553b34e668bba2a1 | [] | no_license | Jamie-Chang/HandTracker | 18e2f11f2b911adf44068696adbc879b5ec09c2c | 2979b0a7c91bd0953e6f3e54fae83f80cfba84d9 | refs/heads/master | 2021-03-27T19:46:27.087806 | 2016-05-08T16:40:13 | 2016-05-08T16:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,172 | cpp | #include<opencv2/core/core.hpp>
#include<opencv2/imgcodecs.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
/// Global Variables
Mat src; Mat hsv;
Mat mask;
int lo = 20; int up = 20;
const char* window_image = "Source image";
/// Function Headers
void Hist_and_Backproj();
void pickPoint(int event, int x, int y, int, void*);
/**
* @function main
*/
/*
int main()
{
/// Read the image
src = imread("hand_model.jpg", CV_LOAD_IMAGE_COLOR);
/// Transform it to HSV
cvtColor(src, hsv, COLOR_BGR2HSV);
/// Show the image
namedWindow(window_image, WINDOW_AUTOSIZE);
imshow(window_image, src);
/// Set Trackbars for floodfill thresholds
createTrackbar("Low thresh", window_image, &lo, 255, 0);
createTrackbar("High thresh", window_image, &up, 255, 0);
/// Set a Mouse Callback
setMouseCallback(window_image, pickPoint, 0);
waitKey(0);
return 0;
}
*/
/**
* @function pickPoint
*/
void pickPoint(int event, int x, int y, int, void*)
{
if (event != EVENT_LBUTTONDOWN)
{
return;
}
// Fill and get the mask
Point seed = Point(x, y);
int newMaskVal = 255;
Scalar newVal = Scalar(120, 120, 120);
int connectivity = 8;
int flags = connectivity + (newMaskVal << 8) + FLOODFILL_FIXED_RANGE + FLOODFILL_MASK_ONLY;
Mat mask2 = Mat::zeros(src.rows + 2, src.cols + 2, CV_8UC1);
floodFill(src, mask2, seed, newVal, 0, Scalar(lo, lo, lo), Scalar(up, up, up), flags);
mask = mask2(Range(1, mask2.rows - 1), Range(1, mask2.cols - 1));
imshow("Mask", mask);
Hist_and_Backproj();
}
/**
* @function Hist_and_Backproj
*/
void Hist_and_Backproj()
{
MatND hist;
int h_bins = 30; int s_bins = 32;
int histSize[] = { h_bins, s_bins };
float h_range[] = { 0, 179 };
float s_range[] = { 0, 255 };
const float* ranges[] = { h_range, s_range };
int channels[] = { 0, 1 };
/// Get the Histogram and normalize it
calcHist(&hsv, 1, channels, mask, hist, 2, histSize, ranges, true, false);
normalize(hist, hist, 0, 255, NORM_MINMAX, -1, Mat());
/// Get Backprojection
MatND backproj;
calcBackProject(&hsv, 1, channels, hist, backproj, ranges, 1, true);
} | [
"cc751@cam.ac.uk"
] | cc751@cam.ac.uk |
0869e7d75b55d7c4281a5147453c1a4b42c1740b | 7ea5365a0424c50be888cfba52c54fab1779b879 | /Old/대건/2014_2_싸이클.cpp | 336cdafa3a7ecbf7a642b61708554c8ada40c8e8 | [] | no_license | judemin/AlgorithmSolutions | a3e26fb7685f7357fad7fe05743f975fe2fde406 | cef19d14ab7bf9ca70aa73f87d49834f2ee24f31 | refs/heads/master | 2023-06-29T05:22:00.109993 | 2021-08-04T07:07:25 | 2021-08-04T07:07:25 | 259,854,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | #ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif
#include<iostream>
using namespace std;
int exist[1001],cnt = 0;
bool isexist(int a){
int i;
for (i = 0; i < cnt; i++)
if (exist[i] == a)
return true;
return false;
}
int main(void) {
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
int n, p, i, j,re;
cin >> n >> p;
re = n;
while (true) {
re *= n;
re %= p;
if (isexist(re) == true) {
cout << cnt;
break;
}
exist[cnt++] = re;
}
return 0;
} | [
"judemin2087@naver.com"
] | judemin2087@naver.com |
63b0226a7bf9ce15ef2fb73a4bd227aeeb8c3d4a | 4652840c8fa0d701aaca8de426bf64c340a5e831 | /components/sync/driver/generic_change_processor.h | 3734a3ba52bb71e0a30640ba9a488b1dfd587a3a | [
"BSD-3-Clause"
] | permissive | remzert/BraveBrowser | de5ab71293832a5396fa3e35690ebd37e8bb3113 | aef440e3d759cb825815ae12bd42f33d71227865 | refs/heads/master | 2022-11-07T03:06:32.579337 | 2017-02-28T23:02:29 | 2017-02-28T23:02:29 | 84,563,445 | 1 | 5 | BSD-3-Clause | 2022-10-26T06:28:58 | 2017-03-10T13:38:48 | null | UTF-8 | C++ | false | false | 8,265 | h | // 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.
#ifndef COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_H_
#define COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_H_
#include <stdint.h>
#include <memory>
#include <string>
#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "components/sync/model/attachments/attachment_service.h"
#include "components/sync/model/attachments/attachment_service_proxy.h"
#include "components/sync/model/attachments/attachment_store.h"
#include "components/sync/model/change_processor.h"
#include "components/sync/model/data_type_error_handler.h"
#include "components/sync/model/sync_change_processor.h"
#include "components/sync/model/sync_merge_result.h"
namespace syncer {
class SyncApiComponentFactory;
class SyncClient;
class SyncData;
class SyncableService;
class WriteNode;
class WriteTransaction;
namespace syncable {
class Entry;
} // namespace syncable
typedef std::vector<SyncData> SyncDataList;
// Datatype agnostic change processor. One instance of GenericChangeProcessor
// is created for each datatype and lives on the datatype's thread. It then
// handles all interaction with the sync api, both translating pushes from the
// local service into transactions and receiving changes from the sync model,
// which then get converted into SyncChange's and sent to the local service.
//
// As a rule, the GenericChangeProcessor is not thread safe, and should only
// be used on the same thread in which it was created.
class GenericChangeProcessor : public ChangeProcessor,
public SyncChangeProcessor,
public AttachmentService::Delegate,
public base::NonThreadSafe {
public:
// Create a change processor for |type| and connect it to the syncer.
// |attachment_store| can be null which means that datatype will not use sync
// attachments.
GenericChangeProcessor(
ModelType type,
std::unique_ptr<DataTypeErrorHandler> error_handler,
const base::WeakPtr<SyncableService>& local_service,
const base::WeakPtr<SyncMergeResult>& merge_result,
UserShare* user_share,
SyncClient* sync_client,
std::unique_ptr<AttachmentStoreForSync> attachment_store);
~GenericChangeProcessor() override;
// ChangeProcessor interface.
// Build and store a list of all changes into |syncer_changes_|.
void ApplyChangesFromSyncModel(
const BaseTransaction* trans,
int64_t version,
const ImmutableChangeRecordList& changes) override;
// Passes |syncer_changes_|, built in ApplyChangesFromSyncModel, onto
// |local_service_| by way of its ProcessSyncChanges method.
void CommitChangesFromSyncModel() override;
// SyncChangeProcessor implementation.
SyncError ProcessSyncChanges(const tracked_objects::Location& from_here,
const SyncChangeList& change_list) override;
SyncDataList GetAllSyncData(ModelType type) const override;
SyncError UpdateDataTypeContext(
ModelType type,
SyncChangeProcessor::ContextRefreshStatus refresh_status,
const std::string& context) override;
void AddLocalChangeObserver(LocalChangeObserver* observer) override;
void RemoveLocalChangeObserver(LocalChangeObserver* observer) override;
// AttachmentService::Delegate implementation.
void OnAttachmentUploaded(const AttachmentId& attachment_id) override;
// Similar to above, but returns a SyncError for use by direct clients
// of GenericChangeProcessor that may need more error visibility.
virtual SyncError GetAllSyncDataReturnError(SyncDataList* data) const;
// If a datatype context associated with this GenericChangeProcessor's type
// exists, fills |context| and returns true. Otheriwse, if there has not been
// a context set, returns false.
virtual bool GetDataTypeContext(std::string* context) const;
// Returns the number of items for this type.
virtual int GetSyncCount();
// Generic versions of AssociatorInterface methods. Called by
// SyncableServiceAdapter or the DataTypeController.
virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes);
virtual bool CryptoReadyIfNecessary();
// Gets AttachmentService proxy for datatype.
std::unique_ptr<AttachmentService> GetAttachmentService() const;
protected:
// ChangeProcessor interface.
void StartImpl() override; // Does nothing.
UserShare* share_handle() const override;
private:
SyncError AttemptDelete(const SyncChange& change,
ModelType type,
const std::string& type_str,
WriteNode* node,
DataTypeErrorHandler* error_handler);
// Logically part of ProcessSyncChanges.
//
// |new_attachments| is an output parameter containing newly added attachments
// that need to be stored. This method will append to it.
SyncError HandleActionAdd(const SyncChange& change,
const std::string& type_str,
const WriteTransaction& trans,
WriteNode* sync_node,
AttachmentIdSet* new_attachments);
// Logically part of ProcessSyncChanges.
//
// |new_attachments| is an output parameter containing newly added attachments
// that need to be stored. This method will append to it.
SyncError HandleActionUpdate(const SyncChange& change,
const std::string& type_str,
const WriteTransaction& trans,
WriteNode* sync_node,
AttachmentIdSet* new_attachments);
// Begin uploading attachments that have not yet been uploaded to the sync
// server.
void UploadAllAttachmentsNotOnServer();
// Notify every registered local change observer that |change| is about to be
// applied to |current_entry|.
void NotifyLocalChangeObservers(const syncable::Entry* current_entry,
const SyncChange& change);
const ModelType type_;
// The SyncableService this change processor will forward changes on to.
const base::WeakPtr<SyncableService> local_service_;
// A SyncMergeResult used to track the changes made during association. The
// owner will invalidate the weak pointer when association is complete. While
// the pointer is valid though, we increment it with any changes received
// via ProcessSyncChanges.
const base::WeakPtr<SyncMergeResult> merge_result_;
// The current list of changes received from the syncer. We buffer because
// we must ensure no syncapi transaction is held when we pass it on to
// |local_service_|.
// Set in ApplyChangesFromSyncModel, consumed in CommitChangesFromSyncModel.
SyncChangeList syncer_changes_;
// Our handle to the sync model. Unlike normal ChangeProcessors, we need to
// be able to access the sync model before the change processor begins
// listening to changes (the local_service_ will be interacting with us
// when it starts up). As such we can't wait until Start(_) has been called,
// and have to keep a local pointer to the user_share.
UserShare* const share_handle_;
// AttachmentService for datatype. Can be null if datatype doesn't use
// attachments.
std::unique_ptr<AttachmentService> attachment_service_;
// List of observers that want to be notified of local changes being written.
base::ObserverList<LocalChangeObserver> local_change_observers_;
// Must be destroyed before attachment_service_ to ensure WeakPtrs are
// invalidated before attachment_service_ is destroyed.
// Can be null if attachment_service_ is null;
std::unique_ptr<base::WeakPtrFactory<AttachmentService>>
attachment_service_weak_ptr_factory_;
AttachmentServiceProxy attachment_service_proxy_;
base::WeakPtrFactory<GenericChangeProcessor> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(GenericChangeProcessor);
};
} // namespace syncer
#endif // COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_H_
| [
"serg.zhukovsky@gmail.com"
] | serg.zhukovsky@gmail.com |
a6483a0f500209cebfbe4f2f4c8475698aec5f5d | 7257896c92585eb82d9757f193bdd8d10e9a5142 | /beakjoon/BaaaaaaaarkingDog/0x03/10799_쇠막대기.cpp | 13a6dddb0136f9121689ce88e57fecb59bc41081 | [] | no_license | plenilune3/problem_solving_cpp | 2689444c5f9832c9259b2ffef594867be6318961 | adc12c8fa3a2706792c9e89afa0fe31df886154f | refs/heads/master | 2021-08-10T17:38:43.204998 | 2021-08-07T10:15:35 | 2021-08-07T10:15:35 | 253,405,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 584 | cpp | #include <iostream>
#include <stack>
using namespace std;
int main(int argc, char const *argv[])
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
stack<char> s;
string str;
cin >> str;
int length = str.length();
int answer = 0;
for (int i = 0; i < length; i++)
{
if (str[i] == '(')
s.push(str[i]);
else
{
s.pop();
if (str[i-1] == '(')
answer += s.size();
else
answer++;
}
}
cout << answer << "\n";
return 0;
}
| [
"plenilune095@gmail.com"
] | plenilune095@gmail.com |
039e6e804b0403b9b0a1a91424d28200e3676bc4 | a4df2dccb985c5ce1d118ff395b03ff78033ca12 | /ch08/lst8.16.cpp | 81260f6054ed85d9d203a667f8f9b4decd796077 | [] | no_license | mjiggidy/teach_yourself_cpp | d74e661fecf59159aa50b77016b2312f3d44b933 | fbc9e2c750a6e348652377f4ba255dcb4437284c | refs/heads/master | 2023-02-08T21:29:01.544986 | 2020-12-30T22:19:14 | 2020-12-30T22:19:14 | 304,078,673 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | cpp | #include <iostream>
using namespace std;
int main()
{
int* pointsToMany = new(nothrow) int[0xffffffff*30];
if(pointsToMany){
cout << "Got em at 0x" << hex << pointsToMany << endl;
delete[] pointsToMany;
}
else
{
cout << "Nope" << endl;
}
return 0;
} | [
"michael@glowingpixel.com"
] | michael@glowingpixel.com |
67b310214fa9d2fbc0eb5a895fb11b71eedf97f4 | e5c6203b553b6c47511914487ccda74da8f901d3 | /source/module/YunTask/TaskMgr.h | d3d72cbac8cd5757706988cbb403c4fd4a1c4e63 | [] | no_license | KevinJPeng/Demo | 72aa6847fe1bbc0af274593cfc62377291765fe4 | a17dae0cdf9c3f2f001ffe5d24afb0db1436b0ee | refs/heads/master | 2021-06-02T14:09:00.585872 | 2020-02-25T14:13:06 | 2020-02-25T14:13:06 | 139,514,364 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,798 | h | /********************************************************
* 文件说明:任务列表管理,任务的创建,压入,执行,与释放
* 时间 :2015/8/14
* 作者 :周林
********************************************************/
#ifndef _YUNTASKMGR_H_
#define _YUNTASKMGR_H_
#include "..\..\common\Lock.h"
#include "TaskThread.h"
#include "YunTaskStreamCtr.h"
#include "TaskFactory.h"
#include "TaskInfo.h"
class CTaskMgr
{
public:
CTaskMgr(CTaskThread *pTaskThread, CYunTaskStreamCtr* pTaskStreamCtr);
~CTaskMgr();
// 初始化并发运行的任务最大数
void Init(int iMaxConncurrencyTask = 2);
// 判断某个类型的任务是否在任务列表中存在
bool IsInTaskList(int iType);
// 向缓存列表中压入一个任务,根据任务数据自动创建任务对象
void PushTask(T_TASK_DATA tData);
// 查看任务是否已在列表中
bool FindTaskInTaskList(const T_TASK_DATA &tData);
// 轮循任务列表,控制执行
void PollingTask(void);
// 清空任务列表
void ClearTaskList(void);
// 任务执行完成
void TaskFinished(CTaskBase *pTask);
// 强制终止当前任务,不提交执行结果
//void TerminateTask(CTaskBase *pTask);
// 强制终止当前任务,提交执行结果
void TerminateTaskAndSendResult(CTaskBase *pTask);
// 返回当前的任务总数
int GetCachingTaskCount(void);
// 返回正在执行的任务总数
int GetExecingTaskCount(void);
// 停止所有任务,包括正在执行的和尚未执行的
void TerminateAllTasks(void);
// 接收轮循任务通告
void OnNotifyRollingTask();
// 设置轮循线程标志
void SetPollingFlag(bool bFlag);
// 等待轮循线程结束
void WaitEnd();
// 释放TASK内存通告
void NotifyReleaseTask(CTaskBase* pTask);
// 清除操作
void Release();
// 压入结束任务到任务完成列表等待删除
void PushStopTask(CTaskBase* pTask);
// 检测运行任务超时
void CheckOutTimeTask();
//用户输入行为检测
void CheckUserInput();
private:
static DWORD WINAPI ThreadProcPollingTask(LPVOID lpParameter);
static DWORD WINAPI ThreadProcDeleteTask(LPVOID lpParameter);
private:
bool m_bPollingThreadStop;
//允许同时执行的最大任务数
int m_iMaxConcurrencyTask;
//轮循任务线程句柄
HANDLE m_hThreadTaskPolling;
CLock* m_pLock;
CLock* m_pLockDelete;
CTaskThread* m_pTaskThread;
CYunTaskStreamCtr* m_pTaskStreamCtr;
// 缓存的任务
std::vector<pTaskInfo> m_pCacheList;
// 正在执行的任务
std::vector<pTaskInfo> m_pvRunList;
// 缓存执行完的任务 在发送通告之后释放内存
std::vector<pTaskInfo> m_pFinishTaskList;
// 释放列表
std::vector<CTaskBase*> m_pTaskList;
};
#endif //_YUNTASKMGR_H_
| [
"KevinJPeng@163.com"
] | KevinJPeng@163.com |
637f19e0c1acb19bd22c5e06bc68263511437ea8 | 0958cceb81de1c7ee74b0c436b800a1dc54dd48a | /wincewebkit/WebKit/chromium/public/WebTextAffinity.h | 704d9f20423edd38f26ad29c65d7351920ab1f21 | [
"BSD-2-Clause"
] | permissive | datadiode/WinCEWebKit | 3586fac69ba7ce9efbde42250266ddbc5c920c5e | d331d103dbc58406ed610410736b59899d688632 | refs/heads/master | 2023-03-15T23:47:30.374484 | 2014-08-14T14:41:13 | 2014-08-14T14:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,986 | h | /*
* Copyright (C) 2009 Google 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 Google 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.
*/
#ifndef WebTextAffinity_h
#define WebTextAffinity_h
namespace WebKit {
// These constants specify the preferred direction of selection.
enum WebTextAffinity {
WebTextAffinityUpstream, // The selection is moving toward the top of the document.
WebTextAffinityDownstream, // The selection is moving toward the bottom of the document.
};
} // namespace WebKit
#endif
| [
"achellies@163.com"
] | achellies@163.com |
dee73ef1fef549092cfcda378d1d9f351d710684 | 39100b66c5359c5fa7ce2dc3e0bba754f70d73f7 | /Gabriel_B/Lista de exercícios 2/Exercicio 3/ConsoleApplication1/armadura.cpp | c35709eb265780052da786d129c119f4a63ce3e3 | [] | no_license | raphaellc/AlgEDCPP | 74db9cf0b2a27239c7b44b585e436637aa522151 | f37fca39d16aa8b11572603ba173e7bc2e0e870a | refs/heads/master | 2020-03-25T21:11:30.969638 | 2018-11-29T14:24:06 | 2018-11-29T14:24:06 | 144,163,894 | 0 | 0 | null | 2018-12-11T22:08:25 | 2018-08-09T14:28:14 | C++ | UTF-8 | C++ | false | false | 164 | cpp | #include "stdafx.h"
#include "armadura.h"
armadura::armadura()
{
}
armadura::~armadura()
{
}
int armadura::dar_armadura(int x)
{
return x;
}
| [
"noreply@github.com"
] | noreply@github.com |
bccb652b6f8dbd3b88a1845443ebe5384efba030 | a09eebf36957a1b0bb2ce2224246e926032be673 | /Games/Snek/src/headers/eatables.h | 80879f3439040befdefa0fcc06436514a2fab988 | [] | no_license | havel-therock/portfolio | ec22e56aeda801e122c76040ce335445cff47988 | ad6bd5479cdd7a503707e1b68c307e56a0a71e96 | refs/heads/master | 2021-05-18T05:55:07.620738 | 2020-03-30T10:46:21 | 2020-03-30T10:46:21 | 251,145,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | h | #ifndef __EATABLES_H__
#define __EATABLES_H__
#include "block.h"
#include "preparations.h"
class Eatables{
public:
std::vector<Block*> pears;
std::vector<Block*> snake;
Eatables();
void generateNewFruit(std::vector<Block*> snake);
void render(SDL_Renderer* gRenderer);
void remove(int handler);
~Eatables();
};
#endif | [
"kacper.szatan@gmail.com"
] | kacper.szatan@gmail.com |
15b9bde76423886b070d838f295e27c7cd16b9eb | 526e6a8018fdd57c3f435e4b080611cf3a45b12f | /U1/Tema_1.3_Herencia/Proyecto_Clase_Empleado/EmpleadoPorComision.cpp | 2c6e14f22f030f61b4573523782297ffb0db81b3 | [] | no_license | sotrteacher/prograavanzada_201808_201812 | cd66891103de446ffe3cb9befe2a4996fe3d35df | 12ea033cb8bd004f1bdc1df8ecc1f5103abe736e | refs/heads/master | 2020-03-25T16:14:12.654121 | 2019-06-19T16:55:38 | 2019-06-19T16:55:38 | 143,921,274 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,917 | cpp | #include "stdafx.h"
#include <iostream>
using std::cout;
#include "EmpleadoPorComision.h"
//constructor
EmpleadoPorComision::EmpleadoPorComision(const string& nombre,
const string& apellido, const string&nss,
double ventas, double tarifa)
{
primerNombre = nombre;
apellidoPaterno = apellido;
numeroSeguroSocial = nss;
setVentasBrutas(ventas);
setTarifaComision(tarifa);
}//end constructor EmpleadoPorComision
EmpleadoPorComision::~EmpleadoPorComision()
{
}
void EmpleadoPorComision::setPrimerNombre(const string& nombre) {
primerNombre = nombre;
}
string EmpleadoPorComision::getPrimerNombre() const{
return primerNombre;
}
void EmpleadoPorComision::setApellidoPaterno(const string& apellido) {
apellidoPaterno = apellido;
}
string EmpleadoPorComision::getApellidoPaterno() const {
return apellidoPaterno;
}
void EmpleadoPorComision::setNumeroSeguroSocial(const string& nss) {
numeroSeguroSocial = nss;
}
string EmpleadoPorComision::getNumeroSeguroSocial() const {
return numeroSeguroSocial;
}
void EmpleadoPorComision::setVentasBrutas(double ventas) {
ventasBrutas = (ventas<0.0)?0.0:ventas;
}
double EmpleadoPorComision::getVentasBrutas() const {
return ventasBrutas;
}
void EmpleadoPorComision::setTarifaComision(double tarifa) {
tarifaComision = (tarifa > 0.0 && tarifa < 1.0) ? tarifa : 0.0;
}
double EmpleadoPorComision::getTarifaComision() const {
return tarifaComision;
}
//calcula los ingresos
double EmpleadoPorComision::ingresos() const {
return tarifaComision * ventasBrutas;
}
//imprime el objeto EmpleadoPorComision
void EmpleadoPorComision::imprimir() const {
cout << "Empleado por comisi\\'on: " << primerNombre << ' '
<< apellidoPaterno << "\nN\\'umero de seguro social: "
<< numeroSeguroSocial << "\nVentas brutas: "
<< ventasBrutas << "\nTarifa de comisi\\'on: "
<< tarifaComision;
} | [
"noreply@github.com"
] | noreply@github.com |
f8176ed10b29647959821dfe391c9d70a0462671 | 48298469e7d828ab1aa54a419701c23afeeadce1 | /Client/SceneEdit/src/SimplePaintAction.cpp | b68d9bcbaf6e0cc6e6de17950c584d339a1ed1a2 | [] | no_license | brock7/TianLong | c39fccb3fd2aa0ad42c9c4183d67a843ab2ce9c2 | 8142f9ccb118e76a5cd0a8b168bcf25e58e0be8b | refs/heads/master | 2021-01-10T14:19:19.850859 | 2016-02-20T13:58:55 | 2016-02-20T13:58:55 | 52,155,393 | 5 | 3 | null | null | null | null | GB18030 | C++ | false | false | 17,071 | cpp | #include "SimplePaintAction.h"
#include "SceneManipulator.h"
#include "HitIndicator.h"
#include "TerrainSelections.h"
#include "BrushShape.h"
#include <OgreStringConverter.h>
namespace WX {
//-----------------------------------------------------------------------
SimplePaintAction::SimplePaintAction(SceneManipulator* sceneManipulator)
: PaintAction(sceneManipulator),
mbTexNormalSize(true)
{
mCurrentGrids = new GridSelection(getTerrain(),sceneManipulator);
mHintModified = new GridSelection(getTerrain(),sceneManipulator);
mModifiedGrids = new GridSelection(getTerrain(),sceneManipulator);
mbUseRandomOrientation = false;
}
//-----------------------------------------------------------------------
SimplePaintAction::~SimplePaintAction()
{
delete mCurrentGrids;
delete mHintModified;
delete mModifiedGrids;
}
//-----------------------------------------------------------------------
const String& SimplePaintAction::getName(void) const
{
static const String name = "SimplePaintAction";
return name;
}
//-----------------------------------------------------------------------
void SimplePaintAction::setParameter(const String& name, const String& value)
{
/** 增强了SimplePaintAction的功能,不仅可以用单张纹理进行非自动拼接的paint,也可以
用一组纹理(同个文件夹下)来做为画刷
如果只选择一张纹理,就可以调整纹理的方向,如果选择一组纹理,纹理的方向随机产生
现在的设置action的顺序为
GetSceneManipulator()->_getAction("SimplePaintAction");
action->setParameter( "%TextureName", "InputBegin" );
action->setParameter( "%TextureName", 纹理名称 );
如有需要,设置方向
action->setParameter( "%OrientationType",。。。)
*/
if (Ogre::StringUtil::startsWith(name, "%", false))
{
Ogre::String parameter = name.substr(1);
if ( parameter == "TextureName" )
{
if ( value == "InputBegin" )
{
mPixmapArray.clear();
}
else
{
/* 解析纹理信息字符串
0 -- 纹理名称
1 -- height
2 -- width
3 -- left
4 -- top
5 -- 源纹理的高度
6 -- 源纹理的宽度
7 -- 纹理的类型
8 -- 纹理的方向
中间用"|"隔开
*/
Ogre::StringVector infoVector = Ogre::StringUtil::split(value, "|");
assert (infoVector.size() == 8);
PaintPixmap pixmap(infoVector[0]);
// 计算出纹理坐标
uint height = Ogre::StringConverter::parseUnsignedInt(infoVector[1]);
uint width = Ogre::StringConverter::parseUnsignedInt(infoVector[2]);
mXBrushSize = width;
mZBrushSize = height;
uint leftcorner = Ogre::StringConverter::parseUnsignedInt(infoVector[3]);
uint topcorner = Ogre::StringConverter::parseUnsignedInt(infoVector[4]);
uint ownerTexHeight = Ogre::StringConverter::parseUnsignedInt(infoVector[5]);
uint ownerTexWidht = Ogre::StringConverter::parseUnsignedInt(infoVector[6]);
pixmap.left = (float)(TexTileSize*leftcorner) / (float)ownerTexWidht;
pixmap.top = (float)(TexTileSize*topcorner) / (float)ownerTexHeight;
pixmap.bottom = (float)(TexTileSize*(topcorner+height)) / (float)ownerTexHeight;
pixmap.right = (float)(TexTileSize*(leftcorner+width)) / (float)ownerTexWidht;
uint rotateType = Ogre::StringConverter::parseUnsignedInt(infoVector[7]);
enum
{
Left,
Top,
Right,
Bottom,
};
enum
{
LeftTop,
RightBottom = 3,
};
// 一组索引表,可以用于方便地找出旋转方向与纹理坐标的对应关系
static const int cornerIndexMap[4][4][2] =
{
Left, Top,
Right, Top,
Left, Bottom,
Right, Bottom,
Right, Top,
Left, Top,
Right, Bottom,
Left, Bottom,
Left, Bottom,
Right, Bottom,
Left, Top,
Right, Top,
Right, Bottom,
Left, Bottom,
Right, Top,
Left, Top,
};
float texCoord[4] = { pixmap.left, pixmap.top, pixmap.right, pixmap.bottom };
// 最后一个索引项,0表示纹理u坐标,1表示纹理v坐标
pixmap.left = texCoord[ cornerIndexMap[ rotateType ][ LeftTop ][0] ];
pixmap.top = texCoord[ cornerIndexMap[ rotateType ][ LeftTop ][1] ];
pixmap.right = texCoord[ cornerIndexMap[ rotateType ][ RightBottom ][0] ];
pixmap.bottom = texCoord[ cornerIndexMap[ rotateType ][ RightBottom ][1] ];
mPixmapArray.push_back(pixmap);
}
}
else if ( parameter == "TexNormalSize" )
{
if ( value == "true" )
mbTexNormalSize = true;
else if ( value == "false" )
mbTexNormalSize = false;
}
else if ( parameter == "OrientationType" )
{
setPixmapOrientationType( atoi(value.c_str()) );
}
else if ( parameter == "UseRandomOrientation" )
{
if ( value == "true" )
mbUseRandomOrientation = true;
else if ( value == "false" )
mbUseRandomOrientation = false;
}
}
else
{
Action::setParameter(name, value);
}
}
//-----------------------------------------------------------------------
String SimplePaintAction::getParameter(const String& name) const
{
if (Ogre::StringUtil::startsWith(name, "%", false))
{
Ogre::String parameter = name.substr(1);
if ( parameter == "IsInit" )
{
if ( mPixmapArray.size() > 0 )
{
return "Yes";
}
else
return "No";
}
else
return Action::getParameter(name);
}
else
return Action::getParameter(name);
}
//-----------------------------------------------------------------------
void SimplePaintAction::_buildHitIndicator(const Point& pt)
{
Ogre::Vector3 position;
bool intersected = getSceneManipulator()->getTerrainIntersects(pt, position);
if (!intersected)
{
mCurrentGrids->reset();
return;
}
// 如果当前所选用的纹理的大小超过了64,那么要根据纹理的大小和画刷的大小来构建选择区域
if (!mbTexNormalSize)
{
int oldBrushXSize = getSceneManipulator()->getBrushXSize();
int oldBrushZSize = getSceneManipulator()->getBrushZSize();
// 临时设置画刷大小
getSceneManipulator()->setBrushXSize(oldBrushXSize*mXBrushSize);
getSceneManipulator()->setBrushZSize(oldBrushZSize*mZBrushSize);
getSceneManipulator()->getHitIndicator("IntersectGrids")->setHitPoint(pt);
getSceneManipulator()->_buildSelection(mCurrentGrids, position.x, position.z);
// 构建完区域后又设置回去
getSceneManipulator()->setBrushXSize(oldBrushXSize);
getSceneManipulator()->setBrushZSize(oldBrushZSize);
}
else
{
getSceneManipulator()->getHitIndicator("IntersectGrids")->setHitPoint(pt);
getSceneManipulator()->_buildSelection(mCurrentGrids, position.x, position.z);
}
getSceneManipulator()->getHitIndicator("IntersectPoint")->setHitPoint(pt);
}
//-----------------------------------------------------------------------
void SimplePaintAction::_doPaint(GridSelection* modified)
{
// 如果当前所保存的pixmap为0,直接返回
if (mPixmapArray.empty())
{
return;
}
int texCount = mPixmapArray.size();
int pixmapId = 0;
int orientataionType = getPixmapOrientationType();
int orientation = 0;
String mCurrentTexName;
const GridSelection::GridMap& grids = mCurrentGrids->getGrids();
if (!grids.empty())
{
// 如果只选择一张纹理,或一个文件夹下只有一张纹理
if ( texCount == 1 )
{
// 如果当前的纹理为普通大小,就马上设置纹理
if ( mbTexNormalSize == true )
{
setPixmap(mPixmapArray[0].textureName, mPixmapArray[0].left, mPixmapArray[0].top,
mPixmapArray[0].right, mPixmapArray[0].bottom);
pixmapId = getPixmapId();
}
// 否则,只得到纹理名称,在循环中设置纹理
else
{
mCurrentTexName = mPixmapArray[0].textureName;
orientation = 0;
}
}
// 如果多于一张纹理,在这里也是随机取得一张纹理的名称
if ( texCount > 1 && mbTexNormalSize == false )
{
int index = static_cast<int>(Ogre::Math::RangeRandom(0,texCount));
if (index == texCount)
{
index = 0;
}
assert (index < texCount);
mCurrentTexName = mPixmapArray[ index ].textureName;
}
bool anyModified = false;
// 获取左上角的坐标
const GridSelection::Grid &firstGrid = grids.begin()->second;
int minx = firstGrid.x;
int minz = firstGrid.z;
// 计算格之间的纹理坐标增量
float xInc = (mPixmapArray[0].right- mPixmapArray[0].left) / mXBrushSize;
float zInc = (mPixmapArray[0].bottom - mPixmapArray[0].top) / mZBrushSize;
for (GridSelection::GridMap::const_iterator it = grids.begin(); it != grids.end(); ++it)
{
// 如果纹理个数大于1,就使用随机纹理,不使用随机方向
if ( texCount > 1 )
{
if ( mbTexNormalSize )
{
// String texName;
int index = 0;
if ( modified != mHintModified )
{
index = static_cast<int>(Ogre::Math::RangeRandom(0,texCount));
if (index == texCount)
{
index = 0;
}
assert (index < texCount);
// texName = mPixmapArray[index].textureName;
// orientation = static_cast<int>(Ogre::Math::RangeRandom(0,7));
orientation = 0;
}
/*else
{
texName = mPixmapArray[0].textureName;
}*/
// 用这个id来索引pixmap
setPixmap(mPixmapArray[index].textureName, mPixmapArray[index].left, mPixmapArray[index].top,
mPixmapArray[index].right, mPixmapArray[index].bottom);
pixmapId = getPixmapId();
}
}
else
{
if ( mbTexNormalSize )
{
if ( mbUseRandomOrientation )
{
if (modified != mHintModified)
{
const int oriTypeCount = 8;
orientation = static_cast<int>(Ogre::Math::RangeRandom(0,oriTypeCount));
if (orientation == oriTypeCount)
{
orientation = 0;
}
assert ( orientation < oriTypeCount);
}
else
orientation = 0;
}
else
orientation = orientataionType;
}
}
const GridSelection::Grid& grid = it->second;
if ( mbTexNormalSize == false )
{
int x = grid.x;
int z = grid.z;
float left = (x-minx)%mXBrushSize*xInc;
float top = (z-minz)%mZBrushSize*zInc;
setPixmap( mPixmapArray[0].textureName, mPixmapArray[0].left + left, mPixmapArray[0].top + top,
mPixmapArray[0].left + left + xInc, mPixmapArray[0].top + top + zInc );
pixmapId = getPixmapId();
}
TerrainData::GridInfo info = grid.info;
const bool isTransparent = getPixmapTransparent();
if (isTransparent)
{
if (!info.layers[0].pixmapId)
continue;
/** 这里有个隐藏的错误
没判断当前格的纹理与所用的透明纹理是否属于同一组的
如果同一组的,就不应该涂上该透明纹理,因为从画面上可能看不到效果,
而且会造成效率上的一点点问题,因为会用双层纹理渲染的方法来渲染该格纹理
这里暂时先用纹理名称来进行判断,判断是否为同组纹理
*/
TerrainData *terrainData = getTerrainData();
assert (terrainData);
// 比较上下层的画刷名称,如果一样,说明是同一组画刷
String layerOneTexName = terrainData->mTextures[ terrainData->mPixmaps[info.layers[0].pixmapId-1].textureId ];
assert ( !layerOneTexName.empty() );
String layerOneBrushName =
mSceneManipulator->getTerrainPaintInfoContainer()->findBrushNameByTexName(layerOneTexName);
String layerTwoTexName = terrainData->mTextures[ terrainData->mPixmaps[pixmapId-1].textureId ];
assert ( !layerTwoTexName.empty() );
String layerTwoBrushName =
mSceneManipulator->getTerrainPaintInfoContainer()->findBrushNameByTexName(layerTwoTexName);
if ( layerOneBrushName == layerTwoBrushName )
continue;
info.layers[1].pixmapId = pixmapId;
info.layers[1].orientation = orientation;
}
else
{
info.layers[0].pixmapId = pixmapId;
info.layers[0].orientation = orientation;
/*if (info.layers[1].pixmapId > 0)
{*/
info.layers[1].pixmapId = 0;
info.layers[1].orientation = 0;
// }
}
if (info == grid.info)
continue;
anyModified = true;
modified->add(grid.x, grid.z);
getTerrainData()->setGridInfo(grid.x, grid.z, info);
}
if (anyModified)
{
mCurrentGrids->notifyModified();
}
}
}
//-----------------------------------------------------------------------
void SimplePaintAction::_onActive(bool active)
{
if (!active)
{
mHintModified->apply();
mHintModified->reset();
}
}
//-----------------------------------------------------------------------
void SimplePaintAction::_onMove(const Point& pt)
{
mHintModified->apply();
mHintModified->reset();
_buildHitIndicator(pt);
_doPaint(mHintModified);
}
//-----------------------------------------------------------------------
void SimplePaintAction::_onBegin(const Point& pt)
{
mHintModified->apply();
mHintModified->reset();
mModifiedGrids->reset();
_buildHitIndicator(pt);
_doPaint(mModifiedGrids);
}
//-----------------------------------------------------------------------
void SimplePaintAction::_onDrag(const Point& pt)
{
_buildHitIndicator(pt);
_doPaint(mModifiedGrids);
}
//-----------------------------------------------------------------------
void SimplePaintAction::_onEnd(const Point& pt, bool canceled)
{
/*if (canceled)
{
mModifiedGrids->apply();
}*/
doFinish(mModifiedGrids,canceled);
mModifiedGrids->reset();
_buildHitIndicator(pt);
}
}
| [
"xiaowave@gmail.com"
] | xiaowave@gmail.com |
71b9ca5ba3c77153b4f8d574055fff9a4cb8d1f2 | f043ea2cacdb9fff33c0995e9737d0d485867309 | /UniquePath/UniquePathII.cpp | bfe9da5988b151117c8c9571595111196f067f7f | [] | no_license | jszhujun2010/LeetCode | 5a863712f2968705c35902f2048d65f14c4d1a67 | 89fb6712a137d6a9a7f69c4d51683d1f039f2c84 | refs/heads/master | 2021-01-10T09:25:49.426403 | 2016-01-29T01:38:30 | 2016-01-29T01:38:30 | 50,625,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,389 | cpp | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid) {
int m = obstacleGrid.size();
if (m < 1) return 0;
int n = obstacleGrid[0].size();
vector<vector<int>> res(obstacleGrid);
if (obstacleGrid[0][0] == 1) return 0;
res[0][0] = 1;
for (int i = 1; i < m; i++) {
if (obstacleGrid[i][0] == 1)
res[i][0] = 0;
else
res[i][0] = res[i-1][0];
}
for (int i = 1; i < n; i++) {
if (obstacleGrid[0][i] == 1)
res[0][i] = 0;
else
res[0][i] = res[0][i-1];
}
for (int j = 1; j < m; j++) {
for (int k = 1; k < n; k++) {
if (obstacleGrid[j][k] == 1)
res[j][k] = 0;
else
res[j][k] = res[j-1][k]+res[j][k-1];
}
}
return res[m-1][n-1];
}
};
int main() {
Solution sln = Solution();
vector<vector<int>> obstacleGrid;
vector<int> vec1 = {0,1,0};
vector<int> vec2 = {0,1,0};
vector<int> vec3 = {0,0,0};
obstacleGrid.push_back(vec1);
obstacleGrid.push_back(vec2);
obstacleGrid.push_back(vec3);
cout << sln.uniquePathsWithObstacles(obstacleGrid) << endl;
}
| [
"jszhujun2010@gmail.com"
] | jszhujun2010@gmail.com |
c6db5a4c6e044e8886fbef78fa27aac61bfb0e9c | ecfd47b1144d04e7553b265911ac160f2b64dcbb | /AlgorithmCategory/AlgorithmCategory/약수.cpp | 8fe110ccb0511bf06118614d9a14b650b3f9de98 | [] | no_license | qwefgh90/AlgorithmSolution | fbbc2abd04285f78ae4f97334b8ac473a36c766c | 16ebdeeadf7f99f8e8bad0fe5c091cfd9a17dced | refs/heads/master | 2021-01-16T18:20:52.654829 | 2017-09-02T12:19:15 | 2017-09-02T12:19:15 | 23,984,485 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 929 | cpp | #include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#include <math.h>
#include <iostream>
int main(){
int testcase = 0;
scanf("%d", &testcase);
for (int i = 0; i < testcase; i++){
printf("#testcase%d\n", i + 1);
int n;
int k;
scanf("%d %d", &n, &k);
int cnt = 0;
int flag = 0;
int n2 = n / 2;
int sqrtv = sqrtl(n);
char m[100] = { 0, };
for (int i = 1; i <= sqrtv; i++){
if (n%i == 0){
cnt++;
if (cnt == k){
printf("%d\n", i);
flag = 1;
break;
}
}
}
if (cnt == 1 && flag == 0){
printf("0\n");
continue;
}
for (int i = sqrtv+1; i <= n2; i++){
if (n%i == 0){
cnt++;
if (cnt == k){
printf("%d\n", i);
flag = 1;
break;
}
}
if (i == n2){
cnt++;
if (cnt == k){
flag = 1;
printf("%d\n", n);
break;
}
}
}
if (flag == 0){
printf("0\n");
}
}
return 0;
} | [
"qwefgh90@naver.com"
] | qwefgh90@naver.com |
c8a43000cbd5aeab013edad8014850d681675646 | b73dec0c4d72c5d9df4e3d600f09902004164712 | /src/geometry/graphicsScene.cpp | 0c3287c527c5d8b02050f48300b138a95e20354a | [] | no_license | PavelAmialiushka/Natrix | f77ec845a052965db41af902354f973614b17798 | 1d71b58528c43a76f23a5c9eccd271f5b8aad14b | refs/heads/main | 2022-07-04T08:01:21.357306 | 2022-06-18T07:41:40 | 2022-06-18T07:41:40 | 410,462,763 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,677 | cpp | #include "graphicsScene.h"
#include "pointProcedures.h"
#include <QPainter>
namespace geometry
{
GraphicsScene::GraphicsScene(PWorldSystem pw)
: pws_(pw)
{
noCursorPoint_ = true;
textEditMode_ = false;
}
PWorldSystem GraphicsScene::ws() const
{
return pws_;
}
void GraphicsScene::setCursorPoint(point2d p)
{
cursorPoint_ = p;
noCursorPoint_ = false;
}
void GraphicsScene::noCursorPoint()
{
noCursorPoint_ = true;
}
void GraphicsScene::drawForeground(QPainter *painter, const QRectF &rect)
{
if(noCursorPoint_)
return;
point2d pt = cursorPoint_;
WorldSystem &pw = *pws_;
point3d p = pw.toGlobal(pt);
QList<point3d> dirs;
dirs << point3d(1, 0) << point3d(-1, 0) << point3d(0, 1) << point3d(0, -1);
QList<point2d> pts;
foreach(point3d d, dirs)
{
pts << pw.toUser(p + d);
}
point2d lt(rect.left(), rect.top());
point2d rb(rect.right(), rect.bottom());
point2d rt(rb.x, lt.y);
point2d lb(lt.x, rb.y);
if(lt == rb)
return;
QList<point2d> brds, pts2;
brds << lt << lb << rt << rb << lt << rt << lb << rb;
auto compareByXY = [](point2d a, point2d b) -> bool {
return std::abs(a.x - b.x) < POINT_PREC ? a.y < b.y : a.x < b.x;
};
for(int p_index = 0; p_index < pts.size(); p_index += 2)
{
point2d aa = pts[p_index], bb = pts[p_index + 1];
pts2.clear();
for(int b_index = 0; b_index < brds.size(); b_index += 2)
{
point2d m1 = brds[b_index];
point2d m2 = brds[b_index + 1];
bool ins, np;
point2d q = cross_lines2d(aa, bb, m1, m2, &ins, &np);
if(np)
{
pts2 << q;
}
}
std::sort(pts2.begin(), pts2.end(), compareByXY);
if(pts2.size() == 4)
{
pts2.takeFirst();
pts2.takeLast();
}
pts[p_index] = pts2[0];
pts[p_index + 1] = pts2[1];
}
QPen pen(QBrush(QColor(255, 0, 0, 192)), 1, Qt::DotLine, Qt::RoundCap);
painter->save();
painter->setPen(pen);
painter->setBrushOrigin(cursorPoint_.toQPoint());
painter->drawLine(QLineF(pts[0].toQPoint(), pts[1].toQPoint()));
painter->drawLine(QLineF(pts[2].toQPoint(), pts[3].toQPoint()));
painter->restore();
}
void GraphicsScene::setTextEditMode(bool mode)
{
textEditMode_ = mode;
if(!mode)
setFocusItem(0);
}
void GraphicsScene::focusInEvent(QFocusEvent *event)
{
QGraphicsScene::focusInEvent(event);
if(focusItem() && !textEditMode_)
{
setFocusItem(0);
}
}
} // namespace geometry
| [
"velok@mail.ru"
] | velok@mail.ru |
91a45fdb88d33494c5c607d080c1b1ba04240588 | c029be629ccb6fed22a84bdb3694c1d50be30b17 | /Arduino/Client_AM2560/SendColor.ino | 060d0dc71d855c0515ce97ce05075f2abe132ced | [] | no_license | alfafox75/Andon-RFID | 06ab47b37f3c88aabf915cc5a90bfe46ccb68664 | f4214965cde53bdcbe36e7a51cdb8517167cfb28 | refs/heads/master | 2020-04-10T02:38:41.478546 | 2018-04-13T10:23:45 | 2018-04-13T10:23:45 | 124,256,685 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,810 | ino | void SendColor()
{
char data[50] = {0} ;
int dataLength = 17; // Payload Length
uint16_t recCRCData = 0;
Serial.print("NODE_ID: ");
for (int i = 0; i < 3; i++) {
data[i] = node_id[i];
Serial.print(node_id[i],HEX);
}
Serial.println("");
Serial.print("CLIENT_ID: ");
for (int i = 0; i < 14; i++) {
data[3+i] = client_id[i];
Serial.print(char(client_id[i]));
}
Serial.println("");
uint16_t crcData = CRC16((unsigned char*)data,dataLength);//get CRC DATA
Serial.print("Data length: ");
Serial.println(dataLength +2);
Serial.print("Data to be sent(without CRC): ");
for(int i = 0;i < dataLength; i++)
{
Serial.print(data[i],HEX);
Serial.print(" ");
}
Serial.println();
unsigned char sendBuf[50]={0};
for(int i = 0;i < dataLength;i++)
{
sendBuf[i] = data[i] ;
}
sendBuf[dataLength] = (unsigned char)crcData; // Add CRC to LoRa Data
sendBuf[dataLength+1] = (unsigned char)(crcData>>8); // Add CRC to LoRa Data
Serial.print("Data to be sent(with CRC): ");
for(int i = 0;i < (dataLength +2); i++)
{
Serial.print(sendBuf[i],HEX);
Serial.print(" ");
}
Serial.println();
rf95.send(sendBuf, dataLength+2);//Send LoRa Data
rf95.waitPacketSent(3000);
if (rf95.waitAvailableTimeout(5000))// Check If there is reply in 10 seconds.
{
len = 4;
if (rf95.recv(buf, &len))//check if reply message is correct
{
if(buf[0] == 1 ||buf[1] == 0 ||buf[2] == 0 ) // Check if reply message has the our node ID
{
digitalWrite(3, HIGH);
//tone(4,4000,200);
Serial.print("Got Reply from Gateway: ");//print reply
for (int i = 0; i < 3; i++) {
Serial.print(buf[i], HEX);
}
Serial.println(char(buf[3]));
if (char(buf[3])=='1') {state_id = '1';}
else if (char(buf[3])=='2') {state_id = '2';}
else if (char(buf[3])=='3') {state_id = '3';}
Serial.print("RSSI: "); // print RSSI
Serial.println(rf95.lastRssi(), DEC);
}
}
else
{
display.setCursor(0, 1);
display.print("**** ERRORE TX ***");
Serial.println("recv failed");//
rf95.send(sendBuf, strlen((char*)sendBuf));//resend if no reply
}
}
else
{
display.setCursor(0, 1);
display.print("* NESSUNA RISPOSTA *");
Serial.println("No reply, is LoRa gateway running?");//No signal reply
rf95.send(sendBuf, strlen((char*)sendBuf));//resend data
}
Serial.println("");
relectrl();
delay(2000);
}
| [
"37150810+alfafox75@users.noreply.github.com"
] | 37150810+alfafox75@users.noreply.github.com |
8db43e7382dbc4fda3366d845765c554e1168f83 | 887f3a72757ff8f691c1481618944b727d4d9ff5 | /third_party/gecko_1.9.1/win32/gecko_sdk/include/nsIJSON.h | 2b48d43c601524f28485844d3b9139afae3d2d48 | [] | no_license | zied-ellouze/gears | 329f754f7f9e9baa3afbbd652e7893a82b5013d1 | d3da1ed772ed5ae9b82f46f9ecafeb67070d6899 | refs/heads/master | 2020-04-05T08:27:05.806590 | 2015-09-03T13:07:39 | 2015-09-03T13:07:39 | 41,813,794 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,646 | h | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/mozilla-1.9.1-win32-xulrunner/build/dom/public/idl/json/nsIJSON.idl
*/
#ifndef __gen_nsIJSON_h__
#define __gen_nsIJSON_h__
#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIInputStream; /* forward declaration */
class nsIOutputStream; /* forward declaration */
class nsIScriptGlobalObject; /* forward declaration */
/* starting interface: nsIJSON */
#define NS_IJSON_IID_STR "45464c36-efde-4cb5-8e00-07480533ff35"
#define NS_IJSON_IID \
{0x45464c36, 0xefde, 0x4cb5, \
{ 0x8e, 0x00, 0x07, 0x48, 0x05, 0x33, 0xff, 0x35 }}
/**
* Encode and decode JSON text.
*/
class NS_NO_VTABLE NS_SCRIPTABLE nsIJSON : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJSON_IID)
/* AString encode (); */
NS_SCRIPTABLE NS_IMETHOD Encode(nsAString & _retval NS_OUTPARAM) = 0;
/* void encodeToStream (in nsIOutputStream stream, in string charset, in boolean writeBOM); */
NS_SCRIPTABLE NS_IMETHOD EncodeToStream(nsIOutputStream *stream, const char *charset, PRBool writeBOM) = 0;
/* void decode (in AString str); */
NS_SCRIPTABLE NS_IMETHOD Decode(const nsAString & str) = 0;
/* void decodeFromStream (in nsIInputStream stream, in long contentLength); */
NS_SCRIPTABLE NS_IMETHOD DecodeFromStream(nsIInputStream *stream, PRInt32 contentLength) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIJSON, NS_IJSON_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIJSON \
NS_SCRIPTABLE NS_IMETHOD Encode(nsAString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD EncodeToStream(nsIOutputStream *stream, const char *charset, PRBool writeBOM); \
NS_SCRIPTABLE NS_IMETHOD Decode(const nsAString & str); \
NS_SCRIPTABLE NS_IMETHOD DecodeFromStream(nsIInputStream *stream, PRInt32 contentLength);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIJSON(_to) \
NS_SCRIPTABLE NS_IMETHOD Encode(nsAString & _retval NS_OUTPARAM) { return _to Encode(_retval); } \
NS_SCRIPTABLE NS_IMETHOD EncodeToStream(nsIOutputStream *stream, const char *charset, PRBool writeBOM) { return _to EncodeToStream(stream, charset, writeBOM); } \
NS_SCRIPTABLE NS_IMETHOD Decode(const nsAString & str) { return _to Decode(str); } \
NS_SCRIPTABLE NS_IMETHOD DecodeFromStream(nsIInputStream *stream, PRInt32 contentLength) { return _to DecodeFromStream(stream, contentLength); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIJSON(_to) \
NS_SCRIPTABLE NS_IMETHOD Encode(nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Encode(_retval); } \
NS_SCRIPTABLE NS_IMETHOD EncodeToStream(nsIOutputStream *stream, const char *charset, PRBool writeBOM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EncodeToStream(stream, charset, writeBOM); } \
NS_SCRIPTABLE NS_IMETHOD Decode(const nsAString & str) { return !_to ? NS_ERROR_NULL_POINTER : _to->Decode(str); } \
NS_SCRIPTABLE NS_IMETHOD DecodeFromStream(nsIInputStream *stream, PRInt32 contentLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->DecodeFromStream(stream, contentLength); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsJSON : public nsIJSON
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIJSON
nsJSON();
private:
~nsJSON();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsJSON, nsIJSON)
nsJSON::nsJSON()
{
/* member initializers and constructor code */
}
nsJSON::~nsJSON()
{
/* destructor code */
}
/* AString encode (); */
NS_IMETHODIMP nsJSON::Encode(nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void encodeToStream (in nsIOutputStream stream, in string charset, in boolean writeBOM); */
NS_IMETHODIMP nsJSON::EncodeToStream(nsIOutputStream *stream, const char *charset, PRBool writeBOM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void decode (in AString str); */
NS_IMETHODIMP nsJSON::Decode(const nsAString & str)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void decodeFromStream (in nsIInputStream stream, in long contentLength); */
NS_IMETHODIMP nsJSON::DecodeFromStream(nsIInputStream *stream, PRInt32 contentLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIJSON_h__ */
| [
"gears.daemon@fe895e04-df30-0410-9975-d76d301b4276"
] | gears.daemon@fe895e04-df30-0410-9975-d76d301b4276 |
e46e39e962f6432759e21e7770ee2127494f208f | 626ef95bfdd34580fb0dabbf6a70ed329d313cf5 | /important_data_structures_and_algorithms/linkedlist.hpp | 65338adc09e174a05b5a79ec0d27a1ae998aaa0c | [] | no_license | jonajourney/interview_preparation | e6bc630a58d7d5dcc46b9a562ba7324d57eb3b96 | 75c9c99ae158545e055a818cb7509a1e1889b931 | refs/heads/master | 2021-01-11T08:09:30.331365 | 2016-12-16T16:18:11 | 2016-12-16T16:18:11 | 70,110,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | hpp | #ifndef LINKEDLIST
#define LINKEDLIST
#include <iostream>
using namespace std;
struct node{
int value;
node *next;
}
class LinkedList{
private:
node *head;
int listLength;
public:
LinkedList();
bool insertNode(node * newNode, int position);
bool removeNode(int position);
void printList();
~LinkedList();
}
}
| [
"sohxx016@umn.edu"
] | sohxx016@umn.edu |
c2b1fb480d121a4a5f187705e2d45309ff587165 | 8bc147e240c6dde2b6bd6f30c8795d0d86765bb9 | /VirtualLeaf-v1.0.1-src/src/qcanvasarrow.h | 9a06dcbe318d1e1b55ad6cf4b8986630f072d304 | [] | no_license | eddjonathan/CCpluspluscode-Mahr | f7d92cd9ca7d17b5078ecb0c0313cdc68a777350 | 88505987bbf5db343f4e1ff1368b60a86b2cb11d | refs/heads/master | 2021-01-25T09:45:05.763691 | 2017-06-09T16:11:45 | 2017-06-09T16:11:45 | 93,875,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,038 | h | /*
*
* $Id: qcanvasarrow.h,v 15d600891648 2010/06/24 13:22:58 michael $
*
* This file is part of the Virtual Leaf.
*
* VirtualLeaf is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VirtualLeaf is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the Virtual Leaf. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2010 Roeland Merks.
*
*/
#ifndef _QCANVASARROW_H_
#define _QCANVASARROW_H_
#include <QGraphicsScene>
class QGraphicsArrowItem : public QGraphicsLineItem {
public:
QGraphicsArrowItem(QGraphicsItem *parent, QGraphicsScene *c) : QGraphicsLineItem(parent, c) {};
void paint ( QPainter *p, const QStyleOptionGraphicsItem *option,
QWidget *widget ) {
// construct arrow head
QPointF start=line().p1();
QPointF end=line().p2();
QPointF mid=start + (3./4.)*(end-start);
double vx=end.x()-start.x();
double vy=end.y()-start.y();
double length = sqrt(vx*vx+vy*vy);
if (length==0) return;
// perpendicular vector
double px=-vy/length;
double py=vx/length;
// Arrow head lines go from end point
// to points about 3/4 of the total arrow, extending sideways about 1/4
// of the arrow length.
QPointF arwp1 = mid + QPointF( (int)( (length/4.)*px ),
(int)( (length/4.)*py ) );
QPointF arwp2 = mid - QPointF( (int)( (length/4.)*px ),
(int)( (length/4.)*py ) );
p->setPen(pen());
// Draw arrow head
p->drawLine( end, arwp1 );
p->drawLine( end, arwp2 );
// Draw arrow line
p->drawLine( start, end);
}
};
#endif
/* finis */
| [
"katrinnagy@Katrins-MacBook-Air.local"
] | katrinnagy@Katrins-MacBook-Air.local |
053f6bca6d0ee341e31b43abbbc64e6afd4a8307 | b8168c9e1e19da8d3e02720a8742c8f929e0be0f | /JULY14/CSUB.cpp | 9f997984aaeaa2bf6ef159602c012376e9761368 | [] | no_license | saikiranboga/Coding | fd063af527a6f2d932f66c206c5cb330c394fa9b | 2ca0dc7cb57b87bdefff303f4596618527ac43c7 | refs/heads/master | 2021-01-23T07:03:36.097230 | 2014-12-17T19:29:36 | 2014-12-17T19:29:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cpp | #include <iostream>
#include <string>
using namespace std;
int main(){
int t, n;
cin >> t;
while(t--){
cin >> n;
string s;
cin >> s;
long ans = 0, count = 0;
int sz = s.size();
for(int i=sz-1; i>=0; i--){
if(s[i]=='1')
count++;
}
ans = (count*(count+1))/2;
cout << ans << endl;
}
return 0;
} | [
"saikiranboga110792@gmail.com"
] | saikiranboga110792@gmail.com |
3e5711040573f038883c155b7c380b6987035c48 | a35b30a7c345a988e15d376a4ff5c389a6e8b23a | /boost/ptr_container/detail/static_move_ptr.hpp | 880bbaa49b0ab5d8499be34e13f4a9fc6719b063 | [] | no_license | huahang/thirdparty | 55d4cc1c8a34eff1805ba90fcbe6b99eb59a7f0b | 07a5d64111a55dda631b7e8d34878ca5e5de05ab | refs/heads/master | 2021-01-15T14:29:26.968553 | 2014-02-06T07:35:22 | 2014-02-06T07:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 82 | hpp | #include "thirdparty/boost_1_55_0/boost/ptr_container/detail/static_move_ptr.hpp"
| [
"liuhuahang@xiaomi.com"
] | liuhuahang@xiaomi.com |
b6c95fa04f0d2d81f90e903a715fad1d9508de2f | ecf47b47279fcf3b12ef8b0550f9b4fe35155aa6 | /src/Corrade/Utility/Algorithms.h | 662be71f197a0d6f08cb3979274fa49a2cf90339 | [
"MIT",
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | mgood7123/corrade | b4d9f6ff2cbf5c84ac3dfb8e02437fe977208826 | b048d6868f096d3ea5b162ed45d36aff9a9f5427 | refs/heads/master | 2023-05-13T21:04:53.651253 | 2021-06-11T13:21:29 | 2021-06-11T13:21:29 | 376,030,041 | 0 | 0 | NOASSERTION | 2021-06-11T13:13:00 | 2021-06-11T13:12:59 | null | UTF-8 | C++ | false | false | 8,743 | h | #ifndef Corrade_Utility_Algorithms_h
#define Corrade_Utility_Algorithms_h
/*
This file is part of Corrade.
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
2017, 2018, 2019, 2020, 2021
Vladimír Vondruš <mosra@centrum.cz>
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.
*/
/** @file
* @brief Function @ref Corrade::Utility::copy()
* @m_since{2020,06}
*/
#include "Corrade/Containers/StridedArrayView.h"
#include "Corrade/Utility/visibility.h"
namespace Corrade { namespace Utility {
/**
@brief Copy an array view to another
@m_since{2020,06}
Calls @ref std::memcpy() on the contents. Expects that both arrays have the
same size.
*/
CORRADE_UTILITY_EXPORT void copy(const Containers::ArrayView<const void>& src, const Containers::ArrayView<void>& dst);
/**
@brief Copy an array view to another
@m_since{2020,06}
Casts views into a @cpp void @ce type and delegates into
@ref copy(const Containers::ArrayView<const void>&, const Containers::ArrayView<void>&).
Expects that both arrays have the same size and @p T is a trivially copyable
type.
*/
template<class T> inline void copy(const Containers::ArrayView<const T>& src, const Containers::ArrayView<T>& dst) {
static_assert(
#ifdef CORRADE_STD_IS_TRIVIALLY_TRAITS_SUPPORTED
std::is_trivially_copyable<T>::value
#else
__has_trivial_copy(T) && __has_trivial_destructor(T)
#endif
, "types must be trivially copyable");
return copy(Containers::ArrayView<const void>(src), Containers::ArrayView<void>(dst));
}
/**
@brief Copy a strided array view to another
@m_since{2020,06}
Optimized to call @ref std::memcpy() on largest contiguous sub-dimensions,
looping over the non-contiguous dimensions (except when memcpy would be called
for very small pieces of memory, in which case either a loop or a variant of
<a href="https://en.wikipedia.org/wiki/Duff's_device">Duff's device</a> is
used, depending on which is faster on given compiler). The function has
specializations for 1D, 2D, 3D and 4D, higher dimensions recurse into these.
Expects that both arrays have the same size.
@see @ref Containers::StridedArrayView::isContiguous()
*/
template<unsigned dimensions> void copy(const Containers::StridedArrayView<dimensions, const char>& src, const Containers::StridedArrayView<dimensions, char>& dst);
/**
* @overload
* @m_since{2020,06}
*/
CORRADE_UTILITY_EXPORT void copy(const Containers::StridedArrayView1D<const char>& src, const Containers::StridedArrayView1D<char>& dst);
/**
* @overload
* @m_since{2020,06}
*/
CORRADE_UTILITY_EXPORT void copy(const Containers::StridedArrayView2D<const char>& src, const Containers::StridedArrayView2D<char>& dst);
/**
* @overload
* @m_since{2020,06}
*/
CORRADE_UTILITY_EXPORT void copy(const Containers::StridedArrayView3D<const char>& src, const Containers::StridedArrayView3D<char>& dst);
/**
* @overload
* @m_since{2020,06}
*/
CORRADE_UTILITY_EXPORT void copy(const Containers::StridedArrayView4D<const char>& src, const Containers::StridedArrayView4D<char>& dst);
/**
@brief Copy a strided array view to another
@m_since{2020,06}
Casts views into a @cpp char @ce type of one dimension more (where the last
dimension has a size of @cpp sizeof(T) @ce and delegates into
@ref copy(const Containers::StridedArrayView<dimensions, const char>&, const Containers::StridedArrayView<dimensions, char>&).
Expects that both arrays have the same size and @p T is a trivially copyable
type.
*/
template<unsigned dimensions, class T> void copy(const Containers::StridedArrayView<dimensions, const T>& src, const Containers::StridedArrayView<dimensions, T>& dst) {
static_assert(
#ifdef CORRADE_STD_IS_TRIVIALLY_TRAITS_SUPPORTED
std::is_trivially_copyable<T>::value
#else
__has_trivial_copy(T) && __has_trivial_destructor(T)
#endif
, "types must be trivially copyable");
return copy(Containers::arrayCast<dimensions + 1, const char>(src),
Containers::arrayCast<dimensions + 1, char>(dst));
}
namespace Implementation {
/* Vaguely inspired by the Utility::IsIterable type trait */
template<class T, class View = decltype(Containers::Implementation::ErasedArrayViewConverter<typename std::remove_reference<T&&>::type>::from(std::declval<T&&>()))> static Containers::StridedArrayView1D<typename View::Type> stridedArrayViewTypeFor(T&&);
template<class T> static Containers::StridedArrayView1D<T> stridedArrayViewTypeFor(const Containers::ArrayView<T>&);
template<unsigned dimensions, class T> static Containers::StridedArrayView<dimensions, T> stridedArrayViewTypeFor(const Containers::StridedArrayView<dimensions, T>&);
template<class> struct StridedArrayViewType;
template<class T> struct StridedArrayViewType<Containers::ArrayView<T>> {
enum: unsigned { Dimensions = 1 };
typedef Containers::ArrayView<typename std::remove_const<T>::type> Type;
typedef Containers::ArrayView<const T> ConstType;
};
template<unsigned dimensions, class T> struct StridedArrayViewType<Containers::StridedArrayView<dimensions, T>> {
enum: unsigned { Dimensions = dimensions };
typedef Containers::StridedArrayView<dimensions, typename std::remove_const<T>::type> Type;
typedef Containers::StridedArrayView<dimensions, const T> ConstType;
};
}
/**
@brief Copy a view to another
@m_since{2020,06}
Converts @p src and @p dst to a common array view type that's either
@ref Containers::ArrayView or @ref Containers::StridedArrayView and then calls
either @ref copy(const Containers::ArrayView<const T>&, const Containers::ArrayView<T>&)
or @ref copy(const Containers::StridedArrayView<dimensions, const T>& src, const Containers::StridedArrayView<dimensions, T>&).
Works with any type that's convertible to @ref Containers::StridedArrayView,
expects that both views have the same underlying type and the same dimension
count and the @p dst is not @cpp const @ce.
*/
template<class From, class To, class FromView = decltype(Implementation::stridedArrayViewTypeFor(std::declval<From&&>())), class ToView = decltype(Implementation::stridedArrayViewTypeFor(std::declval<To&&>()))> void copy(From&& src, To&& dst) {
static_assert(std::is_same<typename std::remove_const<typename FromView::Type>::type, typename std::remove_const<typename ToView::Type>::type>::value, "can't copy between views of different types");
static_assert(!std::is_const<typename ToView::Type>::value, "can't copy to a const view");
static_assert(unsigned(Implementation::StridedArrayViewType<FromView>::Dimensions) ==
unsigned(Implementation::StridedArrayViewType<ToView>::Dimensions),
"can't copy between views of different dimensions");
/* We need to pass const& to the copy(), passing temporary instances
directly would lead to infinite recursion */
const typename std::common_type<
typename Implementation::StridedArrayViewType<FromView>::ConstType,
typename Implementation::StridedArrayViewType<ToView>::ConstType>::type srcV{src};
const typename std::common_type<
typename Implementation::StridedArrayViewType<FromView>::Type,
typename Implementation::StridedArrayViewType<ToView>::Type>::type dstV{dst};
copy(srcV, dstV);
}
template<unsigned dimensions> void copy(const Containers::StridedArrayView<dimensions, const char>& src, const Containers::StridedArrayView<dimensions, char>& dst) {
CORRADE_ASSERT(src.size() == dst.size(),
"Utility::Algorithms::copy(): sizes" << src.size() << "and" << dst.size() << "don't match", );
for(std::size_t i = 0, max = src.size()[0]; i != max; ++i)
copy(src[i], dst[i]);
}
}}
#endif
| [
"mosra@centrum.cz"
] | mosra@centrum.cz |
23168fbf78a976870df4052d23e7b5d7362932b4 | 785df77400157c058a934069298568e47950e40b | /include/Geo_ApprxCurve.hxx | 31c9729f12222d1f324f25b3a649f8d964805566 | [] | no_license | amir5200fx/Tonb | cb108de09bf59c5c7e139435e0be008a888d99d5 | ed679923dc4b2e69b12ffe621fc5a6c8e3652465 | refs/heads/master | 2023-08-31T08:59:00.366903 | 2023-08-31T07:42:24 | 2023-08-31T07:42:24 | 230,028,961 | 9 | 3 | null | 2023-07-20T16:53:31 | 2019-12-25T02:29:32 | C++ | UTF-8 | C++ | false | false | 3,218 | hxx | #pragma once
#ifndef _Geo_ApprxCurve_Header
#define _Geo_ApprxCurve_Header
#include <Geo_ApprxCurve_Traits.hxx>
#include <Geo_Traits.hxx>
#include <Global_Done.hxx>
#include <Entity_Polygon.hxx>
#include <memory>
//#include <Geom2d_Curve.hxx>
namespace tnbLib
{
class Geo_ApprxCurveBase
{
/*Private Data*/
protected:
// default constructor [8/25/2022 Amir]
Geo_ApprxCurveBase()
{}
// constructors [8/25/2022 Amir]
public:
struct Segment
{
Standard_Real theX0;
Standard_Real theX1;
Segment()
{}
Segment(const Standard_Real x0, const Standard_Real x1)
: theX0(x0)
, theX1(x1)
{}
Segment Left() const
{
return Segment(theX0, MEAN(theX0, theX1));
}
Segment Right() const
{
return Segment(MEAN(theX0, theX1), theX1);
}
Standard_Real Mean() const
{
return MEAN(theX0, theX1);
}
static Standard_Boolean IsLess(const Segment& theS1, const Segment& theS2)
{
return theS1.Mean() < theS2.Mean();
}
};
typedef std::vector<Segment> segList;
};
template<class CurveType, bool RandSamples>
class Geo_ApprxCurve
: public Global_Done
, public Geo_ApprxCurveBase
{
public:
using Geo_ApprxCurveBase::Segment;
using Geo_ApprxCurveBase::segList;
typedef typename remove_pointer<CurveType>::type CurveTypeR;
//typedef typename down_cast_point<typename CurveTypeR::ptType>::type Point;
typedef typename cascadeLib::pt_type_from_curve<CurveTypeR>::ptType Point;
//typedef typename Geo_ApprxCurve_Traits<CurveTypeR>::ptType Point;
typedef Entity_Polygon<Point> chain;
typedef std::shared_ptr<chain> chain_ptr;
typedef typename Geo_ApprxCurveInfo_Traits<CurveTypeR>::infoType info;
private:
/*Private Data*/
CurveType theCurve_;
Standard_Real theFirst_;
Standard_Real theLast_;
std::shared_ptr<info> theInfo_;
chain_ptr theChain_;
// Private functions and operators [8/25/2022 Amir]
void Subdivide(segList& theSegmments) const;
public:
// default constructor [8/25/2022 Amir]
Geo_ApprxCurve()
{}
// constructors [8/25/2022 Amir]
Geo_ApprxCurve
(
const CurveType& theCurve,
const Standard_Real theFirst,
const Standard_Real theLast,
const std::shared_ptr<info>& theInfo
)
: theCurve_(theCurve)
, theFirst_(theFirst)
, theLast_(theLast)
, theInfo_(theInfo)
{}
// public functions and operators [8/25/2022 Amir]
const std::shared_ptr<info>& Info() const
{
return theInfo_;
}
const CurveType& Curve() const
{
return theCurve_;
}
auto FirstParameter() const
{
return theFirst_;
}
auto LastParameter() const
{
return theLast_;
}
auto IsLoaded() const
{
return (Standard_Boolean)theCurve_;
}
const chain_ptr& Chain() const
{
return theChain_;
}
void LoadCurve
(
const CurveType& theCurve,
const Standard_Real theFirst,
const Standard_Real theLast,
const std::shared_ptr<info>& theInfo
)
{
theCurve_ = theCurve;
theFirst_ = theFirst;
theLast_ = theLast;
theInfo_ = theInfo;
Change_IsDone() = Standard_False;
}
void Perform();
void Reset();
};
}
#include <Geo_ApprxCurveI.hxx>
#endif // !_Geo_ApprxCurve_Header
| [
"aasoleimani86@gmail.com"
] | aasoleimani86@gmail.com |
28c425b4e0fefa07795ef667bd4734bb8acd5c38 | 566e45d21ca67d4b930b7971125b434d9536a8c2 | /src/game/grid.h | 80773e36129a4fb41040cfd3a9b811077e6a8059 | [] | no_license | TheNotChosenOne/Sorrow | bae1e852eb00c30c639e2ccc3be543277ca8a814 | cc7e7af7d6815fa3104be5d4193bba2bb75804c0 | refs/heads/master | 2021-06-07T08:13:42.302570 | 2020-05-10T20:16:50 | 2020-05-10T20:16:50 | 133,557,612 | 2 | 0 | null | 2018-09-17T03:35:14 | 2018-05-15T18:33:55 | C++ | UTF-8 | C++ | false | false | 1,174 | h | #pragma once
#include "core/geometry.h"
#include "entities/data.h"
#include <vector>
#include <utility>
class Grid;
struct GridBind {
Grid *grid;
size_t row;
size_t col;
};
DeclareDataType(GridBind);
template<>
void Entity::deleteComponent< GridBind >(Core &core, uint64_t id, GridBind &gb);
class Grid {
double size;
Point origin;
size_t height, width;
// row, column
std::vector< std::vector< uint64_t > > grid;
public:
Grid(double size, Point origin, size_t height, size_t width);
Grid(double size, Point origin, double height, double width);
Point getOrigin() const;
double getSize() const;
size_t getHeight() const;
size_t getWidth() const;
std::pair< size_t, size_t > getCoord(Point point) const;
uint64_t get(size_t row, size_t col) const;
uint64_t get(Point point) const;
uint64_t set(Core &core, size_t row, size_t col, uint64_t ent);
uint64_t set(Core &core, Point point, uint64_t ent);
Point gridOrigin(size_t row, size_t col) const;
Point gridOrigin(Point point) const;
friend void Entity::deleteComponent< GridBind >(Core &core, uint64_t id, GridBind &gb);
};
| [
"swanuch@gmail.com"
] | swanuch@gmail.com |
3f689cf74cb4006e8d0ecb35e15dc060647d71d9 | 10b019490a0a3c6f3ade44326de9df595ebe5a41 | /linked_list.cpp | 95e9b670edcb8f5c9b30898b2b17c956ad72c336 | [] | no_license | cout-pranav/mycode | 21a594484f669e3ee30ac662db7e140bab1b16d8 | 450d1ff5ec9f89f40cb431766522de9a0bbf1831 | refs/heads/main | 2023-02-09T10:33:50.377779 | 2020-12-30T06:40:53 | 2020-12-30T06:40:53 | 322,620,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,531 | cpp | #include<bits/stdc++.h>
using namespace std;
class node{
public:
int data;
node* next;
node(int x)
{
data=x;
next=NULL;
}
//***********
//call by reference
};
void insertAtTail(node* &head,int val)
{
node* newnode=new node(val); //creating newnode
if(head==NULL)
{
head=newnode;
return ;
}
node* temp=head;
while(temp->next!=NULL)
{
temp=temp->next;
}
temp->next=newnode;
}
void display(node *head)
{
while(head!=NULL)
{
cout<<head->data<<"->";
head=head->next;
}
cout<<"NULL"<<endl;
}
//call by reference
void insertAtHead(node* &head,int val)
{
node *newnode=new node(val);
newnode->next=head;
head=newnode;
}
int search(node *head,int key)
{
int index=1;
while(head!=NULL)
{
if(head->data==key)
{
return index;
}
head=head->next;
index++;
}
return -1;
}
void Delete_in_list(node* &head,int key)
{
node* temp=head;
// handling head condition
if(head->data==key)
{
head=head->next;
delete(temp);
return ;
}
while(temp->next!=NULL)
{
if(temp->next->data==key)
{
node* del=temp->next;
temp->next=temp->next->next;
delete(del); return ;
}
temp=temp->next;
}
cout<<"\nElement not found";
}
void reverse(node* &head)
{
node* prevptr=NULL;
node* currptr=head;
node* nextptr;
while(currptr!=NULL)
{
nextptr=currptr->next;
currptr->next=prevptr;
prevptr=currptr;
currptr=nextptr;
}
head=prevptr;
}
node* reverse_Recursive(node* head)
{
if(head==NULL || head->next==NULL)
{
return head;
}
node * newnode=reverse_Recursive(head->next);
head->next->next=head;
head->next=NULL;
return newnode;
}
int main()
{
node*head=NULL;
insertAtTail(head,1);
insertAtTail(head,2);
insertAtTail(head,3);
insertAtHead(head,4);
display(head);
// cout<<"\nElement found at: "<<search(head,1)<<endl;
// Delete_in_list(head,3);
head=reverse_Recursive(head);
display(head);
// reverse(head);
// display(head);
} | [
"56630358+P-cm-source@users.noreply.github.com"
] | 56630358+P-cm-source@users.noreply.github.com |
b06cc73d3044b664835f4d6c1f608d5c5a388f5f | 7cef4109505438ad9c2f5140577f49a4cd1d6d2f | /PolyObject.cpp | 0f955b027633d35266ebe4c7cea5398c3883fb8a | [] | no_license | MBulli/FHWS-raytracer | 71256424fa3a0d4638e57eaf313ef1af3001e362 | d2c2a42b09d0991595ba43461a4aa1db117b38ef | refs/heads/master | 2016-09-10T20:05:59.515614 | 2015-07-13T19:32:21 | 2015-07-13T19:32:21 | 37,068,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,039 | cpp | #include "stdafx.h"
#include "Ray.h"
#include "PolyObject.h"
#include <map>
#include <cmath>
void PolyObject::calcBoundingSphere()
{
Vector min(DBL_MAX, DBL_MAX, DBL_MAX), max(-DBL_MAX, -DBL_MAX, -DBL_MAX);
for (auto& triangle : triangles)
{
for (const auto& v : triangle->getPoints())
{
if (v->x < min.x) min.x = v->x;
if (v->x > max.x) max.x = v->x;
if (v->y < min.y) min.y = v->y;
if (v->y > max.y) max.y = v->y;
if (v->z < min.z) min.z = v->z;
if (v->z > max.z) max.z = v->z;
}
}
boundingSphereCenter = min.vadd(max).svmpy(0.5);
for (const auto& triangle : triangles)
{
for (const auto& v : triangle->getPoints())
{
float d = v->vsub(boundingSphereCenter).veclength();
if (d > boundingSphereRadius)
boundingSphereRadius = d;
}
}
}
bool PolyObject::intersectsWithBoundingSphere(const Ray& ray) const
{
return boundingSphereCenter.vsub(ray.getOrigin()).cross(ray.getDirection()).veclength() <= boundingSphereRadius;
}
PolyObject::~PolyObject()
{
}
Vector PolyObject::get_normal(Vector& v) const
{
return Vector();
}
double PolyObject::intersect(const Ray& ray, ObjektConstPtr* outChild) const
{
if (!intersectsWithBoundingSphere(ray)) {
return NAN;
}
double min_t = DBL_MAX;
for (const TrianglePtr& tri : triangles)
{
double t = tri->intersect(ray, outChild);
if (!isnan(t) && t < min_t)
{
*outChild = tri;
min_t = t;
}
}
// no intersection
return min_t == DBL_MAX ? NAN : min_t;
}
void PolyObject::setProperty(PropertyPtr property)
{
Objekt::setProperty(property);
for (TrianglePtr& tri : triangles)
{
tri->setProperty(property);
}
}
Triangle::~Triangle()
{
}
const Vector& Triangle::vertex(int i)
{
switch (i)
{
case 0: return p0;
case 1: return p1;
case 2: return p2;
default: throw std::string("Out of bound.");
}
}
void Triangle::setTextureCoords(Vector t0, Vector t1, Vector t2)
{
this->tex0 = t0;
this->tex1 = t1;
this->tex2 = t2;
}
Vector Triangle::barycentric(const Vector& point) const
{
Vector v0 = p1.vsub(p0);
Vector v1 = p2.vsub(p0);
Vector v2 = point.vsub(p0);
double d00 = v0.dot(v0);
double d01 = v0.dot(v1);
double d11 = v1.dot(v1);
double d20 = v2.dot(v0);
double d21 = v2.dot(v1);
double denom = d00 * d11 - d01 * d01;
double v = (d11 * d20 - d01 * d21) / denom;
double w = (d00 * d21 - d01 * d20) / denom;
double u = 1.0f - v - w;
return Vector(u, v, w);
}
Color Triangle::get_texture_color(const Vector& intersection) const
{
Color matColor = Objekt::get_texture_color(intersection);
if (property->getTexture())
{
Vector bary = barycentric(intersection);
double u = bary.x * tex0.x + bary.y * tex1.x + bary.z * tex2.x;
double v = bary.x * tex0.y + bary.y * tex1.y + bary.z * tex2.y;
// fix float rounding errors
u = fmin(fmax(0, u), 1);
v = fmin(fmax(0, v), 1);
Color tex = property->getTexture()->getTexel(u, v);
return tex;
//return Color(bary.x, bary.y, bary.z);
//matColor = tex.outprodc(matColor);
}
return matColor;
}
Vector Triangle::get_normal(Vector& v) const
{
return e1.cross(e2).normalize();
}
double Triangle::intersect(const Ray& ray, ObjektConstPtr* outChild) const
{
static const double epsilon = 1e-7f;
static const double epsilon2 = 1e-10;
const Vector q = ray.getDirection().cross(e2);
const double a = e1.dot(q);
// The ray is nearly parallel to the plane
if (a <= epsilon) {
return NAN;
}
const Vector s = ray.getOrigin().vsub(p0);
const Vector r = s.cross(e1);
const double dist = e2.dot(r) / a;
// The ray origin is behind the plane
if (dist <= 0.0) {
return NAN;
}
// Bayrycentric vertex weights
const double weight0 = s.dot(q) / a;
const double weight1 = ray.getDirection().dot(r) / a;
const double weight2 = 1.0f - (weight0 + weight1);
// The ray is nearly parallel to the riangle, or the
// intersection lies outside the triangle or behind
// the ray origin
if ((weight0 < -epsilon2)
|| (weight1 < -epsilon2)
|| (weight2 < -epsilon2))
{
return NAN;
}
return dist > 0.001 ? dist : NAN;
}
| [
"markusbullmann@gmail.com"
] | markusbullmann@gmail.com |
65fa63a4649b605ff4064d8e2294940d8f792853 | 87724f093082fcc96886939be12b73180edbf4b2 | /Pyramid of stars.cpp | 646606de18384df78895dc625d0f3901e359a68b | [] | no_license | Mohim-Singla/C-Programing | 583ba69d0aaaef3a4c8321c659c8278cf7cb9c6d | 2a2edd5e1e9ac2bc514524d4e9488a9292776be2 | refs/heads/main | 2023-03-21T15:21:39.532438 | 2021-03-19T08:40:59 | 2021-03-19T08:40:59 | 331,958,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | cpp | #include <iostream>
using namespace std;
int main()
{
int n=0;
cout<<"Enter n: "<<endl;
cin>>n;
for(int j=1;j<=n;j++)
{
for (int i=1;i<=(2*n-1);i++)
{
if ((i>=n-(j-1)) && (i<=n+(j-1)))
{
cout <<'*';
}
else
{
cout<<" ";
}
}
cout<<endl;
}
}
| [
"noreply@github.com"
] | noreply@github.com |
499f2f8d67d8df9b11e8ffaabe9794ec0c2f80f8 | dda936f34f1c1ee4b06914992393a5b32665d4a8 | /Kursach/Button.h | bf536a5e6e31ed868fb9889b2ad164b767fc9821 | [] | no_license | Kolyavojteh2/Billiard | 14a42ebd11d4431cf6a8aaa8814e78e731cbbcf1 | a4cb72f0f2ef8b537dd0b238999d7aa09b8a4f64 | refs/heads/main | 2023-05-05T11:20:53.751273 | 2021-05-27T13:10:31 | 2021-05-27T13:10:31 | 371,376,328 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 903 | h | #pragma once
#include "Draw_text.h"
#include "Draw_rect.h"
#include "Rectangle_shape.h"
// Клас кнопки для переходу з одного стану програми в інший
class Button : private Rectangle_shape, public Draw_text
{
Texture* texture;
// Стан в який необхідно перейти по натисканні на кнопку
int jump_to_state;
public:
Button(RenderWindow* w);
void set_position(int x, int y);
void set_position(point2D p);
point2D get_position() const;
void set_texture(Texture* t);
int get_height() const;
int get_width() const;
// Задання та повернення інформації про стан в який необхідно перейти по натисканню на кнопку
int get_jump() const;
void set_jump(int n);
void draw();
bool is_collision(float x, float y);
~Button();
}; | [
"kolyavojteh2@gmail.com"
] | kolyavojteh2@gmail.com |
a550c737e6d1340771b50d02402bf0b26067a266 | f85fd5f0d9a1f4ca5299fd9ed868a40f7b895370 | /Arduino/BME280_MultipleSensorsI2C/BME280_MultipleSensorsI2C.ino | 0cc09d0516a9b172afd72961ae7ac5ee550621b3 | [] | no_license | Donders-Institute/Donders | ac1e71879a44c8bf69216f73e5ec2d93b2a9dd53 | 59aa65fb05bd53eebd1239ff74422d8e0800bb4e | refs/heads/master | 2021-02-24T13:33:56.598959 | 2020-01-08T15:17:02 | 2020-01-08T15:17:02 | 245,432,882 | 0 | 1 | null | 2020-03-06T13:55:51 | 2020-03-06T13:55:50 | null | UTF-8 | C++ | false | false | 11,266 | ino |
/***************************************************************************
Example for BME280 Weather Station using two Sensors with I2C Communication
written by Thiago Barros for BlueDot UG (haftungsbeschränkt)
BSD License
This sketch was written for the Bosch Sensor BME280.
The BME280 is a MEMS device for measuring temperature, humidity and atmospheric pressure.
For more technical information on the BME280, please go to ------> http://www.bluedot.space
***************************************************************************/
// TO HAVE IN ACCOUNT!
// SD0 has to be connected to vdd(0x76) or gnd (0x77) in order to use both sensors in the same bus.
// Jose
#include <Wire.h>
#include "BlueDot_BME280.h"
BlueDot_BME280 bme1; //Object for Sensor 1
BlueDot_BME280 bme2; //Object for Sensor 2
int bme1Detected = 0; //Checks if Sensor 1 is available
int bme2Detected = 0; //Checks if Sensor 2 is available
void setup() {
Serial.begin(9600);
Serial.println(F("Basic Weather Station"));
//*********************************************************************
//*************BASIC SETUP - SAFE TO IGNORE****************************
//This program is set for the I2C mode
bme1.parameter.communication = 0; //I2C communication for Sensor 1 (bme1)
bme2.parameter.communication = 0; //I2C communication for Sensor 2 (bme2)
//*********************************************************************
//*************BASIC SETUP - SAFE TO IGNORE****************************
//Set the I2C address of your breakout board
bme1.parameter.I2CAddress = 0x76; //I2C Address for Sensor 1 (bme1)
bme2.parameter.I2CAddress = 0x77; //I2C Address for Sensor 2 (bme2)
//*********************************************************************
//*************ADVANCED SETUP - SAFE TO IGNORE*************************
//Now choose on which mode your device will run
//On doubt, just leave on normal mode, that's the default value
//0b00: In sleep mode no measurements are performed, but power consumption is at a minimum
//0b01: In forced mode a single measured is performed and the device returns automatically to sleep mode
//0b11: In normal mode the sensor measures continually (default value)
bme1.parameter.sensorMode = 0b11; //Setup Sensor mode for Sensor 1
bme2.parameter.sensorMode = 0b11; //Setup Sensor mode for Sensor 2
//*********************************************************************
//*************ADVANCED SETUP - SAFE TO IGNORE*************************
//Great! Now set up the internal IIR Filter
//The IIR (Infinite Impulse Response) filter suppresses high frequency fluctuations
//In short, a high factor value means less noise, but measurements are also less responsive
//You can play with these values and check the results!
//In doubt just leave on default
//0b000: factor 0 (filter off)
//0b001: factor 2
//0b010: factor 4
//0b011: factor 8
//0b100: factor 16 (default value)
bme1.parameter.IIRfilter = 0b100; //IIR Filter for Sensor 1
bme2.parameter.IIRfilter = 0b100; //IIR Filter for Sensor 2
//*********************************************************************
//*************ADVANCED SETUP - SAFE TO IGNORE*************************
//Next you'll define the oversampling factor for the humidity measurements
//Again, higher values mean less noise, but slower responses
//If you don't want to measure humidity, set the oversampling to zero
//0b000: factor 0 (Disable humidity measurement)
//0b001: factor 1
//0b010: factor 2
//0b011: factor 4
//0b100: factor 8
//0b101: factor 16 (default value)
bme1.parameter.humidOversampling = 0b101; //Humidity Oversampling for Sensor 1
bme2.parameter.humidOversampling = 0b101; //Humidity Oversampling for Sensor 2
//*********************************************************************
//*************ADVANCED SETUP - SAFE TO IGNORE*************************
//Now define the oversampling factor for the temperature measurements
//You know now, higher values lead to less noise but slower measurements
//0b000: factor 0 (Disable temperature measurement)
//0b001: factor 1
//0b010: factor 2
//0b011: factor 4
//0b100: factor 8
//0b101: factor 16 (default value)
bme1.parameter.tempOversampling = 0b101; //Temperature Oversampling for Sensor 1
bme2.parameter.tempOversampling = 0b101; //Temperature Oversampling for Sensor 2
//*********************************************************************
//*************ADVANCED SETUP - SAFE TO IGNORE*************************
//Finally, define the oversampling factor for the pressure measurements
//For altitude measurements a higher factor provides more stable values
//On doubt, just leave it on default
//0b000: factor 0 (Disable pressure measurement)
//0b001: factor 1
//0b010: factor 2
//0b011: factor 4
//0b100: factor 8
//0b101: factor 16 (default value)
bme1.parameter.pressOversampling = 0b101; //Pressure Oversampling for Sensor 1
bme2.parameter.pressOversampling = 0b101; //Pressure Oversampling for Sensor 2
//*********************************************************************
//*************ADVANCED SETUP - SAFE TO IGNORE*************************
//For precise altitude measurements please put in the current pressure corrected for the sea level
//On doubt, just leave the standard pressure as default (1013.25 hPa);
bme1.parameter.pressureSeaLevel = 1013.25; //default value of 1013.25 hPa (Sensor 1)
bme2.parameter.pressureSeaLevel = 1013.25; //default value of 1013.25 hPa (Sensor 2)
//Also put in the current average temperature outside (yes, really outside!)
//For slightly less precise altitude measurements, just leave the standard temperature as default (15°C and 59°F);
bme1.parameter.tempOutsideCelsius = 15; //default value of 15°C
bme2.parameter.tempOutsideCelsius = 15; //default value of 15°C
bme1.parameter.tempOutsideFahrenheit = 59; //default value of 59°F
bme2.parameter.tempOutsideFahrenheit = 59; //default value of 59°F
//*********************************************************************
//*************ADVANCED SETUP IS OVER - LET'S CHECK THE CHIP ID!*******
if (bme1.init() != 0x60)
{
Serial.println(F("Ops! First BME280 Sensor not found!"));
bme1Detected = 0;
}
else
{
Serial.println(F("First BME280 Sensor detected!"));
bme1Detected = 1;
}
if (bme2.init() != 0x60)
{
Serial.println(F("Ops! Second BME280 Sensor not found!"));
bme2Detected = 0;
}
else
{
Serial.println(F("Second BME280 Sensor detected!"));
bme2Detected = 1;
}
if ((bme1Detected == 0)&(bme2Detected == 0))
{
Serial.println();
Serial.println();
Serial.println(F("Troubleshooting Guide"));
Serial.println(F("*************************************************************"));
Serial.println(F("1. Let's check the basics: Are the VCC and GND pins connected correctly? If the BME280 is getting really hot, then the wires are crossed."));
Serial.println();
Serial.println(F("2. Did you connect the SDI pin from your BME280 to the SDA line from the Arduino?"));
Serial.println();
Serial.println(F("3. And did you connect the SCK pin from the BME280 to the SCL line from your Arduino?"));
Serial.println();
Serial.println(F("4. One of your sensors should be using the alternative I2C Address(0x76). Did you remember to connect the SDO pin to GND?"));
Serial.println();
Serial.println(F("5. The other sensor should be using the default I2C Address (0x77. Did you remember to leave the SDO pin unconnected?"));
Serial.println();
while(1);
}
Serial.println();
Serial.println();
}
//*********************************************************************
//*************NOW LET'S START MEASURING*******************************
void loop() {
Serial.print(F("Duration in Seconds: "));
Serial.println(float(millis())/1000);
if (bme1Detected)
{
Serial.print(F("Temperature Sensor 1 [C]:\t\t"));
Serial.println(bme1.readTempC());
//Serial.print(F("Temperature Sensor 1 [°F]:\t\t"));
//Serial.println(bme1.readTempF());
Serial.print(F("Humidity Sensor 1 [%]:\t\t\t"));
Serial.println(bme1.readHumidity());
Serial.print(F("Pressure Sensor 1 [hPa]:\t\t"));
Serial.println(bme1.readPressure());
Serial.print(F("Altitude Sensor 1 [m]:\t\t\t"));
Serial.println(bme1.readAltitudeMeter());
//Serial.print(F("Altitude Sensor 1 [ft]:\t\t\t"));
//Serial.println(bme1.readAltitudeFeet());
Serial.println(F("****************************************"));
}
else
{
Serial.print(F("Temperature Sensor 1 [°C]:\t\t"));
Serial.println(F("Null"));
//Serial.print(F("Temperature Sensor 1 [°F]:\t\t"));
//Serial.println(F("Null"));
Serial.print(F("Humidity Sensor 1 [%]:\t\t\t"));
Serial.println(F("Null"));
Serial.print(F("Pressure Sensor 1 [hPa]:\t\t"));
Serial.println(F("Null"));
Serial.print(F("Altitude Sensor 1 [m]:\t\t\t"));
Serial.println(F("Null"));
//Serial.print(F("Altitude Sensor 1 [ft]:\t\t\t"));
//Serial.println(F("Null"));
Serial.println(F("****************************************"));
}
if (bme2Detected)
{
Serial.print(F("Temperature Sensor 2 [°C]:\t\t"));
Serial.println(bme2.readTempC());
//Serial.print(F("Temperature Sensor 2 [°F]:\t\t"));
//Serial.println(bme2.readTempF());
Serial.print(F("Humidity Sensor 2 [%]:\t\t\t"));
Serial.println(bme2.readHumidity());
Serial.print(F("Pressure Sensor 2 [hPa]:\t\t"));
Serial.println(bme2.readPressure());
Serial.print(F("Altitude Sensor 2 [m]:\t\t\t"));
Serial.println(bme2.readAltitudeMeter());
//Serial.print(F("Altitude Sensor 2 [ft]:\t\t\t"));
//Serial.println(bme2.readAltitudeFeet());
}
else
{
Serial.print(F("Temperature Sensor 2 [°C]:\t\t"));
Serial.println(F("Null"));
//Serial.print(F("Temperature Sensor 2 [°F]:\t\t"));
//Serial.println(F("Null"));
Serial.print(F("Humidity Sensor 2 [%]:\t\t\t"));
Serial.println(F("Null"));
Serial.print(F("Pressure Sensor 2 [hPa]:\t\t"));
Serial.println(F("Null"));
Serial.print(F("Altitude Sensor 2 [m]:\t\t\t"));
Serial.println(F("Null"));
//Serial.print(F("Altitude Sensor 2 [ft]:\t\t\t"));
//Serial.println(F("Null"));
}
Serial.println();
Serial.println();
delay(1000);
}
| [
"jagarciauceda@gmail.com"
] | jagarciauceda@gmail.com |
436ce0907eacf963869cb3087e852e9f27854b18 | 07fff1a3585b0c7b62d490c0043f2e02244e4014 | /第八次试验/Array/Array.h | 247b2235bd9ad8dcb5219b5319a866b54532123a | [] | no_license | Orange-pipi/Homework | 7b6640bf79925271e3ff5a9fe547750cf45b19f1 | 54358d6e26b292d33019715661b587f4c3b507fd | refs/heads/main | 2023-02-03T21:09:04.515689 | 2020-12-18T12:17:45 | 2020-12-18T12:17:45 | 300,644,421 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,004 | h | /*************************************************
** 功能说明 : 定义类和成员函数
** 创建 : 2020-12-14 / 16:01
** 作者: Orange-pipi
/**************************************************/
#pragma once//保证同一文件不会被编译多次
#include <iostream>
using namespace std;
/*----------------------------------*
类定义
*-----------------------------------*/
class Array
{
//数组大小size,数组指针变量ps,
//该类对外接口功能:(三构一析)、输出对象内容、修改数组对象的元素、
//实现数组对象的赋值操作,加法操作(成员函数)、减法操作(友元函数)
private:
int size;
int* ps;
public:
Array();
Array(int i);
Array(Array &_arr);
~Array();
void Print();//输出内容
void Update(int i, int &x);//修改元素
Array &operator =(Array &_arr);//赋值
Array &operator +=(Array &_arr1);
friend Array &operator -=(Array &_arr1, Array &_arr2);
}; | [
"noreply@github.com"
] | noreply@github.com |
4f429d4bcadeb8c3309cd23daf17bb2b5178e91d | 50de7f977f3d60fa3ea7df2b908be49d8ca44083 | /C++/unique-ptr.cpp | 27fb28e9b751b6e85c72db40158714049cbe1e5c | [
"Apache-2.0"
] | permissive | unmeshvrije/C-- | e559b2806af0a5e14ce233bc8ba1c55aadd2659a | 361616849313155b34afc68769f6bb121bafdac0 | refs/heads/master | 2022-12-24T05:54:39.053431 | 2022-12-12T16:20:34 | 2022-12-12T16:20:34 | 12,909,247 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 198 | cpp | #include <iostream>
using namespace std;
void fun(unique_ptr& q) {
}
int main(void) {
unique_ptr<int> ptr = make_unique<int>();
*ptr = 10;
cout << *ptr << endl;
return 0;
}
| [
"unmesh.joshi126@gmail.com"
] | unmesh.joshi126@gmail.com |
aa7b1662faa6c4b3a0a7deea8817840afab4bf32 | 5f25735cdd4096f14641a1c2a3a47a82745e7da6 | /src/InsertMediaPropertiesAction.cpp | 2c866ea79739c41aef9c9c511b336fa3e894cc00 | [
"MIT"
] | permissive | fabiant7t/ultraschall-plugin | 1fe60718fbbfc274831428c6205679da829f0ca8 | 5d194457050f4a683e82a2ce4e6339b96da9b0bf | refs/heads/main | 2023-04-22T17:55:04.367738 | 2021-03-20T14:01:47 | 2021-03-20T14:01:47 | 366,276,209 | 0 | 0 | MIT | 2021-05-11T06:18:22 | 2021-05-11T06:18:21 | null | UTF-8 | C++ | false | false | 9,578 | cpp | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) The Ultraschall Project (https://ultraschall.fm)
//
// The MIT License (MIT)
//
// 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 <string>
#include <vector>
#include "CustomActionFactory.h"
#include "PlatformGateway.h"
#include "FileManager.h"
#include "ITagWriter.h"
#include "InsertMediaPropertiesAction.h"
#include "NotificationStore.h"
#include "StringUtilities.h"
#include "SystemProperties.h"
#include "TagWriterFactory.h"
#include "TimeUtilities.h"
namespace ultraschall { namespace reaper {
static DeclareCustomAction<InsertMediaPropertiesAction> action;
ServiceStatus InsertMediaPropertiesAction::Execute()
{
PRECONDITION_RETURN(HasValidProject() == true, SERVICE_FAILURE);
PRECONDITION_RETURN(ConfigureTargets() == true, SERVICE_FAILURE);
PRECONDITION_RETURN(ConfigureSources() == true, SERVICE_FAILURE);
ServiceStatus status = SERVICE_FAILURE;
NotificationStore notificationStore(UniqueId());
size_t errorCount = 0;
for(size_t i = 0; i < targets_.size(); i++) {
ITagWriter* pTagWriter = TagWriterFactory::Create(targets_[i]);
if(pTagWriter != 0) {
if(pTagWriter->Start(targets_[i]) == true) {
const UnicodeStringArray missingMediaDataFields = FindMissingMediaData();
const size_t missingFieldCount = missingMediaDataFields.size();
static const size_t REQUIRED_MEDIA_DATA_FIELDS = 6;
if((missingFieldCount > 0) && (missingFieldCount < REQUIRED_MEDIA_DATA_FIELDS)) {
UnicodeStringStream os;
os << "MP3 metadata is incomplete.";
notificationStore.RegisterWarning(os.str());
}
else if(missingFieldCount == REQUIRED_MEDIA_DATA_FIELDS) {
UnicodeStringStream os;
os << "MP3 metadata is missing";
notificationStore.RegisterWarning(os.str());
}
if(missingFieldCount < REQUIRED_MEDIA_DATA_FIELDS) {
if(pTagWriter->InsertProperties(targets_[i], mediaData_) == false) {
UnicodeStringStream os;
os << "Failed to insert MP3 metadata into " << targets_[i] << ".";
notificationStore.RegisterError(os.str());
errorCount++;
}
}
if(coverImage_.empty() == false) {
if(pTagWriter->InsertCoverImage(targets_[i], coverImage_) == false) {
UnicodeStringStream os;
os << "Failed to insert cover image into " << targets_[i] << ".";
notificationStore.RegisterError(os.str());
errorCount++;
}
}
else {
UnicodeStringStream os;
os << "The cover image is missing.";
notificationStore.RegisterWarning(os.str());
}
if(chapterMarkers_.empty() == true) {
UnicodeStringStream os;
os << "The chapter markers are missing.";
notificationStore.RegisterWarning(os.str());
}
else if(AreChapterMarkersValid(chapterMarkers_) == false) {
UnicodeStringStream os;
os << "One or more chapter markers are invalid.";
notificationStore.RegisterError(os.str());
errorCount++;
}
else {
if(pTagWriter->InsertChapterMarkers(targets_[i], chapterMarkers_) == false) {
UnicodeStringStream os;
os << "Failed to insert chapter markers into " << targets_[i] << ".";
notificationStore.RegisterError(os.str());
errorCount++;
}
}
pTagWriter->Stop(0 == errorCount);
}
SafeRelease(pTagWriter);
}
}
if(0 == errorCount) {
for(size_t i = 0; i < targets_.size(); i++) {
UnicodeStringStream os;
os << targets_[i] << " has been updated successfully.";
notificationStore.RegisterSuccess(os.str());
}
status = SERVICE_SUCCESS;
}
return status;
}
bool InsertMediaPropertiesAction::ConfigureSources()
{
bool result = true;
mediaData_.clear();
coverImage_.clear();
chapterMarkers_.clear();
mediaData_ = ReaperProject::Current().ProjectMetaData();
if(mediaData_.find("coverImage") != mediaData_.end()) {
coverImage_ = mediaData_.at("coverImage");
}
if(coverImage_.empty() == true) {
coverImage_ = FindCoverImage();
}
chapterMarkers_ = CurrentProject().ChapterMarkers();
if(chapterMarkers_.empty() == false) {
bool errorFound = false;
std::for_each(chapterMarkers_.begin(), chapterMarkers_.end(), [&](const ChapterTag& chapterMarker) {
if(chapterMarker.Title().length() > Globals::MAX_CHAPTER_TITLE_LENGTH) {
UnicodeStringStream os;
os << "The chapter marker title '" << chapterMarker.Title() << "' is too long. "
<< "Make sure that is does not exceed " << Globals::MAX_CHAPTER_TITLE_LENGTH << " characters.";
NotificationStore notificationStore(UniqueId());
notificationStore.RegisterError(os.str());
errorFound = true;
}
});
result = (false == errorFound);
}
return result;
}
bool InsertMediaPropertiesAction::ConfigureTargets()
{
NotificationStore supervisor(UniqueId());
targets_.clear();
static const UnicodeStringArray fileExtensions = {".mp3"};
for(size_t i = 0; i < fileExtensions.size(); i++) {
UnicodeString targetName = CreateProjectPath(fileExtensions[i]);
if(FileManager::FileExists(targetName) != false) {
targets_.push_back(targetName);
}
}
if(targets_.empty() == true) {
const UnicodeString target = PlatformGateway::SelectAudioFile("Select audio file");
if(target.empty() == false) {
targets_.push_back(target);
}
}
return targets_.empty() == false;
}
UnicodeString InsertMediaPropertiesAction::FindCoverImage()
{
UnicodeString coverImage;
UnicodeStringArray files;
const UnicodeStringArray extensions {".jpg", ".jpeg", ".png"};
for(size_t i = 0; i < extensions.size(); i++) {
files.push_back(FileManager::AppendPath(CurrentProjectDirectory(), "cover") + extensions[i]);
files.push_back(FileManager::AppendPath(CurrentProjectDirectory(), "Cover") + extensions[i]);
files.push_back(FileManager::AppendPath(CurrentProjectDirectory(), "COVER") + extensions[i]);
files.push_back(FileManager::AppendPath(CurrentProjectDirectory(), CurrentProjectName()) + extensions[i]);
}
const size_t imageIndex = FileManager::FileExists(files);
if(imageIndex != -1) {
coverImage = files[imageIndex];
}
return coverImage;
}
UnicodeStringArray InsertMediaPropertiesAction::FindMissingMediaData()
{
UnicodeStringArray missingMediaDataFields;
static const UnicodeStringArray mediaDataKeys = {"podcast", "author", "episode",
"category", "publicationDate", "description"};
std::for_each(mediaDataKeys.begin(), mediaDataKeys.end(), [&](const UnicodeString& mediaDataKey) {
const UnicodeStringDictionary::const_iterator mediaDataIterator = mediaData_.find(mediaDataKey);
if(mediaDataIterator != mediaData_.end()) {
const UnicodeString mediaDataField = UnicodeStringCopyTrimLeft(mediaDataIterator->second);
if(mediaDataField.empty() == true) {
missingMediaDataFields.push_back(mediaDataKey);
}
else if(mediaDataField[0] == '\n') {
missingMediaDataFields.push_back(mediaDataKey);
}
}
else {
missingMediaDataFields.push_back(mediaDataKey);
}
});
return missingMediaDataFields;
}
}} // namespace ultraschall::reaper
| [
"heiko@panjas.com"
] | heiko@panjas.com |
a7f8d0f975d01d36df327286ee5fe49a570d3995 | 8dd39b654dde37c6cbde38a7e3a5c9838a237b51 | /big mod again/main.cpp | b2f11e4bc8850af18c7e766d91d72e68121d7bf6 | [] | no_license | Taohid0/C-and-C-Plus-Plus | 43726bdaa0dc74860c4170b729e34cea268008fd | d38fd51851cc489302ad4ef6725f1d19f7e72ec2 | refs/heads/master | 2021-07-19T17:30:26.875749 | 2017-10-28T09:49:51 | 2017-10-28T09:49:51 | 108,636,340 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cpp | #include <bits/stdc++.h>
using namespace std;
int big_mod(int b,int p,int d)
{
if(p==0){
return 1;
}
if(p==2){
return ((big_mod(b,p/2,d)*big_mod(b,p/2,d))%d);
}
return ((b%d)*big_mod(b,p-1,d))%d;
}
int main()
{
int b,p,d;
cin>>b>>p>>d;
int result = big_mod(b,p,d);
cout<<result;
return 0;
}
| [
"taohidulii@gmail.com"
] | taohidulii@gmail.com |
46c277e563108a74c648cc55b065a939ab7ee77c | 5ab41c73c157685f1d9c8b9c684419d690959c83 | /SlideSplash/Window.cpp | 5a5c8fec2c83d5125d70435e85f711857b606dac | [
"Zlib"
] | permissive | WeyrSDev/SlideSplash | f4e2a16d26b06fc55511dc6860d0443548efffaa | 78c020b41dbf1440c54077076bf0532fe764c2cc | refs/heads/master | 2021-06-01T05:20:27.438524 | 2016-07-05T15:50:26 | 2016-07-05T15:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,814 | cpp | //////////////////////////////////////////////////////////////////////////////
//
// Slide Splash
//
// Copyright(c) 2016 M.J.Silk
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions :
//
// 1. The origin of this software must not be misrepresented; you must not
// claim that you wrote the original software.If you use this software
// in a product, an acknowledgment in the product documentation would be
// appreciated but is not required.
//
// 2. Altered source versions must be plainly marked as such, and must not be
// misrepresented as being the original software.
//
// 3. This notice may not be removed or altered from any source distribution.
//
// M.J.Silk
// MJSilk2@gmail.com
//
//////////////////////////////////////////////////////////////////////////////
#include "Window.hpp"
SlideSplashWindow::SlideSplashWindow(const sf::Vector2u& size, const std::string& name, const sf::Uint32& style)
: m_size(size)
, m_name(name)
, m_style(style)
, m_window()
, m_slideSplash(m_window)
{
}
bool SlideSplashWindow::play()
{
auto& slides = getSlides();
if (slides.size() == 0)
return true;
if (m_size == sf::Vector2u(0u, 0u))
m_size = slides[0].texture.getSize();
const sf::VideoMode desktopMode{ sf::VideoMode::getDesktopMode() };
m_window.setVerticalSyncEnabled(true);
m_window.create(sf::VideoMode(m_size.x, m_size.y), m_name, m_style);
m_window.setPosition(sf::Vector2i((static_cast<int>(desktopMode.width) - m_size.x) / 2, (static_cast<int>(desktopMode.height) - m_size.y) / 2));
bool result{ m_slideSplash.play() };
m_window.close();
return result;
}
void SlideSplashWindow::setSize(const sf::Vector2u& size)
{
m_size = size;
}
void SlideSplashWindow::setName(const std::string& name)
{
m_name = name;
}
void SlideSplashWindow::setStyle(const sf::Uint32& style)
{
m_style = style;
}
bool SlideSplashWindow::addImage(const std::string& filename)
{
return m_slideSplash.addImage(filename);
}
bool SlideSplashWindow::addImages(const std::vector<std::string>& filenames)
{
return m_slideSplash.addImages(filenames);
}
void SlideSplashWindow::setBackgroundColor(const sf::Color& color)
{
m_slideSplash.setBackgroundColor(color);
}
void SlideSplashWindow::setSkipKey(const sf::Keyboard::Key& key)
{
m_slideSplash.setSkipKey(key);
}
void SlideSplashWindow::setCloseKey(const sf::Keyboard::Key& key)
{
m_slideSplash.setCloseKey(key);
}
std::vector<SlideSplash::Slide>& SlideSplashWindow::getSlides()
{
return m_slideSplash.slides;
}
| [
"MJSilk2@gmail.com"
] | MJSilk2@gmail.com |
4d3732685d9152ff2b66501deab5ae68ce227ede | 9a60b4f125d11ae13ffd9e48fb4ee9b79e94f562 | /IL2CPP/Il2CppOutputProject/Source/il2cppOutput/Bulk_Generics_11.cpp | 534d41eca621a94634b2ae0c170ac88ab6d49451 | [
"MIT"
] | permissive | dngoins/AutographTheWorld-MR | 99109e728746c164b12cf68e84e7b4b5a9390ab7 | 24e567c8030b73a6942e25b36b7370667c649b90 | refs/heads/master | 2021-04-12T07:51:07.040152 | 2018-03-19T06:36:00 | 2018-03-19T06:36:00 | 125,808,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,376,954 | cpp | #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, typename T1, typename T2>
struct VirtFuncInvoker2
{
typedef R (*Func)(void*, T1, T2, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, p1, p2, 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 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, typename T1, typename T2>
struct InterfaceFuncInvoker2
{
typedef R (*Func)(void*, T1, T2, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
return ((Func)invokeData.methodPtr)(obj, p1, p2, invokeData.method);
}
};
// System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct Dictionary_2_t2650923484;
// System.Collections.Generic.IEqualityComparer`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>
struct IEqualityComparer_1_t2392638778;
// System.ArgumentOutOfRangeException
struct ArgumentOutOfRangeException_t777629997;
// System.String
struct String_t;
// System.Collections.Generic.IDictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct IDictionary_2_t1114774875;
// System.ArgumentNullException
struct ArgumentNullException_t1615371798;
// System.Type
struct Type_t;
// System.Runtime.Serialization.SerializationInfo
struct SerializationInfo_t950877179;
// System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Runtime.Serialization.SerializationInfo>
struct ConditionalWeakTable_2_t1452810305;
// System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Object>
struct ConditionalWeakTable_2_t3582039290;
// System.Collections.Generic.Dictionary`2/KeyCollection<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct KeyCollection_t2840598955;
// System.Collections.Generic.ICollection`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>
struct ICollection_1_t3113458994;
// System.Collections.Generic.IEnumerable`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>
struct IEnumerable_1_t3560126945;
// System.Collections.Generic.Dictionary`2/ValueCollection<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct ValueCollection_t72000506;
// System.Collections.Generic.ICollection`1<System.Object>
struct ICollection_1_t1613291102;
// System.Collections.Generic.IEnumerable`1<System.Object>
struct IEnumerable_1_t2059959053;
// System.Collections.Generic.KeyNotFoundException
struct KeyNotFoundException_t2292407383;
// System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>[]
struct KeyValuePair_2U5BU5D_t3351136466;
// System.ArgumentException
struct ArgumentException_t132251570;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>>
struct IEnumerator_1_t1186198823;
// System.Collections.Generic.EqualityComparer`1<System.String>
struct EqualityComparer_1_t17223025;
// System.Collections.Generic.EqualityComparer`1<System.Object>
struct EqualityComparer_1_t1249878500;
// System.Runtime.Serialization.SerializationException
struct SerializationException_t3941511869;
// System.Collections.IEnumerator
struct IEnumerator_t1853284238;
// System.Collections.ICollection
struct ICollection_t3904884886;
// System.Collections.IDictionaryEnumerator
struct IDictionaryEnumerator_t1693217257;
// System.Collections.Generic.Dictionary`2<System.Guid,System.Object>
struct Dictionary_2_t2129123697;
// System.Collections.Generic.IEqualityComparer`1<System.Guid>
struct IEqualityComparer_1_t1005897609;
// System.Collections.Generic.IDictionary`2<System.Guid,System.Object>
struct IDictionary_2_t592975088;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Guid,System.Object>
struct KeyCollection_t2318799168;
// System.Collections.Generic.ICollection`1<System.Guid>
struct ICollection_1_t1726717825;
// System.Collections.Generic.IEnumerable`1<System.Guid>
struct IEnumerable_1_t2173385776;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Guid,System.Object>
struct ValueCollection_t3845168015;
// System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>[]
struct KeyValuePair_2U5BU5D_t3332857673;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>>
struct IEnumerator_1_t664399036;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Object>
struct Dictionary_2_t1968819495;
// System.Collections.Generic.IEqualityComparer`1<System.Int32>
struct IEqualityComparer_1_t763310475;
// System.Collections.Generic.IDictionary`2<System.Int32,System.Object>
struct IDictionary_2_t432670886;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>
struct KeyCollection_t2158494966;
// System.Collections.Generic.ICollection`1<System.Int32>
struct ICollection_1_t1484130691;
// System.Collections.Generic.IEnumerable`1<System.Int32>
struct IEnumerable_1_t1930798642;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>
struct ValueCollection_t3684863813;
// System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>[]
struct KeyValuePair_2U5BU5D_t2652375035;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>
struct IEnumerator_1_t504094834;
// System.Collections.Generic.Dictionary`2<System.Int64,System.Object>
struct Dictionary_2_t4142745948;
// System.Collections.Generic.IEqualityComparer`1<System.Int64>
struct IEqualityComparer_1_t1548932026;
// System.Collections.Generic.IDictionary`2<System.Int64,System.Object>
struct IDictionary_2_t2606597339;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Int64,System.Object>
struct KeyCollection_t37454123;
// System.Collections.Generic.ICollection`1<System.Int64>
struct ICollection_1_t2269752242;
// System.Collections.Generic.IEnumerable`1<System.Int64>
struct IEnumerable_1_t2716420193;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Int64,System.Object>
struct ValueCollection_t1563822970;
// System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>[]
struct KeyValuePair_2U5BU5D_t3818836818;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>>
struct IEnumerator_1_t2678021287;
// System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>
struct Dictionary_2_t1301971883;
// System.Collections.Generic.IEqualityComparer`1<System.IntPtr>
struct IEqualityComparer_1_t2947482199;
// System.Collections.Generic.IDictionary`2<System.IntPtr,System.Object>
struct IDictionary_2_t4060790570;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.IntPtr,System.Object>
struct KeyCollection_t1491647354;
// System.Collections.Generic.ICollection`1<System.IntPtr>
struct ICollection_1_t3668302415;
// System.Collections.Generic.IEnumerable`1<System.IntPtr>
struct IEnumerable_1_t4114970366;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.IntPtr,System.Object>
struct ValueCollection_t3018016201;
// System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>[]
struct KeyValuePair_2U5BU5D_t1037808359;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>>
struct IEnumerator_1_t4132214518;
// System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct Dictionary_2_t2023299556;
// System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>
struct IEqualityComparer_1_t2821352915;
// System.Collections.Generic.IDictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct IDictionary_2_t487150947;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct KeyCollection_t2212975027;
// System.Collections.Generic.ICollection`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>
struct ICollection_1_t3542173131;
// System.Collections.Generic.IEnumerable`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>
struct IEnumerable_1_t3988841082;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct ValueCollection_t3739343874;
// System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>[]
struct KeyValuePair_2U5BU5D_t274745258;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>>
struct IEnumerator_1_t558574895;
// System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct Dictionary_2_t2152459967;
// System.Collections.Generic.IDictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct IDictionary_2_t616311358;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct KeyCollection_t2342135438;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct ValueCollection_t3868504285;
// System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>[]
struct KeyValuePair_2U5BU5D_t2733438211;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>>
struct IEnumerator_1_t687735306;
// System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct Dictionary_2_t1024515101;
// System.Collections.Generic.IEqualityComparer`1<System.Object>
struct IEqualityComparer_1_t892470886;
// System.Collections.Generic.IDictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct IDictionary_2_t3783333788;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct KeyCollection_t1214190572;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct ValueCollection_t2740559419;
// System.Collections.Generic.ICollection`1<Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct ICollection_1_t2505261051;
// System.Collections.Generic.IEnumerable`1<Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct IEnumerable_1_t2951929002;
// System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>[]
struct KeyValuePair_2U5BU5D_t3546644589;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>>
struct IEnumerator_1_t3854757736;
// System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>
struct Dictionary_2_t1688192864;
// System.Collections.Generic.IDictionary`2<System.Object,Newtonsoft.Json.ReadType>
struct IDictionary_2_t152044255;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,Newtonsoft.Json.ReadType>
struct KeyCollection_t1877868335;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,Newtonsoft.Json.ReadType>
struct ValueCollection_t3404237182;
// System.Collections.Generic.ICollection`1<Newtonsoft.Json.ReadType>
struct ICollection_1_t3168938814;
// System.Collections.Generic.IEnumerable`1<Newtonsoft.Json.ReadType>
struct IEnumerable_1_t3615606765;
// System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>[]
struct KeyValuePair_2U5BU5D_t787949758;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>>
struct IEnumerator_1_t223468203;
// 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.Int32[]
struct Int32U5BU5D_t385246372;
// System.Collections.Generic.Dictionary`2/Entry<System.IntPtr,System.Object>[]
struct EntryU5BU5D_t1586537026;
// System.Collections.Generic.Dictionary`2/Entry<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>[]
struct EntryU5BU5D_t823473925;
// System.Collections.Generic.Dictionary`2/Entry<System.Int32,System.Object>[]
struct EntryU5BU5D_t3201103702;
// System.Collections.Generic.Dictionary`2/Entry<System.Int64,System.Object>[]
struct EntryU5BU5D_t72598189;
// System.Collections.Generic.Dictionary`2/Entry<System.Object,Newtonsoft.Json.ReadType>[]
struct EntryU5BU5D_t1336678425;
// System.Collections.Generic.Dictionary`2/Entry<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>[]
struct EntryU5BU5D_t3282166878;
// System.Collections.Generic.Dictionary`2/Entry<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>[]
struct EntryU5BU5D_t4095373256;
// System.String[]
struct StringU5BU5D_t1281789340;
// System.Object[]
struct ObjectU5BU5D_t2843939325;
// System.Type[]
struct TypeU5BU5D_t3940880105;
// System.Collections.Generic.Dictionary`2<System.String,System.Int32>
struct Dictionary_2_t2736202052;
// System.Runtime.Serialization.IFormatterConverter
struct IFormatterConverter_t2171992254;
// System.Runtime.CompilerServices.Ephemeron[]
struct EphemeronU5BU5D_t1564620431;
// System.Collections.Generic.Dictionary`2/Entry<System.Guid,System.Object>[]
struct EntryU5BU5D_t3881586340;
// System.Collections.Generic.Dictionary`2/Entry<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>[]
struct EntryU5BU5D_t3899865133;
// System.Void
struct Void_t1185182177;
// System.Char[]
struct CharU5BU5D_t3528271667;
// System.Security.Cryptography.RandomNumberGenerator
struct RandomNumberGenerator_t386037858;
// System.Reflection.MemberFilter
struct MemberFilter_t426314064;
// System.Reflection.Binder
struct Binder_t2999457153;
extern RuntimeClass* Int32_t2950945753_il2cpp_TypeInfo_var;
extern RuntimeClass* ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Dictionary_2__ctor_m4252786609_RuntimeMethod_var;
extern String_t* _stringLiteral3623012086;
extern String_t* _stringLiteral2892689725;
extern const uint32_t Dictionary_2__ctor_m4252786609_MetadataUsageId;
extern RuntimeClass* ArgumentNullException_t1615371798_il2cpp_TypeInfo_var;
extern RuntimeClass* Type_t_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerator_t1853284238_il2cpp_TypeInfo_var;
extern RuntimeClass* IDisposable_t3640265483_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Dictionary_2__ctor_m233545953_RuntimeMethod_var;
extern String_t* _stringLiteral2957729587;
extern const uint32_t Dictionary_2__ctor_m233545953_MetadataUsageId;
extern RuntimeClass* DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var;
extern const RuntimeMethod* ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m2092383399_MetadataUsageId;
extern RuntimeClass* KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Dictionary_2_get_Item_m3231850711_RuntimeMethod_var;
extern const uint32_t Dictionary_2_get_Item_m3231850711_MetadataUsageId;
extern RuntimeClass* ArgumentException_t132251570_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Dictionary_2_CopyTo_m472865737_RuntimeMethod_var;
extern String_t* _stringLiteral4007973390;
extern String_t* _stringLiteral797640427;
extern String_t* _stringLiteral1358229803;
extern String_t* _stringLiteral218911153;
extern const uint32_t Dictionary_2_CopyTo_m472865737_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_GetObjectData_m3686008415_RuntimeMethod_var;
extern String_t* _stringLiteral79347;
extern String_t* _stringLiteral1902402919;
extern String_t* _stringLiteral892943380;
extern String_t* _stringLiteral953796230;
extern String_t* _stringLiteral2947573650;
extern const uint32_t Dictionary_2_GetObjectData_m3686008415_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_FindEntry_m2930995802_RuntimeMethod_var;
extern String_t* _stringLiteral2600271970;
extern const uint32_t Dictionary_2_FindEntry_m2930995802_MetadataUsageId;
extern RuntimeClass* HashHelpers_t3497540039_il2cpp_TypeInfo_var;
extern RuntimeClass* Int32U5BU5D_t385246372_il2cpp_TypeInfo_var;
extern const uint32_t Dictionary_2_Initialize_m614153553_MetadataUsageId;
extern RuntimeClass* NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Dictionary_2_TryInsert_m1177424199_RuntimeMethod_var;
extern const RuntimeMethod* EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var;
extern String_t* _stringLiteral1494472686;
extern const uint32_t Dictionary_2_TryInsert_m1177424199_MetadataUsageId;
extern RuntimeClass* SerializationException_t3941511869_il2cpp_TypeInfo_var;
extern const RuntimeMethod* ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var;
extern const RuntimeMethod* Dictionary_2_OnDeserialization_m2463324380_RuntimeMethod_var;
extern const RuntimeMethod* ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var;
extern String_t* _stringLiteral998597917;
extern String_t* _stringLiteral3616747365;
extern const uint32_t Dictionary_2_OnDeserialization_m2463324380_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m1874415163_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m1123117157_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_Remove_m1389311379_RuntimeMethod_var;
extern const uint32_t Dictionary_2_Remove_m1389311379_MetadataUsageId;
extern RuntimeClass* DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var;
extern RuntimeClass* ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var;
extern RuntimeClass* ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_RuntimeMethod_var;
extern String_t* _stringLiteral915403387;
extern String_t* _stringLiteral2590862907;
extern String_t* _stringLiteral1013684703;
extern const uint32_t Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_MetadataUsageId;
extern RuntimeClass* RuntimeObject_il2cpp_TypeInfo_var;
extern const uint32_t Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3792152094_MetadataUsageId;
extern RuntimeClass* InvalidCastException_t3927145244_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_set_Item_m3807605749_RuntimeMethod_var;
extern String_t* _stringLiteral3493618073;
extern String_t* _stringLiteral178859674;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_set_Item_m3807605749_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_IsCompatibleKey_m4017050174_RuntimeMethod_var;
extern const uint32_t Dictionary_2_IsCompatibleKey_m4017050174_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_Add_m2582633052_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_Add_m2582633052_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m3433698816_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m3433698816_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m1031805020_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m1031805020_MetadataUsageId;
extern const uint32_t Dictionary_2__ctor_m2547391498_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_get_Item_m3891720194_RuntimeMethod_var;
extern const uint32_t Dictionary_2_get_Item_m3891720194_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_CopyTo_m2983657705_RuntimeMethod_var;
extern const uint32_t Dictionary_2_CopyTo_m2983657705_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_GetObjectData_m649899198_RuntimeMethod_var;
extern const uint32_t Dictionary_2_GetObjectData_m649899198_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_FindEntry_m3901533999_RuntimeMethod_var;
extern const uint32_t Dictionary_2_FindEntry_m3901533999_MetadataUsageId;
extern const uint32_t Dictionary_2_Initialize_m11276839_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_TryInsert_m2328153114_RuntimeMethod_var;
extern const uint32_t Dictionary_2_TryInsert_m2328153114_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_OnDeserialization_m4000353487_RuntimeMethod_var;
extern const uint32_t Dictionary_2_OnDeserialization_m4000353487_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m3472074455_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m2347430199_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_Remove_m3772493927_RuntimeMethod_var;
extern const uint32_t Dictionary_2_Remove_m3772493927_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_MetadataUsageId;
extern const uint32_t Dictionary_2_System_Collections_ICollection_get_SyncRoot_m56757569_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_set_Item_m2499351522_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_set_Item_m2499351522_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_IsCompatibleKey_m2616503725_RuntimeMethod_var;
extern const uint32_t Dictionary_2_IsCompatibleKey_m2616503725_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_Add_m4093959999_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_Add_m4093959999_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m3734853840_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m3734853840_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m280240841_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m280240841_MetadataUsageId;
extern const uint32_t Dictionary_2__ctor_m2744724763_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_get_Item_m193757924_RuntimeMethod_var;
extern const uint32_t Dictionary_2_get_Item_m193757924_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_CopyTo_m1376953690_RuntimeMethod_var;
extern const uint32_t Dictionary_2_CopyTo_m1376953690_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_GetObjectData_m887151650_RuntimeMethod_var;
extern const uint32_t Dictionary_2_GetObjectData_m887151650_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_FindEntry_m3430524088_RuntimeMethod_var;
extern const uint32_t Dictionary_2_FindEntry_m3430524088_MetadataUsageId;
extern const uint32_t Dictionary_2_Initialize_m3355103225_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_TryInsert_m3153830767_RuntimeMethod_var;
extern const uint32_t Dictionary_2_TryInsert_m3153830767_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_OnDeserialization_m4209543208_RuntimeMethod_var;
extern const uint32_t Dictionary_2_OnDeserialization_m4209543208_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m1156965638_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m1781717824_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_Remove_m1344073393_RuntimeMethod_var;
extern const uint32_t Dictionary_2_Remove_m1344073393_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_MetadataUsageId;
extern const uint32_t Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2020472285_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_set_Item_m439946704_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_set_Item_m439946704_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_IsCompatibleKey_m29634657_RuntimeMethod_var;
extern const uint32_t Dictionary_2_IsCompatibleKey_m29634657_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_Add_m776121614_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_Add_m776121614_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m3986026798_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m3986026798_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m2081172397_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m2081172397_MetadataUsageId;
extern const uint32_t Dictionary_2__ctor_m2709410819_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_get_Item_m2703205864_RuntimeMethod_var;
extern const uint32_t Dictionary_2_get_Item_m2703205864_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_CopyTo_m1333059652_RuntimeMethod_var;
extern const uint32_t Dictionary_2_CopyTo_m1333059652_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_GetObjectData_m2436879205_RuntimeMethod_var;
extern const uint32_t Dictionary_2_GetObjectData_m2436879205_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_FindEntry_m2206874631_RuntimeMethod_var;
extern const uint32_t Dictionary_2_FindEntry_m2206874631_MetadataUsageId;
extern const uint32_t Dictionary_2_Initialize_m3456609917_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_TryInsert_m1144100818_RuntimeMethod_var;
extern const uint32_t Dictionary_2_TryInsert_m1144100818_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_OnDeserialization_m1208018860_RuntimeMethod_var;
extern const uint32_t Dictionary_2_OnDeserialization_m1208018860_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m1924695631_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m1682939622_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_Remove_m1107143448_RuntimeMethod_var;
extern const uint32_t Dictionary_2_Remove_m1107143448_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_MetadataUsageId;
extern const uint32_t Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2718487944_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_set_Item_m977858099_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_set_Item_m977858099_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_IsCompatibleKey_m467002433_RuntimeMethod_var;
extern const uint32_t Dictionary_2_IsCompatibleKey_m467002433_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_Add_m955457640_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_Add_m955457640_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m2714654974_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m2714654974_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m698475317_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m698475317_MetadataUsageId;
extern const uint32_t Dictionary_2__ctor_m3922793767_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_get_Item_m3819809351_RuntimeMethod_var;
extern const uint32_t Dictionary_2_get_Item_m3819809351_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_CopyTo_m3468884170_RuntimeMethod_var;
extern const uint32_t Dictionary_2_CopyTo_m3468884170_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_GetObjectData_m2556964510_RuntimeMethod_var;
extern const uint32_t Dictionary_2_GetObjectData_m2556964510_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_FindEntry_m3757802837_RuntimeMethod_var;
extern const uint32_t Dictionary_2_FindEntry_m3757802837_MetadataUsageId;
extern const uint32_t Dictionary_2_Initialize_m3180511911_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_TryInsert_m559336601_RuntimeMethod_var;
extern const uint32_t Dictionary_2_TryInsert_m559336601_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_OnDeserialization_m2513480556_RuntimeMethod_var;
extern const uint32_t Dictionary_2_OnDeserialization_m2513480556_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m2794652808_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m742467928_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_Remove_m578306649_RuntimeMethod_var;
extern const uint32_t Dictionary_2_Remove_m578306649_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_MetadataUsageId;
extern const uint32_t Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3729321703_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_set_Item_m532364140_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_set_Item_m532364140_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_IsCompatibleKey_m1639957113_RuntimeMethod_var;
extern const uint32_t Dictionary_2_IsCompatibleKey_m1639957113_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_Add_m1765038143_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_Add_m1765038143_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m4175293831_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m4175293831_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m1123465845_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m1123465845_MetadataUsageId;
extern const uint32_t Dictionary_2__ctor_m522877889_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_get_Item_m481118197_RuntimeMethod_var;
extern const uint32_t Dictionary_2_get_Item_m481118197_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_CopyTo_m785378937_RuntimeMethod_var;
extern const uint32_t Dictionary_2_CopyTo_m785378937_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_GetObjectData_m978287154_RuntimeMethod_var;
extern const uint32_t Dictionary_2_GetObjectData_m978287154_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_FindEntry_m3018323460_RuntimeMethod_var;
extern const uint32_t Dictionary_2_FindEntry_m3018323460_MetadataUsageId;
extern const uint32_t Dictionary_2_Initialize_m1544430765_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_TryInsert_m2657729601_RuntimeMethod_var;
extern const uint32_t Dictionary_2_TryInsert_m2657729601_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_OnDeserialization_m3823097121_RuntimeMethod_var;
extern const uint32_t Dictionary_2_OnDeserialization_m3823097121_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m659395061_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m250856362_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_Remove_m1829051241_RuntimeMethod_var;
extern const uint32_t Dictionary_2_Remove_m1829051241_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_MetadataUsageId;
extern const uint32_t Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3223928656_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_set_Item_m2266717171_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_set_Item_m2266717171_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_IsCompatibleKey_m3469216370_RuntimeMethod_var;
extern const uint32_t Dictionary_2_IsCompatibleKey_m3469216370_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_Add_m3829889844_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_Add_m3829889844_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m1894841792_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m1894841792_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m4260611729_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m4260611729_MetadataUsageId;
extern const uint32_t Dictionary_2__ctor_m1763350274_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_get_Item_m2585986796_RuntimeMethod_var;
extern const uint32_t Dictionary_2_get_Item_m2585986796_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_CopyTo_m2475980018_RuntimeMethod_var;
extern const uint32_t Dictionary_2_CopyTo_m2475980018_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_GetObjectData_m3804313701_RuntimeMethod_var;
extern const uint32_t Dictionary_2_GetObjectData_m3804313701_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_FindEntry_m27431413_RuntimeMethod_var;
extern const uint32_t Dictionary_2_FindEntry_m27431413_MetadataUsageId;
extern const uint32_t Dictionary_2_Initialize_m1873927531_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_TryInsert_m3703518424_RuntimeMethod_var;
extern const uint32_t Dictionary_2_TryInsert_m3703518424_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_OnDeserialization_m1000149097_RuntimeMethod_var;
extern const uint32_t Dictionary_2_OnDeserialization_m1000149097_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m2517039196_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m1901725084_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_Remove_m3532039286_RuntimeMethod_var;
extern const uint32_t Dictionary_2_Remove_m3532039286_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_MetadataUsageId;
extern const uint32_t Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2881186505_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_set_Item_m4204470156_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_set_Item_m4204470156_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_IsCompatibleKey_m4221256847_RuntimeMethod_var;
extern const uint32_t Dictionary_2_IsCompatibleKey_m4221256847_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_Add_m299235644_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_Add_m299235644_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m1817889468_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m1817889468_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m350060192_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m350060192_MetadataUsageId;
extern const uint32_t Dictionary_2__ctor_m2995685984_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_get_Item_m887905901_RuntimeMethod_var;
extern const uint32_t Dictionary_2_get_Item_m887905901_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_CopyTo_m2268151857_RuntimeMethod_var;
extern const uint32_t Dictionary_2_CopyTo_m2268151857_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_GetObjectData_m2052410966_RuntimeMethod_var;
extern const uint32_t Dictionary_2_GetObjectData_m2052410966_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_FindEntry_m2571352939_RuntimeMethod_var;
extern const uint32_t Dictionary_2_FindEntry_m2571352939_MetadataUsageId;
extern const uint32_t Dictionary_2_Initialize_m7009819_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_TryInsert_m4130874827_RuntimeMethod_var;
extern const uint32_t Dictionary_2_TryInsert_m4130874827_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_OnDeserialization_m13719045_RuntimeMethod_var;
extern const uint32_t Dictionary_2_OnDeserialization_m13719045_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m541411745_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m1007642313_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_Remove_m3647470246_RuntimeMethod_var;
extern const uint32_t Dictionary_2_Remove_m3647470246_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_MetadataUsageId;
extern const uint32_t Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3450894714_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_set_Item_m447147044_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_set_Item_m447147044_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_IsCompatibleKey_m2220311618_RuntimeMethod_var;
extern const uint32_t Dictionary_2_IsCompatibleKey_m2220311618_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_Add_m4121866365_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_Add_m4121866365_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m4261469336_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m4261469336_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2__ctor_m1508002019_RuntimeMethod_var;
extern const uint32_t Dictionary_2__ctor_m1508002019_MetadataUsageId;
extern const uint32_t Dictionary_2__ctor_m1178323843_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_get_Item_m1441595193_RuntimeMethod_var;
extern const uint32_t Dictionary_2_get_Item_m1441595193_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_CopyTo_m1769849458_RuntimeMethod_var;
extern const uint32_t Dictionary_2_CopyTo_m1769849458_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_GetObjectData_m754226731_RuntimeMethod_var;
extern const uint32_t Dictionary_2_GetObjectData_m754226731_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_FindEntry_m278732764_RuntimeMethod_var;
extern const uint32_t Dictionary_2_FindEntry_m278732764_MetadataUsageId;
extern const uint32_t Dictionary_2_Initialize_m4163359530_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_TryInsert_m3476147396_RuntimeMethod_var;
extern const uint32_t Dictionary_2_TryInsert_m3476147396_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_OnDeserialization_m1828366926_RuntimeMethod_var;
extern const uint32_t Dictionary_2_OnDeserialization_m1828366926_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m627186907_MetadataUsageId;
extern const uint32_t Dictionary_2_Resize_m2314597368_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_Remove_m695714452_RuntimeMethod_var;
extern const uint32_t Dictionary_2_Remove_m695714452_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_MetadataUsageId;
extern const uint32_t Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3102507170_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_set_Item_m1326278113_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_set_Item_m1326278113_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_IsCompatibleKey_m889728702_RuntimeMethod_var;
extern const uint32_t Dictionary_2_IsCompatibleKey_m889728702_MetadataUsageId;
extern const RuntimeMethod* Dictionary_2_System_Collections_IDictionary_Add_m1815564944_RuntimeMethod_var;
extern const uint32_t Dictionary_2_System_Collections_IDictionary_Add_m1815564944_MetadataUsageId;
struct Exception_t_marshaled_pinvoke;
struct Exception_t_marshaled_com;
struct EntryU5BU5D_t3899865133;
struct Int32U5BU5D_t385246372;
struct KeyValuePair_2U5BU5D_t3351136466;
struct DictionaryEntryU5BU5D_t4217117203;
struct ObjectU5BU5D_t2843939325;
struct EntryU5BU5D_t3881586340;
struct KeyValuePair_2U5BU5D_t3332857673;
struct EntryU5BU5D_t3201103702;
struct KeyValuePair_2U5BU5D_t2652375035;
struct EntryU5BU5D_t72598189;
struct KeyValuePair_2U5BU5D_t3818836818;
struct EntryU5BU5D_t1586537026;
struct KeyValuePair_2U5BU5D_t1037808359;
struct EntryU5BU5D_t823473925;
struct KeyValuePair_2U5BU5D_t274745258;
struct EntryU5BU5D_t3282166878;
struct KeyValuePair_2U5BU5D_t2733438211;
struct EntryU5BU5D_t4095373256;
struct KeyValuePair_2U5BU5D_t3546644589;
struct EntryU5BU5D_t1336678425;
struct KeyValuePair_2U5BU5D_t787949758;
#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 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 VALUECOLLECTION_T1563822970_H
#define VALUECOLLECTION_T1563822970_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/ValueCollection<System.Int64,System.Object>
struct ValueCollection_t1563822970 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t4142745948 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t1563822970, ___dictionary_0)); }
inline Dictionary_2_t4142745948 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t4142745948 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t4142745948 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALUECOLLECTION_T1563822970_H
#ifndef KEYCOLLECTION_T37454123_H
#define KEYCOLLECTION_T37454123_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/KeyCollection<System.Int64,System.Object>
struct KeyCollection_t37454123 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection::dictionary
Dictionary_2_t4142745948 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(KeyCollection_t37454123, ___dictionary_0)); }
inline Dictionary_2_t4142745948 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t4142745948 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t4142745948 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCOLLECTION_T37454123_H
#ifndef DICTIONARY_2_T1301971883_H
#define DICTIONARY_2_T1301971883_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.IntPtr,System.Object>
struct Dictionary_2_t1301971883 : 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_t1586537026* ___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_t1491647354 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t3018016201 * ___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_t1301971883, ___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_t1301971883, ___entries_1)); }
inline EntryU5BU5D_t1586537026* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t1586537026** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t1586537026* 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_t1301971883, ___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_t1301971883, ___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_t1301971883, ___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_t1301971883, ___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_t1301971883, ___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_t1301971883, ___keys_7)); }
inline KeyCollection_t1491647354 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t1491647354 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t1491647354 * 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_t1301971883, ___values_8)); }
inline ValueCollection_t3018016201 * get_values_8() const { return ___values_8; }
inline ValueCollection_t3018016201 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t3018016201 * 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_t1301971883, ____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_T1301971883_H
#ifndef VALUECOLLECTION_T3018016201_H
#define VALUECOLLECTION_T3018016201_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/ValueCollection<System.IntPtr,System.Object>
struct ValueCollection_t3018016201 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t1301971883 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t3018016201, ___dictionary_0)); }
inline Dictionary_2_t1301971883 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1301971883 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1301971883 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALUECOLLECTION_T3018016201_H
#ifndef DICTIONARY_2_T2023299556_H
#define DICTIONARY_2_T2023299556_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.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct Dictionary_2_t2023299556 : 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_t823473925* ___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_t2212975027 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t3739343874 * ___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_t2023299556, ___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_t2023299556, ___entries_1)); }
inline EntryU5BU5D_t823473925* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t823473925** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t823473925* 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_t2023299556, ___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_t2023299556, ___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_t2023299556, ___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_t2023299556, ___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_t2023299556, ___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_t2023299556, ___keys_7)); }
inline KeyCollection_t2212975027 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t2212975027 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t2212975027 * 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_t2023299556, ___values_8)); }
inline ValueCollection_t3739343874 * get_values_8() const { return ___values_8; }
inline ValueCollection_t3739343874 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t3739343874 * 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_t2023299556, ____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_T2023299556_H
#ifndef EQUALITYCOMPARER_1_T3304889813_H
#define EQUALITYCOMPARER_1_T3304889813_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<System.IntPtr>
struct EqualityComparer_1_t3304889813 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t3304889813_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t3304889813 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t3304889813_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t3304889813 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t3304889813 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t3304889813 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T3304889813_H
#ifndef KEYCOLLECTION_T1491647354_H
#define KEYCOLLECTION_T1491647354_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/KeyCollection<System.IntPtr,System.Object>
struct KeyCollection_t1491647354 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection::dictionary
Dictionary_2_t1301971883 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(KeyCollection_t1491647354, ___dictionary_0)); }
inline Dictionary_2_t1301971883 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1301971883 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1301971883 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCOLLECTION_T1491647354_H
#ifndef DICTIONARY_2_T1968819495_H
#define DICTIONARY_2_T1968819495_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.Int32,System.Object>
struct Dictionary_2_t1968819495 : 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_t3201103702* ___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_t2158494966 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t3684863813 * ___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_t1968819495, ___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_t1968819495, ___entries_1)); }
inline EntryU5BU5D_t3201103702* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t3201103702** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t3201103702* 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_t1968819495, ___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_t1968819495, ___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_t1968819495, ___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_t1968819495, ___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_t1968819495, ___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_t1968819495, ___keys_7)); }
inline KeyCollection_t2158494966 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t2158494966 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t2158494966 * 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_t1968819495, ___values_8)); }
inline ValueCollection_t3684863813 * get_values_8() const { return ___values_8; }
inline ValueCollection_t3684863813 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t3684863813 * 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_t1968819495, ____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_T1968819495_H
#ifndef EQUALITYCOMPARER_1_T1120718089_H
#define EQUALITYCOMPARER_1_T1120718089_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<System.Int32>
struct EqualityComparer_1_t1120718089 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t1120718089_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t1120718089 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t1120718089_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t1120718089 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t1120718089 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t1120718089 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T1120718089_H
#ifndef KEYCOLLECTION_T2318799168_H
#define KEYCOLLECTION_T2318799168_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/KeyCollection<System.Guid,System.Object>
struct KeyCollection_t2318799168 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection::dictionary
Dictionary_2_t2129123697 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(KeyCollection_t2318799168, ___dictionary_0)); }
inline Dictionary_2_t2129123697 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2129123697 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2129123697 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCOLLECTION_T2318799168_H
#ifndef VALUECOLLECTION_T3845168015_H
#define VALUECOLLECTION_T3845168015_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/ValueCollection<System.Guid,System.Object>
struct ValueCollection_t3845168015 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t2129123697 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t3845168015, ___dictionary_0)); }
inline Dictionary_2_t2129123697 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2129123697 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2129123697 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALUECOLLECTION_T3845168015_H
#ifndef DICTIONARY_2_T4142745948_H
#define DICTIONARY_2_T4142745948_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.Int64,System.Object>
struct Dictionary_2_t4142745948 : 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_t72598189* ___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_t37454123 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t1563822970 * ___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_t4142745948, ___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_t4142745948, ___entries_1)); }
inline EntryU5BU5D_t72598189* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t72598189** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t72598189* 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_t4142745948, ___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_t4142745948, ___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_t4142745948, ___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_t4142745948, ___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_t4142745948, ___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_t4142745948, ___keys_7)); }
inline KeyCollection_t37454123 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t37454123 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t37454123 * 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_t4142745948, ___values_8)); }
inline ValueCollection_t1563822970 * get_values_8() const { return ___values_8; }
inline ValueCollection_t1563822970 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t1563822970 * 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_t4142745948, ____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_T4142745948_H
#ifndef EQUALITYCOMPARER_1_T1906339640_H
#define EQUALITYCOMPARER_1_T1906339640_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<System.Int64>
struct EqualityComparer_1_t1906339640 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t1906339640_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t1906339640 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t1906339640_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t1906339640 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t1906339640 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t1906339640 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T1906339640_H
#ifndef KEYCOLLECTION_T2158494966_H
#define KEYCOLLECTION_T2158494966_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/KeyCollection<System.Int32,System.Object>
struct KeyCollection_t2158494966 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection::dictionary
Dictionary_2_t1968819495 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(KeyCollection_t2158494966, ___dictionary_0)); }
inline Dictionary_2_t1968819495 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1968819495 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1968819495 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCOLLECTION_T2158494966_H
#ifndef VALUECOLLECTION_T3684863813_H
#define VALUECOLLECTION_T3684863813_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/ValueCollection<System.Int32,System.Object>
struct ValueCollection_t3684863813 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t1968819495 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t3684863813, ___dictionary_0)); }
inline Dictionary_2_t1968819495 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1968819495 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1968819495 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALUECOLLECTION_T3684863813_H
#ifndef DICTIONARY_2_T1688192864_H
#define DICTIONARY_2_T1688192864_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.Object,Newtonsoft.Json.ReadType>
struct Dictionary_2_t1688192864 : 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_t1336678425* ___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_t1877868335 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t3404237182 * ___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_t1688192864, ___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_t1688192864, ___entries_1)); }
inline EntryU5BU5D_t1336678425* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t1336678425** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t1336678425* 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_t1688192864, ___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_t1688192864, ___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_t1688192864, ___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_t1688192864, ___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_t1688192864, ___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_t1688192864, ___keys_7)); }
inline KeyCollection_t1877868335 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t1877868335 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t1877868335 * 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_t1688192864, ___values_8)); }
inline ValueCollection_t3404237182 * get_values_8() const { return ___values_8; }
inline ValueCollection_t3404237182 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t3404237182 * 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_t1688192864, ____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_T1688192864_H
#ifndef KEYCOLLECTION_T1877868335_H
#define KEYCOLLECTION_T1877868335_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/KeyCollection<System.Object,Newtonsoft.Json.ReadType>
struct KeyCollection_t1877868335 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection::dictionary
Dictionary_2_t1688192864 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(KeyCollection_t1877868335, ___dictionary_0)); }
inline Dictionary_2_t1688192864 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1688192864 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1688192864 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCOLLECTION_T1877868335_H
#ifndef VALUECOLLECTION_T2740559419_H
#define VALUECOLLECTION_T2740559419_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/ValueCollection<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct ValueCollection_t2740559419 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t1024515101 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t2740559419, ___dictionary_0)); }
inline Dictionary_2_t1024515101 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1024515101 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1024515101 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALUECOLLECTION_T2740559419_H
#ifndef EQUALITYCOMPARER_1_T2141848449_H
#define EQUALITYCOMPARER_1_T2141848449_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct EqualityComparer_1_t2141848449 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t2141848449_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t2141848449 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t2141848449_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t2141848449 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t2141848449 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t2141848449 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T2141848449_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 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 VALUECOLLECTION_T3404237182_H
#define VALUECOLLECTION_T3404237182_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/ValueCollection<System.Object,Newtonsoft.Json.ReadType>
struct ValueCollection_t3404237182 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t1688192864 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t3404237182, ___dictionary_0)); }
inline Dictionary_2_t1688192864 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1688192864 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1688192864 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALUECOLLECTION_T3404237182_H
#ifndef EQUALITYCOMPARER_1_T2805526212_H
#define EQUALITYCOMPARER_1_T2805526212_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<Newtonsoft.Json.ReadType>
struct EqualityComparer_1_t2805526212 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t2805526212_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t2805526212 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t2805526212_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t2805526212 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t2805526212 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t2805526212 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T2805526212_H
#ifndef VALUECOLLECTION_T3739343874_H
#define VALUECOLLECTION_T3739343874_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/ValueCollection<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct ValueCollection_t3739343874 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t2023299556 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t3739343874, ___dictionary_0)); }
inline Dictionary_2_t2023299556 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2023299556 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2023299556 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALUECOLLECTION_T3739343874_H
#ifndef DICTIONARY_2_T2152459967_H
#define DICTIONARY_2_T2152459967_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.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct Dictionary_2_t2152459967 : 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_t3282166878* ___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_t2342135438 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t3868504285 * ___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_t2152459967, ___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_t2152459967, ___entries_1)); }
inline EntryU5BU5D_t3282166878* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t3282166878** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t3282166878* 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_t2152459967, ___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_t2152459967, ___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_t2152459967, ___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_t2152459967, ___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_t2152459967, ___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_t2152459967, ___keys_7)); }
inline KeyCollection_t2342135438 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t2342135438 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t2342135438 * 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_t2152459967, ___values_8)); }
inline ValueCollection_t3868504285 * get_values_8() const { return ___values_8; }
inline ValueCollection_t3868504285 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t3868504285 * 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_t2152459967, ____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_T2152459967_H
#ifndef EQUALITYCOMPARER_1_T3178760529_H
#define EQUALITYCOMPARER_1_T3178760529_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>
struct EqualityComparer_1_t3178760529 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t3178760529_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t3178760529 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t3178760529_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t3178760529 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t3178760529 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t3178760529 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T3178760529_H
#ifndef KEYCOLLECTION_T2212975027_H
#define KEYCOLLECTION_T2212975027_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/KeyCollection<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct KeyCollection_t2212975027 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection::dictionary
Dictionary_2_t2023299556 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(KeyCollection_t2212975027, ___dictionary_0)); }
inline Dictionary_2_t2023299556 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2023299556 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2023299556 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCOLLECTION_T2212975027_H
#ifndef DICTIONARY_2_T1024515101_H
#define DICTIONARY_2_T1024515101_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.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct Dictionary_2_t1024515101 : 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_t4095373256* ___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_t1214190572 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t2740559419 * ___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_t1024515101, ___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_t1024515101, ___entries_1)); }
inline EntryU5BU5D_t4095373256* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t4095373256** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t4095373256* 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_t1024515101, ___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_t1024515101, ___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_t1024515101, ___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_t1024515101, ___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_t1024515101, ___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_t1024515101, ___keys_7)); }
inline KeyCollection_t1214190572 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t1214190572 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t1214190572 * 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_t1024515101, ___values_8)); }
inline ValueCollection_t2740559419 * get_values_8() const { return ___values_8; }
inline ValueCollection_t2740559419 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t2740559419 * 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_t1024515101, ____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_T1024515101_H
#ifndef KEYCOLLECTION_T1214190572_H
#define KEYCOLLECTION_T1214190572_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/KeyCollection<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct KeyCollection_t1214190572 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection::dictionary
Dictionary_2_t1024515101 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(KeyCollection_t1214190572, ___dictionary_0)); }
inline Dictionary_2_t1024515101 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1024515101 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1024515101 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCOLLECTION_T1214190572_H
#ifndef KEYCOLLECTION_T2342135438_H
#define KEYCOLLECTION_T2342135438_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/KeyCollection<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct KeyCollection_t2342135438 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection::dictionary
Dictionary_2_t2152459967 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(KeyCollection_t2342135438, ___dictionary_0)); }
inline Dictionary_2_t2152459967 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2152459967 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2152459967 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCOLLECTION_T2342135438_H
#ifndef VALUECOLLECTION_T3868504285_H
#define VALUECOLLECTION_T3868504285_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/ValueCollection<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct ValueCollection_t3868504285 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t2152459967 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t3868504285, ___dictionary_0)); }
inline Dictionary_2_t2152459967 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2152459967 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2152459967 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALUECOLLECTION_T3868504285_H
#ifndef SERIALIZATIONINFO_T950877179_H
#define SERIALIZATIONINFO_T950877179_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Serialization.SerializationInfo
struct SerializationInfo_t950877179 : public RuntimeObject
{
public:
// System.String[] System.Runtime.Serialization.SerializationInfo::m_members
StringU5BU5D_t1281789340* ___m_members_3;
// System.Object[] System.Runtime.Serialization.SerializationInfo::m_data
ObjectU5BU5D_t2843939325* ___m_data_4;
// System.Type[] System.Runtime.Serialization.SerializationInfo::m_types
TypeU5BU5D_t3940880105* ___m_types_5;
// System.Collections.Generic.Dictionary`2<System.String,System.Int32> System.Runtime.Serialization.SerializationInfo::m_nameToIndex
Dictionary_2_t2736202052 * ___m_nameToIndex_6;
// System.Int32 System.Runtime.Serialization.SerializationInfo::m_currMember
int32_t ___m_currMember_7;
// System.Runtime.Serialization.IFormatterConverter System.Runtime.Serialization.SerializationInfo::m_converter
RuntimeObject* ___m_converter_8;
// System.String System.Runtime.Serialization.SerializationInfo::m_fullTypeName
String_t* ___m_fullTypeName_9;
// System.String System.Runtime.Serialization.SerializationInfo::m_assemName
String_t* ___m_assemName_10;
// System.Type System.Runtime.Serialization.SerializationInfo::objectType
Type_t * ___objectType_11;
// System.Boolean System.Runtime.Serialization.SerializationInfo::isFullTypeNameSetExplicit
bool ___isFullTypeNameSetExplicit_12;
// System.Boolean System.Runtime.Serialization.SerializationInfo::isAssemblyNameSetExplicit
bool ___isAssemblyNameSetExplicit_13;
// System.Boolean System.Runtime.Serialization.SerializationInfo::requireSameTokenInPartialTrust
bool ___requireSameTokenInPartialTrust_14;
public:
inline static int32_t get_offset_of_m_members_3() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___m_members_3)); }
inline StringU5BU5D_t1281789340* get_m_members_3() const { return ___m_members_3; }
inline StringU5BU5D_t1281789340** get_address_of_m_members_3() { return &___m_members_3; }
inline void set_m_members_3(StringU5BU5D_t1281789340* value)
{
___m_members_3 = value;
Il2CppCodeGenWriteBarrier((&___m_members_3), value);
}
inline static int32_t get_offset_of_m_data_4() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___m_data_4)); }
inline ObjectU5BU5D_t2843939325* get_m_data_4() const { return ___m_data_4; }
inline ObjectU5BU5D_t2843939325** get_address_of_m_data_4() { return &___m_data_4; }
inline void set_m_data_4(ObjectU5BU5D_t2843939325* value)
{
___m_data_4 = value;
Il2CppCodeGenWriteBarrier((&___m_data_4), value);
}
inline static int32_t get_offset_of_m_types_5() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___m_types_5)); }
inline TypeU5BU5D_t3940880105* get_m_types_5() const { return ___m_types_5; }
inline TypeU5BU5D_t3940880105** get_address_of_m_types_5() { return &___m_types_5; }
inline void set_m_types_5(TypeU5BU5D_t3940880105* value)
{
___m_types_5 = value;
Il2CppCodeGenWriteBarrier((&___m_types_5), value);
}
inline static int32_t get_offset_of_m_nameToIndex_6() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___m_nameToIndex_6)); }
inline Dictionary_2_t2736202052 * get_m_nameToIndex_6() const { return ___m_nameToIndex_6; }
inline Dictionary_2_t2736202052 ** get_address_of_m_nameToIndex_6() { return &___m_nameToIndex_6; }
inline void set_m_nameToIndex_6(Dictionary_2_t2736202052 * value)
{
___m_nameToIndex_6 = value;
Il2CppCodeGenWriteBarrier((&___m_nameToIndex_6), value);
}
inline static int32_t get_offset_of_m_currMember_7() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___m_currMember_7)); }
inline int32_t get_m_currMember_7() const { return ___m_currMember_7; }
inline int32_t* get_address_of_m_currMember_7() { return &___m_currMember_7; }
inline void set_m_currMember_7(int32_t value)
{
___m_currMember_7 = value;
}
inline static int32_t get_offset_of_m_converter_8() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___m_converter_8)); }
inline RuntimeObject* get_m_converter_8() const { return ___m_converter_8; }
inline RuntimeObject** get_address_of_m_converter_8() { return &___m_converter_8; }
inline void set_m_converter_8(RuntimeObject* value)
{
___m_converter_8 = value;
Il2CppCodeGenWriteBarrier((&___m_converter_8), value);
}
inline static int32_t get_offset_of_m_fullTypeName_9() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___m_fullTypeName_9)); }
inline String_t* get_m_fullTypeName_9() const { return ___m_fullTypeName_9; }
inline String_t** get_address_of_m_fullTypeName_9() { return &___m_fullTypeName_9; }
inline void set_m_fullTypeName_9(String_t* value)
{
___m_fullTypeName_9 = value;
Il2CppCodeGenWriteBarrier((&___m_fullTypeName_9), value);
}
inline static int32_t get_offset_of_m_assemName_10() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___m_assemName_10)); }
inline String_t* get_m_assemName_10() const { return ___m_assemName_10; }
inline String_t** get_address_of_m_assemName_10() { return &___m_assemName_10; }
inline void set_m_assemName_10(String_t* value)
{
___m_assemName_10 = value;
Il2CppCodeGenWriteBarrier((&___m_assemName_10), value);
}
inline static int32_t get_offset_of_objectType_11() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___objectType_11)); }
inline Type_t * get_objectType_11() const { return ___objectType_11; }
inline Type_t ** get_address_of_objectType_11() { return &___objectType_11; }
inline void set_objectType_11(Type_t * value)
{
___objectType_11 = value;
Il2CppCodeGenWriteBarrier((&___objectType_11), value);
}
inline static int32_t get_offset_of_isFullTypeNameSetExplicit_12() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___isFullTypeNameSetExplicit_12)); }
inline bool get_isFullTypeNameSetExplicit_12() const { return ___isFullTypeNameSetExplicit_12; }
inline bool* get_address_of_isFullTypeNameSetExplicit_12() { return &___isFullTypeNameSetExplicit_12; }
inline void set_isFullTypeNameSetExplicit_12(bool value)
{
___isFullTypeNameSetExplicit_12 = value;
}
inline static int32_t get_offset_of_isAssemblyNameSetExplicit_13() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___isAssemblyNameSetExplicit_13)); }
inline bool get_isAssemblyNameSetExplicit_13() const { return ___isAssemblyNameSetExplicit_13; }
inline bool* get_address_of_isAssemblyNameSetExplicit_13() { return &___isAssemblyNameSetExplicit_13; }
inline void set_isAssemblyNameSetExplicit_13(bool value)
{
___isAssemblyNameSetExplicit_13 = value;
}
inline static int32_t get_offset_of_requireSameTokenInPartialTrust_14() { return static_cast<int32_t>(offsetof(SerializationInfo_t950877179, ___requireSameTokenInPartialTrust_14)); }
inline bool get_requireSameTokenInPartialTrust_14() const { return ___requireSameTokenInPartialTrust_14; }
inline bool* get_address_of_requireSameTokenInPartialTrust_14() { return &___requireSameTokenInPartialTrust_14; }
inline void set_requireSameTokenInPartialTrust_14(bool value)
{
___requireSameTokenInPartialTrust_14 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SERIALIZATIONINFO_T950877179_H
#ifndef EQUALITYCOMPARER_1_T1249878500_H
#define EQUALITYCOMPARER_1_T1249878500_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<System.Object>
struct EqualityComparer_1_t1249878500 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t1249878500_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t1249878500 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t1249878500_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t1249878500 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t1249878500 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t1249878500 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T1249878500_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 EQUALITYCOMPARER_1_T17223025_H
#define EQUALITYCOMPARER_1_T17223025_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<System.String>
struct EqualityComparer_1_t17223025 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t17223025_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t17223025 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t17223025_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t17223025 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t17223025 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t17223025 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T17223025_H
#ifndef VALUECOLLECTION_T72000506_H
#define VALUECOLLECTION_T72000506_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/ValueCollection<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct ValueCollection_t72000506 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t2650923484 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t72000506, ___dictionary_0)); }
inline Dictionary_2_t2650923484 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2650923484 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2650923484 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALUECOLLECTION_T72000506_H
#ifndef KEYCOLLECTION_T2840598955_H
#define KEYCOLLECTION_T2840598955_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/KeyCollection<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct KeyCollection_t2840598955 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection::dictionary
Dictionary_2_t2650923484 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(KeyCollection_t2840598955, ___dictionary_0)); }
inline Dictionary_2_t2650923484 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2650923484 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2650923484 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCOLLECTION_T2840598955_H
#ifndef CONDITIONALWEAKTABLE_2_T1452810305_H
#define CONDITIONALWEAKTABLE_2_T1452810305_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Runtime.Serialization.SerializationInfo>
struct ConditionalWeakTable_2_t1452810305 : public RuntimeObject
{
public:
// System.Runtime.CompilerServices.Ephemeron[] System.Runtime.CompilerServices.ConditionalWeakTable`2::data
EphemeronU5BU5D_t1564620431* ___data_4;
// System.Object System.Runtime.CompilerServices.ConditionalWeakTable`2::_lock
RuntimeObject * ____lock_5;
// System.Int32 System.Runtime.CompilerServices.ConditionalWeakTable`2::size
int32_t ___size_6;
public:
inline static int32_t get_offset_of_data_4() { return static_cast<int32_t>(offsetof(ConditionalWeakTable_2_t1452810305, ___data_4)); }
inline EphemeronU5BU5D_t1564620431* get_data_4() const { return ___data_4; }
inline EphemeronU5BU5D_t1564620431** get_address_of_data_4() { return &___data_4; }
inline void set_data_4(EphemeronU5BU5D_t1564620431* value)
{
___data_4 = value;
Il2CppCodeGenWriteBarrier((&___data_4), value);
}
inline static int32_t get_offset_of__lock_5() { return static_cast<int32_t>(offsetof(ConditionalWeakTable_2_t1452810305, ____lock_5)); }
inline RuntimeObject * get__lock_5() const { return ____lock_5; }
inline RuntimeObject ** get_address_of__lock_5() { return &____lock_5; }
inline void set__lock_5(RuntimeObject * value)
{
____lock_5 = value;
Il2CppCodeGenWriteBarrier((&____lock_5), value);
}
inline static int32_t get_offset_of_size_6() { return static_cast<int32_t>(offsetof(ConditionalWeakTable_2_t1452810305, ___size_6)); }
inline int32_t get_size_6() const { return ___size_6; }
inline int32_t* get_address_of_size_6() { return &___size_6; }
inline void set_size_6(int32_t value)
{
___size_6 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CONDITIONALWEAKTABLE_2_T1452810305_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 EQUALITYCOMPARER_1_T2750046392_H
#define EQUALITYCOMPARER_1_T2750046392_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>
struct EqualityComparer_1_t2750046392 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t2750046392_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t2750046392 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t2750046392_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t2750046392 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t2750046392 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t2750046392 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T2750046392_H
#ifndef DICTIONARY_2_T2129123697_H
#define DICTIONARY_2_T2129123697_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.Guid,System.Object>
struct Dictionary_2_t2129123697 : 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_t3881586340* ___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_t2318799168 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t3845168015 * ___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_t2129123697, ___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_t2129123697, ___entries_1)); }
inline EntryU5BU5D_t3881586340* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t3881586340** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t3881586340* 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_t2129123697, ___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_t2129123697, ___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_t2129123697, ___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_t2129123697, ___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_t2129123697, ___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_t2129123697, ___keys_7)); }
inline KeyCollection_t2318799168 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t2318799168 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t2318799168 * 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_t2129123697, ___values_8)); }
inline ValueCollection_t3845168015 * get_values_8() const { return ___values_8; }
inline ValueCollection_t3845168015 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t3845168015 * 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_t2129123697, ____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_T2129123697_H
#ifndef EQUALITYCOMPARER_1_T1363305223_H
#define EQUALITYCOMPARER_1_T1363305223_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.EqualityComparer`1<System.Guid>
struct EqualityComparer_1_t1363305223 : public RuntimeObject
{
public:
public:
};
struct EqualityComparer_1_t1363305223_StaticFields
{
public:
// System.Collections.Generic.EqualityComparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.EqualityComparer`1::defaultComparer
EqualityComparer_1_t1363305223 * ___defaultComparer_0;
public:
inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(EqualityComparer_1_t1363305223_StaticFields, ___defaultComparer_0)); }
inline EqualityComparer_1_t1363305223 * get_defaultComparer_0() const { return ___defaultComparer_0; }
inline EqualityComparer_1_t1363305223 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; }
inline void set_defaultComparer_0(EqualityComparer_1_t1363305223 * value)
{
___defaultComparer_0 = value;
Il2CppCodeGenWriteBarrier((&___defaultComparer_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EQUALITYCOMPARER_1_T1363305223_H
#ifndef DICTIONARY_2_T2650923484_H
#define DICTIONARY_2_T2650923484_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<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct Dictionary_2_t2650923484 : 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_t3899865133* ___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_t2840598955 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t72000506 * ___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_t2650923484, ___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_t2650923484, ___entries_1)); }
inline EntryU5BU5D_t3899865133* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t3899865133** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t3899865133* 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_t2650923484, ___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_t2650923484, ___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_t2650923484, ___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_t2650923484, ___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_t2650923484, ___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_t2650923484, ___keys_7)); }
inline KeyCollection_t2840598955 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t2840598955 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t2840598955 * 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_t2650923484, ___values_8)); }
inline ValueCollection_t72000506 * get_values_8() const { return ___values_8; }
inline ValueCollection_t72000506 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t72000506 * 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_t2650923484, ____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_T2650923484_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 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 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 TYPECONVERTKEY_T285306760_H
#define TYPECONVERTKEY_T285306760_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey
struct TypeConvertKey_t285306760
{
public:
// System.Type Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey::_initialType
Type_t * ____initialType_0;
// System.Type Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey::_targetType
Type_t * ____targetType_1;
public:
inline static int32_t get_offset_of__initialType_0() { return static_cast<int32_t>(offsetof(TypeConvertKey_t285306760, ____initialType_0)); }
inline Type_t * get__initialType_0() const { return ____initialType_0; }
inline Type_t ** get_address_of__initialType_0() { return &____initialType_0; }
inline void set__initialType_0(Type_t * value)
{
____initialType_0 = value;
Il2CppCodeGenWriteBarrier((&____initialType_0), value);
}
inline static int32_t get_offset_of__targetType_1() { return static_cast<int32_t>(offsetof(TypeConvertKey_t285306760, ____targetType_1)); }
inline Type_t * get__targetType_1() const { return ____targetType_1; }
inline Type_t ** get_address_of__targetType_1() { return &____targetType_1; }
inline void set__targetType_1(Type_t * value)
{
____targetType_1 = value;
Il2CppCodeGenWriteBarrier((&____targetType_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey
struct TypeConvertKey_t285306760_marshaled_pinvoke
{
Type_t * ____initialType_0;
Type_t * ____targetType_1;
};
// Native definition for COM marshalling of Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey
struct TypeConvertKey_t285306760_marshaled_com
{
Type_t * ____initialType_0;
Type_t * ____targetType_1;
};
#endif // TYPECONVERTKEY_T285306760_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 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 ENTRY_T1462643140_H
#define ENTRY_T1462643140_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/Entry<System.Int64,System.Object>
struct Entry_t1462643140
{
public:
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::hashCode
int32_t ___hashCode_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::next
int32_t ___next_1;
// TKey System.Collections.Generic.Dictionary`2/Entry::key
int64_t ___key_2;
// TValue System.Collections.Generic.Dictionary`2/Entry::value
RuntimeObject * ___value_3;
public:
inline static int32_t get_offset_of_hashCode_0() { return static_cast<int32_t>(offsetof(Entry_t1462643140, ___hashCode_0)); }
inline int32_t get_hashCode_0() const { return ___hashCode_0; }
inline int32_t* get_address_of_hashCode_0() { return &___hashCode_0; }
inline void set_hashCode_0(int32_t value)
{
___hashCode_0 = value;
}
inline static int32_t get_offset_of_next_1() { return static_cast<int32_t>(offsetof(Entry_t1462643140, ___next_1)); }
inline int32_t get_next_1() const { return ___next_1; }
inline int32_t* get_address_of_next_1() { return &___next_1; }
inline void set_next_1(int32_t value)
{
___next_1 = value;
}
inline static int32_t get_offset_of_key_2() { return static_cast<int32_t>(offsetof(Entry_t1462643140, ___key_2)); }
inline int64_t get_key_2() const { return ___key_2; }
inline int64_t* get_address_of_key_2() { return &___key_2; }
inline void set_key_2(int64_t value)
{
___key_2 = value;
}
inline static int32_t get_offset_of_value_3() { return static_cast<int32_t>(offsetof(Entry_t1462643140, ___value_3)); }
inline RuntimeObject * get_value_3() const { return ___value_3; }
inline RuntimeObject ** get_address_of_value_3() { return &___value_3; }
inline void set_value_3(RuntimeObject * value)
{
___value_3 = value;
Il2CppCodeGenWriteBarrier((&___value_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T1462643140_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 KEYVALUEPAIR_2_T2245450819_H
#define KEYVALUEPAIR_2_T2245450819_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>
struct KeyValuePair_2_t2245450819
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
int64_t ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
RuntimeObject * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t2245450819, ___key_0)); }
inline int64_t get_key_0() const { return ___key_0; }
inline int64_t* get_address_of_key_0() { return &___key_0; }
inline void set_key_0(int64_t value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t2245450819, ___value_1)); }
inline RuntimeObject * get_value_1() const { return ___value_1; }
inline RuntimeObject ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(RuntimeObject * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((&___value_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYVALUEPAIR_2_T2245450819_H
#ifndef KEYVALUEPAIR_2_T71524366_H
#define KEYVALUEPAIR_2_T71524366_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>
struct KeyValuePair_2_t71524366
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
int32_t ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
RuntimeObject * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t71524366, ___key_0)); }
inline int32_t get_key_0() const { return ___key_0; }
inline int32_t* get_address_of_key_0() { return &___key_0; }
inline void set_key_0(int32_t value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t71524366, ___value_1)); }
inline RuntimeObject * get_value_1() const { return ___value_1; }
inline RuntimeObject ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(RuntimeObject * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((&___value_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYVALUEPAIR_2_T71524366_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 DICTIONARYENTRY_T3123975638_H
#define DICTIONARYENTRY_T3123975638_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.DictionaryEntry
struct DictionaryEntry_t3123975638
{
public:
// System.Object System.Collections.DictionaryEntry::_key
RuntimeObject * ____key_0;
// System.Object System.Collections.DictionaryEntry::_value
RuntimeObject * ____value_1;
public:
inline static int32_t get_offset_of__key_0() { return static_cast<int32_t>(offsetof(DictionaryEntry_t3123975638, ____key_0)); }
inline RuntimeObject * get__key_0() const { return ____key_0; }
inline RuntimeObject ** get_address_of__key_0() { return &____key_0; }
inline void set__key_0(RuntimeObject * value)
{
____key_0 = value;
Il2CppCodeGenWriteBarrier((&____key_0), value);
}
inline static int32_t get_offset_of__value_1() { return static_cast<int32_t>(offsetof(DictionaryEntry_t3123975638, ____value_1)); }
inline RuntimeObject * get__value_1() const { return ____value_1; }
inline RuntimeObject ** get_address_of__value_1() { return &____value_1; }
inline void set__value_1(RuntimeObject * value)
{
____value_1 = value;
Il2CppCodeGenWriteBarrier((&____value_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Collections.DictionaryEntry
struct DictionaryEntry_t3123975638_marshaled_pinvoke
{
Il2CppIUnknown* ____key_0;
Il2CppIUnknown* ____value_1;
};
// Native definition for COM marshalling of System.Collections.DictionaryEntry
struct DictionaryEntry_t3123975638_marshaled_com
{
Il2CppIUnknown* ____key_0;
Il2CppIUnknown* ____value_1;
};
#endif // DICTIONARYENTRY_T3123975638_H
#ifndef NONRANDOMIZEDSTRINGEQUALITYCOMPARER_T1082005352_H
#define NONRANDOMIZEDSTRINGEQUALITYCOMPARER_T1082005352_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.NonRandomizedStringEqualityComparer
struct NonRandomizedStringEqualityComparer_t1082005352 : public EqualityComparer_1_t17223025
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NONRANDOMIZEDSTRINGEQUALITYCOMPARER_T1082005352_H
#ifndef ENTRY_T3583683983_H
#define ENTRY_T3583683983_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/Entry<System.Int32,System.Object>
struct Entry_t3583683983
{
public:
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::hashCode
int32_t ___hashCode_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::next
int32_t ___next_1;
// TKey System.Collections.Generic.Dictionary`2/Entry::key
int32_t ___key_2;
// TValue System.Collections.Generic.Dictionary`2/Entry::value
RuntimeObject * ___value_3;
public:
inline static int32_t get_offset_of_hashCode_0() { return static_cast<int32_t>(offsetof(Entry_t3583683983, ___hashCode_0)); }
inline int32_t get_hashCode_0() const { return ___hashCode_0; }
inline int32_t* get_address_of_hashCode_0() { return &___hashCode_0; }
inline void set_hashCode_0(int32_t value)
{
___hashCode_0 = value;
}
inline static int32_t get_offset_of_next_1() { return static_cast<int32_t>(offsetof(Entry_t3583683983, ___next_1)); }
inline int32_t get_next_1() const { return ___next_1; }
inline int32_t* get_address_of_next_1() { return &___next_1; }
inline void set_next_1(int32_t value)
{
___next_1 = value;
}
inline static int32_t get_offset_of_key_2() { return static_cast<int32_t>(offsetof(Entry_t3583683983, ___key_2)); }
inline int32_t get_key_2() const { return ___key_2; }
inline int32_t* get_address_of_key_2() { return &___key_2; }
inline void set_key_2(int32_t value)
{
___key_2 = value;
}
inline static int32_t get_offset_of_value_3() { return static_cast<int32_t>(offsetof(Entry_t3583683983, ___value_3)); }
inline RuntimeObject * get_value_3() const { return ___value_3; }
inline RuntimeObject ** get_address_of_value_3() { return &___value_3; }
inline void set_value_3(RuntimeObject * value)
{
___value_3 = value;
Il2CppCodeGenWriteBarrier((&___value_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T3583683983_H
#ifndef TYPEDCONSTANT_T714020897_H
#define TYPEDCONSTANT_T714020897_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.Compiler.BoundConstants/TypedConstant
struct TypedConstant_t714020897
{
public:
// System.Object System.Linq.Expressions.Compiler.BoundConstants/TypedConstant::Value
RuntimeObject * ___Value_0;
// System.Type System.Linq.Expressions.Compiler.BoundConstants/TypedConstant::Type
Type_t * ___Type_1;
public:
inline static int32_t get_offset_of_Value_0() { return static_cast<int32_t>(offsetof(TypedConstant_t714020897, ___Value_0)); }
inline RuntimeObject * get_Value_0() const { return ___Value_0; }
inline RuntimeObject ** get_address_of_Value_0() { return &___Value_0; }
inline void set_Value_0(RuntimeObject * value)
{
___Value_0 = value;
Il2CppCodeGenWriteBarrier((&___Value_0), value);
}
inline static int32_t get_offset_of_Type_1() { return static_cast<int32_t>(offsetof(TypedConstant_t714020897, ___Type_1)); }
inline Type_t * get_Type_1() const { return ___Type_1; }
inline Type_t ** get_address_of_Type_1() { return &___Type_1; }
inline void set_Type_1(Type_t * value)
{
___Type_1 = value;
Il2CppCodeGenWriteBarrier((&___Type_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Linq.Expressions.Compiler.BoundConstants/TypedConstant
struct TypedConstant_t714020897_marshaled_pinvoke
{
Il2CppIUnknown* ___Value_0;
Type_t * ___Type_1;
};
// Native definition for COM marshalling of System.Linq.Expressions.Compiler.BoundConstants/TypedConstant
struct TypedConstant_t714020897_marshaled_com
{
Il2CppIUnknown* ___Value_0;
Type_t * ___Type_1;
};
#endif // TYPEDCONSTANT_T714020897_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 PREDEFINEDTYPE_T3972076113_H
#define PREDEFINEDTYPE_T3972076113_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType
struct PredefinedType_t3972076113
{
public:
// System.UInt32 Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType::value__
uint32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PredefinedType_t3972076113, ___value___2)); }
inline uint32_t get_value___2() const { return ___value___2; }
inline uint32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PREDEFINEDTYPE_T3972076113_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 KEYVALUEPAIR_2_T753628355_H
#define KEYVALUEPAIR_2_T753628355_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct KeyValuePair_2_t753628355
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
TypeConvertKey_t285306760 ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
RuntimeObject * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t753628355, ___key_0)); }
inline TypeConvertKey_t285306760 get_key_0() const { return ___key_0; }
inline TypeConvertKey_t285306760 * get_address_of_key_0() { return &___key_0; }
inline void set_key_0(TypeConvertKey_t285306760 value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t753628355, ___value_1)); }
inline RuntimeObject * get_value_1() const { return ___value_1; }
inline RuntimeObject ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(RuntimeObject * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((&___value_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYVALUEPAIR_2_T753628355_H
#ifndef ENTRY_T4265787972_H
#define ENTRY_T4265787972_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/Entry<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct Entry_t4265787972
{
public:
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::hashCode
int32_t ___hashCode_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::next
int32_t ___next_1;
// TKey System.Collections.Generic.Dictionary`2/Entry::key
TypeConvertKey_t285306760 ___key_2;
// TValue System.Collections.Generic.Dictionary`2/Entry::value
RuntimeObject * ___value_3;
public:
inline static int32_t get_offset_of_hashCode_0() { return static_cast<int32_t>(offsetof(Entry_t4265787972, ___hashCode_0)); }
inline int32_t get_hashCode_0() const { return ___hashCode_0; }
inline int32_t* get_address_of_hashCode_0() { return &___hashCode_0; }
inline void set_hashCode_0(int32_t value)
{
___hashCode_0 = value;
}
inline static int32_t get_offset_of_next_1() { return static_cast<int32_t>(offsetof(Entry_t4265787972, ___next_1)); }
inline int32_t get_next_1() const { return ___next_1; }
inline int32_t* get_address_of_next_1() { return &___next_1; }
inline void set_next_1(int32_t value)
{
___next_1 = value;
}
inline static int32_t get_offset_of_key_2() { return static_cast<int32_t>(offsetof(Entry_t4265787972, ___key_2)); }
inline TypeConvertKey_t285306760 get_key_2() const { return ___key_2; }
inline TypeConvertKey_t285306760 * get_address_of_key_2() { return &___key_2; }
inline void set_key_2(TypeConvertKey_t285306760 value)
{
___key_2 = value;
}
inline static int32_t get_offset_of_value_3() { return static_cast<int32_t>(offsetof(Entry_t4265787972, ___value_3)); }
inline RuntimeObject * get_value_3() const { return ___value_3; }
inline RuntimeObject ** get_address_of_value_3() { return &___value_3; }
inline void set_value_3(RuntimeObject * value)
{
___value_3 = value;
Il2CppCodeGenWriteBarrier((&___value_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T4265787972_H
#ifndef KEYVALUEPAIR_2_T231828568_H
#define KEYVALUEPAIR_2_T231828568_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>
struct KeyValuePair_2_t231828568
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
Guid_t ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
RuntimeObject * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t231828568, ___key_0)); }
inline Guid_t get_key_0() const { return ___key_0; }
inline Guid_t * get_address_of_key_0() { return &___key_0; }
inline void set_key_0(Guid_t value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t231828568, ___value_1)); }
inline RuntimeObject * get_value_1() const { return ___value_1; }
inline RuntimeObject ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(RuntimeObject * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((&___value_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYVALUEPAIR_2_T231828568_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 ENTRY_T3743988185_H
#define ENTRY_T3743988185_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/Entry<System.Guid,System.Object>
struct Entry_t3743988185
{
public:
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::hashCode
int32_t ___hashCode_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::next
int32_t ___next_1;
// TKey System.Collections.Generic.Dictionary`2/Entry::key
Guid_t ___key_2;
// TValue System.Collections.Generic.Dictionary`2/Entry::value
RuntimeObject * ___value_3;
public:
inline static int32_t get_offset_of_hashCode_0() { return static_cast<int32_t>(offsetof(Entry_t3743988185, ___hashCode_0)); }
inline int32_t get_hashCode_0() const { return ___hashCode_0; }
inline int32_t* get_address_of_hashCode_0() { return &___hashCode_0; }
inline void set_hashCode_0(int32_t value)
{
___hashCode_0 = value;
}
inline static int32_t get_offset_of_next_1() { return static_cast<int32_t>(offsetof(Entry_t3743988185, ___next_1)); }
inline int32_t get_next_1() const { return ___next_1; }
inline int32_t* get_address_of_next_1() { return &___next_1; }
inline void set_next_1(int32_t value)
{
___next_1 = value;
}
inline static int32_t get_offset_of_key_2() { return static_cast<int32_t>(offsetof(Entry_t3743988185, ___key_2)); }
inline Guid_t get_key_2() const { return ___key_2; }
inline Guid_t * get_address_of_key_2() { return &___key_2; }
inline void set_key_2(Guid_t value)
{
___key_2 = value;
}
inline static int32_t get_offset_of_value_3() { return static_cast<int32_t>(offsetof(Entry_t3743988185, ___value_3)); }
inline RuntimeObject * get_value_3() const { return ___value_3; }
inline RuntimeObject ** get_address_of_value_3() { return &___value_3; }
inline void set_value_3(RuntimeObject * value)
{
___value_3 = value;
Il2CppCodeGenWriteBarrier((&___value_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T3743988185_H
#ifndef ARRAYTYPEMISMATCHEXCEPTION_T2342549375_H
#define ARRAYTYPEMISMATCHEXCEPTION_T2342549375_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.ArrayTypeMismatchException
struct ArrayTypeMismatchException_t2342549375 : public SystemException_t176217640
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ARRAYTYPEMISMATCHEXCEPTION_T2342549375_H
#ifndef INVALIDCASTEXCEPTION_T3927145244_H
#define INVALIDCASTEXCEPTION_T3927145244_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.InvalidCastException
struct InvalidCastException_t3927145244 : public SystemException_t176217640
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INVALIDCASTEXCEPTION_T3927145244_H
#ifndef STREAMINGCONTEXTSTATES_T3580100459_H
#define STREAMINGCONTEXTSTATES_T3580100459_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Serialization.StreamingContextStates
struct StreamingContextStates_t3580100459
{
public:
// System.Int32 System.Runtime.Serialization.StreamingContextStates::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StreamingContextStates_t3580100459, ___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 // STREAMINGCONTEXTSTATES_T3580100459_H
#ifndef READTYPE_T340786580_H
#define READTYPE_T340786580_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.ReadType
struct ReadType_t340786580
{
public:
// System.Int32 Newtonsoft.Json.ReadType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ReadType_t340786580, ___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 // READTYPE_T340786580_H
#ifndef ENTRY_T3767324455_H
#define ENTRY_T3767324455_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/Entry<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct Entry_t3767324455
{
public:
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::hashCode
int32_t ___hashCode_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::next
int32_t ___next_1;
// TKey System.Collections.Generic.Dictionary`2/Entry::key
TypedConstant_t714020897 ___key_2;
// TValue System.Collections.Generic.Dictionary`2/Entry::value
RuntimeObject * ___value_3;
public:
inline static int32_t get_offset_of_hashCode_0() { return static_cast<int32_t>(offsetof(Entry_t3767324455, ___hashCode_0)); }
inline int32_t get_hashCode_0() const { return ___hashCode_0; }
inline int32_t* get_address_of_hashCode_0() { return &___hashCode_0; }
inline void set_hashCode_0(int32_t value)
{
___hashCode_0 = value;
}
inline static int32_t get_offset_of_next_1() { return static_cast<int32_t>(offsetof(Entry_t3767324455, ___next_1)); }
inline int32_t get_next_1() const { return ___next_1; }
inline int32_t* get_address_of_next_1() { return &___next_1; }
inline void set_next_1(int32_t value)
{
___next_1 = value;
}
inline static int32_t get_offset_of_key_2() { return static_cast<int32_t>(offsetof(Entry_t3767324455, ___key_2)); }
inline TypedConstant_t714020897 get_key_2() const { return ___key_2; }
inline TypedConstant_t714020897 * get_address_of_key_2() { return &___key_2; }
inline void set_key_2(TypedConstant_t714020897 value)
{
___key_2 = value;
}
inline static int32_t get_offset_of_value_3() { return static_cast<int32_t>(offsetof(Entry_t3767324455, ___value_3)); }
inline RuntimeObject * get_value_3() const { return ___value_3; }
inline RuntimeObject ** get_address_of_value_3() { return &___value_3; }
inline void set_value_3(RuntimeObject * value)
{
___value_3 = value;
Il2CppCodeGenWriteBarrier((&___value_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T3767324455_H
#ifndef ENTRY_T3638164044_H
#define ENTRY_T3638164044_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/Entry<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct Entry_t3638164044
{
public:
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::hashCode
int32_t ___hashCode_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::next
int32_t ___next_1;
// TKey System.Collections.Generic.Dictionary`2/Entry::key
TypedConstant_t714020897 ___key_2;
// TValue System.Collections.Generic.Dictionary`2/Entry::value
int32_t ___value_3;
public:
inline static int32_t get_offset_of_hashCode_0() { return static_cast<int32_t>(offsetof(Entry_t3638164044, ___hashCode_0)); }
inline int32_t get_hashCode_0() const { return ___hashCode_0; }
inline int32_t* get_address_of_hashCode_0() { return &___hashCode_0; }
inline void set_hashCode_0(int32_t value)
{
___hashCode_0 = value;
}
inline static int32_t get_offset_of_next_1() { return static_cast<int32_t>(offsetof(Entry_t3638164044, ___next_1)); }
inline int32_t get_next_1() const { return ___next_1; }
inline int32_t* get_address_of_next_1() { return &___next_1; }
inline void set_next_1(int32_t value)
{
___next_1 = value;
}
inline static int32_t get_offset_of_key_2() { return static_cast<int32_t>(offsetof(Entry_t3638164044, ___key_2)); }
inline TypedConstant_t714020897 get_key_2() const { return ___key_2; }
inline TypedConstant_t714020897 * get_address_of_key_2() { return &___key_2; }
inline void set_key_2(TypedConstant_t714020897 value)
{
___key_2 = value;
}
inline static int32_t get_offset_of_value_3() { return static_cast<int32_t>(offsetof(Entry_t3638164044, ___value_3)); }
inline int32_t get_value_3() const { return ___value_3; }
inline int32_t* get_address_of_value_3() { return &___value_3; }
inline void set_value_3(int32_t value)
{
___value_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T3638164044_H
#ifndef KEYVALUEPAIR_2_T3699644050_H
#define KEYVALUEPAIR_2_T3699644050_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>
struct KeyValuePair_2_t3699644050
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
intptr_t ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
RuntimeObject * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t3699644050, ___key_0)); }
inline intptr_t get_key_0() const { return ___key_0; }
inline intptr_t* get_address_of_key_0() { return &___key_0; }
inline void set_key_0(intptr_t value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t3699644050, ___value_1)); }
inline RuntimeObject * get_value_1() const { return ___value_1; }
inline RuntimeObject ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(RuntimeObject * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((&___value_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYVALUEPAIR_2_T3699644050_H
#ifndef KEYNOTFOUNDEXCEPTION_T2292407383_H
#define KEYNOTFOUNDEXCEPTION_T2292407383_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyNotFoundException
struct KeyNotFoundException_t2292407383 : public SystemException_t176217640
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYNOTFOUNDEXCEPTION_T2292407383_H
#ifndef ENTRY_T2916836371_H
#define ENTRY_T2916836371_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/Entry<System.IntPtr,System.Object>
struct Entry_t2916836371
{
public:
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::hashCode
int32_t ___hashCode_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::next
int32_t ___next_1;
// TKey System.Collections.Generic.Dictionary`2/Entry::key
intptr_t ___key_2;
// TValue System.Collections.Generic.Dictionary`2/Entry::value
RuntimeObject * ___value_3;
public:
inline static int32_t get_offset_of_hashCode_0() { return static_cast<int32_t>(offsetof(Entry_t2916836371, ___hashCode_0)); }
inline int32_t get_hashCode_0() const { return ___hashCode_0; }
inline int32_t* get_address_of_hashCode_0() { return &___hashCode_0; }
inline void set_hashCode_0(int32_t value)
{
___hashCode_0 = value;
}
inline static int32_t get_offset_of_next_1() { return static_cast<int32_t>(offsetof(Entry_t2916836371, ___next_1)); }
inline int32_t get_next_1() const { return ___next_1; }
inline int32_t* get_address_of_next_1() { return &___next_1; }
inline void set_next_1(int32_t value)
{
___next_1 = value;
}
inline static int32_t get_offset_of_key_2() { return static_cast<int32_t>(offsetof(Entry_t2916836371, ___key_2)); }
inline intptr_t get_key_2() const { return ___key_2; }
inline intptr_t* get_address_of_key_2() { return &___key_2; }
inline void set_key_2(intptr_t value)
{
___key_2 = value;
}
inline static int32_t get_offset_of_value_3() { return static_cast<int32_t>(offsetof(Entry_t2916836371, ___value_3)); }
inline RuntimeObject * get_value_3() const { return ___value_3; }
inline RuntimeObject ** get_address_of_value_3() { return &___value_3; }
inline void set_value_3(RuntimeObject * value)
{
___value_3 = value;
Il2CppCodeGenWriteBarrier((&___value_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T2916836371_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 KEYVALUEPAIR_2_T126004427_H
#define KEYVALUEPAIR_2_T126004427_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct KeyValuePair_2_t126004427
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
TypedConstant_t714020897 ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
int32_t ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t126004427, ___key_0)); }
inline TypedConstant_t714020897 get_key_0() const { return ___key_0; }
inline TypedConstant_t714020897 * get_address_of_key_0() { return &___key_0; }
inline void set_key_0(TypedConstant_t714020897 value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t126004427, ___value_1)); }
inline int32_t get_value_1() const { return ___value_1; }
inline int32_t* get_address_of_value_1() { return &___value_1; }
inline void set_value_1(int32_t value)
{
___value_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYVALUEPAIR_2_T126004427_H
#ifndef ENUMERATOR_T1801961427_H
#define ENUMERATOR_T1801961427_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/Enumerator<System.Int64,System.Object>
struct Enumerator_t1801961427
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::dictionary
Dictionary_2_t4142745948 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::current
KeyValuePair_2_t2245450819 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t1801961427, ___dictionary_0)); }
inline Dictionary_2_t4142745948 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t4142745948 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t4142745948 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t1801961427, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t1801961427, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t1801961427, ___current_3)); }
inline KeyValuePair_2_t2245450819 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t2245450819 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t2245450819 value)
{
___current_3 = value;
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t1801961427, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMERATOR_T1801961427_H
#ifndef KEYVALUEPAIR_2_T255164838_H
#define KEYVALUEPAIR_2_T255164838_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct KeyValuePair_2_t255164838
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
TypedConstant_t714020897 ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
RuntimeObject * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t255164838, ___key_0)); }
inline TypedConstant_t714020897 get_key_0() const { return ___key_0; }
inline TypedConstant_t714020897 * get_address_of_key_0() { return &___key_0; }
inline void set_key_0(TypedConstant_t714020897 value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t255164838, ___value_1)); }
inline RuntimeObject * get_value_1() const { return ___value_1; }
inline RuntimeObject ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(RuntimeObject * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((&___value_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYVALUEPAIR_2_T255164838_H
#ifndef SERIALIZATIONEXCEPTION_T3941511869_H
#define SERIALIZATIONEXCEPTION_T3941511869_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Serialization.SerializationException
struct SerializationException_t3941511869 : public SystemException_t176217640
{
public:
public:
};
struct SerializationException_t3941511869_StaticFields
{
public:
// System.String System.Runtime.Serialization.SerializationException::_nullMessage
String_t* ____nullMessage_17;
public:
inline static int32_t get_offset_of__nullMessage_17() { return static_cast<int32_t>(offsetof(SerializationException_t3941511869_StaticFields, ____nullMessage_17)); }
inline String_t* get__nullMessage_17() const { return ____nullMessage_17; }
inline String_t** get_address_of__nullMessage_17() { return &____nullMessage_17; }
inline void set__nullMessage_17(String_t* value)
{
____nullMessage_17 = value;
Il2CppCodeGenWriteBarrier((&____nullMessage_17), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SERIALIZATIONEXCEPTION_T3941511869_H
#ifndef ENUMERATOR_T3923002270_H
#define ENUMERATOR_T3923002270_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/Enumerator<System.Int32,System.Object>
struct Enumerator_t3923002270
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::dictionary
Dictionary_2_t1968819495 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::current
KeyValuePair_2_t71524366 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t3923002270, ___dictionary_0)); }
inline Dictionary_2_t1968819495 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1968819495 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1968819495 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t3923002270, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t3923002270, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t3923002270, ___current_3)); }
inline KeyValuePair_2_t71524366 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t71524366 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t71524366 value)
{
___current_3 = value;
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t3923002270, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMERATOR_T3923002270_H
#ifndef INSERTIONBEHAVIOR_T4747287_H
#define INSERTIONBEHAVIOR_T4747287_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.InsertionBehavior
struct InsertionBehavior_t4747287
{
public:
// System.Byte System.Collections.Generic.InsertionBehavior::value__
uint8_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InsertionBehavior_t4747287, ___value___2)); }
inline uint8_t get_value___2() const { return ___value___2; }
inline uint8_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint8_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INSERTIONBEHAVIOR_T4747287_H
#ifndef ENUMERATOR_T3256154658_H
#define ENUMERATOR_T3256154658_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/Enumerator<System.IntPtr,System.Object>
struct Enumerator_t3256154658
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::dictionary
Dictionary_2_t1301971883 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::current
KeyValuePair_2_t3699644050 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t3256154658, ___dictionary_0)); }
inline Dictionary_2_t1301971883 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1301971883 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1301971883 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t3256154658, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t3256154658, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t3256154658, ___current_3)); }
inline KeyValuePair_2_t3699644050 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t3699644050 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t3699644050 value)
{
___current_3 = value;
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t3256154658, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMERATOR_T3256154658_H
#ifndef ENUMERATOR_T310138963_H
#define ENUMERATOR_T310138963_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/Enumerator<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>
struct Enumerator_t310138963
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::dictionary
Dictionary_2_t2650923484 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::current
KeyValuePair_2_t753628355 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t310138963, ___dictionary_0)); }
inline Dictionary_2_t2650923484 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2650923484 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2650923484 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t310138963, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t310138963, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t310138963, ___current_3)); }
inline KeyValuePair_2_t753628355 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t753628355 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t753628355 value)
{
___current_3 = value;
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t310138963, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMERATOR_T310138963_H
#ifndef ENUMERATOR_T4106642742_H
#define ENUMERATOR_T4106642742_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/Enumerator<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>
struct Enumerator_t4106642742
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::dictionary
Dictionary_2_t2152459967 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::current
KeyValuePair_2_t255164838 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t4106642742, ___dictionary_0)); }
inline Dictionary_2_t2152459967 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2152459967 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2152459967 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t4106642742, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t4106642742, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t4106642742, ___current_3)); }
inline KeyValuePair_2_t255164838 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t255164838 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t255164838 value)
{
___current_3 = value;
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t4106642742, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMERATOR_T4106642742_H
#ifndef ENUMERATOR_T4083306472_H
#define ENUMERATOR_T4083306472_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/Enumerator<System.Guid,System.Object>
struct Enumerator_t4083306472
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::dictionary
Dictionary_2_t2129123697 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::current
KeyValuePair_2_t231828568 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t4083306472, ___dictionary_0)); }
inline Dictionary_2_t2129123697 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2129123697 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2129123697 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t4083306472, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t4083306472, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t4083306472, ___current_3)); }
inline KeyValuePair_2_t231828568 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t231828568 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t231828568 value)
{
___current_3 = value;
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t4083306472, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMERATOR_T4083306472_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 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 ENTRY_T2639379589_H
#define ENTRY_T2639379589_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/Entry<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct Entry_t2639379589
{
public:
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::hashCode
int32_t ___hashCode_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::next
int32_t ___next_1;
// TKey System.Collections.Generic.Dictionary`2/Entry::key
RuntimeObject * ___key_2;
// TValue System.Collections.Generic.Dictionary`2/Entry::value
uint32_t ___value_3;
public:
inline static int32_t get_offset_of_hashCode_0() { return static_cast<int32_t>(offsetof(Entry_t2639379589, ___hashCode_0)); }
inline int32_t get_hashCode_0() const { return ___hashCode_0; }
inline int32_t* get_address_of_hashCode_0() { return &___hashCode_0; }
inline void set_hashCode_0(int32_t value)
{
___hashCode_0 = value;
}
inline static int32_t get_offset_of_next_1() { return static_cast<int32_t>(offsetof(Entry_t2639379589, ___next_1)); }
inline int32_t get_next_1() const { return ___next_1; }
inline int32_t* get_address_of_next_1() { return &___next_1; }
inline void set_next_1(int32_t value)
{
___next_1 = value;
}
inline static int32_t get_offset_of_key_2() { return static_cast<int32_t>(offsetof(Entry_t2639379589, ___key_2)); }
inline RuntimeObject * get_key_2() const { return ___key_2; }
inline RuntimeObject ** get_address_of_key_2() { return &___key_2; }
inline void set_key_2(RuntimeObject * value)
{
___key_2 = value;
Il2CppCodeGenWriteBarrier((&___key_2), value);
}
inline static int32_t get_offset_of_value_3() { return static_cast<int32_t>(offsetof(Entry_t2639379589, ___value_3)); }
inline uint32_t get_value_3() const { return ___value_3; }
inline uint32_t* get_address_of_value_3() { return &___value_3; }
inline void set_value_3(uint32_t value)
{
___value_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T2639379589_H
#ifndef ENUMERATOR_T3977482331_H
#define ENUMERATOR_T3977482331_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/Enumerator<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>
struct Enumerator_t3977482331
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::dictionary
Dictionary_2_t2023299556 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::current
KeyValuePair_2_t126004427 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t3977482331, ___dictionary_0)); }
inline Dictionary_2_t2023299556 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t2023299556 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t2023299556 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t3977482331, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t3977482331, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t3977482331, ___current_3)); }
inline KeyValuePair_2_t126004427 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t126004427 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t126004427 value)
{
___current_3 = value;
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t3977482331, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMERATOR_T3977482331_H
#ifndef KEYVALUEPAIR_2_T3422187268_H
#define KEYVALUEPAIR_2_T3422187268_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct KeyValuePair_2_t3422187268
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
RuntimeObject * ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
uint32_t ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t3422187268, ___key_0)); }
inline RuntimeObject * get_key_0() const { return ___key_0; }
inline RuntimeObject ** get_address_of_key_0() { return &___key_0; }
inline void set_key_0(RuntimeObject * value)
{
___key_0 = value;
Il2CppCodeGenWriteBarrier((&___key_0), value);
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t3422187268, ___value_1)); }
inline uint32_t get_value_1() const { return ___value_1; }
inline uint32_t* get_address_of_value_1() { return &___value_1; }
inline void set_value_1(uint32_t value)
{
___value_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYVALUEPAIR_2_T3422187268_H
#ifndef STREAMINGCONTEXT_T3711869237_H
#define STREAMINGCONTEXT_T3711869237_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Serialization.StreamingContext
struct StreamingContext_t3711869237
{
public:
// System.Object System.Runtime.Serialization.StreamingContext::m_additionalContext
RuntimeObject * ___m_additionalContext_0;
// System.Runtime.Serialization.StreamingContextStates System.Runtime.Serialization.StreamingContext::m_state
int32_t ___m_state_1;
public:
inline static int32_t get_offset_of_m_additionalContext_0() { return static_cast<int32_t>(offsetof(StreamingContext_t3711869237, ___m_additionalContext_0)); }
inline RuntimeObject * get_m_additionalContext_0() const { return ___m_additionalContext_0; }
inline RuntimeObject ** get_address_of_m_additionalContext_0() { return &___m_additionalContext_0; }
inline void set_m_additionalContext_0(RuntimeObject * value)
{
___m_additionalContext_0 = value;
Il2CppCodeGenWriteBarrier((&___m_additionalContext_0), value);
}
inline static int32_t get_offset_of_m_state_1() { return static_cast<int32_t>(offsetof(StreamingContext_t3711869237, ___m_state_1)); }
inline int32_t get_m_state_1() const { return ___m_state_1; }
inline int32_t* get_address_of_m_state_1() { return &___m_state_1; }
inline void set_m_state_1(int32_t value)
{
___m_state_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Runtime.Serialization.StreamingContext
struct StreamingContext_t3711869237_marshaled_pinvoke
{
Il2CppIUnknown* ___m_additionalContext_0;
int32_t ___m_state_1;
};
// Native definition for COM marshalling of System.Runtime.Serialization.StreamingContext
struct StreamingContext_t3711869237_marshaled_com
{
Il2CppIUnknown* ___m_additionalContext_0;
int32_t ___m_state_1;
};
#endif // STREAMINGCONTEXT_T3711869237_H
#ifndef ENTRY_T3303057352_H
#define ENTRY_T3303057352_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/Entry<System.Object,Newtonsoft.Json.ReadType>
struct Entry_t3303057352
{
public:
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::hashCode
int32_t ___hashCode_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Entry::next
int32_t ___next_1;
// TKey System.Collections.Generic.Dictionary`2/Entry::key
RuntimeObject * ___key_2;
// TValue System.Collections.Generic.Dictionary`2/Entry::value
int32_t ___value_3;
public:
inline static int32_t get_offset_of_hashCode_0() { return static_cast<int32_t>(offsetof(Entry_t3303057352, ___hashCode_0)); }
inline int32_t get_hashCode_0() const { return ___hashCode_0; }
inline int32_t* get_address_of_hashCode_0() { return &___hashCode_0; }
inline void set_hashCode_0(int32_t value)
{
___hashCode_0 = value;
}
inline static int32_t get_offset_of_next_1() { return static_cast<int32_t>(offsetof(Entry_t3303057352, ___next_1)); }
inline int32_t get_next_1() const { return ___next_1; }
inline int32_t* get_address_of_next_1() { return &___next_1; }
inline void set_next_1(int32_t value)
{
___next_1 = value;
}
inline static int32_t get_offset_of_key_2() { return static_cast<int32_t>(offsetof(Entry_t3303057352, ___key_2)); }
inline RuntimeObject * get_key_2() const { return ___key_2; }
inline RuntimeObject ** get_address_of_key_2() { return &___key_2; }
inline void set_key_2(RuntimeObject * value)
{
___key_2 = value;
Il2CppCodeGenWriteBarrier((&___key_2), value);
}
inline static int32_t get_offset_of_value_3() { return static_cast<int32_t>(offsetof(Entry_t3303057352, ___value_3)); }
inline int32_t get_value_3() const { return ___value_3; }
inline int32_t* get_address_of_value_3() { return &___value_3; }
inline void set_value_3(int32_t value)
{
___value_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T3303057352_H
#ifndef KEYVALUEPAIR_2_T4085865031_H
#define KEYVALUEPAIR_2_T4085865031_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>
struct KeyValuePair_2_t4085865031
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
RuntimeObject * ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
int32_t ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t4085865031, ___key_0)); }
inline RuntimeObject * get_key_0() const { return ___key_0; }
inline RuntimeObject ** get_address_of_key_0() { return &___key_0; }
inline void set_key_0(RuntimeObject * value)
{
___key_0 = value;
Il2CppCodeGenWriteBarrier((&___key_0), value);
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t4085865031, ___value_1)); }
inline int32_t get_value_1() const { return ___value_1; }
inline int32_t* get_address_of_value_1() { return &___value_1; }
inline void set_value_1(int32_t value)
{
___value_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYVALUEPAIR_2_T4085865031_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 ENUMERATOR_T2978697876_H
#define ENUMERATOR_T2978697876_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/Enumerator<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>
struct Enumerator_t2978697876
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::dictionary
Dictionary_2_t1024515101 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::current
KeyValuePair_2_t3422187268 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t2978697876, ___dictionary_0)); }
inline Dictionary_2_t1024515101 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1024515101 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1024515101 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t2978697876, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t2978697876, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t2978697876, ___current_3)); }
inline KeyValuePair_2_t3422187268 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t3422187268 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t3422187268 value)
{
___current_3 = value;
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t2978697876, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMERATOR_T2978697876_H
#ifndef ENUMERATOR_T3642375639_H
#define ENUMERATOR_T3642375639_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/Enumerator<System.Object,Newtonsoft.Json.ReadType>
struct Enumerator_t3642375639
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::dictionary
Dictionary_2_t1688192864 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator::current
KeyValuePair_2_t4085865031 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2/Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t3642375639, ___dictionary_0)); }
inline Dictionary_2_t1688192864 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t1688192864 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t1688192864 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((&___dictionary_0), value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t3642375639, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t3642375639, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t3642375639, ___current_3)); }
inline KeyValuePair_2_t4085865031 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t4085865031 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t4085865031 value)
{
___current_3 = value;
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t3642375639, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMERATOR_T3642375639_H
// System.Collections.Generic.Dictionary`2/Entry<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>[]
struct EntryU5BU5D_t3899865133 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t4265787972 m_Items[1];
public:
inline Entry_t4265787972 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t4265787972 * 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_t4265787972 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Entry_t4265787972 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t4265787972 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t4265787972 value)
{
m_Items[index] = value;
}
};
// System.Int32[]
struct Int32U5BU5D_t385246372 : public RuntimeArray
{
public:
ALIGN_FIELD (8) int32_t m_Items[1];
public:
inline int32_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline int32_t* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, int32_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline int32_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline int32_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, int32_t value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>[]
struct KeyValuePair_2U5BU5D_t3351136466 : public RuntimeArray
{
public:
ALIGN_FIELD (8) KeyValuePair_2_t753628355 m_Items[1];
public:
inline KeyValuePair_2_t753628355 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline KeyValuePair_2_t753628355 * 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, KeyValuePair_2_t753628355 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline KeyValuePair_2_t753628355 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline KeyValuePair_2_t753628355 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t753628355 value)
{
m_Items[index] = value;
}
};
// System.Collections.DictionaryEntry[]
struct DictionaryEntryU5BU5D_t4217117203 : public RuntimeArray
{
public:
ALIGN_FIELD (8) DictionaryEntry_t3123975638 m_Items[1];
public:
inline DictionaryEntry_t3123975638 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline DictionaryEntry_t3123975638 * 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, DictionaryEntry_t3123975638 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline DictionaryEntry_t3123975638 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline DictionaryEntry_t3123975638 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, DictionaryEntry_t3123975638 value)
{
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.Collections.Generic.Dictionary`2/Entry<System.Guid,System.Object>[]
struct EntryU5BU5D_t3881586340 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t3743988185 m_Items[1];
public:
inline Entry_t3743988185 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t3743988185 * 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_t3743988185 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Entry_t3743988185 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t3743988185 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t3743988185 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>[]
struct KeyValuePair_2U5BU5D_t3332857673 : public RuntimeArray
{
public:
ALIGN_FIELD (8) KeyValuePair_2_t231828568 m_Items[1];
public:
inline KeyValuePair_2_t231828568 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline KeyValuePair_2_t231828568 * 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, KeyValuePair_2_t231828568 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline KeyValuePair_2_t231828568 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline KeyValuePair_2_t231828568 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t231828568 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.Dictionary`2/Entry<System.Int32,System.Object>[]
struct EntryU5BU5D_t3201103702 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t3583683983 m_Items[1];
public:
inline Entry_t3583683983 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t3583683983 * 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_t3583683983 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Entry_t3583683983 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t3583683983 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t3583683983 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>[]
struct KeyValuePair_2U5BU5D_t2652375035 : public RuntimeArray
{
public:
ALIGN_FIELD (8) KeyValuePair_2_t71524366 m_Items[1];
public:
inline KeyValuePair_2_t71524366 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline KeyValuePair_2_t71524366 * 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, KeyValuePair_2_t71524366 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline KeyValuePair_2_t71524366 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline KeyValuePair_2_t71524366 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t71524366 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.Dictionary`2/Entry<System.Int64,System.Object>[]
struct EntryU5BU5D_t72598189 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t1462643140 m_Items[1];
public:
inline Entry_t1462643140 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t1462643140 * 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_t1462643140 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Entry_t1462643140 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t1462643140 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t1462643140 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>[]
struct KeyValuePair_2U5BU5D_t3818836818 : public RuntimeArray
{
public:
ALIGN_FIELD (8) KeyValuePair_2_t2245450819 m_Items[1];
public:
inline KeyValuePair_2_t2245450819 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline KeyValuePair_2_t2245450819 * 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, KeyValuePair_2_t2245450819 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline KeyValuePair_2_t2245450819 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline KeyValuePair_2_t2245450819 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t2245450819 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.Dictionary`2/Entry<System.IntPtr,System.Object>[]
struct EntryU5BU5D_t1586537026 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t2916836371 m_Items[1];
public:
inline Entry_t2916836371 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t2916836371 * 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_t2916836371 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Entry_t2916836371 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t2916836371 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t2916836371 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>[]
struct KeyValuePair_2U5BU5D_t1037808359 : public RuntimeArray
{
public:
ALIGN_FIELD (8) KeyValuePair_2_t3699644050 m_Items[1];
public:
inline KeyValuePair_2_t3699644050 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline KeyValuePair_2_t3699644050 * 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, KeyValuePair_2_t3699644050 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline KeyValuePair_2_t3699644050 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline KeyValuePair_2_t3699644050 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t3699644050 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.Dictionary`2/Entry<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>[]
struct EntryU5BU5D_t823473925 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t3638164044 m_Items[1];
public:
inline Entry_t3638164044 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t3638164044 * 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_t3638164044 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Entry_t3638164044 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t3638164044 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t3638164044 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>[]
struct KeyValuePair_2U5BU5D_t274745258 : public RuntimeArray
{
public:
ALIGN_FIELD (8) KeyValuePair_2_t126004427 m_Items[1];
public:
inline KeyValuePair_2_t126004427 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline KeyValuePair_2_t126004427 * 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, KeyValuePair_2_t126004427 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline KeyValuePair_2_t126004427 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline KeyValuePair_2_t126004427 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t126004427 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.Dictionary`2/Entry<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>[]
struct EntryU5BU5D_t3282166878 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t3767324455 m_Items[1];
public:
inline Entry_t3767324455 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t3767324455 * 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_t3767324455 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Entry_t3767324455 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t3767324455 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t3767324455 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>[]
struct KeyValuePair_2U5BU5D_t2733438211 : public RuntimeArray
{
public:
ALIGN_FIELD (8) KeyValuePair_2_t255164838 m_Items[1];
public:
inline KeyValuePair_2_t255164838 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline KeyValuePair_2_t255164838 * 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, KeyValuePair_2_t255164838 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline KeyValuePair_2_t255164838 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline KeyValuePair_2_t255164838 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t255164838 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.Dictionary`2/Entry<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>[]
struct EntryU5BU5D_t4095373256 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t2639379589 m_Items[1];
public:
inline Entry_t2639379589 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t2639379589 * 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_t2639379589 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Entry_t2639379589 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t2639379589 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t2639379589 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>[]
struct KeyValuePair_2U5BU5D_t3546644589 : public RuntimeArray
{
public:
ALIGN_FIELD (8) KeyValuePair_2_t3422187268 m_Items[1];
public:
inline KeyValuePair_2_t3422187268 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline KeyValuePair_2_t3422187268 * 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, KeyValuePair_2_t3422187268 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline KeyValuePair_2_t3422187268 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline KeyValuePair_2_t3422187268 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t3422187268 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.Dictionary`2/Entry<System.Object,Newtonsoft.Json.ReadType>[]
struct EntryU5BU5D_t1336678425 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t3303057352 m_Items[1];
public:
inline Entry_t3303057352 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t3303057352 * 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_t3303057352 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Entry_t3303057352 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t3303057352 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t3303057352 value)
{
m_Items[index] = value;
}
};
// System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>[]
struct KeyValuePair_2U5BU5D_t787949758 : public RuntimeArray
{
public:
ALIGN_FIELD (8) KeyValuePair_2_t4085865031 m_Items[1];
public:
inline KeyValuePair_2_t4085865031 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline KeyValuePair_2_t4085865031 * 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, KeyValuePair_2_t4085865031 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline KeyValuePair_2_t4085865031 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline KeyValuePair_2_t4085865031 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t4085865031 value)
{
m_Items[index] = value;
}
};
// TKey System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::get_Key()
extern "C" TypeConvertKey_t285306760 KeyValuePair_2_get_Key_m2096859168_gshared (KeyValuePair_2_t753628355 * __this, const RuntimeMethod* method);
// TValue System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::get_Value()
extern "C" RuntimeObject * KeyValuePair_2_get_Value_m2171951189_gshared (KeyValuePair_2_t753628355 * __this, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Object>::Add(TKey,TValue)
extern "C" void ConditionalWeakTable_2_Add_m789045879_gshared (ConditionalWeakTable_2_t3582039290 * __this, RuntimeObject * p0, RuntimeObject * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(TKey,TValue)
extern "C" void KeyValuePair_2__ctor_m2870587947_gshared (KeyValuePair_2_t753628355 * __this, TypeConvertKey_t285306760 p0, RuntimeObject * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
extern "C" void Enumerator__ctor_m2001013060_gshared (Enumerator_t310138963 * __this, Dictionary_2_t2650923484 * p0, int32_t p1, const RuntimeMethod* method);
// System.Collections.Generic.EqualityComparer`1<T> System.Collections.Generic.EqualityComparer`1<System.Object>::get_Default()
extern "C" EqualityComparer_1_t1249878500 * EqualityComparer_1_get_Default_m2924303213_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method);
// System.Boolean System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Object>::TryGetValue(TKey,TValue&)
extern "C" bool ConditionalWeakTable_2_TryGetValue_m2005289596_gshared (ConditionalWeakTable_2_t3582039290 * __this, RuntimeObject * p0, RuntimeObject ** p1, const RuntimeMethod* method);
// System.Boolean System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Object>::Remove(TKey)
extern "C" bool ConditionalWeakTable_2_Remove_m4015541508_gshared (ConditionalWeakTable_2_t3582039290 * __this, RuntimeObject * p0, const RuntimeMethod* method);
// TKey System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>::get_Key()
extern "C" Guid_t KeyValuePair_2_get_Key_m4294704491_gshared (KeyValuePair_2_t231828568 * __this, const RuntimeMethod* method);
// TValue System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>::get_Value()
extern "C" RuntimeObject * KeyValuePair_2_get_Value_m2666064688_gshared (KeyValuePair_2_t231828568 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>::.ctor(TKey,TValue)
extern "C" void KeyValuePair_2__ctor_m1315482284_gshared (KeyValuePair_2_t231828568 * __this, Guid_t p0, RuntimeObject * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Guid,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
extern "C" void Enumerator__ctor_m1418272670_gshared (Enumerator_t4083306472 * __this, Dictionary_2_t2129123697 * p0, int32_t p1, const RuntimeMethod* method);
// TKey System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Key()
extern "C" int32_t KeyValuePair_2_get_Key_m1839753989_gshared (KeyValuePair_2_t71524366 * __this, const RuntimeMethod* method);
// TValue System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Value()
extern "C" RuntimeObject * KeyValuePair_2_get_Value_m3495598764_gshared (KeyValuePair_2_t71524366 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::.ctor(TKey,TValue)
extern "C" void KeyValuePair_2__ctor_m2118224448_gshared (KeyValuePair_2_t71524366 * __this, int32_t p0, RuntimeObject * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
extern "C" void Enumerator__ctor_m2457691374_gshared (Enumerator_t3923002270 * __this, Dictionary_2_t1968819495 * p0, int32_t p1, const RuntimeMethod* method);
// TKey System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>::get_Key()
extern "C" int64_t KeyValuePair_2_get_Key_m635992374_gshared (KeyValuePair_2_t2245450819 * __this, const RuntimeMethod* method);
// TValue System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>::get_Value()
extern "C" RuntimeObject * KeyValuePair_2_get_Value_m392474074_gshared (KeyValuePair_2_t2245450819 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>::.ctor(TKey,TValue)
extern "C" void KeyValuePair_2__ctor_m2056996813_gshared (KeyValuePair_2_t2245450819 * __this, int64_t p0, RuntimeObject * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int64,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
extern "C" void Enumerator__ctor_m2847475527_gshared (Enumerator_t1801961427 * __this, Dictionary_2_t4142745948 * p0, int32_t p1, const RuntimeMethod* method);
// TKey System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>::get_Key()
extern "C" intptr_t KeyValuePair_2_get_Key_m1204087822_gshared (KeyValuePair_2_t3699644050 * __this, const RuntimeMethod* method);
// TValue System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>::get_Value()
extern "C" RuntimeObject * KeyValuePair_2_get_Value_m1339120122_gshared (KeyValuePair_2_t3699644050 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>::.ctor(TKey,TValue)
extern "C" void KeyValuePair_2__ctor_m3953574590_gshared (KeyValuePair_2_t3699644050 * __this, intptr_t p0, RuntimeObject * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.IntPtr,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
extern "C" void Enumerator__ctor_m1925663634_gshared (Enumerator_t3256154658 * __this, Dictionary_2_t1301971883 * p0, int32_t p1, const RuntimeMethod* method);
// TKey System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::get_Key()
extern "C" TypedConstant_t714020897 KeyValuePair_2_get_Key_m2623710737_gshared (KeyValuePair_2_t126004427 * __this, const RuntimeMethod* method);
// TValue System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::get_Value()
extern "C" int32_t KeyValuePair_2_get_Value_m3418326370_gshared (KeyValuePair_2_t126004427 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(TKey,TValue)
extern "C" void KeyValuePair_2__ctor_m3967312370_gshared (KeyValuePair_2_t126004427 * __this, TypedConstant_t714020897 p0, int32_t p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
extern "C" void Enumerator__ctor_m3544466443_gshared (Enumerator_t3977482331 * __this, Dictionary_2_t2023299556 * p0, int32_t p1, const RuntimeMethod* method);
// TKey System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::get_Key()
extern "C" TypedConstant_t714020897 KeyValuePair_2_get_Key_m3539669632_gshared (KeyValuePair_2_t255164838 * __this, const RuntimeMethod* method);
// TValue System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::get_Value()
extern "C" RuntimeObject * KeyValuePair_2_get_Value_m1745831214_gshared (KeyValuePair_2_t255164838 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(TKey,TValue)
extern "C" void KeyValuePair_2__ctor_m51719720_gshared (KeyValuePair_2_t255164838 * __this, TypedConstant_t714020897 p0, RuntimeObject * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
extern "C" void Enumerator__ctor_m856106391_gshared (Enumerator_t4106642742 * __this, Dictionary_2_t2152459967 * p0, int32_t p1, const RuntimeMethod* method);
// TKey System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::get_Key()
extern "C" RuntimeObject * KeyValuePair_2_get_Key_m3802237574_gshared (KeyValuePair_2_t3422187268 * __this, const RuntimeMethod* method);
// TValue System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::get_Value()
extern "C" uint32_t KeyValuePair_2_get_Value_m3608670336_gshared (KeyValuePair_2_t3422187268 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(TKey,TValue)
extern "C" void KeyValuePair_2__ctor_m540400546_gshared (KeyValuePair_2_t3422187268 * __this, RuntimeObject * p0, uint32_t p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
extern "C" void Enumerator__ctor_m2292953930_gshared (Enumerator_t2978697876 * __this, Dictionary_2_t1024515101 * p0, int32_t p1, const RuntimeMethod* method);
// TKey System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>::get_Key()
extern "C" RuntimeObject * KeyValuePair_2_get_Key_m2837550314_gshared (KeyValuePair_2_t4085865031 * __this, const RuntimeMethod* method);
// TValue System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>::get_Value()
extern "C" int32_t KeyValuePair_2_get_Value_m1430811576_gshared (KeyValuePair_2_t4085865031 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>::.ctor(TKey,TValue)
extern "C" void KeyValuePair_2__ctor_m1860763818_gshared (KeyValuePair_2_t4085865031 * __this, RuntimeObject * p0, int32_t p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,Newtonsoft.Json.ReadType>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
extern "C" void Enumerator__ctor_m2602380025_gshared (Enumerator_t3642375639 * __this, Dictionary_2_t1688192864 * p0, int32_t p1, const RuntimeMethod* method);
// System.Void System.Object::.ctor()
extern "C" void Object__ctor_m297566312 (RuntimeObject * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.ArgumentOutOfRangeException::.ctor(System.String,System.Object,System.String)
extern "C" void ArgumentOutOfRangeException__ctor_m4164965325 (ArgumentOutOfRangeException_t777629997 * __this, String_t* ___paramName0, RuntimeObject * ___actualValue1, String_t* ___message2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.ArgumentNullException::.ctor(System.String)
extern "C" void ArgumentNullException__ctor_m1170824041 (ArgumentNullException_t1615371798 * __this, String_t* ___paramName0, 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.Type System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)
extern "C" Type_t * Type_GetTypeFromHandle_m1620074514 (RuntimeObject * __this /* static, unused */, RuntimeTypeHandle_t3027515415 ___handle0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Type::op_Equality(System.Type,System.Type)
extern "C" bool Type_op_Equality_m2683486427 (RuntimeObject * __this /* static, unused */, Type_t * ___left0, Type_t * ___right1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// TKey System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::get_Key()
#define KeyValuePair_2_get_Key_m2096859168(__this, method) (( TypeConvertKey_t285306760 (*) (KeyValuePair_2_t753628355 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m2096859168_gshared)(__this, method)
// TValue System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::get_Value()
#define KeyValuePair_2_get_Value_m2171951189(__this, method) (( RuntimeObject * (*) (KeyValuePair_2_t753628355 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m2171951189_gshared)(__this, method)
// System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Runtime.Serialization.SerializationInfo> System.Collections.Generic.DictionaryHashHelpers::get_SerializationInfoTable()
extern "C" ConditionalWeakTable_2_t1452810305 * DictionaryHashHelpers_get_SerializationInfoTable_m2316479637 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Runtime.Serialization.SerializationInfo>::Add(TKey,TValue)
#define ConditionalWeakTable_2_Add_m4098691448(__this, p0, p1, method) (( void (*) (ConditionalWeakTable_2_t1452810305 *, RuntimeObject *, SerializationInfo_t950877179 *, const RuntimeMethod*))ConditionalWeakTable_2_Add_m789045879_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.KeyNotFoundException::.ctor()
extern "C" void KeyNotFoundException__ctor_m541499307 (KeyNotFoundException_t2292407383 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Array::Clear(System.Array,System.Int32,System.Int32)
extern "C" void Array_Clear_m2231608178 (RuntimeObject * __this /* static, unused */, RuntimeArray * ___array0, int32_t ___index1, int32_t ___length2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.ArgumentException::.ctor(System.String)
extern "C" void ArgumentException__ctor_m1312628991 (ArgumentException_t132251570 * __this, String_t* ___message0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(TKey,TValue)
#define KeyValuePair_2__ctor_m2870587947(__this, p0, p1, method) (( void (*) (KeyValuePair_2_t753628355 *, TypeConvertKey_t285306760 , RuntimeObject *, const RuntimeMethod*))KeyValuePair_2__ctor_m2870587947_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
#define Enumerator__ctor_m2001013060(__this, p0, p1, method) (( void (*) (Enumerator_t310138963 *, Dictionary_2_t2650923484 *, int32_t, const RuntimeMethod*))Enumerator__ctor_m2001013060_gshared)(__this, p0, p1, method)
// System.Void System.Runtime.Serialization.SerializationInfo::AddValue(System.String,System.Int32)
extern "C" void SerializationInfo_AddValue_m412754688 (SerializationInfo_t950877179 * __this, String_t* ___name0, int32_t ___value1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Runtime.Serialization.SerializationInfo::AddValue(System.String,System.Object,System.Type)
extern "C" void SerializationInfo_AddValue_m3906743584 (SerializationInfo_t950877179 * __this, String_t* ___name0, RuntimeObject * ___value1, Type_t * ___type2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Collections.HashHelpers::GetPrime(System.Int32)
extern "C" int32_t HashHelpers_GetPrime_m1056954278 (RuntimeObject * __this /* static, unused */, int32_t ___min0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String SR::Format(System.String,System.Object)
extern "C" String_t* SR_Format_m1749913990 (RuntimeObject * __this /* static, unused */, String_t* ___resourceFormat0, RuntimeObject * ___p11, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.EqualityComparer`1<T> System.Collections.Generic.EqualityComparer`1<System.String>::get_Default()
#define EqualityComparer_1_get_Default_m2310016383(__this /* static, unused */, method) (( EqualityComparer_1_t17223025 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))EqualityComparer_1_get_Default_m2924303213_gshared)(__this /* static, unused */, method)
// System.Boolean System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Runtime.Serialization.SerializationInfo>::TryGetValue(TKey,TValue&)
#define ConditionalWeakTable_2_TryGetValue_m1618998192(__this, p0, p1, method) (( bool (*) (ConditionalWeakTable_2_t1452810305 *, RuntimeObject *, SerializationInfo_t950877179 **, const RuntimeMethod*))ConditionalWeakTable_2_TryGetValue_m2005289596_gshared)(__this, p0, p1, method)
// System.Int32 System.Runtime.Serialization.SerializationInfo::GetInt32(System.String)
extern "C" int32_t SerializationInfo_GetInt32_m2640574809 (SerializationInfo_t950877179 * __this, String_t* ___name0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Object System.Runtime.Serialization.SerializationInfo::GetValue(System.String,System.Type)
extern "C" RuntimeObject * SerializationInfo_GetValue_m42271953 (SerializationInfo_t950877179 * __this, String_t* ___name0, Type_t * ___type1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Runtime.Serialization.SerializationException::.ctor(System.String)
extern "C" void SerializationException__ctor_m3862484944 (SerializationException_t3941511869 * __this, String_t* ___message0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Runtime.Serialization.SerializationInfo>::Remove(TKey)
#define ConditionalWeakTable_2_Remove_m2013031576(__this, p0, method) (( bool (*) (ConditionalWeakTable_2_t1452810305 *, RuntimeObject *, const RuntimeMethod*))ConditionalWeakTable_2_Remove_m4015541508_gshared)(__this, p0, method)
// System.Int32 System.Collections.HashHelpers::ExpandPrime(System.Int32)
extern "C" int32_t HashHelpers_ExpandPrime_m2180508331 (RuntimeObject * __this /* static, unused */, int32_t ___oldSize0, 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 * ___sourceArray0, int32_t ___sourceIndex1, RuntimeArray * ___destinationArray2, int32_t ___destinationIndex3, int32_t ___length4, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Array::get_Rank()
extern "C" int32_t Array_get_Rank_m3448755881 (RuntimeArray * __this, 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* ___message0, String_t* ___paramName1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Array::GetLowerBound(System.Int32)
extern "C" int32_t Array_GetLowerBound_m2045984623 (RuntimeArray * __this, int32_t ___dimension0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Array::get_Length()
extern "C" int32_t Array_get_Length_m21610649 (RuntimeArray * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.DictionaryEntry::.ctor(System.Object,System.Object)
extern "C" void DictionaryEntry__ctor_m2585376310 (DictionaryEntry_t3123975638 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String SR::Format(System.String,System.Object,System.Object)
extern "C" String_t* SR_Format_m1395559496 (RuntimeObject * __this /* static, unused */, String_t* ___resourceFormat0, RuntimeObject * ___p11, RuntimeObject * ___p22, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// TKey System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>::get_Key()
#define KeyValuePair_2_get_Key_m4294704491(__this, method) (( Guid_t (*) (KeyValuePair_2_t231828568 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m4294704491_gshared)(__this, method)
// TValue System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>::get_Value()
#define KeyValuePair_2_get_Value_m2666064688(__this, method) (( RuntimeObject * (*) (KeyValuePair_2_t231828568 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m2666064688_gshared)(__this, method)
// System.Void System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>::.ctor(TKey,TValue)
#define KeyValuePair_2__ctor_m1315482284(__this, p0, p1, method) (( void (*) (KeyValuePair_2_t231828568 *, Guid_t , RuntimeObject *, const RuntimeMethod*))KeyValuePair_2__ctor_m1315482284_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Guid,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
#define Enumerator__ctor_m1418272670(__this, p0, p1, method) (( void (*) (Enumerator_t4083306472 *, Dictionary_2_t2129123697 *, int32_t, const RuntimeMethod*))Enumerator__ctor_m1418272670_gshared)(__this, p0, p1, method)
// TKey System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Key()
#define KeyValuePair_2_get_Key_m1839753989(__this, method) (( int32_t (*) (KeyValuePair_2_t71524366 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m1839753989_gshared)(__this, method)
// TValue System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Value()
#define KeyValuePair_2_get_Value_m3495598764(__this, method) (( RuntimeObject * (*) (KeyValuePair_2_t71524366 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m3495598764_gshared)(__this, method)
// System.Void System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::.ctor(TKey,TValue)
#define KeyValuePair_2__ctor_m2118224448(__this, p0, p1, method) (( void (*) (KeyValuePair_2_t71524366 *, int32_t, RuntimeObject *, const RuntimeMethod*))KeyValuePair_2__ctor_m2118224448_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
#define Enumerator__ctor_m2457691374(__this, p0, p1, method) (( void (*) (Enumerator_t3923002270 *, Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))Enumerator__ctor_m2457691374_gshared)(__this, p0, p1, method)
// TKey System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>::get_Key()
#define KeyValuePair_2_get_Key_m635992374(__this, method) (( int64_t (*) (KeyValuePair_2_t2245450819 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m635992374_gshared)(__this, method)
// TValue System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>::get_Value()
#define KeyValuePair_2_get_Value_m392474074(__this, method) (( RuntimeObject * (*) (KeyValuePair_2_t2245450819 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m392474074_gshared)(__this, method)
// System.Void System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>::.ctor(TKey,TValue)
#define KeyValuePair_2__ctor_m2056996813(__this, p0, p1, method) (( void (*) (KeyValuePair_2_t2245450819 *, int64_t, RuntimeObject *, const RuntimeMethod*))KeyValuePair_2__ctor_m2056996813_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int64,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
#define Enumerator__ctor_m2847475527(__this, p0, p1, method) (( void (*) (Enumerator_t1801961427 *, Dictionary_2_t4142745948 *, int32_t, const RuntimeMethod*))Enumerator__ctor_m2847475527_gshared)(__this, p0, p1, method)
// TKey System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>::get_Key()
#define KeyValuePair_2_get_Key_m1204087822(__this, method) (( intptr_t (*) (KeyValuePair_2_t3699644050 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m1204087822_gshared)(__this, method)
// TValue System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>::get_Value()
#define KeyValuePair_2_get_Value_m1339120122(__this, method) (( RuntimeObject * (*) (KeyValuePair_2_t3699644050 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m1339120122_gshared)(__this, method)
// System.Void System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>::.ctor(TKey,TValue)
#define KeyValuePair_2__ctor_m3953574590(__this, p0, p1, method) (( void (*) (KeyValuePair_2_t3699644050 *, intptr_t, RuntimeObject *, const RuntimeMethod*))KeyValuePair_2__ctor_m3953574590_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.IntPtr,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
#define Enumerator__ctor_m1925663634(__this, p0, p1, method) (( void (*) (Enumerator_t3256154658 *, Dictionary_2_t1301971883 *, int32_t, const RuntimeMethod*))Enumerator__ctor_m1925663634_gshared)(__this, p0, p1, method)
// TKey System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::get_Key()
#define KeyValuePair_2_get_Key_m2623710737(__this, method) (( TypedConstant_t714020897 (*) (KeyValuePair_2_t126004427 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m2623710737_gshared)(__this, method)
// TValue System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::get_Value()
#define KeyValuePair_2_get_Value_m3418326370(__this, method) (( int32_t (*) (KeyValuePair_2_t126004427 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m3418326370_gshared)(__this, method)
// System.Void System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(TKey,TValue)
#define KeyValuePair_2__ctor_m3967312370(__this, p0, p1, method) (( void (*) (KeyValuePair_2_t126004427 *, TypedConstant_t714020897 , int32_t, const RuntimeMethod*))KeyValuePair_2__ctor_m3967312370_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
#define Enumerator__ctor_m3544466443(__this, p0, p1, method) (( void (*) (Enumerator_t3977482331 *, Dictionary_2_t2023299556 *, int32_t, const RuntimeMethod*))Enumerator__ctor_m3544466443_gshared)(__this, p0, p1, method)
// TKey System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::get_Key()
#define KeyValuePair_2_get_Key_m3539669632(__this, method) (( TypedConstant_t714020897 (*) (KeyValuePair_2_t255164838 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m3539669632_gshared)(__this, method)
// TValue System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::get_Value()
#define KeyValuePair_2_get_Value_m1745831214(__this, method) (( RuntimeObject * (*) (KeyValuePair_2_t255164838 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m1745831214_gshared)(__this, method)
// System.Void System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(TKey,TValue)
#define KeyValuePair_2__ctor_m51719720(__this, p0, p1, method) (( void (*) (KeyValuePair_2_t255164838 *, TypedConstant_t714020897 , RuntimeObject *, const RuntimeMethod*))KeyValuePair_2__ctor_m51719720_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
#define Enumerator__ctor_m856106391(__this, p0, p1, method) (( void (*) (Enumerator_t4106642742 *, Dictionary_2_t2152459967 *, int32_t, const RuntimeMethod*))Enumerator__ctor_m856106391_gshared)(__this, p0, p1, method)
// TKey System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::get_Key()
#define KeyValuePair_2_get_Key_m3802237574(__this, method) (( RuntimeObject * (*) (KeyValuePair_2_t3422187268 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m3802237574_gshared)(__this, method)
// TValue System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::get_Value()
#define KeyValuePair_2_get_Value_m3608670336(__this, method) (( uint32_t (*) (KeyValuePair_2_t3422187268 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m3608670336_gshared)(__this, method)
// System.Void System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(TKey,TValue)
#define KeyValuePair_2__ctor_m540400546(__this, p0, p1, method) (( void (*) (KeyValuePair_2_t3422187268 *, RuntimeObject *, uint32_t, const RuntimeMethod*))KeyValuePair_2__ctor_m540400546_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
#define Enumerator__ctor_m2292953930(__this, p0, p1, method) (( void (*) (Enumerator_t2978697876 *, Dictionary_2_t1024515101 *, int32_t, const RuntimeMethod*))Enumerator__ctor_m2292953930_gshared)(__this, p0, p1, method)
// TKey System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>::get_Key()
#define KeyValuePair_2_get_Key_m2837550314(__this, method) (( RuntimeObject * (*) (KeyValuePair_2_t4085865031 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m2837550314_gshared)(__this, method)
// TValue System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>::get_Value()
#define KeyValuePair_2_get_Value_m1430811576(__this, method) (( int32_t (*) (KeyValuePair_2_t4085865031 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m1430811576_gshared)(__this, method)
// System.Void System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>::.ctor(TKey,TValue)
#define KeyValuePair_2__ctor_m1860763818(__this, p0, p1, method) (( void (*) (KeyValuePair_2_t4085865031 *, RuntimeObject *, int32_t, const RuntimeMethod*))KeyValuePair_2__ctor_m1860763818_gshared)(__this, p0, p1, method)
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,Newtonsoft.Json.ReadType>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>,System.Int32)
#define Enumerator__ctor_m2602380025(__this, p0, p1, method) (( void (*) (Enumerator_t3642375639 *, Dictionary_2_t1688192864 *, int32_t, const RuntimeMethod*))Enumerator__ctor_m2602380025_gshared)(__this, p0, p1, method)
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor()
extern "C" void Dictionary_2__ctor_m549215808_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2650923484 *)__this, (int32_t)0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(System.Int32)
extern "C" void Dictionary_2__ctor_m240133214_gshared (Dictionary_2_t2650923484 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___capacity0;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2650923484 *)__this, (int32_t)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m2100839617_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject* ___comparer0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___comparer0;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2650923484 *)__this, (int32_t)0, (RuntimeObject*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m4252786609_gshared (Dictionary_2_t2650923484 * __this, int32_t ___capacity0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m4252786609_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* G_B6_0 = NULL;
Dictionary_2_t2650923484 * G_B6_1 = NULL;
RuntimeObject* G_B5_0 = NULL;
Dictionary_2_t2650923484 * G_B5_1 = NULL;
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
int32_t L_0 = ___capacity0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0020;
}
}
{
int32_t L_1 = ___capacity0;
int32_t L_2 = L_1;
RuntimeObject * L_3 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_2);
ArgumentOutOfRangeException_t777629997 * L_4 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_4, (String_t*)_stringLiteral3623012086, (RuntimeObject *)L_3, (String_t*)_stringLiteral2892689725, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2__ctor_m4252786609_RuntimeMethod_var);
}
IL_0020:
{
int32_t L_5 = ___capacity0;
if ((((int32_t)L_5) <= ((int32_t)0)))
{
goto IL_002b;
}
}
{
int32_t L_6 = ___capacity0;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t2650923484 *)__this, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_002b:
{
RuntimeObject* L_7 = ___comparer1;
RuntimeObject* L_8 = (RuntimeObject*)L_7;
G_B5_0 = L_8;
G_B5_1 = ((Dictionary_2_t2650923484 *)(__this));
if (L_8)
{
G_B6_0 = L_8;
G_B6_1 = ((Dictionary_2_t2650923484 *)(__this));
goto IL_0036;
}
}
{
EqualityComparer_1_t2750046392 * L_9 = (( EqualityComparer_1_t2750046392 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2));
G_B6_0 = ((RuntimeObject*)(L_9));
G_B6_1 = ((Dictionary_2_t2650923484 *)(G_B5_1));
}
IL_0036:
{
NullCheck(G_B6_1);
G_B6_1->set_comparer_6(G_B6_0);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>)
extern "C" void Dictionary_2__ctor_m753349510_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___dictionary0;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4)->methodPointer)((Dictionary_2_t2650923484 *)__this, (RuntimeObject*)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m233545953_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject* ___dictionary0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m233545953_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t3899865133* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
KeyValuePair_2_t753628355 V_4;
memset(&V_4, 0, sizeof(V_4));
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);
Dictionary_2_t2650923484 * G_B2_0 = NULL;
Dictionary_2_t2650923484 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
Dictionary_2_t2650923484 * G_B3_1 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
G_B1_0 = ((Dictionary_2_t2650923484 *)(__this));
if (L_0)
{
G_B2_0 = ((Dictionary_2_t2650923484 *)(__this));
goto IL_0007;
}
}
{
G_B3_0 = 0;
G_B3_1 = ((Dictionary_2_t2650923484 *)(G_B1_0));
goto IL_000d;
}
IL_0007:
{
RuntimeObject* L_1 = ___dictionary0;
NullCheck((RuntimeObject*)L_1);
int32_t L_2 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>>::get_Count() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 5), (RuntimeObject*)L_1);
G_B3_0 = L_2;
G_B3_1 = ((Dictionary_2_t2650923484 *)(G_B2_0));
}
IL_000d:
{
RuntimeObject* L_3 = ___comparer1;
NullCheck((Dictionary_2_t2650923484 *)G_B3_1);
(( void (*) (Dictionary_2_t2650923484 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2650923484 *)G_B3_1, (int32_t)G_B3_0, (RuntimeObject*)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
RuntimeObject* L_4 = ___dictionary0;
if (L_4)
{
goto IL_0021;
}
}
{
ArgumentNullException_t1615371798 * L_5 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_5, (String_t*)_stringLiteral2957729587, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, Dictionary_2__ctor_m233545953_RuntimeMethod_var);
}
IL_0021:
{
RuntimeObject* L_6 = ___dictionary0;
NullCheck((RuntimeObject *)L_6);
Type_t * L_7 = Object_GetType_m88164663((RuntimeObject *)L_6, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_8 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 6)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_9 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_8, /*hidden argument*/NULL);
bool L_10 = Type_op_Equality_m2683486427(NULL /*static, unused*/, (Type_t *)L_7, (Type_t *)L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0085;
}
}
{
RuntimeObject* L_11 = ___dictionary0;
Dictionary_2_t2650923484 * L_12 = (Dictionary_2_t2650923484 *)((Dictionary_2_t2650923484 *)Castclass((RuntimeObject*)L_11, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 7)));
NullCheck(L_12);
int32_t L_13 = (int32_t)L_12->get_count_2();
V_0 = (int32_t)L_13;
NullCheck(L_12);
EntryU5BU5D_t3899865133* L_14 = (EntryU5BU5D_t3899865133*)L_12->get_entries_1();
V_1 = (EntryU5BU5D_t3899865133*)L_14;
V_2 = (int32_t)0;
goto IL_0080;
}
IL_004f:
{
EntryU5BU5D_t3899865133* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007c;
}
}
{
EntryU5BU5D_t3899865133* L_18 = V_1;
int32_t L_19 = V_2;
NullCheck(L_18);
TypeConvertKey_t285306760 L_20 = (TypeConvertKey_t285306760 )((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->get_key_2();
EntryU5BU5D_t3899865133* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
RuntimeObject * L_23 = (RuntimeObject *)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_value_3();
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_20, (RuntimeObject *)L_23, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_007c:
{
int32_t L_24 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0080:
{
int32_t L_25 = V_2;
int32_t L_26 = V_0;
if ((((int32_t)L_25) < ((int32_t)L_26)))
{
goto IL_004f;
}
}
{
return;
}
IL_0085:
{
RuntimeObject* L_27 = ___dictionary0;
NullCheck((RuntimeObject*)L_27);
RuntimeObject* L_28 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 9), (RuntimeObject*)L_27);
V_3 = (RuntimeObject*)L_28;
}
IL_008c:
try
{ // begin try (depth: 1)
{
goto IL_00aa;
}
IL_008e:
{
RuntimeObject* L_29 = V_3;
NullCheck((RuntimeObject*)L_29);
KeyValuePair_2_t753628355 L_30 = InterfaceFuncInvoker0< KeyValuePair_2_t753628355 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>>::get_Current() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 10), (RuntimeObject*)L_29);
V_4 = (KeyValuePair_2_t753628355 )L_30;
TypeConvertKey_t285306760 L_31 = KeyValuePair_2_get_Key_m2096859168((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_32 = KeyValuePair_2_get_Value_m2171951189((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_31, (RuntimeObject *)L_32, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_00aa:
{
RuntimeObject* L_33 = V_3;
NullCheck((RuntimeObject*)L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, (RuntimeObject*)L_33);
if (L_34)
{
goto IL_008e;
}
}
IL_00b2:
{
IL2CPP_LEAVE(0xBE, FINALLY_00b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b4;
}
FINALLY_00b4:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_3;
if (!L_35)
{
goto IL_00bd;
}
}
IL_00b7:
{
RuntimeObject* L_36 = V_3;
NullCheck((RuntimeObject*)L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, (RuntimeObject*)L_36);
}
IL_00bd:
{
IL2CPP_END_FINALLY(180)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(180)
{
IL2CPP_JUMP_TBL(0xBE, IL_00be)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00be:
{
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2__ctor_m2092383399_gshared (Dictionary_2_t2650923484 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m2092383399_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_1 = ___info0;
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_Add_m4098691448((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 *)L_1, /*hidden argument*/ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var);
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::get_Count()
extern "C" int32_t Dictionary_2_get_Count_m2268347439_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_count_2();
int32_t L_1 = (int32_t)__this->get_freeCount_5();
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1));
}
}
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::get_Keys()
extern "C" KeyCollection_t2840598955 * Dictionary_2_get_Keys_m882023869_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2840598955 * L_0 = (KeyCollection_t2840598955 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2840598955 * L_1 = (KeyCollection_t2840598955 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2840598955 *, Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2840598955 * L_2 = (KeyCollection_t2840598955 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m453338677_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2840598955 * L_0 = (KeyCollection_t2840598955 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2840598955 * L_1 = (KeyCollection_t2840598955 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2840598955 *, Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2840598955 * L_2 = (KeyCollection_t2840598955 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TKey> System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Keys_m2492745093_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2840598955 * L_0 = (KeyCollection_t2840598955 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2840598955 * L_1 = (KeyCollection_t2840598955 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2840598955 *, Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2840598955 * L_2 = (KeyCollection_t2840598955 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::get_Values()
extern "C" ValueCollection_t72000506 * Dictionary_2_get_Values_m898071074_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t72000506 * L_0 = (ValueCollection_t72000506 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t72000506 * L_1 = (ValueCollection_t72000506 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t72000506 *, Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t72000506 * L_2 = (ValueCollection_t72000506 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m2642202753_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t72000506 * L_0 = (ValueCollection_t72000506 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t72000506 * L_1 = (ValueCollection_t72000506 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t72000506 *, Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t72000506 * L_2 = (ValueCollection_t72000506 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TValue> System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Values_m3059087633_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t72000506 * L_0 = (ValueCollection_t72000506 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t72000506 * L_1 = (ValueCollection_t72000506 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t72000506 *, Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t72000506 * L_2 = (ValueCollection_t72000506 *)__this->get_values_8();
return L_2;
}
}
// TValue System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::get_Item(TKey)
extern "C" RuntimeObject * Dictionary_2_get_Item_m3231850711_gshared (Dictionary_2_t2650923484 * __this, TypeConvertKey_t285306760 ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_get_Item_m3231850711_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
TypeConvertKey_t285306760 L_0 = ___key0;
NullCheck((Dictionary_2_t2650923484 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_001e;
}
}
{
EntryU5BU5D_t3899865133* L_3 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_4 = V_0;
NullCheck(L_3);
RuntimeObject * L_5 = (RuntimeObject *)((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_4)))->get_value_3();
return L_5;
}
IL_001e:
{
KeyNotFoundException_t2292407383 * L_6 = (KeyNotFoundException_t2292407383 *)il2cpp_codegen_object_new(KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var);
KeyNotFoundException__ctor_m541499307(L_6, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, Dictionary_2_get_Item_m3231850711_RuntimeMethod_var);
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::set_Item(TKey,TValue)
extern "C" void Dictionary_2_set_Item_m1553559423_gshared (Dictionary_2_t2650923484 * __this, TypeConvertKey_t285306760 ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
TypeConvertKey_t285306760 L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( bool (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_0, (RuntimeObject *)L_1, (uint8_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::Add(TKey,TValue)
extern "C" void Dictionary_2_Add_m1156682881_gshared (Dictionary_2_t2650923484 * __this, TypeConvertKey_t285306760 ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
TypeConvertKey_t285306760 L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( bool (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_0, (RuntimeObject *)L_1, (uint8_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m965460572_gshared (Dictionary_2_t2650923484 * __this, KeyValuePair_2_t753628355 ___keyValuePair0, const RuntimeMethod* method)
{
{
TypeConvertKey_t285306760 L_0 = KeyValuePair_2_get_Key_m2096859168((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_1 = KeyValuePair_2_get_Value_m2171951189((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_0, (RuntimeObject *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m2832294637_gshared (Dictionary_2_t2650923484 * __this, KeyValuePair_2_t753628355 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
TypeConvertKey_t285306760 L_0 = KeyValuePair_2_get_Key_m2096859168((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2650923484 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0038;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t3899865133* L_4 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m2171951189((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0038;
}
}
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m4056448262_gshared (Dictionary_2_t2650923484 * __this, KeyValuePair_2_t753628355 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
TypeConvertKey_t285306760 L_0 = KeyValuePair_2_get_Key_m2096859168((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2650923484 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0046;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t3899865133* L_4 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m2171951189((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0046;
}
}
{
TypeConvertKey_t285306760 L_9 = KeyValuePair_2_get_Key_m2096859168((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2650923484 *)__this);
(( bool (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
return (bool)1;
}
IL_0046:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::Clear()
extern "C" void Dictionary_2_Clear_m1123525707_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (int32_t)__this->get_count_2();
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_005a;
}
}
{
V_0 = (int32_t)0;
goto IL_001a;
}
IL_000d:
{
Int32U5BU5D_t385246372* L_1 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_2 = V_0;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_001a:
{
int32_t L_4 = V_0;
Int32U5BU5D_t385246372* L_5 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000d;
}
}
{
EntryU5BU5D_t3899865133* L_6 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_7 = (int32_t)__this->get_count_2();
Array_Clear_m2231608178(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_6, (int32_t)0, (int32_t)L_7, /*hidden argument*/NULL);
__this->set_freeList_4((-1));
__this->set_count_2(0);
__this->set_freeCount_5(0);
int32_t L_8 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)));
}
IL_005a:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::ContainsKey(TKey)
extern "C" bool Dictionary_2_ContainsKey_m2952608875_gshared (Dictionary_2_t2650923484 * __this, TypeConvertKey_t285306760 ___key0, const RuntimeMethod* method)
{
{
TypeConvertKey_t285306760 L_0 = ___key0;
NullCheck((Dictionary_2_t2650923484 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
return (bool)((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::ContainsValue(TValue)
extern "C" bool Dictionary_2_ContainsValue_m3252037432_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject * ___value0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
EqualityComparer_1_t1249878500 * V_1 = NULL;
int32_t V_2 = 0;
{
RuntimeObject * L_0 = ___value0;
if (L_0)
{
goto IL_0049;
}
}
{
V_0 = (int32_t)0;
goto IL_003e;
}
IL_000c:
{
EntryU5BU5D_t3899865133* L_1 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_2 = V_0;
NullCheck(L_1);
int32_t L_3 = (int32_t)((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->get_hashCode_0();
if ((((int32_t)L_3) < ((int32_t)0)))
{
goto IL_003a;
}
}
{
EntryU5BU5D_t3899865133* L_4 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
if (L_6)
{
goto IL_003a;
}
}
{
return (bool)1;
}
IL_003a:
{
int32_t L_7 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_003e:
{
int32_t L_8 = V_0;
int32_t L_9 = (int32_t)__this->get_count_2();
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_000c;
}
}
{
goto IL_0090;
}
IL_0049:
{
EqualityComparer_1_t1249878500 * L_10 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
V_1 = (EqualityComparer_1_t1249878500 *)L_10;
V_2 = (int32_t)0;
goto IL_0087;
}
IL_0053:
{
EntryU5BU5D_t3899865133* L_11 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_12 = V_2;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) < ((int32_t)0)))
{
goto IL_0083;
}
}
{
EqualityComparer_1_t1249878500 * L_14 = V_1;
EntryU5BU5D_t3899865133* L_15 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_16 = V_2;
NullCheck(L_15);
RuntimeObject * L_17 = (RuntimeObject *)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_value_3();
RuntimeObject * L_18 = ___value0;
NullCheck((EqualityComparer_1_t1249878500 *)L_14);
bool L_19 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_14, (RuntimeObject *)L_17, (RuntimeObject *)L_18);
if (!L_19)
{
goto IL_0083;
}
}
{
return (bool)1;
}
IL_0083:
{
int32_t L_20 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
}
IL_0087:
{
int32_t L_21 = V_2;
int32_t L_22 = (int32_t)__this->get_count_2();
if ((((int32_t)L_21) < ((int32_t)L_22)))
{
goto IL_0053;
}
}
IL_0090:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_CopyTo_m472865737_gshared (Dictionary_2_t2650923484 * __this, KeyValuePair_2U5BU5D_t3351136466* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_CopyTo_m472865737_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t3899865133* V_1 = NULL;
int32_t V_2 = 0;
{
KeyValuePair_2U5BU5D_t3351136466* L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_CopyTo_m472865737_RuntimeMethod_var);
}
IL_000e:
{
int32_t L_2 = ___index1;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0018;
}
}
{
int32_t L_3 = ___index1;
KeyValuePair_2U5BU5D_t3351136466* L_4 = ___array0;
NullCheck(L_4);
if ((((int32_t)L_3) <= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length)))))))
{
goto IL_002e;
}
}
IL_0018:
{
int32_t L_5 = ___index1;
int32_t L_6 = L_5;
RuntimeObject * L_7 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_6);
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_8, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_7, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, Dictionary_2_CopyTo_m472865737_RuntimeMethod_var);
}
IL_002e:
{
KeyValuePair_2U5BU5D_t3351136466* L_9 = ___array0;
NullCheck(L_9);
int32_t L_10 = ___index1;
NullCheck((Dictionary_2_t2650923484 *)__this);
int32_t L_11 = (( int32_t (*) (Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_9)->max_length)))), (int32_t)L_10))) >= ((int32_t)L_11)))
{
goto IL_0046;
}
}
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_12, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_CopyTo_m472865737_RuntimeMethod_var);
}
IL_0046:
{
int32_t L_13 = (int32_t)__this->get_count_2();
V_0 = (int32_t)L_13;
EntryU5BU5D_t3899865133* L_14 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
V_1 = (EntryU5BU5D_t3899865133*)L_14;
V_2 = (int32_t)0;
goto IL_0094;
}
IL_0058:
{
EntryU5BU5D_t3899865133* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_0090;
}
}
{
KeyValuePair_2U5BU5D_t3351136466* L_18 = ___array0;
int32_t L_19 = ___index1;
int32_t L_20 = (int32_t)L_19;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
EntryU5BU5D_t3899865133* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
TypeConvertKey_t285306760 L_23 = (TypeConvertKey_t285306760 )((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_key_2();
EntryU5BU5D_t3899865133* L_24 = V_1;
int32_t L_25 = V_2;
NullCheck(L_24);
RuntimeObject * L_26 = (RuntimeObject *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_value_3();
KeyValuePair_2_t753628355 L_27;
memset(&L_27, 0, sizeof(L_27));
KeyValuePair_2__ctor_m2870587947((&L_27), (TypeConvertKey_t285306760 )L_23, (RuntimeObject *)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
NullCheck(L_18);
(L_18)->SetAt(static_cast<il2cpp_array_size_t>(L_20), (KeyValuePair_2_t753628355 )L_27);
}
IL_0090:
{
int32_t L_28 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_0094:
{
int32_t L_29 = V_2;
int32_t L_30 = V_0;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0058;
}
}
{
return;
}
}
// System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::GetEnumerator()
extern "C" Enumerator_t310138963 Dictionary_2_GetEnumerator_m2077061520_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
Enumerator_t310138963 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2001013060((&L_0), (Dictionary_2_t2650923484 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
return L_0;
}
}
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m2766603871_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
Enumerator_t310138963 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2001013060((&L_0), (Dictionary_2_t2650923484 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t310138963 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2_GetObjectData_m3686008415_gshared (Dictionary_2_t2650923484 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_GetObjectData_m3686008415_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t3351136466* V_0 = NULL;
String_t* G_B4_0 = NULL;
SerializationInfo_t950877179 * G_B4_1 = NULL;
String_t* G_B3_0 = NULL;
SerializationInfo_t950877179 * G_B3_1 = NULL;
int32_t G_B5_0 = 0;
String_t* G_B5_1 = NULL;
SerializationInfo_t950877179 * G_B5_2 = NULL;
{
SerializationInfo_t950877179 * L_0 = ___info0;
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, (String_t*)_stringLiteral79347, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_GetObjectData_m3686008415_RuntimeMethod_var);
}
IL_000e:
{
SerializationInfo_t950877179 * L_2 = ___info0;
int32_t L_3 = (int32_t)__this->get_version_3();
NullCheck((SerializationInfo_t950877179 *)L_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, (int32_t)L_3, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_4 = ___info0;
RuntimeObject* L_5 = (RuntimeObject*)__this->get_comparer_6();
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_4);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral892943380, (RuntimeObject *)L_5, (Type_t *)L_7, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_8 = ___info0;
Int32U5BU5D_t385246372* L_9 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
G_B3_0 = _stringLiteral953796230;
G_B3_1 = L_8;
if (!L_9)
{
G_B4_0 = _stringLiteral953796230;
G_B4_1 = L_8;
goto IL_0052;
}
}
{
Int32U5BU5D_t385246372* L_10 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_10);
G_B5_0 = (((int32_t)((int32_t)(((RuntimeArray *)L_10)->max_length))));
G_B5_1 = G_B3_0;
G_B5_2 = G_B3_1;
goto IL_0053;
}
IL_0052:
{
G_B5_0 = 0;
G_B5_1 = G_B4_0;
G_B5_2 = G_B4_1;
}
IL_0053:
{
NullCheck((SerializationInfo_t950877179 *)G_B5_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)G_B5_2, (String_t*)G_B5_1, (int32_t)G_B5_0, /*hidden argument*/NULL);
Int32U5BU5D_t385246372* L_11 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_11)
{
goto IL_008a;
}
}
{
NullCheck((Dictionary_2_t2650923484 *)__this);
int32_t L_12 = (( int32_t (*) (Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
V_0 = (KeyValuePair_2U5BU5D_t3351136466*)((KeyValuePair_2U5BU5D_t3351136466*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 30), (uint32_t)L_12));
KeyValuePair_2U5BU5D_t3351136466* L_13 = V_0;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, KeyValuePair_2U5BU5D_t3351136466*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2650923484 *)__this, (KeyValuePair_2U5BU5D_t3351136466*)L_13, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
SerializationInfo_t950877179 * L_14 = ___info0;
KeyValuePair_2U5BU5D_t3351136466* L_15 = V_0;
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_16, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_14);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_14, (String_t*)_stringLiteral2947573650, (RuntimeObject *)(RuntimeObject *)L_15, (Type_t *)L_17, /*hidden argument*/NULL);
}
IL_008a:
{
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::FindEntry(TKey)
extern "C" int32_t Dictionary_2_FindEntry_m2930995802_gshared (Dictionary_2_t2650923484 * __this, TypeConvertKey_t285306760 ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_FindEntry_m2930995802_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_FindEntry_m2930995802_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_008d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
TypeConvertKey_t285306760 L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, TypeConvertKey_t285306760 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (TypeConvertKey_t285306760 )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
Int32U5BU5D_t385246372* L_6 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_7 = V_0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_8);
NullCheck(L_6);
int32_t L_9 = ((int32_t)((int32_t)L_7%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length))))));
int32_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = (int32_t)L_10;
goto IL_0089;
}
IL_0042:
{
EntryU5BU5D_t3899865133* L_11 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_12 = V_1;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
int32_t L_14 = V_0;
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
{
goto IL_0077;
}
}
{
RuntimeObject* L_15 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3899865133* L_16 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_17 = V_1;
NullCheck(L_16);
TypeConvertKey_t285306760 L_18 = (TypeConvertKey_t285306760 )((L_16)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_17)))->get_key_2();
TypeConvertKey_t285306760 L_19 = ___key0;
NullCheck((RuntimeObject*)L_15);
bool L_20 = InterfaceFuncInvoker2< bool, TypeConvertKey_t285306760 , TypeConvertKey_t285306760 >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_15, (TypeConvertKey_t285306760 )L_18, (TypeConvertKey_t285306760 )L_19);
if (!L_20)
{
goto IL_0077;
}
}
{
int32_t L_21 = V_1;
return L_21;
}
IL_0077:
{
EntryU5BU5D_t3899865133* L_22 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_23 = V_1;
NullCheck(L_22);
int32_t L_24 = (int32_t)((L_22)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_23)))->get_next_1();
V_1 = (int32_t)L_24;
}
IL_0089:
{
int32_t L_25 = V_1;
if ((((int32_t)L_25) >= ((int32_t)0)))
{
goto IL_0042;
}
}
IL_008d:
{
return (-1);
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::Initialize(System.Int32)
extern "C" void Dictionary_2_Initialize_m614153553_gshared (Dictionary_2_t2650923484 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Initialize_m614153553_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
int32_t L_0 = ___capacity0;
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_GetPrime_m1056954278(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_2)));
V_1 = (int32_t)0;
goto IL_0024;
}
IL_0017:
{
Int32U5BU5D_t385246372* L_3 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_4 = V_1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (int32_t)(-1));
int32_t L_5 = V_1;
V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1));
}
IL_0024:
{
int32_t L_6 = V_1;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
if ((((int32_t)L_6) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length)))))))
{
goto IL_0017;
}
}
{
int32_t L_8 = V_0;
__this->set_entries_1(((EntryU5BU5D_t3899865133*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_8)));
__this->set_freeList_4((-1));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::TryInsert(TKey,TValue,System.Collections.Generic.InsertionBehavior)
extern "C" bool Dictionary_2_TryInsert_m1177424199_gshared (Dictionary_2_t2650923484 * __this, TypeConvertKey_t285306760 ___key0, RuntimeObject * ___value1, uint8_t ___behavior2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_TryInsert_m1177424199_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_TryInsert_m1177424199_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (L_2)
{
goto IL_0022;
}
}
{
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t2650923484 *)__this, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_0022:
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
TypeConvertKey_t285306760 L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, TypeConvertKey_t285306760 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (TypeConvertKey_t285306760 )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_4 = (int32_t)L_11;
goto IL_00e1;
}
IL_0051:
{
EntryU5BU5D_t3899865133* L_12 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_13 = V_4;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_00c9;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3899865133* L_17 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_18 = V_4;
NullCheck(L_17);
TypeConvertKey_t285306760 L_19 = (TypeConvertKey_t285306760 )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
TypeConvertKey_t285306760 L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, TypeConvertKey_t285306760 , TypeConvertKey_t285306760 >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (TypeConvertKey_t285306760 )L_19, (TypeConvertKey_t285306760 )L_20);
if (!L_21)
{
goto IL_00c9;
}
}
{
uint8_t L_22 = ___behavior2;
if ((!(((uint32_t)L_22) == ((uint32_t)1))))
{
goto IL_00ad;
}
}
{
EntryU5BU5D_t3899865133* L_23 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_24 = V_4;
NullCheck(L_23);
RuntimeObject * L_25 = ___value1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_value_3(L_25);
int32_t L_26 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
return (bool)1;
}
IL_00ad:
{
uint8_t L_27 = ___behavior2;
if ((!(((uint32_t)L_27) == ((uint32_t)2))))
{
goto IL_00c7;
}
}
{
TypeConvertKey_t285306760 L_28 = ___key0;
TypeConvertKey_t285306760 L_29 = L_28;
RuntimeObject * L_30 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_29);
String_t* L_31 = SR_Format_m1749913990(NULL /*static, unused*/, (String_t*)_stringLiteral1494472686, (RuntimeObject *)L_30, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_32 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_32, (String_t*)L_31, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_32, NULL, Dictionary_2_TryInsert_m1177424199_RuntimeMethod_var);
}
IL_00c7:
{
return (bool)0;
}
IL_00c9:
{
int32_t L_33 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t3899865133* L_34 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_35 = V_4;
NullCheck(L_34);
int32_t L_36 = (int32_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_next_1();
V_4 = (int32_t)L_36;
}
IL_00e1:
{
int32_t L_37 = V_4;
if ((((int32_t)L_37) >= ((int32_t)0)))
{
goto IL_0051;
}
}
{
int32_t L_38 = (int32_t)__this->get_freeCount_5();
if ((((int32_t)L_38) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t L_39 = (int32_t)__this->get_freeList_4();
V_3 = (int32_t)L_39;
EntryU5BU5D_t3899865133* L_40 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_41 = V_3;
NullCheck(L_40);
int32_t L_42 = (int32_t)((L_40)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_41)))->get_next_1();
__this->set_freeList_4(L_42);
int32_t L_43 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_subtract((int32_t)L_43, (int32_t)1)));
goto IL_0156;
}
IL_0120:
{
int32_t L_44 = (int32_t)__this->get_count_2();
EntryU5BU5D_t3899865133* L_45 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
NullCheck(L_45);
if ((!(((uint32_t)L_44) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_45)->max_length))))))))
{
goto IL_0141;
}
}
{
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36)->methodPointer)((Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36));
int32_t L_46 = V_0;
Int32U5BU5D_t385246372* L_47 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_47);
V_1 = (int32_t)((int32_t)((int32_t)L_46%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_47)->max_length))))));
}
IL_0141:
{
int32_t L_48 = (int32_t)__this->get_count_2();
V_3 = (int32_t)L_48;
int32_t L_49 = (int32_t)__this->get_count_2();
__this->set_count_2(((int32_t)il2cpp_codegen_add((int32_t)L_49, (int32_t)1)));
}
IL_0156:
{
EntryU5BU5D_t3899865133* L_50 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_51 = V_3;
NullCheck(L_50);
int32_t L_52 = V_0;
((L_50)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_51)))->set_hashCode_0(L_52);
EntryU5BU5D_t3899865133* L_53 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_54 = V_3;
NullCheck(L_53);
Int32U5BU5D_t385246372* L_55 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_56 = V_1;
NullCheck(L_55);
int32_t L_57 = L_56;
int32_t L_58 = (L_55)->GetAt(static_cast<il2cpp_array_size_t>(L_57));
((L_53)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_54)))->set_next_1(L_58);
EntryU5BU5D_t3899865133* L_59 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_60 = V_3;
NullCheck(L_59);
TypeConvertKey_t285306760 L_61 = ___key0;
((L_59)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_60)))->set_key_2(L_61);
EntryU5BU5D_t3899865133* L_62 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_63 = V_3;
NullCheck(L_62);
RuntimeObject * L_64 = ___value1;
((L_62)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_63)))->set_value_3(L_64);
Int32U5BU5D_t385246372* L_65 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_66 = V_1;
int32_t L_67 = V_3;
NullCheck(L_65);
(L_65)->SetAt(static_cast<il2cpp_array_size_t>(L_66), (int32_t)L_67);
int32_t L_68 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_68, (int32_t)1)));
int32_t L_69 = V_2;
if ((((int32_t)L_69) <= ((int32_t)((int32_t)100))))
{
goto IL_01ed;
}
}
{
RuntimeObject* L_70 = (RuntimeObject*)__this->get_comparer_6();
if (!((NonRandomizedStringEqualityComparer_t1082005352 *)IsInst((RuntimeObject*)L_70, NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var)))
{
goto IL_01ed;
}
}
{
EqualityComparer_1_t17223025 * L_71 = EqualityComparer_1_get_Default_m2310016383(NULL /*static, unused*/, /*hidden argument*/EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_71, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
EntryU5BU5D_t3899865133* L_72 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
NullCheck(L_72);
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t2650923484 *)__this, (int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_72)->max_length)))), (bool)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
}
IL_01ed:
{
return (bool)1;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::OnDeserialization(System.Object)
extern "C" void Dictionary_2_OnDeserialization_m2463324380_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject * ___sender0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_OnDeserialization_m2463324380_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SerializationInfo_t950877179 * V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
KeyValuePair_2U5BU5D_t3351136466* V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_TryGetValue_m1618998192((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 **)(SerializationInfo_t950877179 **)(&V_0), /*hidden argument*/ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var);
SerializationInfo_t950877179 * L_1 = V_0;
if (L_1)
{
goto IL_0012;
}
}
{
return;
}
IL_0012:
{
SerializationInfo_t950877179 * L_2 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_2);
int32_t L_3 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, /*hidden argument*/NULL);
V_1 = (int32_t)L_3;
SerializationInfo_t950877179 * L_4 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_4);
int32_t L_5 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral953796230, /*hidden argument*/NULL);
V_2 = (int32_t)L_5;
SerializationInfo_t950877179 * L_6 = V_0;
RuntimeTypeHandle_t3027515415 L_7 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_8 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_7, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_6);
RuntimeObject * L_9 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_6, (String_t*)_stringLiteral892943380, (Type_t *)L_8, /*hidden argument*/NULL);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_9, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
int32_t L_10 = V_2;
if (!L_10)
{
goto IL_010c;
}
}
{
int32_t L_11 = V_2;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_11)));
V_4 = (int32_t)0;
goto IL_0071;
}
IL_0061:
{
Int32U5BU5D_t385246372* L_12 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_13 = V_4;
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)(-1));
int32_t L_14 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0071:
{
int32_t L_15 = V_4;
Int32U5BU5D_t385246372* L_16 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0061;
}
}
{
int32_t L_17 = V_2;
__this->set_entries_1(((EntryU5BU5D_t3899865133*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_17)));
__this->set_freeList_4((-1));
SerializationInfo_t950877179 * L_18 = V_0;
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_19, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_18);
RuntimeObject * L_21 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_18, (String_t*)_stringLiteral2947573650, (Type_t *)L_20, /*hidden argument*/NULL);
V_3 = (KeyValuePair_2U5BU5D_t3351136466*)((KeyValuePair_2U5BU5D_t3351136466*)Castclass((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t3351136466* L_22 = V_3;
if (L_22)
{
goto IL_00b9;
}
}
{
SerializationException_t3941511869 * L_23 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_23, (String_t*)_stringLiteral998597917, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_23, NULL, Dictionary_2_OnDeserialization_m2463324380_RuntimeMethod_var);
}
IL_00b9:
{
V_5 = (int32_t)0;
goto IL_0103;
}
IL_00be:
{
KeyValuePair_2U5BU5D_t3351136466* L_24 = V_3;
int32_t L_25 = V_5;
NullCheck(L_24);
TypeConvertKey_t285306760 L_26 = KeyValuePair_2_get_Key_m2096859168((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
goto IL_00dd;
}
{
SerializationException_t3941511869 * L_27 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_27, (String_t*)_stringLiteral3616747365, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_27, NULL, Dictionary_2_OnDeserialization_m2463324380_RuntimeMethod_var);
}
IL_00dd:
{
KeyValuePair_2U5BU5D_t3351136466* L_28 = V_3;
int32_t L_29 = V_5;
NullCheck(L_28);
TypeConvertKey_t285306760 L_30 = KeyValuePair_2_get_Key_m2096859168((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
KeyValuePair_2U5BU5D_t3351136466* L_31 = V_3;
int32_t L_32 = V_5;
NullCheck(L_31);
RuntimeObject * L_33 = KeyValuePair_2_get_Value_m2171951189((KeyValuePair_2_t753628355 *)(KeyValuePair_2_t753628355 *)((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_30, (RuntimeObject *)L_33, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
int32_t L_34 = V_5;
V_5 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_34, (int32_t)1));
}
IL_0103:
{
int32_t L_35 = V_5;
KeyValuePair_2U5BU5D_t3351136466* L_36 = V_3;
NullCheck(L_36);
if ((((int32_t)L_35) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_36)->max_length)))))))
{
goto IL_00be;
}
}
{
goto IL_0113;
}
IL_010c:
{
__this->set_buckets_0((Int32U5BU5D_t385246372*)NULL);
}
IL_0113:
{
int32_t L_37 = V_1;
__this->set_version_3(L_37);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_38 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_38);
ConditionalWeakTable_2_Remove_m2013031576((ConditionalWeakTable_2_t1452810305 *)L_38, (RuntimeObject *)__this, /*hidden argument*/ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::Resize()
extern "C" void Dictionary_2_Resize_m1874415163_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m1874415163_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = (int32_t)__this->get_count_2();
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_ExpandPrime_m2180508331(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t2650923484 *)__this, (int32_t)L_1, (bool)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::Resize(System.Int32,System.Boolean)
extern "C" void Dictionary_2_Resize_m1123117157_gshared (Dictionary_2_t2650923484 * __this, int32_t ___newSize0, bool ___forceNewHashCodes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m1123117157_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Int32U5BU5D_t385246372* V_0 = NULL;
EntryU5BU5D_t3899865133* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t L_0 = ___newSize0;
V_0 = (Int32U5BU5D_t385246372*)((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_0));
V_2 = (int32_t)0;
goto IL_0013;
}
IL_000b:
{
Int32U5BU5D_t385246372* L_1 = V_0;
int32_t L_2 = V_2;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_0013:
{
int32_t L_4 = V_2;
Int32U5BU5D_t385246372* L_5 = V_0;
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000b;
}
}
{
int32_t L_6 = ___newSize0;
V_1 = (EntryU5BU5D_t3899865133*)((EntryU5BU5D_t3899865133*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_6));
EntryU5BU5D_t3899865133* L_7 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
EntryU5BU5D_t3899865133* L_8 = V_1;
int32_t L_9 = (int32_t)__this->get_count_2();
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_7, (int32_t)0, (RuntimeArray *)(RuntimeArray *)L_8, (int32_t)0, (int32_t)L_9, /*hidden argument*/NULL);
bool L_10 = ___forceNewHashCodes1;
if (!L_10)
{
goto IL_0080;
}
}
{
V_3 = (int32_t)0;
goto IL_0077;
}
IL_003b:
{
EntryU5BU5D_t3899865133* L_11 = V_1;
int32_t L_12 = V_3;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) == ((int32_t)(-1))))
{
goto IL_0073;
}
}
{
EntryU5BU5D_t3899865133* L_14 = V_1;
int32_t L_15 = V_3;
NullCheck(L_14);
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3899865133* L_17 = V_1;
int32_t L_18 = V_3;
NullCheck(L_17);
TypeConvertKey_t285306760 L_19 = (TypeConvertKey_t285306760 )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
NullCheck((RuntimeObject*)L_16);
int32_t L_20 = InterfaceFuncInvoker1< int32_t, TypeConvertKey_t285306760 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (TypeConvertKey_t285306760 )L_19);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->set_hashCode_0(((int32_t)((int32_t)L_20&(int32_t)((int32_t)2147483647LL))));
}
IL_0073:
{
int32_t L_21 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1));
}
IL_0077:
{
int32_t L_22 = V_3;
int32_t L_23 = (int32_t)__this->get_count_2();
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_003b;
}
}
IL_0080:
{
V_4 = (int32_t)0;
goto IL_00c3;
}
IL_0085:
{
EntryU5BU5D_t3899865133* L_24 = V_1;
int32_t L_25 = V_4;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_hashCode_0();
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00bd;
}
}
{
EntryU5BU5D_t3899865133* L_27 = V_1;
int32_t L_28 = V_4;
NullCheck(L_27);
int32_t L_29 = (int32_t)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->get_hashCode_0();
int32_t L_30 = ___newSize0;
V_5 = (int32_t)((int32_t)((int32_t)L_29%(int32_t)L_30));
EntryU5BU5D_t3899865133* L_31 = V_1;
int32_t L_32 = V_4;
NullCheck(L_31);
Int32U5BU5D_t385246372* L_33 = V_0;
int32_t L_34 = V_5;
NullCheck(L_33);
int32_t L_35 = L_34;
int32_t L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32)))->set_next_1(L_36);
Int32U5BU5D_t385246372* L_37 = V_0;
int32_t L_38 = V_5;
int32_t L_39 = V_4;
NullCheck(L_37);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(L_38), (int32_t)L_39);
}
IL_00bd:
{
int32_t L_40 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
}
IL_00c3:
{
int32_t L_41 = V_4;
int32_t L_42 = (int32_t)__this->get_count_2();
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_0085;
}
}
{
Int32U5BU5D_t385246372* L_43 = V_0;
__this->set_buckets_0(L_43);
EntryU5BU5D_t3899865133* L_44 = V_1;
__this->set_entries_1(L_44);
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::Remove(TKey)
extern "C" bool Dictionary_2_Remove_m1389311379_gshared (Dictionary_2_t2650923484 * __this, TypeConvertKey_t285306760 ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Remove_m1389311379_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_Remove_m1389311379_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_015d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
TypeConvertKey_t285306760 L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, TypeConvertKey_t285306760 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (TypeConvertKey_t285306760 )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)(-1);
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_3 = (int32_t)L_11;
goto IL_0156;
}
IL_004c:
{
EntryU5BU5D_t3899865133* L_12 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_13 = V_3;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0142;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3899865133* L_17 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_18 = V_3;
NullCheck(L_17);
TypeConvertKey_t285306760 L_19 = (TypeConvertKey_t285306760 )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
TypeConvertKey_t285306760 L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, TypeConvertKey_t285306760 , TypeConvertKey_t285306760 >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (TypeConvertKey_t285306760 )L_19, (TypeConvertKey_t285306760 )L_20);
if (!L_21)
{
goto IL_0142;
}
}
{
int32_t L_22 = V_2;
if ((((int32_t)L_22) >= ((int32_t)0)))
{
goto IL_00a4;
}
}
{
Int32U5BU5D_t385246372* L_23 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_24 = V_1;
EntryU5BU5D_t3899865133* L_25 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_26 = V_3;
NullCheck(L_25);
int32_t L_27 = (int32_t)((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->get_next_1();
NullCheck(L_23);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(L_24), (int32_t)L_27);
goto IL_00c6;
}
IL_00a4:
{
EntryU5BU5D_t3899865133* L_28 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_29 = V_2;
NullCheck(L_28);
EntryU5BU5D_t3899865133* L_30 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_31 = V_3;
NullCheck(L_30);
int32_t L_32 = (int32_t)((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->get_next_1();
((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->set_next_1(L_32);
}
IL_00c6:
{
EntryU5BU5D_t3899865133* L_33 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_34 = V_3;
NullCheck(L_33);
((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->set_hashCode_0((-1));
EntryU5BU5D_t3899865133* L_35 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_36 = V_3;
NullCheck(L_35);
int32_t L_37 = (int32_t)__this->get_freeList_4();
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->set_next_1(L_37);
EntryU5BU5D_t3899865133* L_38 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
TypeConvertKey_t285306760 * L_40 = (TypeConvertKey_t285306760 *)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_address_of_key_2();
il2cpp_codegen_initobj(L_40, sizeof(TypeConvertKey_t285306760 ));
EntryU5BU5D_t3899865133* L_41 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_42 = V_3;
NullCheck(L_41);
RuntimeObject ** L_43 = (RuntimeObject **)((L_41)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_42)))->get_address_of_value_3();
il2cpp_codegen_initobj(L_43, sizeof(RuntimeObject *));
int32_t L_44 = V_3;
__this->set_freeList_4(L_44);
int32_t L_45 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1)));
int32_t L_46 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1)));
return (bool)1;
}
IL_0142:
{
int32_t L_47 = V_3;
V_2 = (int32_t)L_47;
EntryU5BU5D_t3899865133* L_48 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = (int32_t)((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->get_next_1();
V_3 = (int32_t)L_50;
}
IL_0156:
{
int32_t L_51 = V_3;
if ((((int32_t)L_51) >= ((int32_t)0)))
{
goto IL_004c;
}
}
IL_015d:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::TryGetValue(TKey,TValue&)
extern "C" bool Dictionary_2_TryGetValue_m4285418586_gshared (Dictionary_2_t2650923484 * __this, TypeConvertKey_t285306760 ___key0, RuntimeObject ** ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
TypeConvertKey_t285306760 L_0 = ___key0;
NullCheck((Dictionary_2_t2650923484 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0025;
}
}
{
RuntimeObject ** L_3 = ___value1;
EntryU5BU5D_t3899865133* L_4 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
*(RuntimeObject **)L_3 = L_6;
Il2CppCodeGenWriteBarrier((RuntimeObject **)L_3, L_6);
return (bool)1;
}
IL_0025:
{
RuntimeObject ** L_7 = ___value1;
il2cpp_codegen_initobj(L_7, sizeof(RuntimeObject *));
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::TryAdd(TKey,TValue)
extern "C" bool Dictionary_2_TryAdd_m2148429320_gshared (Dictionary_2_t2650923484 * __this, TypeConvertKey_t285306760 ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
TypeConvertKey_t285306760 L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t2650923484 *)__this);
bool L_2 = (( bool (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_0, (RuntimeObject *)L_1, (uint8_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m312811630_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m2985093364_gshared (Dictionary_2_t2650923484 * __this, KeyValuePair_2U5BU5D_t3351136466* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
{
KeyValuePair_2U5BU5D_t3351136466* L_0 = ___array0;
int32_t L_1 = ___index1;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, KeyValuePair_2U5BU5D_t3351136466*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2650923484 *)__this, (KeyValuePair_2U5BU5D_t3351136466*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32)
extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_gshared (Dictionary_2_t2650923484 * __this, RuntimeArray * ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t3351136466* V_0 = NULL;
DictionaryEntryU5BU5D_t4217117203* V_1 = NULL;
EntryU5BU5D_t3899865133* V_2 = NULL;
int32_t V_3 = 0;
ObjectU5BU5D_t2843939325* V_4 = NULL;
int32_t V_5 = 0;
EntryU5BU5D_t3899865133* V_6 = NULL;
int32_t V_7 = 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);
{
RuntimeArray * L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_RuntimeMethod_var);
}
IL_000e:
{
RuntimeArray * L_2 = ___array0;
NullCheck((RuntimeArray *)L_2);
int32_t L_3 = Array_get_Rank_m3448755881((RuntimeArray *)L_2, /*hidden argument*/NULL);
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0027;
}
}
{
ArgumentException_t132251570 * L_4 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_4, (String_t*)_stringLiteral915403387, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_RuntimeMethod_var);
}
IL_0027:
{
RuntimeArray * L_5 = ___array0;
NullCheck((RuntimeArray *)L_5);
int32_t L_6 = Array_GetLowerBound_m2045984623((RuntimeArray *)L_5, (int32_t)0, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0040;
}
}
{
ArgumentException_t132251570 * L_7 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_7, (String_t*)_stringLiteral2590862907, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_RuntimeMethod_var);
}
IL_0040:
{
int32_t L_8 = ___index1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_004d;
}
}
{
int32_t L_9 = ___index1;
RuntimeArray * L_10 = ___array0;
NullCheck((RuntimeArray *)L_10);
int32_t L_11 = Array_get_Length_m21610649((RuntimeArray *)L_10, /*hidden argument*/NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0063;
}
}
IL_004d:
{
int32_t L_12 = ___index1;
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_13);
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_15, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_14, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_RuntimeMethod_var);
}
IL_0063:
{
RuntimeArray * L_16 = ___array0;
NullCheck((RuntimeArray *)L_16);
int32_t L_17 = Array_get_Length_m21610649((RuntimeArray *)L_16, /*hidden argument*/NULL);
int32_t L_18 = ___index1;
NullCheck((Dictionary_2_t2650923484 *)__this);
int32_t L_19 = (( int32_t (*) (Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)L_18))) >= ((int32_t)L_19)))
{
goto IL_007e;
}
}
{
ArgumentException_t132251570 * L_20 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_20, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_20, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_RuntimeMethod_var);
}
IL_007e:
{
RuntimeArray * L_21 = ___array0;
V_0 = (KeyValuePair_2U5BU5D_t3351136466*)((KeyValuePair_2U5BU5D_t3351136466*)IsInst((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t3351136466* L_22 = V_0;
if (!L_22)
{
goto IL_0091;
}
}
{
KeyValuePair_2U5BU5D_t3351136466* L_23 = V_0;
int32_t L_24 = ___index1;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, KeyValuePair_2U5BU5D_t3351136466*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2650923484 *)__this, (KeyValuePair_2U5BU5D_t3351136466*)L_23, (int32_t)L_24, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
IL_0091:
{
RuntimeArray * L_25 = ___array0;
if (!((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_25, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var)))
{
goto IL_00fb;
}
}
{
RuntimeArray * L_26 = ___array0;
V_1 = (DictionaryEntryU5BU5D_t4217117203*)((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_26, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var));
EntryU5BU5D_t3899865133* L_27 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
V_2 = (EntryU5BU5D_t3899865133*)L_27;
V_3 = (int32_t)0;
goto IL_00f1;
}
IL_00ab:
{
EntryU5BU5D_t3899865133* L_28 = V_2;
int32_t L_29 = V_3;
NullCheck(L_28);
int32_t L_30 = (int32_t)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->get_hashCode_0();
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_00ed;
}
}
{
DictionaryEntryU5BU5D_t4217117203* L_31 = V_1;
int32_t L_32 = ___index1;
int32_t L_33 = (int32_t)L_32;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t3899865133* L_34 = V_2;
int32_t L_35 = V_3;
NullCheck(L_34);
TypeConvertKey_t285306760 L_36 = (TypeConvertKey_t285306760 )((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_key_2();
TypeConvertKey_t285306760 L_37 = L_36;
RuntimeObject * L_38 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_37);
EntryU5BU5D_t3899865133* L_39 = V_2;
int32_t L_40 = V_3;
NullCheck(L_39);
RuntimeObject * L_41 = (RuntimeObject *)((L_39)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_40)))->get_value_3();
DictionaryEntry_t3123975638 L_42;
memset(&L_42, 0, sizeof(L_42));
DictionaryEntry__ctor_m2585376310((&L_42), (RuntimeObject *)L_38, (RuntimeObject *)L_41, /*hidden argument*/NULL);
NullCheck(L_31);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (DictionaryEntry_t3123975638 )L_42);
}
IL_00ed:
{
int32_t L_43 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_43, (int32_t)1));
}
IL_00f1:
{
int32_t L_44 = V_3;
int32_t L_45 = (int32_t)__this->get_count_2();
if ((((int32_t)L_44) < ((int32_t)L_45)))
{
goto IL_00ab;
}
}
{
return;
}
IL_00fb:
{
RuntimeArray * L_46 = ___array0;
V_4 = (ObjectU5BU5D_t2843939325*)((ObjectU5BU5D_t2843939325*)IsInst((RuntimeObject*)L_46, ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var));
ObjectU5BU5D_t2843939325* L_47 = V_4;
if (L_47)
{
goto IL_0117;
}
}
{
ArgumentException_t132251570 * L_48 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_48, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_48, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_RuntimeMethod_var);
}
IL_0117:
{
}
IL_0118:
try
{ // begin try (depth: 1)
{
int32_t L_49 = (int32_t)__this->get_count_2();
V_5 = (int32_t)L_49;
EntryU5BU5D_t3899865133* L_50 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
V_6 = (EntryU5BU5D_t3899865133*)L_50;
V_7 = (int32_t)0;
goto IL_0173;
}
IL_012d:
{
EntryU5BU5D_t3899865133* L_51 = V_6;
int32_t L_52 = V_7;
NullCheck(L_51);
int32_t L_53 = (int32_t)((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->get_hashCode_0();
if ((((int32_t)L_53) < ((int32_t)0)))
{
goto IL_016d;
}
}
IL_013e:
{
ObjectU5BU5D_t2843939325* L_54 = V_4;
int32_t L_55 = ___index1;
int32_t L_56 = (int32_t)L_55;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_56, (int32_t)1));
EntryU5BU5D_t3899865133* L_57 = V_6;
int32_t L_58 = V_7;
NullCheck(L_57);
TypeConvertKey_t285306760 L_59 = (TypeConvertKey_t285306760 )((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->get_key_2();
EntryU5BU5D_t3899865133* L_60 = V_6;
int32_t L_61 = V_7;
NullCheck(L_60);
RuntimeObject * L_62 = (RuntimeObject *)((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->get_value_3();
KeyValuePair_2_t753628355 L_63;
memset(&L_63, 0, sizeof(L_63));
KeyValuePair_2__ctor_m2870587947((&L_63), (TypeConvertKey_t285306760 )L_59, (RuntimeObject *)L_62, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
KeyValuePair_2_t753628355 L_64 = L_63;
RuntimeObject * L_65 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 25), &L_64);
NullCheck(L_54);
ArrayElementTypeCheck (L_54, L_65);
(L_54)->SetAt(static_cast<il2cpp_array_size_t>(L_56), (RuntimeObject *)L_65);
}
IL_016d:
{
int32_t L_66 = V_7;
V_7 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1));
}
IL_0173:
{
int32_t L_67 = V_7;
int32_t L_68 = V_5;
if ((((int32_t)L_67) < ((int32_t)L_68)))
{
goto IL_012d;
}
}
IL_0179:
{
goto IL_018c;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_017b;
throw e;
}
CATCH_017b:
{ // begin catch(System.ArrayTypeMismatchException)
ArgumentException_t132251570 * L_69 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_69, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_69, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m4263036386_RuntimeMethod_var);
} // end catch (depth: 1)
IL_018c:
{
return;
}
}
// System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IEnumerable.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m1787929100_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
Enumerator_t310138963 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2001013060((&L_0), (Dictionary_2_t2650923484 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t310138963 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.ICollection.get_IsSynchronized()
extern "C" bool Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m23237771_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.ICollection.get_SyncRoot()
extern "C" RuntimeObject * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3792152094_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3792152094_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get__syncRoot_9();
if (L_0)
{
goto IL_001a;
}
}
{
RuntimeObject ** L_1 = (RuntimeObject **)__this->get_address_of__syncRoot_9();
RuntimeObject * L_2 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_2, /*hidden argument*/NULL);
InterlockedCompareExchangeImpl<RuntimeObject *>((RuntimeObject **)(RuntimeObject **)L_1, (RuntimeObject *)L_2, (RuntimeObject *)NULL);
}
IL_001a:
{
RuntimeObject * L_3 = (RuntimeObject *)__this->get__syncRoot_9();
return L_3;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IDictionary.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_IDictionary_get_IsReadOnly_m2933918497_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IDictionary.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Keys_m4035692709_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2650923484 *)__this);
KeyCollection_t2840598955 * L_0 = (( KeyCollection_t2840598955 * (*) (Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39)->methodPointer)((Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39));
return L_0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IDictionary.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Values_m2160671096_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2650923484 *)__this);
ValueCollection_t72000506 * L_0 = (( ValueCollection_t72000506 * (*) (Dictionary_2_t2650923484 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40)->methodPointer)((Dictionary_2_t2650923484 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40));
return L_0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IDictionary.get_Item(System.Object)
extern "C" RuntimeObject * Dictionary_2_System_Collections_IDictionary_get_Item_m2492741217_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0030;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2650923484 *)__this);
int32_t L_3 = (( int32_t (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )((*(TypeConvertKey_t285306760 *)((TypeConvertKey_t285306760 *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_3;
int32_t L_4 = V_0;
if ((((int32_t)L_4) < ((int32_t)0)))
{
goto IL_0030;
}
}
{
EntryU5BU5D_t3899865133* L_5 = (EntryU5BU5D_t3899865133*)__this->get_entries_1();
int32_t L_6 = V_0;
NullCheck(L_5);
RuntimeObject * L_7 = (RuntimeObject *)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->get_value_3();
return L_7;
}
IL_0030:
{
return NULL;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IDictionary.set_Item(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m3807605749_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_set_Item_m3807605749_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
TypeConvertKey_t285306760 V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m3807605749_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m3807605749_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (TypeConvertKey_t285306760 )((*(TypeConvertKey_t285306760 *)((TypeConvertKey_t285306760 *)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
TypeConvertKey_t285306760 L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m3807605749_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m3807605749_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::IsCompatibleKey(System.Object)
extern "C" bool Dictionary_2_IsCompatibleKey_m4017050174_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_IsCompatibleKey_m4017050174_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_IsCompatibleKey_m4017050174_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___key0;
return (bool)((!(((RuntimeObject*)(RuntimeObject *)((RuntimeObject *)IsInst((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 33)))) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IDictionary.Add(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m2582633052_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_Add_m2582633052_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
TypeConvertKey_t285306760 V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_Add_m2582633052_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_Add_m2582633052_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (TypeConvertKey_t285306760 )((*(TypeConvertKey_t285306760 *)((TypeConvertKey_t285306760 *)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
TypeConvertKey_t285306760 L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( void (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_Add_m2582633052_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_Add_m2582633052_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IDictionary.Contains(System.Object)
extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m554213784_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2650923484 *)__this);
bool L_3 = (( bool (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )((*(TypeConvertKey_t285306760 *)((TypeConvertKey_t285306760 *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46));
return L_3;
}
IL_0015:
{
return (bool)0;
}
}
// System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IDictionary.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_GetEnumerator_m2226654523_gshared (Dictionary_2_t2650923484 * __this, const RuntimeMethod* method)
{
{
Enumerator_t310138963 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2001013060((&L_0), (Dictionary_2_t2650923484 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t310138963 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<Newtonsoft.Json.Utilities.ConvertUtils/TypeConvertKey,System.Object>::System.Collections.IDictionary.Remove(System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m2343994906_gshared (Dictionary_2_t2650923484 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2650923484 *)__this);
(( bool (*) (Dictionary_2_t2650923484 *, TypeConvertKey_t285306760 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t2650923484 *)__this, (TypeConvertKey_t285306760 )((*(TypeConvertKey_t285306760 *)((TypeConvertKey_t285306760 *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
}
IL_0015:
{
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 System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::.ctor()
extern "C" void Dictionary_2__ctor_m2153212695_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2129123697 *)__this, (int32_t)0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::.ctor(System.Int32)
extern "C" void Dictionary_2__ctor_m3736347341_gshared (Dictionary_2_t2129123697 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___capacity0;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2129123697 *)__this, (int32_t)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m661868248_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject* ___comparer0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___comparer0;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2129123697 *)__this, (int32_t)0, (RuntimeObject*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::.ctor(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m3433698816_gshared (Dictionary_2_t2129123697 * __this, int32_t ___capacity0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m3433698816_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* G_B6_0 = NULL;
Dictionary_2_t2129123697 * G_B6_1 = NULL;
RuntimeObject* G_B5_0 = NULL;
Dictionary_2_t2129123697 * G_B5_1 = NULL;
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
int32_t L_0 = ___capacity0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0020;
}
}
{
int32_t L_1 = ___capacity0;
int32_t L_2 = L_1;
RuntimeObject * L_3 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_2);
ArgumentOutOfRangeException_t777629997 * L_4 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_4, (String_t*)_stringLiteral3623012086, (RuntimeObject *)L_3, (String_t*)_stringLiteral2892689725, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2__ctor_m3433698816_RuntimeMethod_var);
}
IL_0020:
{
int32_t L_5 = ___capacity0;
if ((((int32_t)L_5) <= ((int32_t)0)))
{
goto IL_002b;
}
}
{
int32_t L_6 = ___capacity0;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t2129123697 *)__this, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_002b:
{
RuntimeObject* L_7 = ___comparer1;
RuntimeObject* L_8 = (RuntimeObject*)L_7;
G_B5_0 = L_8;
G_B5_1 = ((Dictionary_2_t2129123697 *)(__this));
if (L_8)
{
G_B6_0 = L_8;
G_B6_1 = ((Dictionary_2_t2129123697 *)(__this));
goto IL_0036;
}
}
{
EqualityComparer_1_t1363305223 * L_9 = (( EqualityComparer_1_t1363305223 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2));
G_B6_0 = ((RuntimeObject*)(L_9));
G_B6_1 = ((Dictionary_2_t2129123697 *)(G_B5_1));
}
IL_0036:
{
NullCheck(G_B6_1);
G_B6_1->set_comparer_6(G_B6_0);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>)
extern "C" void Dictionary_2__ctor_m2250330295_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___dictionary0;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4)->methodPointer)((Dictionary_2_t2129123697 *)__this, (RuntimeObject*)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m1031805020_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject* ___dictionary0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m1031805020_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t3881586340* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
KeyValuePair_2_t231828568 V_4;
memset(&V_4, 0, sizeof(V_4));
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);
Dictionary_2_t2129123697 * G_B2_0 = NULL;
Dictionary_2_t2129123697 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
Dictionary_2_t2129123697 * G_B3_1 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
G_B1_0 = ((Dictionary_2_t2129123697 *)(__this));
if (L_0)
{
G_B2_0 = ((Dictionary_2_t2129123697 *)(__this));
goto IL_0007;
}
}
{
G_B3_0 = 0;
G_B3_1 = ((Dictionary_2_t2129123697 *)(G_B1_0));
goto IL_000d;
}
IL_0007:
{
RuntimeObject* L_1 = ___dictionary0;
NullCheck((RuntimeObject*)L_1);
int32_t L_2 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>>::get_Count() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 5), (RuntimeObject*)L_1);
G_B3_0 = L_2;
G_B3_1 = ((Dictionary_2_t2129123697 *)(G_B2_0));
}
IL_000d:
{
RuntimeObject* L_3 = ___comparer1;
NullCheck((Dictionary_2_t2129123697 *)G_B3_1);
(( void (*) (Dictionary_2_t2129123697 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2129123697 *)G_B3_1, (int32_t)G_B3_0, (RuntimeObject*)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
RuntimeObject* L_4 = ___dictionary0;
if (L_4)
{
goto IL_0021;
}
}
{
ArgumentNullException_t1615371798 * L_5 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_5, (String_t*)_stringLiteral2957729587, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, Dictionary_2__ctor_m1031805020_RuntimeMethod_var);
}
IL_0021:
{
RuntimeObject* L_6 = ___dictionary0;
NullCheck((RuntimeObject *)L_6);
Type_t * L_7 = Object_GetType_m88164663((RuntimeObject *)L_6, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_8 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 6)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_9 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_8, /*hidden argument*/NULL);
bool L_10 = Type_op_Equality_m2683486427(NULL /*static, unused*/, (Type_t *)L_7, (Type_t *)L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0085;
}
}
{
RuntimeObject* L_11 = ___dictionary0;
Dictionary_2_t2129123697 * L_12 = (Dictionary_2_t2129123697 *)((Dictionary_2_t2129123697 *)Castclass((RuntimeObject*)L_11, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 7)));
NullCheck(L_12);
int32_t L_13 = (int32_t)L_12->get_count_2();
V_0 = (int32_t)L_13;
NullCheck(L_12);
EntryU5BU5D_t3881586340* L_14 = (EntryU5BU5D_t3881586340*)L_12->get_entries_1();
V_1 = (EntryU5BU5D_t3881586340*)L_14;
V_2 = (int32_t)0;
goto IL_0080;
}
IL_004f:
{
EntryU5BU5D_t3881586340* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007c;
}
}
{
EntryU5BU5D_t3881586340* L_18 = V_1;
int32_t L_19 = V_2;
NullCheck(L_18);
Guid_t L_20 = (Guid_t )((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->get_key_2();
EntryU5BU5D_t3881586340* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
RuntimeObject * L_23 = (RuntimeObject *)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_value_3();
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, Guid_t , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_20, (RuntimeObject *)L_23, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_007c:
{
int32_t L_24 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0080:
{
int32_t L_25 = V_2;
int32_t L_26 = V_0;
if ((((int32_t)L_25) < ((int32_t)L_26)))
{
goto IL_004f;
}
}
{
return;
}
IL_0085:
{
RuntimeObject* L_27 = ___dictionary0;
NullCheck((RuntimeObject*)L_27);
RuntimeObject* L_28 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 9), (RuntimeObject*)L_27);
V_3 = (RuntimeObject*)L_28;
}
IL_008c:
try
{ // begin try (depth: 1)
{
goto IL_00aa;
}
IL_008e:
{
RuntimeObject* L_29 = V_3;
NullCheck((RuntimeObject*)L_29);
KeyValuePair_2_t231828568 L_30 = InterfaceFuncInvoker0< KeyValuePair_2_t231828568 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Guid,System.Object>>::get_Current() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 10), (RuntimeObject*)L_29);
V_4 = (KeyValuePair_2_t231828568 )L_30;
Guid_t L_31 = KeyValuePair_2_get_Key_m4294704491((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_32 = KeyValuePair_2_get_Value_m2666064688((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, Guid_t , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_31, (RuntimeObject *)L_32, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_00aa:
{
RuntimeObject* L_33 = V_3;
NullCheck((RuntimeObject*)L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, (RuntimeObject*)L_33);
if (L_34)
{
goto IL_008e;
}
}
IL_00b2:
{
IL2CPP_LEAVE(0xBE, FINALLY_00b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b4;
}
FINALLY_00b4:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_3;
if (!L_35)
{
goto IL_00bd;
}
}
IL_00b7:
{
RuntimeObject* L_36 = V_3;
NullCheck((RuntimeObject*)L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, (RuntimeObject*)L_36);
}
IL_00bd:
{
IL2CPP_END_FINALLY(180)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(180)
{
IL2CPP_JUMP_TBL(0xBE, IL_00be)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00be:
{
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2__ctor_m2547391498_gshared (Dictionary_2_t2129123697 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m2547391498_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_1 = ___info0;
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_Add_m4098691448((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 *)L_1, /*hidden argument*/ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var);
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::get_Count()
extern "C" int32_t Dictionary_2_get_Count_m4199835103_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_count_2();
int32_t L_1 = (int32_t)__this->get_freeCount_5();
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1));
}
}
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::get_Keys()
extern "C" KeyCollection_t2318799168 * Dictionary_2_get_Keys_m4021918016_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2318799168 * L_0 = (KeyCollection_t2318799168 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2318799168 * L_1 = (KeyCollection_t2318799168 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2318799168 *, Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2318799168 * L_2 = (KeyCollection_t2318799168 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m448371632_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2318799168 * L_0 = (KeyCollection_t2318799168 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2318799168 * L_1 = (KeyCollection_t2318799168 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2318799168 *, Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2318799168 * L_2 = (KeyCollection_t2318799168 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TKey> System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Keys_m1027662428_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2318799168 * L_0 = (KeyCollection_t2318799168 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2318799168 * L_1 = (KeyCollection_t2318799168 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2318799168 *, Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2318799168 * L_2 = (KeyCollection_t2318799168 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::get_Values()
extern "C" ValueCollection_t3845168015 * Dictionary_2_get_Values_m404166501_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3845168015 * L_0 = (ValueCollection_t3845168015 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3845168015 * L_1 = (ValueCollection_t3845168015 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3845168015 *, Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3845168015 * L_2 = (ValueCollection_t3845168015 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m285624851_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3845168015 * L_0 = (ValueCollection_t3845168015 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3845168015 * L_1 = (ValueCollection_t3845168015 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3845168015 *, Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3845168015 * L_2 = (ValueCollection_t3845168015 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TValue> System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Values_m3986182146_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3845168015 * L_0 = (ValueCollection_t3845168015 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3845168015 * L_1 = (ValueCollection_t3845168015 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3845168015 *, Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3845168015 * L_2 = (ValueCollection_t3845168015 *)__this->get_values_8();
return L_2;
}
}
// TValue System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::get_Item(TKey)
extern "C" RuntimeObject * Dictionary_2_get_Item_m3891720194_gshared (Dictionary_2_t2129123697 * __this, Guid_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_get_Item_m3891720194_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
Guid_t L_0 = ___key0;
NullCheck((Dictionary_2_t2129123697 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2129123697 *, Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_001e;
}
}
{
EntryU5BU5D_t3881586340* L_3 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_4 = V_0;
NullCheck(L_3);
RuntimeObject * L_5 = (RuntimeObject *)((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_4)))->get_value_3();
return L_5;
}
IL_001e:
{
KeyNotFoundException_t2292407383 * L_6 = (KeyNotFoundException_t2292407383 *)il2cpp_codegen_object_new(KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var);
KeyNotFoundException__ctor_m541499307(L_6, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, Dictionary_2_get_Item_m3891720194_RuntimeMethod_var);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::set_Item(TKey,TValue)
extern "C" void Dictionary_2_set_Item_m3563760594_gshared (Dictionary_2_t2129123697 * __this, Guid_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
Guid_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( bool (*) (Dictionary_2_t2129123697 *, Guid_t , RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_0, (RuntimeObject *)L_1, (uint8_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::Add(TKey,TValue)
extern "C" void Dictionary_2_Add_m1473249657_gshared (Dictionary_2_t2129123697 * __this, Guid_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
Guid_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( bool (*) (Dictionary_2_t2129123697 *, Guid_t , RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_0, (RuntimeObject *)L_1, (uint8_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m877866225_gshared (Dictionary_2_t2129123697 * __this, KeyValuePair_2_t231828568 ___keyValuePair0, const RuntimeMethod* method)
{
{
Guid_t L_0 = KeyValuePair_2_get_Key_m4294704491((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_1 = KeyValuePair_2_get_Value_m2666064688((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, Guid_t , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_0, (RuntimeObject *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m3370897486_gshared (Dictionary_2_t2129123697 * __this, KeyValuePair_2_t231828568 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
Guid_t L_0 = KeyValuePair_2_get_Key_m4294704491((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2129123697 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2129123697 *, Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0038;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t3881586340* L_4 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m2666064688((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0038;
}
}
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m290581921_gshared (Dictionary_2_t2129123697 * __this, KeyValuePair_2_t231828568 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
Guid_t L_0 = KeyValuePair_2_get_Key_m4294704491((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2129123697 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2129123697 *, Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0046;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t3881586340* L_4 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m2666064688((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0046;
}
}
{
Guid_t L_9 = KeyValuePair_2_get_Key_m4294704491((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2129123697 *)__this);
(( bool (*) (Dictionary_2_t2129123697 *, Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
return (bool)1;
}
IL_0046:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::Clear()
extern "C" void Dictionary_2_Clear_m745294932_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (int32_t)__this->get_count_2();
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_005a;
}
}
{
V_0 = (int32_t)0;
goto IL_001a;
}
IL_000d:
{
Int32U5BU5D_t385246372* L_1 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_2 = V_0;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_001a:
{
int32_t L_4 = V_0;
Int32U5BU5D_t385246372* L_5 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000d;
}
}
{
EntryU5BU5D_t3881586340* L_6 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_7 = (int32_t)__this->get_count_2();
Array_Clear_m2231608178(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_6, (int32_t)0, (int32_t)L_7, /*hidden argument*/NULL);
__this->set_freeList_4((-1));
__this->set_count_2(0);
__this->set_freeCount_5(0);
int32_t L_8 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)));
}
IL_005a:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::ContainsKey(TKey)
extern "C" bool Dictionary_2_ContainsKey_m2211791567_gshared (Dictionary_2_t2129123697 * __this, Guid_t ___key0, const RuntimeMethod* method)
{
{
Guid_t L_0 = ___key0;
NullCheck((Dictionary_2_t2129123697 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2129123697 *, Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
return (bool)((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::ContainsValue(TValue)
extern "C" bool Dictionary_2_ContainsValue_m259744722_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject * ___value0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
EqualityComparer_1_t1249878500 * V_1 = NULL;
int32_t V_2 = 0;
{
RuntimeObject * L_0 = ___value0;
if (L_0)
{
goto IL_0049;
}
}
{
V_0 = (int32_t)0;
goto IL_003e;
}
IL_000c:
{
EntryU5BU5D_t3881586340* L_1 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_2 = V_0;
NullCheck(L_1);
int32_t L_3 = (int32_t)((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->get_hashCode_0();
if ((((int32_t)L_3) < ((int32_t)0)))
{
goto IL_003a;
}
}
{
EntryU5BU5D_t3881586340* L_4 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
if (L_6)
{
goto IL_003a;
}
}
{
return (bool)1;
}
IL_003a:
{
int32_t L_7 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_003e:
{
int32_t L_8 = V_0;
int32_t L_9 = (int32_t)__this->get_count_2();
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_000c;
}
}
{
goto IL_0090;
}
IL_0049:
{
EqualityComparer_1_t1249878500 * L_10 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
V_1 = (EqualityComparer_1_t1249878500 *)L_10;
V_2 = (int32_t)0;
goto IL_0087;
}
IL_0053:
{
EntryU5BU5D_t3881586340* L_11 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_12 = V_2;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) < ((int32_t)0)))
{
goto IL_0083;
}
}
{
EqualityComparer_1_t1249878500 * L_14 = V_1;
EntryU5BU5D_t3881586340* L_15 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_16 = V_2;
NullCheck(L_15);
RuntimeObject * L_17 = (RuntimeObject *)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_value_3();
RuntimeObject * L_18 = ___value0;
NullCheck((EqualityComparer_1_t1249878500 *)L_14);
bool L_19 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_14, (RuntimeObject *)L_17, (RuntimeObject *)L_18);
if (!L_19)
{
goto IL_0083;
}
}
{
return (bool)1;
}
IL_0083:
{
int32_t L_20 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
}
IL_0087:
{
int32_t L_21 = V_2;
int32_t L_22 = (int32_t)__this->get_count_2();
if ((((int32_t)L_21) < ((int32_t)L_22)))
{
goto IL_0053;
}
}
IL_0090:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_CopyTo_m2983657705_gshared (Dictionary_2_t2129123697 * __this, KeyValuePair_2U5BU5D_t3332857673* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_CopyTo_m2983657705_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t3881586340* V_1 = NULL;
int32_t V_2 = 0;
{
KeyValuePair_2U5BU5D_t3332857673* L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_CopyTo_m2983657705_RuntimeMethod_var);
}
IL_000e:
{
int32_t L_2 = ___index1;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0018;
}
}
{
int32_t L_3 = ___index1;
KeyValuePair_2U5BU5D_t3332857673* L_4 = ___array0;
NullCheck(L_4);
if ((((int32_t)L_3) <= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length)))))))
{
goto IL_002e;
}
}
IL_0018:
{
int32_t L_5 = ___index1;
int32_t L_6 = L_5;
RuntimeObject * L_7 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_6);
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_8, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_7, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, Dictionary_2_CopyTo_m2983657705_RuntimeMethod_var);
}
IL_002e:
{
KeyValuePair_2U5BU5D_t3332857673* L_9 = ___array0;
NullCheck(L_9);
int32_t L_10 = ___index1;
NullCheck((Dictionary_2_t2129123697 *)__this);
int32_t L_11 = (( int32_t (*) (Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_9)->max_length)))), (int32_t)L_10))) >= ((int32_t)L_11)))
{
goto IL_0046;
}
}
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_12, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_CopyTo_m2983657705_RuntimeMethod_var);
}
IL_0046:
{
int32_t L_13 = (int32_t)__this->get_count_2();
V_0 = (int32_t)L_13;
EntryU5BU5D_t3881586340* L_14 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
V_1 = (EntryU5BU5D_t3881586340*)L_14;
V_2 = (int32_t)0;
goto IL_0094;
}
IL_0058:
{
EntryU5BU5D_t3881586340* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_0090;
}
}
{
KeyValuePair_2U5BU5D_t3332857673* L_18 = ___array0;
int32_t L_19 = ___index1;
int32_t L_20 = (int32_t)L_19;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
EntryU5BU5D_t3881586340* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
Guid_t L_23 = (Guid_t )((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_key_2();
EntryU5BU5D_t3881586340* L_24 = V_1;
int32_t L_25 = V_2;
NullCheck(L_24);
RuntimeObject * L_26 = (RuntimeObject *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_value_3();
KeyValuePair_2_t231828568 L_27;
memset(&L_27, 0, sizeof(L_27));
KeyValuePair_2__ctor_m1315482284((&L_27), (Guid_t )L_23, (RuntimeObject *)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
NullCheck(L_18);
(L_18)->SetAt(static_cast<il2cpp_array_size_t>(L_20), (KeyValuePair_2_t231828568 )L_27);
}
IL_0090:
{
int32_t L_28 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_0094:
{
int32_t L_29 = V_2;
int32_t L_30 = V_0;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0058;
}
}
{
return;
}
}
// System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::GetEnumerator()
extern "C" Enumerator_t4083306472 Dictionary_2_GetEnumerator_m2780936000_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
Enumerator_t4083306472 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m1418272670((&L_0), (Dictionary_2_t2129123697 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
return L_0;
}
}
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m4133284988_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
Enumerator_t4083306472 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m1418272670((&L_0), (Dictionary_2_t2129123697 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t4083306472 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2_GetObjectData_m649899198_gshared (Dictionary_2_t2129123697 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_GetObjectData_m649899198_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t3332857673* V_0 = NULL;
String_t* G_B4_0 = NULL;
SerializationInfo_t950877179 * G_B4_1 = NULL;
String_t* G_B3_0 = NULL;
SerializationInfo_t950877179 * G_B3_1 = NULL;
int32_t G_B5_0 = 0;
String_t* G_B5_1 = NULL;
SerializationInfo_t950877179 * G_B5_2 = NULL;
{
SerializationInfo_t950877179 * L_0 = ___info0;
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, (String_t*)_stringLiteral79347, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_GetObjectData_m649899198_RuntimeMethod_var);
}
IL_000e:
{
SerializationInfo_t950877179 * L_2 = ___info0;
int32_t L_3 = (int32_t)__this->get_version_3();
NullCheck((SerializationInfo_t950877179 *)L_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, (int32_t)L_3, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_4 = ___info0;
RuntimeObject* L_5 = (RuntimeObject*)__this->get_comparer_6();
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_4);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral892943380, (RuntimeObject *)L_5, (Type_t *)L_7, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_8 = ___info0;
Int32U5BU5D_t385246372* L_9 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
G_B3_0 = _stringLiteral953796230;
G_B3_1 = L_8;
if (!L_9)
{
G_B4_0 = _stringLiteral953796230;
G_B4_1 = L_8;
goto IL_0052;
}
}
{
Int32U5BU5D_t385246372* L_10 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_10);
G_B5_0 = (((int32_t)((int32_t)(((RuntimeArray *)L_10)->max_length))));
G_B5_1 = G_B3_0;
G_B5_2 = G_B3_1;
goto IL_0053;
}
IL_0052:
{
G_B5_0 = 0;
G_B5_1 = G_B4_0;
G_B5_2 = G_B4_1;
}
IL_0053:
{
NullCheck((SerializationInfo_t950877179 *)G_B5_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)G_B5_2, (String_t*)G_B5_1, (int32_t)G_B5_0, /*hidden argument*/NULL);
Int32U5BU5D_t385246372* L_11 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_11)
{
goto IL_008a;
}
}
{
NullCheck((Dictionary_2_t2129123697 *)__this);
int32_t L_12 = (( int32_t (*) (Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
V_0 = (KeyValuePair_2U5BU5D_t3332857673*)((KeyValuePair_2U5BU5D_t3332857673*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 30), (uint32_t)L_12));
KeyValuePair_2U5BU5D_t3332857673* L_13 = V_0;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, KeyValuePair_2U5BU5D_t3332857673*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2129123697 *)__this, (KeyValuePair_2U5BU5D_t3332857673*)L_13, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
SerializationInfo_t950877179 * L_14 = ___info0;
KeyValuePair_2U5BU5D_t3332857673* L_15 = V_0;
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_16, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_14);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_14, (String_t*)_stringLiteral2947573650, (RuntimeObject *)(RuntimeObject *)L_15, (Type_t *)L_17, /*hidden argument*/NULL);
}
IL_008a:
{
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::FindEntry(TKey)
extern "C" int32_t Dictionary_2_FindEntry_m3901533999_gshared (Dictionary_2_t2129123697 * __this, Guid_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_FindEntry_m3901533999_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_FindEntry_m3901533999_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_008d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
Guid_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, Guid_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Guid>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (Guid_t )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
Int32U5BU5D_t385246372* L_6 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_7 = V_0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_8);
NullCheck(L_6);
int32_t L_9 = ((int32_t)((int32_t)L_7%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length))))));
int32_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = (int32_t)L_10;
goto IL_0089;
}
IL_0042:
{
EntryU5BU5D_t3881586340* L_11 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_12 = V_1;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
int32_t L_14 = V_0;
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
{
goto IL_0077;
}
}
{
RuntimeObject* L_15 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3881586340* L_16 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_17 = V_1;
NullCheck(L_16);
Guid_t L_18 = (Guid_t )((L_16)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_17)))->get_key_2();
Guid_t L_19 = ___key0;
NullCheck((RuntimeObject*)L_15);
bool L_20 = InterfaceFuncInvoker2< bool, Guid_t , Guid_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Guid>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_15, (Guid_t )L_18, (Guid_t )L_19);
if (!L_20)
{
goto IL_0077;
}
}
{
int32_t L_21 = V_1;
return L_21;
}
IL_0077:
{
EntryU5BU5D_t3881586340* L_22 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_23 = V_1;
NullCheck(L_22);
int32_t L_24 = (int32_t)((L_22)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_23)))->get_next_1();
V_1 = (int32_t)L_24;
}
IL_0089:
{
int32_t L_25 = V_1;
if ((((int32_t)L_25) >= ((int32_t)0)))
{
goto IL_0042;
}
}
IL_008d:
{
return (-1);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::Initialize(System.Int32)
extern "C" void Dictionary_2_Initialize_m11276839_gshared (Dictionary_2_t2129123697 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Initialize_m11276839_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
int32_t L_0 = ___capacity0;
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_GetPrime_m1056954278(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_2)));
V_1 = (int32_t)0;
goto IL_0024;
}
IL_0017:
{
Int32U5BU5D_t385246372* L_3 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_4 = V_1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (int32_t)(-1));
int32_t L_5 = V_1;
V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1));
}
IL_0024:
{
int32_t L_6 = V_1;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
if ((((int32_t)L_6) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length)))))))
{
goto IL_0017;
}
}
{
int32_t L_8 = V_0;
__this->set_entries_1(((EntryU5BU5D_t3881586340*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_8)));
__this->set_freeList_4((-1));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::TryInsert(TKey,TValue,System.Collections.Generic.InsertionBehavior)
extern "C" bool Dictionary_2_TryInsert_m2328153114_gshared (Dictionary_2_t2129123697 * __this, Guid_t ___key0, RuntimeObject * ___value1, uint8_t ___behavior2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_TryInsert_m2328153114_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_TryInsert_m2328153114_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (L_2)
{
goto IL_0022;
}
}
{
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t2129123697 *)__this, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_0022:
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
Guid_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, Guid_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Guid>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (Guid_t )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_4 = (int32_t)L_11;
goto IL_00e1;
}
IL_0051:
{
EntryU5BU5D_t3881586340* L_12 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_13 = V_4;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_00c9;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3881586340* L_17 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_18 = V_4;
NullCheck(L_17);
Guid_t L_19 = (Guid_t )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
Guid_t L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, Guid_t , Guid_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Guid>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (Guid_t )L_19, (Guid_t )L_20);
if (!L_21)
{
goto IL_00c9;
}
}
{
uint8_t L_22 = ___behavior2;
if ((!(((uint32_t)L_22) == ((uint32_t)1))))
{
goto IL_00ad;
}
}
{
EntryU5BU5D_t3881586340* L_23 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_24 = V_4;
NullCheck(L_23);
RuntimeObject * L_25 = ___value1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_value_3(L_25);
int32_t L_26 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
return (bool)1;
}
IL_00ad:
{
uint8_t L_27 = ___behavior2;
if ((!(((uint32_t)L_27) == ((uint32_t)2))))
{
goto IL_00c7;
}
}
{
Guid_t L_28 = ___key0;
Guid_t L_29 = L_28;
RuntimeObject * L_30 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_29);
String_t* L_31 = SR_Format_m1749913990(NULL /*static, unused*/, (String_t*)_stringLiteral1494472686, (RuntimeObject *)L_30, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_32 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_32, (String_t*)L_31, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_32, NULL, Dictionary_2_TryInsert_m2328153114_RuntimeMethod_var);
}
IL_00c7:
{
return (bool)0;
}
IL_00c9:
{
int32_t L_33 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t3881586340* L_34 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_35 = V_4;
NullCheck(L_34);
int32_t L_36 = (int32_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_next_1();
V_4 = (int32_t)L_36;
}
IL_00e1:
{
int32_t L_37 = V_4;
if ((((int32_t)L_37) >= ((int32_t)0)))
{
goto IL_0051;
}
}
{
int32_t L_38 = (int32_t)__this->get_freeCount_5();
if ((((int32_t)L_38) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t L_39 = (int32_t)__this->get_freeList_4();
V_3 = (int32_t)L_39;
EntryU5BU5D_t3881586340* L_40 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_41 = V_3;
NullCheck(L_40);
int32_t L_42 = (int32_t)((L_40)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_41)))->get_next_1();
__this->set_freeList_4(L_42);
int32_t L_43 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_subtract((int32_t)L_43, (int32_t)1)));
goto IL_0156;
}
IL_0120:
{
int32_t L_44 = (int32_t)__this->get_count_2();
EntryU5BU5D_t3881586340* L_45 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
NullCheck(L_45);
if ((!(((uint32_t)L_44) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_45)->max_length))))))))
{
goto IL_0141;
}
}
{
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36)->methodPointer)((Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36));
int32_t L_46 = V_0;
Int32U5BU5D_t385246372* L_47 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_47);
V_1 = (int32_t)((int32_t)((int32_t)L_46%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_47)->max_length))))));
}
IL_0141:
{
int32_t L_48 = (int32_t)__this->get_count_2();
V_3 = (int32_t)L_48;
int32_t L_49 = (int32_t)__this->get_count_2();
__this->set_count_2(((int32_t)il2cpp_codegen_add((int32_t)L_49, (int32_t)1)));
}
IL_0156:
{
EntryU5BU5D_t3881586340* L_50 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_51 = V_3;
NullCheck(L_50);
int32_t L_52 = V_0;
((L_50)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_51)))->set_hashCode_0(L_52);
EntryU5BU5D_t3881586340* L_53 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_54 = V_3;
NullCheck(L_53);
Int32U5BU5D_t385246372* L_55 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_56 = V_1;
NullCheck(L_55);
int32_t L_57 = L_56;
int32_t L_58 = (L_55)->GetAt(static_cast<il2cpp_array_size_t>(L_57));
((L_53)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_54)))->set_next_1(L_58);
EntryU5BU5D_t3881586340* L_59 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_60 = V_3;
NullCheck(L_59);
Guid_t L_61 = ___key0;
((L_59)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_60)))->set_key_2(L_61);
EntryU5BU5D_t3881586340* L_62 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_63 = V_3;
NullCheck(L_62);
RuntimeObject * L_64 = ___value1;
((L_62)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_63)))->set_value_3(L_64);
Int32U5BU5D_t385246372* L_65 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_66 = V_1;
int32_t L_67 = V_3;
NullCheck(L_65);
(L_65)->SetAt(static_cast<il2cpp_array_size_t>(L_66), (int32_t)L_67);
int32_t L_68 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_68, (int32_t)1)));
int32_t L_69 = V_2;
if ((((int32_t)L_69) <= ((int32_t)((int32_t)100))))
{
goto IL_01ed;
}
}
{
RuntimeObject* L_70 = (RuntimeObject*)__this->get_comparer_6();
if (!((NonRandomizedStringEqualityComparer_t1082005352 *)IsInst((RuntimeObject*)L_70, NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var)))
{
goto IL_01ed;
}
}
{
EqualityComparer_1_t17223025 * L_71 = EqualityComparer_1_get_Default_m2310016383(NULL /*static, unused*/, /*hidden argument*/EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_71, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
EntryU5BU5D_t3881586340* L_72 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
NullCheck(L_72);
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t2129123697 *)__this, (int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_72)->max_length)))), (bool)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
}
IL_01ed:
{
return (bool)1;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::OnDeserialization(System.Object)
extern "C" void Dictionary_2_OnDeserialization_m4000353487_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject * ___sender0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_OnDeserialization_m4000353487_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SerializationInfo_t950877179 * V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
KeyValuePair_2U5BU5D_t3332857673* V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_TryGetValue_m1618998192((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 **)(SerializationInfo_t950877179 **)(&V_0), /*hidden argument*/ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var);
SerializationInfo_t950877179 * L_1 = V_0;
if (L_1)
{
goto IL_0012;
}
}
{
return;
}
IL_0012:
{
SerializationInfo_t950877179 * L_2 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_2);
int32_t L_3 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, /*hidden argument*/NULL);
V_1 = (int32_t)L_3;
SerializationInfo_t950877179 * L_4 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_4);
int32_t L_5 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral953796230, /*hidden argument*/NULL);
V_2 = (int32_t)L_5;
SerializationInfo_t950877179 * L_6 = V_0;
RuntimeTypeHandle_t3027515415 L_7 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_8 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_7, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_6);
RuntimeObject * L_9 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_6, (String_t*)_stringLiteral892943380, (Type_t *)L_8, /*hidden argument*/NULL);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_9, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
int32_t L_10 = V_2;
if (!L_10)
{
goto IL_010c;
}
}
{
int32_t L_11 = V_2;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_11)));
V_4 = (int32_t)0;
goto IL_0071;
}
IL_0061:
{
Int32U5BU5D_t385246372* L_12 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_13 = V_4;
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)(-1));
int32_t L_14 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0071:
{
int32_t L_15 = V_4;
Int32U5BU5D_t385246372* L_16 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0061;
}
}
{
int32_t L_17 = V_2;
__this->set_entries_1(((EntryU5BU5D_t3881586340*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_17)));
__this->set_freeList_4((-1));
SerializationInfo_t950877179 * L_18 = V_0;
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_19, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_18);
RuntimeObject * L_21 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_18, (String_t*)_stringLiteral2947573650, (Type_t *)L_20, /*hidden argument*/NULL);
V_3 = (KeyValuePair_2U5BU5D_t3332857673*)((KeyValuePair_2U5BU5D_t3332857673*)Castclass((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t3332857673* L_22 = V_3;
if (L_22)
{
goto IL_00b9;
}
}
{
SerializationException_t3941511869 * L_23 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_23, (String_t*)_stringLiteral998597917, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_23, NULL, Dictionary_2_OnDeserialization_m4000353487_RuntimeMethod_var);
}
IL_00b9:
{
V_5 = (int32_t)0;
goto IL_0103;
}
IL_00be:
{
KeyValuePair_2U5BU5D_t3332857673* L_24 = V_3;
int32_t L_25 = V_5;
NullCheck(L_24);
Guid_t L_26 = KeyValuePair_2_get_Key_m4294704491((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
goto IL_00dd;
}
{
SerializationException_t3941511869 * L_27 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_27, (String_t*)_stringLiteral3616747365, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_27, NULL, Dictionary_2_OnDeserialization_m4000353487_RuntimeMethod_var);
}
IL_00dd:
{
KeyValuePair_2U5BU5D_t3332857673* L_28 = V_3;
int32_t L_29 = V_5;
NullCheck(L_28);
Guid_t L_30 = KeyValuePair_2_get_Key_m4294704491((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
KeyValuePair_2U5BU5D_t3332857673* L_31 = V_3;
int32_t L_32 = V_5;
NullCheck(L_31);
RuntimeObject * L_33 = KeyValuePair_2_get_Value_m2666064688((KeyValuePair_2_t231828568 *)(KeyValuePair_2_t231828568 *)((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, Guid_t , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_30, (RuntimeObject *)L_33, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
int32_t L_34 = V_5;
V_5 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_34, (int32_t)1));
}
IL_0103:
{
int32_t L_35 = V_5;
KeyValuePair_2U5BU5D_t3332857673* L_36 = V_3;
NullCheck(L_36);
if ((((int32_t)L_35) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_36)->max_length)))))))
{
goto IL_00be;
}
}
{
goto IL_0113;
}
IL_010c:
{
__this->set_buckets_0((Int32U5BU5D_t385246372*)NULL);
}
IL_0113:
{
int32_t L_37 = V_1;
__this->set_version_3(L_37);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_38 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_38);
ConditionalWeakTable_2_Remove_m2013031576((ConditionalWeakTable_2_t1452810305 *)L_38, (RuntimeObject *)__this, /*hidden argument*/ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::Resize()
extern "C" void Dictionary_2_Resize_m3472074455_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m3472074455_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = (int32_t)__this->get_count_2();
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_ExpandPrime_m2180508331(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t2129123697 *)__this, (int32_t)L_1, (bool)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::Resize(System.Int32,System.Boolean)
extern "C" void Dictionary_2_Resize_m2347430199_gshared (Dictionary_2_t2129123697 * __this, int32_t ___newSize0, bool ___forceNewHashCodes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m2347430199_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Int32U5BU5D_t385246372* V_0 = NULL;
EntryU5BU5D_t3881586340* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t L_0 = ___newSize0;
V_0 = (Int32U5BU5D_t385246372*)((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_0));
V_2 = (int32_t)0;
goto IL_0013;
}
IL_000b:
{
Int32U5BU5D_t385246372* L_1 = V_0;
int32_t L_2 = V_2;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_0013:
{
int32_t L_4 = V_2;
Int32U5BU5D_t385246372* L_5 = V_0;
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000b;
}
}
{
int32_t L_6 = ___newSize0;
V_1 = (EntryU5BU5D_t3881586340*)((EntryU5BU5D_t3881586340*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_6));
EntryU5BU5D_t3881586340* L_7 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
EntryU5BU5D_t3881586340* L_8 = V_1;
int32_t L_9 = (int32_t)__this->get_count_2();
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_7, (int32_t)0, (RuntimeArray *)(RuntimeArray *)L_8, (int32_t)0, (int32_t)L_9, /*hidden argument*/NULL);
bool L_10 = ___forceNewHashCodes1;
if (!L_10)
{
goto IL_0080;
}
}
{
V_3 = (int32_t)0;
goto IL_0077;
}
IL_003b:
{
EntryU5BU5D_t3881586340* L_11 = V_1;
int32_t L_12 = V_3;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) == ((int32_t)(-1))))
{
goto IL_0073;
}
}
{
EntryU5BU5D_t3881586340* L_14 = V_1;
int32_t L_15 = V_3;
NullCheck(L_14);
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3881586340* L_17 = V_1;
int32_t L_18 = V_3;
NullCheck(L_17);
Guid_t L_19 = (Guid_t )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
NullCheck((RuntimeObject*)L_16);
int32_t L_20 = InterfaceFuncInvoker1< int32_t, Guid_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Guid>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (Guid_t )L_19);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->set_hashCode_0(((int32_t)((int32_t)L_20&(int32_t)((int32_t)2147483647LL))));
}
IL_0073:
{
int32_t L_21 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1));
}
IL_0077:
{
int32_t L_22 = V_3;
int32_t L_23 = (int32_t)__this->get_count_2();
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_003b;
}
}
IL_0080:
{
V_4 = (int32_t)0;
goto IL_00c3;
}
IL_0085:
{
EntryU5BU5D_t3881586340* L_24 = V_1;
int32_t L_25 = V_4;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_hashCode_0();
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00bd;
}
}
{
EntryU5BU5D_t3881586340* L_27 = V_1;
int32_t L_28 = V_4;
NullCheck(L_27);
int32_t L_29 = (int32_t)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->get_hashCode_0();
int32_t L_30 = ___newSize0;
V_5 = (int32_t)((int32_t)((int32_t)L_29%(int32_t)L_30));
EntryU5BU5D_t3881586340* L_31 = V_1;
int32_t L_32 = V_4;
NullCheck(L_31);
Int32U5BU5D_t385246372* L_33 = V_0;
int32_t L_34 = V_5;
NullCheck(L_33);
int32_t L_35 = L_34;
int32_t L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32)))->set_next_1(L_36);
Int32U5BU5D_t385246372* L_37 = V_0;
int32_t L_38 = V_5;
int32_t L_39 = V_4;
NullCheck(L_37);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(L_38), (int32_t)L_39);
}
IL_00bd:
{
int32_t L_40 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
}
IL_00c3:
{
int32_t L_41 = V_4;
int32_t L_42 = (int32_t)__this->get_count_2();
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_0085;
}
}
{
Int32U5BU5D_t385246372* L_43 = V_0;
__this->set_buckets_0(L_43);
EntryU5BU5D_t3881586340* L_44 = V_1;
__this->set_entries_1(L_44);
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::Remove(TKey)
extern "C" bool Dictionary_2_Remove_m3772493927_gshared (Dictionary_2_t2129123697 * __this, Guid_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Remove_m3772493927_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_Remove_m3772493927_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_015d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
Guid_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, Guid_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Guid>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (Guid_t )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)(-1);
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_3 = (int32_t)L_11;
goto IL_0156;
}
IL_004c:
{
EntryU5BU5D_t3881586340* L_12 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_13 = V_3;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0142;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3881586340* L_17 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_18 = V_3;
NullCheck(L_17);
Guid_t L_19 = (Guid_t )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
Guid_t L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, Guid_t , Guid_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Guid>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (Guid_t )L_19, (Guid_t )L_20);
if (!L_21)
{
goto IL_0142;
}
}
{
int32_t L_22 = V_2;
if ((((int32_t)L_22) >= ((int32_t)0)))
{
goto IL_00a4;
}
}
{
Int32U5BU5D_t385246372* L_23 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_24 = V_1;
EntryU5BU5D_t3881586340* L_25 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_26 = V_3;
NullCheck(L_25);
int32_t L_27 = (int32_t)((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->get_next_1();
NullCheck(L_23);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(L_24), (int32_t)L_27);
goto IL_00c6;
}
IL_00a4:
{
EntryU5BU5D_t3881586340* L_28 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_29 = V_2;
NullCheck(L_28);
EntryU5BU5D_t3881586340* L_30 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_31 = V_3;
NullCheck(L_30);
int32_t L_32 = (int32_t)((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->get_next_1();
((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->set_next_1(L_32);
}
IL_00c6:
{
EntryU5BU5D_t3881586340* L_33 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_34 = V_3;
NullCheck(L_33);
((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->set_hashCode_0((-1));
EntryU5BU5D_t3881586340* L_35 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_36 = V_3;
NullCheck(L_35);
int32_t L_37 = (int32_t)__this->get_freeList_4();
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->set_next_1(L_37);
EntryU5BU5D_t3881586340* L_38 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
Guid_t * L_40 = (Guid_t *)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_address_of_key_2();
il2cpp_codegen_initobj(L_40, sizeof(Guid_t ));
EntryU5BU5D_t3881586340* L_41 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_42 = V_3;
NullCheck(L_41);
RuntimeObject ** L_43 = (RuntimeObject **)((L_41)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_42)))->get_address_of_value_3();
il2cpp_codegen_initobj(L_43, sizeof(RuntimeObject *));
int32_t L_44 = V_3;
__this->set_freeList_4(L_44);
int32_t L_45 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1)));
int32_t L_46 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1)));
return (bool)1;
}
IL_0142:
{
int32_t L_47 = V_3;
V_2 = (int32_t)L_47;
EntryU5BU5D_t3881586340* L_48 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = (int32_t)((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->get_next_1();
V_3 = (int32_t)L_50;
}
IL_0156:
{
int32_t L_51 = V_3;
if ((((int32_t)L_51) >= ((int32_t)0)))
{
goto IL_004c;
}
}
IL_015d:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::TryGetValue(TKey,TValue&)
extern "C" bool Dictionary_2_TryGetValue_m1665267700_gshared (Dictionary_2_t2129123697 * __this, Guid_t ___key0, RuntimeObject ** ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
Guid_t L_0 = ___key0;
NullCheck((Dictionary_2_t2129123697 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2129123697 *, Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0025;
}
}
{
RuntimeObject ** L_3 = ___value1;
EntryU5BU5D_t3881586340* L_4 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
*(RuntimeObject **)L_3 = L_6;
Il2CppCodeGenWriteBarrier((RuntimeObject **)L_3, L_6);
return (bool)1;
}
IL_0025:
{
RuntimeObject ** L_7 = ___value1;
il2cpp_codegen_initobj(L_7, sizeof(RuntimeObject *));
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::TryAdd(TKey,TValue)
extern "C" bool Dictionary_2_TryAdd_m3039716895_gshared (Dictionary_2_t2129123697 * __this, Guid_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
Guid_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t2129123697 *)__this);
bool L_2 = (( bool (*) (Dictionary_2_t2129123697 *, Guid_t , RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_0, (RuntimeObject *)L_1, (uint8_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m478552698_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m1276400273_gshared (Dictionary_2_t2129123697 * __this, KeyValuePair_2U5BU5D_t3332857673* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
{
KeyValuePair_2U5BU5D_t3332857673* L_0 = ___array0;
int32_t L_1 = ___index1;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, KeyValuePair_2U5BU5D_t3332857673*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2129123697 *)__this, (KeyValuePair_2U5BU5D_t3332857673*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32)
extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_gshared (Dictionary_2_t2129123697 * __this, RuntimeArray * ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t3332857673* V_0 = NULL;
DictionaryEntryU5BU5D_t4217117203* V_1 = NULL;
EntryU5BU5D_t3881586340* V_2 = NULL;
int32_t V_3 = 0;
ObjectU5BU5D_t2843939325* V_4 = NULL;
int32_t V_5 = 0;
EntryU5BU5D_t3881586340* V_6 = NULL;
int32_t V_7 = 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);
{
RuntimeArray * L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_RuntimeMethod_var);
}
IL_000e:
{
RuntimeArray * L_2 = ___array0;
NullCheck((RuntimeArray *)L_2);
int32_t L_3 = Array_get_Rank_m3448755881((RuntimeArray *)L_2, /*hidden argument*/NULL);
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0027;
}
}
{
ArgumentException_t132251570 * L_4 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_4, (String_t*)_stringLiteral915403387, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_RuntimeMethod_var);
}
IL_0027:
{
RuntimeArray * L_5 = ___array0;
NullCheck((RuntimeArray *)L_5);
int32_t L_6 = Array_GetLowerBound_m2045984623((RuntimeArray *)L_5, (int32_t)0, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0040;
}
}
{
ArgumentException_t132251570 * L_7 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_7, (String_t*)_stringLiteral2590862907, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_RuntimeMethod_var);
}
IL_0040:
{
int32_t L_8 = ___index1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_004d;
}
}
{
int32_t L_9 = ___index1;
RuntimeArray * L_10 = ___array0;
NullCheck((RuntimeArray *)L_10);
int32_t L_11 = Array_get_Length_m21610649((RuntimeArray *)L_10, /*hidden argument*/NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0063;
}
}
IL_004d:
{
int32_t L_12 = ___index1;
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_13);
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_15, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_14, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_RuntimeMethod_var);
}
IL_0063:
{
RuntimeArray * L_16 = ___array0;
NullCheck((RuntimeArray *)L_16);
int32_t L_17 = Array_get_Length_m21610649((RuntimeArray *)L_16, /*hidden argument*/NULL);
int32_t L_18 = ___index1;
NullCheck((Dictionary_2_t2129123697 *)__this);
int32_t L_19 = (( int32_t (*) (Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)L_18))) >= ((int32_t)L_19)))
{
goto IL_007e;
}
}
{
ArgumentException_t132251570 * L_20 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_20, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_20, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_RuntimeMethod_var);
}
IL_007e:
{
RuntimeArray * L_21 = ___array0;
V_0 = (KeyValuePair_2U5BU5D_t3332857673*)((KeyValuePair_2U5BU5D_t3332857673*)IsInst((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t3332857673* L_22 = V_0;
if (!L_22)
{
goto IL_0091;
}
}
{
KeyValuePair_2U5BU5D_t3332857673* L_23 = V_0;
int32_t L_24 = ___index1;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, KeyValuePair_2U5BU5D_t3332857673*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2129123697 *)__this, (KeyValuePair_2U5BU5D_t3332857673*)L_23, (int32_t)L_24, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
IL_0091:
{
RuntimeArray * L_25 = ___array0;
if (!((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_25, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var)))
{
goto IL_00fb;
}
}
{
RuntimeArray * L_26 = ___array0;
V_1 = (DictionaryEntryU5BU5D_t4217117203*)((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_26, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var));
EntryU5BU5D_t3881586340* L_27 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
V_2 = (EntryU5BU5D_t3881586340*)L_27;
V_3 = (int32_t)0;
goto IL_00f1;
}
IL_00ab:
{
EntryU5BU5D_t3881586340* L_28 = V_2;
int32_t L_29 = V_3;
NullCheck(L_28);
int32_t L_30 = (int32_t)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->get_hashCode_0();
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_00ed;
}
}
{
DictionaryEntryU5BU5D_t4217117203* L_31 = V_1;
int32_t L_32 = ___index1;
int32_t L_33 = (int32_t)L_32;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t3881586340* L_34 = V_2;
int32_t L_35 = V_3;
NullCheck(L_34);
Guid_t L_36 = (Guid_t )((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_key_2();
Guid_t L_37 = L_36;
RuntimeObject * L_38 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_37);
EntryU5BU5D_t3881586340* L_39 = V_2;
int32_t L_40 = V_3;
NullCheck(L_39);
RuntimeObject * L_41 = (RuntimeObject *)((L_39)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_40)))->get_value_3();
DictionaryEntry_t3123975638 L_42;
memset(&L_42, 0, sizeof(L_42));
DictionaryEntry__ctor_m2585376310((&L_42), (RuntimeObject *)L_38, (RuntimeObject *)L_41, /*hidden argument*/NULL);
NullCheck(L_31);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (DictionaryEntry_t3123975638 )L_42);
}
IL_00ed:
{
int32_t L_43 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_43, (int32_t)1));
}
IL_00f1:
{
int32_t L_44 = V_3;
int32_t L_45 = (int32_t)__this->get_count_2();
if ((((int32_t)L_44) < ((int32_t)L_45)))
{
goto IL_00ab;
}
}
{
return;
}
IL_00fb:
{
RuntimeArray * L_46 = ___array0;
V_4 = (ObjectU5BU5D_t2843939325*)((ObjectU5BU5D_t2843939325*)IsInst((RuntimeObject*)L_46, ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var));
ObjectU5BU5D_t2843939325* L_47 = V_4;
if (L_47)
{
goto IL_0117;
}
}
{
ArgumentException_t132251570 * L_48 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_48, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_48, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_RuntimeMethod_var);
}
IL_0117:
{
}
IL_0118:
try
{ // begin try (depth: 1)
{
int32_t L_49 = (int32_t)__this->get_count_2();
V_5 = (int32_t)L_49;
EntryU5BU5D_t3881586340* L_50 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
V_6 = (EntryU5BU5D_t3881586340*)L_50;
V_7 = (int32_t)0;
goto IL_0173;
}
IL_012d:
{
EntryU5BU5D_t3881586340* L_51 = V_6;
int32_t L_52 = V_7;
NullCheck(L_51);
int32_t L_53 = (int32_t)((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->get_hashCode_0();
if ((((int32_t)L_53) < ((int32_t)0)))
{
goto IL_016d;
}
}
IL_013e:
{
ObjectU5BU5D_t2843939325* L_54 = V_4;
int32_t L_55 = ___index1;
int32_t L_56 = (int32_t)L_55;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_56, (int32_t)1));
EntryU5BU5D_t3881586340* L_57 = V_6;
int32_t L_58 = V_7;
NullCheck(L_57);
Guid_t L_59 = (Guid_t )((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->get_key_2();
EntryU5BU5D_t3881586340* L_60 = V_6;
int32_t L_61 = V_7;
NullCheck(L_60);
RuntimeObject * L_62 = (RuntimeObject *)((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->get_value_3();
KeyValuePair_2_t231828568 L_63;
memset(&L_63, 0, sizeof(L_63));
KeyValuePair_2__ctor_m1315482284((&L_63), (Guid_t )L_59, (RuntimeObject *)L_62, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
KeyValuePair_2_t231828568 L_64 = L_63;
RuntimeObject * L_65 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 25), &L_64);
NullCheck(L_54);
ArrayElementTypeCheck (L_54, L_65);
(L_54)->SetAt(static_cast<il2cpp_array_size_t>(L_56), (RuntimeObject *)L_65);
}
IL_016d:
{
int32_t L_66 = V_7;
V_7 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1));
}
IL_0173:
{
int32_t L_67 = V_7;
int32_t L_68 = V_5;
if ((((int32_t)L_67) < ((int32_t)L_68)))
{
goto IL_012d;
}
}
IL_0179:
{
goto IL_018c;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_017b;
throw e;
}
CATCH_017b:
{ // begin catch(System.ArrayTypeMismatchException)
ArgumentException_t132251570 * L_69 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_69, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_69, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3468312762_RuntimeMethod_var);
} // end catch (depth: 1)
IL_018c:
{
return;
}
}
// System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IEnumerable.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m3789627702_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
Enumerator_t4083306472 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m1418272670((&L_0), (Dictionary_2_t2129123697 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t4083306472 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.ICollection.get_IsSynchronized()
extern "C" bool Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m3372061983_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.ICollection.get_SyncRoot()
extern "C" RuntimeObject * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m56757569_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_get_SyncRoot_m56757569_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get__syncRoot_9();
if (L_0)
{
goto IL_001a;
}
}
{
RuntimeObject ** L_1 = (RuntimeObject **)__this->get_address_of__syncRoot_9();
RuntimeObject * L_2 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_2, /*hidden argument*/NULL);
InterlockedCompareExchangeImpl<RuntimeObject *>((RuntimeObject **)(RuntimeObject **)L_1, (RuntimeObject *)L_2, (RuntimeObject *)NULL);
}
IL_001a:
{
RuntimeObject * L_3 = (RuntimeObject *)__this->get__syncRoot_9();
return L_3;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IDictionary.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_IDictionary_get_IsReadOnly_m2619918158_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IDictionary.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Keys_m3447035861_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2129123697 *)__this);
KeyCollection_t2318799168 * L_0 = (( KeyCollection_t2318799168 * (*) (Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39)->methodPointer)((Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39));
return L_0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IDictionary.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Values_m691864490_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2129123697 *)__this);
ValueCollection_t3845168015 * L_0 = (( ValueCollection_t3845168015 * (*) (Dictionary_2_t2129123697 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40)->methodPointer)((Dictionary_2_t2129123697 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40));
return L_0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IDictionary.get_Item(System.Object)
extern "C" RuntimeObject * Dictionary_2_System_Collections_IDictionary_get_Item_m4069517407_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0030;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2129123697 *)__this);
int32_t L_3 = (( int32_t (*) (Dictionary_2_t2129123697 *, Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )((*(Guid_t *)((Guid_t *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_3;
int32_t L_4 = V_0;
if ((((int32_t)L_4) < ((int32_t)0)))
{
goto IL_0030;
}
}
{
EntryU5BU5D_t3881586340* L_5 = (EntryU5BU5D_t3881586340*)__this->get_entries_1();
int32_t L_6 = V_0;
NullCheck(L_5);
RuntimeObject * L_7 = (RuntimeObject *)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->get_value_3();
return L_7;
}
IL_0030:
{
return NULL;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IDictionary.set_Item(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m2499351522_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_set_Item_m2499351522_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
Guid_t V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m2499351522_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m2499351522_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (Guid_t )((*(Guid_t *)((Guid_t *)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
Guid_t L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, Guid_t , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m2499351522_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m2499351522_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::IsCompatibleKey(System.Object)
extern "C" bool Dictionary_2_IsCompatibleKey_m2616503725_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_IsCompatibleKey_m2616503725_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_IsCompatibleKey_m2616503725_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___key0;
return (bool)((!(((RuntimeObject*)(RuntimeObject *)((RuntimeObject *)IsInst((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 33)))) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IDictionary.Add(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m4093959999_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_Add_m4093959999_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
Guid_t V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_Add_m4093959999_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_Add_m4093959999_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (Guid_t )((*(Guid_t *)((Guid_t *)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
Guid_t L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( void (*) (Dictionary_2_t2129123697 *, Guid_t , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_Add_m4093959999_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_Add_m4093959999_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IDictionary.Contains(System.Object)
extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m3388130363_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2129123697 *)__this);
bool L_3 = (( bool (*) (Dictionary_2_t2129123697 *, Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )((*(Guid_t *)((Guid_t *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46));
return L_3;
}
IL_0015:
{
return (bool)0;
}
}
// System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IDictionary.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_GetEnumerator_m1616406320_gshared (Dictionary_2_t2129123697 * __this, const RuntimeMethod* method)
{
{
Enumerator_t4083306472 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m1418272670((&L_0), (Dictionary_2_t2129123697 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t4083306472 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Guid,System.Object>::System.Collections.IDictionary.Remove(System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m1385239003_gshared (Dictionary_2_t2129123697 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2129123697 *)__this);
(( bool (*) (Dictionary_2_t2129123697 *, Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t2129123697 *)__this, (Guid_t )((*(Guid_t *)((Guid_t *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
}
IL_0015:
{
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 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor()
extern "C" void Dictionary_2__ctor_m2601736566_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Int32)
extern "C" void Dictionary_2__ctor_m2399340297_gshared (Dictionary_2_t1968819495 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___capacity0;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m1060663922_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject* ___comparer0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___comparer0;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)0, (RuntimeObject*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m3734853840_gshared (Dictionary_2_t1968819495 * __this, int32_t ___capacity0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m3734853840_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* G_B6_0 = NULL;
Dictionary_2_t1968819495 * G_B6_1 = NULL;
RuntimeObject* G_B5_0 = NULL;
Dictionary_2_t1968819495 * G_B5_1 = NULL;
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
int32_t L_0 = ___capacity0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0020;
}
}
{
int32_t L_1 = ___capacity0;
int32_t L_2 = L_1;
RuntimeObject * L_3 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_2);
ArgumentOutOfRangeException_t777629997 * L_4 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_4, (String_t*)_stringLiteral3623012086, (RuntimeObject *)L_3, (String_t*)_stringLiteral2892689725, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2__ctor_m3734853840_RuntimeMethod_var);
}
IL_0020:
{
int32_t L_5 = ___capacity0;
if ((((int32_t)L_5) <= ((int32_t)0)))
{
goto IL_002b;
}
}
{
int32_t L_6 = ___capacity0;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_002b:
{
RuntimeObject* L_7 = ___comparer1;
RuntimeObject* L_8 = (RuntimeObject*)L_7;
G_B5_0 = L_8;
G_B5_1 = ((Dictionary_2_t1968819495 *)(__this));
if (L_8)
{
G_B6_0 = L_8;
G_B6_1 = ((Dictionary_2_t1968819495 *)(__this));
goto IL_0036;
}
}
{
EqualityComparer_1_t1120718089 * L_9 = (( EqualityComparer_1_t1120718089 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2));
G_B6_0 = ((RuntimeObject*)(L_9));
G_B6_1 = ((Dictionary_2_t1968819495 *)(G_B5_1));
}
IL_0036:
{
NullCheck(G_B6_1);
G_B6_1->set_comparer_6(G_B6_0);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>)
extern "C" void Dictionary_2__ctor_m2287215054_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___dictionary0;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4)->methodPointer)((Dictionary_2_t1968819495 *)__this, (RuntimeObject*)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m280240841_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject* ___dictionary0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m280240841_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t3201103702* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
KeyValuePair_2_t71524366 V_4;
memset(&V_4, 0, sizeof(V_4));
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);
Dictionary_2_t1968819495 * G_B2_0 = NULL;
Dictionary_2_t1968819495 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
Dictionary_2_t1968819495 * G_B3_1 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
G_B1_0 = ((Dictionary_2_t1968819495 *)(__this));
if (L_0)
{
G_B2_0 = ((Dictionary_2_t1968819495 *)(__this));
goto IL_0007;
}
}
{
G_B3_0 = 0;
G_B3_1 = ((Dictionary_2_t1968819495 *)(G_B1_0));
goto IL_000d;
}
IL_0007:
{
RuntimeObject* L_1 = ___dictionary0;
NullCheck((RuntimeObject*)L_1);
int32_t L_2 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::get_Count() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 5), (RuntimeObject*)L_1);
G_B3_0 = L_2;
G_B3_1 = ((Dictionary_2_t1968819495 *)(G_B2_0));
}
IL_000d:
{
RuntimeObject* L_3 = ___comparer1;
NullCheck((Dictionary_2_t1968819495 *)G_B3_1);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1968819495 *)G_B3_1, (int32_t)G_B3_0, (RuntimeObject*)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
RuntimeObject* L_4 = ___dictionary0;
if (L_4)
{
goto IL_0021;
}
}
{
ArgumentNullException_t1615371798 * L_5 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_5, (String_t*)_stringLiteral2957729587, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, Dictionary_2__ctor_m280240841_RuntimeMethod_var);
}
IL_0021:
{
RuntimeObject* L_6 = ___dictionary0;
NullCheck((RuntimeObject *)L_6);
Type_t * L_7 = Object_GetType_m88164663((RuntimeObject *)L_6, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_8 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 6)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_9 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_8, /*hidden argument*/NULL);
bool L_10 = Type_op_Equality_m2683486427(NULL /*static, unused*/, (Type_t *)L_7, (Type_t *)L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0085;
}
}
{
RuntimeObject* L_11 = ___dictionary0;
Dictionary_2_t1968819495 * L_12 = (Dictionary_2_t1968819495 *)((Dictionary_2_t1968819495 *)Castclass((RuntimeObject*)L_11, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 7)));
NullCheck(L_12);
int32_t L_13 = (int32_t)L_12->get_count_2();
V_0 = (int32_t)L_13;
NullCheck(L_12);
EntryU5BU5D_t3201103702* L_14 = (EntryU5BU5D_t3201103702*)L_12->get_entries_1();
V_1 = (EntryU5BU5D_t3201103702*)L_14;
V_2 = (int32_t)0;
goto IL_0080;
}
IL_004f:
{
EntryU5BU5D_t3201103702* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007c;
}
}
{
EntryU5BU5D_t3201103702* L_18 = V_1;
int32_t L_19 = V_2;
NullCheck(L_18);
int32_t L_20 = (int32_t)((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->get_key_2();
EntryU5BU5D_t3201103702* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
RuntimeObject * L_23 = (RuntimeObject *)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_value_3();
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_20, (RuntimeObject *)L_23, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_007c:
{
int32_t L_24 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0080:
{
int32_t L_25 = V_2;
int32_t L_26 = V_0;
if ((((int32_t)L_25) < ((int32_t)L_26)))
{
goto IL_004f;
}
}
{
return;
}
IL_0085:
{
RuntimeObject* L_27 = ___dictionary0;
NullCheck((RuntimeObject*)L_27);
RuntimeObject* L_28 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 9), (RuntimeObject*)L_27);
V_3 = (RuntimeObject*)L_28;
}
IL_008c:
try
{ // begin try (depth: 1)
{
goto IL_00aa;
}
IL_008e:
{
RuntimeObject* L_29 = V_3;
NullCheck((RuntimeObject*)L_29);
KeyValuePair_2_t71524366 L_30 = InterfaceFuncInvoker0< KeyValuePair_2_t71524366 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::get_Current() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 10), (RuntimeObject*)L_29);
V_4 = (KeyValuePair_2_t71524366 )L_30;
int32_t L_31 = KeyValuePair_2_get_Key_m1839753989((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_32 = KeyValuePair_2_get_Value_m3495598764((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_31, (RuntimeObject *)L_32, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_00aa:
{
RuntimeObject* L_33 = V_3;
NullCheck((RuntimeObject*)L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, (RuntimeObject*)L_33);
if (L_34)
{
goto IL_008e;
}
}
IL_00b2:
{
IL2CPP_LEAVE(0xBE, FINALLY_00b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b4;
}
FINALLY_00b4:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_3;
if (!L_35)
{
goto IL_00bd;
}
}
IL_00b7:
{
RuntimeObject* L_36 = V_3;
NullCheck((RuntimeObject*)L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, (RuntimeObject*)L_36);
}
IL_00bd:
{
IL2CPP_END_FINALLY(180)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(180)
{
IL2CPP_JUMP_TBL(0xBE, IL_00be)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00be:
{
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2__ctor_m2744724763_gshared (Dictionary_2_t1968819495 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m2744724763_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_1 = ___info0;
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_Add_m4098691448((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 *)L_1, /*hidden argument*/ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var);
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Count()
extern "C" int32_t Dictionary_2_get_Count_m3300912776_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_count_2();
int32_t L_1 = (int32_t)__this->get_freeCount_5();
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1));
}
}
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Keys()
extern "C" KeyCollection_t2158494966 * Dictionary_2_get_Keys_m1840317613_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2158494966 * L_0 = (KeyCollection_t2158494966 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2158494966 * L_1 = (KeyCollection_t2158494966 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2158494966 *, Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2158494966 * L_2 = (KeyCollection_t2158494966 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m1323169247_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2158494966 * L_0 = (KeyCollection_t2158494966 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2158494966 * L_1 = (KeyCollection_t2158494966 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2158494966 *, Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2158494966 * L_2 = (KeyCollection_t2158494966 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TKey> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Keys_m3430497407_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2158494966 * L_0 = (KeyCollection_t2158494966 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2158494966 * L_1 = (KeyCollection_t2158494966 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2158494966 *, Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2158494966 * L_2 = (KeyCollection_t2158494966 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Values()
extern "C" ValueCollection_t3684863813 * Dictionary_2_get_Values_m683714624_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3684863813 * L_0 = (ValueCollection_t3684863813 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3684863813 * L_1 = (ValueCollection_t3684863813 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3684863813 *, Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3684863813 * L_2 = (ValueCollection_t3684863813 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m3477582628_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3684863813 * L_0 = (ValueCollection_t3684863813 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3684863813 * L_1 = (ValueCollection_t3684863813 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3684863813 *, Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3684863813 * L_2 = (ValueCollection_t3684863813 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Values_m1682014402_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3684863813 * L_0 = (ValueCollection_t3684863813 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3684863813 * L_1 = (ValueCollection_t3684863813 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3684863813 *, Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3684863813 * L_2 = (ValueCollection_t3684863813 *)__this->get_values_8();
return L_2;
}
}
// TValue System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Item(TKey)
extern "C" RuntimeObject * Dictionary_2_get_Item_m193757924_gshared (Dictionary_2_t1968819495 * __this, int32_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_get_Item_m193757924_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
int32_t L_0 = ___key0;
NullCheck((Dictionary_2_t1968819495 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_001e;
}
}
{
EntryU5BU5D_t3201103702* L_3 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_4 = V_0;
NullCheck(L_3);
RuntimeObject * L_5 = (RuntimeObject *)((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_4)))->get_value_3();
return L_5;
}
IL_001e:
{
KeyNotFoundException_t2292407383 * L_6 = (KeyNotFoundException_t2292407383 *)il2cpp_codegen_object_new(KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var);
KeyNotFoundException__ctor_m541499307(L_6, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, Dictionary_2_get_Item_m193757924_RuntimeMethod_var);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::set_Item(TKey,TValue)
extern "C" void Dictionary_2_set_Item_m2744859241_gshared (Dictionary_2_t1968819495 * __this, int32_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
int32_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( bool (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, (RuntimeObject *)L_1, (uint8_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Add(TKey,TValue)
extern "C" void Dictionary_2_Add_m1379384250_gshared (Dictionary_2_t1968819495 * __this, int32_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
int32_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( bool (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, (RuntimeObject *)L_1, (uint8_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m3401902714_gshared (Dictionary_2_t1968819495 * __this, KeyValuePair_2_t71524366 ___keyValuePair0, const RuntimeMethod* method)
{
{
int32_t L_0 = KeyValuePair_2_get_Key_m1839753989((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_1 = KeyValuePair_2_get_Value_m3495598764((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, (RuntimeObject *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m1823197466_gshared (Dictionary_2_t1968819495 * __this, KeyValuePair_2_t71524366 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = KeyValuePair_2_get_Key_m1839753989((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1968819495 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0038;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t3201103702* L_4 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m3495598764((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0038;
}
}
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m2915825929_gshared (Dictionary_2_t1968819495 * __this, KeyValuePair_2_t71524366 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = KeyValuePair_2_get_Key_m1839753989((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1968819495 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0046;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t3201103702* L_4 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m3495598764((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0046;
}
}
{
int32_t L_9 = KeyValuePair_2_get_Key_m1839753989((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1968819495 *)__this);
(( bool (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
return (bool)1;
}
IL_0046:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Clear()
extern "C" void Dictionary_2_Clear_m212974362_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (int32_t)__this->get_count_2();
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_005a;
}
}
{
V_0 = (int32_t)0;
goto IL_001a;
}
IL_000d:
{
Int32U5BU5D_t385246372* L_1 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_2 = V_0;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_001a:
{
int32_t L_4 = V_0;
Int32U5BU5D_t385246372* L_5 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000d;
}
}
{
EntryU5BU5D_t3201103702* L_6 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_7 = (int32_t)__this->get_count_2();
Array_Clear_m2231608178(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_6, (int32_t)0, (int32_t)L_7, /*hidden argument*/NULL);
__this->set_freeList_4((-1));
__this->set_count_2(0);
__this->set_freeCount_5(0);
int32_t L_8 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)));
}
IL_005a:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsKey(TKey)
extern "C" bool Dictionary_2_ContainsKey_m2382293057_gshared (Dictionary_2_t1968819495 * __this, int32_t ___key0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___key0;
NullCheck((Dictionary_2_t1968819495 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
return (bool)((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsValue(TValue)
extern "C" bool Dictionary_2_ContainsValue_m3161585138_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject * ___value0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
EqualityComparer_1_t1249878500 * V_1 = NULL;
int32_t V_2 = 0;
{
RuntimeObject * L_0 = ___value0;
if (L_0)
{
goto IL_0049;
}
}
{
V_0 = (int32_t)0;
goto IL_003e;
}
IL_000c:
{
EntryU5BU5D_t3201103702* L_1 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_2 = V_0;
NullCheck(L_1);
int32_t L_3 = (int32_t)((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->get_hashCode_0();
if ((((int32_t)L_3) < ((int32_t)0)))
{
goto IL_003a;
}
}
{
EntryU5BU5D_t3201103702* L_4 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
if (L_6)
{
goto IL_003a;
}
}
{
return (bool)1;
}
IL_003a:
{
int32_t L_7 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_003e:
{
int32_t L_8 = V_0;
int32_t L_9 = (int32_t)__this->get_count_2();
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_000c;
}
}
{
goto IL_0090;
}
IL_0049:
{
EqualityComparer_1_t1249878500 * L_10 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
V_1 = (EqualityComparer_1_t1249878500 *)L_10;
V_2 = (int32_t)0;
goto IL_0087;
}
IL_0053:
{
EntryU5BU5D_t3201103702* L_11 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_12 = V_2;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) < ((int32_t)0)))
{
goto IL_0083;
}
}
{
EqualityComparer_1_t1249878500 * L_14 = V_1;
EntryU5BU5D_t3201103702* L_15 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_16 = V_2;
NullCheck(L_15);
RuntimeObject * L_17 = (RuntimeObject *)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_value_3();
RuntimeObject * L_18 = ___value0;
NullCheck((EqualityComparer_1_t1249878500 *)L_14);
bool L_19 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_14, (RuntimeObject *)L_17, (RuntimeObject *)L_18);
if (!L_19)
{
goto IL_0083;
}
}
{
return (bool)1;
}
IL_0083:
{
int32_t L_20 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
}
IL_0087:
{
int32_t L_21 = V_2;
int32_t L_22 = (int32_t)__this->get_count_2();
if ((((int32_t)L_21) < ((int32_t)L_22)))
{
goto IL_0053;
}
}
IL_0090:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_CopyTo_m1376953690_gshared (Dictionary_2_t1968819495 * __this, KeyValuePair_2U5BU5D_t2652375035* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_CopyTo_m1376953690_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t3201103702* V_1 = NULL;
int32_t V_2 = 0;
{
KeyValuePair_2U5BU5D_t2652375035* L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_CopyTo_m1376953690_RuntimeMethod_var);
}
IL_000e:
{
int32_t L_2 = ___index1;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0018;
}
}
{
int32_t L_3 = ___index1;
KeyValuePair_2U5BU5D_t2652375035* L_4 = ___array0;
NullCheck(L_4);
if ((((int32_t)L_3) <= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length)))))))
{
goto IL_002e;
}
}
IL_0018:
{
int32_t L_5 = ___index1;
int32_t L_6 = L_5;
RuntimeObject * L_7 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_6);
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_8, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_7, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, Dictionary_2_CopyTo_m1376953690_RuntimeMethod_var);
}
IL_002e:
{
KeyValuePair_2U5BU5D_t2652375035* L_9 = ___array0;
NullCheck(L_9);
int32_t L_10 = ___index1;
NullCheck((Dictionary_2_t1968819495 *)__this);
int32_t L_11 = (( int32_t (*) (Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_9)->max_length)))), (int32_t)L_10))) >= ((int32_t)L_11)))
{
goto IL_0046;
}
}
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_12, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_CopyTo_m1376953690_RuntimeMethod_var);
}
IL_0046:
{
int32_t L_13 = (int32_t)__this->get_count_2();
V_0 = (int32_t)L_13;
EntryU5BU5D_t3201103702* L_14 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
V_1 = (EntryU5BU5D_t3201103702*)L_14;
V_2 = (int32_t)0;
goto IL_0094;
}
IL_0058:
{
EntryU5BU5D_t3201103702* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_0090;
}
}
{
KeyValuePair_2U5BU5D_t2652375035* L_18 = ___array0;
int32_t L_19 = ___index1;
int32_t L_20 = (int32_t)L_19;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
EntryU5BU5D_t3201103702* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
int32_t L_23 = (int32_t)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_key_2();
EntryU5BU5D_t3201103702* L_24 = V_1;
int32_t L_25 = V_2;
NullCheck(L_24);
RuntimeObject * L_26 = (RuntimeObject *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_value_3();
KeyValuePair_2_t71524366 L_27;
memset(&L_27, 0, sizeof(L_27));
KeyValuePair_2__ctor_m2118224448((&L_27), (int32_t)L_23, (RuntimeObject *)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
NullCheck(L_18);
(L_18)->SetAt(static_cast<il2cpp_array_size_t>(L_20), (KeyValuePair_2_t71524366 )L_27);
}
IL_0090:
{
int32_t L_28 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_0094:
{
int32_t L_29 = V_2;
int32_t L_30 = V_0;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0058;
}
}
{
return;
}
}
// System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::GetEnumerator()
extern "C" Enumerator_t3923002270 Dictionary_2_GetEnumerator_m1087370259_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3923002270 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2457691374((&L_0), (Dictionary_2_t1968819495 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
return L_0;
}
}
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m4109180678_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3923002270 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2457691374((&L_0), (Dictionary_2_t1968819495 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3923002270 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2_GetObjectData_m887151650_gshared (Dictionary_2_t1968819495 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_GetObjectData_m887151650_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t2652375035* V_0 = NULL;
String_t* G_B4_0 = NULL;
SerializationInfo_t950877179 * G_B4_1 = NULL;
String_t* G_B3_0 = NULL;
SerializationInfo_t950877179 * G_B3_1 = NULL;
int32_t G_B5_0 = 0;
String_t* G_B5_1 = NULL;
SerializationInfo_t950877179 * G_B5_2 = NULL;
{
SerializationInfo_t950877179 * L_0 = ___info0;
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, (String_t*)_stringLiteral79347, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_GetObjectData_m887151650_RuntimeMethod_var);
}
IL_000e:
{
SerializationInfo_t950877179 * L_2 = ___info0;
int32_t L_3 = (int32_t)__this->get_version_3();
NullCheck((SerializationInfo_t950877179 *)L_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, (int32_t)L_3, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_4 = ___info0;
RuntimeObject* L_5 = (RuntimeObject*)__this->get_comparer_6();
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_4);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral892943380, (RuntimeObject *)L_5, (Type_t *)L_7, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_8 = ___info0;
Int32U5BU5D_t385246372* L_9 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
G_B3_0 = _stringLiteral953796230;
G_B3_1 = L_8;
if (!L_9)
{
G_B4_0 = _stringLiteral953796230;
G_B4_1 = L_8;
goto IL_0052;
}
}
{
Int32U5BU5D_t385246372* L_10 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_10);
G_B5_0 = (((int32_t)((int32_t)(((RuntimeArray *)L_10)->max_length))));
G_B5_1 = G_B3_0;
G_B5_2 = G_B3_1;
goto IL_0053;
}
IL_0052:
{
G_B5_0 = 0;
G_B5_1 = G_B4_0;
G_B5_2 = G_B4_1;
}
IL_0053:
{
NullCheck((SerializationInfo_t950877179 *)G_B5_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)G_B5_2, (String_t*)G_B5_1, (int32_t)G_B5_0, /*hidden argument*/NULL);
Int32U5BU5D_t385246372* L_11 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_11)
{
goto IL_008a;
}
}
{
NullCheck((Dictionary_2_t1968819495 *)__this);
int32_t L_12 = (( int32_t (*) (Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
V_0 = (KeyValuePair_2U5BU5D_t2652375035*)((KeyValuePair_2U5BU5D_t2652375035*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 30), (uint32_t)L_12));
KeyValuePair_2U5BU5D_t2652375035* L_13 = V_0;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, KeyValuePair_2U5BU5D_t2652375035*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1968819495 *)__this, (KeyValuePair_2U5BU5D_t2652375035*)L_13, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
SerializationInfo_t950877179 * L_14 = ___info0;
KeyValuePair_2U5BU5D_t2652375035* L_15 = V_0;
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_16, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_14);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_14, (String_t*)_stringLiteral2947573650, (RuntimeObject *)(RuntimeObject *)L_15, (Type_t *)L_17, /*hidden argument*/NULL);
}
IL_008a:
{
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::FindEntry(TKey)
extern "C" int32_t Dictionary_2_FindEntry_m3430524088_gshared (Dictionary_2_t1968819495 * __this, int32_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_FindEntry_m3430524088_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_FindEntry_m3430524088_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_008d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
int32_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (int32_t)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
Int32U5BU5D_t385246372* L_6 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_7 = V_0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_8);
NullCheck(L_6);
int32_t L_9 = ((int32_t)((int32_t)L_7%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length))))));
int32_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = (int32_t)L_10;
goto IL_0089;
}
IL_0042:
{
EntryU5BU5D_t3201103702* L_11 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_12 = V_1;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
int32_t L_14 = V_0;
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
{
goto IL_0077;
}
}
{
RuntimeObject* L_15 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3201103702* L_16 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_17 = V_1;
NullCheck(L_16);
int32_t L_18 = (int32_t)((L_16)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_17)))->get_key_2();
int32_t L_19 = ___key0;
NullCheck((RuntimeObject*)L_15);
bool L_20 = InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_15, (int32_t)L_18, (int32_t)L_19);
if (!L_20)
{
goto IL_0077;
}
}
{
int32_t L_21 = V_1;
return L_21;
}
IL_0077:
{
EntryU5BU5D_t3201103702* L_22 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_23 = V_1;
NullCheck(L_22);
int32_t L_24 = (int32_t)((L_22)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_23)))->get_next_1();
V_1 = (int32_t)L_24;
}
IL_0089:
{
int32_t L_25 = V_1;
if ((((int32_t)L_25) >= ((int32_t)0)))
{
goto IL_0042;
}
}
IL_008d:
{
return (-1);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Initialize(System.Int32)
extern "C" void Dictionary_2_Initialize_m3355103225_gshared (Dictionary_2_t1968819495 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Initialize_m3355103225_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
int32_t L_0 = ___capacity0;
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_GetPrime_m1056954278(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_2)));
V_1 = (int32_t)0;
goto IL_0024;
}
IL_0017:
{
Int32U5BU5D_t385246372* L_3 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_4 = V_1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (int32_t)(-1));
int32_t L_5 = V_1;
V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1));
}
IL_0024:
{
int32_t L_6 = V_1;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
if ((((int32_t)L_6) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length)))))))
{
goto IL_0017;
}
}
{
int32_t L_8 = V_0;
__this->set_entries_1(((EntryU5BU5D_t3201103702*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_8)));
__this->set_freeList_4((-1));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::TryInsert(TKey,TValue,System.Collections.Generic.InsertionBehavior)
extern "C" bool Dictionary_2_TryInsert_m3153830767_gshared (Dictionary_2_t1968819495 * __this, int32_t ___key0, RuntimeObject * ___value1, uint8_t ___behavior2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_TryInsert_m3153830767_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_TryInsert_m3153830767_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (L_2)
{
goto IL_0022;
}
}
{
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_0022:
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
int32_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (int32_t)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_4 = (int32_t)L_11;
goto IL_00e1;
}
IL_0051:
{
EntryU5BU5D_t3201103702* L_12 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_13 = V_4;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_00c9;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3201103702* L_17 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_18 = V_4;
NullCheck(L_17);
int32_t L_19 = (int32_t)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
int32_t L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (int32_t)L_19, (int32_t)L_20);
if (!L_21)
{
goto IL_00c9;
}
}
{
uint8_t L_22 = ___behavior2;
if ((!(((uint32_t)L_22) == ((uint32_t)1))))
{
goto IL_00ad;
}
}
{
EntryU5BU5D_t3201103702* L_23 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_24 = V_4;
NullCheck(L_23);
RuntimeObject * L_25 = ___value1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_value_3(L_25);
int32_t L_26 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
return (bool)1;
}
IL_00ad:
{
uint8_t L_27 = ___behavior2;
if ((!(((uint32_t)L_27) == ((uint32_t)2))))
{
goto IL_00c7;
}
}
{
int32_t L_28 = ___key0;
int32_t L_29 = L_28;
RuntimeObject * L_30 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_29);
String_t* L_31 = SR_Format_m1749913990(NULL /*static, unused*/, (String_t*)_stringLiteral1494472686, (RuntimeObject *)L_30, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_32 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_32, (String_t*)L_31, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_32, NULL, Dictionary_2_TryInsert_m3153830767_RuntimeMethod_var);
}
IL_00c7:
{
return (bool)0;
}
IL_00c9:
{
int32_t L_33 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t3201103702* L_34 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_35 = V_4;
NullCheck(L_34);
int32_t L_36 = (int32_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_next_1();
V_4 = (int32_t)L_36;
}
IL_00e1:
{
int32_t L_37 = V_4;
if ((((int32_t)L_37) >= ((int32_t)0)))
{
goto IL_0051;
}
}
{
int32_t L_38 = (int32_t)__this->get_freeCount_5();
if ((((int32_t)L_38) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t L_39 = (int32_t)__this->get_freeList_4();
V_3 = (int32_t)L_39;
EntryU5BU5D_t3201103702* L_40 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_41 = V_3;
NullCheck(L_40);
int32_t L_42 = (int32_t)((L_40)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_41)))->get_next_1();
__this->set_freeList_4(L_42);
int32_t L_43 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_subtract((int32_t)L_43, (int32_t)1)));
goto IL_0156;
}
IL_0120:
{
int32_t L_44 = (int32_t)__this->get_count_2();
EntryU5BU5D_t3201103702* L_45 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
NullCheck(L_45);
if ((!(((uint32_t)L_44) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_45)->max_length))))))))
{
goto IL_0141;
}
}
{
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36)->methodPointer)((Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36));
int32_t L_46 = V_0;
Int32U5BU5D_t385246372* L_47 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_47);
V_1 = (int32_t)((int32_t)((int32_t)L_46%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_47)->max_length))))));
}
IL_0141:
{
int32_t L_48 = (int32_t)__this->get_count_2();
V_3 = (int32_t)L_48;
int32_t L_49 = (int32_t)__this->get_count_2();
__this->set_count_2(((int32_t)il2cpp_codegen_add((int32_t)L_49, (int32_t)1)));
}
IL_0156:
{
EntryU5BU5D_t3201103702* L_50 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_51 = V_3;
NullCheck(L_50);
int32_t L_52 = V_0;
((L_50)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_51)))->set_hashCode_0(L_52);
EntryU5BU5D_t3201103702* L_53 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_54 = V_3;
NullCheck(L_53);
Int32U5BU5D_t385246372* L_55 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_56 = V_1;
NullCheck(L_55);
int32_t L_57 = L_56;
int32_t L_58 = (L_55)->GetAt(static_cast<il2cpp_array_size_t>(L_57));
((L_53)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_54)))->set_next_1(L_58);
EntryU5BU5D_t3201103702* L_59 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_60 = V_3;
NullCheck(L_59);
int32_t L_61 = ___key0;
((L_59)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_60)))->set_key_2(L_61);
EntryU5BU5D_t3201103702* L_62 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_63 = V_3;
NullCheck(L_62);
RuntimeObject * L_64 = ___value1;
((L_62)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_63)))->set_value_3(L_64);
Int32U5BU5D_t385246372* L_65 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_66 = V_1;
int32_t L_67 = V_3;
NullCheck(L_65);
(L_65)->SetAt(static_cast<il2cpp_array_size_t>(L_66), (int32_t)L_67);
int32_t L_68 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_68, (int32_t)1)));
int32_t L_69 = V_2;
if ((((int32_t)L_69) <= ((int32_t)((int32_t)100))))
{
goto IL_01ed;
}
}
{
RuntimeObject* L_70 = (RuntimeObject*)__this->get_comparer_6();
if (!((NonRandomizedStringEqualityComparer_t1082005352 *)IsInst((RuntimeObject*)L_70, NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var)))
{
goto IL_01ed;
}
}
{
EqualityComparer_1_t17223025 * L_71 = EqualityComparer_1_get_Default_m2310016383(NULL /*static, unused*/, /*hidden argument*/EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_71, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
EntryU5BU5D_t3201103702* L_72 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
NullCheck(L_72);
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_72)->max_length)))), (bool)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
}
IL_01ed:
{
return (bool)1;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::OnDeserialization(System.Object)
extern "C" void Dictionary_2_OnDeserialization_m4209543208_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject * ___sender0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_OnDeserialization_m4209543208_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SerializationInfo_t950877179 * V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
KeyValuePair_2U5BU5D_t2652375035* V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_TryGetValue_m1618998192((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 **)(SerializationInfo_t950877179 **)(&V_0), /*hidden argument*/ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var);
SerializationInfo_t950877179 * L_1 = V_0;
if (L_1)
{
goto IL_0012;
}
}
{
return;
}
IL_0012:
{
SerializationInfo_t950877179 * L_2 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_2);
int32_t L_3 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, /*hidden argument*/NULL);
V_1 = (int32_t)L_3;
SerializationInfo_t950877179 * L_4 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_4);
int32_t L_5 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral953796230, /*hidden argument*/NULL);
V_2 = (int32_t)L_5;
SerializationInfo_t950877179 * L_6 = V_0;
RuntimeTypeHandle_t3027515415 L_7 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_8 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_7, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_6);
RuntimeObject * L_9 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_6, (String_t*)_stringLiteral892943380, (Type_t *)L_8, /*hidden argument*/NULL);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_9, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
int32_t L_10 = V_2;
if (!L_10)
{
goto IL_010c;
}
}
{
int32_t L_11 = V_2;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_11)));
V_4 = (int32_t)0;
goto IL_0071;
}
IL_0061:
{
Int32U5BU5D_t385246372* L_12 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_13 = V_4;
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)(-1));
int32_t L_14 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0071:
{
int32_t L_15 = V_4;
Int32U5BU5D_t385246372* L_16 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0061;
}
}
{
int32_t L_17 = V_2;
__this->set_entries_1(((EntryU5BU5D_t3201103702*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_17)));
__this->set_freeList_4((-1));
SerializationInfo_t950877179 * L_18 = V_0;
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_19, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_18);
RuntimeObject * L_21 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_18, (String_t*)_stringLiteral2947573650, (Type_t *)L_20, /*hidden argument*/NULL);
V_3 = (KeyValuePair_2U5BU5D_t2652375035*)((KeyValuePair_2U5BU5D_t2652375035*)Castclass((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t2652375035* L_22 = V_3;
if (L_22)
{
goto IL_00b9;
}
}
{
SerializationException_t3941511869 * L_23 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_23, (String_t*)_stringLiteral998597917, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_23, NULL, Dictionary_2_OnDeserialization_m4209543208_RuntimeMethod_var);
}
IL_00b9:
{
V_5 = (int32_t)0;
goto IL_0103;
}
IL_00be:
{
KeyValuePair_2U5BU5D_t2652375035* L_24 = V_3;
int32_t L_25 = V_5;
NullCheck(L_24);
int32_t L_26 = KeyValuePair_2_get_Key_m1839753989((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
goto IL_00dd;
}
{
SerializationException_t3941511869 * L_27 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_27, (String_t*)_stringLiteral3616747365, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_27, NULL, Dictionary_2_OnDeserialization_m4209543208_RuntimeMethod_var);
}
IL_00dd:
{
KeyValuePair_2U5BU5D_t2652375035* L_28 = V_3;
int32_t L_29 = V_5;
NullCheck(L_28);
int32_t L_30 = KeyValuePair_2_get_Key_m1839753989((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
KeyValuePair_2U5BU5D_t2652375035* L_31 = V_3;
int32_t L_32 = V_5;
NullCheck(L_31);
RuntimeObject * L_33 = KeyValuePair_2_get_Value_m3495598764((KeyValuePair_2_t71524366 *)(KeyValuePair_2_t71524366 *)((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_30, (RuntimeObject *)L_33, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
int32_t L_34 = V_5;
V_5 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_34, (int32_t)1));
}
IL_0103:
{
int32_t L_35 = V_5;
KeyValuePair_2U5BU5D_t2652375035* L_36 = V_3;
NullCheck(L_36);
if ((((int32_t)L_35) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_36)->max_length)))))))
{
goto IL_00be;
}
}
{
goto IL_0113;
}
IL_010c:
{
__this->set_buckets_0((Int32U5BU5D_t385246372*)NULL);
}
IL_0113:
{
int32_t L_37 = V_1;
__this->set_version_3(L_37);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_38 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_38);
ConditionalWeakTable_2_Remove_m2013031576((ConditionalWeakTable_2_t1452810305 *)L_38, (RuntimeObject *)__this, /*hidden argument*/ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Resize()
extern "C" void Dictionary_2_Resize_m1156965638_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m1156965638_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = (int32_t)__this->get_count_2();
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_ExpandPrime_m2180508331(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_1, (bool)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Resize(System.Int32,System.Boolean)
extern "C" void Dictionary_2_Resize_m1781717824_gshared (Dictionary_2_t1968819495 * __this, int32_t ___newSize0, bool ___forceNewHashCodes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m1781717824_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Int32U5BU5D_t385246372* V_0 = NULL;
EntryU5BU5D_t3201103702* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t L_0 = ___newSize0;
V_0 = (Int32U5BU5D_t385246372*)((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_0));
V_2 = (int32_t)0;
goto IL_0013;
}
IL_000b:
{
Int32U5BU5D_t385246372* L_1 = V_0;
int32_t L_2 = V_2;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_0013:
{
int32_t L_4 = V_2;
Int32U5BU5D_t385246372* L_5 = V_0;
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000b;
}
}
{
int32_t L_6 = ___newSize0;
V_1 = (EntryU5BU5D_t3201103702*)((EntryU5BU5D_t3201103702*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_6));
EntryU5BU5D_t3201103702* L_7 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
EntryU5BU5D_t3201103702* L_8 = V_1;
int32_t L_9 = (int32_t)__this->get_count_2();
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_7, (int32_t)0, (RuntimeArray *)(RuntimeArray *)L_8, (int32_t)0, (int32_t)L_9, /*hidden argument*/NULL);
bool L_10 = ___forceNewHashCodes1;
if (!L_10)
{
goto IL_0080;
}
}
{
V_3 = (int32_t)0;
goto IL_0077;
}
IL_003b:
{
EntryU5BU5D_t3201103702* L_11 = V_1;
int32_t L_12 = V_3;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) == ((int32_t)(-1))))
{
goto IL_0073;
}
}
{
EntryU5BU5D_t3201103702* L_14 = V_1;
int32_t L_15 = V_3;
NullCheck(L_14);
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3201103702* L_17 = V_1;
int32_t L_18 = V_3;
NullCheck(L_17);
int32_t L_19 = (int32_t)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
NullCheck((RuntimeObject*)L_16);
int32_t L_20 = InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (int32_t)L_19);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->set_hashCode_0(((int32_t)((int32_t)L_20&(int32_t)((int32_t)2147483647LL))));
}
IL_0073:
{
int32_t L_21 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1));
}
IL_0077:
{
int32_t L_22 = V_3;
int32_t L_23 = (int32_t)__this->get_count_2();
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_003b;
}
}
IL_0080:
{
V_4 = (int32_t)0;
goto IL_00c3;
}
IL_0085:
{
EntryU5BU5D_t3201103702* L_24 = V_1;
int32_t L_25 = V_4;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_hashCode_0();
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00bd;
}
}
{
EntryU5BU5D_t3201103702* L_27 = V_1;
int32_t L_28 = V_4;
NullCheck(L_27);
int32_t L_29 = (int32_t)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->get_hashCode_0();
int32_t L_30 = ___newSize0;
V_5 = (int32_t)((int32_t)((int32_t)L_29%(int32_t)L_30));
EntryU5BU5D_t3201103702* L_31 = V_1;
int32_t L_32 = V_4;
NullCheck(L_31);
Int32U5BU5D_t385246372* L_33 = V_0;
int32_t L_34 = V_5;
NullCheck(L_33);
int32_t L_35 = L_34;
int32_t L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32)))->set_next_1(L_36);
Int32U5BU5D_t385246372* L_37 = V_0;
int32_t L_38 = V_5;
int32_t L_39 = V_4;
NullCheck(L_37);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(L_38), (int32_t)L_39);
}
IL_00bd:
{
int32_t L_40 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
}
IL_00c3:
{
int32_t L_41 = V_4;
int32_t L_42 = (int32_t)__this->get_count_2();
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_0085;
}
}
{
Int32U5BU5D_t385246372* L_43 = V_0;
__this->set_buckets_0(L_43);
EntryU5BU5D_t3201103702* L_44 = V_1;
__this->set_entries_1(L_44);
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Remove(TKey)
extern "C" bool Dictionary_2_Remove_m1344073393_gshared (Dictionary_2_t1968819495 * __this, int32_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Remove_m1344073393_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_Remove_m1344073393_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_015d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
int32_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (int32_t)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)(-1);
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_3 = (int32_t)L_11;
goto IL_0156;
}
IL_004c:
{
EntryU5BU5D_t3201103702* L_12 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_13 = V_3;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0142;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3201103702* L_17 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_18 = V_3;
NullCheck(L_17);
int32_t L_19 = (int32_t)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
int32_t L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (int32_t)L_19, (int32_t)L_20);
if (!L_21)
{
goto IL_0142;
}
}
{
int32_t L_22 = V_2;
if ((((int32_t)L_22) >= ((int32_t)0)))
{
goto IL_00a4;
}
}
{
Int32U5BU5D_t385246372* L_23 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_24 = V_1;
EntryU5BU5D_t3201103702* L_25 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_26 = V_3;
NullCheck(L_25);
int32_t L_27 = (int32_t)((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->get_next_1();
NullCheck(L_23);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(L_24), (int32_t)L_27);
goto IL_00c6;
}
IL_00a4:
{
EntryU5BU5D_t3201103702* L_28 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_29 = V_2;
NullCheck(L_28);
EntryU5BU5D_t3201103702* L_30 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_31 = V_3;
NullCheck(L_30);
int32_t L_32 = (int32_t)((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->get_next_1();
((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->set_next_1(L_32);
}
IL_00c6:
{
EntryU5BU5D_t3201103702* L_33 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_34 = V_3;
NullCheck(L_33);
((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->set_hashCode_0((-1));
EntryU5BU5D_t3201103702* L_35 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_36 = V_3;
NullCheck(L_35);
int32_t L_37 = (int32_t)__this->get_freeList_4();
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->set_next_1(L_37);
EntryU5BU5D_t3201103702* L_38 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
int32_t* L_40 = (int32_t*)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_address_of_key_2();
il2cpp_codegen_initobj(L_40, sizeof(int32_t));
EntryU5BU5D_t3201103702* L_41 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_42 = V_3;
NullCheck(L_41);
RuntimeObject ** L_43 = (RuntimeObject **)((L_41)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_42)))->get_address_of_value_3();
il2cpp_codegen_initobj(L_43, sizeof(RuntimeObject *));
int32_t L_44 = V_3;
__this->set_freeList_4(L_44);
int32_t L_45 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1)));
int32_t L_46 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1)));
return (bool)1;
}
IL_0142:
{
int32_t L_47 = V_3;
V_2 = (int32_t)L_47;
EntryU5BU5D_t3201103702* L_48 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = (int32_t)((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->get_next_1();
V_3 = (int32_t)L_50;
}
IL_0156:
{
int32_t L_51 = V_3;
if ((((int32_t)L_51) >= ((int32_t)0)))
{
goto IL_004c;
}
}
IL_015d:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::TryGetValue(TKey,TValue&)
extern "C" bool Dictionary_2_TryGetValue_m1190268628_gshared (Dictionary_2_t1968819495 * __this, int32_t ___key0, RuntimeObject ** ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = ___key0;
NullCheck((Dictionary_2_t1968819495 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0025;
}
}
{
RuntimeObject ** L_3 = ___value1;
EntryU5BU5D_t3201103702* L_4 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
*(RuntimeObject **)L_3 = L_6;
Il2CppCodeGenWriteBarrier((RuntimeObject **)L_3, L_6);
return (bool)1;
}
IL_0025:
{
RuntimeObject ** L_7 = ___value1;
il2cpp_codegen_initobj(L_7, sizeof(RuntimeObject *));
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::TryAdd(TKey,TValue)
extern "C" bool Dictionary_2_TryAdd_m1325058802_gshared (Dictionary_2_t1968819495 * __this, int32_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
int32_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t1968819495 *)__this);
bool L_2 = (( bool (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_0, (RuntimeObject *)L_1, (uint8_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1491257236_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m1123458898_gshared (Dictionary_2_t1968819495 * __this, KeyValuePair_2U5BU5D_t2652375035* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
{
KeyValuePair_2U5BU5D_t2652375035* L_0 = ___array0;
int32_t L_1 = ___index1;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, KeyValuePair_2U5BU5D_t2652375035*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1968819495 *)__this, (KeyValuePair_2U5BU5D_t2652375035*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32)
extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_gshared (Dictionary_2_t1968819495 * __this, RuntimeArray * ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t2652375035* V_0 = NULL;
DictionaryEntryU5BU5D_t4217117203* V_1 = NULL;
EntryU5BU5D_t3201103702* V_2 = NULL;
int32_t V_3 = 0;
ObjectU5BU5D_t2843939325* V_4 = NULL;
int32_t V_5 = 0;
EntryU5BU5D_t3201103702* V_6 = NULL;
int32_t V_7 = 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);
{
RuntimeArray * L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_RuntimeMethod_var);
}
IL_000e:
{
RuntimeArray * L_2 = ___array0;
NullCheck((RuntimeArray *)L_2);
int32_t L_3 = Array_get_Rank_m3448755881((RuntimeArray *)L_2, /*hidden argument*/NULL);
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0027;
}
}
{
ArgumentException_t132251570 * L_4 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_4, (String_t*)_stringLiteral915403387, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_RuntimeMethod_var);
}
IL_0027:
{
RuntimeArray * L_5 = ___array0;
NullCheck((RuntimeArray *)L_5);
int32_t L_6 = Array_GetLowerBound_m2045984623((RuntimeArray *)L_5, (int32_t)0, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0040;
}
}
{
ArgumentException_t132251570 * L_7 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_7, (String_t*)_stringLiteral2590862907, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_RuntimeMethod_var);
}
IL_0040:
{
int32_t L_8 = ___index1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_004d;
}
}
{
int32_t L_9 = ___index1;
RuntimeArray * L_10 = ___array0;
NullCheck((RuntimeArray *)L_10);
int32_t L_11 = Array_get_Length_m21610649((RuntimeArray *)L_10, /*hidden argument*/NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0063;
}
}
IL_004d:
{
int32_t L_12 = ___index1;
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_13);
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_15, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_14, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_RuntimeMethod_var);
}
IL_0063:
{
RuntimeArray * L_16 = ___array0;
NullCheck((RuntimeArray *)L_16);
int32_t L_17 = Array_get_Length_m21610649((RuntimeArray *)L_16, /*hidden argument*/NULL);
int32_t L_18 = ___index1;
NullCheck((Dictionary_2_t1968819495 *)__this);
int32_t L_19 = (( int32_t (*) (Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)L_18))) >= ((int32_t)L_19)))
{
goto IL_007e;
}
}
{
ArgumentException_t132251570 * L_20 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_20, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_20, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_RuntimeMethod_var);
}
IL_007e:
{
RuntimeArray * L_21 = ___array0;
V_0 = (KeyValuePair_2U5BU5D_t2652375035*)((KeyValuePair_2U5BU5D_t2652375035*)IsInst((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t2652375035* L_22 = V_0;
if (!L_22)
{
goto IL_0091;
}
}
{
KeyValuePair_2U5BU5D_t2652375035* L_23 = V_0;
int32_t L_24 = ___index1;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, KeyValuePair_2U5BU5D_t2652375035*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1968819495 *)__this, (KeyValuePair_2U5BU5D_t2652375035*)L_23, (int32_t)L_24, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
IL_0091:
{
RuntimeArray * L_25 = ___array0;
if (!((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_25, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var)))
{
goto IL_00fb;
}
}
{
RuntimeArray * L_26 = ___array0;
V_1 = (DictionaryEntryU5BU5D_t4217117203*)((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_26, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var));
EntryU5BU5D_t3201103702* L_27 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
V_2 = (EntryU5BU5D_t3201103702*)L_27;
V_3 = (int32_t)0;
goto IL_00f1;
}
IL_00ab:
{
EntryU5BU5D_t3201103702* L_28 = V_2;
int32_t L_29 = V_3;
NullCheck(L_28);
int32_t L_30 = (int32_t)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->get_hashCode_0();
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_00ed;
}
}
{
DictionaryEntryU5BU5D_t4217117203* L_31 = V_1;
int32_t L_32 = ___index1;
int32_t L_33 = (int32_t)L_32;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t3201103702* L_34 = V_2;
int32_t L_35 = V_3;
NullCheck(L_34);
int32_t L_36 = (int32_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_key_2();
int32_t L_37 = L_36;
RuntimeObject * L_38 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_37);
EntryU5BU5D_t3201103702* L_39 = V_2;
int32_t L_40 = V_3;
NullCheck(L_39);
RuntimeObject * L_41 = (RuntimeObject *)((L_39)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_40)))->get_value_3();
DictionaryEntry_t3123975638 L_42;
memset(&L_42, 0, sizeof(L_42));
DictionaryEntry__ctor_m2585376310((&L_42), (RuntimeObject *)L_38, (RuntimeObject *)L_41, /*hidden argument*/NULL);
NullCheck(L_31);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (DictionaryEntry_t3123975638 )L_42);
}
IL_00ed:
{
int32_t L_43 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_43, (int32_t)1));
}
IL_00f1:
{
int32_t L_44 = V_3;
int32_t L_45 = (int32_t)__this->get_count_2();
if ((((int32_t)L_44) < ((int32_t)L_45)))
{
goto IL_00ab;
}
}
{
return;
}
IL_00fb:
{
RuntimeArray * L_46 = ___array0;
V_4 = (ObjectU5BU5D_t2843939325*)((ObjectU5BU5D_t2843939325*)IsInst((RuntimeObject*)L_46, ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var));
ObjectU5BU5D_t2843939325* L_47 = V_4;
if (L_47)
{
goto IL_0117;
}
}
{
ArgumentException_t132251570 * L_48 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_48, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_48, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_RuntimeMethod_var);
}
IL_0117:
{
}
IL_0118:
try
{ // begin try (depth: 1)
{
int32_t L_49 = (int32_t)__this->get_count_2();
V_5 = (int32_t)L_49;
EntryU5BU5D_t3201103702* L_50 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
V_6 = (EntryU5BU5D_t3201103702*)L_50;
V_7 = (int32_t)0;
goto IL_0173;
}
IL_012d:
{
EntryU5BU5D_t3201103702* L_51 = V_6;
int32_t L_52 = V_7;
NullCheck(L_51);
int32_t L_53 = (int32_t)((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->get_hashCode_0();
if ((((int32_t)L_53) < ((int32_t)0)))
{
goto IL_016d;
}
}
IL_013e:
{
ObjectU5BU5D_t2843939325* L_54 = V_4;
int32_t L_55 = ___index1;
int32_t L_56 = (int32_t)L_55;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_56, (int32_t)1));
EntryU5BU5D_t3201103702* L_57 = V_6;
int32_t L_58 = V_7;
NullCheck(L_57);
int32_t L_59 = (int32_t)((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->get_key_2();
EntryU5BU5D_t3201103702* L_60 = V_6;
int32_t L_61 = V_7;
NullCheck(L_60);
RuntimeObject * L_62 = (RuntimeObject *)((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->get_value_3();
KeyValuePair_2_t71524366 L_63;
memset(&L_63, 0, sizeof(L_63));
KeyValuePair_2__ctor_m2118224448((&L_63), (int32_t)L_59, (RuntimeObject *)L_62, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
KeyValuePair_2_t71524366 L_64 = L_63;
RuntimeObject * L_65 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 25), &L_64);
NullCheck(L_54);
ArrayElementTypeCheck (L_54, L_65);
(L_54)->SetAt(static_cast<il2cpp_array_size_t>(L_56), (RuntimeObject *)L_65);
}
IL_016d:
{
int32_t L_66 = V_7;
V_7 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1));
}
IL_0173:
{
int32_t L_67 = V_7;
int32_t L_68 = V_5;
if ((((int32_t)L_67) < ((int32_t)L_68)))
{
goto IL_012d;
}
}
IL_0179:
{
goto IL_018c;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_017b;
throw e;
}
CATCH_017b:
{ // begin catch(System.ArrayTypeMismatchException)
ArgumentException_t132251570 * L_69 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_69, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_69, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3143696177_RuntimeMethod_var);
} // end catch (depth: 1)
IL_018c:
{
return;
}
}
// System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IEnumerable.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m3993325289_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3923002270 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2457691374((&L_0), (Dictionary_2_t1968819495 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3923002270 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.ICollection.get_IsSynchronized()
extern "C" bool Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m2067840963_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.ICollection.get_SyncRoot()
extern "C" RuntimeObject * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2020472285_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2020472285_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get__syncRoot_9();
if (L_0)
{
goto IL_001a;
}
}
{
RuntimeObject ** L_1 = (RuntimeObject **)__this->get_address_of__syncRoot_9();
RuntimeObject * L_2 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_2, /*hidden argument*/NULL);
InterlockedCompareExchangeImpl<RuntimeObject *>((RuntimeObject **)(RuntimeObject **)L_1, (RuntimeObject *)L_2, (RuntimeObject *)NULL);
}
IL_001a:
{
RuntimeObject * L_3 = (RuntimeObject *)__this->get__syncRoot_9();
return L_3;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_IDictionary_get_IsReadOnly_m2725301655_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Keys_m1538254202_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1968819495 *)__this);
KeyCollection_t2158494966 * L_0 = (( KeyCollection_t2158494966 * (*) (Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39)->methodPointer)((Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39));
return L_0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Values_m3557964467_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1968819495 *)__this);
ValueCollection_t3684863813 * L_0 = (( ValueCollection_t3684863813 * (*) (Dictionary_2_t1968819495 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40)->methodPointer)((Dictionary_2_t1968819495 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40));
return L_0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.get_Item(System.Object)
extern "C" RuntimeObject * Dictionary_2_System_Collections_IDictionary_get_Item_m787919239_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0030;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1968819495 *)__this);
int32_t L_3 = (( int32_t (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)((*(int32_t*)((int32_t*)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_3;
int32_t L_4 = V_0;
if ((((int32_t)L_4) < ((int32_t)0)))
{
goto IL_0030;
}
}
{
EntryU5BU5D_t3201103702* L_5 = (EntryU5BU5D_t3201103702*)__this->get_entries_1();
int32_t L_6 = V_0;
NullCheck(L_5);
RuntimeObject * L_7 = (RuntimeObject *)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->get_value_3();
return L_7;
}
IL_0030:
{
return NULL;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.set_Item(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m439946704_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_set_Item_m439946704_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
int32_t V_1 = 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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m439946704_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m439946704_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (int32_t)((*(int32_t*)((int32_t*)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
int32_t L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m439946704_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m439946704_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::IsCompatibleKey(System.Object)
extern "C" bool Dictionary_2_IsCompatibleKey_m29634657_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_IsCompatibleKey_m29634657_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_IsCompatibleKey_m29634657_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___key0;
return (bool)((!(((RuntimeObject*)(RuntimeObject *)((RuntimeObject *)IsInst((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 33)))) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.Add(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m776121614_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_Add_m776121614_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
int32_t V_1 = 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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_Add_m776121614_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_Add_m776121614_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (int32_t)((*(int32_t*)((int32_t*)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
int32_t L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( void (*) (Dictionary_2_t1968819495 *, int32_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_Add_m776121614_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_Add_m776121614_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.Contains(System.Object)
extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m3647471635_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1968819495 *)__this);
bool L_3 = (( bool (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)((*(int32_t*)((int32_t*)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46));
return L_3;
}
IL_0015:
{
return (bool)0;
}
}
// System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_GetEnumerator_m751864982_gshared (Dictionary_2_t1968819495 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3923002270 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2457691374((&L_0), (Dictionary_2_t1968819495 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3923002270 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.Remove(System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m1909892810_gshared (Dictionary_2_t1968819495 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1968819495 *)__this);
(( bool (*) (Dictionary_2_t1968819495 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t1968819495 *)__this, (int32_t)((*(int32_t*)((int32_t*)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
}
IL_0015:
{
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 System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::.ctor()
extern "C" void Dictionary_2__ctor_m1746769275_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int32_t)0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::.ctor(System.Int32)
extern "C" void Dictionary_2__ctor_m1148204195_gshared (Dictionary_2_t4142745948 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___capacity0;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int32_t)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m3782212155_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject* ___comparer0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___comparer0;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int32_t)0, (RuntimeObject*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::.ctor(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m3986026798_gshared (Dictionary_2_t4142745948 * __this, int32_t ___capacity0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m3986026798_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* G_B6_0 = NULL;
Dictionary_2_t4142745948 * G_B6_1 = NULL;
RuntimeObject* G_B5_0 = NULL;
Dictionary_2_t4142745948 * G_B5_1 = NULL;
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
int32_t L_0 = ___capacity0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0020;
}
}
{
int32_t L_1 = ___capacity0;
int32_t L_2 = L_1;
RuntimeObject * L_3 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_2);
ArgumentOutOfRangeException_t777629997 * L_4 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_4, (String_t*)_stringLiteral3623012086, (RuntimeObject *)L_3, (String_t*)_stringLiteral2892689725, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2__ctor_m3986026798_RuntimeMethod_var);
}
IL_0020:
{
int32_t L_5 = ___capacity0;
if ((((int32_t)L_5) <= ((int32_t)0)))
{
goto IL_002b;
}
}
{
int32_t L_6 = ___capacity0;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_002b:
{
RuntimeObject* L_7 = ___comparer1;
RuntimeObject* L_8 = (RuntimeObject*)L_7;
G_B5_0 = L_8;
G_B5_1 = ((Dictionary_2_t4142745948 *)(__this));
if (L_8)
{
G_B6_0 = L_8;
G_B6_1 = ((Dictionary_2_t4142745948 *)(__this));
goto IL_0036;
}
}
{
EqualityComparer_1_t1906339640 * L_9 = (( EqualityComparer_1_t1906339640 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2));
G_B6_0 = ((RuntimeObject*)(L_9));
G_B6_1 = ((Dictionary_2_t4142745948 *)(G_B5_1));
}
IL_0036:
{
NullCheck(G_B6_1);
G_B6_1->set_comparer_6(G_B6_0);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>)
extern "C" void Dictionary_2__ctor_m1801532182_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___dictionary0;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4)->methodPointer)((Dictionary_2_t4142745948 *)__this, (RuntimeObject*)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m2081172397_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject* ___dictionary0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m2081172397_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t72598189* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
KeyValuePair_2_t2245450819 V_4;
memset(&V_4, 0, sizeof(V_4));
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);
Dictionary_2_t4142745948 * G_B2_0 = NULL;
Dictionary_2_t4142745948 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
Dictionary_2_t4142745948 * G_B3_1 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
G_B1_0 = ((Dictionary_2_t4142745948 *)(__this));
if (L_0)
{
G_B2_0 = ((Dictionary_2_t4142745948 *)(__this));
goto IL_0007;
}
}
{
G_B3_0 = 0;
G_B3_1 = ((Dictionary_2_t4142745948 *)(G_B1_0));
goto IL_000d;
}
IL_0007:
{
RuntimeObject* L_1 = ___dictionary0;
NullCheck((RuntimeObject*)L_1);
int32_t L_2 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>>::get_Count() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 5), (RuntimeObject*)L_1);
G_B3_0 = L_2;
G_B3_1 = ((Dictionary_2_t4142745948 *)(G_B2_0));
}
IL_000d:
{
RuntimeObject* L_3 = ___comparer1;
NullCheck((Dictionary_2_t4142745948 *)G_B3_1);
(( void (*) (Dictionary_2_t4142745948 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t4142745948 *)G_B3_1, (int32_t)G_B3_0, (RuntimeObject*)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
RuntimeObject* L_4 = ___dictionary0;
if (L_4)
{
goto IL_0021;
}
}
{
ArgumentNullException_t1615371798 * L_5 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_5, (String_t*)_stringLiteral2957729587, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, Dictionary_2__ctor_m2081172397_RuntimeMethod_var);
}
IL_0021:
{
RuntimeObject* L_6 = ___dictionary0;
NullCheck((RuntimeObject *)L_6);
Type_t * L_7 = Object_GetType_m88164663((RuntimeObject *)L_6, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_8 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 6)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_9 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_8, /*hidden argument*/NULL);
bool L_10 = Type_op_Equality_m2683486427(NULL /*static, unused*/, (Type_t *)L_7, (Type_t *)L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0085;
}
}
{
RuntimeObject* L_11 = ___dictionary0;
Dictionary_2_t4142745948 * L_12 = (Dictionary_2_t4142745948 *)((Dictionary_2_t4142745948 *)Castclass((RuntimeObject*)L_11, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 7)));
NullCheck(L_12);
int32_t L_13 = (int32_t)L_12->get_count_2();
V_0 = (int32_t)L_13;
NullCheck(L_12);
EntryU5BU5D_t72598189* L_14 = (EntryU5BU5D_t72598189*)L_12->get_entries_1();
V_1 = (EntryU5BU5D_t72598189*)L_14;
V_2 = (int32_t)0;
goto IL_0080;
}
IL_004f:
{
EntryU5BU5D_t72598189* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007c;
}
}
{
EntryU5BU5D_t72598189* L_18 = V_1;
int32_t L_19 = V_2;
NullCheck(L_18);
int64_t L_20 = (int64_t)((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->get_key_2();
EntryU5BU5D_t72598189* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
RuntimeObject * L_23 = (RuntimeObject *)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_value_3();
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int64_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_20, (RuntimeObject *)L_23, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_007c:
{
int32_t L_24 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0080:
{
int32_t L_25 = V_2;
int32_t L_26 = V_0;
if ((((int32_t)L_25) < ((int32_t)L_26)))
{
goto IL_004f;
}
}
{
return;
}
IL_0085:
{
RuntimeObject* L_27 = ___dictionary0;
NullCheck((RuntimeObject*)L_27);
RuntimeObject* L_28 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 9), (RuntimeObject*)L_27);
V_3 = (RuntimeObject*)L_28;
}
IL_008c:
try
{ // begin try (depth: 1)
{
goto IL_00aa;
}
IL_008e:
{
RuntimeObject* L_29 = V_3;
NullCheck((RuntimeObject*)L_29);
KeyValuePair_2_t2245450819 L_30 = InterfaceFuncInvoker0< KeyValuePair_2_t2245450819 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int64,System.Object>>::get_Current() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 10), (RuntimeObject*)L_29);
V_4 = (KeyValuePair_2_t2245450819 )L_30;
int64_t L_31 = KeyValuePair_2_get_Key_m635992374((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_32 = KeyValuePair_2_get_Value_m392474074((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int64_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_31, (RuntimeObject *)L_32, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_00aa:
{
RuntimeObject* L_33 = V_3;
NullCheck((RuntimeObject*)L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, (RuntimeObject*)L_33);
if (L_34)
{
goto IL_008e;
}
}
IL_00b2:
{
IL2CPP_LEAVE(0xBE, FINALLY_00b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b4;
}
FINALLY_00b4:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_3;
if (!L_35)
{
goto IL_00bd;
}
}
IL_00b7:
{
RuntimeObject* L_36 = V_3;
NullCheck((RuntimeObject*)L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, (RuntimeObject*)L_36);
}
IL_00bd:
{
IL2CPP_END_FINALLY(180)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(180)
{
IL2CPP_JUMP_TBL(0xBE, IL_00be)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00be:
{
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2__ctor_m2709410819_gshared (Dictionary_2_t4142745948 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m2709410819_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_1 = ___info0;
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_Add_m4098691448((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 *)L_1, /*hidden argument*/ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var);
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::get_Count()
extern "C" int32_t Dictionary_2_get_Count_m1385621983_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_count_2();
int32_t L_1 = (int32_t)__this->get_freeCount_5();
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1));
}
}
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::get_Keys()
extern "C" KeyCollection_t37454123 * Dictionary_2_get_Keys_m2740173839_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t37454123 * L_0 = (KeyCollection_t37454123 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t37454123 * L_1 = (KeyCollection_t37454123 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t37454123 *, Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t37454123 * L_2 = (KeyCollection_t37454123 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m3150523468_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t37454123 * L_0 = (KeyCollection_t37454123 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t37454123 * L_1 = (KeyCollection_t37454123 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t37454123 *, Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t37454123 * L_2 = (KeyCollection_t37454123 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TKey> System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Keys_m3582853678_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t37454123 * L_0 = (KeyCollection_t37454123 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t37454123 * L_1 = (KeyCollection_t37454123 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t37454123 *, Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t37454123 * L_2 = (KeyCollection_t37454123 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::get_Values()
extern "C" ValueCollection_t1563822970 * Dictionary_2_get_Values_m941578318_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t1563822970 * L_0 = (ValueCollection_t1563822970 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t1563822970 * L_1 = (ValueCollection_t1563822970 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t1563822970 *, Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t1563822970 * L_2 = (ValueCollection_t1563822970 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m4274904294_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t1563822970 * L_0 = (ValueCollection_t1563822970 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t1563822970 * L_1 = (ValueCollection_t1563822970 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t1563822970 *, Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t1563822970 * L_2 = (ValueCollection_t1563822970 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TValue> System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Values_m48180478_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t1563822970 * L_0 = (ValueCollection_t1563822970 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t1563822970 * L_1 = (ValueCollection_t1563822970 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t1563822970 *, Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t1563822970 * L_2 = (ValueCollection_t1563822970 *)__this->get_values_8();
return L_2;
}
}
// TValue System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::get_Item(TKey)
extern "C" RuntimeObject * Dictionary_2_get_Item_m2703205864_gshared (Dictionary_2_t4142745948 * __this, int64_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_get_Item_m2703205864_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
int64_t L_0 = ___key0;
NullCheck((Dictionary_2_t4142745948 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t4142745948 *, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_001e;
}
}
{
EntryU5BU5D_t72598189* L_3 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_4 = V_0;
NullCheck(L_3);
RuntimeObject * L_5 = (RuntimeObject *)((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_4)))->get_value_3();
return L_5;
}
IL_001e:
{
KeyNotFoundException_t2292407383 * L_6 = (KeyNotFoundException_t2292407383 *)il2cpp_codegen_object_new(KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var);
KeyNotFoundException__ctor_m541499307(L_6, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, Dictionary_2_get_Item_m2703205864_RuntimeMethod_var);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::set_Item(TKey,TValue)
extern "C" void Dictionary_2_set_Item_m2107733682_gshared (Dictionary_2_t4142745948 * __this, int64_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
int64_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( bool (*) (Dictionary_2_t4142745948 *, int64_t, RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_0, (RuntimeObject *)L_1, (uint8_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::Add(TKey,TValue)
extern "C" void Dictionary_2_Add_m938263239_gshared (Dictionary_2_t4142745948 * __this, int64_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
int64_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( bool (*) (Dictionary_2_t4142745948 *, int64_t, RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_0, (RuntimeObject *)L_1, (uint8_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m3651463896_gshared (Dictionary_2_t4142745948 * __this, KeyValuePair_2_t2245450819 ___keyValuePair0, const RuntimeMethod* method)
{
{
int64_t L_0 = KeyValuePair_2_get_Key_m635992374((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_1 = KeyValuePair_2_get_Value_m392474074((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int64_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_0, (RuntimeObject *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m2362893682_gshared (Dictionary_2_t4142745948 * __this, KeyValuePair_2_t2245450819 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int64_t L_0 = KeyValuePair_2_get_Key_m635992374((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t4142745948 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t4142745948 *, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0038;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t72598189* L_4 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m392474074((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0038;
}
}
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m2593942709_gshared (Dictionary_2_t4142745948 * __this, KeyValuePair_2_t2245450819 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int64_t L_0 = KeyValuePair_2_get_Key_m635992374((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t4142745948 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t4142745948 *, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0046;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t72598189* L_4 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m392474074((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0046;
}
}
{
int64_t L_9 = KeyValuePair_2_get_Key_m635992374((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t4142745948 *)__this);
(( bool (*) (Dictionary_2_t4142745948 *, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
return (bool)1;
}
IL_0046:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::Clear()
extern "C" void Dictionary_2_Clear_m2051403347_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (int32_t)__this->get_count_2();
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_005a;
}
}
{
V_0 = (int32_t)0;
goto IL_001a;
}
IL_000d:
{
Int32U5BU5D_t385246372* L_1 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_2 = V_0;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_001a:
{
int32_t L_4 = V_0;
Int32U5BU5D_t385246372* L_5 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000d;
}
}
{
EntryU5BU5D_t72598189* L_6 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_7 = (int32_t)__this->get_count_2();
Array_Clear_m2231608178(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_6, (int32_t)0, (int32_t)L_7, /*hidden argument*/NULL);
__this->set_freeList_4((-1));
__this->set_count_2(0);
__this->set_freeCount_5(0);
int32_t L_8 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)));
}
IL_005a:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::ContainsKey(TKey)
extern "C" bool Dictionary_2_ContainsKey_m1218653627_gshared (Dictionary_2_t4142745948 * __this, int64_t ___key0, const RuntimeMethod* method)
{
{
int64_t L_0 = ___key0;
NullCheck((Dictionary_2_t4142745948 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t4142745948 *, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
return (bool)((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::ContainsValue(TValue)
extern "C" bool Dictionary_2_ContainsValue_m1558963970_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject * ___value0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
EqualityComparer_1_t1249878500 * V_1 = NULL;
int32_t V_2 = 0;
{
RuntimeObject * L_0 = ___value0;
if (L_0)
{
goto IL_0049;
}
}
{
V_0 = (int32_t)0;
goto IL_003e;
}
IL_000c:
{
EntryU5BU5D_t72598189* L_1 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_2 = V_0;
NullCheck(L_1);
int32_t L_3 = (int32_t)((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->get_hashCode_0();
if ((((int32_t)L_3) < ((int32_t)0)))
{
goto IL_003a;
}
}
{
EntryU5BU5D_t72598189* L_4 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
if (L_6)
{
goto IL_003a;
}
}
{
return (bool)1;
}
IL_003a:
{
int32_t L_7 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_003e:
{
int32_t L_8 = V_0;
int32_t L_9 = (int32_t)__this->get_count_2();
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_000c;
}
}
{
goto IL_0090;
}
IL_0049:
{
EqualityComparer_1_t1249878500 * L_10 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
V_1 = (EqualityComparer_1_t1249878500 *)L_10;
V_2 = (int32_t)0;
goto IL_0087;
}
IL_0053:
{
EntryU5BU5D_t72598189* L_11 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_12 = V_2;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) < ((int32_t)0)))
{
goto IL_0083;
}
}
{
EqualityComparer_1_t1249878500 * L_14 = V_1;
EntryU5BU5D_t72598189* L_15 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_16 = V_2;
NullCheck(L_15);
RuntimeObject * L_17 = (RuntimeObject *)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_value_3();
RuntimeObject * L_18 = ___value0;
NullCheck((EqualityComparer_1_t1249878500 *)L_14);
bool L_19 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_14, (RuntimeObject *)L_17, (RuntimeObject *)L_18);
if (!L_19)
{
goto IL_0083;
}
}
{
return (bool)1;
}
IL_0083:
{
int32_t L_20 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
}
IL_0087:
{
int32_t L_21 = V_2;
int32_t L_22 = (int32_t)__this->get_count_2();
if ((((int32_t)L_21) < ((int32_t)L_22)))
{
goto IL_0053;
}
}
IL_0090:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_CopyTo_m1333059652_gshared (Dictionary_2_t4142745948 * __this, KeyValuePair_2U5BU5D_t3818836818* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_CopyTo_m1333059652_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t72598189* V_1 = NULL;
int32_t V_2 = 0;
{
KeyValuePair_2U5BU5D_t3818836818* L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_CopyTo_m1333059652_RuntimeMethod_var);
}
IL_000e:
{
int32_t L_2 = ___index1;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0018;
}
}
{
int32_t L_3 = ___index1;
KeyValuePair_2U5BU5D_t3818836818* L_4 = ___array0;
NullCheck(L_4);
if ((((int32_t)L_3) <= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length)))))))
{
goto IL_002e;
}
}
IL_0018:
{
int32_t L_5 = ___index1;
int32_t L_6 = L_5;
RuntimeObject * L_7 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_6);
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_8, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_7, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, Dictionary_2_CopyTo_m1333059652_RuntimeMethod_var);
}
IL_002e:
{
KeyValuePair_2U5BU5D_t3818836818* L_9 = ___array0;
NullCheck(L_9);
int32_t L_10 = ___index1;
NullCheck((Dictionary_2_t4142745948 *)__this);
int32_t L_11 = (( int32_t (*) (Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_9)->max_length)))), (int32_t)L_10))) >= ((int32_t)L_11)))
{
goto IL_0046;
}
}
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_12, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_CopyTo_m1333059652_RuntimeMethod_var);
}
IL_0046:
{
int32_t L_13 = (int32_t)__this->get_count_2();
V_0 = (int32_t)L_13;
EntryU5BU5D_t72598189* L_14 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
V_1 = (EntryU5BU5D_t72598189*)L_14;
V_2 = (int32_t)0;
goto IL_0094;
}
IL_0058:
{
EntryU5BU5D_t72598189* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_0090;
}
}
{
KeyValuePair_2U5BU5D_t3818836818* L_18 = ___array0;
int32_t L_19 = ___index1;
int32_t L_20 = (int32_t)L_19;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
EntryU5BU5D_t72598189* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
int64_t L_23 = (int64_t)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_key_2();
EntryU5BU5D_t72598189* L_24 = V_1;
int32_t L_25 = V_2;
NullCheck(L_24);
RuntimeObject * L_26 = (RuntimeObject *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_value_3();
KeyValuePair_2_t2245450819 L_27;
memset(&L_27, 0, sizeof(L_27));
KeyValuePair_2__ctor_m2056996813((&L_27), (int64_t)L_23, (RuntimeObject *)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
NullCheck(L_18);
(L_18)->SetAt(static_cast<il2cpp_array_size_t>(L_20), (KeyValuePair_2_t2245450819 )L_27);
}
IL_0090:
{
int32_t L_28 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_0094:
{
int32_t L_29 = V_2;
int32_t L_30 = V_0;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0058;
}
}
{
return;
}
}
// System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::GetEnumerator()
extern "C" Enumerator_t1801961427 Dictionary_2_GetEnumerator_m1036571748_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
Enumerator_t1801961427 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2847475527((&L_0), (Dictionary_2_t4142745948 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
return L_0;
}
}
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m1891526680_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
Enumerator_t1801961427 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2847475527((&L_0), (Dictionary_2_t4142745948 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t1801961427 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2_GetObjectData_m2436879205_gshared (Dictionary_2_t4142745948 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_GetObjectData_m2436879205_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t3818836818* V_0 = NULL;
String_t* G_B4_0 = NULL;
SerializationInfo_t950877179 * G_B4_1 = NULL;
String_t* G_B3_0 = NULL;
SerializationInfo_t950877179 * G_B3_1 = NULL;
int32_t G_B5_0 = 0;
String_t* G_B5_1 = NULL;
SerializationInfo_t950877179 * G_B5_2 = NULL;
{
SerializationInfo_t950877179 * L_0 = ___info0;
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, (String_t*)_stringLiteral79347, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_GetObjectData_m2436879205_RuntimeMethod_var);
}
IL_000e:
{
SerializationInfo_t950877179 * L_2 = ___info0;
int32_t L_3 = (int32_t)__this->get_version_3();
NullCheck((SerializationInfo_t950877179 *)L_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, (int32_t)L_3, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_4 = ___info0;
RuntimeObject* L_5 = (RuntimeObject*)__this->get_comparer_6();
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_4);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral892943380, (RuntimeObject *)L_5, (Type_t *)L_7, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_8 = ___info0;
Int32U5BU5D_t385246372* L_9 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
G_B3_0 = _stringLiteral953796230;
G_B3_1 = L_8;
if (!L_9)
{
G_B4_0 = _stringLiteral953796230;
G_B4_1 = L_8;
goto IL_0052;
}
}
{
Int32U5BU5D_t385246372* L_10 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_10);
G_B5_0 = (((int32_t)((int32_t)(((RuntimeArray *)L_10)->max_length))));
G_B5_1 = G_B3_0;
G_B5_2 = G_B3_1;
goto IL_0053;
}
IL_0052:
{
G_B5_0 = 0;
G_B5_1 = G_B4_0;
G_B5_2 = G_B4_1;
}
IL_0053:
{
NullCheck((SerializationInfo_t950877179 *)G_B5_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)G_B5_2, (String_t*)G_B5_1, (int32_t)G_B5_0, /*hidden argument*/NULL);
Int32U5BU5D_t385246372* L_11 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_11)
{
goto IL_008a;
}
}
{
NullCheck((Dictionary_2_t4142745948 *)__this);
int32_t L_12 = (( int32_t (*) (Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
V_0 = (KeyValuePair_2U5BU5D_t3818836818*)((KeyValuePair_2U5BU5D_t3818836818*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 30), (uint32_t)L_12));
KeyValuePair_2U5BU5D_t3818836818* L_13 = V_0;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, KeyValuePair_2U5BU5D_t3818836818*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t4142745948 *)__this, (KeyValuePair_2U5BU5D_t3818836818*)L_13, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
SerializationInfo_t950877179 * L_14 = ___info0;
KeyValuePair_2U5BU5D_t3818836818* L_15 = V_0;
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_16, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_14);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_14, (String_t*)_stringLiteral2947573650, (RuntimeObject *)(RuntimeObject *)L_15, (Type_t *)L_17, /*hidden argument*/NULL);
}
IL_008a:
{
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::FindEntry(TKey)
extern "C" int32_t Dictionary_2_FindEntry_m2206874631_gshared (Dictionary_2_t4142745948 * __this, int64_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_FindEntry_m2206874631_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_FindEntry_m2206874631_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_008d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
int64_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, int64_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int64>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (int64_t)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
Int32U5BU5D_t385246372* L_6 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_7 = V_0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_8);
NullCheck(L_6);
int32_t L_9 = ((int32_t)((int32_t)L_7%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length))))));
int32_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = (int32_t)L_10;
goto IL_0089;
}
IL_0042:
{
EntryU5BU5D_t72598189* L_11 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_12 = V_1;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
int32_t L_14 = V_0;
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
{
goto IL_0077;
}
}
{
RuntimeObject* L_15 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t72598189* L_16 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_17 = V_1;
NullCheck(L_16);
int64_t L_18 = (int64_t)((L_16)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_17)))->get_key_2();
int64_t L_19 = ___key0;
NullCheck((RuntimeObject*)L_15);
bool L_20 = InterfaceFuncInvoker2< bool, int64_t, int64_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int64>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_15, (int64_t)L_18, (int64_t)L_19);
if (!L_20)
{
goto IL_0077;
}
}
{
int32_t L_21 = V_1;
return L_21;
}
IL_0077:
{
EntryU5BU5D_t72598189* L_22 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_23 = V_1;
NullCheck(L_22);
int32_t L_24 = (int32_t)((L_22)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_23)))->get_next_1();
V_1 = (int32_t)L_24;
}
IL_0089:
{
int32_t L_25 = V_1;
if ((((int32_t)L_25) >= ((int32_t)0)))
{
goto IL_0042;
}
}
IL_008d:
{
return (-1);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::Initialize(System.Int32)
extern "C" void Dictionary_2_Initialize_m3456609917_gshared (Dictionary_2_t4142745948 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Initialize_m3456609917_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
int32_t L_0 = ___capacity0;
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_GetPrime_m1056954278(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_2)));
V_1 = (int32_t)0;
goto IL_0024;
}
IL_0017:
{
Int32U5BU5D_t385246372* L_3 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_4 = V_1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (int32_t)(-1));
int32_t L_5 = V_1;
V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1));
}
IL_0024:
{
int32_t L_6 = V_1;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
if ((((int32_t)L_6) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length)))))))
{
goto IL_0017;
}
}
{
int32_t L_8 = V_0;
__this->set_entries_1(((EntryU5BU5D_t72598189*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_8)));
__this->set_freeList_4((-1));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::TryInsert(TKey,TValue,System.Collections.Generic.InsertionBehavior)
extern "C" bool Dictionary_2_TryInsert_m1144100818_gshared (Dictionary_2_t4142745948 * __this, int64_t ___key0, RuntimeObject * ___value1, uint8_t ___behavior2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_TryInsert_m1144100818_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_TryInsert_m1144100818_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (L_2)
{
goto IL_0022;
}
}
{
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_0022:
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
int64_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, int64_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int64>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (int64_t)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_4 = (int32_t)L_11;
goto IL_00e1;
}
IL_0051:
{
EntryU5BU5D_t72598189* L_12 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_13 = V_4;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_00c9;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t72598189* L_17 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_18 = V_4;
NullCheck(L_17);
int64_t L_19 = (int64_t)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
int64_t L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, int64_t, int64_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int64>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (int64_t)L_19, (int64_t)L_20);
if (!L_21)
{
goto IL_00c9;
}
}
{
uint8_t L_22 = ___behavior2;
if ((!(((uint32_t)L_22) == ((uint32_t)1))))
{
goto IL_00ad;
}
}
{
EntryU5BU5D_t72598189* L_23 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_24 = V_4;
NullCheck(L_23);
RuntimeObject * L_25 = ___value1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_value_3(L_25);
int32_t L_26 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
return (bool)1;
}
IL_00ad:
{
uint8_t L_27 = ___behavior2;
if ((!(((uint32_t)L_27) == ((uint32_t)2))))
{
goto IL_00c7;
}
}
{
int64_t L_28 = ___key0;
int64_t L_29 = L_28;
RuntimeObject * L_30 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_29);
String_t* L_31 = SR_Format_m1749913990(NULL /*static, unused*/, (String_t*)_stringLiteral1494472686, (RuntimeObject *)L_30, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_32 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_32, (String_t*)L_31, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_32, NULL, Dictionary_2_TryInsert_m1144100818_RuntimeMethod_var);
}
IL_00c7:
{
return (bool)0;
}
IL_00c9:
{
int32_t L_33 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t72598189* L_34 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_35 = V_4;
NullCheck(L_34);
int32_t L_36 = (int32_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_next_1();
V_4 = (int32_t)L_36;
}
IL_00e1:
{
int32_t L_37 = V_4;
if ((((int32_t)L_37) >= ((int32_t)0)))
{
goto IL_0051;
}
}
{
int32_t L_38 = (int32_t)__this->get_freeCount_5();
if ((((int32_t)L_38) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t L_39 = (int32_t)__this->get_freeList_4();
V_3 = (int32_t)L_39;
EntryU5BU5D_t72598189* L_40 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_41 = V_3;
NullCheck(L_40);
int32_t L_42 = (int32_t)((L_40)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_41)))->get_next_1();
__this->set_freeList_4(L_42);
int32_t L_43 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_subtract((int32_t)L_43, (int32_t)1)));
goto IL_0156;
}
IL_0120:
{
int32_t L_44 = (int32_t)__this->get_count_2();
EntryU5BU5D_t72598189* L_45 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
NullCheck(L_45);
if ((!(((uint32_t)L_44) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_45)->max_length))))))))
{
goto IL_0141;
}
}
{
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36)->methodPointer)((Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36));
int32_t L_46 = V_0;
Int32U5BU5D_t385246372* L_47 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_47);
V_1 = (int32_t)((int32_t)((int32_t)L_46%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_47)->max_length))))));
}
IL_0141:
{
int32_t L_48 = (int32_t)__this->get_count_2();
V_3 = (int32_t)L_48;
int32_t L_49 = (int32_t)__this->get_count_2();
__this->set_count_2(((int32_t)il2cpp_codegen_add((int32_t)L_49, (int32_t)1)));
}
IL_0156:
{
EntryU5BU5D_t72598189* L_50 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_51 = V_3;
NullCheck(L_50);
int32_t L_52 = V_0;
((L_50)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_51)))->set_hashCode_0(L_52);
EntryU5BU5D_t72598189* L_53 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_54 = V_3;
NullCheck(L_53);
Int32U5BU5D_t385246372* L_55 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_56 = V_1;
NullCheck(L_55);
int32_t L_57 = L_56;
int32_t L_58 = (L_55)->GetAt(static_cast<il2cpp_array_size_t>(L_57));
((L_53)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_54)))->set_next_1(L_58);
EntryU5BU5D_t72598189* L_59 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_60 = V_3;
NullCheck(L_59);
int64_t L_61 = ___key0;
((L_59)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_60)))->set_key_2(L_61);
EntryU5BU5D_t72598189* L_62 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_63 = V_3;
NullCheck(L_62);
RuntimeObject * L_64 = ___value1;
((L_62)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_63)))->set_value_3(L_64);
Int32U5BU5D_t385246372* L_65 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_66 = V_1;
int32_t L_67 = V_3;
NullCheck(L_65);
(L_65)->SetAt(static_cast<il2cpp_array_size_t>(L_66), (int32_t)L_67);
int32_t L_68 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_68, (int32_t)1)));
int32_t L_69 = V_2;
if ((((int32_t)L_69) <= ((int32_t)((int32_t)100))))
{
goto IL_01ed;
}
}
{
RuntimeObject* L_70 = (RuntimeObject*)__this->get_comparer_6();
if (!((NonRandomizedStringEqualityComparer_t1082005352 *)IsInst((RuntimeObject*)L_70, NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var)))
{
goto IL_01ed;
}
}
{
EqualityComparer_1_t17223025 * L_71 = EqualityComparer_1_get_Default_m2310016383(NULL /*static, unused*/, /*hidden argument*/EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_71, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
EntryU5BU5D_t72598189* L_72 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
NullCheck(L_72);
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_72)->max_length)))), (bool)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
}
IL_01ed:
{
return (bool)1;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::OnDeserialization(System.Object)
extern "C" void Dictionary_2_OnDeserialization_m1208018860_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject * ___sender0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_OnDeserialization_m1208018860_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SerializationInfo_t950877179 * V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
KeyValuePair_2U5BU5D_t3818836818* V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_TryGetValue_m1618998192((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 **)(SerializationInfo_t950877179 **)(&V_0), /*hidden argument*/ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var);
SerializationInfo_t950877179 * L_1 = V_0;
if (L_1)
{
goto IL_0012;
}
}
{
return;
}
IL_0012:
{
SerializationInfo_t950877179 * L_2 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_2);
int32_t L_3 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, /*hidden argument*/NULL);
V_1 = (int32_t)L_3;
SerializationInfo_t950877179 * L_4 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_4);
int32_t L_5 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral953796230, /*hidden argument*/NULL);
V_2 = (int32_t)L_5;
SerializationInfo_t950877179 * L_6 = V_0;
RuntimeTypeHandle_t3027515415 L_7 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_8 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_7, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_6);
RuntimeObject * L_9 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_6, (String_t*)_stringLiteral892943380, (Type_t *)L_8, /*hidden argument*/NULL);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_9, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
int32_t L_10 = V_2;
if (!L_10)
{
goto IL_010c;
}
}
{
int32_t L_11 = V_2;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_11)));
V_4 = (int32_t)0;
goto IL_0071;
}
IL_0061:
{
Int32U5BU5D_t385246372* L_12 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_13 = V_4;
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)(-1));
int32_t L_14 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0071:
{
int32_t L_15 = V_4;
Int32U5BU5D_t385246372* L_16 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0061;
}
}
{
int32_t L_17 = V_2;
__this->set_entries_1(((EntryU5BU5D_t72598189*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_17)));
__this->set_freeList_4((-1));
SerializationInfo_t950877179 * L_18 = V_0;
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_19, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_18);
RuntimeObject * L_21 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_18, (String_t*)_stringLiteral2947573650, (Type_t *)L_20, /*hidden argument*/NULL);
V_3 = (KeyValuePair_2U5BU5D_t3818836818*)((KeyValuePair_2U5BU5D_t3818836818*)Castclass((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t3818836818* L_22 = V_3;
if (L_22)
{
goto IL_00b9;
}
}
{
SerializationException_t3941511869 * L_23 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_23, (String_t*)_stringLiteral998597917, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_23, NULL, Dictionary_2_OnDeserialization_m1208018860_RuntimeMethod_var);
}
IL_00b9:
{
V_5 = (int32_t)0;
goto IL_0103;
}
IL_00be:
{
KeyValuePair_2U5BU5D_t3818836818* L_24 = V_3;
int32_t L_25 = V_5;
NullCheck(L_24);
int64_t L_26 = KeyValuePair_2_get_Key_m635992374((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
goto IL_00dd;
}
{
SerializationException_t3941511869 * L_27 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_27, (String_t*)_stringLiteral3616747365, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_27, NULL, Dictionary_2_OnDeserialization_m1208018860_RuntimeMethod_var);
}
IL_00dd:
{
KeyValuePair_2U5BU5D_t3818836818* L_28 = V_3;
int32_t L_29 = V_5;
NullCheck(L_28);
int64_t L_30 = KeyValuePair_2_get_Key_m635992374((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
KeyValuePair_2U5BU5D_t3818836818* L_31 = V_3;
int32_t L_32 = V_5;
NullCheck(L_31);
RuntimeObject * L_33 = KeyValuePair_2_get_Value_m392474074((KeyValuePair_2_t2245450819 *)(KeyValuePair_2_t2245450819 *)((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int64_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_30, (RuntimeObject *)L_33, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
int32_t L_34 = V_5;
V_5 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_34, (int32_t)1));
}
IL_0103:
{
int32_t L_35 = V_5;
KeyValuePair_2U5BU5D_t3818836818* L_36 = V_3;
NullCheck(L_36);
if ((((int32_t)L_35) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_36)->max_length)))))))
{
goto IL_00be;
}
}
{
goto IL_0113;
}
IL_010c:
{
__this->set_buckets_0((Int32U5BU5D_t385246372*)NULL);
}
IL_0113:
{
int32_t L_37 = V_1;
__this->set_version_3(L_37);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_38 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_38);
ConditionalWeakTable_2_Remove_m2013031576((ConditionalWeakTable_2_t1452810305 *)L_38, (RuntimeObject *)__this, /*hidden argument*/ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::Resize()
extern "C" void Dictionary_2_Resize_m1924695631_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m1924695631_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = (int32_t)__this->get_count_2();
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_ExpandPrime_m2180508331(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int32_t)L_1, (bool)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::Resize(System.Int32,System.Boolean)
extern "C" void Dictionary_2_Resize_m1682939622_gshared (Dictionary_2_t4142745948 * __this, int32_t ___newSize0, bool ___forceNewHashCodes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m1682939622_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Int32U5BU5D_t385246372* V_0 = NULL;
EntryU5BU5D_t72598189* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t L_0 = ___newSize0;
V_0 = (Int32U5BU5D_t385246372*)((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_0));
V_2 = (int32_t)0;
goto IL_0013;
}
IL_000b:
{
Int32U5BU5D_t385246372* L_1 = V_0;
int32_t L_2 = V_2;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_0013:
{
int32_t L_4 = V_2;
Int32U5BU5D_t385246372* L_5 = V_0;
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000b;
}
}
{
int32_t L_6 = ___newSize0;
V_1 = (EntryU5BU5D_t72598189*)((EntryU5BU5D_t72598189*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_6));
EntryU5BU5D_t72598189* L_7 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
EntryU5BU5D_t72598189* L_8 = V_1;
int32_t L_9 = (int32_t)__this->get_count_2();
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_7, (int32_t)0, (RuntimeArray *)(RuntimeArray *)L_8, (int32_t)0, (int32_t)L_9, /*hidden argument*/NULL);
bool L_10 = ___forceNewHashCodes1;
if (!L_10)
{
goto IL_0080;
}
}
{
V_3 = (int32_t)0;
goto IL_0077;
}
IL_003b:
{
EntryU5BU5D_t72598189* L_11 = V_1;
int32_t L_12 = V_3;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) == ((int32_t)(-1))))
{
goto IL_0073;
}
}
{
EntryU5BU5D_t72598189* L_14 = V_1;
int32_t L_15 = V_3;
NullCheck(L_14);
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t72598189* L_17 = V_1;
int32_t L_18 = V_3;
NullCheck(L_17);
int64_t L_19 = (int64_t)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
NullCheck((RuntimeObject*)L_16);
int32_t L_20 = InterfaceFuncInvoker1< int32_t, int64_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int64>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (int64_t)L_19);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->set_hashCode_0(((int32_t)((int32_t)L_20&(int32_t)((int32_t)2147483647LL))));
}
IL_0073:
{
int32_t L_21 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1));
}
IL_0077:
{
int32_t L_22 = V_3;
int32_t L_23 = (int32_t)__this->get_count_2();
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_003b;
}
}
IL_0080:
{
V_4 = (int32_t)0;
goto IL_00c3;
}
IL_0085:
{
EntryU5BU5D_t72598189* L_24 = V_1;
int32_t L_25 = V_4;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_hashCode_0();
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00bd;
}
}
{
EntryU5BU5D_t72598189* L_27 = V_1;
int32_t L_28 = V_4;
NullCheck(L_27);
int32_t L_29 = (int32_t)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->get_hashCode_0();
int32_t L_30 = ___newSize0;
V_5 = (int32_t)((int32_t)((int32_t)L_29%(int32_t)L_30));
EntryU5BU5D_t72598189* L_31 = V_1;
int32_t L_32 = V_4;
NullCheck(L_31);
Int32U5BU5D_t385246372* L_33 = V_0;
int32_t L_34 = V_5;
NullCheck(L_33);
int32_t L_35 = L_34;
int32_t L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32)))->set_next_1(L_36);
Int32U5BU5D_t385246372* L_37 = V_0;
int32_t L_38 = V_5;
int32_t L_39 = V_4;
NullCheck(L_37);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(L_38), (int32_t)L_39);
}
IL_00bd:
{
int32_t L_40 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
}
IL_00c3:
{
int32_t L_41 = V_4;
int32_t L_42 = (int32_t)__this->get_count_2();
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_0085;
}
}
{
Int32U5BU5D_t385246372* L_43 = V_0;
__this->set_buckets_0(L_43);
EntryU5BU5D_t72598189* L_44 = V_1;
__this->set_entries_1(L_44);
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::Remove(TKey)
extern "C" bool Dictionary_2_Remove_m1107143448_gshared (Dictionary_2_t4142745948 * __this, int64_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Remove_m1107143448_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_Remove_m1107143448_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_015d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
int64_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, int64_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int64>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (int64_t)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)(-1);
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_3 = (int32_t)L_11;
goto IL_0156;
}
IL_004c:
{
EntryU5BU5D_t72598189* L_12 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_13 = V_3;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0142;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t72598189* L_17 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_18 = V_3;
NullCheck(L_17);
int64_t L_19 = (int64_t)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
int64_t L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, int64_t, int64_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int64>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (int64_t)L_19, (int64_t)L_20);
if (!L_21)
{
goto IL_0142;
}
}
{
int32_t L_22 = V_2;
if ((((int32_t)L_22) >= ((int32_t)0)))
{
goto IL_00a4;
}
}
{
Int32U5BU5D_t385246372* L_23 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_24 = V_1;
EntryU5BU5D_t72598189* L_25 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_26 = V_3;
NullCheck(L_25);
int32_t L_27 = (int32_t)((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->get_next_1();
NullCheck(L_23);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(L_24), (int32_t)L_27);
goto IL_00c6;
}
IL_00a4:
{
EntryU5BU5D_t72598189* L_28 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_29 = V_2;
NullCheck(L_28);
EntryU5BU5D_t72598189* L_30 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_31 = V_3;
NullCheck(L_30);
int32_t L_32 = (int32_t)((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->get_next_1();
((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->set_next_1(L_32);
}
IL_00c6:
{
EntryU5BU5D_t72598189* L_33 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_34 = V_3;
NullCheck(L_33);
((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->set_hashCode_0((-1));
EntryU5BU5D_t72598189* L_35 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_36 = V_3;
NullCheck(L_35);
int32_t L_37 = (int32_t)__this->get_freeList_4();
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->set_next_1(L_37);
EntryU5BU5D_t72598189* L_38 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
int64_t* L_40 = (int64_t*)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_address_of_key_2();
il2cpp_codegen_initobj(L_40, sizeof(int64_t));
EntryU5BU5D_t72598189* L_41 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_42 = V_3;
NullCheck(L_41);
RuntimeObject ** L_43 = (RuntimeObject **)((L_41)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_42)))->get_address_of_value_3();
il2cpp_codegen_initobj(L_43, sizeof(RuntimeObject *));
int32_t L_44 = V_3;
__this->set_freeList_4(L_44);
int32_t L_45 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1)));
int32_t L_46 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1)));
return (bool)1;
}
IL_0142:
{
int32_t L_47 = V_3;
V_2 = (int32_t)L_47;
EntryU5BU5D_t72598189* L_48 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = (int32_t)((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->get_next_1();
V_3 = (int32_t)L_50;
}
IL_0156:
{
int32_t L_51 = V_3;
if ((((int32_t)L_51) >= ((int32_t)0)))
{
goto IL_004c;
}
}
IL_015d:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::TryGetValue(TKey,TValue&)
extern "C" bool Dictionary_2_TryGetValue_m3589003187_gshared (Dictionary_2_t4142745948 * __this, int64_t ___key0, RuntimeObject ** ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int64_t L_0 = ___key0;
NullCheck((Dictionary_2_t4142745948 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t4142745948 *, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0025;
}
}
{
RuntimeObject ** L_3 = ___value1;
EntryU5BU5D_t72598189* L_4 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
*(RuntimeObject **)L_3 = L_6;
Il2CppCodeGenWriteBarrier((RuntimeObject **)L_3, L_6);
return (bool)1;
}
IL_0025:
{
RuntimeObject ** L_7 = ___value1;
il2cpp_codegen_initobj(L_7, sizeof(RuntimeObject *));
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::TryAdd(TKey,TValue)
extern "C" bool Dictionary_2_TryAdd_m585222391_gshared (Dictionary_2_t4142745948 * __this, int64_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
int64_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t4142745948 *)__this);
bool L_2 = (( bool (*) (Dictionary_2_t4142745948 *, int64_t, RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_0, (RuntimeObject *)L_1, (uint8_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m87815734_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m4102533924_gshared (Dictionary_2_t4142745948 * __this, KeyValuePair_2U5BU5D_t3818836818* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
{
KeyValuePair_2U5BU5D_t3818836818* L_0 = ___array0;
int32_t L_1 = ___index1;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, KeyValuePair_2U5BU5D_t3818836818*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t4142745948 *)__this, (KeyValuePair_2U5BU5D_t3818836818*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32)
extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_gshared (Dictionary_2_t4142745948 * __this, RuntimeArray * ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t3818836818* V_0 = NULL;
DictionaryEntryU5BU5D_t4217117203* V_1 = NULL;
EntryU5BU5D_t72598189* V_2 = NULL;
int32_t V_3 = 0;
ObjectU5BU5D_t2843939325* V_4 = NULL;
int32_t V_5 = 0;
EntryU5BU5D_t72598189* V_6 = NULL;
int32_t V_7 = 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);
{
RuntimeArray * L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_RuntimeMethod_var);
}
IL_000e:
{
RuntimeArray * L_2 = ___array0;
NullCheck((RuntimeArray *)L_2);
int32_t L_3 = Array_get_Rank_m3448755881((RuntimeArray *)L_2, /*hidden argument*/NULL);
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0027;
}
}
{
ArgumentException_t132251570 * L_4 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_4, (String_t*)_stringLiteral915403387, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_RuntimeMethod_var);
}
IL_0027:
{
RuntimeArray * L_5 = ___array0;
NullCheck((RuntimeArray *)L_5);
int32_t L_6 = Array_GetLowerBound_m2045984623((RuntimeArray *)L_5, (int32_t)0, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0040;
}
}
{
ArgumentException_t132251570 * L_7 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_7, (String_t*)_stringLiteral2590862907, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_RuntimeMethod_var);
}
IL_0040:
{
int32_t L_8 = ___index1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_004d;
}
}
{
int32_t L_9 = ___index1;
RuntimeArray * L_10 = ___array0;
NullCheck((RuntimeArray *)L_10);
int32_t L_11 = Array_get_Length_m21610649((RuntimeArray *)L_10, /*hidden argument*/NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0063;
}
}
IL_004d:
{
int32_t L_12 = ___index1;
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_13);
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_15, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_14, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_RuntimeMethod_var);
}
IL_0063:
{
RuntimeArray * L_16 = ___array0;
NullCheck((RuntimeArray *)L_16);
int32_t L_17 = Array_get_Length_m21610649((RuntimeArray *)L_16, /*hidden argument*/NULL);
int32_t L_18 = ___index1;
NullCheck((Dictionary_2_t4142745948 *)__this);
int32_t L_19 = (( int32_t (*) (Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)L_18))) >= ((int32_t)L_19)))
{
goto IL_007e;
}
}
{
ArgumentException_t132251570 * L_20 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_20, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_20, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_RuntimeMethod_var);
}
IL_007e:
{
RuntimeArray * L_21 = ___array0;
V_0 = (KeyValuePair_2U5BU5D_t3818836818*)((KeyValuePair_2U5BU5D_t3818836818*)IsInst((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t3818836818* L_22 = V_0;
if (!L_22)
{
goto IL_0091;
}
}
{
KeyValuePair_2U5BU5D_t3818836818* L_23 = V_0;
int32_t L_24 = ___index1;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, KeyValuePair_2U5BU5D_t3818836818*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t4142745948 *)__this, (KeyValuePair_2U5BU5D_t3818836818*)L_23, (int32_t)L_24, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
IL_0091:
{
RuntimeArray * L_25 = ___array0;
if (!((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_25, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var)))
{
goto IL_00fb;
}
}
{
RuntimeArray * L_26 = ___array0;
V_1 = (DictionaryEntryU5BU5D_t4217117203*)((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_26, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var));
EntryU5BU5D_t72598189* L_27 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
V_2 = (EntryU5BU5D_t72598189*)L_27;
V_3 = (int32_t)0;
goto IL_00f1;
}
IL_00ab:
{
EntryU5BU5D_t72598189* L_28 = V_2;
int32_t L_29 = V_3;
NullCheck(L_28);
int32_t L_30 = (int32_t)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->get_hashCode_0();
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_00ed;
}
}
{
DictionaryEntryU5BU5D_t4217117203* L_31 = V_1;
int32_t L_32 = ___index1;
int32_t L_33 = (int32_t)L_32;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t72598189* L_34 = V_2;
int32_t L_35 = V_3;
NullCheck(L_34);
int64_t L_36 = (int64_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_key_2();
int64_t L_37 = L_36;
RuntimeObject * L_38 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_37);
EntryU5BU5D_t72598189* L_39 = V_2;
int32_t L_40 = V_3;
NullCheck(L_39);
RuntimeObject * L_41 = (RuntimeObject *)((L_39)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_40)))->get_value_3();
DictionaryEntry_t3123975638 L_42;
memset(&L_42, 0, sizeof(L_42));
DictionaryEntry__ctor_m2585376310((&L_42), (RuntimeObject *)L_38, (RuntimeObject *)L_41, /*hidden argument*/NULL);
NullCheck(L_31);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (DictionaryEntry_t3123975638 )L_42);
}
IL_00ed:
{
int32_t L_43 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_43, (int32_t)1));
}
IL_00f1:
{
int32_t L_44 = V_3;
int32_t L_45 = (int32_t)__this->get_count_2();
if ((((int32_t)L_44) < ((int32_t)L_45)))
{
goto IL_00ab;
}
}
{
return;
}
IL_00fb:
{
RuntimeArray * L_46 = ___array0;
V_4 = (ObjectU5BU5D_t2843939325*)((ObjectU5BU5D_t2843939325*)IsInst((RuntimeObject*)L_46, ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var));
ObjectU5BU5D_t2843939325* L_47 = V_4;
if (L_47)
{
goto IL_0117;
}
}
{
ArgumentException_t132251570 * L_48 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_48, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_48, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_RuntimeMethod_var);
}
IL_0117:
{
}
IL_0118:
try
{ // begin try (depth: 1)
{
int32_t L_49 = (int32_t)__this->get_count_2();
V_5 = (int32_t)L_49;
EntryU5BU5D_t72598189* L_50 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
V_6 = (EntryU5BU5D_t72598189*)L_50;
V_7 = (int32_t)0;
goto IL_0173;
}
IL_012d:
{
EntryU5BU5D_t72598189* L_51 = V_6;
int32_t L_52 = V_7;
NullCheck(L_51);
int32_t L_53 = (int32_t)((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->get_hashCode_0();
if ((((int32_t)L_53) < ((int32_t)0)))
{
goto IL_016d;
}
}
IL_013e:
{
ObjectU5BU5D_t2843939325* L_54 = V_4;
int32_t L_55 = ___index1;
int32_t L_56 = (int32_t)L_55;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_56, (int32_t)1));
EntryU5BU5D_t72598189* L_57 = V_6;
int32_t L_58 = V_7;
NullCheck(L_57);
int64_t L_59 = (int64_t)((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->get_key_2();
EntryU5BU5D_t72598189* L_60 = V_6;
int32_t L_61 = V_7;
NullCheck(L_60);
RuntimeObject * L_62 = (RuntimeObject *)((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->get_value_3();
KeyValuePair_2_t2245450819 L_63;
memset(&L_63, 0, sizeof(L_63));
KeyValuePair_2__ctor_m2056996813((&L_63), (int64_t)L_59, (RuntimeObject *)L_62, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
KeyValuePair_2_t2245450819 L_64 = L_63;
RuntimeObject * L_65 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 25), &L_64);
NullCheck(L_54);
ArrayElementTypeCheck (L_54, L_65);
(L_54)->SetAt(static_cast<il2cpp_array_size_t>(L_56), (RuntimeObject *)L_65);
}
IL_016d:
{
int32_t L_66 = V_7;
V_7 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1));
}
IL_0173:
{
int32_t L_67 = V_7;
int32_t L_68 = V_5;
if ((((int32_t)L_67) < ((int32_t)L_68)))
{
goto IL_012d;
}
}
IL_0179:
{
goto IL_018c;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_017b;
throw e;
}
CATCH_017b:
{ // begin catch(System.ArrayTypeMismatchException)
ArgumentException_t132251570 * L_69 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_69, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_69, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m3202742554_RuntimeMethod_var);
} // end catch (depth: 1)
IL_018c:
{
return;
}
}
// System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IEnumerable.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m1303354371_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
Enumerator_t1801961427 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2847475527((&L_0), (Dictionary_2_t4142745948 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t1801961427 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.ICollection.get_IsSynchronized()
extern "C" bool Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m1206507357_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.ICollection.get_SyncRoot()
extern "C" RuntimeObject * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2718487944_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2718487944_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get__syncRoot_9();
if (L_0)
{
goto IL_001a;
}
}
{
RuntimeObject ** L_1 = (RuntimeObject **)__this->get_address_of__syncRoot_9();
RuntimeObject * L_2 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_2, /*hidden argument*/NULL);
InterlockedCompareExchangeImpl<RuntimeObject *>((RuntimeObject **)(RuntimeObject **)L_1, (RuntimeObject *)L_2, (RuntimeObject *)NULL);
}
IL_001a:
{
RuntimeObject * L_3 = (RuntimeObject *)__this->get__syncRoot_9();
return L_3;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IDictionary.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_IDictionary_get_IsReadOnly_m1328549298_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IDictionary.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Keys_m1480248851_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t4142745948 *)__this);
KeyCollection_t37454123 * L_0 = (( KeyCollection_t37454123 * (*) (Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39)->methodPointer)((Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39));
return L_0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IDictionary.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Values_m1997834558_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t4142745948 *)__this);
ValueCollection_t1563822970 * L_0 = (( ValueCollection_t1563822970 * (*) (Dictionary_2_t4142745948 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40)->methodPointer)((Dictionary_2_t4142745948 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40));
return L_0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IDictionary.get_Item(System.Object)
extern "C" RuntimeObject * Dictionary_2_System_Collections_IDictionary_get_Item_m2163779460_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0030;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t4142745948 *)__this);
int32_t L_3 = (( int32_t (*) (Dictionary_2_t4142745948 *, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)((*(int64_t*)((int64_t*)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_3;
int32_t L_4 = V_0;
if ((((int32_t)L_4) < ((int32_t)0)))
{
goto IL_0030;
}
}
{
EntryU5BU5D_t72598189* L_5 = (EntryU5BU5D_t72598189*)__this->get_entries_1();
int32_t L_6 = V_0;
NullCheck(L_5);
RuntimeObject * L_7 = (RuntimeObject *)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->get_value_3();
return L_7;
}
IL_0030:
{
return NULL;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IDictionary.set_Item(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m977858099_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_set_Item_m977858099_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
int64_t V_1 = 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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m977858099_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m977858099_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (int64_t)((*(int64_t*)((int64_t*)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
int64_t L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int64_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m977858099_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m977858099_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::IsCompatibleKey(System.Object)
extern "C" bool Dictionary_2_IsCompatibleKey_m467002433_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_IsCompatibleKey_m467002433_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_IsCompatibleKey_m467002433_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___key0;
return (bool)((!(((RuntimeObject*)(RuntimeObject *)((RuntimeObject *)IsInst((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 33)))) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IDictionary.Add(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m955457640_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_Add_m955457640_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
int64_t V_1 = 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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_Add_m955457640_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_Add_m955457640_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (int64_t)((*(int64_t*)((int64_t*)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
int64_t L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( void (*) (Dictionary_2_t4142745948 *, int64_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_Add_m955457640_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_Add_m955457640_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IDictionary.Contains(System.Object)
extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m1871275533_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t4142745948 *)__this);
bool L_3 = (( bool (*) (Dictionary_2_t4142745948 *, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)((*(int64_t*)((int64_t*)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46));
return L_3;
}
IL_0015:
{
return (bool)0;
}
}
// System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IDictionary.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_GetEnumerator_m2211377627_gshared (Dictionary_2_t4142745948 * __this, const RuntimeMethod* method)
{
{
Enumerator_t1801961427 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2847475527((&L_0), (Dictionary_2_t4142745948 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t1801961427 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int64,System.Object>::System.Collections.IDictionary.Remove(System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m1182777329_gshared (Dictionary_2_t4142745948 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t4142745948 *)__this);
(( bool (*) (Dictionary_2_t4142745948 *, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t4142745948 *)__this, (int64_t)((*(int64_t*)((int64_t*)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
}
IL_0015:
{
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 System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::.ctor()
extern "C" void Dictionary_2__ctor_m517598155_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1301971883 *)__this, (int32_t)0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::.ctor(System.Int32)
extern "C" void Dictionary_2__ctor_m536498921_gshared (Dictionary_2_t1301971883 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___capacity0;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1301971883 *)__this, (int32_t)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m1615361656_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject* ___comparer0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___comparer0;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1301971883 *)__this, (int32_t)0, (RuntimeObject*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::.ctor(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m2714654974_gshared (Dictionary_2_t1301971883 * __this, int32_t ___capacity0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m2714654974_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* G_B6_0 = NULL;
Dictionary_2_t1301971883 * G_B6_1 = NULL;
RuntimeObject* G_B5_0 = NULL;
Dictionary_2_t1301971883 * G_B5_1 = NULL;
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
int32_t L_0 = ___capacity0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0020;
}
}
{
int32_t L_1 = ___capacity0;
int32_t L_2 = L_1;
RuntimeObject * L_3 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_2);
ArgumentOutOfRangeException_t777629997 * L_4 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_4, (String_t*)_stringLiteral3623012086, (RuntimeObject *)L_3, (String_t*)_stringLiteral2892689725, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2__ctor_m2714654974_RuntimeMethod_var);
}
IL_0020:
{
int32_t L_5 = ___capacity0;
if ((((int32_t)L_5) <= ((int32_t)0)))
{
goto IL_002b;
}
}
{
int32_t L_6 = ___capacity0;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t1301971883 *)__this, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_002b:
{
RuntimeObject* L_7 = ___comparer1;
RuntimeObject* L_8 = (RuntimeObject*)L_7;
G_B5_0 = L_8;
G_B5_1 = ((Dictionary_2_t1301971883 *)(__this));
if (L_8)
{
G_B6_0 = L_8;
G_B6_1 = ((Dictionary_2_t1301971883 *)(__this));
goto IL_0036;
}
}
{
EqualityComparer_1_t3304889813 * L_9 = (( EqualityComparer_1_t3304889813 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2));
G_B6_0 = ((RuntimeObject*)(L_9));
G_B6_1 = ((Dictionary_2_t1301971883 *)(G_B5_1));
}
IL_0036:
{
NullCheck(G_B6_1);
G_B6_1->set_comparer_6(G_B6_0);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>)
extern "C" void Dictionary_2__ctor_m2161159971_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___dictionary0;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4)->methodPointer)((Dictionary_2_t1301971883 *)__this, (RuntimeObject*)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m698475317_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject* ___dictionary0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m698475317_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t1586537026* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
KeyValuePair_2_t3699644050 V_4;
memset(&V_4, 0, sizeof(V_4));
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);
Dictionary_2_t1301971883 * G_B2_0 = NULL;
Dictionary_2_t1301971883 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
Dictionary_2_t1301971883 * G_B3_1 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
G_B1_0 = ((Dictionary_2_t1301971883 *)(__this));
if (L_0)
{
G_B2_0 = ((Dictionary_2_t1301971883 *)(__this));
goto IL_0007;
}
}
{
G_B3_0 = 0;
G_B3_1 = ((Dictionary_2_t1301971883 *)(G_B1_0));
goto IL_000d;
}
IL_0007:
{
RuntimeObject* L_1 = ___dictionary0;
NullCheck((RuntimeObject*)L_1);
int32_t L_2 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>>::get_Count() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 5), (RuntimeObject*)L_1);
G_B3_0 = L_2;
G_B3_1 = ((Dictionary_2_t1301971883 *)(G_B2_0));
}
IL_000d:
{
RuntimeObject* L_3 = ___comparer1;
NullCheck((Dictionary_2_t1301971883 *)G_B3_1);
(( void (*) (Dictionary_2_t1301971883 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1301971883 *)G_B3_1, (int32_t)G_B3_0, (RuntimeObject*)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
RuntimeObject* L_4 = ___dictionary0;
if (L_4)
{
goto IL_0021;
}
}
{
ArgumentNullException_t1615371798 * L_5 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_5, (String_t*)_stringLiteral2957729587, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, Dictionary_2__ctor_m698475317_RuntimeMethod_var);
}
IL_0021:
{
RuntimeObject* L_6 = ___dictionary0;
NullCheck((RuntimeObject *)L_6);
Type_t * L_7 = Object_GetType_m88164663((RuntimeObject *)L_6, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_8 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 6)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_9 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_8, /*hidden argument*/NULL);
bool L_10 = Type_op_Equality_m2683486427(NULL /*static, unused*/, (Type_t *)L_7, (Type_t *)L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0085;
}
}
{
RuntimeObject* L_11 = ___dictionary0;
Dictionary_2_t1301971883 * L_12 = (Dictionary_2_t1301971883 *)((Dictionary_2_t1301971883 *)Castclass((RuntimeObject*)L_11, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 7)));
NullCheck(L_12);
int32_t L_13 = (int32_t)L_12->get_count_2();
V_0 = (int32_t)L_13;
NullCheck(L_12);
EntryU5BU5D_t1586537026* L_14 = (EntryU5BU5D_t1586537026*)L_12->get_entries_1();
V_1 = (EntryU5BU5D_t1586537026*)L_14;
V_2 = (int32_t)0;
goto IL_0080;
}
IL_004f:
{
EntryU5BU5D_t1586537026* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007c;
}
}
{
EntryU5BU5D_t1586537026* L_18 = V_1;
int32_t L_19 = V_2;
NullCheck(L_18);
intptr_t L_20 = (intptr_t)((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->get_key_2();
EntryU5BU5D_t1586537026* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
RuntimeObject * L_23 = (RuntimeObject *)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_value_3();
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, intptr_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_20, (RuntimeObject *)L_23, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_007c:
{
int32_t L_24 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0080:
{
int32_t L_25 = V_2;
int32_t L_26 = V_0;
if ((((int32_t)L_25) < ((int32_t)L_26)))
{
goto IL_004f;
}
}
{
return;
}
IL_0085:
{
RuntimeObject* L_27 = ___dictionary0;
NullCheck((RuntimeObject*)L_27);
RuntimeObject* L_28 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 9), (RuntimeObject*)L_27);
V_3 = (RuntimeObject*)L_28;
}
IL_008c:
try
{ // begin try (depth: 1)
{
goto IL_00aa;
}
IL_008e:
{
RuntimeObject* L_29 = V_3;
NullCheck((RuntimeObject*)L_29);
KeyValuePair_2_t3699644050 L_30 = InterfaceFuncInvoker0< KeyValuePair_2_t3699644050 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.IntPtr,System.Object>>::get_Current() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 10), (RuntimeObject*)L_29);
V_4 = (KeyValuePair_2_t3699644050 )L_30;
intptr_t L_31 = KeyValuePair_2_get_Key_m1204087822((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_32 = KeyValuePair_2_get_Value_m1339120122((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, intptr_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_31, (RuntimeObject *)L_32, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_00aa:
{
RuntimeObject* L_33 = V_3;
NullCheck((RuntimeObject*)L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, (RuntimeObject*)L_33);
if (L_34)
{
goto IL_008e;
}
}
IL_00b2:
{
IL2CPP_LEAVE(0xBE, FINALLY_00b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b4;
}
FINALLY_00b4:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_3;
if (!L_35)
{
goto IL_00bd;
}
}
IL_00b7:
{
RuntimeObject* L_36 = V_3;
NullCheck((RuntimeObject*)L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, (RuntimeObject*)L_36);
}
IL_00bd:
{
IL2CPP_END_FINALLY(180)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(180)
{
IL2CPP_JUMP_TBL(0xBE, IL_00be)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00be:
{
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2__ctor_m3922793767_gshared (Dictionary_2_t1301971883 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m3922793767_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_1 = ___info0;
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_Add_m4098691448((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 *)L_1, /*hidden argument*/ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var);
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::get_Count()
extern "C" int32_t Dictionary_2_get_Count_m2449135560_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_count_2();
int32_t L_1 = (int32_t)__this->get_freeCount_5();
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1));
}
}
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::get_Keys()
extern "C" KeyCollection_t1491647354 * Dictionary_2_get_Keys_m1594081790_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t1491647354 * L_0 = (KeyCollection_t1491647354 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t1491647354 * L_1 = (KeyCollection_t1491647354 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t1491647354 *, Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t1491647354 * L_2 = (KeyCollection_t1491647354 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m2539716056_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t1491647354 * L_0 = (KeyCollection_t1491647354 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t1491647354 * L_1 = (KeyCollection_t1491647354 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t1491647354 *, Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t1491647354 * L_2 = (KeyCollection_t1491647354 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TKey> System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Keys_m494028505_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t1491647354 * L_0 = (KeyCollection_t1491647354 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t1491647354 * L_1 = (KeyCollection_t1491647354 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t1491647354 *, Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t1491647354 * L_2 = (KeyCollection_t1491647354 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::get_Values()
extern "C" ValueCollection_t3018016201 * Dictionary_2_get_Values_m2635319538_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3018016201 * L_0 = (ValueCollection_t3018016201 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3018016201 * L_1 = (ValueCollection_t3018016201 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3018016201 *, Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3018016201 * L_2 = (ValueCollection_t3018016201 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m4250481624_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3018016201 * L_0 = (ValueCollection_t3018016201 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3018016201 * L_1 = (ValueCollection_t3018016201 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3018016201 *, Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3018016201 * L_2 = (ValueCollection_t3018016201 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TValue> System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Values_m1812969044_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3018016201 * L_0 = (ValueCollection_t3018016201 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3018016201 * L_1 = (ValueCollection_t3018016201 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3018016201 *, Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3018016201 * L_2 = (ValueCollection_t3018016201 *)__this->get_values_8();
return L_2;
}
}
// TValue System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::get_Item(TKey)
extern "C" RuntimeObject * Dictionary_2_get_Item_m3819809351_gshared (Dictionary_2_t1301971883 * __this, intptr_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_get_Item_m3819809351_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
intptr_t L_0 = ___key0;
NullCheck((Dictionary_2_t1301971883 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1301971883 *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_001e;
}
}
{
EntryU5BU5D_t1586537026* L_3 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_4 = V_0;
NullCheck(L_3);
RuntimeObject * L_5 = (RuntimeObject *)((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_4)))->get_value_3();
return L_5;
}
IL_001e:
{
KeyNotFoundException_t2292407383 * L_6 = (KeyNotFoundException_t2292407383 *)il2cpp_codegen_object_new(KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var);
KeyNotFoundException__ctor_m541499307(L_6, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, Dictionary_2_get_Item_m3819809351_RuntimeMethod_var);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::set_Item(TKey,TValue)
extern "C" void Dictionary_2_set_Item_m3086740455_gshared (Dictionary_2_t1301971883 * __this, intptr_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
intptr_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( bool (*) (Dictionary_2_t1301971883 *, intptr_t, RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_0, (RuntimeObject *)L_1, (uint8_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::Add(TKey,TValue)
extern "C" void Dictionary_2_Add_m653869716_gshared (Dictionary_2_t1301971883 * __this, intptr_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
intptr_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( bool (*) (Dictionary_2_t1301971883 *, intptr_t, RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_0, (RuntimeObject *)L_1, (uint8_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m1006189042_gshared (Dictionary_2_t1301971883 * __this, KeyValuePair_2_t3699644050 ___keyValuePair0, const RuntimeMethod* method)
{
{
intptr_t L_0 = KeyValuePair_2_get_Key_m1204087822((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_1 = KeyValuePair_2_get_Value_m1339120122((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, intptr_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_0, (RuntimeObject *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m3724727653_gshared (Dictionary_2_t1301971883 * __this, KeyValuePair_2_t3699644050 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
intptr_t L_0 = KeyValuePair_2_get_Key_m1204087822((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1301971883 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1301971883 *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0038;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t1586537026* L_4 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m1339120122((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0038;
}
}
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m3227875526_gshared (Dictionary_2_t1301971883 * __this, KeyValuePair_2_t3699644050 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
intptr_t L_0 = KeyValuePair_2_get_Key_m1204087822((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1301971883 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1301971883 *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0046;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t1586537026* L_4 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m1339120122((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0046;
}
}
{
intptr_t L_9 = KeyValuePair_2_get_Key_m1204087822((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1301971883 *)__this);
(( bool (*) (Dictionary_2_t1301971883 *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
return (bool)1;
}
IL_0046:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::Clear()
extern "C" void Dictionary_2_Clear_m2004527236_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (int32_t)__this->get_count_2();
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_005a;
}
}
{
V_0 = (int32_t)0;
goto IL_001a;
}
IL_000d:
{
Int32U5BU5D_t385246372* L_1 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_2 = V_0;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_001a:
{
int32_t L_4 = V_0;
Int32U5BU5D_t385246372* L_5 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000d;
}
}
{
EntryU5BU5D_t1586537026* L_6 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_7 = (int32_t)__this->get_count_2();
Array_Clear_m2231608178(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_6, (int32_t)0, (int32_t)L_7, /*hidden argument*/NULL);
__this->set_freeList_4((-1));
__this->set_count_2(0);
__this->set_freeCount_5(0);
int32_t L_8 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)));
}
IL_005a:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::ContainsKey(TKey)
extern "C" bool Dictionary_2_ContainsKey_m415531417_gshared (Dictionary_2_t1301971883 * __this, intptr_t ___key0, const RuntimeMethod* method)
{
{
intptr_t L_0 = ___key0;
NullCheck((Dictionary_2_t1301971883 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1301971883 *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
return (bool)((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::ContainsValue(TValue)
extern "C" bool Dictionary_2_ContainsValue_m152032383_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject * ___value0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
EqualityComparer_1_t1249878500 * V_1 = NULL;
int32_t V_2 = 0;
{
RuntimeObject * L_0 = ___value0;
if (L_0)
{
goto IL_0049;
}
}
{
V_0 = (int32_t)0;
goto IL_003e;
}
IL_000c:
{
EntryU5BU5D_t1586537026* L_1 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_2 = V_0;
NullCheck(L_1);
int32_t L_3 = (int32_t)((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->get_hashCode_0();
if ((((int32_t)L_3) < ((int32_t)0)))
{
goto IL_003a;
}
}
{
EntryU5BU5D_t1586537026* L_4 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
if (L_6)
{
goto IL_003a;
}
}
{
return (bool)1;
}
IL_003a:
{
int32_t L_7 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_003e:
{
int32_t L_8 = V_0;
int32_t L_9 = (int32_t)__this->get_count_2();
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_000c;
}
}
{
goto IL_0090;
}
IL_0049:
{
EqualityComparer_1_t1249878500 * L_10 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
V_1 = (EqualityComparer_1_t1249878500 *)L_10;
V_2 = (int32_t)0;
goto IL_0087;
}
IL_0053:
{
EntryU5BU5D_t1586537026* L_11 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_12 = V_2;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) < ((int32_t)0)))
{
goto IL_0083;
}
}
{
EqualityComparer_1_t1249878500 * L_14 = V_1;
EntryU5BU5D_t1586537026* L_15 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_16 = V_2;
NullCheck(L_15);
RuntimeObject * L_17 = (RuntimeObject *)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_value_3();
RuntimeObject * L_18 = ___value0;
NullCheck((EqualityComparer_1_t1249878500 *)L_14);
bool L_19 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_14, (RuntimeObject *)L_17, (RuntimeObject *)L_18);
if (!L_19)
{
goto IL_0083;
}
}
{
return (bool)1;
}
IL_0083:
{
int32_t L_20 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
}
IL_0087:
{
int32_t L_21 = V_2;
int32_t L_22 = (int32_t)__this->get_count_2();
if ((((int32_t)L_21) < ((int32_t)L_22)))
{
goto IL_0053;
}
}
IL_0090:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_CopyTo_m3468884170_gshared (Dictionary_2_t1301971883 * __this, KeyValuePair_2U5BU5D_t1037808359* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_CopyTo_m3468884170_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t1586537026* V_1 = NULL;
int32_t V_2 = 0;
{
KeyValuePair_2U5BU5D_t1037808359* L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_CopyTo_m3468884170_RuntimeMethod_var);
}
IL_000e:
{
int32_t L_2 = ___index1;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0018;
}
}
{
int32_t L_3 = ___index1;
KeyValuePair_2U5BU5D_t1037808359* L_4 = ___array0;
NullCheck(L_4);
if ((((int32_t)L_3) <= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length)))))))
{
goto IL_002e;
}
}
IL_0018:
{
int32_t L_5 = ___index1;
int32_t L_6 = L_5;
RuntimeObject * L_7 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_6);
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_8, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_7, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, Dictionary_2_CopyTo_m3468884170_RuntimeMethod_var);
}
IL_002e:
{
KeyValuePair_2U5BU5D_t1037808359* L_9 = ___array0;
NullCheck(L_9);
int32_t L_10 = ___index1;
NullCheck((Dictionary_2_t1301971883 *)__this);
int32_t L_11 = (( int32_t (*) (Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_9)->max_length)))), (int32_t)L_10))) >= ((int32_t)L_11)))
{
goto IL_0046;
}
}
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_12, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_CopyTo_m3468884170_RuntimeMethod_var);
}
IL_0046:
{
int32_t L_13 = (int32_t)__this->get_count_2();
V_0 = (int32_t)L_13;
EntryU5BU5D_t1586537026* L_14 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
V_1 = (EntryU5BU5D_t1586537026*)L_14;
V_2 = (int32_t)0;
goto IL_0094;
}
IL_0058:
{
EntryU5BU5D_t1586537026* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_0090;
}
}
{
KeyValuePair_2U5BU5D_t1037808359* L_18 = ___array0;
int32_t L_19 = ___index1;
int32_t L_20 = (int32_t)L_19;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
EntryU5BU5D_t1586537026* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
intptr_t L_23 = (intptr_t)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_key_2();
EntryU5BU5D_t1586537026* L_24 = V_1;
int32_t L_25 = V_2;
NullCheck(L_24);
RuntimeObject * L_26 = (RuntimeObject *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_value_3();
KeyValuePair_2_t3699644050 L_27;
memset(&L_27, 0, sizeof(L_27));
KeyValuePair_2__ctor_m3953574590((&L_27), (intptr_t)L_23, (RuntimeObject *)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
NullCheck(L_18);
(L_18)->SetAt(static_cast<il2cpp_array_size_t>(L_20), (KeyValuePair_2_t3699644050 )L_27);
}
IL_0090:
{
int32_t L_28 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_0094:
{
int32_t L_29 = V_2;
int32_t L_30 = V_0;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0058;
}
}
{
return;
}
}
// System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::GetEnumerator()
extern "C" Enumerator_t3256154658 Dictionary_2_GetEnumerator_m3671769855_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3256154658 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m1925663634((&L_0), (Dictionary_2_t1301971883 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
return L_0;
}
}
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m2459597059_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3256154658 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m1925663634((&L_0), (Dictionary_2_t1301971883 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3256154658 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2_GetObjectData_m2556964510_gshared (Dictionary_2_t1301971883 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_GetObjectData_m2556964510_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t1037808359* V_0 = NULL;
String_t* G_B4_0 = NULL;
SerializationInfo_t950877179 * G_B4_1 = NULL;
String_t* G_B3_0 = NULL;
SerializationInfo_t950877179 * G_B3_1 = NULL;
int32_t G_B5_0 = 0;
String_t* G_B5_1 = NULL;
SerializationInfo_t950877179 * G_B5_2 = NULL;
{
SerializationInfo_t950877179 * L_0 = ___info0;
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, (String_t*)_stringLiteral79347, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_GetObjectData_m2556964510_RuntimeMethod_var);
}
IL_000e:
{
SerializationInfo_t950877179 * L_2 = ___info0;
int32_t L_3 = (int32_t)__this->get_version_3();
NullCheck((SerializationInfo_t950877179 *)L_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, (int32_t)L_3, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_4 = ___info0;
RuntimeObject* L_5 = (RuntimeObject*)__this->get_comparer_6();
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_4);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral892943380, (RuntimeObject *)L_5, (Type_t *)L_7, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_8 = ___info0;
Int32U5BU5D_t385246372* L_9 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
G_B3_0 = _stringLiteral953796230;
G_B3_1 = L_8;
if (!L_9)
{
G_B4_0 = _stringLiteral953796230;
G_B4_1 = L_8;
goto IL_0052;
}
}
{
Int32U5BU5D_t385246372* L_10 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_10);
G_B5_0 = (((int32_t)((int32_t)(((RuntimeArray *)L_10)->max_length))));
G_B5_1 = G_B3_0;
G_B5_2 = G_B3_1;
goto IL_0053;
}
IL_0052:
{
G_B5_0 = 0;
G_B5_1 = G_B4_0;
G_B5_2 = G_B4_1;
}
IL_0053:
{
NullCheck((SerializationInfo_t950877179 *)G_B5_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)G_B5_2, (String_t*)G_B5_1, (int32_t)G_B5_0, /*hidden argument*/NULL);
Int32U5BU5D_t385246372* L_11 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_11)
{
goto IL_008a;
}
}
{
NullCheck((Dictionary_2_t1301971883 *)__this);
int32_t L_12 = (( int32_t (*) (Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
V_0 = (KeyValuePair_2U5BU5D_t1037808359*)((KeyValuePair_2U5BU5D_t1037808359*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 30), (uint32_t)L_12));
KeyValuePair_2U5BU5D_t1037808359* L_13 = V_0;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, KeyValuePair_2U5BU5D_t1037808359*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1301971883 *)__this, (KeyValuePair_2U5BU5D_t1037808359*)L_13, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
SerializationInfo_t950877179 * L_14 = ___info0;
KeyValuePair_2U5BU5D_t1037808359* L_15 = V_0;
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_16, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_14);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_14, (String_t*)_stringLiteral2947573650, (RuntimeObject *)(RuntimeObject *)L_15, (Type_t *)L_17, /*hidden argument*/NULL);
}
IL_008a:
{
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::FindEntry(TKey)
extern "C" int32_t Dictionary_2_FindEntry_m3757802837_gshared (Dictionary_2_t1301971883 * __this, intptr_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_FindEntry_m3757802837_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_FindEntry_m3757802837_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_008d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
intptr_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, intptr_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.IntPtr>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (intptr_t)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
Int32U5BU5D_t385246372* L_6 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_7 = V_0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_8);
NullCheck(L_6);
int32_t L_9 = ((int32_t)((int32_t)L_7%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length))))));
int32_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = (int32_t)L_10;
goto IL_0089;
}
IL_0042:
{
EntryU5BU5D_t1586537026* L_11 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_12 = V_1;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
int32_t L_14 = V_0;
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
{
goto IL_0077;
}
}
{
RuntimeObject* L_15 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t1586537026* L_16 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_17 = V_1;
NullCheck(L_16);
intptr_t L_18 = (intptr_t)((L_16)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_17)))->get_key_2();
intptr_t L_19 = ___key0;
NullCheck((RuntimeObject*)L_15);
bool L_20 = InterfaceFuncInvoker2< bool, intptr_t, intptr_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.IntPtr>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_15, (intptr_t)L_18, (intptr_t)L_19);
if (!L_20)
{
goto IL_0077;
}
}
{
int32_t L_21 = V_1;
return L_21;
}
IL_0077:
{
EntryU5BU5D_t1586537026* L_22 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_23 = V_1;
NullCheck(L_22);
int32_t L_24 = (int32_t)((L_22)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_23)))->get_next_1();
V_1 = (int32_t)L_24;
}
IL_0089:
{
int32_t L_25 = V_1;
if ((((int32_t)L_25) >= ((int32_t)0)))
{
goto IL_0042;
}
}
IL_008d:
{
return (-1);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::Initialize(System.Int32)
extern "C" void Dictionary_2_Initialize_m3180511911_gshared (Dictionary_2_t1301971883 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Initialize_m3180511911_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
int32_t L_0 = ___capacity0;
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_GetPrime_m1056954278(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_2)));
V_1 = (int32_t)0;
goto IL_0024;
}
IL_0017:
{
Int32U5BU5D_t385246372* L_3 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_4 = V_1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (int32_t)(-1));
int32_t L_5 = V_1;
V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1));
}
IL_0024:
{
int32_t L_6 = V_1;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
if ((((int32_t)L_6) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length)))))))
{
goto IL_0017;
}
}
{
int32_t L_8 = V_0;
__this->set_entries_1(((EntryU5BU5D_t1586537026*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_8)));
__this->set_freeList_4((-1));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::TryInsert(TKey,TValue,System.Collections.Generic.InsertionBehavior)
extern "C" bool Dictionary_2_TryInsert_m559336601_gshared (Dictionary_2_t1301971883 * __this, intptr_t ___key0, RuntimeObject * ___value1, uint8_t ___behavior2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_TryInsert_m559336601_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_TryInsert_m559336601_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (L_2)
{
goto IL_0022;
}
}
{
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t1301971883 *)__this, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_0022:
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
intptr_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, intptr_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.IntPtr>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (intptr_t)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_4 = (int32_t)L_11;
goto IL_00e1;
}
IL_0051:
{
EntryU5BU5D_t1586537026* L_12 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_13 = V_4;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_00c9;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t1586537026* L_17 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_18 = V_4;
NullCheck(L_17);
intptr_t L_19 = (intptr_t)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
intptr_t L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, intptr_t, intptr_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.IntPtr>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (intptr_t)L_19, (intptr_t)L_20);
if (!L_21)
{
goto IL_00c9;
}
}
{
uint8_t L_22 = ___behavior2;
if ((!(((uint32_t)L_22) == ((uint32_t)1))))
{
goto IL_00ad;
}
}
{
EntryU5BU5D_t1586537026* L_23 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_24 = V_4;
NullCheck(L_23);
RuntimeObject * L_25 = ___value1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_value_3(L_25);
int32_t L_26 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
return (bool)1;
}
IL_00ad:
{
uint8_t L_27 = ___behavior2;
if ((!(((uint32_t)L_27) == ((uint32_t)2))))
{
goto IL_00c7;
}
}
{
intptr_t L_28 = ___key0;
intptr_t L_29 = L_28;
RuntimeObject * L_30 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_29);
String_t* L_31 = SR_Format_m1749913990(NULL /*static, unused*/, (String_t*)_stringLiteral1494472686, (RuntimeObject *)L_30, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_32 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_32, (String_t*)L_31, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_32, NULL, Dictionary_2_TryInsert_m559336601_RuntimeMethod_var);
}
IL_00c7:
{
return (bool)0;
}
IL_00c9:
{
int32_t L_33 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t1586537026* L_34 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_35 = V_4;
NullCheck(L_34);
int32_t L_36 = (int32_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_next_1();
V_4 = (int32_t)L_36;
}
IL_00e1:
{
int32_t L_37 = V_4;
if ((((int32_t)L_37) >= ((int32_t)0)))
{
goto IL_0051;
}
}
{
int32_t L_38 = (int32_t)__this->get_freeCount_5();
if ((((int32_t)L_38) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t L_39 = (int32_t)__this->get_freeList_4();
V_3 = (int32_t)L_39;
EntryU5BU5D_t1586537026* L_40 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_41 = V_3;
NullCheck(L_40);
int32_t L_42 = (int32_t)((L_40)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_41)))->get_next_1();
__this->set_freeList_4(L_42);
int32_t L_43 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_subtract((int32_t)L_43, (int32_t)1)));
goto IL_0156;
}
IL_0120:
{
int32_t L_44 = (int32_t)__this->get_count_2();
EntryU5BU5D_t1586537026* L_45 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
NullCheck(L_45);
if ((!(((uint32_t)L_44) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_45)->max_length))))))))
{
goto IL_0141;
}
}
{
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36)->methodPointer)((Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36));
int32_t L_46 = V_0;
Int32U5BU5D_t385246372* L_47 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_47);
V_1 = (int32_t)((int32_t)((int32_t)L_46%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_47)->max_length))))));
}
IL_0141:
{
int32_t L_48 = (int32_t)__this->get_count_2();
V_3 = (int32_t)L_48;
int32_t L_49 = (int32_t)__this->get_count_2();
__this->set_count_2(((int32_t)il2cpp_codegen_add((int32_t)L_49, (int32_t)1)));
}
IL_0156:
{
EntryU5BU5D_t1586537026* L_50 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_51 = V_3;
NullCheck(L_50);
int32_t L_52 = V_0;
((L_50)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_51)))->set_hashCode_0(L_52);
EntryU5BU5D_t1586537026* L_53 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_54 = V_3;
NullCheck(L_53);
Int32U5BU5D_t385246372* L_55 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_56 = V_1;
NullCheck(L_55);
int32_t L_57 = L_56;
int32_t L_58 = (L_55)->GetAt(static_cast<il2cpp_array_size_t>(L_57));
((L_53)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_54)))->set_next_1(L_58);
EntryU5BU5D_t1586537026* L_59 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_60 = V_3;
NullCheck(L_59);
intptr_t L_61 = ___key0;
((L_59)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_60)))->set_key_2(L_61);
EntryU5BU5D_t1586537026* L_62 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_63 = V_3;
NullCheck(L_62);
RuntimeObject * L_64 = ___value1;
((L_62)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_63)))->set_value_3(L_64);
Int32U5BU5D_t385246372* L_65 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_66 = V_1;
int32_t L_67 = V_3;
NullCheck(L_65);
(L_65)->SetAt(static_cast<il2cpp_array_size_t>(L_66), (int32_t)L_67);
int32_t L_68 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_68, (int32_t)1)));
int32_t L_69 = V_2;
if ((((int32_t)L_69) <= ((int32_t)((int32_t)100))))
{
goto IL_01ed;
}
}
{
RuntimeObject* L_70 = (RuntimeObject*)__this->get_comparer_6();
if (!((NonRandomizedStringEqualityComparer_t1082005352 *)IsInst((RuntimeObject*)L_70, NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var)))
{
goto IL_01ed;
}
}
{
EqualityComparer_1_t17223025 * L_71 = EqualityComparer_1_get_Default_m2310016383(NULL /*static, unused*/, /*hidden argument*/EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_71, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
EntryU5BU5D_t1586537026* L_72 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
NullCheck(L_72);
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t1301971883 *)__this, (int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_72)->max_length)))), (bool)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
}
IL_01ed:
{
return (bool)1;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::OnDeserialization(System.Object)
extern "C" void Dictionary_2_OnDeserialization_m2513480556_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject * ___sender0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_OnDeserialization_m2513480556_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SerializationInfo_t950877179 * V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
KeyValuePair_2U5BU5D_t1037808359* V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_TryGetValue_m1618998192((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 **)(SerializationInfo_t950877179 **)(&V_0), /*hidden argument*/ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var);
SerializationInfo_t950877179 * L_1 = V_0;
if (L_1)
{
goto IL_0012;
}
}
{
return;
}
IL_0012:
{
SerializationInfo_t950877179 * L_2 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_2);
int32_t L_3 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, /*hidden argument*/NULL);
V_1 = (int32_t)L_3;
SerializationInfo_t950877179 * L_4 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_4);
int32_t L_5 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral953796230, /*hidden argument*/NULL);
V_2 = (int32_t)L_5;
SerializationInfo_t950877179 * L_6 = V_0;
RuntimeTypeHandle_t3027515415 L_7 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_8 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_7, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_6);
RuntimeObject * L_9 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_6, (String_t*)_stringLiteral892943380, (Type_t *)L_8, /*hidden argument*/NULL);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_9, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
int32_t L_10 = V_2;
if (!L_10)
{
goto IL_010c;
}
}
{
int32_t L_11 = V_2;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_11)));
V_4 = (int32_t)0;
goto IL_0071;
}
IL_0061:
{
Int32U5BU5D_t385246372* L_12 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_13 = V_4;
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)(-1));
int32_t L_14 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0071:
{
int32_t L_15 = V_4;
Int32U5BU5D_t385246372* L_16 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0061;
}
}
{
int32_t L_17 = V_2;
__this->set_entries_1(((EntryU5BU5D_t1586537026*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_17)));
__this->set_freeList_4((-1));
SerializationInfo_t950877179 * L_18 = V_0;
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_19, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_18);
RuntimeObject * L_21 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_18, (String_t*)_stringLiteral2947573650, (Type_t *)L_20, /*hidden argument*/NULL);
V_3 = (KeyValuePair_2U5BU5D_t1037808359*)((KeyValuePair_2U5BU5D_t1037808359*)Castclass((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t1037808359* L_22 = V_3;
if (L_22)
{
goto IL_00b9;
}
}
{
SerializationException_t3941511869 * L_23 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_23, (String_t*)_stringLiteral998597917, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_23, NULL, Dictionary_2_OnDeserialization_m2513480556_RuntimeMethod_var);
}
IL_00b9:
{
V_5 = (int32_t)0;
goto IL_0103;
}
IL_00be:
{
KeyValuePair_2U5BU5D_t1037808359* L_24 = V_3;
int32_t L_25 = V_5;
NullCheck(L_24);
intptr_t L_26 = KeyValuePair_2_get_Key_m1204087822((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
goto IL_00dd;
}
{
SerializationException_t3941511869 * L_27 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_27, (String_t*)_stringLiteral3616747365, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_27, NULL, Dictionary_2_OnDeserialization_m2513480556_RuntimeMethod_var);
}
IL_00dd:
{
KeyValuePair_2U5BU5D_t1037808359* L_28 = V_3;
int32_t L_29 = V_5;
NullCheck(L_28);
intptr_t L_30 = KeyValuePair_2_get_Key_m1204087822((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
KeyValuePair_2U5BU5D_t1037808359* L_31 = V_3;
int32_t L_32 = V_5;
NullCheck(L_31);
RuntimeObject * L_33 = KeyValuePair_2_get_Value_m1339120122((KeyValuePair_2_t3699644050 *)(KeyValuePair_2_t3699644050 *)((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, intptr_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_30, (RuntimeObject *)L_33, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
int32_t L_34 = V_5;
V_5 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_34, (int32_t)1));
}
IL_0103:
{
int32_t L_35 = V_5;
KeyValuePair_2U5BU5D_t1037808359* L_36 = V_3;
NullCheck(L_36);
if ((((int32_t)L_35) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_36)->max_length)))))))
{
goto IL_00be;
}
}
{
goto IL_0113;
}
IL_010c:
{
__this->set_buckets_0((Int32U5BU5D_t385246372*)NULL);
}
IL_0113:
{
int32_t L_37 = V_1;
__this->set_version_3(L_37);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_38 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_38);
ConditionalWeakTable_2_Remove_m2013031576((ConditionalWeakTable_2_t1452810305 *)L_38, (RuntimeObject *)__this, /*hidden argument*/ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::Resize()
extern "C" void Dictionary_2_Resize_m2794652808_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m2794652808_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = (int32_t)__this->get_count_2();
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_ExpandPrime_m2180508331(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t1301971883 *)__this, (int32_t)L_1, (bool)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::Resize(System.Int32,System.Boolean)
extern "C" void Dictionary_2_Resize_m742467928_gshared (Dictionary_2_t1301971883 * __this, int32_t ___newSize0, bool ___forceNewHashCodes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m742467928_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Int32U5BU5D_t385246372* V_0 = NULL;
EntryU5BU5D_t1586537026* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t L_0 = ___newSize0;
V_0 = (Int32U5BU5D_t385246372*)((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_0));
V_2 = (int32_t)0;
goto IL_0013;
}
IL_000b:
{
Int32U5BU5D_t385246372* L_1 = V_0;
int32_t L_2 = V_2;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_0013:
{
int32_t L_4 = V_2;
Int32U5BU5D_t385246372* L_5 = V_0;
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000b;
}
}
{
int32_t L_6 = ___newSize0;
V_1 = (EntryU5BU5D_t1586537026*)((EntryU5BU5D_t1586537026*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_6));
EntryU5BU5D_t1586537026* L_7 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
EntryU5BU5D_t1586537026* L_8 = V_1;
int32_t L_9 = (int32_t)__this->get_count_2();
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_7, (int32_t)0, (RuntimeArray *)(RuntimeArray *)L_8, (int32_t)0, (int32_t)L_9, /*hidden argument*/NULL);
bool L_10 = ___forceNewHashCodes1;
if (!L_10)
{
goto IL_0080;
}
}
{
V_3 = (int32_t)0;
goto IL_0077;
}
IL_003b:
{
EntryU5BU5D_t1586537026* L_11 = V_1;
int32_t L_12 = V_3;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) == ((int32_t)(-1))))
{
goto IL_0073;
}
}
{
EntryU5BU5D_t1586537026* L_14 = V_1;
int32_t L_15 = V_3;
NullCheck(L_14);
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t1586537026* L_17 = V_1;
int32_t L_18 = V_3;
NullCheck(L_17);
intptr_t L_19 = (intptr_t)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
NullCheck((RuntimeObject*)L_16);
int32_t L_20 = InterfaceFuncInvoker1< int32_t, intptr_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.IntPtr>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (intptr_t)L_19);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->set_hashCode_0(((int32_t)((int32_t)L_20&(int32_t)((int32_t)2147483647LL))));
}
IL_0073:
{
int32_t L_21 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1));
}
IL_0077:
{
int32_t L_22 = V_3;
int32_t L_23 = (int32_t)__this->get_count_2();
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_003b;
}
}
IL_0080:
{
V_4 = (int32_t)0;
goto IL_00c3;
}
IL_0085:
{
EntryU5BU5D_t1586537026* L_24 = V_1;
int32_t L_25 = V_4;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_hashCode_0();
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00bd;
}
}
{
EntryU5BU5D_t1586537026* L_27 = V_1;
int32_t L_28 = V_4;
NullCheck(L_27);
int32_t L_29 = (int32_t)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->get_hashCode_0();
int32_t L_30 = ___newSize0;
V_5 = (int32_t)((int32_t)((int32_t)L_29%(int32_t)L_30));
EntryU5BU5D_t1586537026* L_31 = V_1;
int32_t L_32 = V_4;
NullCheck(L_31);
Int32U5BU5D_t385246372* L_33 = V_0;
int32_t L_34 = V_5;
NullCheck(L_33);
int32_t L_35 = L_34;
int32_t L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32)))->set_next_1(L_36);
Int32U5BU5D_t385246372* L_37 = V_0;
int32_t L_38 = V_5;
int32_t L_39 = V_4;
NullCheck(L_37);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(L_38), (int32_t)L_39);
}
IL_00bd:
{
int32_t L_40 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
}
IL_00c3:
{
int32_t L_41 = V_4;
int32_t L_42 = (int32_t)__this->get_count_2();
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_0085;
}
}
{
Int32U5BU5D_t385246372* L_43 = V_0;
__this->set_buckets_0(L_43);
EntryU5BU5D_t1586537026* L_44 = V_1;
__this->set_entries_1(L_44);
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::Remove(TKey)
extern "C" bool Dictionary_2_Remove_m578306649_gshared (Dictionary_2_t1301971883 * __this, intptr_t ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Remove_m578306649_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_Remove_m578306649_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_015d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
intptr_t L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, intptr_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.IntPtr>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (intptr_t)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)(-1);
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_3 = (int32_t)L_11;
goto IL_0156;
}
IL_004c:
{
EntryU5BU5D_t1586537026* L_12 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_13 = V_3;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0142;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t1586537026* L_17 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_18 = V_3;
NullCheck(L_17);
intptr_t L_19 = (intptr_t)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
intptr_t L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, intptr_t, intptr_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.IntPtr>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (intptr_t)L_19, (intptr_t)L_20);
if (!L_21)
{
goto IL_0142;
}
}
{
int32_t L_22 = V_2;
if ((((int32_t)L_22) >= ((int32_t)0)))
{
goto IL_00a4;
}
}
{
Int32U5BU5D_t385246372* L_23 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_24 = V_1;
EntryU5BU5D_t1586537026* L_25 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_26 = V_3;
NullCheck(L_25);
int32_t L_27 = (int32_t)((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->get_next_1();
NullCheck(L_23);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(L_24), (int32_t)L_27);
goto IL_00c6;
}
IL_00a4:
{
EntryU5BU5D_t1586537026* L_28 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_29 = V_2;
NullCheck(L_28);
EntryU5BU5D_t1586537026* L_30 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_31 = V_3;
NullCheck(L_30);
int32_t L_32 = (int32_t)((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->get_next_1();
((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->set_next_1(L_32);
}
IL_00c6:
{
EntryU5BU5D_t1586537026* L_33 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_34 = V_3;
NullCheck(L_33);
((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->set_hashCode_0((-1));
EntryU5BU5D_t1586537026* L_35 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_36 = V_3;
NullCheck(L_35);
int32_t L_37 = (int32_t)__this->get_freeList_4();
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->set_next_1(L_37);
EntryU5BU5D_t1586537026* L_38 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
intptr_t* L_40 = (intptr_t*)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_address_of_key_2();
il2cpp_codegen_initobj(L_40, sizeof(intptr_t));
EntryU5BU5D_t1586537026* L_41 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_42 = V_3;
NullCheck(L_41);
RuntimeObject ** L_43 = (RuntimeObject **)((L_41)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_42)))->get_address_of_value_3();
il2cpp_codegen_initobj(L_43, sizeof(RuntimeObject *));
int32_t L_44 = V_3;
__this->set_freeList_4(L_44);
int32_t L_45 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1)));
int32_t L_46 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1)));
return (bool)1;
}
IL_0142:
{
int32_t L_47 = V_3;
V_2 = (int32_t)L_47;
EntryU5BU5D_t1586537026* L_48 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = (int32_t)((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->get_next_1();
V_3 = (int32_t)L_50;
}
IL_0156:
{
int32_t L_51 = V_3;
if ((((int32_t)L_51) >= ((int32_t)0)))
{
goto IL_004c;
}
}
IL_015d:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::TryGetValue(TKey,TValue&)
extern "C" bool Dictionary_2_TryGetValue_m672111546_gshared (Dictionary_2_t1301971883 * __this, intptr_t ___key0, RuntimeObject ** ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
intptr_t L_0 = ___key0;
NullCheck((Dictionary_2_t1301971883 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1301971883 *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0025;
}
}
{
RuntimeObject ** L_3 = ___value1;
EntryU5BU5D_t1586537026* L_4 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
*(RuntimeObject **)L_3 = L_6;
Il2CppCodeGenWriteBarrier((RuntimeObject **)L_3, L_6);
return (bool)1;
}
IL_0025:
{
RuntimeObject ** L_7 = ___value1;
il2cpp_codegen_initobj(L_7, sizeof(RuntimeObject *));
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::TryAdd(TKey,TValue)
extern "C" bool Dictionary_2_TryAdd_m2883512111_gshared (Dictionary_2_t1301971883 * __this, intptr_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
intptr_t L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t1301971883 *)__this);
bool L_2 = (( bool (*) (Dictionary_2_t1301971883 *, intptr_t, RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_0, (RuntimeObject *)L_1, (uint8_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1292277535_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m4225453563_gshared (Dictionary_2_t1301971883 * __this, KeyValuePair_2U5BU5D_t1037808359* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
{
KeyValuePair_2U5BU5D_t1037808359* L_0 = ___array0;
int32_t L_1 = ___index1;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, KeyValuePair_2U5BU5D_t1037808359*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1301971883 *)__this, (KeyValuePair_2U5BU5D_t1037808359*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32)
extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_gshared (Dictionary_2_t1301971883 * __this, RuntimeArray * ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t1037808359* V_0 = NULL;
DictionaryEntryU5BU5D_t4217117203* V_1 = NULL;
EntryU5BU5D_t1586537026* V_2 = NULL;
int32_t V_3 = 0;
ObjectU5BU5D_t2843939325* V_4 = NULL;
int32_t V_5 = 0;
EntryU5BU5D_t1586537026* V_6 = NULL;
int32_t V_7 = 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);
{
RuntimeArray * L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_RuntimeMethod_var);
}
IL_000e:
{
RuntimeArray * L_2 = ___array0;
NullCheck((RuntimeArray *)L_2);
int32_t L_3 = Array_get_Rank_m3448755881((RuntimeArray *)L_2, /*hidden argument*/NULL);
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0027;
}
}
{
ArgumentException_t132251570 * L_4 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_4, (String_t*)_stringLiteral915403387, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_RuntimeMethod_var);
}
IL_0027:
{
RuntimeArray * L_5 = ___array0;
NullCheck((RuntimeArray *)L_5);
int32_t L_6 = Array_GetLowerBound_m2045984623((RuntimeArray *)L_5, (int32_t)0, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0040;
}
}
{
ArgumentException_t132251570 * L_7 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_7, (String_t*)_stringLiteral2590862907, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_RuntimeMethod_var);
}
IL_0040:
{
int32_t L_8 = ___index1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_004d;
}
}
{
int32_t L_9 = ___index1;
RuntimeArray * L_10 = ___array0;
NullCheck((RuntimeArray *)L_10);
int32_t L_11 = Array_get_Length_m21610649((RuntimeArray *)L_10, /*hidden argument*/NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0063;
}
}
IL_004d:
{
int32_t L_12 = ___index1;
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_13);
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_15, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_14, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_RuntimeMethod_var);
}
IL_0063:
{
RuntimeArray * L_16 = ___array0;
NullCheck((RuntimeArray *)L_16);
int32_t L_17 = Array_get_Length_m21610649((RuntimeArray *)L_16, /*hidden argument*/NULL);
int32_t L_18 = ___index1;
NullCheck((Dictionary_2_t1301971883 *)__this);
int32_t L_19 = (( int32_t (*) (Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)L_18))) >= ((int32_t)L_19)))
{
goto IL_007e;
}
}
{
ArgumentException_t132251570 * L_20 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_20, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_20, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_RuntimeMethod_var);
}
IL_007e:
{
RuntimeArray * L_21 = ___array0;
V_0 = (KeyValuePair_2U5BU5D_t1037808359*)((KeyValuePair_2U5BU5D_t1037808359*)IsInst((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t1037808359* L_22 = V_0;
if (!L_22)
{
goto IL_0091;
}
}
{
KeyValuePair_2U5BU5D_t1037808359* L_23 = V_0;
int32_t L_24 = ___index1;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, KeyValuePair_2U5BU5D_t1037808359*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1301971883 *)__this, (KeyValuePair_2U5BU5D_t1037808359*)L_23, (int32_t)L_24, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
IL_0091:
{
RuntimeArray * L_25 = ___array0;
if (!((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_25, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var)))
{
goto IL_00fb;
}
}
{
RuntimeArray * L_26 = ___array0;
V_1 = (DictionaryEntryU5BU5D_t4217117203*)((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_26, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var));
EntryU5BU5D_t1586537026* L_27 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
V_2 = (EntryU5BU5D_t1586537026*)L_27;
V_3 = (int32_t)0;
goto IL_00f1;
}
IL_00ab:
{
EntryU5BU5D_t1586537026* L_28 = V_2;
int32_t L_29 = V_3;
NullCheck(L_28);
int32_t L_30 = (int32_t)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->get_hashCode_0();
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_00ed;
}
}
{
DictionaryEntryU5BU5D_t4217117203* L_31 = V_1;
int32_t L_32 = ___index1;
int32_t L_33 = (int32_t)L_32;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t1586537026* L_34 = V_2;
int32_t L_35 = V_3;
NullCheck(L_34);
intptr_t L_36 = (intptr_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_key_2();
intptr_t L_37 = L_36;
RuntimeObject * L_38 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_37);
EntryU5BU5D_t1586537026* L_39 = V_2;
int32_t L_40 = V_3;
NullCheck(L_39);
RuntimeObject * L_41 = (RuntimeObject *)((L_39)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_40)))->get_value_3();
DictionaryEntry_t3123975638 L_42;
memset(&L_42, 0, sizeof(L_42));
DictionaryEntry__ctor_m2585376310((&L_42), (RuntimeObject *)L_38, (RuntimeObject *)L_41, /*hidden argument*/NULL);
NullCheck(L_31);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (DictionaryEntry_t3123975638 )L_42);
}
IL_00ed:
{
int32_t L_43 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_43, (int32_t)1));
}
IL_00f1:
{
int32_t L_44 = V_3;
int32_t L_45 = (int32_t)__this->get_count_2();
if ((((int32_t)L_44) < ((int32_t)L_45)))
{
goto IL_00ab;
}
}
{
return;
}
IL_00fb:
{
RuntimeArray * L_46 = ___array0;
V_4 = (ObjectU5BU5D_t2843939325*)((ObjectU5BU5D_t2843939325*)IsInst((RuntimeObject*)L_46, ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var));
ObjectU5BU5D_t2843939325* L_47 = V_4;
if (L_47)
{
goto IL_0117;
}
}
{
ArgumentException_t132251570 * L_48 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_48, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_48, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_RuntimeMethod_var);
}
IL_0117:
{
}
IL_0118:
try
{ // begin try (depth: 1)
{
int32_t L_49 = (int32_t)__this->get_count_2();
V_5 = (int32_t)L_49;
EntryU5BU5D_t1586537026* L_50 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
V_6 = (EntryU5BU5D_t1586537026*)L_50;
V_7 = (int32_t)0;
goto IL_0173;
}
IL_012d:
{
EntryU5BU5D_t1586537026* L_51 = V_6;
int32_t L_52 = V_7;
NullCheck(L_51);
int32_t L_53 = (int32_t)((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->get_hashCode_0();
if ((((int32_t)L_53) < ((int32_t)0)))
{
goto IL_016d;
}
}
IL_013e:
{
ObjectU5BU5D_t2843939325* L_54 = V_4;
int32_t L_55 = ___index1;
int32_t L_56 = (int32_t)L_55;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_56, (int32_t)1));
EntryU5BU5D_t1586537026* L_57 = V_6;
int32_t L_58 = V_7;
NullCheck(L_57);
intptr_t L_59 = (intptr_t)((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->get_key_2();
EntryU5BU5D_t1586537026* L_60 = V_6;
int32_t L_61 = V_7;
NullCheck(L_60);
RuntimeObject * L_62 = (RuntimeObject *)((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->get_value_3();
KeyValuePair_2_t3699644050 L_63;
memset(&L_63, 0, sizeof(L_63));
KeyValuePair_2__ctor_m3953574590((&L_63), (intptr_t)L_59, (RuntimeObject *)L_62, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
KeyValuePair_2_t3699644050 L_64 = L_63;
RuntimeObject * L_65 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 25), &L_64);
NullCheck(L_54);
ArrayElementTypeCheck (L_54, L_65);
(L_54)->SetAt(static_cast<il2cpp_array_size_t>(L_56), (RuntimeObject *)L_65);
}
IL_016d:
{
int32_t L_66 = V_7;
V_7 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1));
}
IL_0173:
{
int32_t L_67 = V_7;
int32_t L_68 = V_5;
if ((((int32_t)L_67) < ((int32_t)L_68)))
{
goto IL_012d;
}
}
IL_0179:
{
goto IL_018c;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_017b;
throw e;
}
CATCH_017b:
{ // begin catch(System.ArrayTypeMismatchException)
ArgumentException_t132251570 * L_69 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_69, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_69, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m534867526_RuntimeMethod_var);
} // end catch (depth: 1)
IL_018c:
{
return;
}
}
// System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IEnumerable.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m4081758886_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3256154658 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m1925663634((&L_0), (Dictionary_2_t1301971883 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3256154658 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.ICollection.get_IsSynchronized()
extern "C" bool Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m256515291_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.ICollection.get_SyncRoot()
extern "C" RuntimeObject * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3729321703_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3729321703_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get__syncRoot_9();
if (L_0)
{
goto IL_001a;
}
}
{
RuntimeObject ** L_1 = (RuntimeObject **)__this->get_address_of__syncRoot_9();
RuntimeObject * L_2 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_2, /*hidden argument*/NULL);
InterlockedCompareExchangeImpl<RuntimeObject *>((RuntimeObject **)(RuntimeObject **)L_1, (RuntimeObject *)L_2, (RuntimeObject *)NULL);
}
IL_001a:
{
RuntimeObject * L_3 = (RuntimeObject *)__this->get__syncRoot_9();
return L_3;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IDictionary.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_IDictionary_get_IsReadOnly_m360703052_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IDictionary.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Keys_m3925410985_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1301971883 *)__this);
KeyCollection_t1491647354 * L_0 = (( KeyCollection_t1491647354 * (*) (Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39)->methodPointer)((Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39));
return L_0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IDictionary.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Values_m414885626_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1301971883 *)__this);
ValueCollection_t3018016201 * L_0 = (( ValueCollection_t3018016201 * (*) (Dictionary_2_t1301971883 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40)->methodPointer)((Dictionary_2_t1301971883 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40));
return L_0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IDictionary.get_Item(System.Object)
extern "C" RuntimeObject * Dictionary_2_System_Collections_IDictionary_get_Item_m1524611028_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0030;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1301971883 *)__this);
int32_t L_3 = (( int32_t (*) (Dictionary_2_t1301971883 *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)((*(intptr_t*)((intptr_t*)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_3;
int32_t L_4 = V_0;
if ((((int32_t)L_4) < ((int32_t)0)))
{
goto IL_0030;
}
}
{
EntryU5BU5D_t1586537026* L_5 = (EntryU5BU5D_t1586537026*)__this->get_entries_1();
int32_t L_6 = V_0;
NullCheck(L_5);
RuntimeObject * L_7 = (RuntimeObject *)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->get_value_3();
return L_7;
}
IL_0030:
{
return NULL;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IDictionary.set_Item(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m532364140_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_set_Item_m532364140_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
intptr_t V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m532364140_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m532364140_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (intptr_t)((*(intptr_t*)((intptr_t*)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
intptr_t L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, intptr_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m532364140_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m532364140_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::IsCompatibleKey(System.Object)
extern "C" bool Dictionary_2_IsCompatibleKey_m1639957113_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_IsCompatibleKey_m1639957113_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_IsCompatibleKey_m1639957113_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___key0;
return (bool)((!(((RuntimeObject*)(RuntimeObject *)((RuntimeObject *)IsInst((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 33)))) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IDictionary.Add(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m1765038143_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_Add_m1765038143_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
intptr_t V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_Add_m1765038143_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_Add_m1765038143_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (intptr_t)((*(intptr_t*)((intptr_t*)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
intptr_t L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( void (*) (Dictionary_2_t1301971883 *, intptr_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_Add_m1765038143_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_Add_m1765038143_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IDictionary.Contains(System.Object)
extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m359978932_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1301971883 *)__this);
bool L_3 = (( bool (*) (Dictionary_2_t1301971883 *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)((*(intptr_t*)((intptr_t*)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46));
return L_3;
}
IL_0015:
{
return (bool)0;
}
}
// System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IDictionary.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_GetEnumerator_m1854463635_gshared (Dictionary_2_t1301971883 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3256154658 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m1925663634((&L_0), (Dictionary_2_t1301971883 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3256154658 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.IntPtr,System.Object>::System.Collections.IDictionary.Remove(System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m615884538_gshared (Dictionary_2_t1301971883 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1301971883 *)__this);
(( bool (*) (Dictionary_2_t1301971883 *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t1301971883 *)__this, (intptr_t)((*(intptr_t*)((intptr_t*)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
}
IL_0015:
{
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 System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor()
extern "C" void Dictionary_2__ctor_m4191260488_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2023299556 *)__this, (int32_t)0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(System.Int32)
extern "C" void Dictionary_2__ctor_m3484150921_gshared (Dictionary_2_t2023299556 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___capacity0;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2023299556 *)__this, (int32_t)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m4259491940_gshared (Dictionary_2_t2023299556 * __this, RuntimeObject* ___comparer0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___comparer0;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2023299556 *)__this, (int32_t)0, (RuntimeObject*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m4175293831_gshared (Dictionary_2_t2023299556 * __this, int32_t ___capacity0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m4175293831_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* G_B6_0 = NULL;
Dictionary_2_t2023299556 * G_B6_1 = NULL;
RuntimeObject* G_B5_0 = NULL;
Dictionary_2_t2023299556 * G_B5_1 = NULL;
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
int32_t L_0 = ___capacity0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0020;
}
}
{
int32_t L_1 = ___capacity0;
int32_t L_2 = L_1;
RuntimeObject * L_3 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_2);
ArgumentOutOfRangeException_t777629997 * L_4 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_4, (String_t*)_stringLiteral3623012086, (RuntimeObject *)L_3, (String_t*)_stringLiteral2892689725, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2__ctor_m4175293831_RuntimeMethod_var);
}
IL_0020:
{
int32_t L_5 = ___capacity0;
if ((((int32_t)L_5) <= ((int32_t)0)))
{
goto IL_002b;
}
}
{
int32_t L_6 = ___capacity0;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t2023299556 *)__this, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_002b:
{
RuntimeObject* L_7 = ___comparer1;
RuntimeObject* L_8 = (RuntimeObject*)L_7;
G_B5_0 = L_8;
G_B5_1 = ((Dictionary_2_t2023299556 *)(__this));
if (L_8)
{
G_B6_0 = L_8;
G_B6_1 = ((Dictionary_2_t2023299556 *)(__this));
goto IL_0036;
}
}
{
EqualityComparer_1_t3178760529 * L_9 = (( EqualityComparer_1_t3178760529 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2));
G_B6_0 = ((RuntimeObject*)(L_9));
G_B6_1 = ((Dictionary_2_t2023299556 *)(G_B5_1));
}
IL_0036:
{
NullCheck(G_B6_1);
G_B6_1->set_comparer_6(G_B6_0);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>)
extern "C" void Dictionary_2__ctor_m3315423795_gshared (Dictionary_2_t2023299556 * __this, RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___dictionary0;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4)->methodPointer)((Dictionary_2_t2023299556 *)__this, (RuntimeObject*)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m1123465845_gshared (Dictionary_2_t2023299556 * __this, RuntimeObject* ___dictionary0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m1123465845_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t823473925* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
KeyValuePair_2_t126004427 V_4;
memset(&V_4, 0, sizeof(V_4));
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);
Dictionary_2_t2023299556 * G_B2_0 = NULL;
Dictionary_2_t2023299556 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
Dictionary_2_t2023299556 * G_B3_1 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
G_B1_0 = ((Dictionary_2_t2023299556 *)(__this));
if (L_0)
{
G_B2_0 = ((Dictionary_2_t2023299556 *)(__this));
goto IL_0007;
}
}
{
G_B3_0 = 0;
G_B3_1 = ((Dictionary_2_t2023299556 *)(G_B1_0));
goto IL_000d;
}
IL_0007:
{
RuntimeObject* L_1 = ___dictionary0;
NullCheck((RuntimeObject*)L_1);
int32_t L_2 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>>::get_Count() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 5), (RuntimeObject*)L_1);
G_B3_0 = L_2;
G_B3_1 = ((Dictionary_2_t2023299556 *)(G_B2_0));
}
IL_000d:
{
RuntimeObject* L_3 = ___comparer1;
NullCheck((Dictionary_2_t2023299556 *)G_B3_1);
(( void (*) (Dictionary_2_t2023299556 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2023299556 *)G_B3_1, (int32_t)G_B3_0, (RuntimeObject*)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
RuntimeObject* L_4 = ___dictionary0;
if (L_4)
{
goto IL_0021;
}
}
{
ArgumentNullException_t1615371798 * L_5 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_5, (String_t*)_stringLiteral2957729587, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, Dictionary_2__ctor_m1123465845_RuntimeMethod_var);
}
IL_0021:
{
RuntimeObject* L_6 = ___dictionary0;
NullCheck((RuntimeObject *)L_6);
Type_t * L_7 = Object_GetType_m88164663((RuntimeObject *)L_6, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_8 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 6)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_9 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_8, /*hidden argument*/NULL);
bool L_10 = Type_op_Equality_m2683486427(NULL /*static, unused*/, (Type_t *)L_7, (Type_t *)L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0085;
}
}
{
RuntimeObject* L_11 = ___dictionary0;
Dictionary_2_t2023299556 * L_12 = (Dictionary_2_t2023299556 *)((Dictionary_2_t2023299556 *)Castclass((RuntimeObject*)L_11, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 7)));
NullCheck(L_12);
int32_t L_13 = (int32_t)L_12->get_count_2();
V_0 = (int32_t)L_13;
NullCheck(L_12);
EntryU5BU5D_t823473925* L_14 = (EntryU5BU5D_t823473925*)L_12->get_entries_1();
V_1 = (EntryU5BU5D_t823473925*)L_14;
V_2 = (int32_t)0;
goto IL_0080;
}
IL_004f:
{
EntryU5BU5D_t823473925* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007c;
}
}
{
EntryU5BU5D_t823473925* L_18 = V_1;
int32_t L_19 = V_2;
NullCheck(L_18);
TypedConstant_t714020897 L_20 = (TypedConstant_t714020897 )((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->get_key_2();
EntryU5BU5D_t823473925* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
int32_t L_23 = (int32_t)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_value_3();
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_20, (int32_t)L_23, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_007c:
{
int32_t L_24 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0080:
{
int32_t L_25 = V_2;
int32_t L_26 = V_0;
if ((((int32_t)L_25) < ((int32_t)L_26)))
{
goto IL_004f;
}
}
{
return;
}
IL_0085:
{
RuntimeObject* L_27 = ___dictionary0;
NullCheck((RuntimeObject*)L_27);
RuntimeObject* L_28 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 9), (RuntimeObject*)L_27);
V_3 = (RuntimeObject*)L_28;
}
IL_008c:
try
{ // begin try (depth: 1)
{
goto IL_00aa;
}
IL_008e:
{
RuntimeObject* L_29 = V_3;
NullCheck((RuntimeObject*)L_29);
KeyValuePair_2_t126004427 L_30 = InterfaceFuncInvoker0< KeyValuePair_2_t126004427 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>>::get_Current() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 10), (RuntimeObject*)L_29);
V_4 = (KeyValuePair_2_t126004427 )L_30;
TypedConstant_t714020897 L_31 = KeyValuePair_2_get_Key_m2623710737((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
int32_t L_32 = KeyValuePair_2_get_Value_m3418326370((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_31, (int32_t)L_32, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_00aa:
{
RuntimeObject* L_33 = V_3;
NullCheck((RuntimeObject*)L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, (RuntimeObject*)L_33);
if (L_34)
{
goto IL_008e;
}
}
IL_00b2:
{
IL2CPP_LEAVE(0xBE, FINALLY_00b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b4;
}
FINALLY_00b4:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_3;
if (!L_35)
{
goto IL_00bd;
}
}
IL_00b7:
{
RuntimeObject* L_36 = V_3;
NullCheck((RuntimeObject*)L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, (RuntimeObject*)L_36);
}
IL_00bd:
{
IL2CPP_END_FINALLY(180)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(180)
{
IL2CPP_JUMP_TBL(0xBE, IL_00be)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00be:
{
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2__ctor_m522877889_gshared (Dictionary_2_t2023299556 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m522877889_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_1 = ___info0;
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_Add_m4098691448((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 *)L_1, /*hidden argument*/ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var);
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::get_Count()
extern "C" int32_t Dictionary_2_get_Count_m3429651309_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_count_2();
int32_t L_1 = (int32_t)__this->get_freeCount_5();
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1));
}
}
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::get_Keys()
extern "C" KeyCollection_t2212975027 * Dictionary_2_get_Keys_m3647094281_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2212975027 * L_0 = (KeyCollection_t2212975027 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2212975027 * L_1 = (KeyCollection_t2212975027 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2212975027 *, Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2212975027 * L_2 = (KeyCollection_t2212975027 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m2948670675_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2212975027 * L_0 = (KeyCollection_t2212975027 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2212975027 * L_1 = (KeyCollection_t2212975027 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2212975027 *, Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2212975027 * L_2 = (KeyCollection_t2212975027 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TKey> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Keys_m2013105061_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2212975027 * L_0 = (KeyCollection_t2212975027 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2212975027 * L_1 = (KeyCollection_t2212975027 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2212975027 *, Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2212975027 * L_2 = (KeyCollection_t2212975027 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::get_Values()
extern "C" ValueCollection_t3739343874 * Dictionary_2_get_Values_m2501161038_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3739343874 * L_0 = (ValueCollection_t3739343874 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3739343874 * L_1 = (ValueCollection_t3739343874 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3739343874 *, Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3739343874 * L_2 = (ValueCollection_t3739343874 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m1560459394_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3739343874 * L_0 = (ValueCollection_t3739343874 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3739343874 * L_1 = (ValueCollection_t3739343874 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3739343874 *, Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3739343874 * L_2 = (ValueCollection_t3739343874 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Values_m521879401_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3739343874 * L_0 = (ValueCollection_t3739343874 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3739343874 * L_1 = (ValueCollection_t3739343874 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3739343874 *, Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3739343874 * L_2 = (ValueCollection_t3739343874 *)__this->get_values_8();
return L_2;
}
}
// TValue System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::get_Item(TKey)
extern "C" int32_t Dictionary_2_get_Item_m481118197_gshared (Dictionary_2_t2023299556 * __this, TypedConstant_t714020897 ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_get_Item_m481118197_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
TypedConstant_t714020897 L_0 = ___key0;
NullCheck((Dictionary_2_t2023299556 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_001e;
}
}
{
EntryU5BU5D_t823473925* L_3 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_4 = V_0;
NullCheck(L_3);
int32_t L_5 = (int32_t)((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_4)))->get_value_3();
return L_5;
}
IL_001e:
{
KeyNotFoundException_t2292407383 * L_6 = (KeyNotFoundException_t2292407383 *)il2cpp_codegen_object_new(KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var);
KeyNotFoundException__ctor_m541499307(L_6, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, Dictionary_2_get_Item_m481118197_RuntimeMethod_var);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::set_Item(TKey,TValue)
extern "C" void Dictionary_2_set_Item_m3593614435_gshared (Dictionary_2_t2023299556 * __this, TypedConstant_t714020897 ___key0, int32_t ___value1, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = ___key0;
int32_t L_1 = ___value1;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( bool (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , int32_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_0, (int32_t)L_1, (uint8_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::Add(TKey,TValue)
extern "C" void Dictionary_2_Add_m844634468_gshared (Dictionary_2_t2023299556 * __this, TypedConstant_t714020897 ___key0, int32_t ___value1, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = ___key0;
int32_t L_1 = ___value1;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( bool (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , int32_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_0, (int32_t)L_1, (uint8_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m2866319675_gshared (Dictionary_2_t2023299556 * __this, KeyValuePair_2_t126004427 ___keyValuePair0, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = KeyValuePair_2_get_Key_m2623710737((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
int32_t L_1 = KeyValuePair_2_get_Value_m3418326370((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m1172253693_gshared (Dictionary_2_t2023299556 * __this, KeyValuePair_2_t126004427 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
TypedConstant_t714020897 L_0 = KeyValuePair_2_get_Key_m2623710737((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2023299556 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0038;
}
}
{
EqualityComparer_1_t1120718089 * L_3 = (( EqualityComparer_1_t1120718089 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t823473925* L_4 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
int32_t L_6 = (int32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
int32_t L_7 = KeyValuePair_2_get_Value_m3418326370((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1120718089 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, int32_t, int32_t >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Int32>::Equals(T,T) */, (EqualityComparer_1_t1120718089 *)L_3, (int32_t)L_6, (int32_t)L_7);
if (!L_8)
{
goto IL_0038;
}
}
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m4074663059_gshared (Dictionary_2_t2023299556 * __this, KeyValuePair_2_t126004427 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
TypedConstant_t714020897 L_0 = KeyValuePair_2_get_Key_m2623710737((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2023299556 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0046;
}
}
{
EqualityComparer_1_t1120718089 * L_3 = (( EqualityComparer_1_t1120718089 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t823473925* L_4 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
int32_t L_6 = (int32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
int32_t L_7 = KeyValuePair_2_get_Value_m3418326370((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1120718089 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, int32_t, int32_t >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Int32>::Equals(T,T) */, (EqualityComparer_1_t1120718089 *)L_3, (int32_t)L_6, (int32_t)L_7);
if (!L_8)
{
goto IL_0046;
}
}
{
TypedConstant_t714020897 L_9 = KeyValuePair_2_get_Key_m2623710737((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2023299556 *)__this);
(( bool (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
return (bool)1;
}
IL_0046:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::Clear()
extern "C" void Dictionary_2_Clear_m1987818081_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (int32_t)__this->get_count_2();
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_005a;
}
}
{
V_0 = (int32_t)0;
goto IL_001a;
}
IL_000d:
{
Int32U5BU5D_t385246372* L_1 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_2 = V_0;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_001a:
{
int32_t L_4 = V_0;
Int32U5BU5D_t385246372* L_5 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000d;
}
}
{
EntryU5BU5D_t823473925* L_6 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_7 = (int32_t)__this->get_count_2();
Array_Clear_m2231608178(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_6, (int32_t)0, (int32_t)L_7, /*hidden argument*/NULL);
__this->set_freeList_4((-1));
__this->set_count_2(0);
__this->set_freeCount_5(0);
int32_t L_8 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)));
}
IL_005a:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::ContainsKey(TKey)
extern "C" bool Dictionary_2_ContainsKey_m3860405631_gshared (Dictionary_2_t2023299556 * __this, TypedConstant_t714020897 ___key0, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = ___key0;
NullCheck((Dictionary_2_t2023299556 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
return (bool)((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::ContainsValue(TValue)
extern "C" bool Dictionary_2_ContainsValue_m3123906506_gshared (Dictionary_2_t2023299556 * __this, int32_t ___value0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
EqualityComparer_1_t1120718089 * V_1 = NULL;
int32_t V_2 = 0;
{
goto IL_0049;
}
{
V_0 = (int32_t)0;
goto IL_003e;
}
IL_000c:
{
EntryU5BU5D_t823473925* L_1 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_2 = V_0;
NullCheck(L_1);
int32_t L_3 = (int32_t)((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->get_hashCode_0();
if ((((int32_t)L_3) < ((int32_t)0)))
{
goto IL_003a;
}
}
{
EntryU5BU5D_t823473925* L_4 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
int32_t L_6 = (int32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
goto IL_003a;
}
{
return (bool)1;
}
IL_003a:
{
int32_t L_7 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_003e:
{
int32_t L_8 = V_0;
int32_t L_9 = (int32_t)__this->get_count_2();
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_000c;
}
}
{
goto IL_0090;
}
IL_0049:
{
EqualityComparer_1_t1120718089 * L_10 = (( EqualityComparer_1_t1120718089 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
V_1 = (EqualityComparer_1_t1120718089 *)L_10;
V_2 = (int32_t)0;
goto IL_0087;
}
IL_0053:
{
EntryU5BU5D_t823473925* L_11 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_12 = V_2;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) < ((int32_t)0)))
{
goto IL_0083;
}
}
{
EqualityComparer_1_t1120718089 * L_14 = V_1;
EntryU5BU5D_t823473925* L_15 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_value_3();
int32_t L_18 = ___value0;
NullCheck((EqualityComparer_1_t1120718089 *)L_14);
bool L_19 = VirtFuncInvoker2< bool, int32_t, int32_t >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Int32>::Equals(T,T) */, (EqualityComparer_1_t1120718089 *)L_14, (int32_t)L_17, (int32_t)L_18);
if (!L_19)
{
goto IL_0083;
}
}
{
return (bool)1;
}
IL_0083:
{
int32_t L_20 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
}
IL_0087:
{
int32_t L_21 = V_2;
int32_t L_22 = (int32_t)__this->get_count_2();
if ((((int32_t)L_21) < ((int32_t)L_22)))
{
goto IL_0053;
}
}
IL_0090:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_CopyTo_m785378937_gshared (Dictionary_2_t2023299556 * __this, KeyValuePair_2U5BU5D_t274745258* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_CopyTo_m785378937_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t823473925* V_1 = NULL;
int32_t V_2 = 0;
{
KeyValuePair_2U5BU5D_t274745258* L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_CopyTo_m785378937_RuntimeMethod_var);
}
IL_000e:
{
int32_t L_2 = ___index1;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0018;
}
}
{
int32_t L_3 = ___index1;
KeyValuePair_2U5BU5D_t274745258* L_4 = ___array0;
NullCheck(L_4);
if ((((int32_t)L_3) <= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length)))))))
{
goto IL_002e;
}
}
IL_0018:
{
int32_t L_5 = ___index1;
int32_t L_6 = L_5;
RuntimeObject * L_7 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_6);
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_8, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_7, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, Dictionary_2_CopyTo_m785378937_RuntimeMethod_var);
}
IL_002e:
{
KeyValuePair_2U5BU5D_t274745258* L_9 = ___array0;
NullCheck(L_9);
int32_t L_10 = ___index1;
NullCheck((Dictionary_2_t2023299556 *)__this);
int32_t L_11 = (( int32_t (*) (Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_9)->max_length)))), (int32_t)L_10))) >= ((int32_t)L_11)))
{
goto IL_0046;
}
}
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_12, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_CopyTo_m785378937_RuntimeMethod_var);
}
IL_0046:
{
int32_t L_13 = (int32_t)__this->get_count_2();
V_0 = (int32_t)L_13;
EntryU5BU5D_t823473925* L_14 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
V_1 = (EntryU5BU5D_t823473925*)L_14;
V_2 = (int32_t)0;
goto IL_0094;
}
IL_0058:
{
EntryU5BU5D_t823473925* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_0090;
}
}
{
KeyValuePair_2U5BU5D_t274745258* L_18 = ___array0;
int32_t L_19 = ___index1;
int32_t L_20 = (int32_t)L_19;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
EntryU5BU5D_t823473925* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
TypedConstant_t714020897 L_23 = (TypedConstant_t714020897 )((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_key_2();
EntryU5BU5D_t823473925* L_24 = V_1;
int32_t L_25 = V_2;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_value_3();
KeyValuePair_2_t126004427 L_27;
memset(&L_27, 0, sizeof(L_27));
KeyValuePair_2__ctor_m3967312370((&L_27), (TypedConstant_t714020897 )L_23, (int32_t)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
NullCheck(L_18);
(L_18)->SetAt(static_cast<il2cpp_array_size_t>(L_20), (KeyValuePair_2_t126004427 )L_27);
}
IL_0090:
{
int32_t L_28 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_0094:
{
int32_t L_29 = V_2;
int32_t L_30 = V_0;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0058;
}
}
{
return;
}
}
// System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::GetEnumerator()
extern "C" Enumerator_t3977482331 Dictionary_2_GetEnumerator_m907758808_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3977482331 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m3544466443((&L_0), (Dictionary_2_t2023299556 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
return L_0;
}
}
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m2194503648_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3977482331 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m3544466443((&L_0), (Dictionary_2_t2023299556 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3977482331 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2_GetObjectData_m978287154_gshared (Dictionary_2_t2023299556 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_GetObjectData_m978287154_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t274745258* V_0 = NULL;
String_t* G_B4_0 = NULL;
SerializationInfo_t950877179 * G_B4_1 = NULL;
String_t* G_B3_0 = NULL;
SerializationInfo_t950877179 * G_B3_1 = NULL;
int32_t G_B5_0 = 0;
String_t* G_B5_1 = NULL;
SerializationInfo_t950877179 * G_B5_2 = NULL;
{
SerializationInfo_t950877179 * L_0 = ___info0;
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, (String_t*)_stringLiteral79347, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_GetObjectData_m978287154_RuntimeMethod_var);
}
IL_000e:
{
SerializationInfo_t950877179 * L_2 = ___info0;
int32_t L_3 = (int32_t)__this->get_version_3();
NullCheck((SerializationInfo_t950877179 *)L_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, (int32_t)L_3, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_4 = ___info0;
RuntimeObject* L_5 = (RuntimeObject*)__this->get_comparer_6();
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_4);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral892943380, (RuntimeObject *)L_5, (Type_t *)L_7, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_8 = ___info0;
Int32U5BU5D_t385246372* L_9 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
G_B3_0 = _stringLiteral953796230;
G_B3_1 = L_8;
if (!L_9)
{
G_B4_0 = _stringLiteral953796230;
G_B4_1 = L_8;
goto IL_0052;
}
}
{
Int32U5BU5D_t385246372* L_10 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_10);
G_B5_0 = (((int32_t)((int32_t)(((RuntimeArray *)L_10)->max_length))));
G_B5_1 = G_B3_0;
G_B5_2 = G_B3_1;
goto IL_0053;
}
IL_0052:
{
G_B5_0 = 0;
G_B5_1 = G_B4_0;
G_B5_2 = G_B4_1;
}
IL_0053:
{
NullCheck((SerializationInfo_t950877179 *)G_B5_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)G_B5_2, (String_t*)G_B5_1, (int32_t)G_B5_0, /*hidden argument*/NULL);
Int32U5BU5D_t385246372* L_11 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_11)
{
goto IL_008a;
}
}
{
NullCheck((Dictionary_2_t2023299556 *)__this);
int32_t L_12 = (( int32_t (*) (Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
V_0 = (KeyValuePair_2U5BU5D_t274745258*)((KeyValuePair_2U5BU5D_t274745258*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 30), (uint32_t)L_12));
KeyValuePair_2U5BU5D_t274745258* L_13 = V_0;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, KeyValuePair_2U5BU5D_t274745258*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2023299556 *)__this, (KeyValuePair_2U5BU5D_t274745258*)L_13, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
SerializationInfo_t950877179 * L_14 = ___info0;
KeyValuePair_2U5BU5D_t274745258* L_15 = V_0;
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_16, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_14);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_14, (String_t*)_stringLiteral2947573650, (RuntimeObject *)(RuntimeObject *)L_15, (Type_t *)L_17, /*hidden argument*/NULL);
}
IL_008a:
{
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::FindEntry(TKey)
extern "C" int32_t Dictionary_2_FindEntry_m3018323460_gshared (Dictionary_2_t2023299556 * __this, TypedConstant_t714020897 ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_FindEntry_m3018323460_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_FindEntry_m3018323460_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_008d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
TypedConstant_t714020897 L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, TypedConstant_t714020897 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (TypedConstant_t714020897 )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
Int32U5BU5D_t385246372* L_6 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_7 = V_0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_8);
NullCheck(L_6);
int32_t L_9 = ((int32_t)((int32_t)L_7%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length))))));
int32_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = (int32_t)L_10;
goto IL_0089;
}
IL_0042:
{
EntryU5BU5D_t823473925* L_11 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_12 = V_1;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
int32_t L_14 = V_0;
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
{
goto IL_0077;
}
}
{
RuntimeObject* L_15 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t823473925* L_16 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_17 = V_1;
NullCheck(L_16);
TypedConstant_t714020897 L_18 = (TypedConstant_t714020897 )((L_16)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_17)))->get_key_2();
TypedConstant_t714020897 L_19 = ___key0;
NullCheck((RuntimeObject*)L_15);
bool L_20 = InterfaceFuncInvoker2< bool, TypedConstant_t714020897 , TypedConstant_t714020897 >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_15, (TypedConstant_t714020897 )L_18, (TypedConstant_t714020897 )L_19);
if (!L_20)
{
goto IL_0077;
}
}
{
int32_t L_21 = V_1;
return L_21;
}
IL_0077:
{
EntryU5BU5D_t823473925* L_22 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_23 = V_1;
NullCheck(L_22);
int32_t L_24 = (int32_t)((L_22)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_23)))->get_next_1();
V_1 = (int32_t)L_24;
}
IL_0089:
{
int32_t L_25 = V_1;
if ((((int32_t)L_25) >= ((int32_t)0)))
{
goto IL_0042;
}
}
IL_008d:
{
return (-1);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::Initialize(System.Int32)
extern "C" void Dictionary_2_Initialize_m1544430765_gshared (Dictionary_2_t2023299556 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Initialize_m1544430765_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
int32_t L_0 = ___capacity0;
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_GetPrime_m1056954278(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_2)));
V_1 = (int32_t)0;
goto IL_0024;
}
IL_0017:
{
Int32U5BU5D_t385246372* L_3 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_4 = V_1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (int32_t)(-1));
int32_t L_5 = V_1;
V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1));
}
IL_0024:
{
int32_t L_6 = V_1;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
if ((((int32_t)L_6) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length)))))))
{
goto IL_0017;
}
}
{
int32_t L_8 = V_0;
__this->set_entries_1(((EntryU5BU5D_t823473925*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_8)));
__this->set_freeList_4((-1));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::TryInsert(TKey,TValue,System.Collections.Generic.InsertionBehavior)
extern "C" bool Dictionary_2_TryInsert_m2657729601_gshared (Dictionary_2_t2023299556 * __this, TypedConstant_t714020897 ___key0, int32_t ___value1, uint8_t ___behavior2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_TryInsert_m2657729601_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_TryInsert_m2657729601_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (L_2)
{
goto IL_0022;
}
}
{
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t2023299556 *)__this, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_0022:
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
TypedConstant_t714020897 L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, TypedConstant_t714020897 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (TypedConstant_t714020897 )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_4 = (int32_t)L_11;
goto IL_00e1;
}
IL_0051:
{
EntryU5BU5D_t823473925* L_12 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_13 = V_4;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_00c9;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t823473925* L_17 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_18 = V_4;
NullCheck(L_17);
TypedConstant_t714020897 L_19 = (TypedConstant_t714020897 )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
TypedConstant_t714020897 L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, TypedConstant_t714020897 , TypedConstant_t714020897 >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (TypedConstant_t714020897 )L_19, (TypedConstant_t714020897 )L_20);
if (!L_21)
{
goto IL_00c9;
}
}
{
uint8_t L_22 = ___behavior2;
if ((!(((uint32_t)L_22) == ((uint32_t)1))))
{
goto IL_00ad;
}
}
{
EntryU5BU5D_t823473925* L_23 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_24 = V_4;
NullCheck(L_23);
int32_t L_25 = ___value1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_value_3(L_25);
int32_t L_26 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
return (bool)1;
}
IL_00ad:
{
uint8_t L_27 = ___behavior2;
if ((!(((uint32_t)L_27) == ((uint32_t)2))))
{
goto IL_00c7;
}
}
{
TypedConstant_t714020897 L_28 = ___key0;
TypedConstant_t714020897 L_29 = L_28;
RuntimeObject * L_30 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_29);
String_t* L_31 = SR_Format_m1749913990(NULL /*static, unused*/, (String_t*)_stringLiteral1494472686, (RuntimeObject *)L_30, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_32 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_32, (String_t*)L_31, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_32, NULL, Dictionary_2_TryInsert_m2657729601_RuntimeMethod_var);
}
IL_00c7:
{
return (bool)0;
}
IL_00c9:
{
int32_t L_33 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t823473925* L_34 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_35 = V_4;
NullCheck(L_34);
int32_t L_36 = (int32_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_next_1();
V_4 = (int32_t)L_36;
}
IL_00e1:
{
int32_t L_37 = V_4;
if ((((int32_t)L_37) >= ((int32_t)0)))
{
goto IL_0051;
}
}
{
int32_t L_38 = (int32_t)__this->get_freeCount_5();
if ((((int32_t)L_38) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t L_39 = (int32_t)__this->get_freeList_4();
V_3 = (int32_t)L_39;
EntryU5BU5D_t823473925* L_40 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_41 = V_3;
NullCheck(L_40);
int32_t L_42 = (int32_t)((L_40)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_41)))->get_next_1();
__this->set_freeList_4(L_42);
int32_t L_43 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_subtract((int32_t)L_43, (int32_t)1)));
goto IL_0156;
}
IL_0120:
{
int32_t L_44 = (int32_t)__this->get_count_2();
EntryU5BU5D_t823473925* L_45 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
NullCheck(L_45);
if ((!(((uint32_t)L_44) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_45)->max_length))))))))
{
goto IL_0141;
}
}
{
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36)->methodPointer)((Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36));
int32_t L_46 = V_0;
Int32U5BU5D_t385246372* L_47 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_47);
V_1 = (int32_t)((int32_t)((int32_t)L_46%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_47)->max_length))))));
}
IL_0141:
{
int32_t L_48 = (int32_t)__this->get_count_2();
V_3 = (int32_t)L_48;
int32_t L_49 = (int32_t)__this->get_count_2();
__this->set_count_2(((int32_t)il2cpp_codegen_add((int32_t)L_49, (int32_t)1)));
}
IL_0156:
{
EntryU5BU5D_t823473925* L_50 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_51 = V_3;
NullCheck(L_50);
int32_t L_52 = V_0;
((L_50)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_51)))->set_hashCode_0(L_52);
EntryU5BU5D_t823473925* L_53 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_54 = V_3;
NullCheck(L_53);
Int32U5BU5D_t385246372* L_55 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_56 = V_1;
NullCheck(L_55);
int32_t L_57 = L_56;
int32_t L_58 = (L_55)->GetAt(static_cast<il2cpp_array_size_t>(L_57));
((L_53)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_54)))->set_next_1(L_58);
EntryU5BU5D_t823473925* L_59 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_60 = V_3;
NullCheck(L_59);
TypedConstant_t714020897 L_61 = ___key0;
((L_59)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_60)))->set_key_2(L_61);
EntryU5BU5D_t823473925* L_62 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_63 = V_3;
NullCheck(L_62);
int32_t L_64 = ___value1;
((L_62)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_63)))->set_value_3(L_64);
Int32U5BU5D_t385246372* L_65 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_66 = V_1;
int32_t L_67 = V_3;
NullCheck(L_65);
(L_65)->SetAt(static_cast<il2cpp_array_size_t>(L_66), (int32_t)L_67);
int32_t L_68 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_68, (int32_t)1)));
int32_t L_69 = V_2;
if ((((int32_t)L_69) <= ((int32_t)((int32_t)100))))
{
goto IL_01ed;
}
}
{
RuntimeObject* L_70 = (RuntimeObject*)__this->get_comparer_6();
if (!((NonRandomizedStringEqualityComparer_t1082005352 *)IsInst((RuntimeObject*)L_70, NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var)))
{
goto IL_01ed;
}
}
{
EqualityComparer_1_t17223025 * L_71 = EqualityComparer_1_get_Default_m2310016383(NULL /*static, unused*/, /*hidden argument*/EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_71, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
EntryU5BU5D_t823473925* L_72 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
NullCheck(L_72);
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t2023299556 *)__this, (int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_72)->max_length)))), (bool)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
}
IL_01ed:
{
return (bool)1;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::OnDeserialization(System.Object)
extern "C" void Dictionary_2_OnDeserialization_m3823097121_gshared (Dictionary_2_t2023299556 * __this, RuntimeObject * ___sender0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_OnDeserialization_m3823097121_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SerializationInfo_t950877179 * V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
KeyValuePair_2U5BU5D_t274745258* V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_TryGetValue_m1618998192((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 **)(SerializationInfo_t950877179 **)(&V_0), /*hidden argument*/ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var);
SerializationInfo_t950877179 * L_1 = V_0;
if (L_1)
{
goto IL_0012;
}
}
{
return;
}
IL_0012:
{
SerializationInfo_t950877179 * L_2 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_2);
int32_t L_3 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, /*hidden argument*/NULL);
V_1 = (int32_t)L_3;
SerializationInfo_t950877179 * L_4 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_4);
int32_t L_5 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral953796230, /*hidden argument*/NULL);
V_2 = (int32_t)L_5;
SerializationInfo_t950877179 * L_6 = V_0;
RuntimeTypeHandle_t3027515415 L_7 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_8 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_7, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_6);
RuntimeObject * L_9 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_6, (String_t*)_stringLiteral892943380, (Type_t *)L_8, /*hidden argument*/NULL);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_9, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
int32_t L_10 = V_2;
if (!L_10)
{
goto IL_010c;
}
}
{
int32_t L_11 = V_2;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_11)));
V_4 = (int32_t)0;
goto IL_0071;
}
IL_0061:
{
Int32U5BU5D_t385246372* L_12 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_13 = V_4;
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)(-1));
int32_t L_14 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0071:
{
int32_t L_15 = V_4;
Int32U5BU5D_t385246372* L_16 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0061;
}
}
{
int32_t L_17 = V_2;
__this->set_entries_1(((EntryU5BU5D_t823473925*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_17)));
__this->set_freeList_4((-1));
SerializationInfo_t950877179 * L_18 = V_0;
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_19, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_18);
RuntimeObject * L_21 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_18, (String_t*)_stringLiteral2947573650, (Type_t *)L_20, /*hidden argument*/NULL);
V_3 = (KeyValuePair_2U5BU5D_t274745258*)((KeyValuePair_2U5BU5D_t274745258*)Castclass((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t274745258* L_22 = V_3;
if (L_22)
{
goto IL_00b9;
}
}
{
SerializationException_t3941511869 * L_23 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_23, (String_t*)_stringLiteral998597917, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_23, NULL, Dictionary_2_OnDeserialization_m3823097121_RuntimeMethod_var);
}
IL_00b9:
{
V_5 = (int32_t)0;
goto IL_0103;
}
IL_00be:
{
KeyValuePair_2U5BU5D_t274745258* L_24 = V_3;
int32_t L_25 = V_5;
NullCheck(L_24);
TypedConstant_t714020897 L_26 = KeyValuePair_2_get_Key_m2623710737((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
goto IL_00dd;
}
{
SerializationException_t3941511869 * L_27 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_27, (String_t*)_stringLiteral3616747365, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_27, NULL, Dictionary_2_OnDeserialization_m3823097121_RuntimeMethod_var);
}
IL_00dd:
{
KeyValuePair_2U5BU5D_t274745258* L_28 = V_3;
int32_t L_29 = V_5;
NullCheck(L_28);
TypedConstant_t714020897 L_30 = KeyValuePair_2_get_Key_m2623710737((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
KeyValuePair_2U5BU5D_t274745258* L_31 = V_3;
int32_t L_32 = V_5;
NullCheck(L_31);
int32_t L_33 = KeyValuePair_2_get_Value_m3418326370((KeyValuePair_2_t126004427 *)(KeyValuePair_2_t126004427 *)((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_30, (int32_t)L_33, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
int32_t L_34 = V_5;
V_5 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_34, (int32_t)1));
}
IL_0103:
{
int32_t L_35 = V_5;
KeyValuePair_2U5BU5D_t274745258* L_36 = V_3;
NullCheck(L_36);
if ((((int32_t)L_35) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_36)->max_length)))))))
{
goto IL_00be;
}
}
{
goto IL_0113;
}
IL_010c:
{
__this->set_buckets_0((Int32U5BU5D_t385246372*)NULL);
}
IL_0113:
{
int32_t L_37 = V_1;
__this->set_version_3(L_37);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_38 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_38);
ConditionalWeakTable_2_Remove_m2013031576((ConditionalWeakTable_2_t1452810305 *)L_38, (RuntimeObject *)__this, /*hidden argument*/ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::Resize()
extern "C" void Dictionary_2_Resize_m659395061_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m659395061_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = (int32_t)__this->get_count_2();
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_ExpandPrime_m2180508331(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t2023299556 *)__this, (int32_t)L_1, (bool)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::Resize(System.Int32,System.Boolean)
extern "C" void Dictionary_2_Resize_m250856362_gshared (Dictionary_2_t2023299556 * __this, int32_t ___newSize0, bool ___forceNewHashCodes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m250856362_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Int32U5BU5D_t385246372* V_0 = NULL;
EntryU5BU5D_t823473925* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t L_0 = ___newSize0;
V_0 = (Int32U5BU5D_t385246372*)((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_0));
V_2 = (int32_t)0;
goto IL_0013;
}
IL_000b:
{
Int32U5BU5D_t385246372* L_1 = V_0;
int32_t L_2 = V_2;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_0013:
{
int32_t L_4 = V_2;
Int32U5BU5D_t385246372* L_5 = V_0;
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000b;
}
}
{
int32_t L_6 = ___newSize0;
V_1 = (EntryU5BU5D_t823473925*)((EntryU5BU5D_t823473925*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_6));
EntryU5BU5D_t823473925* L_7 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
EntryU5BU5D_t823473925* L_8 = V_1;
int32_t L_9 = (int32_t)__this->get_count_2();
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_7, (int32_t)0, (RuntimeArray *)(RuntimeArray *)L_8, (int32_t)0, (int32_t)L_9, /*hidden argument*/NULL);
bool L_10 = ___forceNewHashCodes1;
if (!L_10)
{
goto IL_0080;
}
}
{
V_3 = (int32_t)0;
goto IL_0077;
}
IL_003b:
{
EntryU5BU5D_t823473925* L_11 = V_1;
int32_t L_12 = V_3;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) == ((int32_t)(-1))))
{
goto IL_0073;
}
}
{
EntryU5BU5D_t823473925* L_14 = V_1;
int32_t L_15 = V_3;
NullCheck(L_14);
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t823473925* L_17 = V_1;
int32_t L_18 = V_3;
NullCheck(L_17);
TypedConstant_t714020897 L_19 = (TypedConstant_t714020897 )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
NullCheck((RuntimeObject*)L_16);
int32_t L_20 = InterfaceFuncInvoker1< int32_t, TypedConstant_t714020897 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (TypedConstant_t714020897 )L_19);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->set_hashCode_0(((int32_t)((int32_t)L_20&(int32_t)((int32_t)2147483647LL))));
}
IL_0073:
{
int32_t L_21 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1));
}
IL_0077:
{
int32_t L_22 = V_3;
int32_t L_23 = (int32_t)__this->get_count_2();
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_003b;
}
}
IL_0080:
{
V_4 = (int32_t)0;
goto IL_00c3;
}
IL_0085:
{
EntryU5BU5D_t823473925* L_24 = V_1;
int32_t L_25 = V_4;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_hashCode_0();
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00bd;
}
}
{
EntryU5BU5D_t823473925* L_27 = V_1;
int32_t L_28 = V_4;
NullCheck(L_27);
int32_t L_29 = (int32_t)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->get_hashCode_0();
int32_t L_30 = ___newSize0;
V_5 = (int32_t)((int32_t)((int32_t)L_29%(int32_t)L_30));
EntryU5BU5D_t823473925* L_31 = V_1;
int32_t L_32 = V_4;
NullCheck(L_31);
Int32U5BU5D_t385246372* L_33 = V_0;
int32_t L_34 = V_5;
NullCheck(L_33);
int32_t L_35 = L_34;
int32_t L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32)))->set_next_1(L_36);
Int32U5BU5D_t385246372* L_37 = V_0;
int32_t L_38 = V_5;
int32_t L_39 = V_4;
NullCheck(L_37);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(L_38), (int32_t)L_39);
}
IL_00bd:
{
int32_t L_40 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
}
IL_00c3:
{
int32_t L_41 = V_4;
int32_t L_42 = (int32_t)__this->get_count_2();
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_0085;
}
}
{
Int32U5BU5D_t385246372* L_43 = V_0;
__this->set_buckets_0(L_43);
EntryU5BU5D_t823473925* L_44 = V_1;
__this->set_entries_1(L_44);
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::Remove(TKey)
extern "C" bool Dictionary_2_Remove_m1829051241_gshared (Dictionary_2_t2023299556 * __this, TypedConstant_t714020897 ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Remove_m1829051241_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_Remove_m1829051241_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_015d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
TypedConstant_t714020897 L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, TypedConstant_t714020897 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (TypedConstant_t714020897 )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)(-1);
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_3 = (int32_t)L_11;
goto IL_0156;
}
IL_004c:
{
EntryU5BU5D_t823473925* L_12 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_13 = V_3;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0142;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t823473925* L_17 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_18 = V_3;
NullCheck(L_17);
TypedConstant_t714020897 L_19 = (TypedConstant_t714020897 )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
TypedConstant_t714020897 L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, TypedConstant_t714020897 , TypedConstant_t714020897 >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (TypedConstant_t714020897 )L_19, (TypedConstant_t714020897 )L_20);
if (!L_21)
{
goto IL_0142;
}
}
{
int32_t L_22 = V_2;
if ((((int32_t)L_22) >= ((int32_t)0)))
{
goto IL_00a4;
}
}
{
Int32U5BU5D_t385246372* L_23 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_24 = V_1;
EntryU5BU5D_t823473925* L_25 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_26 = V_3;
NullCheck(L_25);
int32_t L_27 = (int32_t)((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->get_next_1();
NullCheck(L_23);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(L_24), (int32_t)L_27);
goto IL_00c6;
}
IL_00a4:
{
EntryU5BU5D_t823473925* L_28 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_29 = V_2;
NullCheck(L_28);
EntryU5BU5D_t823473925* L_30 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_31 = V_3;
NullCheck(L_30);
int32_t L_32 = (int32_t)((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->get_next_1();
((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->set_next_1(L_32);
}
IL_00c6:
{
EntryU5BU5D_t823473925* L_33 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_34 = V_3;
NullCheck(L_33);
((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->set_hashCode_0((-1));
EntryU5BU5D_t823473925* L_35 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_36 = V_3;
NullCheck(L_35);
int32_t L_37 = (int32_t)__this->get_freeList_4();
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->set_next_1(L_37);
EntryU5BU5D_t823473925* L_38 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
TypedConstant_t714020897 * L_40 = (TypedConstant_t714020897 *)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_address_of_key_2();
il2cpp_codegen_initobj(L_40, sizeof(TypedConstant_t714020897 ));
EntryU5BU5D_t823473925* L_41 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_42 = V_3;
NullCheck(L_41);
int32_t* L_43 = (int32_t*)((L_41)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_42)))->get_address_of_value_3();
il2cpp_codegen_initobj(L_43, sizeof(int32_t));
int32_t L_44 = V_3;
__this->set_freeList_4(L_44);
int32_t L_45 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1)));
int32_t L_46 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1)));
return (bool)1;
}
IL_0142:
{
int32_t L_47 = V_3;
V_2 = (int32_t)L_47;
EntryU5BU5D_t823473925* L_48 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = (int32_t)((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->get_next_1();
V_3 = (int32_t)L_50;
}
IL_0156:
{
int32_t L_51 = V_3;
if ((((int32_t)L_51) >= ((int32_t)0)))
{
goto IL_004c;
}
}
IL_015d:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::TryGetValue(TKey,TValue&)
extern "C" bool Dictionary_2_TryGetValue_m2321640576_gshared (Dictionary_2_t2023299556 * __this, TypedConstant_t714020897 ___key0, int32_t* ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
TypedConstant_t714020897 L_0 = ___key0;
NullCheck((Dictionary_2_t2023299556 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0025;
}
}
{
int32_t* L_3 = ___value1;
EntryU5BU5D_t823473925* L_4 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
int32_t L_6 = (int32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
*(int32_t*)L_3 = L_6;
return (bool)1;
}
IL_0025:
{
int32_t* L_7 = ___value1;
il2cpp_codegen_initobj(L_7, sizeof(int32_t));
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::TryAdd(TKey,TValue)
extern "C" bool Dictionary_2_TryAdd_m3368850206_gshared (Dictionary_2_t2023299556 * __this, TypedConstant_t714020897 ___key0, int32_t ___value1, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = ___key0;
int32_t L_1 = ___value1;
NullCheck((Dictionary_2_t2023299556 *)__this);
bool L_2 = (( bool (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , int32_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_0, (int32_t)L_1, (uint8_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1871326337_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m3883419196_gshared (Dictionary_2_t2023299556 * __this, KeyValuePair_2U5BU5D_t274745258* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
{
KeyValuePair_2U5BU5D_t274745258* L_0 = ___array0;
int32_t L_1 = ___index1;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, KeyValuePair_2U5BU5D_t274745258*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2023299556 *)__this, (KeyValuePair_2U5BU5D_t274745258*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.ICollection.CopyTo(System.Array,System.Int32)
extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_gshared (Dictionary_2_t2023299556 * __this, RuntimeArray * ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t274745258* V_0 = NULL;
DictionaryEntryU5BU5D_t4217117203* V_1 = NULL;
EntryU5BU5D_t823473925* V_2 = NULL;
int32_t V_3 = 0;
ObjectU5BU5D_t2843939325* V_4 = NULL;
int32_t V_5 = 0;
EntryU5BU5D_t823473925* V_6 = NULL;
int32_t V_7 = 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);
{
RuntimeArray * L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_RuntimeMethod_var);
}
IL_000e:
{
RuntimeArray * L_2 = ___array0;
NullCheck((RuntimeArray *)L_2);
int32_t L_3 = Array_get_Rank_m3448755881((RuntimeArray *)L_2, /*hidden argument*/NULL);
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0027;
}
}
{
ArgumentException_t132251570 * L_4 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_4, (String_t*)_stringLiteral915403387, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_RuntimeMethod_var);
}
IL_0027:
{
RuntimeArray * L_5 = ___array0;
NullCheck((RuntimeArray *)L_5);
int32_t L_6 = Array_GetLowerBound_m2045984623((RuntimeArray *)L_5, (int32_t)0, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0040;
}
}
{
ArgumentException_t132251570 * L_7 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_7, (String_t*)_stringLiteral2590862907, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_RuntimeMethod_var);
}
IL_0040:
{
int32_t L_8 = ___index1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_004d;
}
}
{
int32_t L_9 = ___index1;
RuntimeArray * L_10 = ___array0;
NullCheck((RuntimeArray *)L_10);
int32_t L_11 = Array_get_Length_m21610649((RuntimeArray *)L_10, /*hidden argument*/NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0063;
}
}
IL_004d:
{
int32_t L_12 = ___index1;
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_13);
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_15, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_14, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_RuntimeMethod_var);
}
IL_0063:
{
RuntimeArray * L_16 = ___array0;
NullCheck((RuntimeArray *)L_16);
int32_t L_17 = Array_get_Length_m21610649((RuntimeArray *)L_16, /*hidden argument*/NULL);
int32_t L_18 = ___index1;
NullCheck((Dictionary_2_t2023299556 *)__this);
int32_t L_19 = (( int32_t (*) (Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)L_18))) >= ((int32_t)L_19)))
{
goto IL_007e;
}
}
{
ArgumentException_t132251570 * L_20 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_20, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_20, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_RuntimeMethod_var);
}
IL_007e:
{
RuntimeArray * L_21 = ___array0;
V_0 = (KeyValuePair_2U5BU5D_t274745258*)((KeyValuePair_2U5BU5D_t274745258*)IsInst((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t274745258* L_22 = V_0;
if (!L_22)
{
goto IL_0091;
}
}
{
KeyValuePair_2U5BU5D_t274745258* L_23 = V_0;
int32_t L_24 = ___index1;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, KeyValuePair_2U5BU5D_t274745258*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2023299556 *)__this, (KeyValuePair_2U5BU5D_t274745258*)L_23, (int32_t)L_24, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
IL_0091:
{
RuntimeArray * L_25 = ___array0;
if (!((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_25, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var)))
{
goto IL_00fb;
}
}
{
RuntimeArray * L_26 = ___array0;
V_1 = (DictionaryEntryU5BU5D_t4217117203*)((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_26, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var));
EntryU5BU5D_t823473925* L_27 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
V_2 = (EntryU5BU5D_t823473925*)L_27;
V_3 = (int32_t)0;
goto IL_00f1;
}
IL_00ab:
{
EntryU5BU5D_t823473925* L_28 = V_2;
int32_t L_29 = V_3;
NullCheck(L_28);
int32_t L_30 = (int32_t)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->get_hashCode_0();
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_00ed;
}
}
{
DictionaryEntryU5BU5D_t4217117203* L_31 = V_1;
int32_t L_32 = ___index1;
int32_t L_33 = (int32_t)L_32;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t823473925* L_34 = V_2;
int32_t L_35 = V_3;
NullCheck(L_34);
TypedConstant_t714020897 L_36 = (TypedConstant_t714020897 )((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_key_2();
TypedConstant_t714020897 L_37 = L_36;
RuntimeObject * L_38 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_37);
EntryU5BU5D_t823473925* L_39 = V_2;
int32_t L_40 = V_3;
NullCheck(L_39);
int32_t L_41 = (int32_t)((L_39)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_40)))->get_value_3();
int32_t L_42 = L_41;
RuntimeObject * L_43 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23), &L_42);
DictionaryEntry_t3123975638 L_44;
memset(&L_44, 0, sizeof(L_44));
DictionaryEntry__ctor_m2585376310((&L_44), (RuntimeObject *)L_38, (RuntimeObject *)L_43, /*hidden argument*/NULL);
NullCheck(L_31);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (DictionaryEntry_t3123975638 )L_44);
}
IL_00ed:
{
int32_t L_45 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1));
}
IL_00f1:
{
int32_t L_46 = V_3;
int32_t L_47 = (int32_t)__this->get_count_2();
if ((((int32_t)L_46) < ((int32_t)L_47)))
{
goto IL_00ab;
}
}
{
return;
}
IL_00fb:
{
RuntimeArray * L_48 = ___array0;
V_4 = (ObjectU5BU5D_t2843939325*)((ObjectU5BU5D_t2843939325*)IsInst((RuntimeObject*)L_48, ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var));
ObjectU5BU5D_t2843939325* L_49 = V_4;
if (L_49)
{
goto IL_0117;
}
}
{
ArgumentException_t132251570 * L_50 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_50, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_50, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_RuntimeMethod_var);
}
IL_0117:
{
}
IL_0118:
try
{ // begin try (depth: 1)
{
int32_t L_51 = (int32_t)__this->get_count_2();
V_5 = (int32_t)L_51;
EntryU5BU5D_t823473925* L_52 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
V_6 = (EntryU5BU5D_t823473925*)L_52;
V_7 = (int32_t)0;
goto IL_0173;
}
IL_012d:
{
EntryU5BU5D_t823473925* L_53 = V_6;
int32_t L_54 = V_7;
NullCheck(L_53);
int32_t L_55 = (int32_t)((L_53)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_54)))->get_hashCode_0();
if ((((int32_t)L_55) < ((int32_t)0)))
{
goto IL_016d;
}
}
IL_013e:
{
ObjectU5BU5D_t2843939325* L_56 = V_4;
int32_t L_57 = ___index1;
int32_t L_58 = (int32_t)L_57;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_58, (int32_t)1));
EntryU5BU5D_t823473925* L_59 = V_6;
int32_t L_60 = V_7;
NullCheck(L_59);
TypedConstant_t714020897 L_61 = (TypedConstant_t714020897 )((L_59)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_60)))->get_key_2();
EntryU5BU5D_t823473925* L_62 = V_6;
int32_t L_63 = V_7;
NullCheck(L_62);
int32_t L_64 = (int32_t)((L_62)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_63)))->get_value_3();
KeyValuePair_2_t126004427 L_65;
memset(&L_65, 0, sizeof(L_65));
KeyValuePair_2__ctor_m3967312370((&L_65), (TypedConstant_t714020897 )L_61, (int32_t)L_64, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
KeyValuePair_2_t126004427 L_66 = L_65;
RuntimeObject * L_67 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 25), &L_66);
NullCheck(L_56);
ArrayElementTypeCheck (L_56, L_67);
(L_56)->SetAt(static_cast<il2cpp_array_size_t>(L_58), (RuntimeObject *)L_67);
}
IL_016d:
{
int32_t L_68 = V_7;
V_7 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_68, (int32_t)1));
}
IL_0173:
{
int32_t L_69 = V_7;
int32_t L_70 = V_5;
if ((((int32_t)L_69) < ((int32_t)L_70)))
{
goto IL_012d;
}
}
IL_0179:
{
goto IL_018c;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_017b;
throw e;
}
CATCH_017b:
{ // begin catch(System.ArrayTypeMismatchException)
ArgumentException_t132251570 * L_71 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_71, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_71, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m921727183_RuntimeMethod_var);
} // end catch (depth: 1)
IL_018c:
{
return;
}
}
// System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IEnumerable.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m1334325318_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3977482331 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m3544466443((&L_0), (Dictionary_2_t2023299556 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3977482331 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.ICollection.get_IsSynchronized()
extern "C" bool Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m2171505423_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.ICollection.get_SyncRoot()
extern "C" RuntimeObject * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3223928656_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3223928656_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get__syncRoot_9();
if (L_0)
{
goto IL_001a;
}
}
{
RuntimeObject ** L_1 = (RuntimeObject **)__this->get_address_of__syncRoot_9();
RuntimeObject * L_2 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_2, /*hidden argument*/NULL);
InterlockedCompareExchangeImpl<RuntimeObject *>((RuntimeObject **)(RuntimeObject **)L_1, (RuntimeObject *)L_2, (RuntimeObject *)NULL);
}
IL_001a:
{
RuntimeObject * L_3 = (RuntimeObject *)__this->get__syncRoot_9();
return L_3;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IDictionary.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_IDictionary_get_IsReadOnly_m3356377250_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IDictionary.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Keys_m1257608656_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2023299556 *)__this);
KeyCollection_t2212975027 * L_0 = (( KeyCollection_t2212975027 * (*) (Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39)->methodPointer)((Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39));
return L_0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IDictionary.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Values_m3083484499_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2023299556 *)__this);
ValueCollection_t3739343874 * L_0 = (( ValueCollection_t3739343874 * (*) (Dictionary_2_t2023299556 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40)->methodPointer)((Dictionary_2_t2023299556 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40));
return L_0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IDictionary.get_Item(System.Object)
extern "C" RuntimeObject * Dictionary_2_System_Collections_IDictionary_get_Item_m1957281370_gshared (Dictionary_2_t2023299556 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0030;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2023299556 *)__this);
int32_t L_3 = (( int32_t (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_3;
int32_t L_4 = V_0;
if ((((int32_t)L_4) < ((int32_t)0)))
{
goto IL_0030;
}
}
{
EntryU5BU5D_t823473925* L_5 = (EntryU5BU5D_t823473925*)__this->get_entries_1();
int32_t L_6 = V_0;
NullCheck(L_5);
int32_t L_7 = (int32_t)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->get_value_3();
int32_t L_8 = L_7;
RuntimeObject * L_9 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23), &L_8);
return L_9;
}
IL_0030:
{
return NULL;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IDictionary.set_Item(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m2266717171_gshared (Dictionary_2_t2023299556 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_set_Item_m2266717171_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
TypedConstant_t714020897 V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m2266717171_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(int32_t));
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m2266717171_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
TypedConstant_t714020897 L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_6, (int32_t)((*(int32_t*)((int32_t*)UnBox(L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m2266717171_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m2266717171_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::IsCompatibleKey(System.Object)
extern "C" bool Dictionary_2_IsCompatibleKey_m3469216370_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_IsCompatibleKey_m3469216370_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_IsCompatibleKey_m3469216370_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___key0;
return (bool)((!(((RuntimeObject*)(RuntimeObject *)((RuntimeObject *)IsInst((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 33)))) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IDictionary.Add(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m3829889844_gshared (Dictionary_2_t2023299556 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_Add_m3829889844_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
TypedConstant_t714020897 V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_Add_m3829889844_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(int32_t));
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_Add_m3829889844_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
TypedConstant_t714020897 L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( void (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )L_6, (int32_t)((*(int32_t*)((int32_t*)UnBox(L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_Add_m3829889844_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_Add_m3829889844_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IDictionary.Contains(System.Object)
extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m2523191616_gshared (Dictionary_2_t2023299556 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2023299556 *)__this);
bool L_3 = (( bool (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46));
return L_3;
}
IL_0015:
{
return (bool)0;
}
}
// System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IDictionary.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_GetEnumerator_m1961921225_gshared (Dictionary_2_t2023299556 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3977482331 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m3544466443((&L_0), (Dictionary_2_t2023299556 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3977482331 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Int32>::System.Collections.IDictionary.Remove(System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m230232279_gshared (Dictionary_2_t2023299556 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2023299556 *)__this);
(( bool (*) (Dictionary_2_t2023299556 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t2023299556 *)__this, (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
}
IL_0015:
{
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 System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor()
extern "C" void Dictionary_2__ctor_m251021934_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2152459967 *)__this, (int32_t)0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(System.Int32)
extern "C" void Dictionary_2__ctor_m353840963_gshared (Dictionary_2_t2152459967 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___capacity0;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2152459967 *)__this, (int32_t)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m2801313677_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject* ___comparer0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___comparer0;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2152459967 *)__this, (int32_t)0, (RuntimeObject*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m1894841792_gshared (Dictionary_2_t2152459967 * __this, int32_t ___capacity0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m1894841792_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* G_B6_0 = NULL;
Dictionary_2_t2152459967 * G_B6_1 = NULL;
RuntimeObject* G_B5_0 = NULL;
Dictionary_2_t2152459967 * G_B5_1 = NULL;
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
int32_t L_0 = ___capacity0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0020;
}
}
{
int32_t L_1 = ___capacity0;
int32_t L_2 = L_1;
RuntimeObject * L_3 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_2);
ArgumentOutOfRangeException_t777629997 * L_4 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_4, (String_t*)_stringLiteral3623012086, (RuntimeObject *)L_3, (String_t*)_stringLiteral2892689725, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2__ctor_m1894841792_RuntimeMethod_var);
}
IL_0020:
{
int32_t L_5 = ___capacity0;
if ((((int32_t)L_5) <= ((int32_t)0)))
{
goto IL_002b;
}
}
{
int32_t L_6 = ___capacity0;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t2152459967 *)__this, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_002b:
{
RuntimeObject* L_7 = ___comparer1;
RuntimeObject* L_8 = (RuntimeObject*)L_7;
G_B5_0 = L_8;
G_B5_1 = ((Dictionary_2_t2152459967 *)(__this));
if (L_8)
{
G_B6_0 = L_8;
G_B6_1 = ((Dictionary_2_t2152459967 *)(__this));
goto IL_0036;
}
}
{
EqualityComparer_1_t3178760529 * L_9 = (( EqualityComparer_1_t3178760529 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2));
G_B6_0 = ((RuntimeObject*)(L_9));
G_B6_1 = ((Dictionary_2_t2152459967 *)(G_B5_1));
}
IL_0036:
{
NullCheck(G_B6_1);
G_B6_1->set_comparer_6(G_B6_0);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>)
extern "C" void Dictionary_2__ctor_m633041229_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___dictionary0;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4)->methodPointer)((Dictionary_2_t2152459967 *)__this, (RuntimeObject*)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m4260611729_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject* ___dictionary0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m4260611729_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t3282166878* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
KeyValuePair_2_t255164838 V_4;
memset(&V_4, 0, sizeof(V_4));
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);
Dictionary_2_t2152459967 * G_B2_0 = NULL;
Dictionary_2_t2152459967 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
Dictionary_2_t2152459967 * G_B3_1 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
G_B1_0 = ((Dictionary_2_t2152459967 *)(__this));
if (L_0)
{
G_B2_0 = ((Dictionary_2_t2152459967 *)(__this));
goto IL_0007;
}
}
{
G_B3_0 = 0;
G_B3_1 = ((Dictionary_2_t2152459967 *)(G_B1_0));
goto IL_000d;
}
IL_0007:
{
RuntimeObject* L_1 = ___dictionary0;
NullCheck((RuntimeObject*)L_1);
int32_t L_2 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>>::get_Count() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 5), (RuntimeObject*)L_1);
G_B3_0 = L_2;
G_B3_1 = ((Dictionary_2_t2152459967 *)(G_B2_0));
}
IL_000d:
{
RuntimeObject* L_3 = ___comparer1;
NullCheck((Dictionary_2_t2152459967 *)G_B3_1);
(( void (*) (Dictionary_2_t2152459967 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t2152459967 *)G_B3_1, (int32_t)G_B3_0, (RuntimeObject*)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
RuntimeObject* L_4 = ___dictionary0;
if (L_4)
{
goto IL_0021;
}
}
{
ArgumentNullException_t1615371798 * L_5 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_5, (String_t*)_stringLiteral2957729587, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, Dictionary_2__ctor_m4260611729_RuntimeMethod_var);
}
IL_0021:
{
RuntimeObject* L_6 = ___dictionary0;
NullCheck((RuntimeObject *)L_6);
Type_t * L_7 = Object_GetType_m88164663((RuntimeObject *)L_6, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_8 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 6)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_9 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_8, /*hidden argument*/NULL);
bool L_10 = Type_op_Equality_m2683486427(NULL /*static, unused*/, (Type_t *)L_7, (Type_t *)L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0085;
}
}
{
RuntimeObject* L_11 = ___dictionary0;
Dictionary_2_t2152459967 * L_12 = (Dictionary_2_t2152459967 *)((Dictionary_2_t2152459967 *)Castclass((RuntimeObject*)L_11, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 7)));
NullCheck(L_12);
int32_t L_13 = (int32_t)L_12->get_count_2();
V_0 = (int32_t)L_13;
NullCheck(L_12);
EntryU5BU5D_t3282166878* L_14 = (EntryU5BU5D_t3282166878*)L_12->get_entries_1();
V_1 = (EntryU5BU5D_t3282166878*)L_14;
V_2 = (int32_t)0;
goto IL_0080;
}
IL_004f:
{
EntryU5BU5D_t3282166878* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007c;
}
}
{
EntryU5BU5D_t3282166878* L_18 = V_1;
int32_t L_19 = V_2;
NullCheck(L_18);
TypedConstant_t714020897 L_20 = (TypedConstant_t714020897 )((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->get_key_2();
EntryU5BU5D_t3282166878* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
RuntimeObject * L_23 = (RuntimeObject *)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_value_3();
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_20, (RuntimeObject *)L_23, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_007c:
{
int32_t L_24 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0080:
{
int32_t L_25 = V_2;
int32_t L_26 = V_0;
if ((((int32_t)L_25) < ((int32_t)L_26)))
{
goto IL_004f;
}
}
{
return;
}
IL_0085:
{
RuntimeObject* L_27 = ___dictionary0;
NullCheck((RuntimeObject*)L_27);
RuntimeObject* L_28 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 9), (RuntimeObject*)L_27);
V_3 = (RuntimeObject*)L_28;
}
IL_008c:
try
{ // begin try (depth: 1)
{
goto IL_00aa;
}
IL_008e:
{
RuntimeObject* L_29 = V_3;
NullCheck((RuntimeObject*)L_29);
KeyValuePair_2_t255164838 L_30 = InterfaceFuncInvoker0< KeyValuePair_2_t255164838 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>>::get_Current() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 10), (RuntimeObject*)L_29);
V_4 = (KeyValuePair_2_t255164838 )L_30;
TypedConstant_t714020897 L_31 = KeyValuePair_2_get_Key_m3539669632((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_32 = KeyValuePair_2_get_Value_m1745831214((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_31, (RuntimeObject *)L_32, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_00aa:
{
RuntimeObject* L_33 = V_3;
NullCheck((RuntimeObject*)L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, (RuntimeObject*)L_33);
if (L_34)
{
goto IL_008e;
}
}
IL_00b2:
{
IL2CPP_LEAVE(0xBE, FINALLY_00b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b4;
}
FINALLY_00b4:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_3;
if (!L_35)
{
goto IL_00bd;
}
}
IL_00b7:
{
RuntimeObject* L_36 = V_3;
NullCheck((RuntimeObject*)L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, (RuntimeObject*)L_36);
}
IL_00bd:
{
IL2CPP_END_FINALLY(180)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(180)
{
IL2CPP_JUMP_TBL(0xBE, IL_00be)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00be:
{
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2__ctor_m1763350274_gshared (Dictionary_2_t2152459967 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m1763350274_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_1 = ___info0;
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_Add_m4098691448((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 *)L_1, /*hidden argument*/ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var);
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::get_Count()
extern "C" int32_t Dictionary_2_get_Count_m632830023_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_count_2();
int32_t L_1 = (int32_t)__this->get_freeCount_5();
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1));
}
}
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::get_Keys()
extern "C" KeyCollection_t2342135438 * Dictionary_2_get_Keys_m3055660879_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2342135438 * L_0 = (KeyCollection_t2342135438 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2342135438 * L_1 = (KeyCollection_t2342135438 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2342135438 *, Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2342135438 * L_2 = (KeyCollection_t2342135438 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m3626116273_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2342135438 * L_0 = (KeyCollection_t2342135438 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2342135438 * L_1 = (KeyCollection_t2342135438 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2342135438 *, Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2342135438 * L_2 = (KeyCollection_t2342135438 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TKey> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Keys_m347755224_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t2342135438 * L_0 = (KeyCollection_t2342135438 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t2342135438 * L_1 = (KeyCollection_t2342135438 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t2342135438 *, Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t2342135438 * L_2 = (KeyCollection_t2342135438 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::get_Values()
extern "C" ValueCollection_t3868504285 * Dictionary_2_get_Values_m903883373_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3868504285 * L_0 = (ValueCollection_t3868504285 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3868504285 * L_1 = (ValueCollection_t3868504285 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3868504285 *, Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3868504285 * L_2 = (ValueCollection_t3868504285 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m2078485257_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3868504285 * L_0 = (ValueCollection_t3868504285 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3868504285 * L_1 = (ValueCollection_t3868504285 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3868504285 *, Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3868504285 * L_2 = (ValueCollection_t3868504285 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Values_m179426038_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3868504285 * L_0 = (ValueCollection_t3868504285 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3868504285 * L_1 = (ValueCollection_t3868504285 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3868504285 *, Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3868504285 * L_2 = (ValueCollection_t3868504285 *)__this->get_values_8();
return L_2;
}
}
// TValue System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::get_Item(TKey)
extern "C" RuntimeObject * Dictionary_2_get_Item_m2585986796_gshared (Dictionary_2_t2152459967 * __this, TypedConstant_t714020897 ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_get_Item_m2585986796_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
TypedConstant_t714020897 L_0 = ___key0;
NullCheck((Dictionary_2_t2152459967 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_001e;
}
}
{
EntryU5BU5D_t3282166878* L_3 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_4 = V_0;
NullCheck(L_3);
RuntimeObject * L_5 = (RuntimeObject *)((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_4)))->get_value_3();
return L_5;
}
IL_001e:
{
KeyNotFoundException_t2292407383 * L_6 = (KeyNotFoundException_t2292407383 *)il2cpp_codegen_object_new(KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var);
KeyNotFoundException__ctor_m541499307(L_6, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, Dictionary_2_get_Item_m2585986796_RuntimeMethod_var);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::set_Item(TKey,TValue)
extern "C" void Dictionary_2_set_Item_m2857885976_gshared (Dictionary_2_t2152459967 * __this, TypedConstant_t714020897 ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( bool (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_0, (RuntimeObject *)L_1, (uint8_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::Add(TKey,TValue)
extern "C" void Dictionary_2_Add_m1966188466_gshared (Dictionary_2_t2152459967 * __this, TypedConstant_t714020897 ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( bool (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_0, (RuntimeObject *)L_1, (uint8_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m2945905289_gshared (Dictionary_2_t2152459967 * __this, KeyValuePair_2_t255164838 ___keyValuePair0, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = KeyValuePair_2_get_Key_m3539669632((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
RuntimeObject * L_1 = KeyValuePair_2_get_Value_m1745831214((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_0, (RuntimeObject *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m3552605616_gshared (Dictionary_2_t2152459967 * __this, KeyValuePair_2_t255164838 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
TypedConstant_t714020897 L_0 = KeyValuePair_2_get_Key_m3539669632((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2152459967 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0038;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t3282166878* L_4 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m1745831214((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0038;
}
}
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m169284672_gshared (Dictionary_2_t2152459967 * __this, KeyValuePair_2_t255164838 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
TypedConstant_t714020897 L_0 = KeyValuePair_2_get_Key_m3539669632((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2152459967 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0046;
}
}
{
EqualityComparer_1_t1249878500 * L_3 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t3282166878* L_4 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
RuntimeObject * L_7 = KeyValuePair_2_get_Value_m1745831214((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t1249878500 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_3, (RuntimeObject *)L_6, (RuntimeObject *)L_7);
if (!L_8)
{
goto IL_0046;
}
}
{
TypedConstant_t714020897 L_9 = KeyValuePair_2_get_Key_m3539669632((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t2152459967 *)__this);
(( bool (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
return (bool)1;
}
IL_0046:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::Clear()
extern "C" void Dictionary_2_Clear_m993843603_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (int32_t)__this->get_count_2();
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_005a;
}
}
{
V_0 = (int32_t)0;
goto IL_001a;
}
IL_000d:
{
Int32U5BU5D_t385246372* L_1 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_2 = V_0;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_001a:
{
int32_t L_4 = V_0;
Int32U5BU5D_t385246372* L_5 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000d;
}
}
{
EntryU5BU5D_t3282166878* L_6 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_7 = (int32_t)__this->get_count_2();
Array_Clear_m2231608178(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_6, (int32_t)0, (int32_t)L_7, /*hidden argument*/NULL);
__this->set_freeList_4((-1));
__this->set_count_2(0);
__this->set_freeCount_5(0);
int32_t L_8 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)));
}
IL_005a:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::ContainsKey(TKey)
extern "C" bool Dictionary_2_ContainsKey_m3008420477_gshared (Dictionary_2_t2152459967 * __this, TypedConstant_t714020897 ___key0, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = ___key0;
NullCheck((Dictionary_2_t2152459967 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
return (bool)((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::ContainsValue(TValue)
extern "C" bool Dictionary_2_ContainsValue_m879313800_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject * ___value0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
EqualityComparer_1_t1249878500 * V_1 = NULL;
int32_t V_2 = 0;
{
RuntimeObject * L_0 = ___value0;
if (L_0)
{
goto IL_0049;
}
}
{
V_0 = (int32_t)0;
goto IL_003e;
}
IL_000c:
{
EntryU5BU5D_t3282166878* L_1 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_2 = V_0;
NullCheck(L_1);
int32_t L_3 = (int32_t)((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->get_hashCode_0();
if ((((int32_t)L_3) < ((int32_t)0)))
{
goto IL_003a;
}
}
{
EntryU5BU5D_t3282166878* L_4 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
if (L_6)
{
goto IL_003a;
}
}
{
return (bool)1;
}
IL_003a:
{
int32_t L_7 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_003e:
{
int32_t L_8 = V_0;
int32_t L_9 = (int32_t)__this->get_count_2();
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_000c;
}
}
{
goto IL_0090;
}
IL_0049:
{
EqualityComparer_1_t1249878500 * L_10 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
V_1 = (EqualityComparer_1_t1249878500 *)L_10;
V_2 = (int32_t)0;
goto IL_0087;
}
IL_0053:
{
EntryU5BU5D_t3282166878* L_11 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_12 = V_2;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) < ((int32_t)0)))
{
goto IL_0083;
}
}
{
EqualityComparer_1_t1249878500 * L_14 = V_1;
EntryU5BU5D_t3282166878* L_15 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_16 = V_2;
NullCheck(L_15);
RuntimeObject * L_17 = (RuntimeObject *)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_value_3();
RuntimeObject * L_18 = ___value0;
NullCheck((EqualityComparer_1_t1249878500 *)L_14);
bool L_19 = VirtFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1249878500 *)L_14, (RuntimeObject *)L_17, (RuntimeObject *)L_18);
if (!L_19)
{
goto IL_0083;
}
}
{
return (bool)1;
}
IL_0083:
{
int32_t L_20 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
}
IL_0087:
{
int32_t L_21 = V_2;
int32_t L_22 = (int32_t)__this->get_count_2();
if ((((int32_t)L_21) < ((int32_t)L_22)))
{
goto IL_0053;
}
}
IL_0090:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_CopyTo_m2475980018_gshared (Dictionary_2_t2152459967 * __this, KeyValuePair_2U5BU5D_t2733438211* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_CopyTo_m2475980018_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t3282166878* V_1 = NULL;
int32_t V_2 = 0;
{
KeyValuePair_2U5BU5D_t2733438211* L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_CopyTo_m2475980018_RuntimeMethod_var);
}
IL_000e:
{
int32_t L_2 = ___index1;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0018;
}
}
{
int32_t L_3 = ___index1;
KeyValuePair_2U5BU5D_t2733438211* L_4 = ___array0;
NullCheck(L_4);
if ((((int32_t)L_3) <= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length)))))))
{
goto IL_002e;
}
}
IL_0018:
{
int32_t L_5 = ___index1;
int32_t L_6 = L_5;
RuntimeObject * L_7 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_6);
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_8, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_7, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, Dictionary_2_CopyTo_m2475980018_RuntimeMethod_var);
}
IL_002e:
{
KeyValuePair_2U5BU5D_t2733438211* L_9 = ___array0;
NullCheck(L_9);
int32_t L_10 = ___index1;
NullCheck((Dictionary_2_t2152459967 *)__this);
int32_t L_11 = (( int32_t (*) (Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_9)->max_length)))), (int32_t)L_10))) >= ((int32_t)L_11)))
{
goto IL_0046;
}
}
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_12, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_CopyTo_m2475980018_RuntimeMethod_var);
}
IL_0046:
{
int32_t L_13 = (int32_t)__this->get_count_2();
V_0 = (int32_t)L_13;
EntryU5BU5D_t3282166878* L_14 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
V_1 = (EntryU5BU5D_t3282166878*)L_14;
V_2 = (int32_t)0;
goto IL_0094;
}
IL_0058:
{
EntryU5BU5D_t3282166878* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_0090;
}
}
{
KeyValuePair_2U5BU5D_t2733438211* L_18 = ___array0;
int32_t L_19 = ___index1;
int32_t L_20 = (int32_t)L_19;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
EntryU5BU5D_t3282166878* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
TypedConstant_t714020897 L_23 = (TypedConstant_t714020897 )((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_key_2();
EntryU5BU5D_t3282166878* L_24 = V_1;
int32_t L_25 = V_2;
NullCheck(L_24);
RuntimeObject * L_26 = (RuntimeObject *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_value_3();
KeyValuePair_2_t255164838 L_27;
memset(&L_27, 0, sizeof(L_27));
KeyValuePair_2__ctor_m51719720((&L_27), (TypedConstant_t714020897 )L_23, (RuntimeObject *)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
NullCheck(L_18);
(L_18)->SetAt(static_cast<il2cpp_array_size_t>(L_20), (KeyValuePair_2_t255164838 )L_27);
}
IL_0090:
{
int32_t L_28 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_0094:
{
int32_t L_29 = V_2;
int32_t L_30 = V_0;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0058;
}
}
{
return;
}
}
// System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::GetEnumerator()
extern "C" Enumerator_t4106642742 Dictionary_2_GetEnumerator_m2292737029_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
Enumerator_t4106642742 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m856106391((&L_0), (Dictionary_2_t2152459967 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
return L_0;
}
}
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m2330917329_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
Enumerator_t4106642742 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m856106391((&L_0), (Dictionary_2_t2152459967 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t4106642742 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2_GetObjectData_m3804313701_gshared (Dictionary_2_t2152459967 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_GetObjectData_m3804313701_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t2733438211* V_0 = NULL;
String_t* G_B4_0 = NULL;
SerializationInfo_t950877179 * G_B4_1 = NULL;
String_t* G_B3_0 = NULL;
SerializationInfo_t950877179 * G_B3_1 = NULL;
int32_t G_B5_0 = 0;
String_t* G_B5_1 = NULL;
SerializationInfo_t950877179 * G_B5_2 = NULL;
{
SerializationInfo_t950877179 * L_0 = ___info0;
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, (String_t*)_stringLiteral79347, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_GetObjectData_m3804313701_RuntimeMethod_var);
}
IL_000e:
{
SerializationInfo_t950877179 * L_2 = ___info0;
int32_t L_3 = (int32_t)__this->get_version_3();
NullCheck((SerializationInfo_t950877179 *)L_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, (int32_t)L_3, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_4 = ___info0;
RuntimeObject* L_5 = (RuntimeObject*)__this->get_comparer_6();
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_4);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral892943380, (RuntimeObject *)L_5, (Type_t *)L_7, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_8 = ___info0;
Int32U5BU5D_t385246372* L_9 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
G_B3_0 = _stringLiteral953796230;
G_B3_1 = L_8;
if (!L_9)
{
G_B4_0 = _stringLiteral953796230;
G_B4_1 = L_8;
goto IL_0052;
}
}
{
Int32U5BU5D_t385246372* L_10 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_10);
G_B5_0 = (((int32_t)((int32_t)(((RuntimeArray *)L_10)->max_length))));
G_B5_1 = G_B3_0;
G_B5_2 = G_B3_1;
goto IL_0053;
}
IL_0052:
{
G_B5_0 = 0;
G_B5_1 = G_B4_0;
G_B5_2 = G_B4_1;
}
IL_0053:
{
NullCheck((SerializationInfo_t950877179 *)G_B5_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)G_B5_2, (String_t*)G_B5_1, (int32_t)G_B5_0, /*hidden argument*/NULL);
Int32U5BU5D_t385246372* L_11 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_11)
{
goto IL_008a;
}
}
{
NullCheck((Dictionary_2_t2152459967 *)__this);
int32_t L_12 = (( int32_t (*) (Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
V_0 = (KeyValuePair_2U5BU5D_t2733438211*)((KeyValuePair_2U5BU5D_t2733438211*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 30), (uint32_t)L_12));
KeyValuePair_2U5BU5D_t2733438211* L_13 = V_0;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, KeyValuePair_2U5BU5D_t2733438211*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2152459967 *)__this, (KeyValuePair_2U5BU5D_t2733438211*)L_13, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
SerializationInfo_t950877179 * L_14 = ___info0;
KeyValuePair_2U5BU5D_t2733438211* L_15 = V_0;
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_16, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_14);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_14, (String_t*)_stringLiteral2947573650, (RuntimeObject *)(RuntimeObject *)L_15, (Type_t *)L_17, /*hidden argument*/NULL);
}
IL_008a:
{
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::FindEntry(TKey)
extern "C" int32_t Dictionary_2_FindEntry_m27431413_gshared (Dictionary_2_t2152459967 * __this, TypedConstant_t714020897 ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_FindEntry_m27431413_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_FindEntry_m27431413_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_008d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
TypedConstant_t714020897 L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, TypedConstant_t714020897 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (TypedConstant_t714020897 )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
Int32U5BU5D_t385246372* L_6 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_7 = V_0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_8);
NullCheck(L_6);
int32_t L_9 = ((int32_t)((int32_t)L_7%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length))))));
int32_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = (int32_t)L_10;
goto IL_0089;
}
IL_0042:
{
EntryU5BU5D_t3282166878* L_11 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_12 = V_1;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
int32_t L_14 = V_0;
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
{
goto IL_0077;
}
}
{
RuntimeObject* L_15 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3282166878* L_16 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_17 = V_1;
NullCheck(L_16);
TypedConstant_t714020897 L_18 = (TypedConstant_t714020897 )((L_16)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_17)))->get_key_2();
TypedConstant_t714020897 L_19 = ___key0;
NullCheck((RuntimeObject*)L_15);
bool L_20 = InterfaceFuncInvoker2< bool, TypedConstant_t714020897 , TypedConstant_t714020897 >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_15, (TypedConstant_t714020897 )L_18, (TypedConstant_t714020897 )L_19);
if (!L_20)
{
goto IL_0077;
}
}
{
int32_t L_21 = V_1;
return L_21;
}
IL_0077:
{
EntryU5BU5D_t3282166878* L_22 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_23 = V_1;
NullCheck(L_22);
int32_t L_24 = (int32_t)((L_22)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_23)))->get_next_1();
V_1 = (int32_t)L_24;
}
IL_0089:
{
int32_t L_25 = V_1;
if ((((int32_t)L_25) >= ((int32_t)0)))
{
goto IL_0042;
}
}
IL_008d:
{
return (-1);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::Initialize(System.Int32)
extern "C" void Dictionary_2_Initialize_m1873927531_gshared (Dictionary_2_t2152459967 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Initialize_m1873927531_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
int32_t L_0 = ___capacity0;
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_GetPrime_m1056954278(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_2)));
V_1 = (int32_t)0;
goto IL_0024;
}
IL_0017:
{
Int32U5BU5D_t385246372* L_3 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_4 = V_1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (int32_t)(-1));
int32_t L_5 = V_1;
V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1));
}
IL_0024:
{
int32_t L_6 = V_1;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
if ((((int32_t)L_6) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length)))))))
{
goto IL_0017;
}
}
{
int32_t L_8 = V_0;
__this->set_entries_1(((EntryU5BU5D_t3282166878*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_8)));
__this->set_freeList_4((-1));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::TryInsert(TKey,TValue,System.Collections.Generic.InsertionBehavior)
extern "C" bool Dictionary_2_TryInsert_m3703518424_gshared (Dictionary_2_t2152459967 * __this, TypedConstant_t714020897 ___key0, RuntimeObject * ___value1, uint8_t ___behavior2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_TryInsert_m3703518424_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_TryInsert_m3703518424_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (L_2)
{
goto IL_0022;
}
}
{
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t2152459967 *)__this, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_0022:
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
TypedConstant_t714020897 L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, TypedConstant_t714020897 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (TypedConstant_t714020897 )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_4 = (int32_t)L_11;
goto IL_00e1;
}
IL_0051:
{
EntryU5BU5D_t3282166878* L_12 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_13 = V_4;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_00c9;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3282166878* L_17 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_18 = V_4;
NullCheck(L_17);
TypedConstant_t714020897 L_19 = (TypedConstant_t714020897 )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
TypedConstant_t714020897 L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, TypedConstant_t714020897 , TypedConstant_t714020897 >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (TypedConstant_t714020897 )L_19, (TypedConstant_t714020897 )L_20);
if (!L_21)
{
goto IL_00c9;
}
}
{
uint8_t L_22 = ___behavior2;
if ((!(((uint32_t)L_22) == ((uint32_t)1))))
{
goto IL_00ad;
}
}
{
EntryU5BU5D_t3282166878* L_23 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_24 = V_4;
NullCheck(L_23);
RuntimeObject * L_25 = ___value1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_value_3(L_25);
int32_t L_26 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
return (bool)1;
}
IL_00ad:
{
uint8_t L_27 = ___behavior2;
if ((!(((uint32_t)L_27) == ((uint32_t)2))))
{
goto IL_00c7;
}
}
{
TypedConstant_t714020897 L_28 = ___key0;
TypedConstant_t714020897 L_29 = L_28;
RuntimeObject * L_30 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_29);
String_t* L_31 = SR_Format_m1749913990(NULL /*static, unused*/, (String_t*)_stringLiteral1494472686, (RuntimeObject *)L_30, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_32 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_32, (String_t*)L_31, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_32, NULL, Dictionary_2_TryInsert_m3703518424_RuntimeMethod_var);
}
IL_00c7:
{
return (bool)0;
}
IL_00c9:
{
int32_t L_33 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t3282166878* L_34 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_35 = V_4;
NullCheck(L_34);
int32_t L_36 = (int32_t)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_next_1();
V_4 = (int32_t)L_36;
}
IL_00e1:
{
int32_t L_37 = V_4;
if ((((int32_t)L_37) >= ((int32_t)0)))
{
goto IL_0051;
}
}
{
int32_t L_38 = (int32_t)__this->get_freeCount_5();
if ((((int32_t)L_38) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t L_39 = (int32_t)__this->get_freeList_4();
V_3 = (int32_t)L_39;
EntryU5BU5D_t3282166878* L_40 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_41 = V_3;
NullCheck(L_40);
int32_t L_42 = (int32_t)((L_40)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_41)))->get_next_1();
__this->set_freeList_4(L_42);
int32_t L_43 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_subtract((int32_t)L_43, (int32_t)1)));
goto IL_0156;
}
IL_0120:
{
int32_t L_44 = (int32_t)__this->get_count_2();
EntryU5BU5D_t3282166878* L_45 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
NullCheck(L_45);
if ((!(((uint32_t)L_44) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_45)->max_length))))))))
{
goto IL_0141;
}
}
{
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36)->methodPointer)((Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36));
int32_t L_46 = V_0;
Int32U5BU5D_t385246372* L_47 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_47);
V_1 = (int32_t)((int32_t)((int32_t)L_46%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_47)->max_length))))));
}
IL_0141:
{
int32_t L_48 = (int32_t)__this->get_count_2();
V_3 = (int32_t)L_48;
int32_t L_49 = (int32_t)__this->get_count_2();
__this->set_count_2(((int32_t)il2cpp_codegen_add((int32_t)L_49, (int32_t)1)));
}
IL_0156:
{
EntryU5BU5D_t3282166878* L_50 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_51 = V_3;
NullCheck(L_50);
int32_t L_52 = V_0;
((L_50)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_51)))->set_hashCode_0(L_52);
EntryU5BU5D_t3282166878* L_53 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_54 = V_3;
NullCheck(L_53);
Int32U5BU5D_t385246372* L_55 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_56 = V_1;
NullCheck(L_55);
int32_t L_57 = L_56;
int32_t L_58 = (L_55)->GetAt(static_cast<il2cpp_array_size_t>(L_57));
((L_53)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_54)))->set_next_1(L_58);
EntryU5BU5D_t3282166878* L_59 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_60 = V_3;
NullCheck(L_59);
TypedConstant_t714020897 L_61 = ___key0;
((L_59)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_60)))->set_key_2(L_61);
EntryU5BU5D_t3282166878* L_62 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_63 = V_3;
NullCheck(L_62);
RuntimeObject * L_64 = ___value1;
((L_62)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_63)))->set_value_3(L_64);
Int32U5BU5D_t385246372* L_65 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_66 = V_1;
int32_t L_67 = V_3;
NullCheck(L_65);
(L_65)->SetAt(static_cast<il2cpp_array_size_t>(L_66), (int32_t)L_67);
int32_t L_68 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_68, (int32_t)1)));
int32_t L_69 = V_2;
if ((((int32_t)L_69) <= ((int32_t)((int32_t)100))))
{
goto IL_01ed;
}
}
{
RuntimeObject* L_70 = (RuntimeObject*)__this->get_comparer_6();
if (!((NonRandomizedStringEqualityComparer_t1082005352 *)IsInst((RuntimeObject*)L_70, NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var)))
{
goto IL_01ed;
}
}
{
EqualityComparer_1_t17223025 * L_71 = EqualityComparer_1_get_Default_m2310016383(NULL /*static, unused*/, /*hidden argument*/EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_71, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
EntryU5BU5D_t3282166878* L_72 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
NullCheck(L_72);
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t2152459967 *)__this, (int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_72)->max_length)))), (bool)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
}
IL_01ed:
{
return (bool)1;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::OnDeserialization(System.Object)
extern "C" void Dictionary_2_OnDeserialization_m1000149097_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject * ___sender0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_OnDeserialization_m1000149097_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SerializationInfo_t950877179 * V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
KeyValuePair_2U5BU5D_t2733438211* V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_TryGetValue_m1618998192((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 **)(SerializationInfo_t950877179 **)(&V_0), /*hidden argument*/ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var);
SerializationInfo_t950877179 * L_1 = V_0;
if (L_1)
{
goto IL_0012;
}
}
{
return;
}
IL_0012:
{
SerializationInfo_t950877179 * L_2 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_2);
int32_t L_3 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, /*hidden argument*/NULL);
V_1 = (int32_t)L_3;
SerializationInfo_t950877179 * L_4 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_4);
int32_t L_5 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral953796230, /*hidden argument*/NULL);
V_2 = (int32_t)L_5;
SerializationInfo_t950877179 * L_6 = V_0;
RuntimeTypeHandle_t3027515415 L_7 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_8 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_7, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_6);
RuntimeObject * L_9 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_6, (String_t*)_stringLiteral892943380, (Type_t *)L_8, /*hidden argument*/NULL);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_9, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
int32_t L_10 = V_2;
if (!L_10)
{
goto IL_010c;
}
}
{
int32_t L_11 = V_2;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_11)));
V_4 = (int32_t)0;
goto IL_0071;
}
IL_0061:
{
Int32U5BU5D_t385246372* L_12 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_13 = V_4;
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)(-1));
int32_t L_14 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0071:
{
int32_t L_15 = V_4;
Int32U5BU5D_t385246372* L_16 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0061;
}
}
{
int32_t L_17 = V_2;
__this->set_entries_1(((EntryU5BU5D_t3282166878*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_17)));
__this->set_freeList_4((-1));
SerializationInfo_t950877179 * L_18 = V_0;
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_19, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_18);
RuntimeObject * L_21 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_18, (String_t*)_stringLiteral2947573650, (Type_t *)L_20, /*hidden argument*/NULL);
V_3 = (KeyValuePair_2U5BU5D_t2733438211*)((KeyValuePair_2U5BU5D_t2733438211*)Castclass((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t2733438211* L_22 = V_3;
if (L_22)
{
goto IL_00b9;
}
}
{
SerializationException_t3941511869 * L_23 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_23, (String_t*)_stringLiteral998597917, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_23, NULL, Dictionary_2_OnDeserialization_m1000149097_RuntimeMethod_var);
}
IL_00b9:
{
V_5 = (int32_t)0;
goto IL_0103;
}
IL_00be:
{
KeyValuePair_2U5BU5D_t2733438211* L_24 = V_3;
int32_t L_25 = V_5;
NullCheck(L_24);
TypedConstant_t714020897 L_26 = KeyValuePair_2_get_Key_m3539669632((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
goto IL_00dd;
}
{
SerializationException_t3941511869 * L_27 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_27, (String_t*)_stringLiteral3616747365, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_27, NULL, Dictionary_2_OnDeserialization_m1000149097_RuntimeMethod_var);
}
IL_00dd:
{
KeyValuePair_2U5BU5D_t2733438211* L_28 = V_3;
int32_t L_29 = V_5;
NullCheck(L_28);
TypedConstant_t714020897 L_30 = KeyValuePair_2_get_Key_m3539669632((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
KeyValuePair_2U5BU5D_t2733438211* L_31 = V_3;
int32_t L_32 = V_5;
NullCheck(L_31);
RuntimeObject * L_33 = KeyValuePair_2_get_Value_m1745831214((KeyValuePair_2_t255164838 *)(KeyValuePair_2_t255164838 *)((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_30, (RuntimeObject *)L_33, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
int32_t L_34 = V_5;
V_5 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_34, (int32_t)1));
}
IL_0103:
{
int32_t L_35 = V_5;
KeyValuePair_2U5BU5D_t2733438211* L_36 = V_3;
NullCheck(L_36);
if ((((int32_t)L_35) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_36)->max_length)))))))
{
goto IL_00be;
}
}
{
goto IL_0113;
}
IL_010c:
{
__this->set_buckets_0((Int32U5BU5D_t385246372*)NULL);
}
IL_0113:
{
int32_t L_37 = V_1;
__this->set_version_3(L_37);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_38 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_38);
ConditionalWeakTable_2_Remove_m2013031576((ConditionalWeakTable_2_t1452810305 *)L_38, (RuntimeObject *)__this, /*hidden argument*/ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::Resize()
extern "C" void Dictionary_2_Resize_m2517039196_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m2517039196_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = (int32_t)__this->get_count_2();
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_ExpandPrime_m2180508331(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t2152459967 *)__this, (int32_t)L_1, (bool)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::Resize(System.Int32,System.Boolean)
extern "C" void Dictionary_2_Resize_m1901725084_gshared (Dictionary_2_t2152459967 * __this, int32_t ___newSize0, bool ___forceNewHashCodes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m1901725084_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Int32U5BU5D_t385246372* V_0 = NULL;
EntryU5BU5D_t3282166878* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t L_0 = ___newSize0;
V_0 = (Int32U5BU5D_t385246372*)((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_0));
V_2 = (int32_t)0;
goto IL_0013;
}
IL_000b:
{
Int32U5BU5D_t385246372* L_1 = V_0;
int32_t L_2 = V_2;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_0013:
{
int32_t L_4 = V_2;
Int32U5BU5D_t385246372* L_5 = V_0;
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000b;
}
}
{
int32_t L_6 = ___newSize0;
V_1 = (EntryU5BU5D_t3282166878*)((EntryU5BU5D_t3282166878*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_6));
EntryU5BU5D_t3282166878* L_7 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
EntryU5BU5D_t3282166878* L_8 = V_1;
int32_t L_9 = (int32_t)__this->get_count_2();
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_7, (int32_t)0, (RuntimeArray *)(RuntimeArray *)L_8, (int32_t)0, (int32_t)L_9, /*hidden argument*/NULL);
bool L_10 = ___forceNewHashCodes1;
if (!L_10)
{
goto IL_0080;
}
}
{
V_3 = (int32_t)0;
goto IL_0077;
}
IL_003b:
{
EntryU5BU5D_t3282166878* L_11 = V_1;
int32_t L_12 = V_3;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) == ((int32_t)(-1))))
{
goto IL_0073;
}
}
{
EntryU5BU5D_t3282166878* L_14 = V_1;
int32_t L_15 = V_3;
NullCheck(L_14);
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3282166878* L_17 = V_1;
int32_t L_18 = V_3;
NullCheck(L_17);
TypedConstant_t714020897 L_19 = (TypedConstant_t714020897 )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
NullCheck((RuntimeObject*)L_16);
int32_t L_20 = InterfaceFuncInvoker1< int32_t, TypedConstant_t714020897 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (TypedConstant_t714020897 )L_19);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->set_hashCode_0(((int32_t)((int32_t)L_20&(int32_t)((int32_t)2147483647LL))));
}
IL_0073:
{
int32_t L_21 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1));
}
IL_0077:
{
int32_t L_22 = V_3;
int32_t L_23 = (int32_t)__this->get_count_2();
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_003b;
}
}
IL_0080:
{
V_4 = (int32_t)0;
goto IL_00c3;
}
IL_0085:
{
EntryU5BU5D_t3282166878* L_24 = V_1;
int32_t L_25 = V_4;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_hashCode_0();
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00bd;
}
}
{
EntryU5BU5D_t3282166878* L_27 = V_1;
int32_t L_28 = V_4;
NullCheck(L_27);
int32_t L_29 = (int32_t)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->get_hashCode_0();
int32_t L_30 = ___newSize0;
V_5 = (int32_t)((int32_t)((int32_t)L_29%(int32_t)L_30));
EntryU5BU5D_t3282166878* L_31 = V_1;
int32_t L_32 = V_4;
NullCheck(L_31);
Int32U5BU5D_t385246372* L_33 = V_0;
int32_t L_34 = V_5;
NullCheck(L_33);
int32_t L_35 = L_34;
int32_t L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32)))->set_next_1(L_36);
Int32U5BU5D_t385246372* L_37 = V_0;
int32_t L_38 = V_5;
int32_t L_39 = V_4;
NullCheck(L_37);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(L_38), (int32_t)L_39);
}
IL_00bd:
{
int32_t L_40 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
}
IL_00c3:
{
int32_t L_41 = V_4;
int32_t L_42 = (int32_t)__this->get_count_2();
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_0085;
}
}
{
Int32U5BU5D_t385246372* L_43 = V_0;
__this->set_buckets_0(L_43);
EntryU5BU5D_t3282166878* L_44 = V_1;
__this->set_entries_1(L_44);
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::Remove(TKey)
extern "C" bool Dictionary_2_Remove_m3532039286_gshared (Dictionary_2_t2152459967 * __this, TypedConstant_t714020897 ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Remove_m3532039286_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
goto IL_0013;
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_Remove_m3532039286_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_015d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
TypedConstant_t714020897 L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, TypedConstant_t714020897 >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (TypedConstant_t714020897 )L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)(-1);
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_3 = (int32_t)L_11;
goto IL_0156;
}
IL_004c:
{
EntryU5BU5D_t3282166878* L_12 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_13 = V_3;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0142;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t3282166878* L_17 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_18 = V_3;
NullCheck(L_17);
TypedConstant_t714020897 L_19 = (TypedConstant_t714020897 )((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
TypedConstant_t714020897 L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, TypedConstant_t714020897 , TypedConstant_t714020897 >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (TypedConstant_t714020897 )L_19, (TypedConstant_t714020897 )L_20);
if (!L_21)
{
goto IL_0142;
}
}
{
int32_t L_22 = V_2;
if ((((int32_t)L_22) >= ((int32_t)0)))
{
goto IL_00a4;
}
}
{
Int32U5BU5D_t385246372* L_23 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_24 = V_1;
EntryU5BU5D_t3282166878* L_25 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_26 = V_3;
NullCheck(L_25);
int32_t L_27 = (int32_t)((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->get_next_1();
NullCheck(L_23);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(L_24), (int32_t)L_27);
goto IL_00c6;
}
IL_00a4:
{
EntryU5BU5D_t3282166878* L_28 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_29 = V_2;
NullCheck(L_28);
EntryU5BU5D_t3282166878* L_30 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_31 = V_3;
NullCheck(L_30);
int32_t L_32 = (int32_t)((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->get_next_1();
((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->set_next_1(L_32);
}
IL_00c6:
{
EntryU5BU5D_t3282166878* L_33 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_34 = V_3;
NullCheck(L_33);
((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->set_hashCode_0((-1));
EntryU5BU5D_t3282166878* L_35 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_36 = V_3;
NullCheck(L_35);
int32_t L_37 = (int32_t)__this->get_freeList_4();
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->set_next_1(L_37);
EntryU5BU5D_t3282166878* L_38 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
TypedConstant_t714020897 * L_40 = (TypedConstant_t714020897 *)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_address_of_key_2();
il2cpp_codegen_initobj(L_40, sizeof(TypedConstant_t714020897 ));
EntryU5BU5D_t3282166878* L_41 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_42 = V_3;
NullCheck(L_41);
RuntimeObject ** L_43 = (RuntimeObject **)((L_41)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_42)))->get_address_of_value_3();
il2cpp_codegen_initobj(L_43, sizeof(RuntimeObject *));
int32_t L_44 = V_3;
__this->set_freeList_4(L_44);
int32_t L_45 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1)));
int32_t L_46 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1)));
return (bool)1;
}
IL_0142:
{
int32_t L_47 = V_3;
V_2 = (int32_t)L_47;
EntryU5BU5D_t3282166878* L_48 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = (int32_t)((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->get_next_1();
V_3 = (int32_t)L_50;
}
IL_0156:
{
int32_t L_51 = V_3;
if ((((int32_t)L_51) >= ((int32_t)0)))
{
goto IL_004c;
}
}
IL_015d:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::TryGetValue(TKey,TValue&)
extern "C" bool Dictionary_2_TryGetValue_m3985272124_gshared (Dictionary_2_t2152459967 * __this, TypedConstant_t714020897 ___key0, RuntimeObject ** ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
TypedConstant_t714020897 L_0 = ___key0;
NullCheck((Dictionary_2_t2152459967 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0025;
}
}
{
RuntimeObject ** L_3 = ___value1;
EntryU5BU5D_t3282166878* L_4 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
RuntimeObject * L_6 = (RuntimeObject *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
*(RuntimeObject **)L_3 = L_6;
Il2CppCodeGenWriteBarrier((RuntimeObject **)L_3, L_6);
return (bool)1;
}
IL_0025:
{
RuntimeObject ** L_7 = ___value1;
il2cpp_codegen_initobj(L_7, sizeof(RuntimeObject *));
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::TryAdd(TKey,TValue)
extern "C" bool Dictionary_2_TryAdd_m609749808_gshared (Dictionary_2_t2152459967 * __this, TypedConstant_t714020897 ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
{
TypedConstant_t714020897 L_0 = ___key0;
RuntimeObject * L_1 = ___value1;
NullCheck((Dictionary_2_t2152459967 *)__this);
bool L_2 = (( bool (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , RuntimeObject *, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_0, (RuntimeObject *)L_1, (uint8_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1283074084_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m1309830511_gshared (Dictionary_2_t2152459967 * __this, KeyValuePair_2U5BU5D_t2733438211* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
{
KeyValuePair_2U5BU5D_t2733438211* L_0 = ___array0;
int32_t L_1 = ___index1;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, KeyValuePair_2U5BU5D_t2733438211*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2152459967 *)__this, (KeyValuePair_2U5BU5D_t2733438211*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32)
extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_gshared (Dictionary_2_t2152459967 * __this, RuntimeArray * ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t2733438211* V_0 = NULL;
DictionaryEntryU5BU5D_t4217117203* V_1 = NULL;
EntryU5BU5D_t3282166878* V_2 = NULL;
int32_t V_3 = 0;
ObjectU5BU5D_t2843939325* V_4 = NULL;
int32_t V_5 = 0;
EntryU5BU5D_t3282166878* V_6 = NULL;
int32_t V_7 = 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);
{
RuntimeArray * L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_RuntimeMethod_var);
}
IL_000e:
{
RuntimeArray * L_2 = ___array0;
NullCheck((RuntimeArray *)L_2);
int32_t L_3 = Array_get_Rank_m3448755881((RuntimeArray *)L_2, /*hidden argument*/NULL);
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0027;
}
}
{
ArgumentException_t132251570 * L_4 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_4, (String_t*)_stringLiteral915403387, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_RuntimeMethod_var);
}
IL_0027:
{
RuntimeArray * L_5 = ___array0;
NullCheck((RuntimeArray *)L_5);
int32_t L_6 = Array_GetLowerBound_m2045984623((RuntimeArray *)L_5, (int32_t)0, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0040;
}
}
{
ArgumentException_t132251570 * L_7 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_7, (String_t*)_stringLiteral2590862907, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_RuntimeMethod_var);
}
IL_0040:
{
int32_t L_8 = ___index1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_004d;
}
}
{
int32_t L_9 = ___index1;
RuntimeArray * L_10 = ___array0;
NullCheck((RuntimeArray *)L_10);
int32_t L_11 = Array_get_Length_m21610649((RuntimeArray *)L_10, /*hidden argument*/NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0063;
}
}
IL_004d:
{
int32_t L_12 = ___index1;
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_13);
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_15, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_14, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_RuntimeMethod_var);
}
IL_0063:
{
RuntimeArray * L_16 = ___array0;
NullCheck((RuntimeArray *)L_16);
int32_t L_17 = Array_get_Length_m21610649((RuntimeArray *)L_16, /*hidden argument*/NULL);
int32_t L_18 = ___index1;
NullCheck((Dictionary_2_t2152459967 *)__this);
int32_t L_19 = (( int32_t (*) (Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)L_18))) >= ((int32_t)L_19)))
{
goto IL_007e;
}
}
{
ArgumentException_t132251570 * L_20 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_20, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_20, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_RuntimeMethod_var);
}
IL_007e:
{
RuntimeArray * L_21 = ___array0;
V_0 = (KeyValuePair_2U5BU5D_t2733438211*)((KeyValuePair_2U5BU5D_t2733438211*)IsInst((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t2733438211* L_22 = V_0;
if (!L_22)
{
goto IL_0091;
}
}
{
KeyValuePair_2U5BU5D_t2733438211* L_23 = V_0;
int32_t L_24 = ___index1;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, KeyValuePair_2U5BU5D_t2733438211*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t2152459967 *)__this, (KeyValuePair_2U5BU5D_t2733438211*)L_23, (int32_t)L_24, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
IL_0091:
{
RuntimeArray * L_25 = ___array0;
if (!((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_25, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var)))
{
goto IL_00fb;
}
}
{
RuntimeArray * L_26 = ___array0;
V_1 = (DictionaryEntryU5BU5D_t4217117203*)((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_26, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var));
EntryU5BU5D_t3282166878* L_27 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
V_2 = (EntryU5BU5D_t3282166878*)L_27;
V_3 = (int32_t)0;
goto IL_00f1;
}
IL_00ab:
{
EntryU5BU5D_t3282166878* L_28 = V_2;
int32_t L_29 = V_3;
NullCheck(L_28);
int32_t L_30 = (int32_t)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->get_hashCode_0();
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_00ed;
}
}
{
DictionaryEntryU5BU5D_t4217117203* L_31 = V_1;
int32_t L_32 = ___index1;
int32_t L_33 = (int32_t)L_32;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t3282166878* L_34 = V_2;
int32_t L_35 = V_3;
NullCheck(L_34);
TypedConstant_t714020897 L_36 = (TypedConstant_t714020897 )((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_key_2();
TypedConstant_t714020897 L_37 = L_36;
RuntimeObject * L_38 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33), &L_37);
EntryU5BU5D_t3282166878* L_39 = V_2;
int32_t L_40 = V_3;
NullCheck(L_39);
RuntimeObject * L_41 = (RuntimeObject *)((L_39)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_40)))->get_value_3();
DictionaryEntry_t3123975638 L_42;
memset(&L_42, 0, sizeof(L_42));
DictionaryEntry__ctor_m2585376310((&L_42), (RuntimeObject *)L_38, (RuntimeObject *)L_41, /*hidden argument*/NULL);
NullCheck(L_31);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (DictionaryEntry_t3123975638 )L_42);
}
IL_00ed:
{
int32_t L_43 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_43, (int32_t)1));
}
IL_00f1:
{
int32_t L_44 = V_3;
int32_t L_45 = (int32_t)__this->get_count_2();
if ((((int32_t)L_44) < ((int32_t)L_45)))
{
goto IL_00ab;
}
}
{
return;
}
IL_00fb:
{
RuntimeArray * L_46 = ___array0;
V_4 = (ObjectU5BU5D_t2843939325*)((ObjectU5BU5D_t2843939325*)IsInst((RuntimeObject*)L_46, ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var));
ObjectU5BU5D_t2843939325* L_47 = V_4;
if (L_47)
{
goto IL_0117;
}
}
{
ArgumentException_t132251570 * L_48 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_48, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_48, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_RuntimeMethod_var);
}
IL_0117:
{
}
IL_0118:
try
{ // begin try (depth: 1)
{
int32_t L_49 = (int32_t)__this->get_count_2();
V_5 = (int32_t)L_49;
EntryU5BU5D_t3282166878* L_50 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
V_6 = (EntryU5BU5D_t3282166878*)L_50;
V_7 = (int32_t)0;
goto IL_0173;
}
IL_012d:
{
EntryU5BU5D_t3282166878* L_51 = V_6;
int32_t L_52 = V_7;
NullCheck(L_51);
int32_t L_53 = (int32_t)((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->get_hashCode_0();
if ((((int32_t)L_53) < ((int32_t)0)))
{
goto IL_016d;
}
}
IL_013e:
{
ObjectU5BU5D_t2843939325* L_54 = V_4;
int32_t L_55 = ___index1;
int32_t L_56 = (int32_t)L_55;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_56, (int32_t)1));
EntryU5BU5D_t3282166878* L_57 = V_6;
int32_t L_58 = V_7;
NullCheck(L_57);
TypedConstant_t714020897 L_59 = (TypedConstant_t714020897 )((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->get_key_2();
EntryU5BU5D_t3282166878* L_60 = V_6;
int32_t L_61 = V_7;
NullCheck(L_60);
RuntimeObject * L_62 = (RuntimeObject *)((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->get_value_3();
KeyValuePair_2_t255164838 L_63;
memset(&L_63, 0, sizeof(L_63));
KeyValuePair_2__ctor_m51719720((&L_63), (TypedConstant_t714020897 )L_59, (RuntimeObject *)L_62, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
KeyValuePair_2_t255164838 L_64 = L_63;
RuntimeObject * L_65 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 25), &L_64);
NullCheck(L_54);
ArrayElementTypeCheck (L_54, L_65);
(L_54)->SetAt(static_cast<il2cpp_array_size_t>(L_56), (RuntimeObject *)L_65);
}
IL_016d:
{
int32_t L_66 = V_7;
V_7 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1));
}
IL_0173:
{
int32_t L_67 = V_7;
int32_t L_68 = V_5;
if ((((int32_t)L_67) < ((int32_t)L_68)))
{
goto IL_012d;
}
}
IL_0179:
{
goto IL_018c;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_017b;
throw e;
}
CATCH_017b:
{ // begin catch(System.ArrayTypeMismatchException)
ArgumentException_t132251570 * L_69 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_69, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_69, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m473334930_RuntimeMethod_var);
} // end catch (depth: 1)
IL_018c:
{
return;
}
}
// System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IEnumerable.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m2431938843_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
Enumerator_t4106642742 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m856106391((&L_0), (Dictionary_2_t2152459967 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t4106642742 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.ICollection.get_IsSynchronized()
extern "C" bool Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m3277338367_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.ICollection.get_SyncRoot()
extern "C" RuntimeObject * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2881186505_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2881186505_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get__syncRoot_9();
if (L_0)
{
goto IL_001a;
}
}
{
RuntimeObject ** L_1 = (RuntimeObject **)__this->get_address_of__syncRoot_9();
RuntimeObject * L_2 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_2, /*hidden argument*/NULL);
InterlockedCompareExchangeImpl<RuntimeObject *>((RuntimeObject **)(RuntimeObject **)L_1, (RuntimeObject *)L_2, (RuntimeObject *)NULL);
}
IL_001a:
{
RuntimeObject * L_3 = (RuntimeObject *)__this->get__syncRoot_9();
return L_3;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IDictionary.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_IDictionary_get_IsReadOnly_m3392816593_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IDictionary.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Keys_m2149184359_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2152459967 *)__this);
KeyCollection_t2342135438 * L_0 = (( KeyCollection_t2342135438 * (*) (Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39)->methodPointer)((Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39));
return L_0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IDictionary.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Values_m4105393215_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t2152459967 *)__this);
ValueCollection_t3868504285 * L_0 = (( ValueCollection_t3868504285 * (*) (Dictionary_2_t2152459967 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40)->methodPointer)((Dictionary_2_t2152459967 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40));
return L_0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IDictionary.get_Item(System.Object)
extern "C" RuntimeObject * Dictionary_2_System_Collections_IDictionary_get_Item_m1100621272_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0030;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2152459967 *)__this);
int32_t L_3 = (( int32_t (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_3;
int32_t L_4 = V_0;
if ((((int32_t)L_4) < ((int32_t)0)))
{
goto IL_0030;
}
}
{
EntryU5BU5D_t3282166878* L_5 = (EntryU5BU5D_t3282166878*)__this->get_entries_1();
int32_t L_6 = V_0;
NullCheck(L_5);
RuntimeObject * L_7 = (RuntimeObject *)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->get_value_3();
return L_7;
}
IL_0030:
{
return NULL;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IDictionary.set_Item(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m4204470156_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_set_Item_m4204470156_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
TypedConstant_t714020897 V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m4204470156_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m4204470156_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
TypedConstant_t714020897 L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m4204470156_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m4204470156_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::IsCompatibleKey(System.Object)
extern "C" bool Dictionary_2_IsCompatibleKey_m4221256847_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_IsCompatibleKey_m4221256847_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_IsCompatibleKey_m4221256847_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___key0;
return (bool)((!(((RuntimeObject*)(RuntimeObject *)((RuntimeObject *)IsInst((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 33)))) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IDictionary.Add(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m299235644_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_Add_m299235644_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
TypedConstant_t714020897 V_1;
memset(&V_1, 0, sizeof(V_1));
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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_Add_m299235644_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(RuntimeObject *));
RuntimeObject * L_3 = V_0;
if (!L_3)
{
goto IL_002c;
}
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_Add_m299235644_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)))));
}
IL_0034:
try
{ // begin try (depth: 2)
TypedConstant_t714020897 L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( void (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )L_6, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_Add_m299235644_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_Add_m299235644_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IDictionary.Contains(System.Object)
extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m2604643435_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2152459967 *)__this);
bool L_3 = (( bool (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46));
return L_3;
}
IL_0015:
{
return (bool)0;
}
}
// System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IDictionary.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_GetEnumerator_m333096674_gshared (Dictionary_2_t2152459967 * __this, const RuntimeMethod* method)
{
{
Enumerator_t4106642742 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m856106391((&L_0), (Dictionary_2_t2152459967 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t4106642742 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Linq.Expressions.Compiler.BoundConstants/TypedConstant,System.Object>::System.Collections.IDictionary.Remove(System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m3871053057_gshared (Dictionary_2_t2152459967 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t2152459967 *)__this);
(( bool (*) (Dictionary_2_t2152459967 *, TypedConstant_t714020897 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t2152459967 *)__this, (TypedConstant_t714020897 )((*(TypedConstant_t714020897 *)((TypedConstant_t714020897 *)UnBox(L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
}
IL_0015:
{
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 System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor()
extern "C" void Dictionary_2__ctor_m2211013073_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1024515101 *)__this, (int32_t)0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(System.Int32)
extern "C" void Dictionary_2__ctor_m1900966516_gshared (Dictionary_2_t1024515101 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___capacity0;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1024515101 *)__this, (int32_t)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m2037994080_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject* ___comparer0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___comparer0;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1024515101 *)__this, (int32_t)0, (RuntimeObject*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m1817889468_gshared (Dictionary_2_t1024515101 * __this, int32_t ___capacity0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m1817889468_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* G_B6_0 = NULL;
Dictionary_2_t1024515101 * G_B6_1 = NULL;
RuntimeObject* G_B5_0 = NULL;
Dictionary_2_t1024515101 * G_B5_1 = NULL;
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
int32_t L_0 = ___capacity0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0020;
}
}
{
int32_t L_1 = ___capacity0;
int32_t L_2 = L_1;
RuntimeObject * L_3 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_2);
ArgumentOutOfRangeException_t777629997 * L_4 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_4, (String_t*)_stringLiteral3623012086, (RuntimeObject *)L_3, (String_t*)_stringLiteral2892689725, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2__ctor_m1817889468_RuntimeMethod_var);
}
IL_0020:
{
int32_t L_5 = ___capacity0;
if ((((int32_t)L_5) <= ((int32_t)0)))
{
goto IL_002b;
}
}
{
int32_t L_6 = ___capacity0;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t1024515101 *)__this, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_002b:
{
RuntimeObject* L_7 = ___comparer1;
RuntimeObject* L_8 = (RuntimeObject*)L_7;
G_B5_0 = L_8;
G_B5_1 = ((Dictionary_2_t1024515101 *)(__this));
if (L_8)
{
G_B6_0 = L_8;
G_B6_1 = ((Dictionary_2_t1024515101 *)(__this));
goto IL_0036;
}
}
{
EqualityComparer_1_t1249878500 * L_9 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2));
G_B6_0 = ((RuntimeObject*)(L_9));
G_B6_1 = ((Dictionary_2_t1024515101 *)(G_B5_1));
}
IL_0036:
{
NullCheck(G_B6_1);
G_B6_1->set_comparer_6(G_B6_0);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>)
extern "C" void Dictionary_2__ctor_m1262561594_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___dictionary0;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject*)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m350060192_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject* ___dictionary0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m350060192_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t4095373256* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
KeyValuePair_2_t3422187268 V_4;
memset(&V_4, 0, sizeof(V_4));
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);
Dictionary_2_t1024515101 * G_B2_0 = NULL;
Dictionary_2_t1024515101 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
Dictionary_2_t1024515101 * G_B3_1 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
G_B1_0 = ((Dictionary_2_t1024515101 *)(__this));
if (L_0)
{
G_B2_0 = ((Dictionary_2_t1024515101 *)(__this));
goto IL_0007;
}
}
{
G_B3_0 = 0;
G_B3_1 = ((Dictionary_2_t1024515101 *)(G_B1_0));
goto IL_000d;
}
IL_0007:
{
RuntimeObject* L_1 = ___dictionary0;
NullCheck((RuntimeObject*)L_1);
int32_t L_2 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>>::get_Count() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 5), (RuntimeObject*)L_1);
G_B3_0 = L_2;
G_B3_1 = ((Dictionary_2_t1024515101 *)(G_B2_0));
}
IL_000d:
{
RuntimeObject* L_3 = ___comparer1;
NullCheck((Dictionary_2_t1024515101 *)G_B3_1);
(( void (*) (Dictionary_2_t1024515101 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1024515101 *)G_B3_1, (int32_t)G_B3_0, (RuntimeObject*)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
RuntimeObject* L_4 = ___dictionary0;
if (L_4)
{
goto IL_0021;
}
}
{
ArgumentNullException_t1615371798 * L_5 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_5, (String_t*)_stringLiteral2957729587, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, Dictionary_2__ctor_m350060192_RuntimeMethod_var);
}
IL_0021:
{
RuntimeObject* L_6 = ___dictionary0;
NullCheck((RuntimeObject *)L_6);
Type_t * L_7 = Object_GetType_m88164663((RuntimeObject *)L_6, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_8 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 6)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_9 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_8, /*hidden argument*/NULL);
bool L_10 = Type_op_Equality_m2683486427(NULL /*static, unused*/, (Type_t *)L_7, (Type_t *)L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0085;
}
}
{
RuntimeObject* L_11 = ___dictionary0;
Dictionary_2_t1024515101 * L_12 = (Dictionary_2_t1024515101 *)((Dictionary_2_t1024515101 *)Castclass((RuntimeObject*)L_11, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 7)));
NullCheck(L_12);
int32_t L_13 = (int32_t)L_12->get_count_2();
V_0 = (int32_t)L_13;
NullCheck(L_12);
EntryU5BU5D_t4095373256* L_14 = (EntryU5BU5D_t4095373256*)L_12->get_entries_1();
V_1 = (EntryU5BU5D_t4095373256*)L_14;
V_2 = (int32_t)0;
goto IL_0080;
}
IL_004f:
{
EntryU5BU5D_t4095373256* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007c;
}
}
{
EntryU5BU5D_t4095373256* L_18 = V_1;
int32_t L_19 = V_2;
NullCheck(L_18);
RuntimeObject * L_20 = (RuntimeObject *)((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->get_key_2();
EntryU5BU5D_t4095373256* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
uint32_t L_23 = (uint32_t)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_value_3();
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, RuntimeObject *, uint32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_20, (uint32_t)L_23, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_007c:
{
int32_t L_24 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0080:
{
int32_t L_25 = V_2;
int32_t L_26 = V_0;
if ((((int32_t)L_25) < ((int32_t)L_26)))
{
goto IL_004f;
}
}
{
return;
}
IL_0085:
{
RuntimeObject* L_27 = ___dictionary0;
NullCheck((RuntimeObject*)L_27);
RuntimeObject* L_28 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 9), (RuntimeObject*)L_27);
V_3 = (RuntimeObject*)L_28;
}
IL_008c:
try
{ // begin try (depth: 1)
{
goto IL_00aa;
}
IL_008e:
{
RuntimeObject* L_29 = V_3;
NullCheck((RuntimeObject*)L_29);
KeyValuePair_2_t3422187268 L_30 = InterfaceFuncInvoker0< KeyValuePair_2_t3422187268 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>>::get_Current() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 10), (RuntimeObject*)L_29);
V_4 = (KeyValuePair_2_t3422187268 )L_30;
RuntimeObject * L_31 = KeyValuePair_2_get_Key_m3802237574((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
uint32_t L_32 = KeyValuePair_2_get_Value_m3608670336((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, RuntimeObject *, uint32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_31, (uint32_t)L_32, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_00aa:
{
RuntimeObject* L_33 = V_3;
NullCheck((RuntimeObject*)L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, (RuntimeObject*)L_33);
if (L_34)
{
goto IL_008e;
}
}
IL_00b2:
{
IL2CPP_LEAVE(0xBE, FINALLY_00b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b4;
}
FINALLY_00b4:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_3;
if (!L_35)
{
goto IL_00bd;
}
}
IL_00b7:
{
RuntimeObject* L_36 = V_3;
NullCheck((RuntimeObject*)L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, (RuntimeObject*)L_36);
}
IL_00bd:
{
IL2CPP_END_FINALLY(180)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(180)
{
IL2CPP_JUMP_TBL(0xBE, IL_00be)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00be:
{
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2__ctor_m2995685984_gshared (Dictionary_2_t1024515101 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m2995685984_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_1 = ___info0;
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_Add_m4098691448((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 *)L_1, /*hidden argument*/ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var);
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::get_Count()
extern "C" int32_t Dictionary_2_get_Count_m718199904_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_count_2();
int32_t L_1 = (int32_t)__this->get_freeCount_5();
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1));
}
}
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::get_Keys()
extern "C" KeyCollection_t1214190572 * Dictionary_2_get_Keys_m1498886324_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t1214190572 * L_0 = (KeyCollection_t1214190572 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t1214190572 * L_1 = (KeyCollection_t1214190572 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t1214190572 *, Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t1214190572 * L_2 = (KeyCollection_t1214190572 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m1206669248_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t1214190572 * L_0 = (KeyCollection_t1214190572 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t1214190572 * L_1 = (KeyCollection_t1214190572 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t1214190572 *, Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t1214190572 * L_2 = (KeyCollection_t1214190572 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TKey> System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Keys_m3329589293_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t1214190572 * L_0 = (KeyCollection_t1214190572 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t1214190572 * L_1 = (KeyCollection_t1214190572 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t1214190572 *, Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t1214190572 * L_2 = (KeyCollection_t1214190572 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::get_Values()
extern "C" ValueCollection_t2740559419 * Dictionary_2_get_Values_m427867594_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t2740559419 * L_0 = (ValueCollection_t2740559419 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t2740559419 * L_1 = (ValueCollection_t2740559419 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t2740559419 *, Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t2740559419 * L_2 = (ValueCollection_t2740559419 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m3159373128_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t2740559419 * L_0 = (ValueCollection_t2740559419 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t2740559419 * L_1 = (ValueCollection_t2740559419 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t2740559419 *, Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t2740559419 * L_2 = (ValueCollection_t2740559419 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TValue> System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Values_m3908298740_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t2740559419 * L_0 = (ValueCollection_t2740559419 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t2740559419 * L_1 = (ValueCollection_t2740559419 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t2740559419 *, Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t2740559419 * L_2 = (ValueCollection_t2740559419 *)__this->get_values_8();
return L_2;
}
}
// TValue System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::get_Item(TKey)
extern "C" uint32_t Dictionary_2_get_Item_m887905901_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_get_Item_m887905901_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
NullCheck((Dictionary_2_t1024515101 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1024515101 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_001e;
}
}
{
EntryU5BU5D_t4095373256* L_3 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_4 = V_0;
NullCheck(L_3);
uint32_t L_5 = (uint32_t)((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_4)))->get_value_3();
return L_5;
}
IL_001e:
{
KeyNotFoundException_t2292407383 * L_6 = (KeyNotFoundException_t2292407383 *)il2cpp_codegen_object_new(KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var);
KeyNotFoundException__ctor_m541499307(L_6, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, Dictionary_2_get_Item_m887905901_RuntimeMethod_var);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::set_Item(TKey,TValue)
extern "C" void Dictionary_2_set_Item_m152048359_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, uint32_t ___value1, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
uint32_t L_1 = ___value1;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( bool (*) (Dictionary_2_t1024515101 *, RuntimeObject *, uint32_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_0, (uint32_t)L_1, (uint8_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::Add(TKey,TValue)
extern "C" void Dictionary_2_Add_m2344561515_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, uint32_t ___value1, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
uint32_t L_1 = ___value1;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( bool (*) (Dictionary_2_t1024515101 *, RuntimeObject *, uint32_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_0, (uint32_t)L_1, (uint8_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m3721124382_gshared (Dictionary_2_t1024515101 * __this, KeyValuePair_2_t3422187268 ___keyValuePair0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = KeyValuePair_2_get_Key_m3802237574((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
uint32_t L_1 = KeyValuePair_2_get_Value_m3608670336((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, RuntimeObject *, uint32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_0, (uint32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m647047585_gshared (Dictionary_2_t1024515101 * __this, KeyValuePair_2_t3422187268 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = KeyValuePair_2_get_Key_m3802237574((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1024515101 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1024515101 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0038;
}
}
{
EqualityComparer_1_t2141848449 * L_3 = (( EqualityComparer_1_t2141848449 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t4095373256* L_4 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
uint32_t L_6 = (uint32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
uint32_t L_7 = KeyValuePair_2_get_Value_m3608670336((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t2141848449 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, uint32_t, uint32_t >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::Equals(T,T) */, (EqualityComparer_1_t2141848449 *)L_3, (uint32_t)L_6, (uint32_t)L_7);
if (!L_8)
{
goto IL_0038;
}
}
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m3801054049_gshared (Dictionary_2_t1024515101 * __this, KeyValuePair_2_t3422187268 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = KeyValuePair_2_get_Key_m3802237574((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1024515101 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1024515101 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0046;
}
}
{
EqualityComparer_1_t2141848449 * L_3 = (( EqualityComparer_1_t2141848449 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t4095373256* L_4 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
uint32_t L_6 = (uint32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
uint32_t L_7 = KeyValuePair_2_get_Value_m3608670336((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t2141848449 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, uint32_t, uint32_t >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::Equals(T,T) */, (EqualityComparer_1_t2141848449 *)L_3, (uint32_t)L_6, (uint32_t)L_7);
if (!L_8)
{
goto IL_0046;
}
}
{
RuntimeObject * L_9 = KeyValuePair_2_get_Key_m3802237574((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1024515101 *)__this);
(( bool (*) (Dictionary_2_t1024515101 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
return (bool)1;
}
IL_0046:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::Clear()
extern "C" void Dictionary_2_Clear_m1190631187_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (int32_t)__this->get_count_2();
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_005a;
}
}
{
V_0 = (int32_t)0;
goto IL_001a;
}
IL_000d:
{
Int32U5BU5D_t385246372* L_1 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_2 = V_0;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_001a:
{
int32_t L_4 = V_0;
Int32U5BU5D_t385246372* L_5 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000d;
}
}
{
EntryU5BU5D_t4095373256* L_6 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_7 = (int32_t)__this->get_count_2();
Array_Clear_m2231608178(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_6, (int32_t)0, (int32_t)L_7, /*hidden argument*/NULL);
__this->set_freeList_4((-1));
__this->set_count_2(0);
__this->set_freeCount_5(0);
int32_t L_8 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)));
}
IL_005a:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::ContainsKey(TKey)
extern "C" bool Dictionary_2_ContainsKey_m1634784766_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
NullCheck((Dictionary_2_t1024515101 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1024515101 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
return (bool)((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::ContainsValue(TValue)
extern "C" bool Dictionary_2_ContainsValue_m2594234548_gshared (Dictionary_2_t1024515101 * __this, uint32_t ___value0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
EqualityComparer_1_t2141848449 * V_1 = NULL;
int32_t V_2 = 0;
{
goto IL_0049;
}
{
V_0 = (int32_t)0;
goto IL_003e;
}
IL_000c:
{
EntryU5BU5D_t4095373256* L_1 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_2 = V_0;
NullCheck(L_1);
int32_t L_3 = (int32_t)((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->get_hashCode_0();
if ((((int32_t)L_3) < ((int32_t)0)))
{
goto IL_003a;
}
}
{
EntryU5BU5D_t4095373256* L_4 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
uint32_t L_6 = (uint32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
goto IL_003a;
}
{
return (bool)1;
}
IL_003a:
{
int32_t L_7 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_003e:
{
int32_t L_8 = V_0;
int32_t L_9 = (int32_t)__this->get_count_2();
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_000c;
}
}
{
goto IL_0090;
}
IL_0049:
{
EqualityComparer_1_t2141848449 * L_10 = (( EqualityComparer_1_t2141848449 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
V_1 = (EqualityComparer_1_t2141848449 *)L_10;
V_2 = (int32_t)0;
goto IL_0087;
}
IL_0053:
{
EntryU5BU5D_t4095373256* L_11 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_12 = V_2;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) < ((int32_t)0)))
{
goto IL_0083;
}
}
{
EqualityComparer_1_t2141848449 * L_14 = V_1;
EntryU5BU5D_t4095373256* L_15 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_16 = V_2;
NullCheck(L_15);
uint32_t L_17 = (uint32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_value_3();
uint32_t L_18 = ___value0;
NullCheck((EqualityComparer_1_t2141848449 *)L_14);
bool L_19 = VirtFuncInvoker2< bool, uint32_t, uint32_t >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::Equals(T,T) */, (EqualityComparer_1_t2141848449 *)L_14, (uint32_t)L_17, (uint32_t)L_18);
if (!L_19)
{
goto IL_0083;
}
}
{
return (bool)1;
}
IL_0083:
{
int32_t L_20 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
}
IL_0087:
{
int32_t L_21 = V_2;
int32_t L_22 = (int32_t)__this->get_count_2();
if ((((int32_t)L_21) < ((int32_t)L_22)))
{
goto IL_0053;
}
}
IL_0090:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_CopyTo_m2268151857_gshared (Dictionary_2_t1024515101 * __this, KeyValuePair_2U5BU5D_t3546644589* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_CopyTo_m2268151857_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t4095373256* V_1 = NULL;
int32_t V_2 = 0;
{
KeyValuePair_2U5BU5D_t3546644589* L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_CopyTo_m2268151857_RuntimeMethod_var);
}
IL_000e:
{
int32_t L_2 = ___index1;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0018;
}
}
{
int32_t L_3 = ___index1;
KeyValuePair_2U5BU5D_t3546644589* L_4 = ___array0;
NullCheck(L_4);
if ((((int32_t)L_3) <= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length)))))))
{
goto IL_002e;
}
}
IL_0018:
{
int32_t L_5 = ___index1;
int32_t L_6 = L_5;
RuntimeObject * L_7 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_6);
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_8, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_7, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, Dictionary_2_CopyTo_m2268151857_RuntimeMethod_var);
}
IL_002e:
{
KeyValuePair_2U5BU5D_t3546644589* L_9 = ___array0;
NullCheck(L_9);
int32_t L_10 = ___index1;
NullCheck((Dictionary_2_t1024515101 *)__this);
int32_t L_11 = (( int32_t (*) (Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_9)->max_length)))), (int32_t)L_10))) >= ((int32_t)L_11)))
{
goto IL_0046;
}
}
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_12, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_CopyTo_m2268151857_RuntimeMethod_var);
}
IL_0046:
{
int32_t L_13 = (int32_t)__this->get_count_2();
V_0 = (int32_t)L_13;
EntryU5BU5D_t4095373256* L_14 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
V_1 = (EntryU5BU5D_t4095373256*)L_14;
V_2 = (int32_t)0;
goto IL_0094;
}
IL_0058:
{
EntryU5BU5D_t4095373256* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_0090;
}
}
{
KeyValuePair_2U5BU5D_t3546644589* L_18 = ___array0;
int32_t L_19 = ___index1;
int32_t L_20 = (int32_t)L_19;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
EntryU5BU5D_t4095373256* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
RuntimeObject * L_23 = (RuntimeObject *)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_key_2();
EntryU5BU5D_t4095373256* L_24 = V_1;
int32_t L_25 = V_2;
NullCheck(L_24);
uint32_t L_26 = (uint32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_value_3();
KeyValuePair_2_t3422187268 L_27;
memset(&L_27, 0, sizeof(L_27));
KeyValuePair_2__ctor_m540400546((&L_27), (RuntimeObject *)L_23, (uint32_t)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
NullCheck(L_18);
(L_18)->SetAt(static_cast<il2cpp_array_size_t>(L_20), (KeyValuePair_2_t3422187268 )L_27);
}
IL_0090:
{
int32_t L_28 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_0094:
{
int32_t L_29 = V_2;
int32_t L_30 = V_0;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0058;
}
}
{
return;
}
}
// System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::GetEnumerator()
extern "C" Enumerator_t2978697876 Dictionary_2_GetEnumerator_m841883306_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
Enumerator_t2978697876 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2292953930((&L_0), (Dictionary_2_t1024515101 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
return L_0;
}
}
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m275815526_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
Enumerator_t2978697876 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2292953930((&L_0), (Dictionary_2_t1024515101 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t2978697876 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2_GetObjectData_m2052410966_gshared (Dictionary_2_t1024515101 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_GetObjectData_m2052410966_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t3546644589* V_0 = NULL;
String_t* G_B4_0 = NULL;
SerializationInfo_t950877179 * G_B4_1 = NULL;
String_t* G_B3_0 = NULL;
SerializationInfo_t950877179 * G_B3_1 = NULL;
int32_t G_B5_0 = 0;
String_t* G_B5_1 = NULL;
SerializationInfo_t950877179 * G_B5_2 = NULL;
{
SerializationInfo_t950877179 * L_0 = ___info0;
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, (String_t*)_stringLiteral79347, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_GetObjectData_m2052410966_RuntimeMethod_var);
}
IL_000e:
{
SerializationInfo_t950877179 * L_2 = ___info0;
int32_t L_3 = (int32_t)__this->get_version_3();
NullCheck((SerializationInfo_t950877179 *)L_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, (int32_t)L_3, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_4 = ___info0;
RuntimeObject* L_5 = (RuntimeObject*)__this->get_comparer_6();
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_4);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral892943380, (RuntimeObject *)L_5, (Type_t *)L_7, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_8 = ___info0;
Int32U5BU5D_t385246372* L_9 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
G_B3_0 = _stringLiteral953796230;
G_B3_1 = L_8;
if (!L_9)
{
G_B4_0 = _stringLiteral953796230;
G_B4_1 = L_8;
goto IL_0052;
}
}
{
Int32U5BU5D_t385246372* L_10 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_10);
G_B5_0 = (((int32_t)((int32_t)(((RuntimeArray *)L_10)->max_length))));
G_B5_1 = G_B3_0;
G_B5_2 = G_B3_1;
goto IL_0053;
}
IL_0052:
{
G_B5_0 = 0;
G_B5_1 = G_B4_0;
G_B5_2 = G_B4_1;
}
IL_0053:
{
NullCheck((SerializationInfo_t950877179 *)G_B5_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)G_B5_2, (String_t*)G_B5_1, (int32_t)G_B5_0, /*hidden argument*/NULL);
Int32U5BU5D_t385246372* L_11 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_11)
{
goto IL_008a;
}
}
{
NullCheck((Dictionary_2_t1024515101 *)__this);
int32_t L_12 = (( int32_t (*) (Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
V_0 = (KeyValuePair_2U5BU5D_t3546644589*)((KeyValuePair_2U5BU5D_t3546644589*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 30), (uint32_t)L_12));
KeyValuePair_2U5BU5D_t3546644589* L_13 = V_0;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, KeyValuePair_2U5BU5D_t3546644589*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1024515101 *)__this, (KeyValuePair_2U5BU5D_t3546644589*)L_13, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
SerializationInfo_t950877179 * L_14 = ___info0;
KeyValuePair_2U5BU5D_t3546644589* L_15 = V_0;
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_16, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_14);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_14, (String_t*)_stringLiteral2947573650, (RuntimeObject *)(RuntimeObject *)L_15, (Type_t *)L_17, /*hidden argument*/NULL);
}
IL_008a:
{
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::FindEntry(TKey)
extern "C" int32_t Dictionary_2_FindEntry_m2571352939_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_FindEntry_m2571352939_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
RuntimeObject * L_0 = ___key0;
if (L_0)
{
goto IL_0013;
}
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_FindEntry_m2571352939_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_008d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
RuntimeObject * L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, RuntimeObject * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (RuntimeObject *)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
Int32U5BU5D_t385246372* L_6 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_7 = V_0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_8);
NullCheck(L_6);
int32_t L_9 = ((int32_t)((int32_t)L_7%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length))))));
int32_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = (int32_t)L_10;
goto IL_0089;
}
IL_0042:
{
EntryU5BU5D_t4095373256* L_11 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_12 = V_1;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
int32_t L_14 = V_0;
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
{
goto IL_0077;
}
}
{
RuntimeObject* L_15 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t4095373256* L_16 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_17 = V_1;
NullCheck(L_16);
RuntimeObject * L_18 = (RuntimeObject *)((L_16)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_17)))->get_key_2();
RuntimeObject * L_19 = ___key0;
NullCheck((RuntimeObject*)L_15);
bool L_20 = InterfaceFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_15, (RuntimeObject *)L_18, (RuntimeObject *)L_19);
if (!L_20)
{
goto IL_0077;
}
}
{
int32_t L_21 = V_1;
return L_21;
}
IL_0077:
{
EntryU5BU5D_t4095373256* L_22 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_23 = V_1;
NullCheck(L_22);
int32_t L_24 = (int32_t)((L_22)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_23)))->get_next_1();
V_1 = (int32_t)L_24;
}
IL_0089:
{
int32_t L_25 = V_1;
if ((((int32_t)L_25) >= ((int32_t)0)))
{
goto IL_0042;
}
}
IL_008d:
{
return (-1);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::Initialize(System.Int32)
extern "C" void Dictionary_2_Initialize_m7009819_gshared (Dictionary_2_t1024515101 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Initialize_m7009819_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
int32_t L_0 = ___capacity0;
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_GetPrime_m1056954278(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_2)));
V_1 = (int32_t)0;
goto IL_0024;
}
IL_0017:
{
Int32U5BU5D_t385246372* L_3 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_4 = V_1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (int32_t)(-1));
int32_t L_5 = V_1;
V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1));
}
IL_0024:
{
int32_t L_6 = V_1;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
if ((((int32_t)L_6) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length)))))))
{
goto IL_0017;
}
}
{
int32_t L_8 = V_0;
__this->set_entries_1(((EntryU5BU5D_t4095373256*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_8)));
__this->set_freeList_4((-1));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::TryInsert(TKey,TValue,System.Collections.Generic.InsertionBehavior)
extern "C" bool Dictionary_2_TryInsert_m4130874827_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, uint32_t ___value1, uint8_t ___behavior2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_TryInsert_m4130874827_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
{
RuntimeObject * L_0 = ___key0;
if (L_0)
{
goto IL_0013;
}
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_TryInsert_m4130874827_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (L_2)
{
goto IL_0022;
}
}
{
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t1024515101 *)__this, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_0022:
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
RuntimeObject * L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, RuntimeObject * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (RuntimeObject *)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_4 = (int32_t)L_11;
goto IL_00e1;
}
IL_0051:
{
EntryU5BU5D_t4095373256* L_12 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_13 = V_4;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_00c9;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t4095373256* L_17 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_18 = V_4;
NullCheck(L_17);
RuntimeObject * L_19 = (RuntimeObject *)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
RuntimeObject * L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (RuntimeObject *)L_19, (RuntimeObject *)L_20);
if (!L_21)
{
goto IL_00c9;
}
}
{
uint8_t L_22 = ___behavior2;
if ((!(((uint32_t)L_22) == ((uint32_t)1))))
{
goto IL_00ad;
}
}
{
EntryU5BU5D_t4095373256* L_23 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_24 = V_4;
NullCheck(L_23);
uint32_t L_25 = ___value1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_value_3(L_25);
int32_t L_26 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
return (bool)1;
}
IL_00ad:
{
uint8_t L_27 = ___behavior2;
if ((!(((uint32_t)L_27) == ((uint32_t)2))))
{
goto IL_00c7;
}
}
{
RuntimeObject * L_28 = ___key0;
String_t* L_29 = SR_Format_m1749913990(NULL /*static, unused*/, (String_t*)_stringLiteral1494472686, (RuntimeObject *)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, (String_t*)L_29, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_30, NULL, Dictionary_2_TryInsert_m4130874827_RuntimeMethod_var);
}
IL_00c7:
{
return (bool)0;
}
IL_00c9:
{
int32_t L_31 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_31, (int32_t)1));
EntryU5BU5D_t4095373256* L_32 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_33 = V_4;
NullCheck(L_32);
int32_t L_34 = (int32_t)((L_32)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_33)))->get_next_1();
V_4 = (int32_t)L_34;
}
IL_00e1:
{
int32_t L_35 = V_4;
if ((((int32_t)L_35) >= ((int32_t)0)))
{
goto IL_0051;
}
}
{
int32_t L_36 = (int32_t)__this->get_freeCount_5();
if ((((int32_t)L_36) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t L_37 = (int32_t)__this->get_freeList_4();
V_3 = (int32_t)L_37;
EntryU5BU5D_t4095373256* L_38 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
int32_t L_40 = (int32_t)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_next_1();
__this->set_freeList_4(L_40);
int32_t L_41 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_subtract((int32_t)L_41, (int32_t)1)));
goto IL_0156;
}
IL_0120:
{
int32_t L_42 = (int32_t)__this->get_count_2();
EntryU5BU5D_t4095373256* L_43 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
NullCheck(L_43);
if ((!(((uint32_t)L_42) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_43)->max_length))))))))
{
goto IL_0141;
}
}
{
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36)->methodPointer)((Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36));
int32_t L_44 = V_0;
Int32U5BU5D_t385246372* L_45 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_45);
V_1 = (int32_t)((int32_t)((int32_t)L_44%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_45)->max_length))))));
}
IL_0141:
{
int32_t L_46 = (int32_t)__this->get_count_2();
V_3 = (int32_t)L_46;
int32_t L_47 = (int32_t)__this->get_count_2();
__this->set_count_2(((int32_t)il2cpp_codegen_add((int32_t)L_47, (int32_t)1)));
}
IL_0156:
{
EntryU5BU5D_t4095373256* L_48 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = V_0;
((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->set_hashCode_0(L_50);
EntryU5BU5D_t4095373256* L_51 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_52 = V_3;
NullCheck(L_51);
Int32U5BU5D_t385246372* L_53 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_54 = V_1;
NullCheck(L_53);
int32_t L_55 = L_54;
int32_t L_56 = (L_53)->GetAt(static_cast<il2cpp_array_size_t>(L_55));
((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->set_next_1(L_56);
EntryU5BU5D_t4095373256* L_57 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_58 = V_3;
NullCheck(L_57);
RuntimeObject * L_59 = ___key0;
((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->set_key_2(L_59);
EntryU5BU5D_t4095373256* L_60 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_61 = V_3;
NullCheck(L_60);
uint32_t L_62 = ___value1;
((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->set_value_3(L_62);
Int32U5BU5D_t385246372* L_63 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_64 = V_1;
int32_t L_65 = V_3;
NullCheck(L_63);
(L_63)->SetAt(static_cast<il2cpp_array_size_t>(L_64), (int32_t)L_65);
int32_t L_66 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1)));
int32_t L_67 = V_2;
if ((((int32_t)L_67) <= ((int32_t)((int32_t)100))))
{
goto IL_01ed;
}
}
{
RuntimeObject* L_68 = (RuntimeObject*)__this->get_comparer_6();
if (!((NonRandomizedStringEqualityComparer_t1082005352 *)IsInst((RuntimeObject*)L_68, NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var)))
{
goto IL_01ed;
}
}
{
EqualityComparer_1_t17223025 * L_69 = EqualityComparer_1_get_Default_m2310016383(NULL /*static, unused*/, /*hidden argument*/EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_69, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
EntryU5BU5D_t4095373256* L_70 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
NullCheck(L_70);
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t1024515101 *)__this, (int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_70)->max_length)))), (bool)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
}
IL_01ed:
{
return (bool)1;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::OnDeserialization(System.Object)
extern "C" void Dictionary_2_OnDeserialization_m13719045_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___sender0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_OnDeserialization_m13719045_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SerializationInfo_t950877179 * V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
KeyValuePair_2U5BU5D_t3546644589* V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_TryGetValue_m1618998192((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 **)(SerializationInfo_t950877179 **)(&V_0), /*hidden argument*/ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var);
SerializationInfo_t950877179 * L_1 = V_0;
if (L_1)
{
goto IL_0012;
}
}
{
return;
}
IL_0012:
{
SerializationInfo_t950877179 * L_2 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_2);
int32_t L_3 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, /*hidden argument*/NULL);
V_1 = (int32_t)L_3;
SerializationInfo_t950877179 * L_4 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_4);
int32_t L_5 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral953796230, /*hidden argument*/NULL);
V_2 = (int32_t)L_5;
SerializationInfo_t950877179 * L_6 = V_0;
RuntimeTypeHandle_t3027515415 L_7 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_8 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_7, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_6);
RuntimeObject * L_9 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_6, (String_t*)_stringLiteral892943380, (Type_t *)L_8, /*hidden argument*/NULL);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_9, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
int32_t L_10 = V_2;
if (!L_10)
{
goto IL_010c;
}
}
{
int32_t L_11 = V_2;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_11)));
V_4 = (int32_t)0;
goto IL_0071;
}
IL_0061:
{
Int32U5BU5D_t385246372* L_12 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_13 = V_4;
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)(-1));
int32_t L_14 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0071:
{
int32_t L_15 = V_4;
Int32U5BU5D_t385246372* L_16 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0061;
}
}
{
int32_t L_17 = V_2;
__this->set_entries_1(((EntryU5BU5D_t4095373256*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_17)));
__this->set_freeList_4((-1));
SerializationInfo_t950877179 * L_18 = V_0;
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_19, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_18);
RuntimeObject * L_21 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_18, (String_t*)_stringLiteral2947573650, (Type_t *)L_20, /*hidden argument*/NULL);
V_3 = (KeyValuePair_2U5BU5D_t3546644589*)((KeyValuePair_2U5BU5D_t3546644589*)Castclass((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t3546644589* L_22 = V_3;
if (L_22)
{
goto IL_00b9;
}
}
{
SerializationException_t3941511869 * L_23 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_23, (String_t*)_stringLiteral998597917, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_23, NULL, Dictionary_2_OnDeserialization_m13719045_RuntimeMethod_var);
}
IL_00b9:
{
V_5 = (int32_t)0;
goto IL_0103;
}
IL_00be:
{
KeyValuePair_2U5BU5D_t3546644589* L_24 = V_3;
int32_t L_25 = V_5;
NullCheck(L_24);
RuntimeObject * L_26 = KeyValuePair_2_get_Key_m3802237574((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
if (L_26)
{
goto IL_00dd;
}
}
{
SerializationException_t3941511869 * L_27 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_27, (String_t*)_stringLiteral3616747365, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_27, NULL, Dictionary_2_OnDeserialization_m13719045_RuntimeMethod_var);
}
IL_00dd:
{
KeyValuePair_2U5BU5D_t3546644589* L_28 = V_3;
int32_t L_29 = V_5;
NullCheck(L_28);
RuntimeObject * L_30 = KeyValuePair_2_get_Key_m3802237574((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
KeyValuePair_2U5BU5D_t3546644589* L_31 = V_3;
int32_t L_32 = V_5;
NullCheck(L_31);
uint32_t L_33 = KeyValuePair_2_get_Value_m3608670336((KeyValuePair_2_t3422187268 *)(KeyValuePair_2_t3422187268 *)((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, RuntimeObject *, uint32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_30, (uint32_t)L_33, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
int32_t L_34 = V_5;
V_5 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_34, (int32_t)1));
}
IL_0103:
{
int32_t L_35 = V_5;
KeyValuePair_2U5BU5D_t3546644589* L_36 = V_3;
NullCheck(L_36);
if ((((int32_t)L_35) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_36)->max_length)))))))
{
goto IL_00be;
}
}
{
goto IL_0113;
}
IL_010c:
{
__this->set_buckets_0((Int32U5BU5D_t385246372*)NULL);
}
IL_0113:
{
int32_t L_37 = V_1;
__this->set_version_3(L_37);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_38 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_38);
ConditionalWeakTable_2_Remove_m2013031576((ConditionalWeakTable_2_t1452810305 *)L_38, (RuntimeObject *)__this, /*hidden argument*/ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::Resize()
extern "C" void Dictionary_2_Resize_m541411745_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m541411745_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = (int32_t)__this->get_count_2();
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_ExpandPrime_m2180508331(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t1024515101 *)__this, (int32_t)L_1, (bool)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::Resize(System.Int32,System.Boolean)
extern "C" void Dictionary_2_Resize_m1007642313_gshared (Dictionary_2_t1024515101 * __this, int32_t ___newSize0, bool ___forceNewHashCodes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m1007642313_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Int32U5BU5D_t385246372* V_0 = NULL;
EntryU5BU5D_t4095373256* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t L_0 = ___newSize0;
V_0 = (Int32U5BU5D_t385246372*)((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_0));
V_2 = (int32_t)0;
goto IL_0013;
}
IL_000b:
{
Int32U5BU5D_t385246372* L_1 = V_0;
int32_t L_2 = V_2;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_0013:
{
int32_t L_4 = V_2;
Int32U5BU5D_t385246372* L_5 = V_0;
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000b;
}
}
{
int32_t L_6 = ___newSize0;
V_1 = (EntryU5BU5D_t4095373256*)((EntryU5BU5D_t4095373256*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_6));
EntryU5BU5D_t4095373256* L_7 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
EntryU5BU5D_t4095373256* L_8 = V_1;
int32_t L_9 = (int32_t)__this->get_count_2();
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_7, (int32_t)0, (RuntimeArray *)(RuntimeArray *)L_8, (int32_t)0, (int32_t)L_9, /*hidden argument*/NULL);
bool L_10 = ___forceNewHashCodes1;
if (!L_10)
{
goto IL_0080;
}
}
{
V_3 = (int32_t)0;
goto IL_0077;
}
IL_003b:
{
EntryU5BU5D_t4095373256* L_11 = V_1;
int32_t L_12 = V_3;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) == ((int32_t)(-1))))
{
goto IL_0073;
}
}
{
EntryU5BU5D_t4095373256* L_14 = V_1;
int32_t L_15 = V_3;
NullCheck(L_14);
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t4095373256* L_17 = V_1;
int32_t L_18 = V_3;
NullCheck(L_17);
RuntimeObject * L_19 = (RuntimeObject *)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
NullCheck((RuntimeObject*)L_16);
int32_t L_20 = InterfaceFuncInvoker1< int32_t, RuntimeObject * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (RuntimeObject *)L_19);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->set_hashCode_0(((int32_t)((int32_t)L_20&(int32_t)((int32_t)2147483647LL))));
}
IL_0073:
{
int32_t L_21 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1));
}
IL_0077:
{
int32_t L_22 = V_3;
int32_t L_23 = (int32_t)__this->get_count_2();
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_003b;
}
}
IL_0080:
{
V_4 = (int32_t)0;
goto IL_00c3;
}
IL_0085:
{
EntryU5BU5D_t4095373256* L_24 = V_1;
int32_t L_25 = V_4;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_hashCode_0();
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00bd;
}
}
{
EntryU5BU5D_t4095373256* L_27 = V_1;
int32_t L_28 = V_4;
NullCheck(L_27);
int32_t L_29 = (int32_t)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->get_hashCode_0();
int32_t L_30 = ___newSize0;
V_5 = (int32_t)((int32_t)((int32_t)L_29%(int32_t)L_30));
EntryU5BU5D_t4095373256* L_31 = V_1;
int32_t L_32 = V_4;
NullCheck(L_31);
Int32U5BU5D_t385246372* L_33 = V_0;
int32_t L_34 = V_5;
NullCheck(L_33);
int32_t L_35 = L_34;
int32_t L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32)))->set_next_1(L_36);
Int32U5BU5D_t385246372* L_37 = V_0;
int32_t L_38 = V_5;
int32_t L_39 = V_4;
NullCheck(L_37);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(L_38), (int32_t)L_39);
}
IL_00bd:
{
int32_t L_40 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
}
IL_00c3:
{
int32_t L_41 = V_4;
int32_t L_42 = (int32_t)__this->get_count_2();
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_0085;
}
}
{
Int32U5BU5D_t385246372* L_43 = V_0;
__this->set_buckets_0(L_43);
EntryU5BU5D_t4095373256* L_44 = V_1;
__this->set_entries_1(L_44);
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::Remove(TKey)
extern "C" bool Dictionary_2_Remove_m3647470246_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Remove_m3647470246_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
RuntimeObject * L_0 = ___key0;
if (L_0)
{
goto IL_0013;
}
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_Remove_m3647470246_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_015d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
RuntimeObject * L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, RuntimeObject * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (RuntimeObject *)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)(-1);
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_3 = (int32_t)L_11;
goto IL_0156;
}
IL_004c:
{
EntryU5BU5D_t4095373256* L_12 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_13 = V_3;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0142;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t4095373256* L_17 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_18 = V_3;
NullCheck(L_17);
RuntimeObject * L_19 = (RuntimeObject *)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
RuntimeObject * L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (RuntimeObject *)L_19, (RuntimeObject *)L_20);
if (!L_21)
{
goto IL_0142;
}
}
{
int32_t L_22 = V_2;
if ((((int32_t)L_22) >= ((int32_t)0)))
{
goto IL_00a4;
}
}
{
Int32U5BU5D_t385246372* L_23 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_24 = V_1;
EntryU5BU5D_t4095373256* L_25 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_26 = V_3;
NullCheck(L_25);
int32_t L_27 = (int32_t)((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->get_next_1();
NullCheck(L_23);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(L_24), (int32_t)L_27);
goto IL_00c6;
}
IL_00a4:
{
EntryU5BU5D_t4095373256* L_28 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_29 = V_2;
NullCheck(L_28);
EntryU5BU5D_t4095373256* L_30 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_31 = V_3;
NullCheck(L_30);
int32_t L_32 = (int32_t)((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->get_next_1();
((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->set_next_1(L_32);
}
IL_00c6:
{
EntryU5BU5D_t4095373256* L_33 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_34 = V_3;
NullCheck(L_33);
((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->set_hashCode_0((-1));
EntryU5BU5D_t4095373256* L_35 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_36 = V_3;
NullCheck(L_35);
int32_t L_37 = (int32_t)__this->get_freeList_4();
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->set_next_1(L_37);
EntryU5BU5D_t4095373256* L_38 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
RuntimeObject ** L_40 = (RuntimeObject **)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_address_of_key_2();
il2cpp_codegen_initobj(L_40, sizeof(RuntimeObject *));
EntryU5BU5D_t4095373256* L_41 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_42 = V_3;
NullCheck(L_41);
uint32_t* L_43 = (uint32_t*)((L_41)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_42)))->get_address_of_value_3();
il2cpp_codegen_initobj(L_43, sizeof(uint32_t));
int32_t L_44 = V_3;
__this->set_freeList_4(L_44);
int32_t L_45 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1)));
int32_t L_46 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1)));
return (bool)1;
}
IL_0142:
{
int32_t L_47 = V_3;
V_2 = (int32_t)L_47;
EntryU5BU5D_t4095373256* L_48 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = (int32_t)((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->get_next_1();
V_3 = (int32_t)L_50;
}
IL_0156:
{
int32_t L_51 = V_3;
if ((((int32_t)L_51) >= ((int32_t)0)))
{
goto IL_004c;
}
}
IL_015d:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::TryGetValue(TKey,TValue&)
extern "C" bool Dictionary_2_TryGetValue_m961427605_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, uint32_t* ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
NullCheck((Dictionary_2_t1024515101 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1024515101 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0025;
}
}
{
uint32_t* L_3 = ___value1;
EntryU5BU5D_t4095373256* L_4 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
uint32_t L_6 = (uint32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
*(uint32_t*)L_3 = L_6;
return (bool)1;
}
IL_0025:
{
uint32_t* L_7 = ___value1;
il2cpp_codegen_initobj(L_7, sizeof(uint32_t));
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::TryAdd(TKey,TValue)
extern "C" bool Dictionary_2_TryAdd_m3540442697_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, uint32_t ___value1, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
uint32_t L_1 = ___value1;
NullCheck((Dictionary_2_t1024515101 *)__this);
bool L_2 = (( bool (*) (Dictionary_2_t1024515101 *, RuntimeObject *, uint32_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_0, (uint32_t)L_1, (uint8_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m478680398_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m2637044862_gshared (Dictionary_2_t1024515101 * __this, KeyValuePair_2U5BU5D_t3546644589* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
{
KeyValuePair_2U5BU5D_t3546644589* L_0 = ___array0;
int32_t L_1 = ___index1;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, KeyValuePair_2U5BU5D_t3546644589*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1024515101 *)__this, (KeyValuePair_2U5BU5D_t3546644589*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.ICollection.CopyTo(System.Array,System.Int32)
extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_gshared (Dictionary_2_t1024515101 * __this, RuntimeArray * ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t3546644589* V_0 = NULL;
DictionaryEntryU5BU5D_t4217117203* V_1 = NULL;
EntryU5BU5D_t4095373256* V_2 = NULL;
int32_t V_3 = 0;
ObjectU5BU5D_t2843939325* V_4 = NULL;
int32_t V_5 = 0;
EntryU5BU5D_t4095373256* V_6 = NULL;
int32_t V_7 = 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);
{
RuntimeArray * L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_RuntimeMethod_var);
}
IL_000e:
{
RuntimeArray * L_2 = ___array0;
NullCheck((RuntimeArray *)L_2);
int32_t L_3 = Array_get_Rank_m3448755881((RuntimeArray *)L_2, /*hidden argument*/NULL);
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0027;
}
}
{
ArgumentException_t132251570 * L_4 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_4, (String_t*)_stringLiteral915403387, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_RuntimeMethod_var);
}
IL_0027:
{
RuntimeArray * L_5 = ___array0;
NullCheck((RuntimeArray *)L_5);
int32_t L_6 = Array_GetLowerBound_m2045984623((RuntimeArray *)L_5, (int32_t)0, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0040;
}
}
{
ArgumentException_t132251570 * L_7 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_7, (String_t*)_stringLiteral2590862907, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_RuntimeMethod_var);
}
IL_0040:
{
int32_t L_8 = ___index1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_004d;
}
}
{
int32_t L_9 = ___index1;
RuntimeArray * L_10 = ___array0;
NullCheck((RuntimeArray *)L_10);
int32_t L_11 = Array_get_Length_m21610649((RuntimeArray *)L_10, /*hidden argument*/NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0063;
}
}
IL_004d:
{
int32_t L_12 = ___index1;
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_13);
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_15, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_14, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_RuntimeMethod_var);
}
IL_0063:
{
RuntimeArray * L_16 = ___array0;
NullCheck((RuntimeArray *)L_16);
int32_t L_17 = Array_get_Length_m21610649((RuntimeArray *)L_16, /*hidden argument*/NULL);
int32_t L_18 = ___index1;
NullCheck((Dictionary_2_t1024515101 *)__this);
int32_t L_19 = (( int32_t (*) (Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)L_18))) >= ((int32_t)L_19)))
{
goto IL_007e;
}
}
{
ArgumentException_t132251570 * L_20 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_20, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_20, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_RuntimeMethod_var);
}
IL_007e:
{
RuntimeArray * L_21 = ___array0;
V_0 = (KeyValuePair_2U5BU5D_t3546644589*)((KeyValuePair_2U5BU5D_t3546644589*)IsInst((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t3546644589* L_22 = V_0;
if (!L_22)
{
goto IL_0091;
}
}
{
KeyValuePair_2U5BU5D_t3546644589* L_23 = V_0;
int32_t L_24 = ___index1;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, KeyValuePair_2U5BU5D_t3546644589*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1024515101 *)__this, (KeyValuePair_2U5BU5D_t3546644589*)L_23, (int32_t)L_24, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
IL_0091:
{
RuntimeArray * L_25 = ___array0;
if (!((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_25, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var)))
{
goto IL_00fb;
}
}
{
RuntimeArray * L_26 = ___array0;
V_1 = (DictionaryEntryU5BU5D_t4217117203*)((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_26, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var));
EntryU5BU5D_t4095373256* L_27 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
V_2 = (EntryU5BU5D_t4095373256*)L_27;
V_3 = (int32_t)0;
goto IL_00f1;
}
IL_00ab:
{
EntryU5BU5D_t4095373256* L_28 = V_2;
int32_t L_29 = V_3;
NullCheck(L_28);
int32_t L_30 = (int32_t)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->get_hashCode_0();
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_00ed;
}
}
{
DictionaryEntryU5BU5D_t4217117203* L_31 = V_1;
int32_t L_32 = ___index1;
int32_t L_33 = (int32_t)L_32;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t4095373256* L_34 = V_2;
int32_t L_35 = V_3;
NullCheck(L_34);
RuntimeObject * L_36 = (RuntimeObject *)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_key_2();
EntryU5BU5D_t4095373256* L_37 = V_2;
int32_t L_38 = V_3;
NullCheck(L_37);
uint32_t L_39 = (uint32_t)((L_37)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_38)))->get_value_3();
uint32_t L_40 = L_39;
RuntimeObject * L_41 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23), &L_40);
DictionaryEntry_t3123975638 L_42;
memset(&L_42, 0, sizeof(L_42));
DictionaryEntry__ctor_m2585376310((&L_42), (RuntimeObject *)L_36, (RuntimeObject *)L_41, /*hidden argument*/NULL);
NullCheck(L_31);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (DictionaryEntry_t3123975638 )L_42);
}
IL_00ed:
{
int32_t L_43 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_43, (int32_t)1));
}
IL_00f1:
{
int32_t L_44 = V_3;
int32_t L_45 = (int32_t)__this->get_count_2();
if ((((int32_t)L_44) < ((int32_t)L_45)))
{
goto IL_00ab;
}
}
{
return;
}
IL_00fb:
{
RuntimeArray * L_46 = ___array0;
V_4 = (ObjectU5BU5D_t2843939325*)((ObjectU5BU5D_t2843939325*)IsInst((RuntimeObject*)L_46, ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var));
ObjectU5BU5D_t2843939325* L_47 = V_4;
if (L_47)
{
goto IL_0117;
}
}
{
ArgumentException_t132251570 * L_48 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_48, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_48, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_RuntimeMethod_var);
}
IL_0117:
{
}
IL_0118:
try
{ // begin try (depth: 1)
{
int32_t L_49 = (int32_t)__this->get_count_2();
V_5 = (int32_t)L_49;
EntryU5BU5D_t4095373256* L_50 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
V_6 = (EntryU5BU5D_t4095373256*)L_50;
V_7 = (int32_t)0;
goto IL_0173;
}
IL_012d:
{
EntryU5BU5D_t4095373256* L_51 = V_6;
int32_t L_52 = V_7;
NullCheck(L_51);
int32_t L_53 = (int32_t)((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->get_hashCode_0();
if ((((int32_t)L_53) < ((int32_t)0)))
{
goto IL_016d;
}
}
IL_013e:
{
ObjectU5BU5D_t2843939325* L_54 = V_4;
int32_t L_55 = ___index1;
int32_t L_56 = (int32_t)L_55;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_56, (int32_t)1));
EntryU5BU5D_t4095373256* L_57 = V_6;
int32_t L_58 = V_7;
NullCheck(L_57);
RuntimeObject * L_59 = (RuntimeObject *)((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->get_key_2();
EntryU5BU5D_t4095373256* L_60 = V_6;
int32_t L_61 = V_7;
NullCheck(L_60);
uint32_t L_62 = (uint32_t)((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->get_value_3();
KeyValuePair_2_t3422187268 L_63;
memset(&L_63, 0, sizeof(L_63));
KeyValuePair_2__ctor_m540400546((&L_63), (RuntimeObject *)L_59, (uint32_t)L_62, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
KeyValuePair_2_t3422187268 L_64 = L_63;
RuntimeObject * L_65 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 25), &L_64);
NullCheck(L_54);
ArrayElementTypeCheck (L_54, L_65);
(L_54)->SetAt(static_cast<il2cpp_array_size_t>(L_56), (RuntimeObject *)L_65);
}
IL_016d:
{
int32_t L_66 = V_7;
V_7 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1));
}
IL_0173:
{
int32_t L_67 = V_7;
int32_t L_68 = V_5;
if ((((int32_t)L_67) < ((int32_t)L_68)))
{
goto IL_012d;
}
}
IL_0179:
{
goto IL_018c;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_017b;
throw e;
}
CATCH_017b:
{ // begin catch(System.ArrayTypeMismatchException)
ArgumentException_t132251570 * L_69 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_69, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_69, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1088112922_RuntimeMethod_var);
} // end catch (depth: 1)
IL_018c:
{
return;
}
}
// System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IEnumerable.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m2002893334_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
Enumerator_t2978697876 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2292953930((&L_0), (Dictionary_2_t1024515101 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t2978697876 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.ICollection.get_IsSynchronized()
extern "C" bool Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m497360140_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.ICollection.get_SyncRoot()
extern "C" RuntimeObject * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3450894714_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3450894714_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get__syncRoot_9();
if (L_0)
{
goto IL_001a;
}
}
{
RuntimeObject ** L_1 = (RuntimeObject **)__this->get_address_of__syncRoot_9();
RuntimeObject * L_2 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_2, /*hidden argument*/NULL);
InterlockedCompareExchangeImpl<RuntimeObject *>((RuntimeObject **)(RuntimeObject **)L_1, (RuntimeObject *)L_2, (RuntimeObject *)NULL);
}
IL_001a:
{
RuntimeObject * L_3 = (RuntimeObject *)__this->get__syncRoot_9();
return L_3;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IDictionary.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_IDictionary_get_IsReadOnly_m1782800915_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IDictionary.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Keys_m2964468479_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1024515101 *)__this);
KeyCollection_t1214190572 * L_0 = (( KeyCollection_t1214190572 * (*) (Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39)->methodPointer)((Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39));
return L_0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IDictionary.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Values_m1289360935_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1024515101 *)__this);
ValueCollection_t2740559419 * L_0 = (( ValueCollection_t2740559419 * (*) (Dictionary_2_t1024515101 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40)->methodPointer)((Dictionary_2_t1024515101 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40));
return L_0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IDictionary.get_Item(System.Object)
extern "C" RuntimeObject * Dictionary_2_System_Collections_IDictionary_get_Item_m236861310_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0030;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1024515101 *)__this);
int32_t L_3 = (( int32_t (*) (Dictionary_2_t1024515101 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_3;
int32_t L_4 = V_0;
if ((((int32_t)L_4) < ((int32_t)0)))
{
goto IL_0030;
}
}
{
EntryU5BU5D_t4095373256* L_5 = (EntryU5BU5D_t4095373256*)__this->get_entries_1();
int32_t L_6 = V_0;
NullCheck(L_5);
uint32_t L_7 = (uint32_t)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->get_value_3();
uint32_t L_8 = L_7;
RuntimeObject * L_9 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23), &L_8);
return L_9;
}
IL_0030:
{
return NULL;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IDictionary.set_Item(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m447147044_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_set_Item_m447147044_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
uint32_t V_0 = 0;
RuntimeObject * V_1 = 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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m447147044_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(uint32_t));
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m447147044_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)));
}
IL_0034:
try
{ // begin try (depth: 2)
RuntimeObject * L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, RuntimeObject *, uint32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_6, (uint32_t)((*(uint32_t*)((uint32_t*)UnBox(L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m447147044_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m447147044_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::IsCompatibleKey(System.Object)
extern "C" bool Dictionary_2_IsCompatibleKey_m2220311618_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_IsCompatibleKey_m2220311618_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_IsCompatibleKey_m2220311618_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___key0;
return (bool)((!(((RuntimeObject*)(RuntimeObject *)((RuntimeObject *)IsInst((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 33)))) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IDictionary.Add(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m4121866365_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_Add_m4121866365_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
uint32_t V_0 = 0;
RuntimeObject * V_1 = 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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_Add_m4121866365_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(uint32_t));
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_Add_m4121866365_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)));
}
IL_0034:
try
{ // begin try (depth: 2)
RuntimeObject * L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( void (*) (Dictionary_2_t1024515101 *, RuntimeObject *, uint32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)L_6, (uint32_t)((*(uint32_t*)((uint32_t*)UnBox(L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_Add_m4121866365_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_Add_m4121866365_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IDictionary.Contains(System.Object)
extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m2806233297_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1024515101 *)__this);
bool L_3 = (( bool (*) (Dictionary_2_t1024515101 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46));
return L_3;
}
IL_0015:
{
return (bool)0;
}
}
// System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IDictionary.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_GetEnumerator_m241059970_gshared (Dictionary_2_t1024515101 * __this, const RuntimeMethod* method)
{
{
Enumerator_t2978697876 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2292953930((&L_0), (Dictionary_2_t1024515101 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t2978697876 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Microsoft.CSharp.RuntimeBinder.Syntax.PredefinedType>::System.Collections.IDictionary.Remove(System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m1975596760_gshared (Dictionary_2_t1024515101 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1024515101 *)__this);
(( bool (*) (Dictionary_2_t1024515101 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t1024515101 *)__this, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
}
IL_0015:
{
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 System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::.ctor()
extern "C" void Dictionary_2__ctor_m574187291_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1688192864 *)__this, (int32_t)0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::.ctor(System.Int32)
extern "C" void Dictionary_2__ctor_m406212992_gshared (Dictionary_2_t1688192864 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___capacity0;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1688192864 *)__this, (int32_t)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m3660169123_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject* ___comparer0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___comparer0;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1688192864 *)__this, (int32_t)0, (RuntimeObject*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::.ctor(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m4261469336_gshared (Dictionary_2_t1688192864 * __this, int32_t ___capacity0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m4261469336_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* G_B6_0 = NULL;
Dictionary_2_t1688192864 * G_B6_1 = NULL;
RuntimeObject* G_B5_0 = NULL;
Dictionary_2_t1688192864 * G_B5_1 = NULL;
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
int32_t L_0 = ___capacity0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0020;
}
}
{
int32_t L_1 = ___capacity0;
int32_t L_2 = L_1;
RuntimeObject * L_3 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_2);
ArgumentOutOfRangeException_t777629997 * L_4 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_4, (String_t*)_stringLiteral3623012086, (RuntimeObject *)L_3, (String_t*)_stringLiteral2892689725, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2__ctor_m4261469336_RuntimeMethod_var);
}
IL_0020:
{
int32_t L_5 = ___capacity0;
if ((((int32_t)L_5) <= ((int32_t)0)))
{
goto IL_002b;
}
}
{
int32_t L_6 = ___capacity0;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t1688192864 *)__this, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_002b:
{
RuntimeObject* L_7 = ___comparer1;
RuntimeObject* L_8 = (RuntimeObject*)L_7;
G_B5_0 = L_8;
G_B5_1 = ((Dictionary_2_t1688192864 *)(__this));
if (L_8)
{
G_B6_0 = L_8;
G_B6_1 = ((Dictionary_2_t1688192864 *)(__this));
goto IL_0036;
}
}
{
EqualityComparer_1_t1249878500 * L_9 = (( EqualityComparer_1_t1249878500 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 2));
G_B6_0 = ((RuntimeObject*)(L_9));
G_B6_1 = ((Dictionary_2_t1688192864 *)(G_B5_1));
}
IL_0036:
{
NullCheck(G_B6_1);
G_B6_1->set_comparer_6(G_B6_0);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>)
extern "C" void Dictionary_2__ctor_m1300131110_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___dictionary0;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject*)L_0, (RuntimeObject*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 4));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>)
extern "C" void Dictionary_2__ctor_m1508002019_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject* ___dictionary0, RuntimeObject* ___comparer1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m1508002019_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t1336678425* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
KeyValuePair_2_t4085865031 V_4;
memset(&V_4, 0, sizeof(V_4));
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);
Dictionary_2_t1688192864 * G_B2_0 = NULL;
Dictionary_2_t1688192864 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
Dictionary_2_t1688192864 * G_B3_1 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
G_B1_0 = ((Dictionary_2_t1688192864 *)(__this));
if (L_0)
{
G_B2_0 = ((Dictionary_2_t1688192864 *)(__this));
goto IL_0007;
}
}
{
G_B3_0 = 0;
G_B3_1 = ((Dictionary_2_t1688192864 *)(G_B1_0));
goto IL_000d;
}
IL_0007:
{
RuntimeObject* L_1 = ___dictionary0;
NullCheck((RuntimeObject*)L_1);
int32_t L_2 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>>::get_Count() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 5), (RuntimeObject*)L_1);
G_B3_0 = L_2;
G_B3_1 = ((Dictionary_2_t1688192864 *)(G_B2_0));
}
IL_000d:
{
RuntimeObject* L_3 = ___comparer1;
NullCheck((Dictionary_2_t1688192864 *)G_B3_1);
(( void (*) (Dictionary_2_t1688192864 *, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((Dictionary_2_t1688192864 *)G_B3_1, (int32_t)G_B3_0, (RuntimeObject*)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
RuntimeObject* L_4 = ___dictionary0;
if (L_4)
{
goto IL_0021;
}
}
{
ArgumentNullException_t1615371798 * L_5 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_5, (String_t*)_stringLiteral2957729587, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, Dictionary_2__ctor_m1508002019_RuntimeMethod_var);
}
IL_0021:
{
RuntimeObject* L_6 = ___dictionary0;
NullCheck((RuntimeObject *)L_6);
Type_t * L_7 = Object_GetType_m88164663((RuntimeObject *)L_6, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_8 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 6)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_9 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_8, /*hidden argument*/NULL);
bool L_10 = Type_op_Equality_m2683486427(NULL /*static, unused*/, (Type_t *)L_7, (Type_t *)L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0085;
}
}
{
RuntimeObject* L_11 = ___dictionary0;
Dictionary_2_t1688192864 * L_12 = (Dictionary_2_t1688192864 *)((Dictionary_2_t1688192864 *)Castclass((RuntimeObject*)L_11, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 7)));
NullCheck(L_12);
int32_t L_13 = (int32_t)L_12->get_count_2();
V_0 = (int32_t)L_13;
NullCheck(L_12);
EntryU5BU5D_t1336678425* L_14 = (EntryU5BU5D_t1336678425*)L_12->get_entries_1();
V_1 = (EntryU5BU5D_t1336678425*)L_14;
V_2 = (int32_t)0;
goto IL_0080;
}
IL_004f:
{
EntryU5BU5D_t1336678425* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007c;
}
}
{
EntryU5BU5D_t1336678425* L_18 = V_1;
int32_t L_19 = V_2;
NullCheck(L_18);
RuntimeObject * L_20 = (RuntimeObject *)((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->get_key_2();
EntryU5BU5D_t1336678425* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
int32_t L_23 = (int32_t)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_value_3();
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_20, (int32_t)L_23, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_007c:
{
int32_t L_24 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0080:
{
int32_t L_25 = V_2;
int32_t L_26 = V_0;
if ((((int32_t)L_25) < ((int32_t)L_26)))
{
goto IL_004f;
}
}
{
return;
}
IL_0085:
{
RuntimeObject* L_27 = ___dictionary0;
NullCheck((RuntimeObject*)L_27);
RuntimeObject* L_28 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 9), (RuntimeObject*)L_27);
V_3 = (RuntimeObject*)L_28;
}
IL_008c:
try
{ // begin try (depth: 1)
{
goto IL_00aa;
}
IL_008e:
{
RuntimeObject* L_29 = V_3;
NullCheck((RuntimeObject*)L_29);
KeyValuePair_2_t4085865031 L_30 = InterfaceFuncInvoker0< KeyValuePair_2_t4085865031 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,Newtonsoft.Json.ReadType>>::get_Current() */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 10), (RuntimeObject*)L_29);
V_4 = (KeyValuePair_2_t4085865031 )L_30;
RuntimeObject * L_31 = KeyValuePair_2_get_Key_m2837550314((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
int32_t L_32 = KeyValuePair_2_get_Value_m1430811576((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)(&V_4), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_31, (int32_t)L_32, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
}
IL_00aa:
{
RuntimeObject* L_33 = V_3;
NullCheck((RuntimeObject*)L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, (RuntimeObject*)L_33);
if (L_34)
{
goto IL_008e;
}
}
IL_00b2:
{
IL2CPP_LEAVE(0xBE, FINALLY_00b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b4;
}
FINALLY_00b4:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_3;
if (!L_35)
{
goto IL_00bd;
}
}
IL_00b7:
{
RuntimeObject* L_36 = V_3;
NullCheck((RuntimeObject*)L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, (RuntimeObject*)L_36);
}
IL_00bd:
{
IL2CPP_END_FINALLY(180)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(180)
{
IL2CPP_JUMP_TBL(0xBE, IL_00be)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00be:
{
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2__ctor_m1178323843_gshared (Dictionary_2_t1688192864 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2__ctor_m1178323843_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NullCheck((RuntimeObject *)__this);
Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_1 = ___info0;
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_Add_m4098691448((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 *)L_1, /*hidden argument*/ConditionalWeakTable_2_Add_m4098691448_RuntimeMethod_var);
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::get_Count()
extern "C" int32_t Dictionary_2_get_Count_m4244339239_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_count_2();
int32_t L_1 = (int32_t)__this->get_freeCount_5();
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1));
}
}
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::get_Keys()
extern "C" KeyCollection_t1877868335 * Dictionary_2_get_Keys_m930321506_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t1877868335 * L_0 = (KeyCollection_t1877868335 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t1877868335 * L_1 = (KeyCollection_t1877868335 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t1877868335 *, Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t1877868335 * L_2 = (KeyCollection_t1877868335 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m2703354173_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t1877868335 * L_0 = (KeyCollection_t1877868335 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t1877868335 * L_1 = (KeyCollection_t1877868335 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t1877868335 *, Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t1877868335 * L_2 = (KeyCollection_t1877868335 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TKey> System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Keys_m2287641127_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
KeyCollection_t1877868335 * L_0 = (KeyCollection_t1877868335 *)__this->get_keys_7();
if (L_0)
{
goto IL_0014;
}
}
{
KeyCollection_t1877868335 * L_1 = (KeyCollection_t1877868335 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 13));
(( void (*) (KeyCollection_t1877868335 *, Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14)->methodPointer)(L_1, (Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 14));
__this->set_keys_7(L_1);
}
IL_0014:
{
KeyCollection_t1877868335 * L_2 = (KeyCollection_t1877868335 *)__this->get_keys_7();
return L_2;
}
}
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::get_Values()
extern "C" ValueCollection_t3404237182 * Dictionary_2_get_Values_m3112705097_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3404237182 * L_0 = (ValueCollection_t3404237182 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3404237182 * L_1 = (ValueCollection_t3404237182 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3404237182 *, Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3404237182 * L_2 = (ValueCollection_t3404237182 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m2599816115_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3404237182 * L_0 = (ValueCollection_t3404237182 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3404237182 * L_1 = (ValueCollection_t3404237182 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3404237182 *, Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3404237182 * L_2 = (ValueCollection_t3404237182 *)__this->get_values_8();
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<TValue> System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IReadOnlyDictionaryU3CTKeyU2CTValueU3E_get_Values_m2412009131_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
ValueCollection_t3404237182 * L_0 = (ValueCollection_t3404237182 *)__this->get_values_8();
if (L_0)
{
goto IL_0014;
}
}
{
ValueCollection_t3404237182 * L_1 = (ValueCollection_t3404237182 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 15));
(( void (*) (ValueCollection_t3404237182 *, Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16)->methodPointer)(L_1, (Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 16));
__this->set_values_8(L_1);
}
IL_0014:
{
ValueCollection_t3404237182 * L_2 = (ValueCollection_t3404237182 *)__this->get_values_8();
return L_2;
}
}
// TValue System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::get_Item(TKey)
extern "C" int32_t Dictionary_2_get_Item_m1441595193_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_get_Item_m1441595193_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
NullCheck((Dictionary_2_t1688192864 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1688192864 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_001e;
}
}
{
EntryU5BU5D_t1336678425* L_3 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_4 = V_0;
NullCheck(L_3);
int32_t L_5 = (int32_t)((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_4)))->get_value_3();
return L_5;
}
IL_001e:
{
KeyNotFoundException_t2292407383 * L_6 = (KeyNotFoundException_t2292407383 *)il2cpp_codegen_object_new(KeyNotFoundException_t2292407383_il2cpp_TypeInfo_var);
KeyNotFoundException__ctor_m541499307(L_6, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, Dictionary_2_get_Item_m1441595193_RuntimeMethod_var);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::set_Item(TKey,TValue)
extern "C" void Dictionary_2_set_Item_m3233637533_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, int32_t ___value1, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
int32_t L_1 = ___value1;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( bool (*) (Dictionary_2_t1688192864 *, RuntimeObject *, int32_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_0, (int32_t)L_1, (uint8_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::Add(TKey,TValue)
extern "C" void Dictionary_2_Add_m1953337103_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, int32_t ___value1, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
int32_t L_1 = ___value1;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( bool (*) (Dictionary_2_t1688192864 *, RuntimeObject *, int32_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_0, (int32_t)L_1, (uint8_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m3258103810_gshared (Dictionary_2_t1688192864 * __this, KeyValuePair_2_t4085865031 ___keyValuePair0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = KeyValuePair_2_get_Key_m2837550314((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
int32_t L_1 = KeyValuePair_2_get_Value_m1430811576((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m1223366786_gshared (Dictionary_2_t1688192864 * __this, KeyValuePair_2_t4085865031 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = KeyValuePair_2_get_Key_m2837550314((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1688192864 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1688192864 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0038;
}
}
{
EqualityComparer_1_t2805526212 * L_3 = (( EqualityComparer_1_t2805526212 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t1336678425* L_4 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
int32_t L_6 = (int32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
int32_t L_7 = KeyValuePair_2_get_Value_m1430811576((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t2805526212 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, int32_t, int32_t >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<Newtonsoft.Json.ReadType>::Equals(T,T) */, (EqualityComparer_1_t2805526212 *)L_3, (int32_t)L_6, (int32_t)L_7);
if (!L_8)
{
goto IL_0038;
}
}
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>)
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m1129902841_gshared (Dictionary_2_t1688192864 * __this, KeyValuePair_2_t4085865031 ___keyValuePair0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = KeyValuePair_2_get_Key_m2837550314((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1688192864 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1688192864 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0046;
}
}
{
EqualityComparer_1_t2805526212 * L_3 = (( EqualityComparer_1_t2805526212 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
EntryU5BU5D_t1336678425* L_4 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
int32_t L_6 = (int32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
int32_t L_7 = KeyValuePair_2_get_Value_m1430811576((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((EqualityComparer_1_t2805526212 *)L_3);
bool L_8 = VirtFuncInvoker2< bool, int32_t, int32_t >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<Newtonsoft.Json.ReadType>::Equals(T,T) */, (EqualityComparer_1_t2805526212 *)L_3, (int32_t)L_6, (int32_t)L_7);
if (!L_8)
{
goto IL_0046;
}
}
{
RuntimeObject * L_9 = KeyValuePair_2_get_Key_m2837550314((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)(&___keyValuePair0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
NullCheck((Dictionary_2_t1688192864 *)__this);
(( bool (*) (Dictionary_2_t1688192864 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
return (bool)1;
}
IL_0046:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::Clear()
extern "C" void Dictionary_2_Clear_m4167406021_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (int32_t)__this->get_count_2();
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_005a;
}
}
{
V_0 = (int32_t)0;
goto IL_001a;
}
IL_000d:
{
Int32U5BU5D_t385246372* L_1 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_2 = V_0;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_001a:
{
int32_t L_4 = V_0;
Int32U5BU5D_t385246372* L_5 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000d;
}
}
{
EntryU5BU5D_t1336678425* L_6 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_7 = (int32_t)__this->get_count_2();
Array_Clear_m2231608178(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_6, (int32_t)0, (int32_t)L_7, /*hidden argument*/NULL);
__this->set_freeList_4((-1));
__this->set_count_2(0);
__this->set_freeCount_5(0);
int32_t L_8 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)));
}
IL_005a:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::ContainsKey(TKey)
extern "C" bool Dictionary_2_ContainsKey_m2274715673_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
NullCheck((Dictionary_2_t1688192864 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1688192864 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
return (bool)((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::ContainsValue(TValue)
extern "C" bool Dictionary_2_ContainsValue_m2851176592_gshared (Dictionary_2_t1688192864 * __this, int32_t ___value0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
EqualityComparer_1_t2805526212 * V_1 = NULL;
int32_t V_2 = 0;
{
goto IL_0049;
}
{
V_0 = (int32_t)0;
goto IL_003e;
}
IL_000c:
{
EntryU5BU5D_t1336678425* L_1 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_2 = V_0;
NullCheck(L_1);
int32_t L_3 = (int32_t)((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->get_hashCode_0();
if ((((int32_t)L_3) < ((int32_t)0)))
{
goto IL_003a;
}
}
{
EntryU5BU5D_t1336678425* L_4 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
int32_t L_6 = (int32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
goto IL_003a;
}
{
return (bool)1;
}
IL_003a:
{
int32_t L_7 = V_0;
V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_003e:
{
int32_t L_8 = V_0;
int32_t L_9 = (int32_t)__this->get_count_2();
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_000c;
}
}
{
goto IL_0090;
}
IL_0049:
{
EqualityComparer_1_t2805526212 * L_10 = (( EqualityComparer_1_t2805526212 * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
V_1 = (EqualityComparer_1_t2805526212 *)L_10;
V_2 = (int32_t)0;
goto IL_0087;
}
IL_0053:
{
EntryU5BU5D_t1336678425* L_11 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_12 = V_2;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) < ((int32_t)0)))
{
goto IL_0083;
}
}
{
EqualityComparer_1_t2805526212 * L_14 = V_1;
EntryU5BU5D_t1336678425* L_15 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_value_3();
int32_t L_18 = ___value0;
NullCheck((EqualityComparer_1_t2805526212 *)L_14);
bool L_19 = VirtFuncInvoker2< bool, int32_t, int32_t >::Invoke(8 /* System.Boolean System.Collections.Generic.EqualityComparer`1<Newtonsoft.Json.ReadType>::Equals(T,T) */, (EqualityComparer_1_t2805526212 *)L_14, (int32_t)L_17, (int32_t)L_18);
if (!L_19)
{
goto IL_0083;
}
}
{
return (bool)1;
}
IL_0083:
{
int32_t L_20 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
}
IL_0087:
{
int32_t L_21 = V_2;
int32_t L_22 = (int32_t)__this->get_count_2();
if ((((int32_t)L_21) < ((int32_t)L_22)))
{
goto IL_0053;
}
}
IL_0090:
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_CopyTo_m1769849458_gshared (Dictionary_2_t1688192864 * __this, KeyValuePair_2U5BU5D_t787949758* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_CopyTo_m1769849458_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
EntryU5BU5D_t1336678425* V_1 = NULL;
int32_t V_2 = 0;
{
KeyValuePair_2U5BU5D_t787949758* L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_CopyTo_m1769849458_RuntimeMethod_var);
}
IL_000e:
{
int32_t L_2 = ___index1;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0018;
}
}
{
int32_t L_3 = ___index1;
KeyValuePair_2U5BU5D_t787949758* L_4 = ___array0;
NullCheck(L_4);
if ((((int32_t)L_3) <= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length)))))))
{
goto IL_002e;
}
}
IL_0018:
{
int32_t L_5 = ___index1;
int32_t L_6 = L_5;
RuntimeObject * L_7 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_6);
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_8, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_7, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, Dictionary_2_CopyTo_m1769849458_RuntimeMethod_var);
}
IL_002e:
{
KeyValuePair_2U5BU5D_t787949758* L_9 = ___array0;
NullCheck(L_9);
int32_t L_10 = ___index1;
NullCheck((Dictionary_2_t1688192864 *)__this);
int32_t L_11 = (( int32_t (*) (Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_9)->max_length)))), (int32_t)L_10))) >= ((int32_t)L_11)))
{
goto IL_0046;
}
}
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_12, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_CopyTo_m1769849458_RuntimeMethod_var);
}
IL_0046:
{
int32_t L_13 = (int32_t)__this->get_count_2();
V_0 = (int32_t)L_13;
EntryU5BU5D_t1336678425* L_14 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
V_1 = (EntryU5BU5D_t1336678425*)L_14;
V_2 = (int32_t)0;
goto IL_0094;
}
IL_0058:
{
EntryU5BU5D_t1336678425* L_15 = V_1;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = (int32_t)((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->get_hashCode_0();
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_0090;
}
}
{
KeyValuePair_2U5BU5D_t787949758* L_18 = ___array0;
int32_t L_19 = ___index1;
int32_t L_20 = (int32_t)L_19;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1));
EntryU5BU5D_t1336678425* L_21 = V_1;
int32_t L_22 = V_2;
NullCheck(L_21);
RuntimeObject * L_23 = (RuntimeObject *)((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->get_key_2();
EntryU5BU5D_t1336678425* L_24 = V_1;
int32_t L_25 = V_2;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_value_3();
KeyValuePair_2_t4085865031 L_27;
memset(&L_27, 0, sizeof(L_27));
KeyValuePair_2__ctor_m1860763818((&L_27), (RuntimeObject *)L_23, (int32_t)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
NullCheck(L_18);
(L_18)->SetAt(static_cast<il2cpp_array_size_t>(L_20), (KeyValuePair_2_t4085865031 )L_27);
}
IL_0090:
{
int32_t L_28 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_0094:
{
int32_t L_29 = V_2;
int32_t L_30 = V_0;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0058;
}
}
{
return;
}
}
// System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::GetEnumerator()
extern "C" Enumerator_t3642375639 Dictionary_2_GetEnumerator_m2867945063_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3642375639 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2602380025((&L_0), (Dictionary_2_t1688192864 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
return L_0;
}
}
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m896003863_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3642375639 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2602380025((&L_0), (Dictionary_2_t1688192864 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3642375639 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
extern "C" void Dictionary_2_GetObjectData_m754226731_gshared (Dictionary_2_t1688192864 * __this, SerializationInfo_t950877179 * ___info0, StreamingContext_t3711869237 ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_GetObjectData_m754226731_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t787949758* V_0 = NULL;
String_t* G_B4_0 = NULL;
SerializationInfo_t950877179 * G_B4_1 = NULL;
String_t* G_B3_0 = NULL;
SerializationInfo_t950877179 * G_B3_1 = NULL;
int32_t G_B5_0 = 0;
String_t* G_B5_1 = NULL;
SerializationInfo_t950877179 * G_B5_2 = NULL;
{
SerializationInfo_t950877179 * L_0 = ___info0;
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, (String_t*)_stringLiteral79347, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_GetObjectData_m754226731_RuntimeMethod_var);
}
IL_000e:
{
SerializationInfo_t950877179 * L_2 = ___info0;
int32_t L_3 = (int32_t)__this->get_version_3();
NullCheck((SerializationInfo_t950877179 *)L_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, (int32_t)L_3, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_4 = ___info0;
RuntimeObject* L_5 = (RuntimeObject*)__this->get_comparer_6();
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_4);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral892943380, (RuntimeObject *)L_5, (Type_t *)L_7, /*hidden argument*/NULL);
SerializationInfo_t950877179 * L_8 = ___info0;
Int32U5BU5D_t385246372* L_9 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
G_B3_0 = _stringLiteral953796230;
G_B3_1 = L_8;
if (!L_9)
{
G_B4_0 = _stringLiteral953796230;
G_B4_1 = L_8;
goto IL_0052;
}
}
{
Int32U5BU5D_t385246372* L_10 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_10);
G_B5_0 = (((int32_t)((int32_t)(((RuntimeArray *)L_10)->max_length))));
G_B5_1 = G_B3_0;
G_B5_2 = G_B3_1;
goto IL_0053;
}
IL_0052:
{
G_B5_0 = 0;
G_B5_1 = G_B4_0;
G_B5_2 = G_B4_1;
}
IL_0053:
{
NullCheck((SerializationInfo_t950877179 *)G_B5_2);
SerializationInfo_AddValue_m412754688((SerializationInfo_t950877179 *)G_B5_2, (String_t*)G_B5_1, (int32_t)G_B5_0, /*hidden argument*/NULL);
Int32U5BU5D_t385246372* L_11 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_11)
{
goto IL_008a;
}
}
{
NullCheck((Dictionary_2_t1688192864 *)__this);
int32_t L_12 = (( int32_t (*) (Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
V_0 = (KeyValuePair_2U5BU5D_t787949758*)((KeyValuePair_2U5BU5D_t787949758*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 30), (uint32_t)L_12));
KeyValuePair_2U5BU5D_t787949758* L_13 = V_0;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, KeyValuePair_2U5BU5D_t787949758*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1688192864 *)__this, (KeyValuePair_2U5BU5D_t787949758*)L_13, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
SerializationInfo_t950877179 * L_14 = ___info0;
KeyValuePair_2U5BU5D_t787949758* L_15 = V_0;
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_16, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_14);
SerializationInfo_AddValue_m3906743584((SerializationInfo_t950877179 *)L_14, (String_t*)_stringLiteral2947573650, (RuntimeObject *)(RuntimeObject *)L_15, (Type_t *)L_17, /*hidden argument*/NULL);
}
IL_008a:
{
return;
}
}
// System.Int32 System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::FindEntry(TKey)
extern "C" int32_t Dictionary_2_FindEntry_m278732764_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_FindEntry_m278732764_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
RuntimeObject * L_0 = ___key0;
if (L_0)
{
goto IL_0013;
}
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_FindEntry_m278732764_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_008d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
RuntimeObject * L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, RuntimeObject * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (RuntimeObject *)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
Int32U5BU5D_t385246372* L_6 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_7 = V_0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_8);
NullCheck(L_6);
int32_t L_9 = ((int32_t)((int32_t)L_7%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length))))));
int32_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = (int32_t)L_10;
goto IL_0089;
}
IL_0042:
{
EntryU5BU5D_t1336678425* L_11 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_12 = V_1;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
int32_t L_14 = V_0;
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
{
goto IL_0077;
}
}
{
RuntimeObject* L_15 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t1336678425* L_16 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_17 = V_1;
NullCheck(L_16);
RuntimeObject * L_18 = (RuntimeObject *)((L_16)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_17)))->get_key_2();
RuntimeObject * L_19 = ___key0;
NullCheck((RuntimeObject*)L_15);
bool L_20 = InterfaceFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_15, (RuntimeObject *)L_18, (RuntimeObject *)L_19);
if (!L_20)
{
goto IL_0077;
}
}
{
int32_t L_21 = V_1;
return L_21;
}
IL_0077:
{
EntryU5BU5D_t1336678425* L_22 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_23 = V_1;
NullCheck(L_22);
int32_t L_24 = (int32_t)((L_22)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_23)))->get_next_1();
V_1 = (int32_t)L_24;
}
IL_0089:
{
int32_t L_25 = V_1;
if ((((int32_t)L_25) >= ((int32_t)0)))
{
goto IL_0042;
}
}
IL_008d:
{
return (-1);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::Initialize(System.Int32)
extern "C" void Dictionary_2_Initialize_m4163359530_gshared (Dictionary_2_t1688192864 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Initialize_m4163359530_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
int32_t L_0 = ___capacity0;
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_GetPrime_m1056954278(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_2)));
V_1 = (int32_t)0;
goto IL_0024;
}
IL_0017:
{
Int32U5BU5D_t385246372* L_3 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_4 = V_1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (int32_t)(-1));
int32_t L_5 = V_1;
V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1));
}
IL_0024:
{
int32_t L_6 = V_1;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
if ((((int32_t)L_6) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length)))))))
{
goto IL_0017;
}
}
{
int32_t L_8 = V_0;
__this->set_entries_1(((EntryU5BU5D_t1336678425*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_8)));
__this->set_freeList_4((-1));
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::TryInsert(TKey,TValue,System.Collections.Generic.InsertionBehavior)
extern "C" bool Dictionary_2_TryInsert_m3476147396_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, int32_t ___value1, uint8_t ___behavior2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_TryInsert_m3476147396_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
{
RuntimeObject * L_0 = ___key0;
if (L_0)
{
goto IL_0013;
}
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_TryInsert_m3476147396_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (L_2)
{
goto IL_0022;
}
}
{
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1)->methodPointer)((Dictionary_2_t1688192864 *)__this, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 1));
}
IL_0022:
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
RuntimeObject * L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, RuntimeObject * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (RuntimeObject *)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)0;
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_4 = (int32_t)L_11;
goto IL_00e1;
}
IL_0051:
{
EntryU5BU5D_t1336678425* L_12 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_13 = V_4;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_00c9;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t1336678425* L_17 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_18 = V_4;
NullCheck(L_17);
RuntimeObject * L_19 = (RuntimeObject *)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
RuntimeObject * L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (RuntimeObject *)L_19, (RuntimeObject *)L_20);
if (!L_21)
{
goto IL_00c9;
}
}
{
uint8_t L_22 = ___behavior2;
if ((!(((uint32_t)L_22) == ((uint32_t)1))))
{
goto IL_00ad;
}
}
{
EntryU5BU5D_t1336678425* L_23 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_24 = V_4;
NullCheck(L_23);
int32_t L_25 = ___value1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_value_3(L_25);
int32_t L_26 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
return (bool)1;
}
IL_00ad:
{
uint8_t L_27 = ___behavior2;
if ((!(((uint32_t)L_27) == ((uint32_t)2))))
{
goto IL_00c7;
}
}
{
RuntimeObject * L_28 = ___key0;
String_t* L_29 = SR_Format_m1749913990(NULL /*static, unused*/, (String_t*)_stringLiteral1494472686, (RuntimeObject *)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, (String_t*)L_29, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_30, NULL, Dictionary_2_TryInsert_m3476147396_RuntimeMethod_var);
}
IL_00c7:
{
return (bool)0;
}
IL_00c9:
{
int32_t L_31 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_31, (int32_t)1));
EntryU5BU5D_t1336678425* L_32 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_33 = V_4;
NullCheck(L_32);
int32_t L_34 = (int32_t)((L_32)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_33)))->get_next_1();
V_4 = (int32_t)L_34;
}
IL_00e1:
{
int32_t L_35 = V_4;
if ((((int32_t)L_35) >= ((int32_t)0)))
{
goto IL_0051;
}
}
{
int32_t L_36 = (int32_t)__this->get_freeCount_5();
if ((((int32_t)L_36) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t L_37 = (int32_t)__this->get_freeList_4();
V_3 = (int32_t)L_37;
EntryU5BU5D_t1336678425* L_38 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
int32_t L_40 = (int32_t)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_next_1();
__this->set_freeList_4(L_40);
int32_t L_41 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_subtract((int32_t)L_41, (int32_t)1)));
goto IL_0156;
}
IL_0120:
{
int32_t L_42 = (int32_t)__this->get_count_2();
EntryU5BU5D_t1336678425* L_43 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
NullCheck(L_43);
if ((!(((uint32_t)L_42) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_43)->max_length))))))))
{
goto IL_0141;
}
}
{
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36)->methodPointer)((Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 36));
int32_t L_44 = V_0;
Int32U5BU5D_t385246372* L_45 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_45);
V_1 = (int32_t)((int32_t)((int32_t)L_44%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_45)->max_length))))));
}
IL_0141:
{
int32_t L_46 = (int32_t)__this->get_count_2();
V_3 = (int32_t)L_46;
int32_t L_47 = (int32_t)__this->get_count_2();
__this->set_count_2(((int32_t)il2cpp_codegen_add((int32_t)L_47, (int32_t)1)));
}
IL_0156:
{
EntryU5BU5D_t1336678425* L_48 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = V_0;
((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->set_hashCode_0(L_50);
EntryU5BU5D_t1336678425* L_51 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_52 = V_3;
NullCheck(L_51);
Int32U5BU5D_t385246372* L_53 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_54 = V_1;
NullCheck(L_53);
int32_t L_55 = L_54;
int32_t L_56 = (L_53)->GetAt(static_cast<il2cpp_array_size_t>(L_55));
((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->set_next_1(L_56);
EntryU5BU5D_t1336678425* L_57 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_58 = V_3;
NullCheck(L_57);
RuntimeObject * L_59 = ___key0;
((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->set_key_2(L_59);
EntryU5BU5D_t1336678425* L_60 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_61 = V_3;
NullCheck(L_60);
int32_t L_62 = ___value1;
((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->set_value_3(L_62);
Int32U5BU5D_t385246372* L_63 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_64 = V_1;
int32_t L_65 = V_3;
NullCheck(L_63);
(L_63)->SetAt(static_cast<il2cpp_array_size_t>(L_64), (int32_t)L_65);
int32_t L_66 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1)));
int32_t L_67 = V_2;
if ((((int32_t)L_67) <= ((int32_t)((int32_t)100))))
{
goto IL_01ed;
}
}
{
RuntimeObject* L_68 = (RuntimeObject*)__this->get_comparer_6();
if (!((NonRandomizedStringEqualityComparer_t1082005352 *)IsInst((RuntimeObject*)L_68, NonRandomizedStringEqualityComparer_t1082005352_il2cpp_TypeInfo_var)))
{
goto IL_01ed;
}
}
{
EqualityComparer_1_t17223025 * L_69 = EqualityComparer_1_get_Default_m2310016383(NULL /*static, unused*/, /*hidden argument*/EqualityComparer_1_get_Default_m2310016383_RuntimeMethod_var);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_69, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
EntryU5BU5D_t1336678425* L_70 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
NullCheck(L_70);
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t1688192864 *)__this, (int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_70)->max_length)))), (bool)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
}
IL_01ed:
{
return (bool)1;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::OnDeserialization(System.Object)
extern "C" void Dictionary_2_OnDeserialization_m1828366926_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___sender0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_OnDeserialization_m1828366926_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SerializationInfo_t950877179 * V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
KeyValuePair_2U5BU5D_t787949758* V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_0 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_0);
ConditionalWeakTable_2_TryGetValue_m1618998192((ConditionalWeakTable_2_t1452810305 *)L_0, (RuntimeObject *)__this, (SerializationInfo_t950877179 **)(SerializationInfo_t950877179 **)(&V_0), /*hidden argument*/ConditionalWeakTable_2_TryGetValue_m1618998192_RuntimeMethod_var);
SerializationInfo_t950877179 * L_1 = V_0;
if (L_1)
{
goto IL_0012;
}
}
{
return;
}
IL_0012:
{
SerializationInfo_t950877179 * L_2 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_2);
int32_t L_3 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_2, (String_t*)_stringLiteral1902402919, /*hidden argument*/NULL);
V_1 = (int32_t)L_3;
SerializationInfo_t950877179 * L_4 = V_0;
NullCheck((SerializationInfo_t950877179 *)L_4);
int32_t L_5 = SerializationInfo_GetInt32_m2640574809((SerializationInfo_t950877179 *)L_4, (String_t*)_stringLiteral953796230, /*hidden argument*/NULL);
V_2 = (int32_t)L_5;
SerializationInfo_t950877179 * L_6 = V_0;
RuntimeTypeHandle_t3027515415 L_7 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 29)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_8 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_7, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_6);
RuntimeObject * L_9 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_6, (String_t*)_stringLiteral892943380, (Type_t *)L_8, /*hidden argument*/NULL);
__this->set_comparer_6(((RuntimeObject*)Castclass((RuntimeObject*)L_9, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34))));
int32_t L_10 = V_2;
if (!L_10)
{
goto IL_010c;
}
}
{
int32_t L_11 = V_2;
__this->set_buckets_0(((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_11)));
V_4 = (int32_t)0;
goto IL_0071;
}
IL_0061:
{
Int32U5BU5D_t385246372* L_12 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_13 = V_4;
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)(-1));
int32_t L_14 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0071:
{
int32_t L_15 = V_4;
Int32U5BU5D_t385246372* L_16 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0061;
}
}
{
int32_t L_17 = V_2;
__this->set_entries_1(((EntryU5BU5D_t1336678425*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_17)));
__this->set_freeList_4((-1));
SerializationInfo_t950877179 * L_18 = V_0;
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 32)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_19, /*hidden argument*/NULL);
NullCheck((SerializationInfo_t950877179 *)L_18);
RuntimeObject * L_21 = SerializationInfo_GetValue_m42271953((SerializationInfo_t950877179 *)L_18, (String_t*)_stringLiteral2947573650, (Type_t *)L_20, /*hidden argument*/NULL);
V_3 = (KeyValuePair_2U5BU5D_t787949758*)((KeyValuePair_2U5BU5D_t787949758*)Castclass((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t787949758* L_22 = V_3;
if (L_22)
{
goto IL_00b9;
}
}
{
SerializationException_t3941511869 * L_23 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_23, (String_t*)_stringLiteral998597917, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_23, NULL, Dictionary_2_OnDeserialization_m1828366926_RuntimeMethod_var);
}
IL_00b9:
{
V_5 = (int32_t)0;
goto IL_0103;
}
IL_00be:
{
KeyValuePair_2U5BU5D_t787949758* L_24 = V_3;
int32_t L_25 = V_5;
NullCheck(L_24);
RuntimeObject * L_26 = KeyValuePair_2_get_Key_m2837550314((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
if (L_26)
{
goto IL_00dd;
}
}
{
SerializationException_t3941511869 * L_27 = (SerializationException_t3941511869 *)il2cpp_codegen_object_new(SerializationException_t3941511869_il2cpp_TypeInfo_var);
SerializationException__ctor_m3862484944(L_27, (String_t*)_stringLiteral3616747365, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_27, NULL, Dictionary_2_OnDeserialization_m1828366926_RuntimeMethod_var);
}
IL_00dd:
{
KeyValuePair_2U5BU5D_t787949758* L_28 = V_3;
int32_t L_29 = V_5;
NullCheck(L_28);
RuntimeObject * L_30 = KeyValuePair_2_get_Key_m2837550314((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 11));
KeyValuePair_2U5BU5D_t787949758* L_31 = V_3;
int32_t L_32 = V_5;
NullCheck(L_31);
int32_t L_33 = KeyValuePair_2_get_Value_m1430811576((KeyValuePair_2_t4085865031 *)(KeyValuePair_2_t4085865031 *)((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 12));
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_30, (int32_t)L_33, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
int32_t L_34 = V_5;
V_5 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_34, (int32_t)1));
}
IL_0103:
{
int32_t L_35 = V_5;
KeyValuePair_2U5BU5D_t787949758* L_36 = V_3;
NullCheck(L_36);
if ((((int32_t)L_35) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_36)->max_length)))))))
{
goto IL_00be;
}
}
{
goto IL_0113;
}
IL_010c:
{
__this->set_buckets_0((Int32U5BU5D_t385246372*)NULL);
}
IL_0113:
{
int32_t L_37 = V_1;
__this->set_version_3(L_37);
IL2CPP_RUNTIME_CLASS_INIT(DictionaryHashHelpers_t1017827097_il2cpp_TypeInfo_var);
ConditionalWeakTable_2_t1452810305 * L_38 = DictionaryHashHelpers_get_SerializationInfoTable_m2316479637(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck((ConditionalWeakTable_2_t1452810305 *)L_38);
ConditionalWeakTable_2_Remove_m2013031576((ConditionalWeakTable_2_t1452810305 *)L_38, (RuntimeObject *)__this, /*hidden argument*/ConditionalWeakTable_2_Remove_m2013031576_RuntimeMethod_var);
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::Resize()
extern "C" void Dictionary_2_Resize_m627186907_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m627186907_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = (int32_t)__this->get_count_2();
IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t3497540039_il2cpp_TypeInfo_var);
int32_t L_1 = HashHelpers_ExpandPrime_m2180508331(NULL /*static, unused*/, (int32_t)L_0, /*hidden argument*/NULL);
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, int32_t, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37)->methodPointer)((Dictionary_2_t1688192864 *)__this, (int32_t)L_1, (bool)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 37));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::Resize(System.Int32,System.Boolean)
extern "C" void Dictionary_2_Resize_m2314597368_gshared (Dictionary_2_t1688192864 * __this, int32_t ___newSize0, bool ___forceNewHashCodes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Resize_m2314597368_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Int32U5BU5D_t385246372* V_0 = NULL;
EntryU5BU5D_t1336678425* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t L_0 = ___newSize0;
V_0 = (Int32U5BU5D_t385246372*)((Int32U5BU5D_t385246372*)SZArrayNew(Int32U5BU5D_t385246372_il2cpp_TypeInfo_var, (uint32_t)L_0));
V_2 = (int32_t)0;
goto IL_0013;
}
IL_000b:
{
Int32U5BU5D_t385246372* L_1 = V_0;
int32_t L_2 = V_2;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (int32_t)(-1));
int32_t L_3 = V_2;
V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1));
}
IL_0013:
{
int32_t L_4 = V_2;
Int32U5BU5D_t385246372* L_5 = V_0;
NullCheck(L_5);
if ((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length)))))))
{
goto IL_000b;
}
}
{
int32_t L_6 = ___newSize0;
V_1 = (EntryU5BU5D_t1336678425*)((EntryU5BU5D_t1336678425*)SZArrayNew(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 35), (uint32_t)L_6));
EntryU5BU5D_t1336678425* L_7 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
EntryU5BU5D_t1336678425* L_8 = V_1;
int32_t L_9 = (int32_t)__this->get_count_2();
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_7, (int32_t)0, (RuntimeArray *)(RuntimeArray *)L_8, (int32_t)0, (int32_t)L_9, /*hidden argument*/NULL);
bool L_10 = ___forceNewHashCodes1;
if (!L_10)
{
goto IL_0080;
}
}
{
V_3 = (int32_t)0;
goto IL_0077;
}
IL_003b:
{
EntryU5BU5D_t1336678425* L_11 = V_1;
int32_t L_12 = V_3;
NullCheck(L_11);
int32_t L_13 = (int32_t)((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_hashCode_0();
if ((((int32_t)L_13) == ((int32_t)(-1))))
{
goto IL_0073;
}
}
{
EntryU5BU5D_t1336678425* L_14 = V_1;
int32_t L_15 = V_3;
NullCheck(L_14);
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t1336678425* L_17 = V_1;
int32_t L_18 = V_3;
NullCheck(L_17);
RuntimeObject * L_19 = (RuntimeObject *)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
NullCheck((RuntimeObject*)L_16);
int32_t L_20 = InterfaceFuncInvoker1< int32_t, RuntimeObject * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (RuntimeObject *)L_19);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->set_hashCode_0(((int32_t)((int32_t)L_20&(int32_t)((int32_t)2147483647LL))));
}
IL_0073:
{
int32_t L_21 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1));
}
IL_0077:
{
int32_t L_22 = V_3;
int32_t L_23 = (int32_t)__this->get_count_2();
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_003b;
}
}
IL_0080:
{
V_4 = (int32_t)0;
goto IL_00c3;
}
IL_0085:
{
EntryU5BU5D_t1336678425* L_24 = V_1;
int32_t L_25 = V_4;
NullCheck(L_24);
int32_t L_26 = (int32_t)((L_24)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_25)))->get_hashCode_0();
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00bd;
}
}
{
EntryU5BU5D_t1336678425* L_27 = V_1;
int32_t L_28 = V_4;
NullCheck(L_27);
int32_t L_29 = (int32_t)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->get_hashCode_0();
int32_t L_30 = ___newSize0;
V_5 = (int32_t)((int32_t)((int32_t)L_29%(int32_t)L_30));
EntryU5BU5D_t1336678425* L_31 = V_1;
int32_t L_32 = V_4;
NullCheck(L_31);
Int32U5BU5D_t385246372* L_33 = V_0;
int32_t L_34 = V_5;
NullCheck(L_33);
int32_t L_35 = L_34;
int32_t L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32)))->set_next_1(L_36);
Int32U5BU5D_t385246372* L_37 = V_0;
int32_t L_38 = V_5;
int32_t L_39 = V_4;
NullCheck(L_37);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(L_38), (int32_t)L_39);
}
IL_00bd:
{
int32_t L_40 = V_4;
V_4 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
}
IL_00c3:
{
int32_t L_41 = V_4;
int32_t L_42 = (int32_t)__this->get_count_2();
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_0085;
}
}
{
Int32U5BU5D_t385246372* L_43 = V_0;
__this->set_buckets_0(L_43);
EntryU5BU5D_t1336678425* L_44 = V_1;
__this->set_entries_1(L_44);
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::Remove(TKey)
extern "C" bool Dictionary_2_Remove_m695714452_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_Remove_m695714452_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
RuntimeObject * L_0 = ___key0;
if (L_0)
{
goto IL_0013;
}
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_Remove_m695714452_RuntimeMethod_var);
}
IL_0013:
{
Int32U5BU5D_t385246372* L_2 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
if (!L_2)
{
goto IL_015d;
}
}
{
RuntimeObject* L_3 = (RuntimeObject*)__this->get_comparer_6();
RuntimeObject * L_4 = ___key0;
NullCheck((RuntimeObject*)L_3);
int32_t L_5 = InterfaceFuncInvoker1< int32_t, RuntimeObject * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_3, (RuntimeObject *)L_4);
V_0 = (int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647LL)));
int32_t L_6 = V_0;
Int32U5BU5D_t385246372* L_7 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
NullCheck(L_7);
V_1 = (int32_t)((int32_t)((int32_t)L_6%(int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_7)->max_length))))));
V_2 = (int32_t)(-1);
Int32U5BU5D_t385246372* L_8 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_9 = V_1;
NullCheck(L_8);
int32_t L_10 = L_9;
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
V_3 = (int32_t)L_11;
goto IL_0156;
}
IL_004c:
{
EntryU5BU5D_t1336678425* L_12 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_13 = V_3;
NullCheck(L_12);
int32_t L_14 = (int32_t)((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_13)))->get_hashCode_0();
int32_t L_15 = V_0;
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0142;
}
}
{
RuntimeObject* L_16 = (RuntimeObject*)__this->get_comparer_6();
EntryU5BU5D_t1336678425* L_17 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_18 = V_3;
NullCheck(L_17);
RuntimeObject * L_19 = (RuntimeObject *)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->get_key_2();
RuntimeObject * L_20 = ___key0;
NullCheck((RuntimeObject*)L_16);
bool L_21 = InterfaceFuncInvoker2< bool, RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 34), (RuntimeObject*)L_16, (RuntimeObject *)L_19, (RuntimeObject *)L_20);
if (!L_21)
{
goto IL_0142;
}
}
{
int32_t L_22 = V_2;
if ((((int32_t)L_22) >= ((int32_t)0)))
{
goto IL_00a4;
}
}
{
Int32U5BU5D_t385246372* L_23 = (Int32U5BU5D_t385246372*)__this->get_buckets_0();
int32_t L_24 = V_1;
EntryU5BU5D_t1336678425* L_25 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_26 = V_3;
NullCheck(L_25);
int32_t L_27 = (int32_t)((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->get_next_1();
NullCheck(L_23);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(L_24), (int32_t)L_27);
goto IL_00c6;
}
IL_00a4:
{
EntryU5BU5D_t1336678425* L_28 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_29 = V_2;
NullCheck(L_28);
EntryU5BU5D_t1336678425* L_30 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_31 = V_3;
NullCheck(L_30);
int32_t L_32 = (int32_t)((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->get_next_1();
((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->set_next_1(L_32);
}
IL_00c6:
{
EntryU5BU5D_t1336678425* L_33 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_34 = V_3;
NullCheck(L_33);
((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->set_hashCode_0((-1));
EntryU5BU5D_t1336678425* L_35 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_36 = V_3;
NullCheck(L_35);
int32_t L_37 = (int32_t)__this->get_freeList_4();
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->set_next_1(L_37);
EntryU5BU5D_t1336678425* L_38 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_39 = V_3;
NullCheck(L_38);
RuntimeObject ** L_40 = (RuntimeObject **)((L_38)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_39)))->get_address_of_key_2();
il2cpp_codegen_initobj(L_40, sizeof(RuntimeObject *));
EntryU5BU5D_t1336678425* L_41 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_42 = V_3;
NullCheck(L_41);
int32_t* L_43 = (int32_t*)((L_41)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_42)))->get_address_of_value_3();
il2cpp_codegen_initobj(L_43, sizeof(int32_t));
int32_t L_44 = V_3;
__this->set_freeList_4(L_44);
int32_t L_45 = (int32_t)__this->get_freeCount_5();
__this->set_freeCount_5(((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1)));
int32_t L_46 = (int32_t)__this->get_version_3();
__this->set_version_3(((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1)));
return (bool)1;
}
IL_0142:
{
int32_t L_47 = V_3;
V_2 = (int32_t)L_47;
EntryU5BU5D_t1336678425* L_48 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_49 = V_3;
NullCheck(L_48);
int32_t L_50 = (int32_t)((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->get_next_1();
V_3 = (int32_t)L_50;
}
IL_0156:
{
int32_t L_51 = V_3;
if ((((int32_t)L_51) >= ((int32_t)0)))
{
goto IL_004c;
}
}
IL_015d:
{
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::TryGetValue(TKey,TValue&)
extern "C" bool Dictionary_2_TryGetValue_m3171341588_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, int32_t* ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
NullCheck((Dictionary_2_t1688192864 *)__this);
int32_t L_1 = (( int32_t (*) (Dictionary_2_t1688192864 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_1;
int32_t L_2 = V_0;
if ((((int32_t)L_2) < ((int32_t)0)))
{
goto IL_0025;
}
}
{
int32_t* L_3 = ___value1;
EntryU5BU5D_t1336678425* L_4 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_5 = V_0;
NullCheck(L_4);
int32_t L_6 = (int32_t)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->get_value_3();
*(int32_t*)L_3 = L_6;
return (bool)1;
}
IL_0025:
{
int32_t* L_7 = ___value1;
il2cpp_codegen_initobj(L_7, sizeof(int32_t));
return (bool)0;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::TryAdd(TKey,TValue)
extern "C" bool Dictionary_2_TryAdd_m372485136_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, int32_t ___value1, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
int32_t L_1 = ___value1;
NullCheck((Dictionary_2_t1688192864 *)__this);
bool L_2 = (( bool (*) (Dictionary_2_t1688192864 *, RuntimeObject *, int32_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_0, (int32_t)L_1, (uint8_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
return L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m3816708834_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32)
extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m1784943866_gshared (Dictionary_2_t1688192864 * __this, KeyValuePair_2U5BU5D_t787949758* ___array0, int32_t ___index1, const RuntimeMethod* method)
{
{
KeyValuePair_2U5BU5D_t787949758* L_0 = ___array0;
int32_t L_1 = ___index1;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, KeyValuePair_2U5BU5D_t787949758*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1688192864 *)__this, (KeyValuePair_2U5BU5D_t787949758*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.ICollection.CopyTo(System.Array,System.Int32)
extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_gshared (Dictionary_2_t1688192864 * __this, RuntimeArray * ___array0, int32_t ___index1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
KeyValuePair_2U5BU5D_t787949758* V_0 = NULL;
DictionaryEntryU5BU5D_t4217117203* V_1 = NULL;
EntryU5BU5D_t1336678425* V_2 = NULL;
int32_t V_3 = 0;
ObjectU5BU5D_t2843939325* V_4 = NULL;
int32_t V_5 = 0;
EntryU5BU5D_t1336678425* V_6 = NULL;
int32_t V_7 = 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);
{
RuntimeArray * L_0 = ___array0;
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, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_RuntimeMethod_var);
}
IL_000e:
{
RuntimeArray * L_2 = ___array0;
NullCheck((RuntimeArray *)L_2);
int32_t L_3 = Array_get_Rank_m3448755881((RuntimeArray *)L_2, /*hidden argument*/NULL);
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0027;
}
}
{
ArgumentException_t132251570 * L_4 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_4, (String_t*)_stringLiteral915403387, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_RuntimeMethod_var);
}
IL_0027:
{
RuntimeArray * L_5 = ___array0;
NullCheck((RuntimeArray *)L_5);
int32_t L_6 = Array_GetLowerBound_m2045984623((RuntimeArray *)L_5, (int32_t)0, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0040;
}
}
{
ArgumentException_t132251570 * L_7 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_7, (String_t*)_stringLiteral2590862907, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_RuntimeMethod_var);
}
IL_0040:
{
int32_t L_8 = ___index1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_004d;
}
}
{
int32_t L_9 = ___index1;
RuntimeArray * L_10 = ___array0;
NullCheck((RuntimeArray *)L_10);
int32_t L_11 = Array_get_Length_m21610649((RuntimeArray *)L_10, /*hidden argument*/NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0063;
}
}
IL_004d:
{
int32_t L_12 = ___index1;
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_13);
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m4164965325(L_15, (String_t*)_stringLiteral797640427, (RuntimeObject *)L_14, (String_t*)_stringLiteral1358229803, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_RuntimeMethod_var);
}
IL_0063:
{
RuntimeArray * L_16 = ___array0;
NullCheck((RuntimeArray *)L_16);
int32_t L_17 = Array_get_Length_m21610649((RuntimeArray *)L_16, /*hidden argument*/NULL);
int32_t L_18 = ___index1;
NullCheck((Dictionary_2_t1688192864 *)__this);
int32_t L_19 = (( int32_t (*) (Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24)->methodPointer)((Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 24));
if ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)L_18))) >= ((int32_t)L_19)))
{
goto IL_007e;
}
}
{
ArgumentException_t132251570 * L_20 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_20, (String_t*)_stringLiteral218911153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_20, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_RuntimeMethod_var);
}
IL_007e:
{
RuntimeArray * L_21 = ___array0;
V_0 = (KeyValuePair_2U5BU5D_t787949758*)((KeyValuePair_2U5BU5D_t787949758*)IsInst((RuntimeObject*)L_21, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 38)));
KeyValuePair_2U5BU5D_t787949758* L_22 = V_0;
if (!L_22)
{
goto IL_0091;
}
}
{
KeyValuePair_2U5BU5D_t787949758* L_23 = V_0;
int32_t L_24 = ___index1;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, KeyValuePair_2U5BU5D_t787949758*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31)->methodPointer)((Dictionary_2_t1688192864 *)__this, (KeyValuePair_2U5BU5D_t787949758*)L_23, (int32_t)L_24, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 31));
return;
}
IL_0091:
{
RuntimeArray * L_25 = ___array0;
if (!((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_25, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var)))
{
goto IL_00fb;
}
}
{
RuntimeArray * L_26 = ___array0;
V_1 = (DictionaryEntryU5BU5D_t4217117203*)((DictionaryEntryU5BU5D_t4217117203*)IsInst((RuntimeObject*)L_26, DictionaryEntryU5BU5D_t4217117203_il2cpp_TypeInfo_var));
EntryU5BU5D_t1336678425* L_27 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
V_2 = (EntryU5BU5D_t1336678425*)L_27;
V_3 = (int32_t)0;
goto IL_00f1;
}
IL_00ab:
{
EntryU5BU5D_t1336678425* L_28 = V_2;
int32_t L_29 = V_3;
NullCheck(L_28);
int32_t L_30 = (int32_t)((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->get_hashCode_0();
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_00ed;
}
}
{
DictionaryEntryU5BU5D_t4217117203* L_31 = V_1;
int32_t L_32 = ___index1;
int32_t L_33 = (int32_t)L_32;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)1));
EntryU5BU5D_t1336678425* L_34 = V_2;
int32_t L_35 = V_3;
NullCheck(L_34);
RuntimeObject * L_36 = (RuntimeObject *)((L_34)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_35)))->get_key_2();
EntryU5BU5D_t1336678425* L_37 = V_2;
int32_t L_38 = V_3;
NullCheck(L_37);
int32_t L_39 = (int32_t)((L_37)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_38)))->get_value_3();
int32_t L_40 = L_39;
RuntimeObject * L_41 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23), &L_40);
DictionaryEntry_t3123975638 L_42;
memset(&L_42, 0, sizeof(L_42));
DictionaryEntry__ctor_m2585376310((&L_42), (RuntimeObject *)L_36, (RuntimeObject *)L_41, /*hidden argument*/NULL);
NullCheck(L_31);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (DictionaryEntry_t3123975638 )L_42);
}
IL_00ed:
{
int32_t L_43 = V_3;
V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_43, (int32_t)1));
}
IL_00f1:
{
int32_t L_44 = V_3;
int32_t L_45 = (int32_t)__this->get_count_2();
if ((((int32_t)L_44) < ((int32_t)L_45)))
{
goto IL_00ab;
}
}
{
return;
}
IL_00fb:
{
RuntimeArray * L_46 = ___array0;
V_4 = (ObjectU5BU5D_t2843939325*)((ObjectU5BU5D_t2843939325*)IsInst((RuntimeObject*)L_46, ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var));
ObjectU5BU5D_t2843939325* L_47 = V_4;
if (L_47)
{
goto IL_0117;
}
}
{
ArgumentException_t132251570 * L_48 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_48, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_48, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_RuntimeMethod_var);
}
IL_0117:
{
}
IL_0118:
try
{ // begin try (depth: 1)
{
int32_t L_49 = (int32_t)__this->get_count_2();
V_5 = (int32_t)L_49;
EntryU5BU5D_t1336678425* L_50 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
V_6 = (EntryU5BU5D_t1336678425*)L_50;
V_7 = (int32_t)0;
goto IL_0173;
}
IL_012d:
{
EntryU5BU5D_t1336678425* L_51 = V_6;
int32_t L_52 = V_7;
NullCheck(L_51);
int32_t L_53 = (int32_t)((L_51)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_52)))->get_hashCode_0();
if ((((int32_t)L_53) < ((int32_t)0)))
{
goto IL_016d;
}
}
IL_013e:
{
ObjectU5BU5D_t2843939325* L_54 = V_4;
int32_t L_55 = ___index1;
int32_t L_56 = (int32_t)L_55;
___index1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_56, (int32_t)1));
EntryU5BU5D_t1336678425* L_57 = V_6;
int32_t L_58 = V_7;
NullCheck(L_57);
RuntimeObject * L_59 = (RuntimeObject *)((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->get_key_2();
EntryU5BU5D_t1336678425* L_60 = V_6;
int32_t L_61 = V_7;
NullCheck(L_60);
int32_t L_62 = (int32_t)((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->get_value_3();
KeyValuePair_2_t4085865031 L_63;
memset(&L_63, 0, sizeof(L_63));
KeyValuePair_2__ctor_m1860763818((&L_63), (RuntimeObject *)L_59, (int32_t)L_62, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 26));
KeyValuePair_2_t4085865031 L_64 = L_63;
RuntimeObject * L_65 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 25), &L_64);
NullCheck(L_54);
ArrayElementTypeCheck (L_54, L_65);
(L_54)->SetAt(static_cast<il2cpp_array_size_t>(L_56), (RuntimeObject *)L_65);
}
IL_016d:
{
int32_t L_66 = V_7;
V_7 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1));
}
IL_0173:
{
int32_t L_67 = V_7;
int32_t L_68 = V_5;
if ((((int32_t)L_67) < ((int32_t)L_68)))
{
goto IL_012d;
}
}
IL_0179:
{
goto IL_018c;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ArrayTypeMismatchException_t2342549375_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_017b;
throw e;
}
CATCH_017b:
{ // begin catch(System.ArrayTypeMismatchException)
ArgumentException_t132251570 * L_69 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_69, (String_t*)_stringLiteral1013684703, (String_t*)_stringLiteral4007973390, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_69, NULL, Dictionary_2_System_Collections_ICollection_CopyTo_m1937493335_RuntimeMethod_var);
} // end catch (depth: 1)
IL_018c:
{
return;
}
}
// System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IEnumerable.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m472480274_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3642375639 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2602380025((&L_0), (Dictionary_2_t1688192864 *)__this, (int32_t)2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3642375639 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.ICollection.get_IsSynchronized()
extern "C" bool Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m2487475916_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.ICollection.get_SyncRoot()
extern "C" RuntimeObject * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3102507170_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_ICollection_get_SyncRoot_m3102507170_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get__syncRoot_9();
if (L_0)
{
goto IL_001a;
}
}
{
RuntimeObject ** L_1 = (RuntimeObject **)__this->get_address_of__syncRoot_9();
RuntimeObject * L_2 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_2, /*hidden argument*/NULL);
InterlockedCompareExchangeImpl<RuntimeObject *>((RuntimeObject **)(RuntimeObject **)L_1, (RuntimeObject *)L_2, (RuntimeObject *)NULL);
}
IL_001a:
{
RuntimeObject * L_3 = (RuntimeObject *)__this->get__syncRoot_9();
return L_3;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IDictionary.get_IsReadOnly()
extern "C" bool Dictionary_2_System_Collections_IDictionary_get_IsReadOnly_m202242465_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
return (bool)0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IDictionary.get_Keys()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Keys_m3990735722_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1688192864 *)__this);
KeyCollection_t1877868335 * L_0 = (( KeyCollection_t1877868335 * (*) (Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39)->methodPointer)((Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 39));
return L_0;
}
}
// System.Collections.ICollection System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IDictionary.get_Values()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_get_Values_m1847373781_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
NullCheck((Dictionary_2_t1688192864 *)__this);
ValueCollection_t3404237182 * L_0 = (( ValueCollection_t3404237182 * (*) (Dictionary_2_t1688192864 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40)->methodPointer)((Dictionary_2_t1688192864 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 40));
return L_0;
}
}
// System.Object System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IDictionary.get_Item(System.Object)
extern "C" RuntimeObject * Dictionary_2_System_Collections_IDictionary_get_Item_m219672293_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0030;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1688192864 *)__this);
int32_t L_3 = (( int32_t (*) (Dictionary_2_t1688192864 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
V_0 = (int32_t)L_3;
int32_t L_4 = V_0;
if ((((int32_t)L_4) < ((int32_t)0)))
{
goto IL_0030;
}
}
{
EntryU5BU5D_t1336678425* L_5 = (EntryU5BU5D_t1336678425*)__this->get_entries_1();
int32_t L_6 = V_0;
NullCheck(L_5);
int32_t L_7 = (int32_t)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->get_value_3();
int32_t L_8 = L_7;
RuntimeObject * L_9 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23), &L_8);
return L_9;
}
IL_0030:
{
return NULL;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IDictionary.set_Item(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m1326278113_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_set_Item_m1326278113_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
RuntimeObject * V_1 = 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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m1326278113_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(int32_t));
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m1326278113_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)));
}
IL_0034:
try
{ // begin try (depth: 2)
RuntimeObject * L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_6, (int32_t)((*(int32_t*)((int32_t*)UnBox(L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 43));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m1326278113_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_set_Item_m1326278113_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::IsCompatibleKey(System.Object)
extern "C" bool Dictionary_2_IsCompatibleKey_m889728702_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_IsCompatibleKey_m889728702_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_IsCompatibleKey_m889728702_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___key0;
return (bool)((!(((RuntimeObject*)(RuntimeObject *)((RuntimeObject *)IsInst((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 33)))) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IDictionary.Add(System.Object,System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m1815564944_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Dictionary_2_System_Collections_IDictionary_Add_m1815564944_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
RuntimeObject * V_1 = 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);
{
RuntimeObject * 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, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, Dictionary_2_System_Collections_IDictionary_Add_m1815564944_RuntimeMethod_var);
}
IL_000e:
{
RuntimeObject * L_2 = ___value1;
if (L_2)
{
goto IL_002c;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(int32_t));
}
{
ArgumentNullException_t1615371798 * L_4 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_4, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4, NULL, Dictionary_2_System_Collections_IDictionary_Add_m1815564944_RuntimeMethod_var);
}
IL_002c:
{
}
IL_002d:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_5 = ___key0;
V_1 = (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33)));
}
IL_0034:
try
{ // begin try (depth: 2)
RuntimeObject * L_6 = V_1;
RuntimeObject * L_7 = ___value1;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( void (*) (Dictionary_2_t1688192864 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)L_6, (int32_t)((*(int32_t*)((int32_t*)UnBox(L_7, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 23))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
goto IL_0064;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0043;
throw e;
}
CATCH_0043:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_8 = ___value1;
RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 44)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL);
String_t* L_11 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_8, (RuntimeObject *)L_10, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, (String_t*)L_11, (String_t*)_stringLiteral3493618073, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, Dictionary_2_System_Collections_IDictionary_Add_m1815564944_RuntimeMethod_var);
} // end catch (depth: 2)
IL_0064:
{
goto IL_0087;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t3927145244_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0066;
throw e;
}
CATCH_0066:
{ // begin catch(System.InvalidCastException)
RuntimeObject * L_13 = ___key0;
RuntimeTypeHandle_t3027515415 L_14 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->klass->rgctx_data, 45)) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_15 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_14, /*hidden argument*/NULL);
String_t* L_16 = SR_Format_m1395559496(NULL /*static, unused*/, (String_t*)_stringLiteral178859674, (RuntimeObject *)L_13, (RuntimeObject *)L_15, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_17 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_17, (String_t*)L_16, (String_t*)_stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, Dictionary_2_System_Collections_IDictionary_Add_m1815564944_RuntimeMethod_var);
} // end catch (depth: 1)
IL_0087:
{
return;
}
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IDictionary.Contains(System.Object)
extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m3752831373_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1688192864 *)__this);
bool L_3 = (( bool (*) (Dictionary_2_t1688192864 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 46));
return L_3;
}
IL_0015:
{
return (bool)0;
}
}
// System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IDictionary.GetEnumerator()
extern "C" RuntimeObject* Dictionary_2_System_Collections_IDictionary_GetEnumerator_m4014649469_gshared (Dictionary_2_t1688192864 * __this, const RuntimeMethod* method)
{
{
Enumerator_t3642375639 L_0;
memset(&L_0, 0, sizeof(L_0));
Enumerator__ctor_m2602380025((&L_0), (Dictionary_2_t1688192864 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 28));
Enumerator_t3642375639 L_1 = L_0;
RuntimeObject * L_2 = Box(IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 27), &L_1);
return (RuntimeObject*)L_2;
}
}
// System.Void System.Collections.Generic.Dictionary`2<System.Object,Newtonsoft.Json.ReadType>::System.Collections.IDictionary.Remove(System.Object)
extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m2068034037_gshared (Dictionary_2_t1688192864 * __this, RuntimeObject * ___key0, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = ___key0;
bool L_1 = (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 41));
if (!L_1)
{
goto IL_0015;
}
}
{
RuntimeObject * L_2 = ___key0;
NullCheck((Dictionary_2_t1688192864 *)__this);
(( bool (*) (Dictionary_2_t1688192864 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22)->methodPointer)((Dictionary_2_t1688192864 *)__this, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_2, IL2CPP_RGCTX_DATA(method->klass->rgctx_data, 33))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 22));
}
IL_0015:
{
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
| [
"dngoins@hotmail.com"
] | dngoins@hotmail.com |
641406d954a7d2ebb2e78a96ebc4e16ed93a9c12 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /src/util/json.hpp | c383674bf1ec1f268b7a076ba768bb4b196b5f7f | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 2020-06-15T06:35:09.807322 | 2017-09-05T15:13:07 | 2017-09-05T15:13:07 | 75,319,626 | 2 | 1 | Apache-2.0 | 2018-10-11T20:36:04 | 2016-12-01T18:15:04 | C++ | UTF-8 | C++ | false | false | 355,687 | hpp | /*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 2.0.5
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Copyright (c) 2013-2016 Niels Lohmann <http://nlohmann.me>.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#ifndef NLOHMANN_JSON_HPP
#define NLOHMANN_JSON_HPP
#include <algorithm>
#include <array>
#include <cassert>
#include <ciso646>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <locale>
#include <map>
#include <memory>
#include <numeric>
#include <sstream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
// exclude unsupported compilers
#if defined(__clang__)
#define CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
#if CLANG_VERSION < 30400
#error "unsupported Clang version - see https://github.com/nlohmann/json#supported-compilers"
#endif
#elif defined(__GNUC__)
#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#if GCC_VERSION < 40900
#error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers"
#endif
#endif
// disable float-equal warnings on GCC/clang
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
// allow for portable deprecation warnings
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#define JSON_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
#define JSON_DEPRECATED __declspec(deprecated)
#else
#define JSON_DEPRECATED
#endif
/*!
@brief namespace for Niels Lohmann
@see https://github.com/nlohmann
@since version 1.0.0
*/
namespace nlohmann
{
/*!
@brief unnamed namespace with internal helper functions
@since version 1.0.0
*/
namespace
{
/*!
@brief Helper to determine whether there's a key_type for T.
Thus helper is used to tell associative containers apart from other containers
such as sequence containers. For instance, `std::map` passes the test as it
contains a `mapped_type`, whereas `std::vector` fails the test.
@sa http://stackoverflow.com/a/7728728/266378
@since version 1.0.0
*/
template<typename T>
struct has_mapped_type
{
private:
template<typename C> static char test(typename C::mapped_type*);
template<typename C> static char (&test(...))[2];
public:
static constexpr bool value = sizeof(test<T>(0)) == 1;
};
/*!
@brief helper class to create locales with decimal point
This struct is used a default locale during the JSON serialization. JSON
requires the decimal point to be `.`, so this function overloads the
`do_decimal_point()` function to return `.`. This function is called by
float-to-string conversions to retrieve the decimal separator between integer
and fractional parts.
@sa https://github.com/nlohmann/json/issues/51#issuecomment-86869315
@since version 2.0.0
*/
struct DecimalSeparator : std::numpunct<char>
{
char do_decimal_point() const
{
return '.';
}
};
}
/*!
@brief a class to store JSON values
@tparam ObjectType type for JSON objects (`std::map` by default; will be used
in @ref object_t)
@tparam ArrayType type for JSON arrays (`std::vector` by default; will be used
in @ref array_t)
@tparam StringType type for JSON strings and object keys (`std::string` by
default; will be used in @ref string_t)
@tparam BooleanType type for JSON booleans (`bool` by default; will be used
in @ref boolean_t)
@tparam NumberIntegerType type for JSON integer numbers (`int64_t` by
default; will be used in @ref number_integer_t)
@tparam NumberUnsignedType type for JSON unsigned integer numbers (@c
`uint64_t` by default; will be used in @ref number_unsigned_t)
@tparam NumberFloatType type for JSON floating-point numbers (`double` by
default; will be used in @ref number_float_t)
@tparam AllocatorType type of the allocator to use (`std::allocator` by
default)
@requirement The class satisfies the following concept requirements:
- Basic
- [DefaultConstructible](http://en.cppreference.com/w/cpp/concept/DefaultConstructible):
JSON values can be default constructed. The result will be a JSON null value.
- [MoveConstructible](http://en.cppreference.com/w/cpp/concept/MoveConstructible):
A JSON value can be constructed from an rvalue argument.
- [CopyConstructible](http://en.cppreference.com/w/cpp/concept/CopyConstructible):
A JSON value can be copy-constructed from an lvalue expression.
- [MoveAssignable](http://en.cppreference.com/w/cpp/concept/MoveAssignable):
A JSON value van be assigned from an rvalue argument.
- [CopyAssignable](http://en.cppreference.com/w/cpp/concept/CopyAssignable):
A JSON value can be copy-assigned from an lvalue expression.
- [Destructible](http://en.cppreference.com/w/cpp/concept/Destructible):
JSON values can be destructed.
- Layout
- [StandardLayoutType](http://en.cppreference.com/w/cpp/concept/StandardLayoutType):
JSON values have
[standard layout](http://en.cppreference.com/w/cpp/language/data_members#Standard_layout):
All non-static data members are private and standard layout types, the class
has no virtual functions or (virtual) base classes.
- Library-wide
- [EqualityComparable](http://en.cppreference.com/w/cpp/concept/EqualityComparable):
JSON values can be compared with `==`, see @ref
operator==(const_reference,const_reference).
- [LessThanComparable](http://en.cppreference.com/w/cpp/concept/LessThanComparable):
JSON values can be compared with `<`, see @ref
operator<(const_reference,const_reference).
- [Swappable](http://en.cppreference.com/w/cpp/concept/Swappable):
Any JSON lvalue or rvalue of can be swapped with any lvalue or rvalue of
other compatible types, using unqualified function call @ref swap().
- [NullablePointer](http://en.cppreference.com/w/cpp/concept/NullablePointer):
JSON values can be compared against `std::nullptr_t` objects which are used
to model the `null` value.
- Container
- [Container](http://en.cppreference.com/w/cpp/concept/Container):
JSON values can be used like STL containers and provide iterator access.
- [ReversibleContainer](http://en.cppreference.com/w/cpp/concept/ReversibleContainer);
JSON values can be used like STL containers and provide reverse iterator
access.
@invariant The member variables @a m_value and @a m_type have the following
relationship:
- If `m_type == value_t::object`, then `m_value.object != nullptr`.
- If `m_type == value_t::array`, then `m_value.array != nullptr`.
- If `m_type == value_t::string`, then `m_value.string != nullptr`.
The invariants are checked by member function assert_invariant().
@internal
@note ObjectType trick from http://stackoverflow.com/a/9860911
@endinternal
@see [RFC 7159: The JavaScript Object Notation (JSON) Data Interchange
Format](http://rfc7159.net/rfc7159)
@since version 1.0.0
@nosubgrouping
*/
template <
template<typename U, typename V, typename... Args> class ObjectType = std::map,
template<typename U, typename... Args> class ArrayType = std::vector,
class StringType = std::string,
class BooleanType = bool,
class NumberIntegerType = std::int64_t,
class NumberUnsignedType = std::uint64_t,
class NumberFloatType = double,
template<typename U> class AllocatorType = std::allocator
>
class basic_json
{
private:
/// workaround type for MSVC
using basic_json_t = basic_json<ObjectType, ArrayType, StringType,
BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType,
AllocatorType>;
public:
// forward declarations
template<typename Base> class json_reverse_iterator;
class json_pointer;
/////////////////////
// container types //
/////////////////////
/// @name container types
/// The canonic container types to use @ref basic_json like any other STL
/// container.
/// @{
/// the type of elements in a basic_json container
using value_type = basic_json;
/// the type of an element reference
using reference = value_type&;
/// the type of an element const reference
using const_reference = const value_type&;
/// a type to represent differences between iterators
using difference_type = std::ptrdiff_t;
/// a type to represent container sizes
using size_type = std::size_t;
/// the allocator type
using allocator_type = AllocatorType<basic_json>;
/// the type of an element pointer
using pointer = typename std::allocator_traits<allocator_type>::pointer;
/// the type of an element const pointer
using const_pointer = typename std::allocator_traits<allocator_type>::const_pointer;
/// an iterator for a basic_json container
class iterator;
/// a const iterator for a basic_json container
class const_iterator;
/// a reverse iterator for a basic_json container
using reverse_iterator = json_reverse_iterator<typename basic_json::iterator>;
/// a const reverse iterator for a basic_json container
using const_reverse_iterator = json_reverse_iterator<typename basic_json::const_iterator>;
/// @}
/*!
@brief returns the allocator associated with the container
*/
static allocator_type get_allocator()
{
return allocator_type();
}
///////////////////////////
// JSON value data types //
///////////////////////////
/// @name JSON value data types
/// The data types to store a JSON value. These types are derived from
/// the template arguments passed to class @ref basic_json.
/// @{
/*!
@brief a type for an object
[RFC 7159](http://rfc7159.net/rfc7159) describes JSON objects as follows:
> An object is an unordered collection of zero or more name/value pairs,
> where a name is a string and a value is a string, number, boolean, null,
> object, or array.
To store objects in C++, a type is defined by the template parameters
described below.
@tparam ObjectType the container to store objects (e.g., `std::map` or
`std::unordered_map`)
@tparam StringType the type of the keys or names (e.g., `std::string`).
The comparison function `std::less<StringType>` is used to order elements
inside the container.
@tparam AllocatorType the allocator to use for objects (e.g.,
`std::allocator`)
#### Default type
With the default values for @a ObjectType (`std::map`), @a StringType
(`std::string`), and @a AllocatorType (`std::allocator`), the default
value for @a object_t is:
@code {.cpp}
std::map<
std::string, // key_type
basic_json, // value_type
std::less<std::string>, // key_compare
std::allocator<std::pair<const std::string, basic_json>> // allocator_type
>
@endcode
#### Behavior
The choice of @a object_t influences the behavior of the JSON class. With
the default type, objects have the following behavior:
- When all names are unique, objects will be interoperable in the sense
that all software implementations receiving that object will agree on
the name-value mappings.
- When the names within an object are not unique, later stored name/value
pairs overwrite previously stored name/value pairs, leaving the used
names unique. For instance, `{"key": 1}` and `{"key": 2, "key": 1}` will
be treated as equal and both stored as `{"key": 1}`.
- Internally, name/value pairs are stored in lexicographical order of the
names. Objects will also be serialized (see @ref dump) in this order.
For instance, `{"b": 1, "a": 2}` and `{"a": 2, "b": 1}` will be stored
and serialized as `{"a": 2, "b": 1}`.
- When comparing objects, the order of the name/value pairs is irrelevant.
This makes objects interoperable in the sense that they will not be
affected by these differences. For instance, `{"b": 1, "a": 2}` and
`{"a": 2, "b": 1}` will be treated as equal.
#### Limits
[RFC 7159](http://rfc7159.net/rfc7159) specifies:
> An implementation may set limits on the maximum depth of nesting.
In this class, the object's limit of nesting is not constraint explicitly.
However, a maximum depth of nesting may be introduced by the compiler or
runtime environment. A theoretical limit can be queried by calling the
@ref max_size function of a JSON object.
#### Storage
Objects are stored as pointers in a @ref basic_json type. That is, for any
access to object values, a pointer of type `object_t*` must be
dereferenced.
@sa @ref array_t -- type for an array value
@since version 1.0.0
@note The order name/value pairs are added to the object is *not*
preserved by the library. Therefore, iterating an object may return
name/value pairs in a different order than they were originally stored. In
fact, keys will be traversed in alphabetical order as `std::map` with
`std::less` is used by default. Please note this behavior conforms to [RFC
7159](http://rfc7159.net/rfc7159), because any order implements the
specified "unordered" nature of JSON objects.
*/
using object_t = ObjectType<StringType,
basic_json,
std::less<StringType>,
AllocatorType<std::pair<const StringType,
basic_json>>>;
/*!
@brief a type for an array
[RFC 7159](http://rfc7159.net/rfc7159) describes JSON arrays as follows:
> An array is an ordered sequence of zero or more values.
To store objects in C++, a type is defined by the template parameters
explained below.
@tparam ArrayType container type to store arrays (e.g., `std::vector` or
`std::list`)
@tparam AllocatorType allocator to use for arrays (e.g., `std::allocator`)
#### Default type
With the default values for @a ArrayType (`std::vector`) and @a
AllocatorType (`std::allocator`), the default value for @a array_t is:
@code {.cpp}
std::vector<
basic_json, // value_type
std::allocator<basic_json> // allocator_type
>
@endcode
#### Limits
[RFC 7159](http://rfc7159.net/rfc7159) specifies:
> An implementation may set limits on the maximum depth of nesting.
In this class, the array's limit of nesting is not constraint explicitly.
However, a maximum depth of nesting may be introduced by the compiler or
runtime environment. A theoretical limit can be queried by calling the
@ref max_size function of a JSON array.
#### Storage
Arrays are stored as pointers in a @ref basic_json type. That is, for any
access to array values, a pointer of type `array_t*` must be dereferenced.
@sa @ref object_t -- type for an object value
@since version 1.0.0
*/
using array_t = ArrayType<basic_json, AllocatorType<basic_json>>;
/*!
@brief a type for a string
[RFC 7159](http://rfc7159.net/rfc7159) describes JSON strings as follows:
> A string is a sequence of zero or more Unicode characters.
To store objects in C++, a type is defined by the template parameter
described below. Unicode values are split by the JSON class into
byte-sized characters during deserialization.
@tparam StringType the container to store strings (e.g., `std::string`).
Note this container is used for keys/names in objects, see @ref object_t.
#### Default type
With the default values for @a StringType (`std::string`), the default
value for @a string_t is:
@code {.cpp}
std::string
@endcode
#### String comparison
[RFC 7159](http://rfc7159.net/rfc7159) states:
> Software implementations are typically required to test names of object
> members for equality. Implementations that transform the textual
> representation into sequences of Unicode code units and then perform the
> comparison numerically, code unit by code unit, are interoperable in the
> sense that implementations will agree in all cases on equality or
> inequality of two strings. For example, implementations that compare
> strings with escaped characters unconverted may incorrectly find that
> `"a\\b"` and `"a\u005Cb"` are not equal.
This implementation is interoperable as it does compare strings code unit
by code unit.
#### Storage
String values are stored as pointers in a @ref basic_json type. That is,
for any access to string values, a pointer of type `string_t*` must be
dereferenced.
@since version 1.0.0
*/
using string_t = StringType;
/*!
@brief a type for a boolean
[RFC 7159](http://rfc7159.net/rfc7159) implicitly describes a boolean as a
type which differentiates the two literals `true` and `false`.
To store objects in C++, a type is defined by the template parameter @a
BooleanType which chooses the type to use.
#### Default type
With the default values for @a BooleanType (`bool`), the default value for
@a boolean_t is:
@code {.cpp}
bool
@endcode
#### Storage
Boolean values are stored directly inside a @ref basic_json type.
@since version 1.0.0
*/
using boolean_t = BooleanType;
/*!
@brief a type for a number (integer)
[RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows:
> The representation of numbers is similar to that used in most
> programming languages. A number is represented in base 10 using decimal
> digits. It contains an integer component that may be prefixed with an
> optional minus sign, which may be followed by a fraction part and/or an
> exponent part. Leading zeros are not allowed. (...) Numeric values that
> cannot be represented in the grammar below (such as Infinity and NaN)
> are not permitted.
This description includes both integer and floating-point numbers.
However, C++ allows more precise storage if it is known whether the number
is a signed integer, an unsigned integer or a floating-point number.
Therefore, three different types, @ref number_integer_t, @ref
number_unsigned_t and @ref number_float_t are used.
To store integer numbers in C++, a type is defined by the template
parameter @a NumberIntegerType which chooses the type to use.
#### Default type
With the default values for @a NumberIntegerType (`int64_t`), the default
value for @a number_integer_t is:
@code {.cpp}
int64_t
@endcode
#### Default behavior
- The restrictions about leading zeros is not enforced in C++. Instead,
leading zeros in integer literals lead to an interpretation as octal
number. Internally, the value will be stored as decimal number. For
instance, the C++ integer literal `010` will be serialized to `8`.
During deserialization, leading zeros yield an error.
- Not-a-number (NaN) values will be serialized to `null`.
#### Limits
[RFC 7159](http://rfc7159.net/rfc7159) specifies:
> An implementation may set limits on the range and precision of numbers.
When the default type is used, the maximal integer number that can be
stored is `9223372036854775807` (INT64_MAX) and the minimal integer number
that can be stored is `-9223372036854775808` (INT64_MIN). Integer numbers
that are out of range will yield over/underflow when used in a
constructor. During deserialization, too large or small integer numbers
will be automatically be stored as @ref number_unsigned_t or @ref
number_float_t.
[RFC 7159](http://rfc7159.net/rfc7159) further states:
> Note that when such software is used, numbers that are integers and are
> in the range \f$[-2^{53}+1, 2^{53}-1]\f$ are interoperable in the sense
> that implementations will agree exactly on their numeric values.
As this range is a subrange of the exactly supported range [INT64_MIN,
INT64_MAX], this class's integer type is interoperable.
#### Storage
Integer number values are stored directly inside a @ref basic_json type.
@sa @ref number_float_t -- type for number values (floating-point)
@sa @ref number_unsigned_t -- type for number values (unsigned integer)
@since version 1.0.0
*/
using number_integer_t = NumberIntegerType;
/*!
@brief a type for a number (unsigned)
[RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows:
> The representation of numbers is similar to that used in most
> programming languages. A number is represented in base 10 using decimal
> digits. It contains an integer component that may be prefixed with an
> optional minus sign, which may be followed by a fraction part and/or an
> exponent part. Leading zeros are not allowed. (...) Numeric values that
> cannot be represented in the grammar below (such as Infinity and NaN)
> are not permitted.
This description includes both integer and floating-point numbers.
However, C++ allows more precise storage if it is known whether the number
is a signed integer, an unsigned integer or a floating-point number.
Therefore, three different types, @ref number_integer_t, @ref
number_unsigned_t and @ref number_float_t are used.
To store unsigned integer numbers in C++, a type is defined by the
template parameter @a NumberUnsignedType which chooses the type to use.
#### Default type
With the default values for @a NumberUnsignedType (`uint64_t`), the
default value for @a number_unsigned_t is:
@code {.cpp}
uint64_t
@endcode
#### Default behavior
- The restrictions about leading zeros is not enforced in C++. Instead,
leading zeros in integer literals lead to an interpretation as octal
number. Internally, the value will be stored as decimal number. For
instance, the C++ integer literal `010` will be serialized to `8`.
During deserialization, leading zeros yield an error.
- Not-a-number (NaN) values will be serialized to `null`.
#### Limits
[RFC 7159](http://rfc7159.net/rfc7159) specifies:
> An implementation may set limits on the range and precision of numbers.
When the default type is used, the maximal integer number that can be
stored is `18446744073709551615` (UINT64_MAX) and the minimal integer
number that can be stored is `0`. Integer numbers that are out of range
will yield over/underflow when used in a constructor. During
deserialization, too large or small integer numbers will be automatically
be stored as @ref number_integer_t or @ref number_float_t.
[RFC 7159](http://rfc7159.net/rfc7159) further states:
> Note that when such software is used, numbers that are integers and are
> in the range \f$[-2^{53}+1, 2^{53}-1]\f$ are interoperable in the sense
> that implementations will agree exactly on their numeric values.
As this range is a subrange (when considered in conjunction with the
number_integer_t type) of the exactly supported range [0, UINT64_MAX],
this class's integer type is interoperable.
#### Storage
Integer number values are stored directly inside a @ref basic_json type.
@sa @ref number_float_t -- type for number values (floating-point)
@sa @ref number_integer_t -- type for number values (integer)
@since version 2.0.0
*/
using number_unsigned_t = NumberUnsignedType;
/*!
@brief a type for a number (floating-point)
[RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows:
> The representation of numbers is similar to that used in most
> programming languages. A number is represented in base 10 using decimal
> digits. It contains an integer component that may be prefixed with an
> optional minus sign, which may be followed by a fraction part and/or an
> exponent part. Leading zeros are not allowed. (...) Numeric values that
> cannot be represented in the grammar below (such as Infinity and NaN)
> are not permitted.
This description includes both integer and floating-point numbers.
However, C++ allows more precise storage if it is known whether the number
is a signed integer, an unsigned integer or a floating-point number.
Therefore, three different types, @ref number_integer_t, @ref
number_unsigned_t and @ref number_float_t are used.
To store floating-point numbers in C++, a type is defined by the template
parameter @a NumberFloatType which chooses the type to use.
#### Default type
With the default values for @a NumberFloatType (`double`), the default
value for @a number_float_t is:
@code {.cpp}
double
@endcode
#### Default behavior
- The restrictions about leading zeros is not enforced in C++. Instead,
leading zeros in floating-point literals will be ignored. Internally,
the value will be stored as decimal number. For instance, the C++
floating-point literal `01.2` will be serialized to `1.2`. During
deserialization, leading zeros yield an error.
- Not-a-number (NaN) values will be serialized to `null`.
#### Limits
[RFC 7159](http://rfc7159.net/rfc7159) states:
> This specification allows implementations to set limits on the range and
> precision of numbers accepted. Since software that implements IEEE
> 754-2008 binary64 (double precision) numbers is generally available and
> widely used, good interoperability can be achieved by implementations
> that expect no more precision or range than these provide, in the sense
> that implementations will approximate JSON numbers within the expected
> precision.
This implementation does exactly follow this approach, as it uses double
precision floating-point numbers. Note values smaller than
`-1.79769313486232e+308` and values greater than `1.79769313486232e+308`
will be stored as NaN internally and be serialized to `null`.
#### Storage
Floating-point number values are stored directly inside a @ref basic_json
type.
@sa @ref number_integer_t -- type for number values (integer)
@sa @ref number_unsigned_t -- type for number values (unsigned integer)
@since version 1.0.0
*/
using number_float_t = NumberFloatType;
/// @}
///////////////////////////
// JSON type enumeration //
///////////////////////////
/*!
@brief the JSON type enumeration
This enumeration collects the different JSON types. It is internally used
to distinguish the stored values, and the functions @ref is_null(), @ref
is_object(), @ref is_array(), @ref is_string(), @ref is_boolean(), @ref
is_number() (with @ref is_number_integer(), @ref is_number_unsigned(), and
@ref is_number_float()), @ref is_discarded(), @ref is_primitive(), and
@ref is_structured() rely on it.
@note There are three enumeration entries (number_integer,
number_unsigned, and number_float), because the library distinguishes
these three types for numbers: @ref number_unsigned_t is used for unsigned
integers, @ref number_integer_t is used for signed integers, and @ref
number_float_t is used for floating-point numbers or to approximate
integers which do not fit in the limits of their respective type.
@sa @ref basic_json(const value_t value_type) -- create a JSON value with
the default value for a given type
@since version 1.0.0
*/
enum class value_t : uint8_t
{
null, ///< null value
object, ///< object (unordered set of name/value pairs)
array, ///< array (ordered collection of values)
string, ///< string value
boolean, ///< boolean value
number_integer, ///< number value (signed integer)
number_unsigned, ///< number value (unsigned integer)
number_float, ///< number value (floating-point)
discarded ///< discarded by the the parser callback function
};
private:
/// helper for exception-safe object creation
template<typename T, typename... Args>
static T* create(Args&& ... args)
{
AllocatorType<T> alloc;
auto deleter = [&](T * object)
{
alloc.deallocate(object, 1);
};
std::unique_ptr<T, decltype(deleter)> object(alloc.allocate(1), deleter);
alloc.construct(object.get(), std::forward<Args>(args)...);
assert(object.get() != nullptr);
return object.release();
}
////////////////////////
// JSON value storage //
////////////////////////
/*!
@brief a JSON value
The actual storage for a JSON value of the @ref basic_json class. This
union combines the different storage types for the JSON value types
defined in @ref value_t.
JSON type | value_t type | used type
--------- | --------------- | ------------------------
object | object | pointer to @ref object_t
array | array | pointer to @ref array_t
string | string | pointer to @ref string_t
boolean | boolean | @ref boolean_t
number | number_integer | @ref number_integer_t
number | number_unsigned | @ref number_unsigned_t
number | number_float | @ref number_float_t
null | null | *no value is stored*
@note Variable-length types (objects, arrays, and strings) are stored as
pointers. The size of the union should not exceed 64 bits if the default
value types are used.
@since version 1.0.0
*/
union json_value
{
/// object (stored with pointer to save storage)
object_t* object;
/// array (stored with pointer to save storage)
array_t* array;
/// string (stored with pointer to save storage)
string_t* string;
/// boolean
boolean_t boolean;
/// number (integer)
number_integer_t number_integer;
/// number (unsigned integer)
number_unsigned_t number_unsigned;
/// number (floating-point)
number_float_t number_float;
/// default constructor (for null values)
json_value() = default;
/// constructor for booleans
json_value(boolean_t v) noexcept : boolean(v) {}
/// constructor for numbers (integer)
json_value(number_integer_t v) noexcept : number_integer(v) {}
/// constructor for numbers (unsigned)
json_value(number_unsigned_t v) noexcept : number_unsigned(v) {}
/// constructor for numbers (floating-point)
json_value(number_float_t v) noexcept : number_float(v) {}
/// constructor for empty values of a given type
json_value(value_t t)
{
switch (t)
{
case value_t::object:
{
object = create<object_t>();
break;
}
case value_t::array:
{
array = create<array_t>();
break;
}
case value_t::string:
{
string = create<string_t>("");
break;
}
case value_t::boolean:
{
boolean = boolean_t(false);
break;
}
case value_t::number_integer:
{
number_integer = number_integer_t(0);
break;
}
case value_t::number_unsigned:
{
number_unsigned = number_unsigned_t(0);
break;
}
case value_t::number_float:
{
number_float = number_float_t(0.0);
break;
}
default:
{
break;
}
}
}
/// constructor for strings
json_value(const string_t& value)
{
string = create<string_t>(value);
}
/// constructor for objects
json_value(const object_t& value)
{
object = create<object_t>(value);
}
/// constructor for arrays
json_value(const array_t& value)
{
array = create<array_t>(value);
}
};
/*!
@brief checks the class invariants
This function asserts the class invariants. It needs to be called at the
end of every constructor to make sure that created objects respect the
invariant. Furthermore, it has to be called each time the type of a JSON
value is changed, because the invariant expresses a relationship between
@a m_type and @a m_value.
*/
void assert_invariant() const
{
assert(m_type != value_t::object or m_value.object != nullptr);
assert(m_type != value_t::array or m_value.array != nullptr);
assert(m_type != value_t::string or m_value.string != nullptr);
}
public:
//////////////////////////
// JSON parser callback //
//////////////////////////
/*!
@brief JSON callback events
This enumeration lists the parser events that can trigger calling a
callback function of type @ref parser_callback_t during parsing.
@image html callback_events.png "Example when certain parse events are triggered"
@since version 1.0.0
*/
enum class parse_event_t : uint8_t
{
/// the parser read `{` and started to process a JSON object
object_start,
/// the parser read `}` and finished processing a JSON object
object_end,
/// the parser read `[` and started to process a JSON array
array_start,
/// the parser read `]` and finished processing a JSON array
array_end,
/// the parser read a key of a value in an object
key,
/// the parser finished reading a JSON value
value
};
/*!
@brief per-element parser callback type
With a parser callback function, the result of parsing a JSON text can be
influenced. When passed to @ref parse(std::istream&, const
parser_callback_t) or @ref parse(const char*, const parser_callback_t),
it is called on certain events (passed as @ref parse_event_t via parameter
@a event) with a set recursion depth @a depth and context JSON value
@a parsed. The return value of the callback function is a boolean
indicating whether the element that emitted the callback shall be kept or
not.
We distinguish six scenarios (determined by the event type) in which the
callback function can be called. The following table describes the values
of the parameters @a depth, @a event, and @a parsed.
parameter @a event | description | parameter @a depth | parameter @a parsed
------------------ | ----------- | ------------------ | -------------------
parse_event_t::object_start | the parser read `{` and started to process a JSON object | depth of the parent of the JSON object | a JSON value with type discarded
parse_event_t::key | the parser read a key of a value in an object | depth of the currently parsed JSON object | a JSON string containing the key
parse_event_t::object_end | the parser read `}` and finished processing a JSON object | depth of the parent of the JSON object | the parsed JSON object
parse_event_t::array_start | the parser read `[` and started to process a JSON array | depth of the parent of the JSON array | a JSON value with type discarded
parse_event_t::array_end | the parser read `]` and finished processing a JSON array | depth of the parent of the JSON array | the parsed JSON array
parse_event_t::value | the parser finished reading a JSON value | depth of the value | the parsed JSON value
@image html callback_events.png "Example when certain parse events are triggered"
Discarding a value (i.e., returning `false`) has different effects
depending on the context in which function was called:
- Discarded values in structured types are skipped. That is, the parser
will behave as if the discarded value was never read.
- In case a value outside a structured type is skipped, it is replaced
with `null`. This case happens if the top-level element is skipped.
@param[in] depth the depth of the recursion during parsing
@param[in] event an event of type parse_event_t indicating the context in
the callback function has been called
@param[in,out] parsed the current intermediate parse result; note that
writing to this value has no effect for parse_event_t::key events
@return Whether the JSON value which called the function during parsing
should be kept (`true`) or not (`false`). In the latter case, it is either
skipped completely or replaced by an empty discarded object.
@sa @ref parse(std::istream&, parser_callback_t) or
@ref parse(const char*, parser_callback_t) for examples
@since version 1.0.0
*/
using parser_callback_t = std::function<bool(int depth,
parse_event_t event,
basic_json& parsed)>;
//////////////////
// constructors //
//////////////////
/// @name constructors and destructors
/// Constructors of class @ref basic_json, copy/move constructor, copy
/// assignment, static functions creating objects, and the destructor.
/// @{
/*!
@brief create an empty value with a given type
Create an empty JSON value with a given type. The value will be default
initialized with an empty value which depends on the type:
Value type | initial value
----------- | -------------
null | `null`
boolean | `false`
string | `""`
number | `0`
object | `{}`
array | `[]`
@param[in] value_type the type of the value to create
@complexity Constant.
@throw std::bad_alloc if allocation for object, array, or string value
fails
@liveexample{The following code shows the constructor for different @ref
value_t values,basic_json__value_t}
@sa @ref basic_json(std::nullptr_t) -- create a `null` value
@sa @ref basic_json(boolean_t value) -- create a boolean value
@sa @ref basic_json(const string_t&) -- create a string value
@sa @ref basic_json(const object_t&) -- create a object value
@sa @ref basic_json(const array_t&) -- create a array value
@sa @ref basic_json(const number_float_t) -- create a number
(floating-point) value
@sa @ref basic_json(const number_integer_t) -- create a number (integer)
value
@sa @ref basic_json(const number_unsigned_t) -- create a number (unsigned)
value
@since version 1.0.0
*/
basic_json(const value_t value_type)
: m_type(value_type), m_value(value_type)
{
assert_invariant();
}
/*!
@brief create a null object
Create a `null` JSON value. It either takes a null pointer as parameter
(explicitly creating `null`) or no parameter (implicitly creating `null`).
The passed null pointer itself is not read -- it is only used to choose
the right constructor.
@complexity Constant.
@exceptionsafety No-throw guarantee: this constructor never throws
exceptions.
@liveexample{The following code shows the constructor with and without a
null pointer parameter.,basic_json__nullptr_t}
@since version 1.0.0
*/
basic_json(std::nullptr_t = nullptr) noexcept
: basic_json(value_t::null)
{
assert_invariant();
}
/*!
@brief create an object (explicit)
Create an object JSON value with a given content.
@param[in] val a value for the object
@complexity Linear in the size of the passed @a val.
@throw std::bad_alloc if allocation for object value fails
@liveexample{The following code shows the constructor with an @ref
object_t parameter.,basic_json__object_t}
@sa @ref basic_json(const CompatibleObjectType&) -- create an object value
from a compatible STL container
@since version 1.0.0
*/
basic_json(const object_t& val)
: m_type(value_t::object), m_value(val)
{
assert_invariant();
}
/*!
@brief create an object (implicit)
Create an object JSON value with a given content. This constructor allows
any type @a CompatibleObjectType that can be used to construct values of
type @ref object_t.
@tparam CompatibleObjectType An object type whose `key_type` and
`value_type` is compatible to @ref object_t. Examples include `std::map`,
`std::unordered_map`, `std::multimap`, and `std::unordered_multimap` with
a `key_type` of `std::string`, and a `value_type` from which a @ref
basic_json value can be constructed.
@param[in] val a value for the object
@complexity Linear in the size of the passed @a val.
@throw std::bad_alloc if allocation for object value fails
@liveexample{The following code shows the constructor with several
compatible object type parameters.,basic_json__CompatibleObjectType}
@sa @ref basic_json(const object_t&) -- create an object value
@since version 1.0.0
*/
template<class CompatibleObjectType, typename std::enable_if<
std::is_constructible<typename object_t::key_type, typename CompatibleObjectType::key_type>::value and
std::is_constructible<basic_json, typename CompatibleObjectType::mapped_type>::value, int>::type = 0>
basic_json(const CompatibleObjectType& val)
: m_type(value_t::object)
{
using std::begin;
using std::end;
m_value.object = create<object_t>(begin(val), end(val));
assert_invariant();
}
/*!
@brief create an array (explicit)
Create an array JSON value with a given content.
@param[in] val a value for the array
@complexity Linear in the size of the passed @a val.
@throw std::bad_alloc if allocation for array value fails
@liveexample{The following code shows the constructor with an @ref array_t
parameter.,basic_json__array_t}
@sa @ref basic_json(const CompatibleArrayType&) -- create an array value
from a compatible STL containers
@since version 1.0.0
*/
basic_json(const array_t& val)
: m_type(value_t::array), m_value(val)
{
assert_invariant();
}
/*!
@brief create an array (implicit)
Create an array JSON value with a given content. This constructor allows
any type @a CompatibleArrayType that can be used to construct values of
type @ref array_t.
@tparam CompatibleArrayType An object type whose `value_type` is
compatible to @ref array_t. Examples include `std::vector`, `std::deque`,
`std::list`, `std::forward_list`, `std::array`, `std::set`,
`std::unordered_set`, `std::multiset`, and `unordered_multiset` with a
`value_type` from which a @ref basic_json value can be constructed.
@param[in] val a value for the array
@complexity Linear in the size of the passed @a val.
@throw std::bad_alloc if allocation for array value fails
@liveexample{The following code shows the constructor with several
compatible array type parameters.,basic_json__CompatibleArrayType}
@sa @ref basic_json(const array_t&) -- create an array value
@since version 1.0.0
*/
template<class CompatibleArrayType, typename std::enable_if<
not std::is_same<CompatibleArrayType, typename basic_json_t::iterator>::value and
not std::is_same<CompatibleArrayType, typename basic_json_t::const_iterator>::value and
not std::is_same<CompatibleArrayType, typename basic_json_t::reverse_iterator>::value and
not std::is_same<CompatibleArrayType, typename basic_json_t::const_reverse_iterator>::value and
not std::is_same<CompatibleArrayType, typename array_t::iterator>::value and
not std::is_same<CompatibleArrayType, typename array_t::const_iterator>::value and
std::is_constructible<basic_json, typename CompatibleArrayType::value_type>::value, int>::type = 0>
basic_json(const CompatibleArrayType& val)
: m_type(value_t::array)
{
using std::begin;
using std::end;
m_value.array = create<array_t>(begin(val), end(val));
assert_invariant();
}
/*!
@brief create a string (explicit)
Create an string JSON value with a given content.
@param[in] val a value for the string
@complexity Linear in the size of the passed @a val.
@throw std::bad_alloc if allocation for string value fails
@liveexample{The following code shows the constructor with an @ref
string_t parameter.,basic_json__string_t}
@sa @ref basic_json(const typename string_t::value_type*) -- create a
string value from a character pointer
@sa @ref basic_json(const CompatibleStringType&) -- create a string value
from a compatible string container
@since version 1.0.0
*/
basic_json(const string_t& val)
: m_type(value_t::string), m_value(val)
{
assert_invariant();
}
/*!
@brief create a string (explicit)
Create a string JSON value with a given content.
@param[in] val a literal value for the string
@complexity Linear in the size of the passed @a val.
@throw std::bad_alloc if allocation for string value fails
@liveexample{The following code shows the constructor with string literal
parameter.,basic_json__string_t_value_type}
@sa @ref basic_json(const string_t&) -- create a string value
@sa @ref basic_json(const CompatibleStringType&) -- create a string value
from a compatible string container
@since version 1.0.0
*/
basic_json(const typename string_t::value_type* val)
: basic_json(string_t(val))
{
assert_invariant();
}
/*!
@brief create a string (implicit)
Create a string JSON value with a given content.
@param[in] val a value for the string
@tparam CompatibleStringType an string type which is compatible to @ref
string_t, for instance `std::string`.
@complexity Linear in the size of the passed @a val.
@throw std::bad_alloc if allocation for string value fails
@liveexample{The following code shows the construction of a string value
from a compatible type.,basic_json__CompatibleStringType}
@sa @ref basic_json(const string_t&) -- create a string value
@sa @ref basic_json(const typename string_t::value_type*) -- create a
string value from a character pointer
@since version 1.0.0
*/
template<class CompatibleStringType, typename std::enable_if<
std::is_constructible<string_t, CompatibleStringType>::value, int>::type = 0>
basic_json(const CompatibleStringType& val)
: basic_json(string_t(val))
{
assert_invariant();
}
/*!
@brief create a boolean (explicit)
Creates a JSON boolean type from a given value.
@param[in] val a boolean value to store
@complexity Constant.
@liveexample{The example below demonstrates boolean
values.,basic_json__boolean_t}
@since version 1.0.0
*/
basic_json(boolean_t val) noexcept
: m_type(value_t::boolean), m_value(val)
{
assert_invariant();
}
/*!
@brief create an integer number (explicit)
Create an integer number JSON value with a given content.
@tparam T A helper type to remove this function via SFINAE in case @ref
number_integer_t is the same as `int`. In this case, this constructor
would have the same signature as @ref basic_json(const int value). Note
the helper type @a T is not visible in this constructor's interface.
@param[in] val an integer to create a JSON number from
@complexity Constant.
@liveexample{The example below shows the construction of an integer
number value.,basic_json__number_integer_t}
@sa @ref basic_json(const int) -- create a number value (integer)
@sa @ref basic_json(const CompatibleNumberIntegerType) -- create a number
value (integer) from a compatible number type
@since version 1.0.0
*/
template<typename T, typename std::enable_if<
not (std::is_same<T, int>::value) and
std::is_same<T, number_integer_t>::value, int>::type = 0>
basic_json(const number_integer_t val) noexcept
: m_type(value_t::number_integer), m_value(val)
{
assert_invariant();
}
/*!
@brief create an integer number from an enum type (explicit)
Create an integer number JSON value with a given content.
@param[in] val an integer to create a JSON number from
@note This constructor allows to pass enums directly to a constructor. As
C++ has no way of specifying the type of an anonymous enum explicitly, we
can only rely on the fact that such values implicitly convert to int. As
int may already be the same type of number_integer_t, we may need to
switch off the constructor @ref basic_json(const number_integer_t).
@complexity Constant.
@liveexample{The example below shows the construction of an integer
number value from an anonymous enum.,basic_json__const_int}
@sa @ref basic_json(const number_integer_t) -- create a number value
(integer)
@sa @ref basic_json(const CompatibleNumberIntegerType) -- create a number
value (integer) from a compatible number type
@since version 1.0.0
*/
basic_json(const int val) noexcept
: m_type(value_t::number_integer),
m_value(static_cast<number_integer_t>(val))
{
assert_invariant();
}
/*!
@brief create an integer number (implicit)
Create an integer number JSON value with a given content. This constructor
allows any type @a CompatibleNumberIntegerType that can be used to
construct values of type @ref number_integer_t.
@tparam CompatibleNumberIntegerType An integer type which is compatible to
@ref number_integer_t. Examples include the types `int`, `int32_t`,
`long`, and `short`.
@param[in] val an integer to create a JSON number from
@complexity Constant.
@liveexample{The example below shows the construction of several integer
number values from compatible
types.,basic_json__CompatibleIntegerNumberType}
@sa @ref basic_json(const number_integer_t) -- create a number value
(integer)
@sa @ref basic_json(const int) -- create a number value (integer)
@since version 1.0.0
*/
template<typename CompatibleNumberIntegerType, typename std::enable_if<
std::is_constructible<number_integer_t, CompatibleNumberIntegerType>::value and
std::numeric_limits<CompatibleNumberIntegerType>::is_integer and
std::numeric_limits<CompatibleNumberIntegerType>::is_signed,
CompatibleNumberIntegerType>::type = 0>
basic_json(const CompatibleNumberIntegerType val) noexcept
: m_type(value_t::number_integer),
m_value(static_cast<number_integer_t>(val))
{
assert_invariant();
}
/*!
@brief create an unsigned integer number (explicit)
Create an unsigned integer number JSON value with a given content.
@tparam T helper type to compare number_unsigned_t and unsigned int (not
visible in) the interface.
@param[in] val an integer to create a JSON number from
@complexity Constant.
@sa @ref basic_json(const CompatibleNumberUnsignedType) -- create a number
value (unsigned integer) from a compatible number type
@since version 2.0.0
*/
template<typename T, typename std::enable_if<
not (std::is_same<T, int>::value) and
std::is_same<T, number_unsigned_t>::value, int>::type = 0>
basic_json(const number_unsigned_t val) noexcept
: m_type(value_t::number_unsigned), m_value(val)
{
assert_invariant();
}
/*!
@brief create an unsigned number (implicit)
Create an unsigned number JSON value with a given content. This
constructor allows any type @a CompatibleNumberUnsignedType that can be
used to construct values of type @ref number_unsigned_t.
@tparam CompatibleNumberUnsignedType An integer type which is compatible
to @ref number_unsigned_t. Examples may include the types `unsigned int`,
`uint32_t`, or `unsigned short`.
@param[in] val an unsigned integer to create a JSON number from
@complexity Constant.
@sa @ref basic_json(const number_unsigned_t) -- create a number value
(unsigned)
@since version 2.0.0
*/
template<typename CompatibleNumberUnsignedType, typename std::enable_if <
std::is_constructible<number_unsigned_t, CompatibleNumberUnsignedType>::value and
std::numeric_limits<CompatibleNumberUnsignedType>::is_integer and
not std::numeric_limits<CompatibleNumberUnsignedType>::is_signed,
CompatibleNumberUnsignedType>::type = 0>
basic_json(const CompatibleNumberUnsignedType val) noexcept
: m_type(value_t::number_unsigned),
m_value(static_cast<number_unsigned_t>(val))
{
assert_invariant();
}
/*!
@brief create a floating-point number (explicit)
Create a floating-point number JSON value with a given content.
@param[in] val a floating-point value to create a JSON number from
@note [RFC 7159](http://www.rfc-editor.org/rfc/rfc7159.txt), section 6
disallows NaN values:
> Numeric values that cannot be represented in the grammar below (such as
> Infinity and NaN) are not permitted.
In case the parameter @a val is not a number, a JSON null value is created
instead.
@complexity Constant.
@liveexample{The following example creates several floating-point
values.,basic_json__number_float_t}
@sa @ref basic_json(const CompatibleNumberFloatType) -- create a number
value (floating-point) from a compatible number type
@since version 1.0.0
*/
basic_json(const number_float_t val) noexcept
: m_type(value_t::number_float), m_value(val)
{
// replace infinity and NAN by null
if (not std::isfinite(val))
{
m_type = value_t::null;
m_value = json_value();
}
assert_invariant();
}
/*!
@brief create an floating-point number (implicit)
Create an floating-point number JSON value with a given content. This
constructor allows any type @a CompatibleNumberFloatType that can be used
to construct values of type @ref number_float_t.
@tparam CompatibleNumberFloatType A floating-point type which is
compatible to @ref number_float_t. Examples may include the types `float`
or `double`.
@param[in] val a floating-point to create a JSON number from
@note [RFC 7159](http://www.rfc-editor.org/rfc/rfc7159.txt), section 6
disallows NaN values:
> Numeric values that cannot be represented in the grammar below (such as
> Infinity and NaN) are not permitted.
In case the parameter @a val is not a number, a JSON null value is
created instead.
@complexity Constant.
@liveexample{The example below shows the construction of several
floating-point number values from compatible
types.,basic_json__CompatibleNumberFloatType}
@sa @ref basic_json(const number_float_t) -- create a number value
(floating-point)
@since version 1.0.0
*/
template<typename CompatibleNumberFloatType, typename = typename std::enable_if<
std::is_constructible<number_float_t, CompatibleNumberFloatType>::value and
std::is_floating_point<CompatibleNumberFloatType>::value>::type>
basic_json(const CompatibleNumberFloatType val) noexcept
: basic_json(number_float_t(val))
{
assert_invariant();
}
/*!
@brief create a container (array or object) from an initializer list
Creates a JSON value of type array or object from the passed initializer
list @a init. In case @a type_deduction is `true` (default), the type of
the JSON value to be created is deducted from the initializer list @a init
according to the following rules:
1. If the list is empty, an empty JSON object value `{}` is created.
2. If the list consists of pairs whose first element is a string, a JSON
object value is created where the first elements of the pairs are
treated as keys and the second elements are as values.
3. In all other cases, an array is created.
The rules aim to create the best fit between a C++ initializer list and
JSON values. The rationale is as follows:
1. The empty initializer list is written as `{}` which is exactly an empty
JSON object.
2. C++ has now way of describing mapped types other than to list a list of
pairs. As JSON requires that keys must be of type string, rule 2 is the
weakest constraint one can pose on initializer lists to interpret them
as an object.
3. In all other cases, the initializer list could not be interpreted as
JSON object type, so interpreting it as JSON array type is safe.
With the rules described above, the following JSON values cannot be
expressed by an initializer list:
- the empty array (`[]`): use @ref array(std::initializer_list<basic_json>)
with an empty initializer list in this case
- arrays whose elements satisfy rule 2: use @ref
array(std::initializer_list<basic_json>) with the same initializer list
in this case
@note When used without parentheses around an empty initializer list, @ref
basic_json() is called instead of this function, yielding the JSON null
value.
@param[in] init initializer list with JSON values
@param[in] type_deduction internal parameter; when set to `true`, the type
of the JSON value is deducted from the initializer list @a init; when set
to `false`, the type provided via @a manual_type is forced. This mode is
used by the functions @ref array(std::initializer_list<basic_json>) and
@ref object(std::initializer_list<basic_json>).
@param[in] manual_type internal parameter; when @a type_deduction is set
to `false`, the created JSON value will use the provided type (only @ref
value_t::array and @ref value_t::object are valid); when @a type_deduction
is set to `true`, this parameter has no effect
@throw std::domain_error if @a type_deduction is `false`, @a manual_type
is `value_t::object`, but @a init contains an element which is not a pair
whose first element is a string; example: `"cannot create object from
initializer list"`
@complexity Linear in the size of the initializer list @a init.
@liveexample{The example below shows how JSON values are created from
initializer lists.,basic_json__list_init_t}
@sa @ref array(std::initializer_list<basic_json>) -- create a JSON array
value from an initializer list
@sa @ref object(std::initializer_list<basic_json>) -- create a JSON object
value from an initializer list
@since version 1.0.0
*/
basic_json(std::initializer_list<basic_json> init,
bool type_deduction = true,
value_t manual_type = value_t::array)
{
// check if each element is an array with two elements whose first
// element is a string
bool is_an_object = std::all_of(init.begin(), init.end(),
[](const basic_json & element)
{
return element.is_array() and element.size() == 2 and element[0].is_string();
});
// adjust type if type deduction is not wanted
if (not type_deduction)
{
// if array is wanted, do not create an object though possible
if (manual_type == value_t::array)
{
is_an_object = false;
}
// if object is wanted but impossible, throw an exception
if (manual_type == value_t::object and not is_an_object)
{
throw std::domain_error("cannot create object from initializer list");
}
}
if (is_an_object)
{
// the initializer list is a list of pairs -> create object
m_type = value_t::object;
m_value = value_t::object;
std::for_each(init.begin(), init.end(), [this](const basic_json & element)
{
m_value.object->emplace(*(element[0].m_value.string), element[1]);
});
}
else
{
// the initializer list describes an array -> create array
m_type = value_t::array;
m_value.array = create<array_t>(init);
}
assert_invariant();
}
/*!
@brief explicitly create an array from an initializer list
Creates a JSON array value from a given initializer list. That is, given a
list of values `a, b, c`, creates the JSON value `[a, b, c]`. If the
initializer list is empty, the empty array `[]` is created.
@note This function is only needed to express two edge cases that cannot
be realized with the initializer list constructor (@ref
basic_json(std::initializer_list<basic_json>, bool, value_t)). These cases
are:
1. creating an array whose elements are all pairs whose first element is a
string -- in this case, the initializer list constructor would create an
object, taking the first elements as keys
2. creating an empty array -- passing the empty initializer list to the
initializer list constructor yields an empty object
@param[in] init initializer list with JSON values to create an array from
(optional)
@return JSON array value
@complexity Linear in the size of @a init.
@liveexample{The following code shows an example for the `array`
function.,array}
@sa @ref basic_json(std::initializer_list<basic_json>, bool, value_t) --
create a JSON value from an initializer list
@sa @ref object(std::initializer_list<basic_json>) -- create a JSON object
value from an initializer list
@since version 1.0.0
*/
static basic_json array(std::initializer_list<basic_json> init =
std::initializer_list<basic_json>())
{
return basic_json(init, false, value_t::array);
}
/*!
@brief explicitly create an object from an initializer list
Creates a JSON object value from a given initializer list. The initializer
lists elements must be pairs, and their first elements must be strings. If
the initializer list is empty, the empty object `{}` is created.
@note This function is only added for symmetry reasons. In contrast to the
related function @ref array(std::initializer_list<basic_json>), there are
no cases which can only be expressed by this function. That is, any
initializer list @a init can also be passed to the initializer list
constructor @ref basic_json(std::initializer_list<basic_json>, bool,
value_t).
@param[in] init initializer list to create an object from (optional)
@return JSON object value
@throw std::domain_error if @a init is not a pair whose first elements are
strings; thrown by
@ref basic_json(std::initializer_list<basic_json>, bool, value_t)
@complexity Linear in the size of @a init.
@liveexample{The following code shows an example for the `object`
function.,object}
@sa @ref basic_json(std::initializer_list<basic_json>, bool, value_t) --
create a JSON value from an initializer list
@sa @ref array(std::initializer_list<basic_json>) -- create a JSON array
value from an initializer list
@since version 1.0.0
*/
static basic_json object(std::initializer_list<basic_json> init =
std::initializer_list<basic_json>())
{
return basic_json(init, false, value_t::object);
}
/*!
@brief construct an array with count copies of given value
Constructs a JSON array value by creating @a cnt copies of a passed value.
In case @a cnt is `0`, an empty array is created. As postcondition,
`std::distance(begin(),end()) == cnt` holds.
@param[in] cnt the number of JSON copies of @a val to create
@param[in] val the JSON value to copy
@complexity Linear in @a cnt.
@liveexample{The following code shows examples for the @ref
basic_json(size_type\, const basic_json&)
constructor.,basic_json__size_type_basic_json}
@since version 1.0.0
*/
basic_json(size_type cnt, const basic_json& val)
: m_type(value_t::array)
{
m_value.array = create<array_t>(cnt, val);
assert_invariant();
}
/*!
@brief construct a JSON container given an iterator range
Constructs the JSON value with the contents of the range `[first, last)`.
The semantics depends on the different types a JSON value can have:
- In case of primitive types (number, boolean, or string), @a first must
be `begin()` and @a last must be `end()`. In this case, the value is
copied. Otherwise, std::out_of_range is thrown.
- In case of structured types (array, object), the constructor behaves as
similar versions for `std::vector`.
- In case of a null type, std::domain_error is thrown.
@tparam InputIT an input iterator type (@ref iterator or @ref
const_iterator)
@param[in] first begin of the range to copy from (included)
@param[in] last end of the range to copy from (excluded)
@pre Iterators @a first and @a last must be initialized. **This
precondition is enforced with an assertion.**
@throw std::domain_error if iterators are not compatible; that is, do not
belong to the same JSON value; example: `"iterators are not compatible"`
@throw std::out_of_range if iterators are for a primitive type (number,
boolean, or string) where an out of range error can be detected easily;
example: `"iterators out of range"`
@throw std::bad_alloc if allocation for object, array, or string fails
@throw std::domain_error if called with a null value; example: `"cannot
use construct with iterators from null"`
@complexity Linear in distance between @a first and @a last.
@liveexample{The example below shows several ways to create JSON values by
specifying a subrange with iterators.,basic_json__InputIt_InputIt}
@since version 1.0.0
*/
template<class InputIT, typename std::enable_if<
std::is_same<InputIT, typename basic_json_t::iterator>::value or
std::is_same<InputIT, typename basic_json_t::const_iterator>::value, int>::type = 0>
basic_json(InputIT first, InputIT last)
{
assert(first.m_object != nullptr);
assert(last.m_object != nullptr);
// make sure iterator fits the current value
if (first.m_object != last.m_object)
{
throw std::domain_error("iterators are not compatible");
}
// copy type from first iterator
m_type = first.m_object->m_type;
// check if iterator range is complete for primitive values
switch (m_type)
{
case value_t::boolean:
case value_t::number_float:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::string:
{
if (not first.m_it.primitive_iterator.is_begin() or not last.m_it.primitive_iterator.is_end())
{
throw std::out_of_range("iterators out of range");
}
break;
}
default:
{
break;
}
}
switch (m_type)
{
case value_t::number_integer:
{
m_value.number_integer = first.m_object->m_value.number_integer;
break;
}
case value_t::number_unsigned:
{
m_value.number_unsigned = first.m_object->m_value.number_unsigned;
break;
}
case value_t::number_float:
{
m_value.number_float = first.m_object->m_value.number_float;
break;
}
case value_t::boolean:
{
m_value.boolean = first.m_object->m_value.boolean;
break;
}
case value_t::string:
{
m_value = *first.m_object->m_value.string;
break;
}
case value_t::object:
{
m_value.object = create<object_t>(first.m_it.object_iterator, last.m_it.object_iterator);
break;
}
case value_t::array:
{
m_value.array = create<array_t>(first.m_it.array_iterator, last.m_it.array_iterator);
break;
}
default:
{
throw std::domain_error("cannot use construct with iterators from " + first.m_object->type_name());
}
}
assert_invariant();
}
/*!
@brief construct a JSON value given an input stream
@param[in,out] i stream to read a serialized JSON value from
@param[in] cb a parser callback function of type @ref parser_callback_t
which is used to control the deserialization by filtering unwanted values
(optional)
@complexity Linear in the length of the input. The parser is a predictive
LL(1) parser. The complexity can be higher if the parser callback function
@a cb has a super-linear complexity.
@note A UTF-8 byte order mark is silently ignored.
@deprecated This constructor is deprecated and will be removed in version
3.0.0 to unify the interface of the library. Deserialization will be
done by stream operators or by calling one of the `parse` functions,
e.g. @ref parse(std::istream&, const parser_callback_t). That is, calls
like `json j(i);` for an input stream @a i need to be replaced by
`json j = json::parse(i);`. See the example below.
@liveexample{The example below demonstrates constructing a JSON value from
a `std::stringstream` with and without callback
function.,basic_json__istream}
@since version 2.0.0, deprecated in version 2.0.3, to be removed in
version 3.0.0
*/
JSON_DEPRECATED
explicit basic_json(std::istream& i, const parser_callback_t cb = nullptr)
{
*this = parser(i, cb).parse();
assert_invariant();
}
///////////////////////////////////////
// other constructors and destructor //
///////////////////////////////////////
/*!
@brief copy constructor
Creates a copy of a given JSON value.
@param[in] other the JSON value to copy
@complexity Linear in the size of @a other.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is linear.
- As postcondition, it holds: `other == basic_json(other)`.
@throw std::bad_alloc if allocation for object, array, or string fails.
@liveexample{The following code shows an example for the copy
constructor.,basic_json__basic_json}
@since version 1.0.0
*/
basic_json(const basic_json& other)
: m_type(other.m_type)
{
// check of passed value is valid
other.assert_invariant();
switch (m_type)
{
case value_t::object:
{
m_value = *other.m_value.object;
break;
}
case value_t::array:
{
m_value = *other.m_value.array;
break;
}
case value_t::string:
{
m_value = *other.m_value.string;
break;
}
case value_t::boolean:
{
m_value = other.m_value.boolean;
break;
}
case value_t::number_integer:
{
m_value = other.m_value.number_integer;
break;
}
case value_t::number_unsigned:
{
m_value = other.m_value.number_unsigned;
break;
}
case value_t::number_float:
{
m_value = other.m_value.number_float;
break;
}
default:
{
break;
}
}
assert_invariant();
}
/*!
@brief move constructor
Move constructor. Constructs a JSON value with the contents of the given
value @a other using move semantics. It "steals" the resources from @a
other and leaves it as JSON null value.
@param[in,out] other value to move to this object
@post @a other is a JSON null value
@complexity Constant.
@liveexample{The code below shows the move constructor explicitly called
via std::move.,basic_json__moveconstructor}
@since version 1.0.0
*/
basic_json(basic_json&& other) noexcept
: m_type(std::move(other.m_type)),
m_value(std::move(other.m_value))
{
// check that passed value is valid
other.assert_invariant();
// invalidate payload
other.m_type = value_t::null;
other.m_value = {};
assert_invariant();
}
/*!
@brief copy assignment
Copy assignment operator. Copies a JSON value via the "copy and swap"
strategy: It is expressed in terms of the copy constructor, destructor,
and the swap() member function.
@param[in] other value to copy from
@complexity Linear.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is linear.
@liveexample{The code below shows and example for the copy assignment. It
creates a copy of value `a` which is then swapped with `b`. Finally\, the
copy of `a` (which is the null value after the swap) is
destroyed.,basic_json__copyassignment}
@since version 1.0.0
*/
reference& operator=(basic_json other) noexcept (
std::is_nothrow_move_constructible<value_t>::value and
std::is_nothrow_move_assignable<value_t>::value and
std::is_nothrow_move_constructible<json_value>::value and
std::is_nothrow_move_assignable<json_value>::value
)
{
// check that passed value is valid
other.assert_invariant();
using std::swap;
swap(m_type, other.m_type);
swap(m_value, other.m_value);
assert_invariant();
return *this;
}
/*!
@brief destructor
Destroys the JSON value and frees all allocated memory.
@complexity Linear.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is linear.
- All stored elements are destroyed and all memory is freed.
@since version 1.0.0
*/
~basic_json()
{
assert_invariant();
switch (m_type)
{
case value_t::object:
{
AllocatorType<object_t> alloc;
alloc.destroy(m_value.object);
alloc.deallocate(m_value.object, 1);
break;
}
case value_t::array:
{
AllocatorType<array_t> alloc;
alloc.destroy(m_value.array);
alloc.deallocate(m_value.array, 1);
break;
}
case value_t::string:
{
AllocatorType<string_t> alloc;
alloc.destroy(m_value.string);
alloc.deallocate(m_value.string, 1);
break;
}
default:
{
// all other types need no specific destructor
break;
}
}
}
/// @}
public:
///////////////////////
// object inspection //
///////////////////////
/// @name object inspection
/// Functions to inspect the type of a JSON value.
/// @{
/*!
@brief serialization
Serialization function for JSON values. The function tries to mimic
Python's `json.dumps()` function, and currently supports its @a indent
parameter.
@param[in] indent If indent is nonnegative, then array elements and object
members will be pretty-printed with that indent level. An indent level of
`0` will only insert newlines. `-1` (the default) selects the most compact
representation.
@return string containing the serialization of the JSON value
@complexity Linear.
@liveexample{The following example shows the effect of different @a indent
parameters to the result of the serialization.,dump}
@see https://docs.python.org/2/library/json.html#json.dump
@since version 1.0.0
*/
string_t dump(const int indent = -1) const
{
std::stringstream ss;
// Leo: The following crashes when compiling with g++ 4.9 mingw Windows
// fix locale problems
// const static std::locale loc(std::locale(), new DecimalSeparator);
// ss.imbue(loc);
// 6, 15 or 16 digits of precision allows round-trip IEEE 754
// string->float->string, string->double->string or string->long
// double->string; to be safe, we read this value from
// std::numeric_limits<number_float_t>::digits10
ss.precision(std::numeric_limits<double>::digits10);
if (indent >= 0)
{
dump(ss, true, static_cast<unsigned int>(indent));
}
else
{
dump(ss, false, 0);
}
return ss.str();
}
/*!
@brief return the type of the JSON value (explicit)
Return the type of the JSON value as a value from the @ref value_t
enumeration.
@return the type of the JSON value
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `type()` for all JSON
types.,type}
@since version 1.0.0
*/
constexpr value_t type() const noexcept
{
return m_type;
}
/*!
@brief return whether type is primitive
This function returns true iff the JSON type is primitive (string, number,
boolean, or null).
@return `true` if type is primitive (string, number, boolean, or null),
`false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_primitive()` for all JSON
types.,is_primitive}
@sa @ref is_structured() -- returns whether JSON value is structured
@sa @ref is_null() -- returns whether JSON value is `null`
@sa @ref is_string() -- returns whether JSON value is a string
@sa @ref is_boolean() -- returns whether JSON value is a boolean
@sa @ref is_number() -- returns whether JSON value is a number
@since version 1.0.0
*/
constexpr bool is_primitive() const noexcept
{
return is_null() or is_string() or is_boolean() or is_number();
}
/*!
@brief return whether type is structured
This function returns true iff the JSON type is structured (array or
object).
@return `true` if type is structured (array or object), `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_structured()` for all JSON
types.,is_structured}
@sa @ref is_primitive() -- returns whether value is primitive
@sa @ref is_array() -- returns whether value is an array
@sa @ref is_object() -- returns whether value is an object
@since version 1.0.0
*/
constexpr bool is_structured() const noexcept
{
return is_array() or is_object();
}
/*!
@brief return whether value is null
This function returns true iff the JSON value is null.
@return `true` if type is null, `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_null()` for all JSON
types.,is_null}
@since version 1.0.0
*/
constexpr bool is_null() const noexcept
{
return m_type == value_t::null;
}
/*!
@brief return whether value is a boolean
This function returns true iff the JSON value is a boolean.
@return `true` if type is boolean, `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_boolean()` for all JSON
types.,is_boolean}
@since version 1.0.0
*/
constexpr bool is_boolean() const noexcept
{
return m_type == value_t::boolean;
}
/*!
@brief return whether value is a number
This function returns true iff the JSON value is a number. This includes
both integer and floating-point values.
@return `true` if type is number (regardless whether integer, unsigned
integer or floating-type), `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_number()` for all JSON
types.,is_number}
@sa @ref is_number_integer() -- check if value is an integer or unsigned
integer number
@sa @ref is_number_unsigned() -- check if value is an unsigned integer
number
@sa @ref is_number_float() -- check if value is a floating-point number
@since version 1.0.0
*/
constexpr bool is_number() const noexcept
{
return is_number_integer() or is_number_float();
}
/*!
@brief return whether value is an integer number
This function returns true iff the JSON value is an integer or unsigned
integer number. This excludes floating-point values.
@return `true` if type is an integer or unsigned integer number, `false`
otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_number_integer()` for all
JSON types.,is_number_integer}
@sa @ref is_number() -- check if value is a number
@sa @ref is_number_unsigned() -- check if value is an unsigned integer
number
@sa @ref is_number_float() -- check if value is a floating-point number
@since version 1.0.0
*/
constexpr bool is_number_integer() const noexcept
{
return m_type == value_t::number_integer or m_type == value_t::number_unsigned;
}
/*!
@brief return whether value is an unsigned integer number
This function returns true iff the JSON value is an unsigned integer
number. This excludes floating-point and (signed) integer values.
@return `true` if type is an unsigned integer number, `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_number_unsigned()` for all
JSON types.,is_number_unsigned}
@sa @ref is_number() -- check if value is a number
@sa @ref is_number_integer() -- check if value is an integer or unsigned
integer number
@sa @ref is_number_float() -- check if value is a floating-point number
@since version 2.0.0
*/
constexpr bool is_number_unsigned() const noexcept
{
return m_type == value_t::number_unsigned;
}
/*!
@brief return whether value is a floating-point number
This function returns true iff the JSON value is a floating-point number.
This excludes integer and unsigned integer values.
@return `true` if type is a floating-point number, `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_number_float()` for all
JSON types.,is_number_float}
@sa @ref is_number() -- check if value is number
@sa @ref is_number_integer() -- check if value is an integer number
@sa @ref is_number_unsigned() -- check if value is an unsigned integer
number
@since version 1.0.0
*/
constexpr bool is_number_float() const noexcept
{
return m_type == value_t::number_float;
}
/*!
@brief return whether value is an object
This function returns true iff the JSON value is an object.
@return `true` if type is object, `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_object()` for all JSON
types.,is_object}
@since version 1.0.0
*/
constexpr bool is_object() const noexcept
{
return m_type == value_t::object;
}
/*!
@brief return whether value is an array
This function returns true iff the JSON value is an array.
@return `true` if type is array, `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_array()` for all JSON
types.,is_array}
@since version 1.0.0
*/
constexpr bool is_array() const noexcept
{
return m_type == value_t::array;
}
/*!
@brief return whether value is a string
This function returns true iff the JSON value is a string.
@return `true` if type is string, `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_string()` for all JSON
types.,is_string}
@since version 1.0.0
*/
constexpr bool is_string() const noexcept
{
return m_type == value_t::string;
}
/*!
@brief return whether value is discarded
This function returns true iff the JSON value was discarded during parsing
with a callback function (see @ref parser_callback_t).
@note This function will always be `false` for JSON values after parsing.
That is, discarded values can only occur during parsing, but will be
removed when inside a structured value or replaced by null in other cases.
@return `true` if type is discarded, `false` otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies `is_discarded()` for all JSON
types.,is_discarded}
@since version 1.0.0
*/
constexpr bool is_discarded() const noexcept
{
return m_type == value_t::discarded;
}
/*!
@brief return the type of the JSON value (implicit)
Implicitly return the type of the JSON value as a value from the @ref
value_t enumeration.
@return the type of the JSON value
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws
exceptions.
@liveexample{The following code exemplifies the @ref value_t operator for
all JSON types.,operator__value_t}
@since version 1.0.0
*/
constexpr operator value_t() const noexcept
{
return m_type;
}
/// @}
private:
//////////////////
// value access //
//////////////////
/// get an object (explicit)
template<class T, typename std::enable_if<
std::is_convertible<typename object_t::key_type, typename T::key_type>::value and
std::is_convertible<basic_json_t, typename T::mapped_type>::value, int>::type = 0>
T get_impl(T*) const
{
if (is_object())
{
return T(m_value.object->begin(), m_value.object->end());
}
else
{
throw std::domain_error("type must be object, but is " + type_name());
}
}
/// get an object (explicit)
object_t get_impl(object_t*) const
{
if (is_object())
{
return *(m_value.object);
}
else
{
throw std::domain_error("type must be object, but is " + type_name());
}
}
/// get an array (explicit)
template<class T, typename std::enable_if<
std::is_convertible<basic_json_t, typename T::value_type>::value and
not std::is_same<basic_json_t, typename T::value_type>::value and
not std::is_arithmetic<T>::value and
not std::is_convertible<std::string, T>::value and
not has_mapped_type<T>::value, int>::type = 0>
T get_impl(T*) const
{
if (is_array())
{
T to_vector;
std::transform(m_value.array->begin(), m_value.array->end(),
std::inserter(to_vector, to_vector.end()), [](basic_json i)
{
return i.get<typename T::value_type>();
});
return to_vector;
}
else
{
throw std::domain_error("type must be array, but is " + type_name());
}
}
/// get an array (explicit)
template<class T, typename std::enable_if<
std::is_convertible<basic_json_t, T>::value and
not std::is_same<basic_json_t, T>::value, int>::type = 0>
std::vector<T> get_impl(std::vector<T>*) const
{
if (is_array())
{
std::vector<T> to_vector;
to_vector.reserve(m_value.array->size());
std::transform(m_value.array->begin(), m_value.array->end(),
std::inserter(to_vector, to_vector.end()), [](basic_json i)
{
return i.get<T>();
});
return to_vector;
}
else
{
throw std::domain_error("type must be array, but is " + type_name());
}
}
/// get an array (explicit)
template<class T, typename std::enable_if<
std::is_same<basic_json, typename T::value_type>::value and
not has_mapped_type<T>::value, int>::type = 0>
T get_impl(T*) const
{
if (is_array())
{
return T(m_value.array->begin(), m_value.array->end());
}
else
{
throw std::domain_error("type must be array, but is " + type_name());
}
}
/// get an array (explicit)
array_t get_impl(array_t*) const
{
if (is_array())
{
return *(m_value.array);
}
else
{
throw std::domain_error("type must be array, but is " + type_name());
}
}
/// get a string (explicit)
template<typename T, typename std::enable_if<
std::is_convertible<string_t, T>::value, int>::type = 0>
T get_impl(T*) const
{
if (is_string())
{
return *m_value.string;
}
else
{
throw std::domain_error("type must be string, but is " + type_name());
}
}
/// get a number (explicit)
template<typename T, typename std::enable_if<
std::is_arithmetic<T>::value, int>::type = 0>
T get_impl(T*) const
{
switch (m_type)
{
case value_t::number_integer:
{
return static_cast<T>(m_value.number_integer);
}
case value_t::number_unsigned:
{
return static_cast<T>(m_value.number_unsigned);
}
case value_t::number_float:
{
return static_cast<T>(m_value.number_float);
}
default:
{
throw std::domain_error("type must be number, but is " + type_name());
}
}
}
/// get a boolean (explicit)
constexpr boolean_t get_impl(boolean_t*) const
{
return is_boolean()
? m_value.boolean
: throw std::domain_error("type must be boolean, but is " + type_name());
}
/// get a pointer to the value (object)
object_t* get_impl_ptr(object_t*) noexcept
{
return is_object() ? m_value.object : nullptr;
}
/// get a pointer to the value (object)
constexpr const object_t* get_impl_ptr(const object_t*) const noexcept
{
return is_object() ? m_value.object : nullptr;
}
/// get a pointer to the value (array)
array_t* get_impl_ptr(array_t*) noexcept
{
return is_array() ? m_value.array : nullptr;
}
/// get a pointer to the value (array)
constexpr const array_t* get_impl_ptr(const array_t*) const noexcept
{
return is_array() ? m_value.array : nullptr;
}
/// get a pointer to the value (string)
string_t* get_impl_ptr(string_t*) noexcept
{
return is_string() ? m_value.string : nullptr;
}
/// get a pointer to the value (string)
constexpr const string_t* get_impl_ptr(const string_t*) const noexcept
{
return is_string() ? m_value.string : nullptr;
}
/// get a pointer to the value (boolean)
boolean_t* get_impl_ptr(boolean_t*) noexcept
{
return is_boolean() ? &m_value.boolean : nullptr;
}
/// get a pointer to the value (boolean)
constexpr const boolean_t* get_impl_ptr(const boolean_t*) const noexcept
{
return is_boolean() ? &m_value.boolean : nullptr;
}
/// get a pointer to the value (integer number)
number_integer_t* get_impl_ptr(number_integer_t*) noexcept
{
return is_number_integer() ? &m_value.number_integer : nullptr;
}
/// get a pointer to the value (integer number)
constexpr const number_integer_t* get_impl_ptr(const number_integer_t*) const noexcept
{
return is_number_integer() ? &m_value.number_integer : nullptr;
}
/// get a pointer to the value (unsigned number)
number_unsigned_t* get_impl_ptr(number_unsigned_t*) noexcept
{
return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
}
/// get a pointer to the value (unsigned number)
constexpr const number_unsigned_t* get_impl_ptr(const number_unsigned_t*) const noexcept
{
return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
}
/// get a pointer to the value (floating-point number)
number_float_t* get_impl_ptr(number_float_t*) noexcept
{
return is_number_float() ? &m_value.number_float : nullptr;
}
/// get a pointer to the value (floating-point number)
constexpr const number_float_t* get_impl_ptr(const number_float_t*) const noexcept
{
return is_number_float() ? &m_value.number_float : nullptr;
}
/*!
@brief helper function to implement get_ref()
This funcion helps to implement get_ref() without code duplication for
const and non-const overloads
@tparam ThisType will be deduced as `basic_json` or `const basic_json`
@throw std::domain_error if ReferenceType does not match underlying value
type of the current JSON
*/
template<typename ReferenceType, typename ThisType>
static ReferenceType get_ref_impl(ThisType& obj)
{
// helper type
using PointerType = typename std::add_pointer<ReferenceType>::type;
// delegate the call to get_ptr<>()
auto ptr = obj.template get_ptr<PointerType>();
if (ptr != nullptr)
{
return *ptr;
}
else
{
throw std::domain_error("incompatible ReferenceType for get_ref, actual type is " +
obj.type_name());
}
}
public:
/// @name value access
/// Direct access to the stored value of a JSON value.
/// @{
/*!
@brief get a value (explicit)
Explicit type conversion between the JSON value and a compatible value.
@tparam ValueType non-pointer type compatible to the JSON value, for
instance `int` for JSON integer numbers, `bool` for JSON booleans, or
`std::vector` types for JSON arrays
@return copy of the JSON value, converted to type @a ValueType
@throw std::domain_error in case passed type @a ValueType is incompatible
to JSON; example: `"type must be object, but is null"`
@complexity Linear in the size of the JSON value.
@liveexample{The example below shows several conversions from JSON values
to other types. There a few things to note: (1) Floating-point numbers can
be converted to integers\, (2) A JSON array can be converted to a standard
`std::vector<short>`\, (3) A JSON object can be converted to C++
associative containers such as `std::unordered_map<std::string\,
json>`.,get__ValueType_const}
@internal
The idea of using a casted null pointer to choose the correct
implementation is from <http://stackoverflow.com/a/8315197/266378>.
@endinternal
@sa @ref operator ValueType() const for implicit conversion
@sa @ref get() for pointer-member access
@since version 1.0.0
*/
template<typename ValueType, typename std::enable_if<
not std::is_pointer<ValueType>::value, int>::type = 0>
ValueType get() const
{
return get_impl(static_cast<ValueType*>(nullptr));
}
/*!
@brief get a pointer value (explicit)
Explicit pointer access to the internally stored JSON value. No copies are
made.
@warning The pointer becomes invalid if the underlying JSON object
changes.
@tparam PointerType pointer type; must be a pointer to @ref array_t, @ref
object_t, @ref string_t, @ref boolean_t, @ref number_integer_t,
@ref number_unsigned_t, or @ref number_float_t.
@return pointer to the internally stored JSON value if the requested
pointer type @a PointerType fits to the JSON value; `nullptr` otherwise
@complexity Constant.
@liveexample{The example below shows how pointers to internal values of a
JSON value can be requested. Note that no type conversions are made and a
`nullptr` is returned if the value and the requested pointer type does not
match.,get__PointerType}
@sa @ref get_ptr() for explicit pointer-member access
@since version 1.0.0
*/
template<typename PointerType, typename std::enable_if<
std::is_pointer<PointerType>::value, int>::type = 0>
PointerType get() noexcept
{
// delegate the call to get_ptr
return get_ptr<PointerType>();
}
/*!
@brief get a pointer value (explicit)
@copydoc get()
*/
template<typename PointerType, typename std::enable_if<
std::is_pointer<PointerType>::value, int>::type = 0>
constexpr const PointerType get() const noexcept
{
// delegate the call to get_ptr
return get_ptr<PointerType>();
}
/*!
@brief get a pointer value (implicit)
Implicit pointer access to the internally stored JSON value. No copies are
made.
@warning Writing data to the pointee of the result yields an undefined
state.
@tparam PointerType pointer type; must be a pointer to @ref array_t, @ref
object_t, @ref string_t, @ref boolean_t, @ref number_integer_t,
@ref number_unsigned_t, or @ref number_float_t. Enforced by a static
assertion.
@return pointer to the internally stored JSON value if the requested
pointer type @a PointerType fits to the JSON value; `nullptr` otherwise
@complexity Constant.
@liveexample{The example below shows how pointers to internal values of a
JSON value can be requested. Note that no type conversions are made and a
`nullptr` is returned if the value and the requested pointer type does not
match.,get_ptr}
@since version 1.0.0
*/
template<typename PointerType, typename std::enable_if<
std::is_pointer<PointerType>::value, int>::type = 0>
PointerType get_ptr() noexcept
{
// get the type of the PointerType (remove pointer and const)
using pointee_t = typename std::remove_const<typename
std::remove_pointer<typename
std::remove_const<PointerType>::type>::type>::type;
// make sure the type matches the allowed types
static_assert(
std::is_same<object_t, pointee_t>::value
or std::is_same<array_t, pointee_t>::value
or std::is_same<string_t, pointee_t>::value
or std::is_same<boolean_t, pointee_t>::value
or std::is_same<number_integer_t, pointee_t>::value
or std::is_same<number_unsigned_t, pointee_t>::value
or std::is_same<number_float_t, pointee_t>::value
, "incompatible pointer type");
// delegate the call to get_impl_ptr<>()
return get_impl_ptr(static_cast<PointerType>(nullptr));
}
/*!
@brief get a pointer value (implicit)
@copydoc get_ptr()
*/
template<typename PointerType, typename std::enable_if<
std::is_pointer<PointerType>::value and
std::is_const<typename std::remove_pointer<PointerType>::type>::value, int>::type = 0>
constexpr const PointerType get_ptr() const noexcept
{
// get the type of the PointerType (remove pointer and const)
using pointee_t = typename std::remove_const<typename
std::remove_pointer<typename
std::remove_const<PointerType>::type>::type>::type;
// make sure the type matches the allowed types
static_assert(
std::is_same<object_t, pointee_t>::value
or std::is_same<array_t, pointee_t>::value
or std::is_same<string_t, pointee_t>::value
or std::is_same<boolean_t, pointee_t>::value
or std::is_same<number_integer_t, pointee_t>::value
or std::is_same<number_unsigned_t, pointee_t>::value
or std::is_same<number_float_t, pointee_t>::value
, "incompatible pointer type");
// delegate the call to get_impl_ptr<>() const
return get_impl_ptr(static_cast<const PointerType>(nullptr));
}
/*!
@brief get a reference value (implicit)
Implict reference access to the internally stored JSON value. No copies
are made.
@warning Writing data to the referee of the result yields an undefined
state.
@tparam ReferenceType reference type; must be a reference to @ref array_t,
@ref object_t, @ref string_t, @ref boolean_t, @ref number_integer_t, or
@ref number_float_t. Enforced by static assertion.
@return reference to the internally stored JSON value if the requested
reference type @a ReferenceType fits to the JSON value; throws
std::domain_error otherwise
@throw std::domain_error in case passed type @a ReferenceType is
incompatible with the stored JSON value
@complexity Constant.
@liveexample{The example shows several calls to `get_ref()`.,get_ref}
@since version 1.1.0
*/
template<typename ReferenceType, typename std::enable_if<
std::is_reference<ReferenceType>::value, int>::type = 0>
ReferenceType get_ref()
{
// delegate call to get_ref_impl
return get_ref_impl<ReferenceType>(*this);
}
/*!
@brief get a reference value (implicit)
@copydoc get_ref()
*/
template<typename ReferenceType, typename std::enable_if<
std::is_reference<ReferenceType>::value and
std::is_const<typename std::remove_reference<ReferenceType>::type>::value, int>::type = 0>
ReferenceType get_ref() const
{
// delegate call to get_ref_impl
return get_ref_impl<ReferenceType>(*this);
}
/*!
@brief get a value (implicit)
Implicit type conversion between the JSON value and a compatible value.
The call is realized by calling @ref get() const.
@tparam ValueType non-pointer type compatible to the JSON value, for
instance `int` for JSON integer numbers, `bool` for JSON booleans, or
`std::vector` types for JSON arrays. The character type of @ref string_t
as well as an initializer list of this type is excluded to avoid
ambiguities as these types implicitly convert to `std::string`.
@return copy of the JSON value, converted to type @a ValueType
@throw std::domain_error in case passed type @a ValueType is incompatible
to JSON, thrown by @ref get() const
@complexity Linear in the size of the JSON value.
@liveexample{The example below shows several conversions from JSON values
to other types. There a few things to note: (1) Floating-point numbers can
be converted to integers\, (2) A JSON array can be converted to a standard
`std::vector<short>`\, (3) A JSON object can be converted to C++
associative containers such as `std::unordered_map<std::string\,
json>`.,operator__ValueType}
@since version 1.0.0
*/
template < typename ValueType, typename std::enable_if <
not std::is_pointer<ValueType>::value and
not std::is_same<ValueType, typename string_t::value_type>::value
#ifndef _MSC_VER // Fix for issue #167 operator<< abiguity under VS2015
and not std::is_same<ValueType, std::initializer_list<typename string_t::value_type>>::value
#endif
, int >::type = 0 >
operator ValueType() const
{
// delegate the call to get<>() const
return get<ValueType>();
}
/// @}
////////////////////
// element access //
////////////////////
/// @name element access
/// Access to the JSON value.
/// @{
/*!
@brief access specified array element with bounds checking
Returns a reference to the element at specified location @a idx, with
bounds checking.
@param[in] idx index of the element to access
@return reference to the element at index @a idx
@throw std::domain_error if the JSON value is not an array; example:
`"cannot use at() with string"`
@throw std::out_of_range if the index @a idx is out of range of the array;
that is, `idx >= size()`; example: `"array index 7 is out of range"`
@complexity Constant.
@liveexample{The example below shows how array elements can be read and
written using `at()`.,at__size_type}
@since version 1.0.0
*/
reference at(size_type idx)
{
// at only works for arrays
if (is_array())
{
try
{
return m_value.array->at(idx);
}
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("array index " + std::to_string(idx) + " is out of range");
}
}
else
{
throw std::domain_error("cannot use at() with " + type_name());
}
}
/*!
@brief access specified array element with bounds checking
Returns a const reference to the element at specified location @a idx,
with bounds checking.
@param[in] idx index of the element to access
@return const reference to the element at index @a idx
@throw std::domain_error if the JSON value is not an array; example:
`"cannot use at() with string"`
@throw std::out_of_range if the index @a idx is out of range of the array;
that is, `idx >= size()`; example: `"array index 7 is out of range"`
@complexity Constant.
@liveexample{The example below shows how array elements can be read using
`at()`.,at__size_type_const}
@since version 1.0.0
*/
const_reference at(size_type idx) const
{
// at only works for arrays
if (is_array())
{
try
{
return m_value.array->at(idx);
}
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("array index " + std::to_string(idx) + " is out of range");
}
}
else
{
throw std::domain_error("cannot use at() with " + type_name());
}
}
/*!
@brief access specified object element with bounds checking
Returns a reference to the element at with specified key @a key, with
bounds checking.
@param[in] key key of the element to access
@return reference to the element at key @a key
@throw std::domain_error if the JSON value is not an object; example:
`"cannot use at() with boolean"`
@throw std::out_of_range if the key @a key is is not stored in the object;
that is, `find(key) == end()`; example: `"key "the fast" not found"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be read and
written using `at()`.,at__object_t_key_type}
@sa @ref operator[](const typename object_t::key_type&) for unchecked
access by reference
@sa @ref value() for access by value with a default value
@since version 1.0.0
*/
reference at(const typename object_t::key_type& key)
{
// at only works for objects
if (is_object())
{
try
{
return m_value.object->at(key);
}
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("key '" + key + "' not found");
}
}
else
{
throw std::domain_error("cannot use at() with " + type_name());
}
}
/*!
@brief access specified object element with bounds checking
Returns a const reference to the element at with specified key @a key,
with bounds checking.
@param[in] key key of the element to access
@return const reference to the element at key @a key
@throw std::domain_error if the JSON value is not an object; example:
`"cannot use at() with boolean"`
@throw std::out_of_range if the key @a key is is not stored in the object;
that is, `find(key) == end()`; example: `"key "the fast" not found"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be read using
`at()`.,at__object_t_key_type_const}
@sa @ref operator[](const typename object_t::key_type&) for unchecked
access by reference
@sa @ref value() for access by value with a default value
@since version 1.0.0
*/
const_reference at(const typename object_t::key_type& key) const
{
// at only works for objects
if (is_object())
{
try
{
return m_value.object->at(key);
}
catch (std::out_of_range&)
{
// create better exception explanation
throw std::out_of_range("key '" + key + "' not found");
}
}
else
{
throw std::domain_error("cannot use at() with " + type_name());
}
}
/*!
@brief access specified array element
Returns a reference to the element at specified location @a idx.
@note If @a idx is beyond the range of the array (i.e., `idx >= size()`),
then the array is silently filled up with `null` values to make `idx` a
valid reference to the last stored element.
@param[in] idx index of the element to access
@return reference to the element at index @a idx
@throw std::domain_error if JSON is not an array or null; example:
`"cannot use operator[] with string"`
@complexity Constant if @a idx is in the range of the array. Otherwise
linear in `idx - size()`.
@liveexample{The example below shows how array elements can be read and
written using `[]` operator. Note the addition of `null`
values.,operatorarray__size_type}
@since version 1.0.0
*/
reference operator[](size_type idx)
{
// implicitly convert null value to an empty array
if (is_null())
{
m_type = value_t::array;
m_value.array = create<array_t>();
assert_invariant();
}
// operator[] only works for arrays
if (is_array())
{
// fill up array with null values if given idx is outside range
if (idx >= m_value.array->size())
{
m_value.array->insert(m_value.array->end(),
idx - m_value.array->size() + 1,
basic_json());
}
return m_value.array->operator[](idx);
}
else
{
throw std::domain_error("cannot use operator[] with " + type_name());
}
}
/*!
@brief access specified array element
Returns a const reference to the element at specified location @a idx.
@param[in] idx index of the element to access
@return const reference to the element at index @a idx
@throw std::domain_error if JSON is not an array; example: `"cannot use
operator[] with null"`
@complexity Constant.
@liveexample{The example below shows how array elements can be read using
the `[]` operator.,operatorarray__size_type_const}
@since version 1.0.0
*/
const_reference operator[](size_type idx) const
{
// const operator[] only works for arrays
if (is_array())
{
return m_value.array->operator[](idx);
}
else
{
throw std::domain_error("cannot use operator[] with " + type_name());
}
}
/*!
@brief access specified object element
Returns a reference to the element at with specified key @a key.
@note If @a key is not found in the object, then it is silently added to
the object and filled with a `null` value to make `key` a valid reference.
In case the value was `null` before, it is converted to an object.
@param[in] key key of the element to access
@return reference to the element at key @a key
@throw std::domain_error if JSON is not an object or null; example:
`"cannot use operator[] with string"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be read and
written using the `[]` operator.,operatorarray__key_type}
@sa @ref at(const typename object_t::key_type&) for access by reference
with range checking
@sa @ref value() for access by value with a default value
@since version 1.0.0
*/
reference operator[](const typename object_t::key_type& key)
{
// implicitly convert null value to an empty object
if (is_null())
{
m_type = value_t::object;
m_value.object = create<object_t>();
assert_invariant();
}
// operator[] only works for objects
if (is_object())
{
return m_value.object->operator[](key);
}
else
{
throw std::domain_error("cannot use operator[] with " + type_name());
}
}
/*!
@brief read-only access specified object element
Returns a const reference to the element at with specified key @a key. No
bounds checking is performed.
@warning If the element with key @a key does not exist, the behavior is
undefined.
@param[in] key key of the element to access
@return const reference to the element at key @a key
@pre The element with key @a key must exist. **This precondition is
enforced with an assertion.**
@throw std::domain_error if JSON is not an object; example: `"cannot use
operator[] with null"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be read using
the `[]` operator.,operatorarray__key_type_const}
@sa @ref at(const typename object_t::key_type&) for access by reference
with range checking
@sa @ref value() for access by value with a default value
@since version 1.0.0
*/
const_reference operator[](const typename object_t::key_type& key) const
{
// const operator[] only works for objects
if (is_object())
{
assert(m_value.object->find(key) != m_value.object->end());
return m_value.object->find(key)->second;
}
else
{
throw std::domain_error("cannot use operator[] with " + type_name());
}
}
/*!
@brief access specified object element
Returns a reference to the element at with specified key @a key.
@note If @a key is not found in the object, then it is silently added to
the object and filled with a `null` value to make `key` a valid reference.
In case the value was `null` before, it is converted to an object.
@param[in] key key of the element to access
@return reference to the element at key @a key
@throw std::domain_error if JSON is not an object or null; example:
`"cannot use operator[] with string"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be read and
written using the `[]` operator.,operatorarray__key_type}
@sa @ref at(const typename object_t::key_type&) for access by reference
with range checking
@sa @ref value() for access by value with a default value
@since version 1.0.0
*/
template<typename T, std::size_t n>
reference operator[](T * (&key)[n])
{
return operator[](static_cast<const T>(key));
}
/*!
@brief read-only access specified object element
Returns a const reference to the element at with specified key @a key. No
bounds checking is performed.
@warning If the element with key @a key does not exist, the behavior is
undefined.
@note This function is required for compatibility reasons with Clang.
@param[in] key key of the element to access
@return const reference to the element at key @a key
@throw std::domain_error if JSON is not an object; example: `"cannot use
operator[] with null"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be read using
the `[]` operator.,operatorarray__key_type_const}
@sa @ref at(const typename object_t::key_type&) for access by reference
with range checking
@sa @ref value() for access by value with a default value
@since version 1.0.0
*/
template<typename T, std::size_t n>
const_reference operator[](T * (&key)[n]) const
{
return operator[](static_cast<const T>(key));
}
/*!
@brief access specified object element
Returns a reference to the element at with specified key @a key.
@note If @a key is not found in the object, then it is silently added to
the object and filled with a `null` value to make `key` a valid reference.
In case the value was `null` before, it is converted to an object.
@param[in] key key of the element to access
@return reference to the element at key @a key
@throw std::domain_error if JSON is not an object or null; example:
`"cannot use operator[] with string"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be read and
written using the `[]` operator.,operatorarray__key_type}
@sa @ref at(const typename object_t::key_type&) for access by reference
with range checking
@sa @ref value() for access by value with a default value
@since version 1.1.0
*/
template<typename T>
reference operator[](T* key)
{
// implicitly convert null to object
if (is_null())
{
m_type = value_t::object;
m_value = value_t::object;
assert_invariant();
}
// at only works for objects
if (is_object())
{
return m_value.object->operator[](key);
}
else
{
throw std::domain_error("cannot use operator[] with " + type_name());
}
}
/*!
@brief read-only access specified object element
Returns a const reference to the element at with specified key @a key. No
bounds checking is performed.
@warning If the element with key @a key does not exist, the behavior is
undefined.
@param[in] key key of the element to access
@return const reference to the element at key @a key
@pre The element with key @a key must exist. **This precondition is
enforced with an assertion.**
@throw std::domain_error if JSON is not an object; example: `"cannot use
operator[] with null"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be read using
the `[]` operator.,operatorarray__key_type_const}
@sa @ref at(const typename object_t::key_type&) for access by reference
with range checking
@sa @ref value() for access by value with a default value
@since version 1.1.0
*/
template<typename T>
const_reference operator[](T* key) const
{
// at only works for objects
if (is_object())
{
assert(m_value.object->find(key) != m_value.object->end());
return m_value.object->find(key)->second;
}
else
{
throw std::domain_error("cannot use operator[] with " + type_name());
}
}
/*!
@brief access specified object element with default value
Returns either a copy of an object's element at the specified key @a key
or a given default value if no element with key @a key exists.
The function is basically equivalent to executing
@code {.cpp}
try {
return at(key);
} catch(std::out_of_range) {
return default_value;
}
@endcode
@note Unlike @ref at(const typename object_t::key_type&), this function
does not throw if the given key @a key was not found.
@note Unlike @ref operator[](const typename object_t::key_type& key), this
function does not implicitly add an element to the position defined by @a
key. This function is furthermore also applicable to const objects.
@param[in] key key of the element to access
@param[in] default_value the value to return if @a key is not found
@tparam ValueType type compatible to JSON values, for instance `int` for
JSON integer numbers, `bool` for JSON booleans, or `std::vector` types for
JSON arrays. Note the type of the expected value at @a key and the default
value @a default_value must be compatible.
@return copy of the element at key @a key or @a default_value if @a key
is not found
@throw std::domain_error if JSON is not an object; example: `"cannot use
value() with null"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be queried
with a default value.,basic_json__value}
@sa @ref at(const typename object_t::key_type&) for access by reference
with range checking
@sa @ref operator[](const typename object_t::key_type&) for unchecked
access by reference
@since version 1.0.0
*/
template<class ValueType, typename std::enable_if<
std::is_convertible<basic_json_t, ValueType>::value, int>::type = 0>
ValueType value(const typename object_t::key_type& key, ValueType default_value) const
{
// at only works for objects
if (is_object())
{
// if key is found, return value and given default value otherwise
const auto it = find(key);
if (it != end())
{
return *it;
}
else
{
return default_value;
}
}
else
{
throw std::domain_error("cannot use value() with " + type_name());
}
}
/*!
@brief overload for a default value of type const char*
@copydoc basic_json::value(const typename object_t::key_type&, ValueType) const
*/
string_t value(const typename object_t::key_type& key, const char* default_value) const
{
return value(key, string_t(default_value));
}
/*!
@brief access specified object element via JSON Pointer with default value
Returns either a copy of an object's element at the specified key @a key
or a given default value if no element with key @a key exists.
The function is basically equivalent to executing
@code {.cpp}
try {
return at(ptr);
} catch(std::out_of_range) {
return default_value;
}
@endcode
@note Unlike @ref at(const json_pointer&), this function does not throw
if the given key @a key was not found.
@param[in] ptr a JSON pointer to the element to access
@param[in] default_value the value to return if @a ptr found no value
@tparam ValueType type compatible to JSON values, for instance `int` for
JSON integer numbers, `bool` for JSON booleans, or `std::vector` types for
JSON arrays. Note the type of the expected value at @a key and the default
value @a default_value must be compatible.
@return copy of the element at key @a key or @a default_value if @a key
is not found
@throw std::domain_error if JSON is not an object; example: `"cannot use
value() with null"`
@complexity Logarithmic in the size of the container.
@liveexample{The example below shows how object elements can be queried
with a default value.,basic_json__value_ptr}
@sa @ref operator[](const json_pointer&) for unchecked access by reference
@since version 2.0.2
*/
template<class ValueType, typename std::enable_if<
std::is_convertible<basic_json_t, ValueType>::value, int>::type = 0>
ValueType value(const json_pointer& ptr, ValueType default_value) const
{
// at only works for objects
if (is_object())
{
// if pointer resolves a value, return it or use default value
try
{
return ptr.get_checked(this);
}
catch (std::out_of_range&)
{
return default_value;
}
}
else
{
throw std::domain_error("cannot use value() with " + type_name());
}
}
/*!
@brief overload for a default value of type const char*
@copydoc basic_json::value(const json_pointer&, ValueType) const
*/
string_t value(const json_pointer& ptr, const char* default_value) const
{
return value(ptr, string_t(default_value));
}
/*!
@brief access the first element
Returns a reference to the first element in the container. For a JSON
container `c`, the expression `c.front()` is equivalent to `*c.begin()`.
@return In case of a structured type (array or object), a reference to the
first element is returned. In cast of number, string, or boolean values, a
reference to the value is returned.
@complexity Constant.
@pre The JSON value must not be `null` (would throw `std::out_of_range`)
or an empty array or object (undefined behavior, **guarded by
assertions**).
@post The JSON value remains unchanged.
@throw std::out_of_range when called on `null` value
@liveexample{The following code shows an example for `front()`.,front}
@sa @ref back() -- access the last element
@since version 1.0.0
*/
reference front()
{
return *begin();
}
/*!
@copydoc basic_json::front()
*/
const_reference front() const
{
return *cbegin();
}
/*!
@brief access the last element
Returns a reference to the last element in the container. For a JSON
container `c`, the expression `c.back()` is equivalent to
@code {.cpp}
auto tmp = c.end();
--tmp;
return *tmp;
@endcode
@return In case of a structured type (array or object), a reference to the
last element is returned. In cast of number, string, or boolean values, a
reference to the value is returned.
@complexity Constant.
@pre The JSON value must not be `null` (would throw `std::out_of_range`)
or an empty array or object (undefined behavior, **guarded by
assertions**).
@post The JSON value remains unchanged.
@throw std::out_of_range when called on `null` value.
@liveexample{The following code shows an example for `back()`.,back}
@sa @ref front() -- access the first element
@since version 1.0.0
*/
reference back()
{
auto tmp = end();
--tmp;
return *tmp;
}
/*!
@copydoc basic_json::back()
*/
const_reference back() const
{
auto tmp = cend();
--tmp;
return *tmp;
}
/*!
@brief remove element given an iterator
Removes the element specified by iterator @a pos. The iterator @a pos must
be valid and dereferenceable. Thus the `end()` iterator (which is valid,
but is not dereferenceable) cannot be used as a value for @a pos.
If called on a primitive type other than `null`, the resulting JSON value
will be `null`.
@param[in] pos iterator to the element to remove
@return Iterator following the last removed element. If the iterator @a
pos refers to the last element, the `end()` iterator is returned.
@tparam IteratorType an @ref iterator or @ref const_iterator
@post Invalidates iterators and references at or after the point of the
erase, including the `end()` iterator.
@throw std::domain_error if called on a `null` value; example: `"cannot
use erase() with null"`
@throw std::domain_error if called on an iterator which does not belong to
the current JSON value; example: `"iterator does not fit current value"`
@throw std::out_of_range if called on a primitive type with invalid
iterator (i.e., any iterator which is not `begin()`); example: `"iterator
out of range"`
@complexity The complexity depends on the type:
- objects: amortized constant
- arrays: linear in distance between pos and the end of the container
- strings: linear in the length of the string
- other types: constant
@liveexample{The example shows the result of `erase()` for different JSON
types.,erase__IteratorType}
@sa @ref erase(IteratorType, IteratorType) -- removes the elements in
the given range
@sa @ref erase(const typename object_t::key_type&) -- removes the element
from an object at the given key
@sa @ref erase(const size_type) -- removes the element from an array at
the given index
@since version 1.0.0
*/
template<class IteratorType, typename std::enable_if<
std::is_same<IteratorType, typename basic_json_t::iterator>::value or
std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int>::type
= 0>
IteratorType erase(IteratorType pos)
{
// make sure iterator fits the current value
if (this != pos.m_object)
{
throw std::domain_error("iterator does not fit current value");
}
IteratorType result = end();
switch (m_type)
{
case value_t::boolean:
case value_t::number_float:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::string:
{
if (not pos.m_it.primitive_iterator.is_begin())
{
throw std::out_of_range("iterator out of range");
}
if (is_string())
{
AllocatorType<string_t> alloc;
alloc.destroy(m_value.string);
alloc.deallocate(m_value.string, 1);
m_value.string = nullptr;
}
m_type = value_t::null;
assert_invariant();
break;
}
case value_t::object:
{
result.m_it.object_iterator = m_value.object->erase(pos.m_it.object_iterator);
break;
}
case value_t::array:
{
result.m_it.array_iterator = m_value.array->erase(pos.m_it.array_iterator);
break;
}
default:
{
throw std::domain_error("cannot use erase() with " + type_name());
}
}
return result;
}
/*!
@brief remove elements given an iterator range
Removes the element specified by the range `[first; last)`. The iterator
@a first does not need to be dereferenceable if `first == last`: erasing
an empty range is a no-op.
If called on a primitive type other than `null`, the resulting JSON value
will be `null`.
@param[in] first iterator to the beginning of the range to remove
@param[in] last iterator past the end of the range to remove
@return Iterator following the last removed element. If the iterator @a
second refers to the last element, the `end()` iterator is returned.
@tparam IteratorType an @ref iterator or @ref const_iterator
@post Invalidates iterators and references at or after the point of the
erase, including the `end()` iterator.
@throw std::domain_error if called on a `null` value; example: `"cannot
use erase() with null"`
@throw std::domain_error if called on iterators which does not belong to
the current JSON value; example: `"iterators do not fit current value"`
@throw std::out_of_range if called on a primitive type with invalid
iterators (i.e., if `first != begin()` and `last != end()`); example:
`"iterators out of range"`
@complexity The complexity depends on the type:
- objects: `log(size()) + std::distance(first, last)`
- arrays: linear in the distance between @a first and @a last, plus linear
in the distance between @a last and end of the container
- strings: linear in the length of the string
- other types: constant
@liveexample{The example shows the result of `erase()` for different JSON
types.,erase__IteratorType_IteratorType}
@sa @ref erase(IteratorType) -- removes the element at a given position
@sa @ref erase(const typename object_t::key_type&) -- removes the element
from an object at the given key
@sa @ref erase(const size_type) -- removes the element from an array at
the given index
@since version 1.0.0
*/
template<class IteratorType, typename std::enable_if<
std::is_same<IteratorType, typename basic_json_t::iterator>::value or
std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int>::type
= 0>
IteratorType erase(IteratorType first, IteratorType last)
{
// make sure iterator fits the current value
if (this != first.m_object or this != last.m_object)
{
throw std::domain_error("iterators do not fit current value");
}
IteratorType result = end();
switch (m_type)
{
case value_t::boolean:
case value_t::number_float:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::string:
{
if (not first.m_it.primitive_iterator.is_begin() or not last.m_it.primitive_iterator.is_end())
{
throw std::out_of_range("iterators out of range");
}
if (is_string())
{
AllocatorType<string_t> alloc;
alloc.destroy(m_value.string);
alloc.deallocate(m_value.string, 1);
m_value.string = nullptr;
}
m_type = value_t::null;
assert_invariant();
break;
}
case value_t::object:
{
result.m_it.object_iterator = m_value.object->erase(first.m_it.object_iterator,
last.m_it.object_iterator);
break;
}
case value_t::array:
{
result.m_it.array_iterator = m_value.array->erase(first.m_it.array_iterator,
last.m_it.array_iterator);
break;
}
default:
{
throw std::domain_error("cannot use erase() with " + type_name());
}
}
return result;
}
/*!
@brief remove element from a JSON object given a key
Removes elements from a JSON object with the key value @a key.
@param[in] key value of the elements to remove
@return Number of elements removed. If @a ObjectType is the default
`std::map` type, the return value will always be `0` (@a key was not
found) or `1` (@a key was found).
@post References and iterators to the erased elements are invalidated.
Other references and iterators are not affected.
@throw std::domain_error when called on a type other than JSON object;
example: `"cannot use erase() with null"`
@complexity `log(size()) + count(key)`
@liveexample{The example shows the effect of `erase()`.,erase__key_type}
@sa @ref erase(IteratorType) -- removes the element at a given position
@sa @ref erase(IteratorType, IteratorType) -- removes the elements in
the given range
@sa @ref erase(const size_type) -- removes the element from an array at
the given index
@since version 1.0.0
*/
size_type erase(const typename object_t::key_type& key)
{
// this erase only works for objects
if (is_object())
{
return m_value.object->erase(key);
}
else
{
throw std::domain_error("cannot use erase() with " + type_name());
}
}
/*!
@brief remove element from a JSON array given an index
Removes element from a JSON array at the index @a idx.
@param[in] idx index of the element to remove
@throw std::domain_error when called on a type other than JSON array;
example: `"cannot use erase() with null"`
@throw std::out_of_range when `idx >= size()`; example: `"array index 17
is out of range"`
@complexity Linear in distance between @a idx and the end of the container.
@liveexample{The example shows the effect of `erase()`.,erase__size_type}
@sa @ref erase(IteratorType) -- removes the element at a given position
@sa @ref erase(IteratorType, IteratorType) -- removes the elements in
the given range
@sa @ref erase(const typename object_t::key_type&) -- removes the element
from an object at the given key
@since version 1.0.0
*/
void erase(const size_type idx)
{
// this erase only works for arrays
if (is_array())
{
if (idx >= size())
{
throw std::out_of_range("array index " + std::to_string(idx) + " is out of range");
}
m_value.array->erase(m_value.array->begin() + static_cast<difference_type>(idx));
}
else
{
throw std::domain_error("cannot use erase() with " + type_name());
}
}
/// @}
////////////
// lookup //
////////////
/// @name lookup
/// @{
/*!
@brief find an element in a JSON object
Finds an element in a JSON object with key equivalent to @a key. If the
element is not found or the JSON value is not an object, end() is
returned.
@param[in] key key value of the element to search for
@return Iterator to an element with key equivalent to @a key. If no such
element is found, past-the-end (see end()) iterator is returned.
@complexity Logarithmic in the size of the JSON object.
@liveexample{The example shows how `find()` is used.,find__key_type}
@since version 1.0.0
*/
iterator find(typename object_t::key_type key)
{
auto result = end();
if (is_object())
{
result.m_it.object_iterator = m_value.object->find(key);
}
return result;
}
/*!
@brief find an element in a JSON object
@copydoc find(typename object_t::key_type)
*/
const_iterator find(typename object_t::key_type key) const
{
auto result = cend();
if (is_object())
{
result.m_it.object_iterator = m_value.object->find(key);
}
return result;
}
/*!
@brief returns the number of occurrences of a key in a JSON object
Returns the number of elements with key @a key. If ObjectType is the
default `std::map` type, the return value will always be `0` (@a key was
not found) or `1` (@a key was found).
@param[in] key key value of the element to count
@return Number of elements with key @a key. If the JSON value is not an
object, the return value will be `0`.
@complexity Logarithmic in the size of the JSON object.
@liveexample{The example shows how `count()` is used.,count}
@since version 1.0.0
*/
size_type count(typename object_t::key_type key) const
{
// return 0 for all nonobject types
return is_object() ? m_value.object->count(key) : 0;
}
/// @}
///////////////
// iterators //
///////////////
/// @name iterators
/// @{
/*!
@brief returns an iterator to the first element
Returns an iterator to the first element.
@image html range-begin-end.svg "Illustration from cppreference.com"
@return iterator to the first element
@complexity Constant.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is constant.
@liveexample{The following code shows an example for `begin()`.,begin}
@sa @ref cbegin() -- returns a const iterator to the beginning
@sa @ref end() -- returns an iterator to the end
@sa @ref cend() -- returns a const iterator to the end
@since version 1.0.0
*/
iterator begin() noexcept
{
iterator result(this);
result.set_begin();
return result;
}
/*!
@copydoc basic_json::cbegin()
*/
const_iterator begin() const noexcept
{
return cbegin();
}
/*!
@brief returns a const iterator to the first element
Returns a const iterator to the first element.
@image html range-begin-end.svg "Illustration from cppreference.com"
@return const iterator to the first element
@complexity Constant.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is constant.
- Has the semantics of `const_cast<const basic_json&>(*this).begin()`.
@liveexample{The following code shows an example for `cbegin()`.,cbegin}
@sa @ref begin() -- returns an iterator to the beginning
@sa @ref end() -- returns an iterator to the end
@sa @ref cend() -- returns a const iterator to the end
@since version 1.0.0
*/
const_iterator cbegin() const noexcept
{
const_iterator result(this);
result.set_begin();
return result;
}
/*!
@brief returns an iterator to one past the last element
Returns an iterator to one past the last element.
@image html range-begin-end.svg "Illustration from cppreference.com"
@return iterator one past the last element
@complexity Constant.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is constant.
@liveexample{The following code shows an example for `end()`.,end}
@sa @ref cend() -- returns a const iterator to the end
@sa @ref begin() -- returns an iterator to the beginning
@sa @ref cbegin() -- returns a const iterator to the beginning
@since version 1.0.0
*/
iterator end() noexcept
{
iterator result(this);
result.set_end();
return result;
}
/*!
@copydoc basic_json::cend()
*/
const_iterator end() const noexcept
{
return cend();
}
/*!
@brief returns a const iterator to one past the last element
Returns a const iterator to one past the last element.
@image html range-begin-end.svg "Illustration from cppreference.com"
@return const iterator one past the last element
@complexity Constant.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is constant.
- Has the semantics of `const_cast<const basic_json&>(*this).end()`.
@liveexample{The following code shows an example for `cend()`.,cend}
@sa @ref end() -- returns an iterator to the end
@sa @ref begin() -- returns an iterator to the beginning
@sa @ref cbegin() -- returns a const iterator to the beginning
@since version 1.0.0
*/
const_iterator cend() const noexcept
{
const_iterator result(this);
result.set_end();
return result;
}
/*!
@brief returns an iterator to the reverse-beginning
Returns an iterator to the reverse-beginning; that is, the last element.
@image html range-rbegin-rend.svg "Illustration from cppreference.com"
@complexity Constant.
@requirement This function helps `basic_json` satisfying the
[ReversibleContainer](http://en.cppreference.com/w/cpp/concept/ReversibleContainer)
requirements:
- The complexity is constant.
- Has the semantics of `reverse_iterator(end())`.
@liveexample{The following code shows an example for `rbegin()`.,rbegin}
@sa @ref crbegin() -- returns a const reverse iterator to the beginning
@sa @ref rend() -- returns a reverse iterator to the end
@sa @ref crend() -- returns a const reverse iterator to the end
@since version 1.0.0
*/
reverse_iterator rbegin() noexcept
{
return reverse_iterator(end());
}
/*!
@copydoc basic_json::crbegin()
*/
const_reverse_iterator rbegin() const noexcept
{
return crbegin();
}
/*!
@brief returns an iterator to the reverse-end
Returns an iterator to the reverse-end; that is, one before the first
element.
@image html range-rbegin-rend.svg "Illustration from cppreference.com"
@complexity Constant.
@requirement This function helps `basic_json` satisfying the
[ReversibleContainer](http://en.cppreference.com/w/cpp/concept/ReversibleContainer)
requirements:
- The complexity is constant.
- Has the semantics of `reverse_iterator(begin())`.
@liveexample{The following code shows an example for `rend()`.,rend}
@sa @ref crend() -- returns a const reverse iterator to the end
@sa @ref rbegin() -- returns a reverse iterator to the beginning
@sa @ref crbegin() -- returns a const reverse iterator to the beginning
@since version 1.0.0
*/
reverse_iterator rend() noexcept
{
return reverse_iterator(begin());
}
/*!
@copydoc basic_json::crend()
*/
const_reverse_iterator rend() const noexcept
{
return crend();
}
/*!
@brief returns a const reverse iterator to the last element
Returns a const iterator to the reverse-beginning; that is, the last
element.
@image html range-rbegin-rend.svg "Illustration from cppreference.com"
@complexity Constant.
@requirement This function helps `basic_json` satisfying the
[ReversibleContainer](http://en.cppreference.com/w/cpp/concept/ReversibleContainer)
requirements:
- The complexity is constant.
- Has the semantics of `const_cast<const basic_json&>(*this).rbegin()`.
@liveexample{The following code shows an example for `crbegin()`.,crbegin}
@sa @ref rbegin() -- returns a reverse iterator to the beginning
@sa @ref rend() -- returns a reverse iterator to the end
@sa @ref crend() -- returns a const reverse iterator to the end
@since version 1.0.0
*/
const_reverse_iterator crbegin() const noexcept
{
return const_reverse_iterator(cend());
}
/*!
@brief returns a const reverse iterator to one before the first
Returns a const reverse iterator to the reverse-end; that is, one before
the first element.
@image html range-rbegin-rend.svg "Illustration from cppreference.com"
@complexity Constant.
@requirement This function helps `basic_json` satisfying the
[ReversibleContainer](http://en.cppreference.com/w/cpp/concept/ReversibleContainer)
requirements:
- The complexity is constant.
- Has the semantics of `const_cast<const basic_json&>(*this).rend()`.
@liveexample{The following code shows an example for `crend()`.,crend}
@sa @ref rend() -- returns a reverse iterator to the end
@sa @ref rbegin() -- returns a reverse iterator to the beginning
@sa @ref crbegin() -- returns a const reverse iterator to the beginning
@since version 1.0.0
*/
const_reverse_iterator crend() const noexcept
{
return const_reverse_iterator(cbegin());
}
private:
// forward declaration
template<typename IteratorType> class iteration_proxy;
public:
/*!
@brief wrapper to access iterator member functions in range-based for
This function allows to access @ref iterator::key() and @ref
iterator::value() during range-based for loops. In these loops, a
reference to the JSON values is returned, so there is no access to the
underlying iterator.
@note The name of this function is not yet final and may change in the
future.
*/
static iteration_proxy<iterator> iterator_wrapper(reference cont)
{
return iteration_proxy<iterator>(cont);
}
/*!
@copydoc iterator_wrapper(reference)
*/
static iteration_proxy<const_iterator> iterator_wrapper(const_reference cont)
{
return iteration_proxy<const_iterator>(cont);
}
/// @}
//////////////
// capacity //
//////////////
/// @name capacity
/// @{
/*!
@brief checks whether the container is empty
Checks if a JSON value has no elements.
@return The return value depends on the different types and is
defined as follows:
Value type | return value
----------- | -------------
null | `true`
boolean | `false`
string | `false`
number | `false`
object | result of function `object_t::empty()`
array | result of function `array_t::empty()`
@note This function does not return whether a string stored as JSON value
is empty - it returns whether the JSON container itself is empty which is
false in the case of a string.
@complexity Constant, as long as @ref array_t and @ref object_t satisfy
the Container concept; that is, their `empty()` functions have constant
complexity.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is constant.
- Has the semantics of `begin() == end()`.
@liveexample{The following code uses `empty()` to check if a JSON
object contains any elements.,empty}
@sa @ref size() -- returns the number of elements
@since version 1.0.0
*/
bool empty() const noexcept
{
switch (m_type)
{
case value_t::null:
{
// null values are empty
return true;
}
case value_t::array:
{
// delegate call to array_t::empty()
return m_value.array->empty();
}
case value_t::object:
{
// delegate call to object_t::empty()
return m_value.object->empty();
}
default:
{
// all other types are nonempty
return false;
}
}
}
/*!
@brief returns the number of elements
Returns the number of elements in a JSON value.
@return The return value depends on the different types and is
defined as follows:
Value type | return value
----------- | -------------
null | `0`
boolean | `1`
string | `1`
number | `1`
object | result of function object_t::size()
array | result of function array_t::size()
@note This function does not return the length of a string stored as JSON
value - it returns the number of elements in the JSON value which is 1 in
the case of a string.
@complexity Constant, as long as @ref array_t and @ref object_t satisfy
the Container concept; that is, their size() functions have constant
complexity.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is constant.
- Has the semantics of `std::distance(begin(), end())`.
@liveexample{The following code calls `size()` on the different value
types.,size}
@sa @ref empty() -- checks whether the container is empty
@sa @ref max_size() -- returns the maximal number of elements
@since version 1.0.0
*/
size_type size() const noexcept
{
switch (m_type)
{
case value_t::null:
{
// null values are empty
return 0;
}
case value_t::array:
{
// delegate call to array_t::size()
return m_value.array->size();
}
case value_t::object:
{
// delegate call to object_t::size()
return m_value.object->size();
}
default:
{
// all other types have size 1
return 1;
}
}
}
/*!
@brief returns the maximum possible number of elements
Returns the maximum number of elements a JSON value is able to hold due to
system or library implementation limitations, i.e. `std::distance(begin(),
end())` for the JSON value.
@return The return value depends on the different types and is
defined as follows:
Value type | return value
----------- | -------------
null | `0` (same as `size()`)
boolean | `1` (same as `size()`)
string | `1` (same as `size()`)
number | `1` (same as `size()`)
object | result of function `object_t::max_size()`
array | result of function `array_t::max_size()`
@complexity Constant, as long as @ref array_t and @ref object_t satisfy
the Container concept; that is, their `max_size()` functions have constant
complexity.
@requirement This function helps `basic_json` satisfying the
[Container](http://en.cppreference.com/w/cpp/concept/Container)
requirements:
- The complexity is constant.
- Has the semantics of returning `b.size()` where `b` is the largest
possible JSON value.
@liveexample{The following code calls `max_size()` on the different value
types. Note the output is implementation specific.,max_size}
@sa @ref size() -- returns the number of elements
@since version 1.0.0
*/
size_type max_size() const noexcept
{
switch (m_type)
{
case value_t::array:
{
// delegate call to array_t::max_size()
return m_value.array->max_size();
}
case value_t::object:
{
// delegate call to object_t::max_size()
return m_value.object->max_size();
}
default:
{
// all other types have max_size() == size()
return size();
}
}
}
/// @}
///////////////
// modifiers //
///////////////
/// @name modifiers
/// @{
/*!
@brief clears the contents
Clears the content of a JSON value and resets it to the default value as
if @ref basic_json(value_t) would have been called:
Value type | initial value
----------- | -------------
null | `null`
boolean | `false`
string | `""`
number | `0`
object | `{}`
array | `[]`
@note Floating-point numbers are set to `0.0` which will be serialized to
`0`. The vale type remains @ref number_float_t.
@complexity Linear in the size of the JSON value.
@liveexample{The example below shows the effect of `clear()` to different
JSON types.,clear}
@since version 1.0.0
*/
void clear() noexcept
{
switch (m_type)
{
case value_t::number_integer:
{
m_value.number_integer = 0;
break;
}
case value_t::number_unsigned:
{
m_value.number_unsigned = 0;
break;
}
case value_t::number_float:
{
m_value.number_float = 0.0;
break;
}
case value_t::boolean:
{
m_value.boolean = false;
break;
}
case value_t::string:
{
m_value.string->clear();
break;
}
case value_t::array:
{
m_value.array->clear();
break;
}
case value_t::object:
{
m_value.object->clear();
break;
}
default:
{
break;
}
}
}
/*!
@brief add an object to an array
Appends the given element @a val to the end of the JSON value. If the
function is called on a JSON null value, an empty array is created before
appending @a val.
@param[in] val the value to add to the JSON array
@throw std::domain_error when called on a type other than JSON array or
null; example: `"cannot use push_back() with number"`
@complexity Amortized constant.
@liveexample{The example shows how `push_back()` and `+=` can be used to
add elements to a JSON array. Note how the `null` value was silently
converted to a JSON array.,push_back}
@since version 1.0.0
*/
void push_back(basic_json&& val)
{
// push_back only works for null objects or arrays
if (not(is_null() or is_array()))
{
throw std::domain_error("cannot use push_back() with " + type_name());
}
// transform null object into an array
if (is_null())
{
m_type = value_t::array;
m_value = value_t::array;
assert_invariant();
}
// add element to array (move semantics)
m_value.array->push_back(std::move(val));
// invalidate object
val.m_type = value_t::null;
}
/*!
@brief add an object to an array
@copydoc push_back(basic_json&&)
*/
reference operator+=(basic_json&& val)
{
push_back(std::move(val));
return *this;
}
/*!
@brief add an object to an array
@copydoc push_back(basic_json&&)
*/
void push_back(const basic_json& val)
{
// push_back only works for null objects or arrays
if (not(is_null() or is_array()))
{
throw std::domain_error("cannot use push_back() with " + type_name());
}
// transform null object into an array
if (is_null())
{
m_type = value_t::array;
m_value = value_t::array;
assert_invariant();
}
// add element to array
m_value.array->push_back(val);
}
/*!
@brief add an object to an array
@copydoc push_back(basic_json&&)
*/
reference operator+=(const basic_json& val)
{
push_back(val);
return *this;
}
/*!
@brief add an object to an object
Inserts the given element @a val to the JSON object. If the function is
called on a JSON null value, an empty object is created before inserting
@a val.
@param[in] val the value to add to the JSON object
@throw std::domain_error when called on a type other than JSON object or
null; example: `"cannot use push_back() with number"`
@complexity Logarithmic in the size of the container, O(log(`size()`)).
@liveexample{The example shows how `push_back()` and `+=` can be used to
add elements to a JSON object. Note how the `null` value was silently
converted to a JSON object.,push_back__object_t__value}
@since version 1.0.0
*/
void push_back(const typename object_t::value_type& val)
{
// push_back only works for null objects or objects
if (not(is_null() or is_object()))
{
throw std::domain_error("cannot use push_back() with " + type_name());
}
// transform null object into an object
if (is_null())
{
m_type = value_t::object;
m_value = value_t::object;
assert_invariant();
}
// add element to array
m_value.object->insert(val);
}
/*!
@brief add an object to an object
@copydoc push_back(const typename object_t::value_type&)
*/
reference operator+=(const typename object_t::value_type& val)
{
push_back(val);
return *this;
}
/*!
@brief add an object to an object
This function allows to use `push_back` with an initializer list. In case
1. the current value is an object,
2. the initializer list @a init contains only two elements, and
3. the first element of @a init is a string,
@a init is converted into an object element and added using
@ref push_back(const typename object_t::value_type&). Otherwise, @a init
is converted to a JSON value and added using @ref push_back(basic_json&&).
@param init an initializer list
@complexity Linear in the size of the initializer list @a init.
@note This function is required to resolve an ambiguous overload error,
because pairs like `{"key", "value"}` can be both interpreted as
`object_t::value_type` or `std::initializer_list<basic_json>`, see
https://github.com/nlohmann/json/issues/235 for more information.
@liveexample{The example shows how initializer lists are treated as
objects when possible.,push_back__initializer_list}
*/
void push_back(std::initializer_list<basic_json> init)
{
if (is_object() and init.size() == 2 and init.begin()->is_string())
{
const string_t key = *init.begin();
push_back(typename object_t::value_type(key, *(init.begin() + 1)));
}
else
{
push_back(basic_json(init));
}
}
/*!
@brief add an object to an object
@copydoc push_back(std::initializer_list<basic_json>)
*/
reference operator+=(std::initializer_list<basic_json> init)
{
push_back(init);
return *this;
}
/*!
@brief inserts element
Inserts element @a val before iterator @a pos.
@param[in] pos iterator before which the content will be inserted; may be
the end() iterator
@param[in] val element to insert
@return iterator pointing to the inserted @a val.
@throw std::domain_error if called on JSON values other than arrays;
example: `"cannot use insert() with string"`
@throw std::domain_error if @a pos is not an iterator of *this; example:
`"iterator does not fit current value"`
@complexity Constant plus linear in the distance between pos and end of the
container.
@liveexample{The example shows how `insert()` is used.,insert}
@since version 1.0.0
*/
iterator insert(const_iterator pos, const basic_json& val)
{
// insert only works for arrays
if (is_array())
{
// check if iterator pos fits to this JSON value
if (pos.m_object != this)
{
throw std::domain_error("iterator does not fit current value");
}
// insert to array and return iterator
iterator result(this);
result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, val);
return result;
}
else
{
throw std::domain_error("cannot use insert() with " + type_name());
}
}
/*!
@brief inserts element
@copydoc insert(const_iterator, const basic_json&)
*/
iterator insert(const_iterator pos, basic_json&& val)
{
return insert(pos, val);
}
/*!
@brief inserts elements
Inserts @a cnt copies of @a val before iterator @a pos.
@param[in] pos iterator before which the content will be inserted; may be
the end() iterator
@param[in] cnt number of copies of @a val to insert
@param[in] val element to insert
@return iterator pointing to the first element inserted, or @a pos if
`cnt==0`
@throw std::domain_error if called on JSON values other than arrays;
example: `"cannot use insert() with string"`
@throw std::domain_error if @a pos is not an iterator of *this; example:
`"iterator does not fit current value"`
@complexity Linear in @a cnt plus linear in the distance between @a pos
and end of the container.
@liveexample{The example shows how `insert()` is used.,insert__count}
@since version 1.0.0
*/
iterator insert(const_iterator pos, size_type cnt, const basic_json& val)
{
// insert only works for arrays
if (is_array())
{
// check if iterator pos fits to this JSON value
if (pos.m_object != this)
{
throw std::domain_error("iterator does not fit current value");
}
// insert to array and return iterator
iterator result(this);
result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, cnt, val);
return result;
}
else
{
throw std::domain_error("cannot use insert() with " + type_name());
}
}
/*!
@brief inserts elements
Inserts elements from range `[first, last)` before iterator @a pos.
@param[in] pos iterator before which the content will be inserted; may be
the end() iterator
@param[in] first begin of the range of elements to insert
@param[in] last end of the range of elements to insert
@throw std::domain_error if called on JSON values other than arrays;
example: `"cannot use insert() with string"`
@throw std::domain_error if @a pos is not an iterator of *this; example:
`"iterator does not fit current value"`
@throw std::domain_error if @a first and @a last do not belong to the same
JSON value; example: `"iterators do not fit"`
@throw std::domain_error if @a first or @a last are iterators into
container for which insert is called; example: `"passed iterators may not
belong to container"`
@return iterator pointing to the first element inserted, or @a pos if
`first==last`
@complexity Linear in `std::distance(first, last)` plus linear in the
distance between @a pos and end of the container.
@liveexample{The example shows how `insert()` is used.,insert__range}
@since version 1.0.0
*/
iterator insert(const_iterator pos, const_iterator first, const_iterator last)
{
// insert only works for arrays
if (not is_array())
{
throw std::domain_error("cannot use insert() with " + type_name());
}
// check if iterator pos fits to this JSON value
if (pos.m_object != this)
{
throw std::domain_error("iterator does not fit current value");
}
// check if range iterators belong to the same JSON object
if (first.m_object != last.m_object)
{
throw std::domain_error("iterators do not fit");
}
if (first.m_object == this or last.m_object == this)
{
throw std::domain_error("passed iterators may not belong to container");
}
// insert to array and return iterator
iterator result(this);
result.m_it.array_iterator = m_value.array->insert(
pos.m_it.array_iterator,
first.m_it.array_iterator,
last.m_it.array_iterator);
return result;
}
/*!
@brief inserts elements
Inserts elements from initializer list @a ilist before iterator @a pos.
@param[in] pos iterator before which the content will be inserted; may be
the end() iterator
@param[in] ilist initializer list to insert the values from
@throw std::domain_error if called on JSON values other than arrays;
example: `"cannot use insert() with string"`
@throw std::domain_error if @a pos is not an iterator of *this; example:
`"iterator does not fit current value"`
@return iterator pointing to the first element inserted, or @a pos if
`ilist` is empty
@complexity Linear in `ilist.size()` plus linear in the distance between
@a pos and end of the container.
@liveexample{The example shows how `insert()` is used.,insert__ilist}
@since version 1.0.0
*/
iterator insert(const_iterator pos, std::initializer_list<basic_json> ilist)
{
// insert only works for arrays
if (not is_array())
{
throw std::domain_error("cannot use insert() with " + type_name());
}
// check if iterator pos fits to this JSON value
if (pos.m_object != this)
{
throw std::domain_error("iterator does not fit current value");
}
// insert to array and return iterator
iterator result(this);
result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, ilist);
return result;
}
/*!
@brief exchanges the values
Exchanges the contents of the JSON value with those of @a other. Does not
invoke any move, copy, or swap operations on individual elements. All
iterators and references remain valid. The past-the-end iterator is
invalidated.
@param[in,out] other JSON value to exchange the contents with
@complexity Constant.
@liveexample{The example below shows how JSON values can be swapped with
`swap()`.,swap__reference}
@since version 1.0.0
*/
void swap(reference other) noexcept (
std::is_nothrow_move_constructible<value_t>::value and
std::is_nothrow_move_assignable<value_t>::value and
std::is_nothrow_move_constructible<json_value>::value and
std::is_nothrow_move_assignable<json_value>::value
)
{
std::swap(m_type, other.m_type);
std::swap(m_value, other.m_value);
assert_invariant();
}
/*!
@brief exchanges the values
Exchanges the contents of a JSON array with those of @a other. Does not
invoke any move, copy, or swap operations on individual elements. All
iterators and references remain valid. The past-the-end iterator is
invalidated.
@param[in,out] other array to exchange the contents with
@throw std::domain_error when JSON value is not an array; example: `"cannot
use swap() with string"`
@complexity Constant.
@liveexample{The example below shows how arrays can be swapped with
`swap()`.,swap__array_t}
@since version 1.0.0
*/
void swap(array_t& other)
{
// swap only works for arrays
if (is_array())
{
std::swap(*(m_value.array), other);
}
else
{
throw std::domain_error("cannot use swap() with " + type_name());
}
}
/*!
@brief exchanges the values
Exchanges the contents of a JSON object with those of @a other. Does not
invoke any move, copy, or swap operations on individual elements. All
iterators and references remain valid. The past-the-end iterator is
invalidated.
@param[in,out] other object to exchange the contents with
@throw std::domain_error when JSON value is not an object; example:
`"cannot use swap() with string"`
@complexity Constant.
@liveexample{The example below shows how objects can be swapped with
`swap()`.,swap__object_t}
@since version 1.0.0
*/
void swap(object_t& other)
{
// swap only works for objects
if (is_object())
{
std::swap(*(m_value.object), other);
}
else
{
throw std::domain_error("cannot use swap() with " + type_name());
}
}
/*!
@brief exchanges the values
Exchanges the contents of a JSON string with those of @a other. Does not
invoke any move, copy, or swap operations on individual elements. All
iterators and references remain valid. The past-the-end iterator is
invalidated.
@param[in,out] other string to exchange the contents with
@throw std::domain_error when JSON value is not a string; example: `"cannot
use swap() with boolean"`
@complexity Constant.
@liveexample{The example below shows how strings can be swapped with
`swap()`.,swap__string_t}
@since version 1.0.0
*/
void swap(string_t& other)
{
// swap only works for strings
if (is_string())
{
std::swap(*(m_value.string), other);
}
else
{
throw std::domain_error("cannot use swap() with " + type_name());
}
}
/// @}
//////////////////////////////////////////
// lexicographical comparison operators //
//////////////////////////////////////////
/// @name lexicographical comparison operators
/// @{
private:
/*!
@brief comparison operator for JSON types
Returns an ordering that is similar to Python:
- order: null < boolean < number < object < array < string
- furthermore, each type is not smaller than itself
@since version 1.0.0
*/
friend bool operator<(const value_t lhs, const value_t rhs) noexcept
{
static constexpr std::array<uint8_t, 8> order = {{
0, // null
3, // object
4, // array
5, // string
1, // boolean
2, // integer
2, // unsigned
2, // float
}
};
// discarded values are not comparable
if (lhs == value_t::discarded or rhs == value_t::discarded)
{
return false;
}
return order[static_cast<std::size_t>(lhs)] < order[static_cast<std::size_t>(rhs)];
}
public:
/*!
@brief comparison: equal
Compares two JSON values for equality according to the following rules:
- Two JSON values are equal if (1) they are from the same type and (2)
their stored values are the same.
- Integer and floating-point numbers are automatically converted before
comparison. Floating-point numbers are compared indirectly: two
floating-point numbers `f1` and `f2` are considered equal if neither
`f1 > f2` nor `f2 > f1` holds.
- Two JSON null values are equal.
@param[in] lhs first JSON value to consider
@param[in] rhs second JSON value to consider
@return whether the values @a lhs and @a rhs are equal
@complexity Linear.
@liveexample{The example demonstrates comparing several JSON
types.,operator__equal}
@since version 1.0.0
*/
friend bool operator==(const_reference lhs, const_reference rhs) noexcept
{
const auto lhs_type = lhs.type();
const auto rhs_type = rhs.type();
if (lhs_type == rhs_type)
{
switch (lhs_type)
{
case value_t::array:
{
return *lhs.m_value.array == *rhs.m_value.array;
}
case value_t::object:
{
return *lhs.m_value.object == *rhs.m_value.object;
}
case value_t::null:
{
return true;
}
case value_t::string:
{
return *lhs.m_value.string == *rhs.m_value.string;
}
case value_t::boolean:
{
return lhs.m_value.boolean == rhs.m_value.boolean;
}
case value_t::number_integer:
{
return lhs.m_value.number_integer == rhs.m_value.number_integer;
}
case value_t::number_unsigned:
{
return lhs.m_value.number_unsigned == rhs.m_value.number_unsigned;
}
case value_t::number_float:
{
return lhs.m_value.number_float == rhs.m_value.number_float;
}
default:
{
return false;
}
}
}
else if (lhs_type == value_t::number_integer and rhs_type == value_t::number_float)
{
return static_cast<number_float_t>(lhs.m_value.number_integer) == rhs.m_value.number_float;
}
else if (lhs_type == value_t::number_float and rhs_type == value_t::number_integer)
{
return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_integer);
}
else if (lhs_type == value_t::number_unsigned and rhs_type == value_t::number_float)
{
return static_cast<number_float_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_float;
}
else if (lhs_type == value_t::number_float and rhs_type == value_t::number_unsigned)
{
return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_unsigned);
}
else if (lhs_type == value_t::number_unsigned and rhs_type == value_t::number_integer)
{
return static_cast<number_integer_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_integer;
}
else if (lhs_type == value_t::number_integer and rhs_type == value_t::number_unsigned)
{
return lhs.m_value.number_integer == static_cast<number_integer_t>(rhs.m_value.number_unsigned);
}
return false;
}
/*!
@brief comparison: equal
The functions compares the given JSON value against a null pointer. As the
null pointer can be used to initialize a JSON value to null, a comparison
of JSON value @a v with a null pointer should be equivalent to call
`v.is_null()`.
@param[in] v JSON value to consider
@return whether @a v is null
@complexity Constant.
@liveexample{The example compares several JSON types to the null pointer.
,operator__equal__nullptr_t}
@since version 1.0.0
*/
friend bool operator==(const_reference v, std::nullptr_t) noexcept
{
return v.is_null();
}
/*!
@brief comparison: equal
@copydoc operator==(const_reference, std::nullptr_t)
*/
friend bool operator==(std::nullptr_t, const_reference v) noexcept
{
return v.is_null();
}
/*!
@brief comparison: not equal
Compares two JSON values for inequality by calculating `not (lhs == rhs)`.
@param[in] lhs first JSON value to consider
@param[in] rhs second JSON value to consider
@return whether the values @a lhs and @a rhs are not equal
@complexity Linear.
@liveexample{The example demonstrates comparing several JSON
types.,operator__notequal}
@since version 1.0.0
*/
friend bool operator!=(const_reference lhs, const_reference rhs) noexcept
{
return not (lhs == rhs);
}
/*!
@brief comparison: not equal
The functions compares the given JSON value against a null pointer. As the
null pointer can be used to initialize a JSON value to null, a comparison
of JSON value @a v with a null pointer should be equivalent to call
`not v.is_null()`.
@param[in] v JSON value to consider
@return whether @a v is not null
@complexity Constant.
@liveexample{The example compares several JSON types to the null pointer.
,operator__notequal__nullptr_t}
@since version 1.0.0
*/
friend bool operator!=(const_reference v, std::nullptr_t) noexcept
{
return not v.is_null();
}
/*!
@brief comparison: not equal
@copydoc operator!=(const_reference, std::nullptr_t)
*/
friend bool operator!=(std::nullptr_t, const_reference v) noexcept
{
return not v.is_null();
}
/*!
@brief comparison: less than
Compares whether one JSON value @a lhs is less than another JSON value @a
rhs according to the following rules:
- If @a lhs and @a rhs have the same type, the values are compared using
the default `<` operator.
- Integer and floating-point numbers are automatically converted before
comparison
- In case @a lhs and @a rhs have different types, the values are ignored
and the order of the types is considered, see
@ref operator<(const value_t, const value_t).
@param[in] lhs first JSON value to consider
@param[in] rhs second JSON value to consider
@return whether @a lhs is less than @a rhs
@complexity Linear.
@liveexample{The example demonstrates comparing several JSON
types.,operator__less}
@since version 1.0.0
*/
friend bool operator<(const_reference lhs, const_reference rhs) noexcept
{
const auto lhs_type = lhs.type();
const auto rhs_type = rhs.type();
if (lhs_type == rhs_type)
{
switch (lhs_type)
{
case value_t::array:
{
return *lhs.m_value.array < *rhs.m_value.array;
}
case value_t::object:
{
return *lhs.m_value.object < *rhs.m_value.object;
}
case value_t::null:
{
return false;
}
case value_t::string:
{
return *lhs.m_value.string < *rhs.m_value.string;
}
case value_t::boolean:
{
return lhs.m_value.boolean < rhs.m_value.boolean;
}
case value_t::number_integer:
{
return lhs.m_value.number_integer < rhs.m_value.number_integer;
}
case value_t::number_unsigned:
{
return lhs.m_value.number_unsigned < rhs.m_value.number_unsigned;
}
case value_t::number_float:
{
return lhs.m_value.number_float < rhs.m_value.number_float;
}
default:
{
return false;
}
}
}
else if (lhs_type == value_t::number_integer and rhs_type == value_t::number_float)
{
return static_cast<number_float_t>(lhs.m_value.number_integer) < rhs.m_value.number_float;
}
else if (lhs_type == value_t::number_float and rhs_type == value_t::number_integer)
{
return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_integer);
}
else if (lhs_type == value_t::number_unsigned and rhs_type == value_t::number_float)
{
return static_cast<number_float_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_float;
}
else if (lhs_type == value_t::number_float and rhs_type == value_t::number_unsigned)
{
return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_unsigned);
}
else if (lhs_type == value_t::number_integer and rhs_type == value_t::number_unsigned)
{
return lhs.m_value.number_integer < static_cast<number_integer_t>(rhs.m_value.number_unsigned);
}
else if (lhs_type == value_t::number_unsigned and rhs_type == value_t::number_integer)
{
return static_cast<number_integer_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_integer;
}
// We only reach this line if we cannot compare values. In that case,
// we compare types. Note we have to call the operator explicitly,
// because MSVC has problems otherwise.
return operator<(lhs_type, rhs_type);
}
/*!
@brief comparison: less than or equal
Compares whether one JSON value @a lhs is less than or equal to another
JSON value by calculating `not (rhs < lhs)`.
@param[in] lhs first JSON value to consider
@param[in] rhs second JSON value to consider
@return whether @a lhs is less than or equal to @a rhs
@complexity Linear.
@liveexample{The example demonstrates comparing several JSON
types.,operator__greater}
@since version 1.0.0
*/
friend bool operator<=(const_reference lhs, const_reference rhs) noexcept
{
return not (rhs < lhs);
}
/*!
@brief comparison: greater than
Compares whether one JSON value @a lhs is greater than another
JSON value by calculating `not (lhs <= rhs)`.
@param[in] lhs first JSON value to consider
@param[in] rhs second JSON value to consider
@return whether @a lhs is greater than to @a rhs
@complexity Linear.
@liveexample{The example demonstrates comparing several JSON
types.,operator__lessequal}
@since version 1.0.0
*/
friend bool operator>(const_reference lhs, const_reference rhs) noexcept
{
return not (lhs <= rhs);
}
/*!
@brief comparison: greater than or equal
Compares whether one JSON value @a lhs is greater than or equal to another
JSON value by calculating `not (lhs < rhs)`.
@param[in] lhs first JSON value to consider
@param[in] rhs second JSON value to consider
@return whether @a lhs is greater than or equal to @a rhs
@complexity Linear.
@liveexample{The example demonstrates comparing several JSON
types.,operator__greaterequal}
@since version 1.0.0
*/
friend bool operator>=(const_reference lhs, const_reference rhs) noexcept
{
return not (lhs < rhs);
}
/// @}
///////////////////
// serialization //
///////////////////
/// @name serialization
/// @{
/*!
@brief serialize to stream
Serialize the given JSON value @a j to the output stream @a o. The JSON
value will be serialized using the @ref dump member function. The
indentation of the output can be controlled with the member variable
`width` of the output stream @a o. For instance, using the manipulator
`std::setw(4)` on @a o sets the indentation level to `4` and the
serialization result is the same as calling `dump(4)`.
@note During serializaion, the locale and the precision of the output
stream @a o are changed. The original values are restored when the
function returns.
@param[in,out] o stream to serialize to
@param[in] j JSON value to serialize
@return the stream @a o
@complexity Linear.
@liveexample{The example below shows the serialization with different
parameters to `width` to adjust the indentation level.,operator_serialize}
@since version 1.0.0
*/
friend std::ostream& operator<<(std::ostream& o, const basic_json& j)
{
// read width member and use it as indentation parameter if nonzero
const bool pretty_print = (o.width() > 0);
const auto indentation = (pretty_print ? o.width() : 0);
// reset width to 0 for subsequent calls to this stream
o.width(0);
// Leo: The following crashes when compiling with g++ 4.9 mingw Windows
// fix locale problems
// const auto old_locale = o.imbue(std::locale(std::locale(), new DecimalSeparator));
// set precision
// 6, 15 or 16 digits of precision allows round-trip IEEE 754
// string->float->string, string->double->string or string->long
// double->string; to be safe, we read this value from
// std::numeric_limits<number_float_t>::digits10
const auto old_precision = o.precision(std::numeric_limits<double>::digits10);
// do the actual serialization
j.dump(o, pretty_print, static_cast<unsigned int>(indentation));
// reset locale and precision
// o.imbue(old_locale);
o.precision(old_precision);
return o;
}
/*!
@brief serialize to stream
@copydoc operator<<(std::ostream&, const basic_json&)
*/
friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
{
return o << j;
}
/// @}
/////////////////////
// deserialization //
/////////////////////
/// @name deserialization
/// @{
/*!
@brief deserialize from an array
This function reads from an array of 1-byte values.
@pre Each element of the container has a size of 1 byte. Violating this
precondition yields undefined behavior. **This precondition is enforced
with a static assertion.**
@param[in] array array to read from
@param[in] cb a parser callback function of type @ref parser_callback_t
which is used to control the deserialization by filtering unwanted values
(optional)
@return result of the deserialization
@complexity Linear in the length of the input. The parser is a predictive
LL(1) parser. The complexity can be higher if the parser callback function
@a cb has a super-linear complexity.
@note A UTF-8 byte order mark is silently ignored.
@liveexample{The example below demonstrates the `parse()` function reading
from an array.,parse__array__parser_callback_t}
@since version 2.0.3
*/
template<class T, std::size_t N>
static basic_json parse(T (&array)[N],
const parser_callback_t cb = nullptr)
{
// delegate the call to the iterator-range parse overload
return parse(std::begin(array), std::end(array), cb);
}
/*!
@brief deserialize from string literal
@tparam CharT character/literal type with size of 1 byte
@param[in] s string literal to read a serialized JSON value from
@param[in] cb a parser callback function of type @ref parser_callback_t
which is used to control the deserialization by filtering unwanted values
(optional)
@return result of the deserialization
@complexity Linear in the length of the input. The parser is a predictive
LL(1) parser. The complexity can be higher if the parser callback function
@a cb has a super-linear complexity.
@note A UTF-8 byte order mark is silently ignored.
@note String containers like `std::string` or @ref string_t can be parsed
with @ref parse(const ContiguousContainer&, const parser_callback_t)
@liveexample{The example below demonstrates the `parse()` function with
and without callback function.,parse__string__parser_callback_t}
@sa @ref parse(std::istream&, const parser_callback_t) for a version that
reads from an input stream
@since version 1.0.0 (originally for @ref string_t)
*/
template<typename CharPT, typename std::enable_if<
std::is_pointer<CharPT>::value and
std::is_integral<typename std::remove_pointer<CharPT>::type>::value and
sizeof(typename std::remove_pointer<CharPT>::type) == 1, int>::type = 0>
static basic_json parse(const CharPT s,
const parser_callback_t cb = nullptr)
{
return parser(reinterpret_cast<const char*>(s), cb).parse();
}
/*!
@brief deserialize from stream
@param[in,out] i stream to read a serialized JSON value from
@param[in] cb a parser callback function of type @ref parser_callback_t
which is used to control the deserialization by filtering unwanted values
(optional)
@return result of the deserialization
@complexity Linear in the length of the input. The parser is a predictive
LL(1) parser. The complexity can be higher if the parser callback function
@a cb has a super-linear complexity.
@note A UTF-8 byte order mark is silently ignored.
@liveexample{The example below demonstrates the `parse()` function with
and without callback function.,parse__istream__parser_callback_t}
@sa @ref parse(const char*, const parser_callback_t) for a version
that reads from a string
@since version 1.0.0
*/
static basic_json parse(std::istream& i,
const parser_callback_t cb = nullptr)
{
return parser(i, cb).parse();
}
/*!
@copydoc parse(std::istream&, const parser_callback_t)
*/
static basic_json parse(std::istream&& i,
const parser_callback_t cb = nullptr)
{
return parser(i, cb).parse();
}
/*!
@brief deserialize from an iterator range with contiguous storage
This function reads from an iterator range of a container with contiguous
storage of 1-byte values. Compatible container types include
`std::vector`, `std::string`, `std::array`, `std::valarray`, and
`std::initializer_list`. Furthermore, C-style arrays can be used with
`std::begin()`/`std::end()`. User-defined containers can be used as long
as they implement random-access iterators and a contiguous storage.
@pre The iterator range is contiguous. Violating this precondition yields
undefined behavior. **This precondition is enforced with an assertion.**
@pre Each element in the range has a size of 1 byte. Violating this
precondition yields undefined behavior. **This precondition is enforced
with a static assertion.**
@warning There is no way to enforce all preconditions at compile-time. If
the function is called with noncompliant iterators and with
assertions switched off, the behavior is undefined and will most
likely yield segmentation violation.
@tparam IteratorType iterator of container with contiguous storage
@param[in] first begin of the range to parse (included)
@param[in] last end of the range to parse (excluded)
@param[in] cb a parser callback function of type @ref parser_callback_t
which is used to control the deserialization by filtering unwanted values
(optional)
@return result of the deserialization
@complexity Linear in the length of the input. The parser is a predictive
LL(1) parser. The complexity can be higher if the parser callback function
@a cb has a super-linear complexity.
@note A UTF-8 byte order mark is silently ignored.
@liveexample{The example below demonstrates the `parse()` function reading
from an iterator range.,parse__iteratortype__parser_callback_t}
@since version 2.0.3
*/
template<class IteratorType, typename std::enable_if<
std::is_base_of<
std::random_access_iterator_tag,
typename std::iterator_traits<IteratorType>::iterator_category>::value, int>::type = 0>
static basic_json parse(IteratorType first, IteratorType last,
const parser_callback_t cb = nullptr)
{
// assertion to check that the iterator range is indeed contiguous,
// see http://stackoverflow.com/a/35008842/266378 for more discussion
assert(std::accumulate(first, last, std::make_pair<bool, int>(true, 0),
[&first](std::pair<bool, int> res, decltype(*first) val)
{
res.first &= (val == *(std::next(std::addressof(*first), res.second++)));
return res;
}).first);
// assertion to check that each element is 1 byte long
static_assert(sizeof(typename std::iterator_traits<IteratorType>::value_type) == 1,
"each element in the iterator range must have the size of 1 byte");
// if iterator range is empty, create a parser with an empty string
// to generate "unexpected EOF" error message
if (std::distance(first, last) <= 0)
{
return parser("").parse();
}
return parser(first, last, cb).parse();
}
/*!
@brief deserialize from a container with contiguous storage
This function reads from a container with contiguous storage of 1-byte
values. Compatible container types include `std::vector`, `std::string`,
`std::array`, and `std::initializer_list`. User-defined containers can be
used as long as they implement random-access iterators and a contiguous
storage.
@pre The container storage is contiguous. Violating this precondition
yields undefined behavior. **This precondition is enforced with an
assertion.**
@pre Each element of the container has a size of 1 byte. Violating this
precondition yields undefined behavior. **This precondition is enforced
with a static assertion.**
@warning There is no way to enforce all preconditions at compile-time. If
the function is called with a noncompliant container and with
assertions switched off, the behavior is undefined and will most
likely yield segmentation violation.
@tparam ContiguousContainer container type with contiguous storage
@param[in] c container to read from
@param[in] cb a parser callback function of type @ref parser_callback_t
which is used to control the deserialization by filtering unwanted values
(optional)
@return result of the deserialization
@complexity Linear in the length of the input. The parser is a predictive
LL(1) parser. The complexity can be higher if the parser callback function
@a cb has a super-linear complexity.
@note A UTF-8 byte order mark is silently ignored.
@liveexample{The example below demonstrates the `parse()` function reading
from a contiguous container.,parse__contiguouscontainer__parser_callback_t}
@since version 2.0.3
*/
template<class ContiguousContainer, typename std::enable_if<
not std::is_pointer<ContiguousContainer>::value and
std::is_base_of<
std::random_access_iterator_tag,
typename std::iterator_traits<decltype(std::begin(std::declval<ContiguousContainer const>()))>::iterator_category>::value
, int>::type = 0>
static basic_json parse(const ContiguousContainer& c,
const parser_callback_t cb = nullptr)
{
// delegate the call to the iterator-range parse overload
return parse(std::begin(c), std::end(c), cb);
}
/*!
@brief deserialize from stream
Deserializes an input stream to a JSON value.
@param[in,out] i input stream to read a serialized JSON value from
@param[in,out] j JSON value to write the deserialized input to
@throw std::invalid_argument in case of parse errors
@complexity Linear in the length of the input. The parser is a predictive
LL(1) parser.
@note A UTF-8 byte order mark is silently ignored.
@liveexample{The example below shows how a JSON value is constructed by
reading a serialization from a stream.,operator_deserialize}
@sa parse(std::istream&, const parser_callback_t) for a variant with a
parser callback function to filter values while parsing
@since version 1.0.0
*/
friend std::istream& operator<<(basic_json& j, std::istream& i)
{
j = parser(i).parse();
return i;
}
/*!
@brief deserialize from stream
@copydoc operator<<(basic_json&, std::istream&)
*/
friend std::istream& operator>>(std::istream& i, basic_json& j)
{
j = parser(i).parse();
return i;
}
/// @}
private:
///////////////////////////
// convenience functions //
///////////////////////////
/*!
@brief return the type as string
Returns the type name as string to be used in error messages - usually to
indicate that a function was called on a wrong JSON type.
@return basically a string representation of a the @a m_type member
@complexity Constant.
@since version 1.0.0
*/
std::string type_name() const
{
switch (m_type)
{
case value_t::null:
return "null";
case value_t::object:
return "object";
case value_t::array:
return "array";
case value_t::string:
return "string";
case value_t::boolean:
return "boolean";
case value_t::discarded:
return "discarded";
default:
return "number";
}
}
/*!
@brief calculates the extra space to escape a JSON string
@param[in] s the string to escape
@return the number of characters required to escape string @a s
@complexity Linear in the length of string @a s.
*/
static std::size_t extra_space(const string_t& s) noexcept
{
return std::accumulate(s.begin(), s.end(), size_t{},
[](size_t res, typename string_t::value_type c)
{
switch (c)
{
case '"':
case '\\':
case '\b':
case '\f':
case '\n':
case '\r':
case '\t':
{
// from c (1 byte) to \x (2 bytes)
return res + 1;
}
default:
{
if (c >= 0x00 and c <= 0x1f)
{
// from c (1 byte) to \uxxxx (6 bytes)
return res + 5;
}
else
{
return res;
}
}
}
});
}
/*!
@brief escape a string
Escape a string by replacing certain special characters by a sequence of
an escape character (backslash) and another character and other control
characters by a sequence of "\u" followed by a four-digit hex
representation.
@param[in] s the string to escape
@return the escaped string
@complexity Linear in the length of string @a s.
*/
static string_t escape_string(const string_t& s)
{
const auto space = extra_space(s);
if (space == 0)
{
return s;
}
// create a result string of necessary size
string_t result(s.size() + space, '\\');
std::size_t pos = 0;
for (const auto& c : s)
{
switch (c)
{
// quotation mark (0x22)
case '"':
{
result[pos + 1] = '"';
pos += 2;
break;
}
// reverse solidus (0x5c)
case '\\':
{
// nothing to change
pos += 2;
break;
}
// backspace (0x08)
case '\b':
{
result[pos + 1] = 'b';
pos += 2;
break;
}
// formfeed (0x0c)
case '\f':
{
result[pos + 1] = 'f';
pos += 2;
break;
}
// newline (0x0a)
case '\n':
{
result[pos + 1] = 'n';
pos += 2;
break;
}
// carriage return (0x0d)
case '\r':
{
result[pos + 1] = 'r';
pos += 2;
break;
}
// horizontal tab (0x09)
case '\t':
{
result[pos + 1] = 't';
pos += 2;
break;
}
default:
{
if (c >= 0x00 and c <= 0x1f)
{
// convert a number 0..15 to its hex representation
// (0..f)
static const char hexify[16] =
{
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
};
// print character c as \uxxxx
for (const char m :
{ 'u', '0', '0', hexify[c >> 4], hexify[c & 0x0f]
})
{
result[++pos] = m;
}
++pos;
}
else
{
// all other characters are added as-is
result[pos++] = c;
}
break;
}
}
}
return result;
}
/*!
@brief internal implementation of the serialization function
This function is called by the public member function dump and organizes
the serialization internally. The indentation level is propagated as
additional parameter. In case of arrays and objects, the function is
called recursively. Note that
- strings and object keys are escaped using `escape_string()`
- integer numbers are converted implicitly via `operator<<`
- floating-point numbers are converted to a string using `"%g"` format
@param[out] o stream to write to
@param[in] pretty_print whether the output shall be pretty-printed
@param[in] indent_step the indent level
@param[in] current_indent the current indent level (only used internally)
*/
void dump(std::ostream& o,
const bool pretty_print,
const unsigned int indent_step,
const unsigned int current_indent = 0) const
{
// variable to hold indentation for recursive calls
unsigned int new_indent = current_indent;
switch (m_type)
{
case value_t::object:
{
if (m_value.object->empty())
{
o << "{}";
return;
}
o << "{";
// increase indentation
if (pretty_print)
{
new_indent += indent_step;
o << "\n";
}
for (auto i = m_value.object->cbegin(); i != m_value.object->cend(); ++i)
{
if (i != m_value.object->cbegin())
{
o << (pretty_print ? ",\n" : ",");
}
o << string_t(new_indent, ' ') << "\""
<< escape_string(i->first) << "\":"
<< (pretty_print ? " " : "");
i->second.dump(o, pretty_print, indent_step, new_indent);
}
// decrease indentation
if (pretty_print)
{
new_indent -= indent_step;
o << "\n";
}
o << string_t(new_indent, ' ') + "}";
return;
}
case value_t::array:
{
if (m_value.array->empty())
{
o << "[]";
return;
}
o << "[";
// increase indentation
if (pretty_print)
{
new_indent += indent_step;
o << "\n";
}
for (auto i = m_value.array->cbegin(); i != m_value.array->cend(); ++i)
{
if (i != m_value.array->cbegin())
{
o << (pretty_print ? ",\n" : ",");
}
o << string_t(new_indent, ' ');
i->dump(o, pretty_print, indent_step, new_indent);
}
// decrease indentation
if (pretty_print)
{
new_indent -= indent_step;
o << "\n";
}
o << string_t(new_indent, ' ') << "]";
return;
}
case value_t::string:
{
o << string_t("\"") << escape_string(*m_value.string) << "\"";
return;
}
case value_t::boolean:
{
o << (m_value.boolean ? "true" : "false");
return;
}
case value_t::number_integer:
{
o << m_value.number_integer;
return;
}
case value_t::number_unsigned:
{
o << m_value.number_unsigned;
return;
}
case value_t::number_float:
{
if (m_value.number_float == 0)
{
// special case for zero to get "0.0"/"-0.0"
o << (std::signbit(m_value.number_float) ? "-0.0" : "0.0");
}
else
{
o << m_value.number_float;
}
return;
}
case value_t::discarded:
{
o << "<discarded>";
return;
}
case value_t::null:
{
o << "null";
return;
}
}
}
private:
//////////////////////
// member variables //
//////////////////////
/// the type of the current element
value_t m_type = value_t::null;
/// the value of the current element
json_value m_value = {};
private:
///////////////
// iterators //
///////////////
/*!
@brief an iterator for primitive JSON types
This class models an iterator for primitive JSON types (boolean, number,
string). It's only purpose is to allow the iterator/const_iterator classes
to "iterate" over primitive values. Internally, the iterator is modeled by
a `difference_type` variable. Value begin_value (`0`) models the begin,
end_value (`1`) models past the end.
*/
class primitive_iterator_t
{
public:
/// set iterator to a defined beginning
void set_begin() noexcept
{
m_it = begin_value;
}
/// set iterator to a defined past the end
void set_end() noexcept
{
m_it = end_value;
}
/// return whether the iterator can be dereferenced
constexpr bool is_begin() const noexcept
{
return (m_it == begin_value);
}
/// return whether the iterator is at end
constexpr bool is_end() const noexcept
{
return (m_it == end_value);
}
/// return reference to the value to change and compare
operator difference_type& () noexcept
{
return m_it;
}
/// return value to compare
constexpr operator difference_type () const noexcept
{
return m_it;
}
private:
static constexpr difference_type begin_value = 0;
static constexpr difference_type end_value = begin_value + 1;
/// iterator as signed integer type
difference_type m_it = std::numeric_limits<std::ptrdiff_t>::denorm_min();
};
/*!
@brief an iterator value
@note This structure could easily be a union, but MSVC currently does not
allow unions members with complex constructors, see
https://github.com/nlohmann/json/pull/105.
*/
struct internal_iterator
{
/// iterator for JSON objects
typename object_t::iterator object_iterator;
/// iterator for JSON arrays
typename array_t::iterator array_iterator;
/// generic iterator for all other types
primitive_iterator_t primitive_iterator;
/// create an uninitialized internal_iterator
internal_iterator() noexcept
: object_iterator(), array_iterator(), primitive_iterator()
{}
};
/// proxy class for the iterator_wrapper functions
template<typename IteratorType>
class iteration_proxy
{
private:
/// helper class for iteration
class iteration_proxy_internal
{
private:
/// the iterator
IteratorType anchor;
/// an index for arrays (used to create key names)
size_t array_index = 0;
public:
explicit iteration_proxy_internal(IteratorType it) noexcept
: anchor(it)
{}
/// dereference operator (needed for range-based for)
iteration_proxy_internal& operator*()
{
return *this;
}
/// increment operator (needed for range-based for)
iteration_proxy_internal& operator++()
{
++anchor;
++array_index;
return *this;
}
/// inequality operator (needed for range-based for)
bool operator!= (const iteration_proxy_internal& o) const
{
return anchor != o.anchor;
}
/// return key of the iterator
typename basic_json::string_t key() const
{
assert(anchor.m_object != nullptr);
switch (anchor.m_object->type())
{
// use integer array index as key
case value_t::array:
{
return std::to_string(array_index);
}
// use key from the object
case value_t::object:
{
return anchor.key();
}
// use an empty key for all primitive types
default:
{
return "";
}
}
}
/// return value of the iterator
typename IteratorType::reference value() const
{
return anchor.value();
}
};
/// the container to iterate
typename IteratorType::reference container;
public:
/// construct iteration proxy from a container
explicit iteration_proxy(typename IteratorType::reference cont)
: container(cont)
{}
/// return iterator begin (needed for range-based for)
iteration_proxy_internal begin() noexcept
{
return iteration_proxy_internal(container.begin());
}
/// return iterator end (needed for range-based for)
iteration_proxy_internal end() noexcept
{
return iteration_proxy_internal(container.end());
}
};
public:
/*!
@brief a const random access iterator for the @ref basic_json class
This class implements a const iterator for the @ref basic_json class. From
this class, the @ref iterator class is derived.
@note An iterator is called *initialized* when a pointer to a JSON value
has been set (e.g., by a constructor or a copy assignment). If the
iterator is default-constructed, it is *uninitialized* and most
methods are undefined. **The library uses assertions to detect calls
on uninitialized iterators.**
@requirement The class satisfies the following concept requirements:
- [RandomAccessIterator](http://en.cppreference.com/w/cpp/concept/RandomAccessIterator):
The iterator that can be moved to point (forward and backward) to any
element in constant time.
@since version 1.0.0
*/
class const_iterator : public std::iterator<std::random_access_iterator_tag, const basic_json>
{
/// allow basic_json to access private members
friend class basic_json;
public:
/// the type of the values when the iterator is dereferenced
using value_type = typename basic_json::value_type;
/// a type to represent differences between iterators
using difference_type = typename basic_json::difference_type;
/// defines a pointer to the type iterated over (value_type)
using pointer = typename basic_json::const_pointer;
/// defines a reference to the type iterated over (value_type)
using reference = typename basic_json::const_reference;
/// the category of the iterator
using iterator_category = std::bidirectional_iterator_tag;
/// default constructor
const_iterator() = default;
/*!
@brief constructor for a given JSON instance
@param[in] object pointer to a JSON object for this iterator
@pre object != nullptr
@post The iterator is initialized; i.e. `m_object != nullptr`.
*/
explicit const_iterator(pointer object) noexcept
: m_object(object)
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
m_it.object_iterator = typename object_t::iterator();
break;
}
case basic_json::value_t::array:
{
m_it.array_iterator = typename array_t::iterator();
break;
}
default:
{
m_it.primitive_iterator = primitive_iterator_t();
break;
}
}
}
/*!
@brief copy constructor given a non-const iterator
@param[in] other iterator to copy from
@note It is not checked whether @a other is initialized.
*/
explicit const_iterator(const iterator& other) noexcept
: m_object(other.m_object)
{
if (m_object != nullptr)
{
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
m_it.object_iterator = other.m_it.object_iterator;
break;
}
case basic_json::value_t::array:
{
m_it.array_iterator = other.m_it.array_iterator;
break;
}
default:
{
m_it.primitive_iterator = other.m_it.primitive_iterator;
break;
}
}
}
}
/*!
@brief copy constructor
@param[in] other iterator to copy from
@note It is not checked whether @a other is initialized.
*/
const_iterator(const const_iterator& other) noexcept
: m_object(other.m_object), m_it(other.m_it)
{}
/*!
@brief copy assignment
@param[in,out] other iterator to copy from
@note It is not checked whether @a other is initialized.
*/
const_iterator& operator=(const_iterator other) noexcept(
std::is_nothrow_move_constructible<pointer>::value and
std::is_nothrow_move_assignable<pointer>::value and
std::is_nothrow_move_constructible<internal_iterator>::value and
std::is_nothrow_move_assignable<internal_iterator>::value
)
{
std::swap(m_object, other.m_object);
std::swap(m_it, other.m_it);
return *this;
}
private:
/*!
@brief set the iterator to the first value
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
void set_begin() noexcept
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
m_it.object_iterator = m_object->m_value.object->begin();
break;
}
case basic_json::value_t::array:
{
m_it.array_iterator = m_object->m_value.array->begin();
break;
}
case basic_json::value_t::null:
{
// set to end so begin()==end() is true: null is empty
m_it.primitive_iterator.set_end();
break;
}
default:
{
m_it.primitive_iterator.set_begin();
break;
}
}
}
/*!
@brief set the iterator past the last value
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
void set_end() noexcept
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
m_it.object_iterator = m_object->m_value.object->end();
break;
}
case basic_json::value_t::array:
{
m_it.array_iterator = m_object->m_value.array->end();
break;
}
default:
{
m_it.primitive_iterator.set_end();
break;
}
}
}
public:
/*!
@brief return a reference to the value pointed to by the iterator
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
reference operator*() const
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
assert(m_it.object_iterator != m_object->m_value.object->end());
return m_it.object_iterator->second;
}
case basic_json::value_t::array:
{
assert(m_it.array_iterator != m_object->m_value.array->end());
return *m_it.array_iterator;
}
case basic_json::value_t::null:
{
throw std::out_of_range("cannot get value");
}
default:
{
if (m_it.primitive_iterator.is_begin())
{
return *m_object;
}
else
{
throw std::out_of_range("cannot get value");
}
}
}
}
/*!
@brief dereference the iterator
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
pointer operator->() const
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
assert(m_it.object_iterator != m_object->m_value.object->end());
return &(m_it.object_iterator->second);
}
case basic_json::value_t::array:
{
assert(m_it.array_iterator != m_object->m_value.array->end());
return &*m_it.array_iterator;
}
default:
{
if (m_it.primitive_iterator.is_begin())
{
return m_object;
}
else
{
throw std::out_of_range("cannot get value");
}
}
}
}
/*!
@brief post-increment (it++)
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
const_iterator operator++(int)
{
auto result = *this;
++(*this);
return result;
}
/*!
@brief pre-increment (++it)
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
const_iterator& operator++()
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
std::advance(m_it.object_iterator, 1);
break;
}
case basic_json::value_t::array:
{
std::advance(m_it.array_iterator, 1);
break;
}
default:
{
++m_it.primitive_iterator;
break;
}
}
return *this;
}
/*!
@brief post-decrement (it--)
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
const_iterator operator--(int)
{
auto result = *this;
--(*this);
return result;
}
/*!
@brief pre-decrement (--it)
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
const_iterator& operator--()
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
std::advance(m_it.object_iterator, -1);
break;
}
case basic_json::value_t::array:
{
std::advance(m_it.array_iterator, -1);
break;
}
default:
{
--m_it.primitive_iterator;
break;
}
}
return *this;
}
/*!
@brief comparison: equal
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
bool operator==(const const_iterator& other) const
{
// if objects are not the same, the comparison is undefined
if (m_object != other.m_object)
{
throw std::domain_error("cannot compare iterators of different containers");
}
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
return (m_it.object_iterator == other.m_it.object_iterator);
}
case basic_json::value_t::array:
{
return (m_it.array_iterator == other.m_it.array_iterator);
}
default:
{
return (m_it.primitive_iterator == other.m_it.primitive_iterator);
}
}
}
/*!
@brief comparison: not equal
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
bool operator!=(const const_iterator& other) const
{
return not operator==(other);
}
/*!
@brief comparison: smaller
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
bool operator<(const const_iterator& other) const
{
// if objects are not the same, the comparison is undefined
if (m_object != other.m_object)
{
throw std::domain_error("cannot compare iterators of different containers");
}
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
throw std::domain_error("cannot compare order of object iterators");
}
case basic_json::value_t::array:
{
return (m_it.array_iterator < other.m_it.array_iterator);
}
default:
{
return (m_it.primitive_iterator < other.m_it.primitive_iterator);
}
}
}
/*!
@brief comparison: less than or equal
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
bool operator<=(const const_iterator& other) const
{
return not other.operator < (*this);
}
/*!
@brief comparison: greater than
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
bool operator>(const const_iterator& other) const
{
return not operator<=(other);
}
/*!
@brief comparison: greater than or equal
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
bool operator>=(const const_iterator& other) const
{
return not operator<(other);
}
/*!
@brief add to iterator
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
const_iterator& operator+=(difference_type i)
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
throw std::domain_error("cannot use offsets with object iterators");
}
case basic_json::value_t::array:
{
std::advance(m_it.array_iterator, i);
break;
}
default:
{
m_it.primitive_iterator += i;
break;
}
}
return *this;
}
/*!
@brief subtract from iterator
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
const_iterator& operator-=(difference_type i)
{
return operator+=(-i);
}
/*!
@brief add to iterator
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
const_iterator operator+(difference_type i)
{
auto result = *this;
result += i;
return result;
}
/*!
@brief subtract from iterator
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
const_iterator operator-(difference_type i)
{
auto result = *this;
result -= i;
return result;
}
/*!
@brief return difference
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
difference_type operator-(const const_iterator& other) const
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
throw std::domain_error("cannot use offsets with object iterators");
}
case basic_json::value_t::array:
{
return m_it.array_iterator - other.m_it.array_iterator;
}
default:
{
return m_it.primitive_iterator - other.m_it.primitive_iterator;
}
}
}
/*!
@brief access to successor
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
reference operator[](difference_type n) const
{
assert(m_object != nullptr);
switch (m_object->m_type)
{
case basic_json::value_t::object:
{
throw std::domain_error("cannot use operator[] for object iterators");
}
case basic_json::value_t::array:
{
return *std::next(m_it.array_iterator, n);
}
case basic_json::value_t::null:
{
throw std::out_of_range("cannot get value");
}
default:
{
if (m_it.primitive_iterator == -n)
{
return *m_object;
}
else
{
throw std::out_of_range("cannot get value");
}
}
}
}
/*!
@brief return the key of an object iterator
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
typename object_t::key_type key() const
{
assert(m_object != nullptr);
if (m_object->is_object())
{
return m_it.object_iterator->first;
}
else
{
throw std::domain_error("cannot use key() for non-object iterators");
}
}
/*!
@brief return the value of an iterator
@pre The iterator is initialized; i.e. `m_object != nullptr`.
*/
reference value() const
{
return operator*();
}
private:
/// associated JSON instance
pointer m_object = nullptr;
/// the actual iterator of the associated instance
internal_iterator m_it = internal_iterator();
};
/*!
@brief a mutable random access iterator for the @ref basic_json class
@requirement The class satisfies the following concept requirements:
- [RandomAccessIterator](http://en.cppreference.com/w/cpp/concept/RandomAccessIterator):
The iterator that can be moved to point (forward and backward) to any
element in constant time.
- [OutputIterator](http://en.cppreference.com/w/cpp/concept/OutputIterator):
It is possible to write to the pointed-to element.
@since version 1.0.0
*/
class iterator : public const_iterator
{
public:
using base_iterator = const_iterator;
using pointer = typename basic_json::pointer;
using reference = typename basic_json::reference;
/// default constructor
iterator() = default;
/// constructor for a given JSON instance
explicit iterator(pointer object) noexcept
: base_iterator(object)
{}
/// copy constructor
iterator(const iterator& other) noexcept
: base_iterator(other)
{}
/// copy assignment
iterator& operator=(iterator other) noexcept(
std::is_nothrow_move_constructible<pointer>::value and
std::is_nothrow_move_assignable<pointer>::value and
std::is_nothrow_move_constructible<internal_iterator>::value and
std::is_nothrow_move_assignable<internal_iterator>::value
)
{
base_iterator::operator=(other);
return *this;
}
/// return a reference to the value pointed to by the iterator
reference operator*() const
{
return const_cast<reference>(base_iterator::operator*());
}
/// dereference the iterator
pointer operator->() const
{
return const_cast<pointer>(base_iterator::operator->());
}
/// post-increment (it++)
iterator operator++(int)
{
iterator result = *this;
base_iterator::operator++();
return result;
}
/// pre-increment (++it)
iterator& operator++()
{
base_iterator::operator++();
return *this;
}
/// post-decrement (it--)
iterator operator--(int)
{
iterator result = *this;
base_iterator::operator--();
return result;
}
/// pre-decrement (--it)
iterator& operator--()
{
base_iterator::operator--();
return *this;
}
/// add to iterator
iterator& operator+=(difference_type i)
{
base_iterator::operator+=(i);
return *this;
}
/// subtract from iterator
iterator& operator-=(difference_type i)
{
base_iterator::operator-=(i);
return *this;
}
/// add to iterator
iterator operator+(difference_type i)
{
auto result = *this;
result += i;
return result;
}
/// subtract from iterator
iterator operator-(difference_type i)
{
auto result = *this;
result -= i;
return result;
}
/// return difference
difference_type operator-(const iterator& other) const
{
return base_iterator::operator-(other);
}
/// access to successor
reference operator[](difference_type n) const
{
return const_cast<reference>(base_iterator::operator[](n));
}
/// return the value of an iterator
reference value() const
{
return const_cast<reference>(base_iterator::value());
}
};
/*!
@brief a template for a reverse iterator class
@tparam Base the base iterator type to reverse. Valid types are @ref
iterator (to create @ref reverse_iterator) and @ref const_iterator (to
create @ref const_reverse_iterator).
@requirement The class satisfies the following concept requirements:
- [RandomAccessIterator](http://en.cppreference.com/w/cpp/concept/RandomAccessIterator):
The iterator that can be moved to point (forward and backward) to any
element in constant time.
- [OutputIterator](http://en.cppreference.com/w/cpp/concept/OutputIterator):
It is possible to write to the pointed-to element (only if @a Base is
@ref iterator).
@since version 1.0.0
*/
template<typename Base>
class json_reverse_iterator : public std::reverse_iterator<Base>
{
public:
/// shortcut to the reverse iterator adaptor
using base_iterator = std::reverse_iterator<Base>;
/// the reference type for the pointed-to element
using reference = typename Base::reference;
/// create reverse iterator from iterator
json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept
: base_iterator(it)
{}
/// create reverse iterator from base class
json_reverse_iterator(const base_iterator& it) noexcept
: base_iterator(it)
{}
/// post-increment (it++)
json_reverse_iterator operator++(int)
{
return base_iterator::operator++(1);
}
/// pre-increment (++it)
json_reverse_iterator& operator++()
{
base_iterator::operator++();
return *this;
}
/// post-decrement (it--)
json_reverse_iterator operator--(int)
{
return base_iterator::operator--(1);
}
/// pre-decrement (--it)
json_reverse_iterator& operator--()
{
base_iterator::operator--();
return *this;
}
/// add to iterator
json_reverse_iterator& operator+=(difference_type i)
{
base_iterator::operator+=(i);
return *this;
}
/// add to iterator
json_reverse_iterator operator+(difference_type i) const
{
auto result = *this;
result += i;
return result;
}
/// subtract from iterator
json_reverse_iterator operator-(difference_type i) const
{
auto result = *this;
result -= i;
return result;
}
/// return difference
difference_type operator-(const json_reverse_iterator& other) const
{
return this->base() - other.base();
}
/// access to successor
reference operator[](difference_type n) const
{
return *(this->operator+(n));
}
/// return the key of an object iterator
typename object_t::key_type key() const
{
auto it = --this->base();
return it.key();
}
/// return the value of an iterator
reference value() const
{
auto it = --this->base();
return it.operator * ();
}
};
private:
//////////////////////
// lexer and parser //
//////////////////////
/*!
@brief lexical analysis
This class organizes the lexical analysis during JSON deserialization. The
core of it is a scanner generated by [re2c](http://re2c.org) that
processes a buffer and recognizes tokens according to RFC 7159.
*/
class lexer
{
public:
/// token types for the parser
enum class token_type
{
uninitialized, ///< indicating the scanner is uninitialized
literal_true, ///< the `true` literal
literal_false, ///< the `false` literal
literal_null, ///< the `null` literal
value_string, ///< a string -- use get_string() for actual value
value_number, ///< a number -- use get_number() for actual value
begin_array, ///< the character for array begin `[`
begin_object, ///< the character for object begin `{`
end_array, ///< the character for array end `]`
end_object, ///< the character for object end `}`
name_separator, ///< the name separator `:`
value_separator, ///< the value separator `,`
parse_error, ///< indicating a parse error
end_of_input ///< indicating the end of the input buffer
};
/// the char type to use in the lexer
using lexer_char_t = unsigned char;
/// a lexer from a buffer with given length
lexer(const lexer_char_t* buff, const size_t len) noexcept
: m_content(buff)
{
assert(m_content != nullptr);
m_start = m_cursor = m_content;
m_limit = m_content + len;
}
/// a lexer from an input stream
explicit lexer(std::istream& s)
: m_stream(&s), m_line_buffer()
{
// fill buffer
fill_line_buffer();
}
// switch off unwanted functions (due to pointer members)
lexer() = delete;
lexer(const lexer&) = delete;
lexer operator=(const lexer&) = delete;
/*!
@brief create a string from one or two Unicode code points
There are two cases: (1) @a codepoint1 is in the Basic Multilingual
Plane (U+0000 through U+FFFF) and @a codepoint2 is 0, or (2)
@a codepoint1 and @a codepoint2 are a UTF-16 surrogate pair to
represent a code point above U+FFFF.
@param[in] codepoint1 the code point (can be high surrogate)
@param[in] codepoint2 the code point (can be low surrogate or 0)
@return string representation of the code point; the length of the
result string is between 1 and 4 characters.
@throw std::out_of_range if code point is > 0x10ffff; example: `"code
points above 0x10FFFF are invalid"`
@throw std::invalid_argument if the low surrogate is invalid; example:
`""missing or wrong low surrogate""`
@complexity Constant.
@see <http://en.wikipedia.org/wiki/UTF-8#Sample_code>
*/
static string_t to_unicode(const std::size_t codepoint1,
const std::size_t codepoint2 = 0)
{
// calculate the code point from the given code points
std::size_t codepoint = codepoint1;
// check if codepoint1 is a high surrogate
if (codepoint1 >= 0xD800 and codepoint1 <= 0xDBFF)
{
// check if codepoint2 is a low surrogate
if (codepoint2 >= 0xDC00 and codepoint2 <= 0xDFFF)
{
codepoint =
// high surrogate occupies the most significant 22 bits
(codepoint1 << 10)
// low surrogate occupies the least significant 15 bits
+ codepoint2
// there is still the 0xD800, 0xDC00 and 0x10000 noise
// in the result so we have to subtract with:
// (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
- 0x35FDC00;
}
else
{
throw std::invalid_argument("missing or wrong low surrogate");
}
}
string_t result;
if (codepoint < 0x80)
{
// 1-byte characters: 0xxxxxxx (ASCII)
result.append(1, static_cast<typename string_t::value_type>(codepoint));
}
else if (codepoint <= 0x7ff)
{
// 2-byte characters: 110xxxxx 10xxxxxx
result.append(1, static_cast<typename string_t::value_type>(0xC0 | ((codepoint >> 6) & 0x1F)));
result.append(1, static_cast<typename string_t::value_type>(0x80 | (codepoint & 0x3F)));
}
else if (codepoint <= 0xffff)
{
// 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
result.append(1, static_cast<typename string_t::value_type>(0xE0 | ((codepoint >> 12) & 0x0F)));
result.append(1, static_cast<typename string_t::value_type>(0x80 | ((codepoint >> 6) & 0x3F)));
result.append(1, static_cast<typename string_t::value_type>(0x80 | (codepoint & 0x3F)));
}
else if (codepoint <= 0x10ffff)
{
// 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
result.append(1, static_cast<typename string_t::value_type>(0xF0 | ((codepoint >> 18) & 0x07)));
result.append(1, static_cast<typename string_t::value_type>(0x80 | ((codepoint >> 12) & 0x3F)));
result.append(1, static_cast<typename string_t::value_type>(0x80 | ((codepoint >> 6) & 0x3F)));
result.append(1, static_cast<typename string_t::value_type>(0x80 | (codepoint & 0x3F)));
}
else
{
throw std::out_of_range("code points above 0x10FFFF are invalid");
}
return result;
}
/// return name of values of type token_type (only used for errors)
static std::string token_type_name(const token_type t)
{
switch (t)
{
case token_type::uninitialized:
return "<uninitialized>";
case token_type::literal_true:
return "true literal";
case token_type::literal_false:
return "false literal";
case token_type::literal_null:
return "null literal";
case token_type::value_string:
return "string literal";
case token_type::value_number:
return "number literal";
case token_type::begin_array:
return "'['";
case token_type::begin_object:
return "'{'";
case token_type::end_array:
return "']'";
case token_type::end_object:
return "'}'";
case token_type::name_separator:
return "':'";
case token_type::value_separator:
return "','";
case token_type::parse_error:
return "<parse error>";
case token_type::end_of_input:
return "end of input";
default:
{
// catch non-enum values
return "unknown token"; // LCOV_EXCL_LINE
}
}
}
/*!
This function implements a scanner for JSON. It is specified using
regular expressions that try to follow RFC 7159 as close as possible.
These regular expressions are then translated into a minimized
deterministic finite automaton (DFA) by the tool
[re2c](http://re2c.org). As a result, the translated code for this
function consists of a large block of code with `goto` jumps.
@return the class of the next token read from the buffer
@complexity Linear in the length of the input.\n
Proposition: The loop below will always terminate for finite input.\n
Proof (by contradiction): Assume a finite input. To loop forever, the
loop must never hit code with a `break` statement. The only code
snippets without a `break` statement are the continue statements for
whitespace and byte-order-marks. To loop forever, the input must be an
infinite sequence of whitespace or byte-order-marks. This contradicts
the assumption of finite input, q.e.d.
*/
token_type scan()
{
while (true)
{
// pointer for backtracking information
m_marker = nullptr;
// remember the begin of the token
m_start = m_cursor;
assert(m_start != nullptr);
{
lexer_char_t yych;
unsigned int yyaccept = 0;
static const unsigned char yybm[] =
{
0, 0, 0, 0, 0, 0, 0, 0,
0, 32, 32, 0, 0, 32, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
160, 128, 0, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
192, 192, 192, 192, 192, 192, 192, 192,
192, 192, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 0, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
};
if ((m_limit - m_cursor) < 5)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yybm[0 + yych] & 32)
{
goto basic_json_parser_6;
}
if (yych <= '\\')
{
if (yych <= '-')
{
if (yych <= '"')
{
if (yych <= 0x00)
{
goto basic_json_parser_2;
}
if (yych <= '!')
{
goto basic_json_parser_4;
}
goto basic_json_parser_9;
}
else
{
if (yych <= '+')
{
goto basic_json_parser_4;
}
if (yych <= ',')
{
goto basic_json_parser_10;
}
goto basic_json_parser_12;
}
}
else
{
if (yych <= '9')
{
if (yych <= '/')
{
goto basic_json_parser_4;
}
if (yych <= '0')
{
goto basic_json_parser_13;
}
goto basic_json_parser_15;
}
else
{
if (yych <= ':')
{
goto basic_json_parser_17;
}
if (yych == '[')
{
goto basic_json_parser_19;
}
goto basic_json_parser_4;
}
}
}
else
{
if (yych <= 't')
{
if (yych <= 'f')
{
if (yych <= ']')
{
goto basic_json_parser_21;
}
if (yych <= 'e')
{
goto basic_json_parser_4;
}
goto basic_json_parser_23;
}
else
{
if (yych == 'n')
{
goto basic_json_parser_24;
}
if (yych <= 's')
{
goto basic_json_parser_4;
}
goto basic_json_parser_25;
}
}
else
{
if (yych <= '|')
{
if (yych == '{')
{
goto basic_json_parser_26;
}
goto basic_json_parser_4;
}
else
{
if (yych <= '}')
{
goto basic_json_parser_28;
}
if (yych == 0xEF)
{
goto basic_json_parser_30;
}
goto basic_json_parser_4;
}
}
}
basic_json_parser_2:
++m_cursor;
{
last_token_type = token_type::end_of_input;
break;
}
basic_json_parser_4:
++m_cursor;
basic_json_parser_5:
{
last_token_type = token_type::parse_error;
break;
}
basic_json_parser_6:
++m_cursor;
if (m_limit <= m_cursor)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yybm[0 + yych] & 32)
{
goto basic_json_parser_6;
}
{
continue;
}
basic_json_parser_9:
yyaccept = 0;
yych = *(m_marker = ++m_cursor);
if (yych <= 0x1F)
{
goto basic_json_parser_5;
}
goto basic_json_parser_32;
basic_json_parser_10:
++m_cursor;
{
last_token_type = token_type::value_separator;
break;
}
basic_json_parser_12:
yych = *++m_cursor;
if (yych <= '/')
{
goto basic_json_parser_5;
}
if (yych <= '0')
{
goto basic_json_parser_13;
}
if (yych <= '9')
{
goto basic_json_parser_15;
}
goto basic_json_parser_5;
basic_json_parser_13:
yyaccept = 1;
yych = *(m_marker = ++m_cursor);
if (yych <= 'D')
{
if (yych == '.')
{
goto basic_json_parser_37;
}
}
else
{
if (yych <= 'E')
{
goto basic_json_parser_38;
}
if (yych == 'e')
{
goto basic_json_parser_38;
}
}
basic_json_parser_14:
{
last_token_type = token_type::value_number;
break;
}
basic_json_parser_15:
yyaccept = 1;
m_marker = ++m_cursor;
if ((m_limit - m_cursor) < 3)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yybm[0 + yych] & 64)
{
goto basic_json_parser_15;
}
if (yych <= 'D')
{
if (yych == '.')
{
goto basic_json_parser_37;
}
goto basic_json_parser_14;
}
else
{
if (yych <= 'E')
{
goto basic_json_parser_38;
}
if (yych == 'e')
{
goto basic_json_parser_38;
}
goto basic_json_parser_14;
}
basic_json_parser_17:
++m_cursor;
{
last_token_type = token_type::name_separator;
break;
}
basic_json_parser_19:
++m_cursor;
{
last_token_type = token_type::begin_array;
break;
}
basic_json_parser_21:
++m_cursor;
{
last_token_type = token_type::end_array;
break;
}
basic_json_parser_23:
yyaccept = 0;
yych = *(m_marker = ++m_cursor);
if (yych == 'a')
{
goto basic_json_parser_39;
}
goto basic_json_parser_5;
basic_json_parser_24:
yyaccept = 0;
yych = *(m_marker = ++m_cursor);
if (yych == 'u')
{
goto basic_json_parser_40;
}
goto basic_json_parser_5;
basic_json_parser_25:
yyaccept = 0;
yych = *(m_marker = ++m_cursor);
if (yych == 'r')
{
goto basic_json_parser_41;
}
goto basic_json_parser_5;
basic_json_parser_26:
++m_cursor;
{
last_token_type = token_type::begin_object;
break;
}
basic_json_parser_28:
++m_cursor;
{
last_token_type = token_type::end_object;
break;
}
basic_json_parser_30:
yyaccept = 0;
yych = *(m_marker = ++m_cursor);
if (yych == 0xBB)
{
goto basic_json_parser_42;
}
goto basic_json_parser_5;
basic_json_parser_31:
++m_cursor;
if (m_limit <= m_cursor)
{
fill_line_buffer();
}
yych = *m_cursor;
basic_json_parser_32:
if (yybm[0 + yych] & 128)
{
goto basic_json_parser_31;
}
if (yych <= 0x1F)
{
goto basic_json_parser_33;
}
if (yych <= '"')
{
goto basic_json_parser_34;
}
goto basic_json_parser_36;
basic_json_parser_33:
m_cursor = m_marker;
if (yyaccept == 0)
{
goto basic_json_parser_5;
}
else
{
goto basic_json_parser_14;
}
basic_json_parser_34:
++m_cursor;
{
last_token_type = token_type::value_string;
break;
}
basic_json_parser_36:
++m_cursor;
if (m_limit <= m_cursor)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yych <= 'e')
{
if (yych <= '/')
{
if (yych == '"')
{
goto basic_json_parser_31;
}
if (yych <= '.')
{
goto basic_json_parser_33;
}
goto basic_json_parser_31;
}
else
{
if (yych <= '\\')
{
if (yych <= '[')
{
goto basic_json_parser_33;
}
goto basic_json_parser_31;
}
else
{
if (yych == 'b')
{
goto basic_json_parser_31;
}
goto basic_json_parser_33;
}
}
}
else
{
if (yych <= 'q')
{
if (yych <= 'f')
{
goto basic_json_parser_31;
}
if (yych == 'n')
{
goto basic_json_parser_31;
}
goto basic_json_parser_33;
}
else
{
if (yych <= 's')
{
if (yych <= 'r')
{
goto basic_json_parser_31;
}
goto basic_json_parser_33;
}
else
{
if (yych <= 't')
{
goto basic_json_parser_31;
}
if (yych <= 'u')
{
goto basic_json_parser_43;
}
goto basic_json_parser_33;
}
}
}
basic_json_parser_37:
yych = *++m_cursor;
if (yych <= '/')
{
goto basic_json_parser_33;
}
if (yych <= '9')
{
goto basic_json_parser_44;
}
goto basic_json_parser_33;
basic_json_parser_38:
yych = *++m_cursor;
if (yych <= ',')
{
if (yych == '+')
{
goto basic_json_parser_46;
}
goto basic_json_parser_33;
}
else
{
if (yych <= '-')
{
goto basic_json_parser_46;
}
if (yych <= '/')
{
goto basic_json_parser_33;
}
if (yych <= '9')
{
goto basic_json_parser_47;
}
goto basic_json_parser_33;
}
basic_json_parser_39:
yych = *++m_cursor;
if (yych == 'l')
{
goto basic_json_parser_49;
}
goto basic_json_parser_33;
basic_json_parser_40:
yych = *++m_cursor;
if (yych == 'l')
{
goto basic_json_parser_50;
}
goto basic_json_parser_33;
basic_json_parser_41:
yych = *++m_cursor;
if (yych == 'u')
{
goto basic_json_parser_51;
}
goto basic_json_parser_33;
basic_json_parser_42:
yych = *++m_cursor;
if (yych == 0xBF)
{
goto basic_json_parser_52;
}
goto basic_json_parser_33;
basic_json_parser_43:
++m_cursor;
if (m_limit <= m_cursor)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yych <= '@')
{
if (yych <= '/')
{
goto basic_json_parser_33;
}
if (yych <= '9')
{
goto basic_json_parser_54;
}
goto basic_json_parser_33;
}
else
{
if (yych <= 'F')
{
goto basic_json_parser_54;
}
if (yych <= '`')
{
goto basic_json_parser_33;
}
if (yych <= 'f')
{
goto basic_json_parser_54;
}
goto basic_json_parser_33;
}
basic_json_parser_44:
yyaccept = 1;
m_marker = ++m_cursor;
if ((m_limit - m_cursor) < 3)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yych <= 'D')
{
if (yych <= '/')
{
goto basic_json_parser_14;
}
if (yych <= '9')
{
goto basic_json_parser_44;
}
goto basic_json_parser_14;
}
else
{
if (yych <= 'E')
{
goto basic_json_parser_38;
}
if (yych == 'e')
{
goto basic_json_parser_38;
}
goto basic_json_parser_14;
}
basic_json_parser_46:
yych = *++m_cursor;
if (yych <= '/')
{
goto basic_json_parser_33;
}
if (yych >= ':')
{
goto basic_json_parser_33;
}
basic_json_parser_47:
++m_cursor;
if (m_limit <= m_cursor)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yych <= '/')
{
goto basic_json_parser_14;
}
if (yych <= '9')
{
goto basic_json_parser_47;
}
goto basic_json_parser_14;
basic_json_parser_49:
yych = *++m_cursor;
if (yych == 's')
{
goto basic_json_parser_55;
}
goto basic_json_parser_33;
basic_json_parser_50:
yych = *++m_cursor;
if (yych == 'l')
{
goto basic_json_parser_56;
}
goto basic_json_parser_33;
basic_json_parser_51:
yych = *++m_cursor;
if (yych == 'e')
{
goto basic_json_parser_58;
}
goto basic_json_parser_33;
basic_json_parser_52:
++m_cursor;
{
continue;
}
basic_json_parser_54:
++m_cursor;
if (m_limit <= m_cursor)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yych <= '@')
{
if (yych <= '/')
{
goto basic_json_parser_33;
}
if (yych <= '9')
{
goto basic_json_parser_60;
}
goto basic_json_parser_33;
}
else
{
if (yych <= 'F')
{
goto basic_json_parser_60;
}
if (yych <= '`')
{
goto basic_json_parser_33;
}
if (yych <= 'f')
{
goto basic_json_parser_60;
}
goto basic_json_parser_33;
}
basic_json_parser_55:
yych = *++m_cursor;
if (yych == 'e')
{
goto basic_json_parser_61;
}
goto basic_json_parser_33;
basic_json_parser_56:
++m_cursor;
{
last_token_type = token_type::literal_null;
break;
}
basic_json_parser_58:
++m_cursor;
{
last_token_type = token_type::literal_true;
break;
}
basic_json_parser_60:
++m_cursor;
if (m_limit <= m_cursor)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yych <= '@')
{
if (yych <= '/')
{
goto basic_json_parser_33;
}
if (yych <= '9')
{
goto basic_json_parser_63;
}
goto basic_json_parser_33;
}
else
{
if (yych <= 'F')
{
goto basic_json_parser_63;
}
if (yych <= '`')
{
goto basic_json_parser_33;
}
if (yych <= 'f')
{
goto basic_json_parser_63;
}
goto basic_json_parser_33;
}
basic_json_parser_61:
++m_cursor;
{
last_token_type = token_type::literal_false;
break;
}
basic_json_parser_63:
++m_cursor;
if (m_limit <= m_cursor)
{
fill_line_buffer();
}
yych = *m_cursor;
if (yych <= '@')
{
if (yych <= '/')
{
goto basic_json_parser_33;
}
if (yych <= '9')
{
goto basic_json_parser_31;
}
goto basic_json_parser_33;
}
else
{
if (yych <= 'F')
{
goto basic_json_parser_31;
}
if (yych <= '`')
{
goto basic_json_parser_33;
}
if (yych <= 'f')
{
goto basic_json_parser_31;
}
goto basic_json_parser_33;
}
}
}
return last_token_type;
}
/*!
@brief append data from the stream to the line buffer
This function is called by the scan() function when the end of the
buffer (`m_limit`) is reached and the `m_cursor` pointer cannot be
incremented without leaving the limits of the line buffer. Note re2c
decides when to call this function.
If the lexer reads from contiguous storage, there is no trailing null
byte. Therefore, this function must make sure to add these padding
null bytes.
If the lexer reads from an input stream, this function reads the next
line of the input.
@pre
p p p p p p u u u u u x . . . . . .
^ ^ ^ ^
m_content m_start | m_limit
m_cursor
@post
u u u u u x x x x x x x . . . . . .
^ ^ ^
| m_cursor m_limit
m_start
m_content
*/
void fill_line_buffer()
{
// number of processed characters (p)
const auto offset_start = m_start - m_content;
// offset for m_marker wrt. to m_start
const auto offset_marker = (m_marker == nullptr) ? 0 : m_marker - m_start;
// number of unprocessed characters (u)
const auto offset_cursor = m_cursor - m_start;
// no stream is used or end of file is reached
if (m_stream == nullptr or m_stream->eof())
{
// copy unprocessed characters to line buffer
m_line_buffer.clear();
for (m_cursor = m_start; m_cursor != m_limit; ++m_cursor)
{
m_line_buffer.append(1, static_cast<const char>(*m_cursor));
}
// append 5 characters (size of longest keyword "false") to
// make sure that there is sufficient space between m_cursor
// and m_limit
m_line_buffer.append(5, '\0');
}
else
{
// delete processed characters from line buffer
m_line_buffer.erase(0, static_cast<size_t>(offset_start));
// read next line from input stream
std::string line;
std::getline(*m_stream, line);
// add line with newline symbol to the line buffer
m_line_buffer += line + "\n";
}
// set pointers
m_content = reinterpret_cast<const lexer_char_t*>(m_line_buffer.c_str());
assert(m_content != nullptr);
m_start = m_content;
m_marker = m_start + offset_marker;
m_cursor = m_start + offset_cursor;
m_limit = m_start + m_line_buffer.size();
}
/// return string representation of last read token
string_t get_token_string() const
{
assert(m_start != nullptr);
return string_t(reinterpret_cast<typename string_t::const_pointer>(m_start),
static_cast<size_t>(m_cursor - m_start));
}
/*!
@brief return string value for string tokens
The function iterates the characters between the opening and closing
quotes of the string value. The complete string is the range
[m_start,m_cursor). Consequently, we iterate from m_start+1 to
m_cursor-1.
We differentiate two cases:
1. Escaped characters. In this case, a new character is constructed
according to the nature of the escape. Some escapes create new
characters (e.g., `"\\n"` is replaced by `"\n"`), some are copied
as is (e.g., `"\\\\"`). Furthermore, Unicode escapes of the shape
`"\\uxxxx"` need special care. In this case, to_unicode takes care
of the construction of the values.
2. Unescaped characters are copied as is.
@pre `m_cursor - m_start >= 2`, meaning the length of the last token
is at least 2 bytes which is trivially true for any string (which
consists of at least two quotes).
" c1 c2 c3 ... "
^ ^
m_start m_cursor
@complexity Linear in the length of the string.\n
Lemma: The loop body will always terminate.\n
Proof (by contradiction): Assume the loop body does not terminate. As
the loop body does not contain another loop, one of the called
functions must never return. The called functions are `std::strtoul`
and to_unicode. Neither function can loop forever, so the loop body
will never loop forever which contradicts the assumption that the loop
body does not terminate, q.e.d.\n
Lemma: The loop condition for the for loop is eventually false.\n
Proof (by contradiction): Assume the loop does not terminate. Due to
the above lemma, this can only be due to a tautological loop
condition; that is, the loop condition i < m_cursor - 1 must always be
true. Let x be the change of i for any loop iteration. Then
m_start + 1 + x < m_cursor - 1 must hold to loop indefinitely. This
can be rephrased to m_cursor - m_start - 2 > x. With the
precondition, we x <= 0, meaning that the loop condition holds
indefinitly if i is always decreased. However, observe that the value
of i is strictly increasing with each iteration, as it is incremented
by 1 in the iteration expression and never decremented inside the loop
body. Hence, the loop condition will eventually be false which
contradicts the assumption that the loop condition is a tautology,
q.e.d.
@return string value of current token without opening and closing
quotes
@throw std::out_of_range if to_unicode fails
*/
string_t get_string() const
{
assert(m_cursor - m_start >= 2);
string_t result;
result.reserve(static_cast<size_t>(m_cursor - m_start - 2));
// iterate the result between the quotes
for (const lexer_char_t* i = m_start + 1; i < m_cursor - 1; ++i)
{
// process escaped characters
if (*i == '\\')
{
// read next character
++i;
switch (*i)
{
// the default escapes
case 't':
{
result += "\t";
break;
}
case 'b':
{
result += "\b";
break;
}
case 'f':
{
result += "\f";
break;
}
case 'n':
{
result += "\n";
break;
}
case 'r':
{
result += "\r";
break;
}
case '\\':
{
result += "\\";
break;
}
case '/':
{
result += "/";
break;
}
case '"':
{
result += "\"";
break;
}
// unicode
case 'u':
{
// get code xxxx from uxxxx
auto codepoint = std::strtoul(std::string(reinterpret_cast<typename string_t::const_pointer>(i + 1),
4).c_str(), nullptr, 16);
// check if codepoint is a high surrogate
if (codepoint >= 0xD800 and codepoint <= 0xDBFF)
{
// make sure there is a subsequent unicode
if ((i + 6 >= m_limit) or * (i + 5) != '\\' or * (i + 6) != 'u')
{
throw std::invalid_argument("missing low surrogate");
}
// get code yyyy from uxxxx\uyyyy
auto codepoint2 = std::strtoul(std::string(reinterpret_cast<typename string_t::const_pointer>
(i + 7), 4).c_str(), nullptr, 16);
result += to_unicode(codepoint, codepoint2);
// skip the next 10 characters (xxxx\uyyyy)
i += 10;
}
else
{
// add unicode character(s)
result += to_unicode(codepoint);
// skip the next four characters (xxxx)
i += 4;
}
break;
}
}
}
else
{
// all other characters are just copied to the end of the
// string
result.append(1, static_cast<typename string_t::value_type>(*i));
}
}
return result;
}
/*!
@brief parse floating point number
This function (and its overloads) serves to select the most approprate
standard floating point number parsing function based on the type
supplied via the first parameter. Set this to @a
static_cast<number_float_t*>(nullptr).
@param[in] type the @ref number_float_t in use
@param[in,out] endptr recieves a pointer to the first character after
the number
@return the floating point number
*/
long double str_to_float_t(long double* /* type */, char** endptr) const
{
return std::strtold(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
}
/*!
@brief parse floating point number
This function (and its overloads) serves to select the most approprate
standard floating point number parsing function based on the type
supplied via the first parameter. Set this to @a
static_cast<number_float_t*>(nullptr).
@param[in] type the @ref number_float_t in use
@param[in,out] endptr recieves a pointer to the first character after
the number
@return the floating point number
*/
double str_to_float_t(double* /* type */, char** endptr) const
{
return std::strtod(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
}
/*!
@brief parse floating point number
This function (and its overloads) serves to select the most approprate
standard floating point number parsing function based on the type
supplied via the first parameter. Set this to @a
static_cast<number_float_t*>(nullptr).
@param[in] type the @ref number_float_t in use
@param[in,out] endptr recieves a pointer to the first character after
the number
@return the floating point number
*/
float str_to_float_t(float* /* type */, char** endptr) const
{
return std::strtof(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
}
/*!
@brief return number value for number tokens
This function translates the last token into the most appropriate
number type (either integer, unsigned integer or floating point),
which is passed back to the caller via the result parameter.
This function parses the integer component up to the radix point or
exponent while collecting information about the 'floating point
representation', which it stores in the result parameter. If there is
no radix point or exponent, and the number can fit into a @ref
number_integer_t or @ref number_unsigned_t then it sets the result
parameter accordingly.
If the number is a floating point number the number is then parsed
using @a std:strtod (or @a std:strtof or @a std::strtold).
@param[out] result @ref basic_json object to receive the number, or
NAN if the conversion read past the current token. The latter case
needs to be treated by the caller function.
*/
void get_number(basic_json& result) const
{
assert(m_start != nullptr);
const lexer::lexer_char_t* curptr = m_start;
// accumulate the integer conversion result (unsigned for now)
number_unsigned_t value = 0;
// maximum absolute value of the relevant integer type
number_unsigned_t max;
// temporarily store the type to avoid unecessary bitfield access
value_t type;
// look for sign
if (*curptr == '-')
{
type = value_t::number_integer;
max = static_cast<uint64_t>((std::numeric_limits<number_integer_t>::max)()) + 1;
curptr++;
}
else
{
type = value_t::number_unsigned;
max = static_cast<uint64_t>((std::numeric_limits<number_unsigned_t>::max)());
}
// count the significant figures
for (; curptr < m_cursor; curptr++)
{
// quickly skip tests if a digit
if (*curptr < '0' || *curptr > '9')
{
if (*curptr == '.')
{
// don't count '.' but change to float
type = value_t::number_float;
continue;
}
// assume exponent (if not then will fail parse): change to
// float, stop counting and record exponent details
type = value_t::number_float;
break;
}
// skip if definitely not an integer
if (type != value_t::number_float)
{
// multiply last value by ten and add the new digit
auto temp = value * 10 + *curptr - '0';
// test for overflow
if (temp < value || temp > max)
{
// overflow
type = value_t::number_float;
}
else
{
// no overflow - save it
value = temp;
}
}
}
// save the value (if not a float)
if (type == value_t::number_unsigned)
{
result.m_value.number_unsigned = value;
}
else if (type == value_t::number_integer)
{
result.m_value.number_integer = -static_cast<number_integer_t>(value);
}
else
{
// parse with strtod
result.m_value.number_float = str_to_float_t(static_cast<number_float_t*>(nullptr), NULL);
}
// save the type
result.m_type = type;
}
private:
/// optional input stream
std::istream* m_stream = nullptr;
/// line buffer buffer for m_stream
string_t m_line_buffer {};
/// the buffer pointer
const lexer_char_t* m_content = nullptr;
/// pointer to the beginning of the current symbol
const lexer_char_t* m_start = nullptr;
/// pointer for backtracking information
const lexer_char_t* m_marker = nullptr;
/// pointer to the current symbol
const lexer_char_t* m_cursor = nullptr;
/// pointer to the end of the buffer
const lexer_char_t* m_limit = nullptr;
/// the last token type
token_type last_token_type = token_type::end_of_input;
};
/*!
@brief syntax analysis
This class implements a recursive decent parser.
*/
class parser
{
public:
/// a parser reading from a string literal
parser(const char* buff, const parser_callback_t cb = nullptr)
: callback(cb),
m_lexer(reinterpret_cast<const typename lexer::lexer_char_t*>(buff), strlen(buff))
{}
/// a parser reading from an input stream
parser(std::istream& is, const parser_callback_t cb = nullptr)
: callback(cb), m_lexer(is)
{}
/// a parser reading from an iterator range with contiguous storage
template<class IteratorType, typename std::enable_if<
std::is_same<typename std::iterator_traits<IteratorType>::iterator_category, std::random_access_iterator_tag>::value
, int>::type
= 0>
parser(IteratorType first, IteratorType last, const parser_callback_t cb = nullptr)
: callback(cb),
m_lexer(reinterpret_cast<const typename lexer::lexer_char_t*>(&(*first)),
static_cast<size_t>(std::distance(first, last)))
{}
/// public parser interface
basic_json parse()
{
// read first token
get_token();
basic_json result = parse_internal(true);
result.assert_invariant();
expect(lexer::token_type::end_of_input);
// return parser result and replace it with null in case the
// top-level value was discarded by the callback function
return result.is_discarded() ? basic_json() : std::move(result);
}
private:
/// the actual parser
basic_json parse_internal(bool keep)
{
auto result = basic_json(value_t::discarded);
switch (last_token)
{
case lexer::token_type::begin_object:
{
if (keep and (not callback
or ((keep = callback(depth++, parse_event_t::object_start, result)) != 0)))
{
// explicitly set result to object to cope with {}
result.m_type = value_t::object;
result.m_value = value_t::object;
}
// read next token
get_token();
// closing } -> we are done
if (last_token == lexer::token_type::end_object)
{
get_token();
if (keep and callback and not callback(--depth, parse_event_t::object_end, result))
{
result = basic_json(value_t::discarded);
}
return result;
}
// no comma is expected here
unexpect(lexer::token_type::value_separator);
// otherwise: parse key-value pairs
do
{
// ugly, but could be fixed with loop reorganization
if (last_token == lexer::token_type::value_separator)
{
get_token();
}
// store key
expect(lexer::token_type::value_string);
const auto key = m_lexer.get_string();
bool keep_tag = false;
if (keep)
{
if (callback)
{
basic_json k(key);
keep_tag = callback(depth, parse_event_t::key, k);
}
else
{
keep_tag = true;
}
}
// parse separator (:)
get_token();
expect(lexer::token_type::name_separator);
// parse and add value
get_token();
auto value = parse_internal(keep);
if (keep and keep_tag and not value.is_discarded())
{
result[key] = std::move(value);
}
}
while (last_token == lexer::token_type::value_separator);
// closing }
expect(lexer::token_type::end_object);
get_token();
if (keep and callback and not callback(--depth, parse_event_t::object_end, result))
{
result = basic_json(value_t::discarded);
}
return result;
}
case lexer::token_type::begin_array:
{
if (keep and (not callback
or ((keep = callback(depth++, parse_event_t::array_start, result)) != 0)))
{
// explicitly set result to object to cope with []
result.m_type = value_t::array;
result.m_value = value_t::array;
}
// read next token
get_token();
// closing ] -> we are done
if (last_token == lexer::token_type::end_array)
{
get_token();
if (callback and not callback(--depth, parse_event_t::array_end, result))
{
result = basic_json(value_t::discarded);
}
return result;
}
// no comma is expected here
unexpect(lexer::token_type::value_separator);
// otherwise: parse values
do
{
// ugly, but could be fixed with loop reorganization
if (last_token == lexer::token_type::value_separator)
{
get_token();
}
// parse value
auto value = parse_internal(keep);
if (keep and not value.is_discarded())
{
result.push_back(std::move(value));
}
}
while (last_token == lexer::token_type::value_separator);
// closing ]
expect(lexer::token_type::end_array);
get_token();
if (keep and callback and not callback(--depth, parse_event_t::array_end, result))
{
result = basic_json(value_t::discarded);
}
return result;
}
case lexer::token_type::literal_null:
{
get_token();
result.m_type = value_t::null;
break;
}
case lexer::token_type::value_string:
{
const auto s = m_lexer.get_string();
get_token();
result = basic_json(s);
break;
}
case lexer::token_type::literal_true:
{
get_token();
result.m_type = value_t::boolean;
result.m_value = true;
break;
}
case lexer::token_type::literal_false:
{
get_token();
result.m_type = value_t::boolean;
result.m_value = false;
break;
}
case lexer::token_type::value_number:
{
m_lexer.get_number(result);
get_token();
break;
}
default:
{
// the last token was unexpected
unexpect(last_token);
}
}
if (keep and callback and not callback(depth, parse_event_t::value, result))
{
result = basic_json(value_t::discarded);
}
return result;
}
/// get next token from lexer
typename lexer::token_type get_token()
{
last_token = m_lexer.scan();
return last_token;
}
void expect(typename lexer::token_type t) const
{
if (t != last_token)
{
std::string error_msg = "parse error - unexpected ";
error_msg += (last_token == lexer::token_type::parse_error ? ("'" + m_lexer.get_token_string() +
"'") :
lexer::token_type_name(last_token));
error_msg += "; expected " + lexer::token_type_name(t);
throw std::invalid_argument(error_msg);
}
}
void unexpect(typename lexer::token_type t) const
{
if (t == last_token)
{
std::string error_msg = "parse error - unexpected ";
error_msg += (last_token == lexer::token_type::parse_error ? ("'" + m_lexer.get_token_string() +
"'") :
lexer::token_type_name(last_token));
throw std::invalid_argument(error_msg);
}
}
private:
/// current level of recursion
int depth = 0;
/// callback function
const parser_callback_t callback = nullptr;
/// the type of the last read token
typename lexer::token_type last_token = lexer::token_type::uninitialized;
/// the lexer
lexer m_lexer;
};
public:
/*!
@brief JSON Pointer
A JSON pointer defines a string syntax for identifying a specific value
within a JSON document. It can be used with functions `at` and
`operator[]`. Furthermore, JSON pointers are the base for JSON patches.
@sa [RFC 6901](https://tools.ietf.org/html/rfc6901)
@since version 2.0.0
*/
class json_pointer
{
/// allow basic_json to access private members
friend class basic_json;
public:
/*!
@brief create JSON pointer
Create a JSON pointer according to the syntax described in
[Section 3 of RFC6901](https://tools.ietf.org/html/rfc6901#section-3).
@param[in] s string representing the JSON pointer; if omitted, the
empty string is assumed which references the whole JSON
value
@throw std::domain_error if reference token is nonempty and does not
begin with a slash (`/`); example: `"JSON pointer must be empty or
begin with /"`
@throw std::domain_error if a tilde (`~`) is not followed by `0`
(representing `~`) or `1` (representing `/`); example: `"escape error:
~ must be followed with 0 or 1"`
@liveexample{The example shows the construction several valid JSON
pointers as well as the exceptional behavior.,json_pointer}
@since version 2.0.0
*/
explicit json_pointer(const std::string& s = "")
: reference_tokens(split(s))
{}
/*!
@brief return a string representation of the JSON pointer
@invariant For each JSON pointer `ptr`, it holds:
@code {.cpp}
ptr == json_pointer(ptr.to_string());
@endcode
@return a string representation of the JSON pointer
@liveexample{The example shows the result of `to_string`.,
json_pointer__to_string}
@since version 2.0.0
*/
std::string to_string() const noexcept
{
return std::accumulate(reference_tokens.begin(),
reference_tokens.end(), std::string{},
[](const std::string & a, const std::string & b)
{
return a + "/" + escape(b);
});
}
/// @copydoc to_string()
operator std::string() const
{
return to_string();
}
private:
/// remove and return last reference pointer
std::string pop_back()
{
if (is_root())
{
throw std::domain_error("JSON pointer has no parent");
}
auto last = reference_tokens.back();
reference_tokens.pop_back();
return last;
}
/// return whether pointer points to the root document
bool is_root() const
{
return reference_tokens.empty();
}
json_pointer top() const
{
if (is_root())
{
throw std::domain_error("JSON pointer has no parent");
}
json_pointer result = *this;
result.reference_tokens = {reference_tokens[0]};
return result;
}
/*!
@brief create and return a reference to the pointed to value
@complexity Linear in the number of reference tokens.
*/
reference get_and_create(reference j) const
{
pointer result = &j;
// in case no reference tokens exist, return a reference to the
// JSON value j which will be overwritten by a primitive value
for (const auto& reference_token : reference_tokens)
{
switch (result->m_type)
{
case value_t::null:
{
if (reference_token == "0")
{
// start a new array if reference token is 0
result = &result->operator[](0);
}
else
{
// start a new object otherwise
result = &result->operator[](reference_token);
}
break;
}
case value_t::object:
{
// create an entry in the object
result = &result->operator[](reference_token);
break;
}
case value_t::array:
{
// create an entry in the array
result = &result->operator[](static_cast<size_type>(std::stoi(reference_token)));
break;
}
/*
The following code is only reached if there exists a
reference token _and_ the current value is primitive. In
this case, we have an error situation, because primitive
values may only occur as single value; that is, with an
empty list of reference tokens.
*/
default:
{
throw std::domain_error("invalid value to unflatten");
}
}
}
return *result;
}
/*!
@brief return a reference to the pointed to value
@param[in] ptr a JSON value
@return reference to the JSON value pointed to by the JSON pointer
@complexity Linear in the length of the JSON pointer.
@throw std::out_of_range if the JSON pointer can not be resolved
@throw std::domain_error if an array index begins with '0'
@throw std::invalid_argument if an array index was not a number
*/
reference get_unchecked(pointer ptr) const
{
for (const auto& reference_token : reference_tokens)
{
switch (ptr->m_type)
{
case value_t::object:
{
// use unchecked object access
ptr = &ptr->operator[](reference_token);
break;
}
case value_t::array:
{
// error condition (cf. RFC 6901, Sect. 4)
if (reference_token.size() > 1 and reference_token[0] == '0')
{
throw std::domain_error("array index must not begin with '0'");
}
if (reference_token == "-")
{
// explicityly treat "-" as index beyond the end
ptr = &ptr->operator[](ptr->m_value.array->size());
}
else
{
// convert array index to number; unchecked access
ptr = &ptr->operator[](static_cast<size_type>(std::stoi(reference_token)));
}
break;
}
default:
{
throw std::out_of_range("unresolved reference token '" + reference_token + "'");
}
}
}
return *ptr;
}
reference get_checked(pointer ptr) const
{
for (const auto& reference_token : reference_tokens)
{
switch (ptr->m_type)
{
case value_t::object:
{
// note: at performs range check
ptr = &ptr->at(reference_token);
break;
}
case value_t::array:
{
if (reference_token == "-")
{
// "-" always fails the range check
throw std::out_of_range("array index '-' (" +
std::to_string(ptr->m_value.array->size()) +
") is out of range");
}
// error condition (cf. RFC 6901, Sect. 4)
if (reference_token.size() > 1 and reference_token[0] == '0')
{
throw std::domain_error("array index must not begin with '0'");
}
// note: at performs range check
ptr = &ptr->at(static_cast<size_type>(std::stoi(reference_token)));
break;
}
default:
{
throw std::out_of_range("unresolved reference token '" + reference_token + "'");
}
}
}
return *ptr;
}
/*!
@brief return a const reference to the pointed to value
@param[in] ptr a JSON value
@return const reference to the JSON value pointed to by the JSON
pointer
*/
const_reference get_unchecked(const_pointer ptr) const
{
for (const auto& reference_token : reference_tokens)
{
switch (ptr->m_type)
{
case value_t::object:
{
// use unchecked object access
ptr = &ptr->operator[](reference_token);
break;
}
case value_t::array:
{
if (reference_token == "-")
{
// "-" cannot be used for const access
throw std::out_of_range("array index '-' (" +
std::to_string(ptr->m_value.array->size()) +
") is out of range");
}
// error condition (cf. RFC 6901, Sect. 4)
if (reference_token.size() > 1 and reference_token[0] == '0')
{
throw std::domain_error("array index must not begin with '0'");
}
// use unchecked array access
ptr = &ptr->operator[](static_cast<size_type>(std::stoi(reference_token)));
break;
}
default:
{
throw std::out_of_range("unresolved reference token '" + reference_token + "'");
}
}
}
return *ptr;
}
const_reference get_checked(const_pointer ptr) const
{
for (const auto& reference_token : reference_tokens)
{
switch (ptr->m_type)
{
case value_t::object:
{
// note: at performs range check
ptr = &ptr->at(reference_token);
break;
}
case value_t::array:
{
if (reference_token == "-")
{
// "-" always fails the range check
throw std::out_of_range("array index '-' (" +
std::to_string(ptr->m_value.array->size()) +
") is out of range");
}
// error condition (cf. RFC 6901, Sect. 4)
if (reference_token.size() > 1 and reference_token[0] == '0')
{
throw std::domain_error("array index must not begin with '0'");
}
// note: at performs range check
ptr = &ptr->at(static_cast<size_type>(std::stoi(reference_token)));
break;
}
default:
{
throw std::out_of_range("unresolved reference token '" + reference_token + "'");
}
}
}
return *ptr;
}
/// split the string input to reference tokens
static std::vector<std::string> split(const std::string& reference_string)
{
std::vector<std::string> result;
// special case: empty reference string -> no reference tokens
if (reference_string.empty())
{
return result;
}
// check if nonempty reference string begins with slash
if (reference_string[0] != '/')
{
throw std::domain_error("JSON pointer must be empty or begin with '/'");
}
// extract the reference tokens:
// - slash: position of the last read slash (or end of string)
// - start: position after the previous slash
for (
// search for the first slash after the first character
size_t slash = reference_string.find_first_of("/", 1),
// set the beginning of the first reference token
start = 1;
// we can stop if start == string::npos+1 = 0
start != 0;
// set the beginning of the next reference token
// (will eventually be 0 if slash == std::string::npos)
start = slash + 1,
// find next slash
slash = reference_string.find_first_of("/", start))
{
// use the text between the beginning of the reference token
// (start) and the last slash (slash).
auto reference_token = reference_string.substr(start, slash - start);
// check reference tokens are properly escaped
for (size_t pos = reference_token.find_first_of("~");
pos != std::string::npos;
pos = reference_token.find_first_of("~", pos + 1))
{
assert(reference_token[pos] == '~');
// ~ must be followed by 0 or 1
if (pos == reference_token.size() - 1 or
(reference_token[pos + 1] != '0' and
reference_token[pos + 1] != '1'))
{
throw std::domain_error("escape error: '~' must be followed with '0' or '1'");
}
}
// finally, store the reference token
unescape(reference_token);
result.push_back(reference_token);
}
return result;
}
private:
/*!
@brief replace all occurrences of a substring by another string
@param[in,out] s the string to manipulate
@param[in] f the substring to replace with @a t
@param[in] t the string to replace @a f
@return The string @a s where all occurrences of @a f are replaced
with @a t.
@pre The search string @a f must not be empty.
@since version 2.0.0
*/
static void replace_substring(std::string& s,
const std::string& f,
const std::string& t)
{
assert(not f.empty());
for (
size_t pos = s.find(f); // find first occurrence of f
pos != std::string::npos; // make sure f was found
s.replace(pos, f.size(), t), // replace with t
pos = s.find(f, pos + t.size()) // find next occurrence of f
);
}
/// escape tilde and slash
static std::string escape(std::string s)
{
// escape "~"" to "~0" and "/" to "~1"
replace_substring(s, "~", "~0");
replace_substring(s, "/", "~1");
return s;
}
/// unescape tilde and slash
static void unescape(std::string& s)
{
// first transform any occurrence of the sequence '~1' to '/'
replace_substring(s, "~1", "/");
// then transform any occurrence of the sequence '~0' to '~'
replace_substring(s, "~0", "~");
}
/*!
@param[in] reference_string the reference string to the current value
@param[in] value the value to consider
@param[in,out] result the result object to insert values to
@note Empty objects or arrays are flattened to `null`.
*/
static void flatten(const std::string& reference_string,
const basic_json& value,
basic_json& result)
{
switch (value.m_type)
{
case value_t::array:
{
if (value.m_value.array->empty())
{
// flatten empty array as null
result[reference_string] = nullptr;
}
else
{
// iterate array and use index as reference string
for (size_t i = 0; i < value.m_value.array->size(); ++i)
{
flatten(reference_string + "/" + std::to_string(i),
value.m_value.array->operator[](i), result);
}
}
break;
}
case value_t::object:
{
if (value.m_value.object->empty())
{
// flatten empty object as null
result[reference_string] = nullptr;
}
else
{
// iterate object and use keys as reference string
for (const auto& element : *value.m_value.object)
{
flatten(reference_string + "/" + escape(element.first),
element.second, result);
}
}
break;
}
default:
{
// add primitive value with its reference string
result[reference_string] = value;
break;
}
}
}
/*!
@param[in] value flattened JSON
@return unflattened JSON
*/
static basic_json unflatten(const basic_json& value)
{
if (not value.is_object())
{
throw std::domain_error("only objects can be unflattened");
}
basic_json result;
// iterate the JSON object values
for (const auto& element : *value.m_value.object)
{
if (not element.second.is_primitive())
{
throw std::domain_error("values in object must be primitive");
}
// assign value to reference pointed to by JSON pointer; Note
// that if the JSON pointer is "" (i.e., points to the whole
// value), function get_and_create returns a reference to
// result itself. An assignment will then create a primitive
// value.
json_pointer(element.first).get_and_create(result) = element.second;
}
return result;
}
private:
/// the reference tokens
std::vector<std::string> reference_tokens {};
};
//////////////////////////
// JSON Pointer support //
//////////////////////////
/// @name JSON Pointer functions
/// @{
/*!
@brief access specified element via JSON Pointer
Uses a JSON pointer to retrieve a reference to the respective JSON value.
No bound checking is performed. Similar to @ref operator[](const typename
object_t::key_type&), `null` values are created in arrays and objects if
necessary.
In particular:
- If the JSON pointer points to an object key that does not exist, it
is created an filled with a `null` value before a reference to it
is returned.
- If the JSON pointer points to an array index that does not exist, it
is created an filled with a `null` value before a reference to it
is returned. All indices between the current maximum and the given
index are also filled with `null`.
- The special value `-` is treated as a synonym for the index past the
end.
@param[in] ptr a JSON pointer
@return reference to the element pointed to by @a ptr
@complexity Constant.
@throw std::out_of_range if the JSON pointer can not be resolved
@throw std::domain_error if an array index begins with '0'
@throw std::invalid_argument if an array index was not a number
@liveexample{The behavior is shown in the example.,operatorjson_pointer}
@since version 2.0.0
*/
reference operator[](const json_pointer& ptr)
{
return ptr.get_unchecked(this);
}
/*!
@brief access specified element via JSON Pointer
Uses a JSON pointer to retrieve a reference to the respective JSON value.
No bound checking is performed. The function does not change the JSON
value; no `null` values are created. In particular, the the special value
`-` yields an exception.
@param[in] ptr JSON pointer to the desired element
@return const reference to the element pointed to by @a ptr
@complexity Constant.
@throw std::out_of_range if the JSON pointer can not be resolved
@throw std::domain_error if an array index begins with '0'
@throw std::invalid_argument if an array index was not a number
@liveexample{The behavior is shown in the example.,operatorjson_pointer_const}
@since version 2.0.0
*/
const_reference operator[](const json_pointer& ptr) const
{
return ptr.get_unchecked(this);
}
/*!
@brief access specified element via JSON Pointer
Returns a reference to the element at with specified JSON pointer @a ptr,
with bounds checking.
@param[in] ptr JSON pointer to the desired element
@return reference to the element pointed to by @a ptr
@complexity Constant.
@throw std::out_of_range if the JSON pointer can not be resolved
@throw std::domain_error if an array index begins with '0'
@throw std::invalid_argument if an array index was not a number
@liveexample{The behavior is shown in the example.,at_json_pointer}
@since version 2.0.0
*/
reference at(const json_pointer& ptr)
{
return ptr.get_checked(this);
}
/*!
@brief access specified element via JSON Pointer
Returns a const reference to the element at with specified JSON pointer @a
ptr, with bounds checking.
@param[in] ptr JSON pointer to the desired element
@return reference to the element pointed to by @a ptr
@complexity Constant.
@throw std::out_of_range if the JSON pointer can not be resolved
@throw std::domain_error if an array index begins with '0'
@throw std::invalid_argument if an array index was not a number
@liveexample{The behavior is shown in the example.,at_json_pointer_const}
@since version 2.0.0
*/
const_reference at(const json_pointer& ptr) const
{
return ptr.get_checked(this);
}
/*!
@brief return flattened JSON value
The function creates a JSON object whose keys are JSON pointers (see [RFC
6901](https://tools.ietf.org/html/rfc6901)) and whose values are all
primitive. The original JSON value can be restored using the @ref
unflatten() function.
@return an object that maps JSON pointers to primitve values
@note Empty objects and arrays are flattened to `null` and will not be
reconstructed correctly by the @ref unflatten() function.
@complexity Linear in the size the JSON value.
@liveexample{The following code shows how a JSON object is flattened to an
object whose keys consist of JSON pointers.,flatten}
@sa @ref unflatten() for the reverse function
@since version 2.0.0
*/
basic_json flatten() const
{
basic_json result(value_t::object);
json_pointer::flatten("", *this, result);
return result;
}
/*!
@brief unflatten a previously flattened JSON value
The function restores the arbitrary nesting of a JSON value that has been
flattened before using the @ref flatten() function. The JSON value must
meet certain constraints:
1. The value must be an object.
2. The keys must be JSON pointers (see
[RFC 6901](https://tools.ietf.org/html/rfc6901))
3. The mapped values must be primitive JSON types.
@return the original JSON from a flattened version
@note Empty objects and arrays are flattened by @ref flatten() to `null`
values and can not unflattened to their original type. Apart from
this example, for a JSON value `j`, the following is always true:
`j == j.flatten().unflatten()`.
@complexity Linear in the size the JSON value.
@liveexample{The following code shows how a flattened JSON object is
unflattened into the original nested JSON object.,unflatten}
@sa @ref flatten() for the reverse function
@since version 2.0.0
*/
basic_json unflatten() const
{
return json_pointer::unflatten(*this);
}
/// @}
//////////////////////////
// JSON Patch functions //
//////////////////////////
/// @name JSON Patch functions
/// @{
/*!
@brief applies a JSON patch
[JSON Patch](http://jsonpatch.com) defines a JSON document structure for
expressing a sequence of operations to apply to a JSON) document. With
this funcion, a JSON Patch is applied to the current JSON value by
executing all operations from the patch.
@param[in] json_patch JSON patch document
@return patched document
@note The application of a patch is atomic: Either all operations succeed
and the patched document is returned or an exception is thrown. In
any case, the original value is not changed: the patch is applied
to a copy of the value.
@throw std::out_of_range if a JSON pointer inside the patch could not
be resolved successfully in the current JSON value; example: `"key baz
not found"`
@throw invalid_argument if the JSON patch is malformed (e.g., mandatory
attributes are missing); example: `"operation add must have member path"`
@complexity Linear in the size of the JSON value and the length of the
JSON patch. As usually only a fraction of the JSON value is affected by
the patch, the complexity can usually be neglected.
@liveexample{The following code shows how a JSON patch is applied to a
value.,patch}
@sa @ref diff -- create a JSON patch by comparing two JSON values
@sa [RFC 6902 (JSON Patch)](https://tools.ietf.org/html/rfc6902)
@sa [RFC 6901 (JSON Pointer)](https://tools.ietf.org/html/rfc6901)
@since version 2.0.0
*/
basic_json patch(const basic_json& json_patch) const
{
// make a working copy to apply the patch to
basic_json result = *this;
// the valid JSON Patch operations
enum class patch_operations {add, remove, replace, move, copy, test, invalid};
const auto get_op = [](const std::string op)
{
if (op == "add")
{
return patch_operations::add;
}
if (op == "remove")
{
return patch_operations::remove;
}
if (op == "replace")
{
return patch_operations::replace;
}
if (op == "move")
{
return patch_operations::move;
}
if (op == "copy")
{
return patch_operations::copy;
}
if (op == "test")
{
return patch_operations::test;
}
return patch_operations::invalid;
};
// wrapper for "add" operation; add value at ptr
const auto operation_add = [&result](json_pointer & ptr, basic_json val)
{
// adding to the root of the target document means replacing it
if (ptr.is_root())
{
result = val;
}
else
{
// make sure the top element of the pointer exists
json_pointer top_pointer = ptr.top();
if (top_pointer != ptr)
{
result.at(top_pointer);
}
// get reference to parent of JSON pointer ptr
const auto last_path = ptr.pop_back();
basic_json& parent = result[ptr];
switch (parent.m_type)
{
case value_t::null:
case value_t::object:
{
// use operator[] to add value
parent[last_path] = val;
break;
}
case value_t::array:
{
if (last_path == "-")
{
// special case: append to back
parent.push_back(val);
}
else
{
const auto idx = std::stoi(last_path);
if (static_cast<size_type>(idx) > parent.size())
{
// avoid undefined behavior
throw std::out_of_range("array index " + std::to_string(idx) + " is out of range");
}
else
{
// default case: insert add offset
parent.insert(parent.begin() + static_cast<difference_type>(idx), val);
}
}
break;
}
default:
{
// if there exists a parent it cannot be primitive
assert(false); // LCOV_EXCL_LINE
}
}
}
};
// wrapper for "remove" operation; remove value at ptr
const auto operation_remove = [&result](json_pointer & ptr)
{
// get reference to parent of JSON pointer ptr
const auto last_path = ptr.pop_back();
basic_json& parent = result.at(ptr);
// remove child
if (parent.is_object())
{
// perform range check
auto it = parent.find(last_path);
if (it != parent.end())
{
parent.erase(it);
}
else
{
throw std::out_of_range("key '" + last_path + "' not found");
}
}
else if (parent.is_array())
{
// note erase performs range check
parent.erase(static_cast<size_type>(std::stoi(last_path)));
}
};
// type check
if (not json_patch.is_array())
{
// a JSON patch must be an array of objects
throw std::invalid_argument("JSON patch must be an array of objects");
}
// iterate and apply th eoperations
for (const auto& val : json_patch)
{
// wrapper to get a value for an operation
const auto get_value = [&val](const std::string & op,
const std::string & member,
bool string_type) -> basic_json&
{
// find value
auto it = val.m_value.object->find(member);
// context-sensitive error message
const auto error_msg = (op == "op") ? "operation" : "operation '" + op + "'";
// check if desired value is present
if (it == val.m_value.object->end())
{
throw std::invalid_argument(error_msg + " must have member '" + member + "'");
}
// check if result is of type string
if (string_type and not it->second.is_string())
{
throw std::invalid_argument(error_msg + " must have string member '" + member + "'");
}
// no error: return value
return it->second;
};
// type check
if (not val.is_object())
{
throw std::invalid_argument("JSON patch must be an array of objects");
}
// collect mandatory members
const std::string op = get_value("op", "op", true);
const std::string path = get_value(op, "path", true);
json_pointer ptr(path);
switch (get_op(op))
{
case patch_operations::add:
{
operation_add(ptr, get_value("add", "value", false));
break;
}
case patch_operations::remove:
{
operation_remove(ptr);
break;
}
case patch_operations::replace:
{
// the "path" location must exist - use at()
result.at(ptr) = get_value("replace", "value", false);
break;
}
case patch_operations::move:
{
const std::string from_path = get_value("move", "from", true);
json_pointer from_ptr(from_path);
// the "from" location must exist - use at()
basic_json v = result.at(from_ptr);
// The move operation is functionally identical to a
// "remove" operation on the "from" location, followed
// immediately by an "add" operation at the target
// location with the value that was just removed.
operation_remove(from_ptr);
operation_add(ptr, v);
break;
}
case patch_operations::copy:
{
const std::string from_path = get_value("copy", "from", true);;
const json_pointer from_ptr(from_path);
// the "from" location must exist - use at()
result[ptr] = result.at(from_ptr);
break;
}
case patch_operations::test:
{
bool success = false;
try
{
// check if "value" matches the one at "path"
// the "path" location must exist - use at()
success = (result.at(ptr) == get_value("test", "value", false));
}
catch (std::out_of_range&)
{
// ignore out of range errors: success remains false
}
// throw an exception if test fails
if (not success)
{
throw std::domain_error("unsuccessful: " + val.dump());
}
break;
}
case patch_operations::invalid:
{
// op must be "add", "remove", "replace", "move", "copy", or
// "test"
throw std::invalid_argument("operation value '" + op + "' is invalid");
}
}
}
return result;
}
/*!
@brief creates a diff as a JSON patch
Creates a [JSON Patch](http://jsonpatch.com) so that value @a source can
be changed into the value @a target by calling @ref patch function.
@invariant For two JSON values @a source and @a target, the following code
yields always `true`:
@code {.cpp}
source.patch(diff(source, target)) == target;
@endcode
@note Currently, only `remove`, `add`, and `replace` operations are
generated.
@param[in] source JSON value to copare from
@param[in] target JSON value to copare against
@param[in] path helper value to create JSON pointers
@return a JSON patch to convert the @a source to @a target
@complexity Linear in the lengths of @a source and @a target.
@liveexample{The following code shows how a JSON patch is created as a
diff for two JSON values.,diff}
@sa @ref patch -- apply a JSON patch
@sa [RFC 6902 (JSON Patch)](https://tools.ietf.org/html/rfc6902)
@since version 2.0.0
*/
static basic_json diff(const basic_json& source,
const basic_json& target,
const std::string& path = "")
{
// the patch
basic_json result(value_t::array);
// if the values are the same, return empty patch
if (source == target)
{
return result;
}
if (source.type() != target.type())
{
// different types: replace value
result.push_back(
{
{"op", "replace"},
{"path", path},
{"value", target}
});
}
else
{
switch (source.type())
{
case value_t::array:
{
// first pass: traverse common elements
size_t i = 0;
while (i < source.size() and i < target.size())
{
// recursive call to compare array values at index i
auto temp_diff = diff(source[i], target[i], path + "/" + std::to_string(i));
result.insert(result.end(), temp_diff.begin(), temp_diff.end());
++i;
}
// i now reached the end of at least one array
// in a second pass, traverse the remaining elements
// remove my remaining elements
const auto end_index = static_cast<difference_type>(result.size());
while (i < source.size())
{
// add operations in reverse order to avoid invalid
// indices
result.insert(result.begin() + end_index, object(
{
{"op", "remove"},
{"path", path + "/" + std::to_string(i)}
}));
++i;
}
// add other remaining elements
while (i < target.size())
{
result.push_back(
{
{"op", "add"},
{"path", path + "/" + std::to_string(i)},
{"value", target[i]}
});
++i;
}
break;
}
case value_t::object:
{
// first pass: traverse this object's elements
for (auto it = source.begin(); it != source.end(); ++it)
{
// escape the key name to be used in a JSON patch
const auto key = json_pointer::escape(it.key());
if (target.find(it.key()) != target.end())
{
// recursive call to compare object values at key it
auto temp_diff = diff(it.value(), target[it.key()], path + "/" + key);
result.insert(result.end(), temp_diff.begin(), temp_diff.end());
}
else
{
// found a key that is not in o -> remove it
result.push_back(object(
{
{"op", "remove"},
{"path", path + "/" + key}
}));
}
}
// second pass: traverse other object's elements
for (auto it = target.begin(); it != target.end(); ++it)
{
if (source.find(it.key()) == source.end())
{
// found a key that is not in this -> add it
const auto key = json_pointer::escape(it.key());
result.push_back(
{
{"op", "add"},
{"path", path + "/" + key},
{"value", it.value()}
});
}
}
break;
}
default:
{
// both primitive type: replace value
result.push_back(
{
{"op", "replace"},
{"path", path},
{"value", target}
});
break;
}
}
}
return result;
}
/// @}
};
/////////////
// presets //
/////////////
/*!
@brief default JSON class
This type is the default specialization of the @ref basic_json class which
uses the standard template types.
@since version 1.0.0
*/
using json = basic_json<>;
}
///////////////////////
// nonmember support //
///////////////////////
// specialization of std::swap, and std::hash
namespace std
{
/*!
@brief exchanges the values of two JSON objects
@since version 1.0.0
*/
template<>
inline void swap(nlohmann::json& j1,
nlohmann::json& j2) noexcept(
is_nothrow_move_constructible<nlohmann::json>::value and
is_nothrow_move_assignable<nlohmann::json>::value
)
{
j1.swap(j2);
}
/// hash value for JSON objects
template<>
struct hash<nlohmann::json>
{
/*!
@brief return a hash value for a JSON object
@since version 1.0.0
*/
std::size_t operator()(const nlohmann::json& j) const
{
// a naive hashing via the string representation
const auto& h = hash<nlohmann::json::string_t>();
return h(j.dump());
}
};
}
/*!
@brief user-defined string literal for JSON values
This operator implements a user-defined string literal for JSON objects. It
can be used by adding `"_json"` to a string literal and returns a JSON object
if no parse error occurred.
@param[in] s a string representation of a JSON object
@return a JSON object
@since version 1.0.0
*/
inline nlohmann::json operator "" _json(const char* s, std::size_t)
{
return nlohmann::json::parse(s);
}
/*!
@brief user-defined string literal for JSON pointer
This operator implements a user-defined string literal for JSON Pointers. It
can be used by adding `"_json"` to a string literal and returns a JSON pointer
object if no parse error occurred.
@param[in] s a string representation of a JSON Pointer
@return a JSON pointer object
@since version 2.0.0
*/
inline nlohmann::json::json_pointer operator "" _json_pointer(const char* s, std::size_t)
{
return nlohmann::json::json_pointer(s);
}
// restore GCC/clang diagnostic settings
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic pop
#endif
#endif
| [
"leonardo@microsoft.com"
] | leonardo@microsoft.com |
d297835e5271b1426134a8fe41ba18f503c151b3 | f06630352a79b74d250b1f34b3ea8720571ad58e | /src/petra/dev/src/OneFile/datastructures/trevor_brown_abtree/common/recordmgr/debugprinting.h | cc3529c7abda07afbae4caa6b83f82d19151c43d | [
"MIT"
] | permissive | CLPeterson/DurableCorrectness | b57f3d28ce4cdb932506964b40b06bdb39ba843a | 5e3ae0c09f6ac9415850ae389672c50cb743262d | refs/heads/master | 2023-01-28T10:55:23.083481 | 2020-09-22T13:30:34 | 2020-09-22T13:30:34 | 285,900,349 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 970 | h | /*
* File: debugprinting.h
* Author: trbot
*
* Created on June 24, 2016, 12:49 PM
*/
#ifndef DEBUGPRINTING_H
#define DEBUGPRINTING_H
#include <atomic>
#include <sstream>
#define COUTATOMIC(coutstr) /*cout<<coutstr*/ \
{ \
std::stringstream ss; \
ss<<coutstr; \
std::cout<<ss.str(); \
}
#define COUTATOMICTID(coutstr) /*cout<<"tid="<<(tid<10?" ":"")<<tid<<": "<<coutstr*/ \
{ \
std::stringstream ss; \
ss<<"tid="<<tid<<(tid<10?" ":"")<<": "<<coutstr; \
std::cout<<ss.str(); \
}
// define USE_TRACE if you want many paths through the code to be traced with std::cout<<"..." statements
#ifdef USE_TRACE
std::atomic_bool ___trace(1);
std::atomic_bool ___validateops(1);
#define TRACE_TOGGLE {bool ___t = ___trace; ___trace = !___t;}
#define TRACE_ON {___trace = true;}
#define TRACE if(___trace)
#else
#define TRACE if(0)
#define TRACE_TOGGLE
#define TRACE_ON
#endif
#endif /* DEBUGPRINTING_H */
| [
"r.izadpanah@knights.ucf.edu"
] | r.izadpanah@knights.ucf.edu |
00bc098e7313dd8f4584faf6b88f0161f195e841 | a43d3e078350efdc0085a471348f30172833527d | /TestTools/TestToolsDoc.cpp | 1eb901b453b96f0a963537b2c78f64ccb2f4ba53 | [] | no_license | RumbleJack/LearnATLAndCom | 62d4c6d58f768133e66277eb1d16c9f588ff781d | d5e5892b7b392174112b0e0fd7914b407059e079 | refs/heads/master | 2021-05-06T07:59:35.871856 | 2017-12-12T15:34:32 | 2017-12-12T15:34:32 | 113,975,632 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,383 | cpp | // TestToolsDoc.cpp : CTestToolsDoc 类的实现
//
#include "stdafx.h"
// SHARED_HANDLERS 可以在实现预览、缩略图和搜索筛选器句柄的 ATL 项目中进行定义,并允许与该项目共享文档代码。
#ifndef SHARED_HANDLERS
#include "TestTools.h"
#endif
#include "TestToolsDoc.h"
#include <propkey.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CTestToolsDoc
IMPLEMENT_DYNCREATE(CTestToolsDoc, CDocument)
BEGIN_MESSAGE_MAP(CTestToolsDoc, CDocument)
ON_COMMAND(ID_IMAGETOOLS_CREATION, &CTestToolsDoc::OnImagetoolsCreation)
END_MESSAGE_MAP()
// CTestToolsDoc 构造/析构
CTestToolsDoc::CTestToolsDoc()
{
// TODO: 在此添加一次性构造代码
}
CTestToolsDoc::~CTestToolsDoc()
{
}
BOOL CTestToolsDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: 在此添加重新初始化代码
// (SDI 文档将重用该文档)
return TRUE;
}
// CTestToolsDoc 序列化
void CTestToolsDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: 在此添加存储代码
}
else
{
// TODO: 在此添加加载代码
}
}
#ifdef SHARED_HANDLERS
// 缩略图的支持
void CTestToolsDoc::OnDrawThumbnail(CDC& dc, LPRECT lprcBounds)
{
// 修改此代码以绘制文档数据
dc.FillSolidRect(lprcBounds, RGB(255, 255, 255));
CString strText = _T("TODO: implement thumbnail drawing here");
LOGFONT lf;
CFont* pDefaultGUIFont = CFont::FromHandle((HFONT) GetStockObject(DEFAULT_GUI_FONT));
pDefaultGUIFont->GetLogFont(&lf);
lf.lfHeight = 36;
CFont fontDraw;
fontDraw.CreateFontIndirect(&lf);
CFont* pOldFont = dc.SelectObject(&fontDraw);
dc.DrawText(strText, lprcBounds, DT_CENTER | DT_WORDBREAK);
dc.SelectObject(pOldFont);
}
// 搜索处理程序的支持
void CTestToolsDoc::InitializeSearchContent()
{
CString strSearchContent;
// 从文档数据设置搜索内容。
// 内容部分应由“;”分隔
// 例如: strSearchContent = _T("point;rectangle;circle;ole object;");
SetSearchContent(strSearchContent);
}
void CTestToolsDoc::SetSearchContent(const CString& value)
{
if (value.IsEmpty())
{
RemoveChunk(PKEY_Search_Contents.fmtid, PKEY_Search_Contents.pid);
}
else
{
CMFCFilterChunkValueImpl *pChunk = NULL;
ATLTRY(pChunk = new CMFCFilterChunkValueImpl);
if (pChunk != NULL)
{
pChunk->SetTextValue(PKEY_Search_Contents, value, CHUNK_TEXT);
SetChunkValue(pChunk);
}
}
}
#endif // SHARED_HANDLERS
// CTestToolsDoc 诊断
#ifdef _DEBUG
void CTestToolsDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CTestToolsDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CTestToolsDoc 命令
void CTestToolsDoc::OnImagetoolsCreation()
{
IImageToDrawWithLabelLayerPtr ImgTools ;
if(SUCCEEDED(ImgTools.CreateInstance(__uuidof(ImageToDrawWithLabelLayer), NULL, CLSCTX_INPROC_SERVER)))
{
//提示接口IImageTools成功创建
AfxMessageBox(_T("interface IImageTools is successfully created")) ;
//创建指定大小的图像
ImgTools->CreateImage(500, 500) ;
long Width, Height ;
ImgTools->GetImageSize(&Width, &Height);
//输出提示信息
CString Note ;
Note.Format(_T("created image size(%d, %d)"), Width, Height) ;
AfxMessageBox(Note);
//释放ImgTools
ImgTools.Release();
}
else
{
//提示接口IImageTools创建失败
AfxMessageBox(_T("Failed to create interface IImageTools"));
}
}
| [
"renjiewen1995@163.com"
] | renjiewen1995@163.com |
3549b742686e78a1387070a9b8db7192a12ec627 | 086d025478aa51345dd2f18e037625547b14299a | /nodecpp/src/obnnode_mqttnode.cpp | 6abbe6993172983696c0522f8bb41dd623a9cab2 | [
"MIT"
] | permissive | nxt-lab/openBuildNet | e7fdbc91254ee30ede1308057091be2a8e8e30df | 69b6c9e6dcb7d1df2c6b1b7c61320d45e5ef07aa | refs/heads/master | 2022-12-24T17:39:52.263381 | 2020-02-03T20:41:44 | 2020-02-03T20:41:44 | 238,056,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,579 | cpp | /* -*- mode: C++; indent-tabs-mode: nil; -*- */
/** \file
* \brief MQTT node class for the C++ node interface.
*
* Implement the main node class for a C++ node.
*
* This file is part of the openBuildNet simulation framework
* (OBN-Sim) developed at EPFL.
*
* \author Truong X. Nghiem (xuan.nghiem@epfl.ch)
*/
#include <chrono>
#include <thread>
#include <obnnode_MQTTnode.h>
#include <obnnode_MQTTport.h>
#include <obnnode_exceptions.h>
using namespace OBNnode;
using namespace OBNSimMsg;
bool MQTTNodeBase::startMQTT() {
if (!m_mqtt_client_initialized) {
m_mqtt_client_initialized = mqtt_client.initialize();
if (!m_mqtt_client_initialized) {
return false;
}
}
if (mqtt_client.isRunning()) {
return true;
} else {
return mqtt_client.start();
}
}
bool MQTTNodeBase::addInput(InputPortBase* port, bool owned) {
// actually add the port
if (NodeBase::addInput(port, owned)) {
MQTTInputPortBase* mqttport = dynamic_cast<MQTTInputPortBase*>(port);
if (mqttport) {
// Assign the MQTT client
mqttport->m_mqtt_client = &mqtt_client;
}
return true;
}
return false;
}
bool MQTTNodeBase::addOutput(OutputPortBase* port, bool owned) {
// actually add the port
if (NodeBase::addOutput(port, owned)) {
MQTTOutputPortBase* mqttport = dynamic_cast<MQTTOutputPortBase*>(port);
if (mqttport) {
// Assign the MQTT client
mqttport->m_mqtt_client = &mqtt_client;
}
return true;
}
return false;
}
void MQTTNodeBase::removePort(InputPortBase* port) {
// remove all associated subscriptions if this is an MQTT input port
MQTTInputPortBase* mqttport = dynamic_cast<MQTTInputPortBase*>(port);
if (mqttport) {
mqtt_client.removeSubscription(mqttport);
}
NodeBase::removePort(port); // actually remove the port
}
void MQTTNodeBase::sendN2SMNMsg() {
// OBNsim::clockStart = chrono::steady_clock::now();
// Generate the binary content
m_gcbuffer.allocateData(_n2smn_message.ByteSize());
bool success = _n2smn_message.SerializeToArray(m_gcbuffer.data(), m_gcbuffer.size());
success = success && mqtt_client.sendData(m_gcbuffer.data(), m_gcbuffer.size(), m_smn_topic);
// std::cout << "Message sent: " << std::chrono::duration <double, std::nano> (std::chrono::steady_clock::now()-OBNsim::clockStart).count() << " ns\n";
if (!success) {
// Error while serializing the raw message
onOBNError("Error while sending a system message to the SMN.");
}
}
bool MQTTNodeBase::openSMNPort() {
// Start the MQTT client if needs to
if (!startMQTT()) {
return false;
}
// Subscribe to the SMN topic
return mqtt_client.addSubscription(&m_smn_port, fullPortName("_gc_")) >= 0;
}
bool MQTTNodeBase::initializeForSimulation() {
//onReportInfo("MQTT initializeForSimulation.");
// Call the parent's initialization
if (!NodeBase::initializeForSimulation()) {
return false;
}
if (!mqtt_client.isRunning()) {
onReportInfo("[MQTT] MQTT Client is not running; check the communication network or the MQTT broker.");
return false;
}
// Send a message which contains my name to the common MQTT topic to announce that I'm online
// This needs to be done everytime this node starts a simulation run
auto namelen = _nodeName.size();
char myname[namelen];
_nodeName.copy(myname, namelen);
// Send message: last param is retained = 1
if (!mqtt_client.sendData(myname, namelen, _workspace + "_smn_/_nodes_/" + _nodeName, 1)) {
onReportInfo("[MQTT] Could not send the availability announcement; check the communication network or the MQTT broker.");
return false;
}
return true;
}
void MQTTNodeBase::onPermanentCommunicationLost(CommProtocol comm) {
auto error_message = std::string("Permanent connection lost for protocol ") + (comm==COMM_YARP?"YARP":"MQTT");
std::cerr << "ERROR: " << error_message << " => Terminate." << std::endl;
if (comm != COMM_MQTT) {
// We can still try to stop the simulation as the GC's communication (in MQTT) is not affected
stopSimulation();
// Wait a bit
std::this_thread::sleep_for(std::chrono::seconds(1));
}
// Push an error event to the main thread
postExceptionEvent(std::make_exception_ptr(std::runtime_error(error_message)));
}
/** This method requests a future update from the Global Clock by sending a request to the SMN.
The request still needs to be approved by the SMN, by an acknowledgement (ACK) message from the SMN.
The ACK will tell if the request is accepted or rejected (and the reason for the rejection).
If waiting = true, the function will wait (block) until it receives the ACK; otherwise it will return immediately.
If the method returns a valid pointer to an WaitForCondition object, the request has been sent; if it returns nullptr, the request is invalid (e.g. a past or present update is requested).
In case waiting = false, the ACK can be waited for later on by calling wait() on the returned object.
Once the ACK has been received (the request has been answered), the result of the request can be checked by the I field of the returned data record (accessed by calling getData() on the condition object, see the OBN document for details).
Make sure that the condition has been cleared (either after waiting for it or by calling MQTTNodeBase::isCleared()) before accessing its data, otherwise the content of the data record is undefined or it may cause a data race issue.
\param t The time of the requested update; must be in the future t > current simulation time
\param m The update mask requested for the update.
\param waiting Whether the method should wait (blocking/synchronously) for the ACK to receive [default: true]; if a timeout is desired, call this function with waiting=false and explicitly call wait() on the returned condition object.
\return A pointer to the wait-for condition, which is used to wait for the ACK; or nullptr if the request is invalid.
*/
MQTTNodeBase::WaitForCondition* MQTTNodeBase::requestFutureUpdate(simtime_t t, updatemask_t m, bool waiting) {
if (t <= _current_sim_time) {
// Cannot request a present or past update time
return nullptr;
}
// Send request to the SMN
_n2smn_message.set_msgtype(OBNSimMsg::N2SMN_MSGTYPE_SIM_EVENT);
_n2smn_message.set_id(_node_id);
auto *data = new OBNSimMsg::MSGDATA;
data->set_t(t);
data->set_i(m);
_n2smn_message.set_allocated_data(data);
sendN2SMNMsg();
// Register an wait-for condition (lock mutex at beginning and unlock it after we've done)
MQTTNodeBase::WaitForCondition *pCond = nullptr;
MQTTNodeBase::WaitForCondition::the_checker f = [t](const OBNSimMsg::SMN2N& msg) {
return msg.msgtype() == OBNSimMsg::SMN2N_MSGTYPE_SIM_EVENT_ACK && (msg.has_data() && (msg.data().has_t() && msg.data().t() == t));
};
std::unique_lock<std::mutex> lock(_waitfor_conditions_mutex);
// Look through the list of conditions to find an inactive one
for (auto c = _waitfor_conditions.begin(); c != _waitfor_conditions.end(); ++c) {
if (c->status == WaitForCondition::INACTIVE) {
// Found one => reuse it
c->_check_func = f;
c->status = WaitForCondition::ACTIVE;
pCond = &(*c);
break;
}
}
if (!pCond) {
// No inactive condition can be reused => create new one
_waitfor_conditions.emplace_front(f);
pCond = &(_waitfor_conditions.front());
}
lock.unlock(); // We've done changing the list
// If waiting = true, we will wait (blocking) until the wait-for condition is cleared; otherwise, just return
if (waiting) {
pCond->wait(-1.0);
}
return pCond;
}
/** This method returns the result of a pending request for a future update. If the request hasn't been acknowledged by the SMN, this method will wait (block) until it receives the ACK for this request. It returns the value of the I field of the ACK message's data (see the OBN design document for details). Basically if it returns 0, the request was successful; otherwise there was an error and the request failed.
This method will reset the condition after it's cleared.
\param pCond Pointer to the condition object, as returned by requestFutureUpdate().
\param timeout An optional timeout value; if a timeout occurs and the waiting failed then the returned value will be -1.
\return The result of the request: 0 if successful; -1 if the waiting failed (due to timeout).
\sa requestFutureUpdate()
*/
int64_t MQTTNodeBase::resultFutureUpdate(MQTTNodeBase::WaitForCondition* pCond, double timeout) {
return resultWaitForCondition(pCond, timeout);
}
/** This method waits until a wait-for condition is cleared and returns the value of the integer field I of the message data. This method does not check if the return message actually had the message data and the I field; if it did not, the default value (0) is returned.
This method will reset the condition after it's cleared.
\param pCond Pointer to the condition object.
\param timeout An optional timeout value; if a timeout occurs and the waiting failed then the returned value will be -1.
\return The integer field I of the message data if the waiting is successful (default to 0 if I does not exist); or -1 if the waiting failed (due to timeout).
*/
int64_t MQTTNodeBase::resultWaitForCondition(MQTTNodeBase::WaitForCondition* pCond, double timeout) {
assert(pCond);
std::unique_lock<std::mutex> lock(_waitfor_conditions_mutex);
auto s = pCond->status;
lock.unlock();
assert(s != WaitForCondition::INACTIVE);
if (s != MQTTNodeBase::WaitForCondition::ACTIVE || pCond->wait(timeout)) {
// At this point, the status of the condition must be CLEARED => get the data and the I field
int64_t i;
{
std::lock_guard<std::mutex> lockcond(pCond->_mutex);
i = pCond->getData().i();
}
// The following function will need the _mutex of pCond, so must not lock it
resetWaitFor(pCond);
return i;
} else {
return -1;
}
}
/** This method iterates the list of wait-for conditions and check if any of them can be cleared according to the given message. If there is one, its status will be changed to CLEARED, the MSGDATA will be saved. At most one condition can be cleared. */
void MQTTNodeBase::checkWaitForCondition(const OBNSimMsg::SMN2N& msg) {
// Lock access to the list, because the SMN port thread may access it
std::lock_guard<std::mutex> lock(_waitfor_conditions_mutex);
// Look through the list of conditions
for (auto c = _waitfor_conditions.begin(); c != _waitfor_conditions.end(); ++c) {
if (c->status == WaitForCondition::ACTIVE && c->_check_func(msg)) {
// This condition is cleared
c->status = WaitForCondition::CLEARED;
{
std::lock_guard<std::mutex> lockcond(c->_mutex);
if (msg.has_data()) {
c->_data.CopyFrom(msg.data());
}
c->_waitfor_done = true;
}
c->_event.notify_all();
return;
}
}
}
| [
"truong.nghiem@gmail.com"
] | truong.nghiem@gmail.com |
692f796c07fba0e28dd76f19051d355400e061fa | d32424b20ae663a143464a9277f8090bd017a7f6 | /hihocode/1093-ShortestPathIII.cpp | a1a17f12d0e82970680e5dda966de4d1c338c9b9 | [] | no_license | Vesion/Misirlou | a8df716c17a3072e5cf84b5e279c06e2eac9e6a7 | 95274c8ccb3b457d5e884bf26948b03967b40b32 | refs/heads/master | 2023-05-01T10:05:40.709033 | 2023-04-22T18:41:29 | 2023-04-22T18:43:05 | 51,061,447 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,013 | cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cstring>
#include <climits>
#include <queue>
using namespace std;
const int MAXN = 100005;
vector<pair<int,int>> g[MAXN];
int dist[MAXN];
bool has[MAXN];
int N, M, S, T;
void spfa(int s) {
for (int i = 1; i <= N; ++i) dist[i] = INT_MAX;
queue<int> q;
q.push(s);
dist[s] = 0;
has[s] = true;
while(!q.empty()) {
int i = q.front(); q.pop();
has[i] = false;
for(auto& p : g[i]) {
int j = p.first, l = p.second;
if(dist[j] > dist[i]+l) {
dist[j] = dist[i]+l;
if(!has[j]) {
q.push(j);
has[j] = true;
}
}
}
}
}
int main() {
cin >> N >> M >> S >> T;
while (M--) {
int a, b, l; cin >> a >> b >> l;
g[a].push_back({b, l});
g[b].push_back({a, l});
}
spfa(S);
cout << dist[T] << endl;
return 0;
}
| [
"xuxiang19930924@126.com"
] | xuxiang19930924@126.com |
459221e4a6aaa89dbda9096625af82bd8febec01 | af415413b91d68e5ce0c92a9cf9a940e27c5a39e | /2. Tes Username dan Password.cpp | 60c3d02301dc36715e0ac278aae5180788c33a13 | [] | no_license | waskitayudha/Tes-Arkademy | 3672d8b04916a601541a7ae811a26d75f31c152f | b9cbfeebddebe6fc2f2980b5f94bf608a2e4f656 | refs/heads/master | 2020-07-21T22:57:34.818456 | 2019-09-07T16:19:31 | 2019-09-07T16:19:31 | 206,993,195 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 462 | cpp | #include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int i;
char ch;
string user, pass;
for(i=1; i<=3; i++)
{
string user = "";
string pass = "";
cout<<"Username: ";cin>>user;
cout<<"Password: ";cin>>pass;
if(user=="yudha" && pass=="yud123")
{
cout<<"\n\nAnda Berhasil Login.\n"<<endl;
return 0;
}
else
{
cout<<"\n\nMaaf Username & Password salah!!\n\n";
return 0;
}
}
getch();
}
| [
"noreply@github.com"
] | noreply@github.com |
19d5ccbf5c0fca2c4acb23f4537a5b514e544321 | c0bde5d4a897cf867cc02fc3b19a769f4153104d | /projekat2/RenameRunClasses.h | f665fded93092b3e0423b8648ead61bb614ea501 | [] | no_license | mmaricic/FilesystemManagement | 68ef10477aee8addf0856420f7b35b60e39d28d1 | f03a868d73ba8cce120a4eb7e79d89a434b453fb | refs/heads/master | 2021-07-08T17:50:25.526484 | 2017-10-06T18:49:12 | 2017-10-06T18:49:12 | 106,038,816 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | h | #ifndef _RENAMERUNCLASSES_H
#define _RENAMERUNCLASSES_H
#include "RunClass.h"
class BasicRename : public RunClass{
public:
virtual void run(string oldn, string newn)=0;
};
class RenamePath : public BasicRename{
public:
void run(string oldn, string newn) override;
};
class RenameAlias : public BasicRename{
public:
void run(string oldn, string newn) override;
};
class RenameSelection : public BasicRename{
public:
void run(string oldn, string newn) override;
};
class RenameBoth : public BasicRename{
public:
void run(string oldn, string newn) override;
};
#endif | [
"marija190396@gmail.com"
] | marija190396@gmail.com |
1f7bde6a312e10cb82087fd73be8bee6dfbb5474 | c30e64a6f8ac83fc9c46ffa8d14d88dbf6f19757 | /core/unit_test/Serial/tstSlice_Serial.cpp | 32ffbf63dcf3cb5de507d3294e8b1aff57b71ce9 | [
"BSD-3-Clause"
] | permissive | ibaned/Cabana | 6e8904484b137382920af1740680458f66932bab | d8ee1af4111cfb3f0c16d03630bf54d317d12e19 | refs/heads/master | 2020-04-28T18:15:52.540822 | 2019-03-12T23:10:29 | 2019-03-12T23:10:29 | 175,473,136 | 0 | 0 | BSD-3-Clause | 2019-03-13T18:00:43 | 2019-03-13T18:00:42 | null | UTF-8 | C++ | false | false | 848 | cpp | /****************************************************************************
* Copyright (c) 2018-2019 by the Cabana authors *
* All rights reserved. *
* *
* This file is part of the Cabana library. Cabana is distributed under a *
* BSD 3-clause license. For the licensing terms see the LICENSE file in *
* the top-level directory. *
* *
* SPDX-License-Identifier: BSD-3-Clause *
****************************************************************************/
#include <Serial/TestSerial_Category.hpp>
#include <tstSlice.hpp>
| [
"slatterysr@ornl.gov"
] | slatterysr@ornl.gov |
99842653a101fe1f6652231d7f89789c0f128a22 | c3f3eee1dea0316d7bca34611fc2f05caa3a73b9 | /atcoder.jp/abc066/arc077_a/Main.cpp | 25c82ae065d1c0e4ef631e2bc676064c760b5fd9 | [] | no_license | Nemurino-kai/Atcoder_source | d2c2e3ef6a887ca33ddebec6ecb6a2c1a681c87c | a25eb2c36ac51c4c6c56f6a009f020123fc1f53a | refs/heads/master | 2021-04-20T23:48:06.865125 | 2017-07-01T12:08:24 | 2017-07-01T12:08:24 | 249,726,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | cpp | #include<iostream>
#include<deque>
int main() {
int num, suu;
std::deque<int> vec;
int i, j, t;
scanf("%d", &num);
for (i = 0; i < num; i++) {
scanf("%d", &suu);
if (i % 2 == (num - 1) % 2) {
//一致
vec.push_front(suu);
}
else {
vec.push_back(suu);
}
}
for (i = 0; i < num; i++) {
printf("%d ", vec[i]);
}
} | [
"kohei.tashiro@chiba-u.jp"
] | kohei.tashiro@chiba-u.jp |
ea65b7ce7bafe48ecf05ccb22d1c2f510d05f624 | 2837bfaf2b8a0fd938b7623a151787d9e16ae315 | /Algorithms_and_Data_Structures/First_Project/cpp/airport.hpp | 83ed9e8a03634706debec9bfe0212642454cd68c | [] | no_license | dcoimbra/University-Projects | 9c7cea8a1ae11c84d7e413562af3a3c456e89a07 | ec4a11645660692d3a04fd10e4588727981ac6b1 | refs/heads/master | 2021-07-09T00:12:57.269363 | 2020-11-30T01:18:25 | 2020-11-30T01:18:25 | 216,188,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,470 | hpp | #pragma once
#include <string>
#include <boost/graph/adjacency_list.hpp>
constexpr int IDLEN = 3;
struct Airport {
private:
std::string id{};
int capacity{};
bool open{true};
public:
void set_id(std::string id);
void set_capacity(int capacity);
void flip_state();
std::string get_id();
int get_capacity();
int is_open();
};
struct Flight {
private:
int number{1};
public:
void add_weight(int amount);
int get_weight();
};
using BoostAirportGraph = boost::adjacency_list < boost::vecS, boost::vecS, boost::bidirectionalS, Airport, Flight > ;
using BoostVertexDescriptor = BoostAirportGraph::vertex_descriptor;
using BoostEdgeDescriptor = BoostAirportGraph::edge_descriptor;
using BoostVertexIterator = BoostAirportGraph::vertex_iterator;
using BoostEdgeIterator = BoostAirportGraph::edge_iterator;
using BoostOutEdgeIterator = BoostAirportGraph::out_edge_iterator;
using BoostInEdgeIterator = BoostAirportGraph::in_edge_iterator;
class AirportGraph {
private:
BoostAirportGraph graph;
BoostVertexDescriptor find_airport_by_id(std::string id);
BoostEdgeDescriptor add_edge(BoostVertexDescriptor source, BoostVertexDescriptor target);
void remove_edge(BoostVertexDescriptor source, BoostVertexDescriptor target);
int total_flights(BoostVertexDescriptor airport);
int total_outgoing(BoostVertexDescriptor airport);
int total_incoming(BoostVertexDescriptor airport);
int count_connections(BoostVertexDescriptor airport);
int count_flights_between(BoostVertexDescriptor airport_src, BoostVertexDescriptor airport_dst);
public:
BoostVertexDescriptor add_airport(std::string id, int capacity);
BoostVertexDescriptor change_airport_capacity(std::string id, int capacity_delta);
BoostEdgeDescriptor add_flight(std::string id_1, std::string id_2);
void remove_flight(std::string id_1, std::string id_2, bool round);
std::pair < int, int > n_flights(std::string id_1, std::string id_2);
std::string most_popular_airp();
std::string most_connected();
std::pair < std::string, std::string > most_popular_flight();
BoostVertexDescriptor close_airport(std::string id);
BoostVertexDescriptor reopen_airport(std::string id);
std::string list_airports();
std::string print_id(BoostVertexDescriptor v);
int print_capacity(BoostVertexDescriptor v);
int print_state(BoostVertexDescriptor v);
std::string print_flight_src(BoostEdgeDescriptor e);
std::string print_flight_dst(BoostEdgeDescriptor e);
}; | [
"david.coimbra@tecnico.ulisboa.pt"
] | david.coimbra@tecnico.ulisboa.pt |
b268c8e902be17c15f8cf6ef9b0890e13969a99b | 7580b75f78802d4852d0fc1c2fb6186809635c48 | /lib/Ethernet_Alt_SPI/Ethernet.cpp | 0be4d3b8a62fcf3af4f47412da4dd4df2b96e8c7 | [] | no_license | FlipEngineering/nailsteppers | 2a8c322ac7f646c55e12c0a28bb8e6c9822148cb | b44263fb3a63dc337d4f2b416d1ebadf45026d6c | refs/heads/main | 2023-04-30T09:39:40.922306 | 2021-05-24T11:36:16 | 2021-05-24T11:36:16 | 370,329,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,634 | cpp | #include "Ethernet.h"
#include "w5100.h"
#include "Dhcp.h"
IPAddress EthernetClass::_dnsServerAddress;
DhcpClass* EthernetClass::_dhcp = NULL;
int EthernetClass::begin(uint8_t *mac, unsigned long timeout, unsigned long responseTimeout)
{
static DhcpClass s_dhcp;
_dhcp = &s_dhcp;
// Initialise the basic info
W5100.init();
SPI1.beginTransaction(SPI_ETHERNET_SETTINGS);
W5100.setMACAddress(mac);
W5100.setIPAddress(IPAddress(0,0,0,0).raw_address());
SPI1.endTransaction();
// Now try to get our config info from a DHCP server
int ret = _dhcp->beginWithDHCP(mac, timeout, responseTimeout);
if (ret == 1) {
// We've successfully found a DHCP server and got our configuration
// info, so set things accordingly
SPI1.beginTransaction(SPI_ETHERNET_SETTINGS);
W5100.setIPAddress(_dhcp->getLocalIp().raw_address());
W5100.setGatewayIp(_dhcp->getGatewayIp().raw_address());
W5100.setSubnetMask(_dhcp->getSubnetMask().raw_address());
SPI1.endTransaction();
_dnsServerAddress = _dhcp->getDnsServerIp();
socketPortRand(micros());
}
return ret;
}
void EthernetClass::begin(uint8_t *mac, IPAddress ip)
{
// Assume the DNS server will be the machine on the same network as the local IP
// but with last octet being '1'
IPAddress dns = ip;
dns[3] = 1;
begin(mac, ip, dns);
}
void EthernetClass::begin(uint8_t *mac, IPAddress ip, IPAddress dns)
{
// Assume the gateway will be the machine on the same network as the local IP
// but with last octet being '1'
IPAddress gateway = ip;
gateway[3] = 1;
begin(mac, ip, dns, gateway);
}
void EthernetClass::begin(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway)
{
IPAddress subnet(255, 255, 255, 0);
begin(mac, ip, dns, gateway, subnet);
}
void EthernetClass::begin(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet)
{
W5100.init();
SPI1.beginTransaction(SPI_ETHERNET_SETTINGS);
W5100.setMACAddress(mac);
#if ARDUINO > 106 || TEENSYDUINO > 121
W5100.setIPAddress(ip._address.bytes);
W5100.setGatewayIp(gateway._address.bytes);
W5100.setSubnetMask(subnet._address.bytes);
#else
W5100.setIPAddress(ip._address);
W5100.setGatewayIp(gateway._address);
W5100.setSubnetMask(subnet._address);
#endif
SPI1.endTransaction();
_dnsServerAddress = dns;
}
void EthernetClass::init(uint8_t sspin)
{
W5100.setSS(sspin);
}
int EthernetClass::maintain()
{
int rc = DHCP_CHECK_NONE;
if (_dhcp != NULL) {
// we have a pointer to dhcp, use it
rc = _dhcp->checkLease();
switch (rc) {
case DHCP_CHECK_NONE:
//nothing done
break;
case DHCP_CHECK_RENEW_OK:
case DHCP_CHECK_REBIND_OK:
//we might have got a new IP.
SPI1.beginTransaction(SPI_ETHERNET_SETTINGS);
W5100.setIPAddress(_dhcp->getLocalIp().raw_address());
W5100.setGatewayIp(_dhcp->getGatewayIp().raw_address());
W5100.setSubnetMask(_dhcp->getSubnetMask().raw_address());
SPI1.endTransaction();
_dnsServerAddress = _dhcp->getDnsServerIp();
break;
default:
//this is actually a error, it will retry though
break;
}
}
return rc;
}
IPAddress EthernetClass::localIP()
{
IPAddress ret;
SPI1.beginTransaction(SPI_ETHERNET_SETTINGS);
W5100.getIPAddress(ret.raw_address());
SPI1.endTransaction();
return ret;
}
IPAddress EthernetClass::subnetMask()
{
IPAddress ret;
SPI1.beginTransaction(SPI_ETHERNET_SETTINGS);
W5100.getSubnetMask(ret.raw_address());
SPI1.endTransaction();
return ret;
}
IPAddress EthernetClass::gatewayIP()
{
IPAddress ret;
SPI1.beginTransaction(SPI_ETHERNET_SETTINGS);
W5100.getGatewayIp(ret.raw_address());
SPI1.endTransaction();
return ret;
}
EthernetClass Ethernet;
| [
"philipp.duennwald@gmail.com"
] | philipp.duennwald@gmail.com |
bcab1def053eaa46e462e40a255124b7ddb81ecf | a2f6660488fed555d720cc0df72ae2cfd526d0ec | /src/hssh/local_topological/voronoi_skeleton_grid.cpp | 74c6c86c9886d7214962c8879dc87e6138054de2 | [
"MIT"
] | permissive | h2ssh/Vulcan | 91a517fb89dbed8ec8c126ee8165dc2b2142896f | cc46ec79fea43227d578bee39cb4129ad9bb1603 | refs/heads/master | 2022-05-03T02:31:24.433878 | 2019-05-04T17:12:12 | 2019-05-04T17:12:12 | 184,834,960 | 6 | 11 | NOASSERTION | 2022-04-29T02:03:07 | 2019-05-04T00:21:10 | C++ | UTF-8 | C++ | false | false | 3,510 | cpp | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be found at "https://github.com/h2ssh/Vulcan".
*/
/**
* \file place_grid.cpp
* \author Collin Johnson
*
* Definition of VoronoiSkeletonGrid.
*/
#include <hssh/local_topological/voronoi_skeleton_grid.h>
namespace vulcan
{
namespace hssh
{
std::vector<cell_t> filter_cells(const std::vector<cell_t>& cells, uint8_t mask, const ClassificationGrid& classificationGrid);
VoronoiSkeletonGrid::VoronoiSkeletonGrid(void)
{
}
VoronoiSkeletonGrid::VoronoiSkeletonGrid(std::size_t width, std::size_t height, float scale)
: distanceGrid (width, height, scale, Point<float>(0, 0))
, classificationGrid(width, height, scale, Point<float>(0, 0))
{
}
VoronoiSkeletonGrid::VoronoiSkeletonGrid(const DistanceGrid& distanceGrid, const ClassificationGrid& classificationGrid)
: distanceGrid(distanceGrid)
, classificationGrid(classificationGrid)
{
}
SourceCells VoronoiSkeletonGrid::getSourceCells(int x, int y) const
{
auto sourcesIt = skeletonSources.find(cell_t(x, y));
if(sourcesIt != skeletonSources.end())
{
return sourcesIt->second;
}
return SourceCells();
}
void VoronoiSkeletonGrid::filterVoronoiInformation(uint8_t classificationMask)
{
std::vector<cell_t> filteredJunctions = filter_cells(junctions, classificationMask, classificationGrid);
std::vector<cell_t> filteredDeadEnds = filter_cells(deadEnds, classificationMask, classificationGrid);
junctions = std::move(filteredJunctions);
deadEnds = std::move(filteredDeadEnds);
}
void VoronoiSkeletonGrid::setGridSize(std::size_t width, std::size_t height)
{
distanceGrid.setGridSizeInCells(width, height);
classificationGrid.setGridSizeInCells(width, height);
}
void VoronoiSkeletonGrid::setScale(float scale)
{
distanceGrid.setMetersPerCell(scale);
classificationGrid.setMetersPerCell(scale);
}
void VoronoiSkeletonGrid::setBottomLeft(const Point<float>& bottomLeft)
{
distanceGrid.setBottomLeft(bottomLeft);
classificationGrid.setBottomLeft(bottomLeft);
}
void VoronoiSkeletonGrid::setObstacleDistance(int x, int y, VoronoiDist distance)
{
distanceGrid(x, y) = distance;
}
void VoronoiSkeletonGrid::setClassification(int x, int y, uint8_t classification)
{
classificationGrid(x, y) = classification;
}
void VoronoiSkeletonGrid::addClassification(int x, int y, skeleton_cell_type_t classification)
{
classificationGrid(x, y) |= static_cast<uint8_t>(classification);
}
void VoronoiSkeletonGrid::removeClassification(int x, int y, skeleton_cell_type_t classification)
{
classificationGrid(x, y) &= ~static_cast<uint8_t>(classification);
}
void VoronoiSkeletonGrid::reset(VoronoiDist distance, uint8_t classification)
{
distanceGrid.reset(distance);
classificationGrid.reset(classification);
}
std::vector<cell_t> filter_cells(const std::vector<cell_t>& cells, uint8_t mask, const ClassificationGrid& classificationGrid)
{
std::vector<cell_t> filtered;
for(auto cell : cells)
{
if(classificationGrid.getValue(cell.x, cell.y) & mask)
{
filtered.push_back(cell);
}
}
return filtered;
}
} // namespace hssh
} // namespace vulcan
| [
"collinej@umich.edu"
] | collinej@umich.edu |
4e4803340aac9fb4014fc3a9bc13023d15af560b | 336080c1dc0a7df1949618eec856204f87740aea | /HackerRank/C30daysofCode/akuna5.cpp | 09b81c84e58d6c5d63f1479e792a5dc852f7c879 | [] | no_license | CoderZeus/HackerRank | 5d11cd2d958be3153028ac51fb494acfaf340560 | 32420d039b2fdbccd674146d079457ca7d4d3ace | refs/heads/master | 2023-02-19T05:58:10.090536 | 2021-01-22T19:15:53 | 2021-01-22T19:15:53 | 272,883,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,941 | cpp | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <unordered_map>
//#include <threads.h>
using namespace std;
enum actions { BUY,SELL,CANCEL,MODIFY,MODIFY_BUY,MODIFY_SELL,PRINT,UNKNOWN};
class Trade
{
protected:
bool m_isActive;
actions m_action;
uint64_t m_quantity;
uint64_t m_price;
string m_orderType;
string m_orderId;
public:
Trade();
Trade(string,string,string,int,int);
~Trade();
string getOrderId(){return m_orderId;};
string getOrderType(){return m_orderType;};
uint64_t getPrice(){return m_price;};
uint64_t getQuantity(){return m_quantity;};
bool getStatus(){return m_isActive;};
void setStatus(bool status){m_isActive = status;};
void setQuantity(uint64_t quantity){ m_quantity = quantity;};
actions getAction(){return this->m_action;};
bool readInput(string &input,Trade * &);
protected:
void setValues(string &,actions,string &,string &,string &);
actions getAction(string action)
{
actions operation = BUY;
if(action.compare("BUY") == 0)
{
operation = BUY;
}
else if(action.compare("SELL") ==0)
{
operation = SELL;
}
else if(action.compare("MODIFY") ==0)
{
operation = MODIFY;
}
else if(action.compare("CANCEL") ==0)
{
operation = CANCEL;
}
else if(action.compare("PRINT") ==0)
{
operation = PRINT;
}
else
operation = UNKNOWN;
return operation;
}
bool isValidTrade()
{
if(this->m_action == UNKNOWN)
return false;
if(this->m_quantity <= 0)
return false;
if( this->m_price <= 0)
return false;
if( ( this->m_orderType.compare("GFD") ==0 || this->m_orderType.compare("IOC") ==0 ) == 0)//if neither err
return false;
return true;
}
};
Trade::Trade()
{
this->m_isActive = true;
}
Trade::~Trade()
{
this->m_isActive = false;
}
Trade::Trade(string orderId,string action,string orderType,int quantity,int price)
{
this->m_action = getAction(action);
this->m_isActive = true;
this->m_quantity = quantity;
this->m_price = price;
this->m_orderType =orderType;
this->m_orderId = orderId;
}
void Trade::setValues(string &orderId,actions action,string& orderType,string& quantity,string& price)
{
this->m_action = action;//getAction(action);
this->m_isActive = true;
try
{
this->m_quantity = std::stoi(quantity);
this->m_price = std::stoi(price);
}
catch (exception &ex)
{
this->m_quantity = 0;
this->m_price = 0;
}
this->m_orderType =orderType;
this->m_orderId = orderId;
}
bool Trade ::readInput(string &input,Trade * &pTrade)
{
vector<string> data = std::vector<string> ();
int start_pos =0;
// cout<<"Input "<<input<<"Size "<<input.size();
string temp_x;
for (int i =0; i <input.size() ;++i )
{
if(input.at(i)==' ')
{
// cout<<" \n Substr "<<start_pos<<": "<<i<<endl;
temp_x= (input.substr(start_pos,i-start_pos));
//cout<<" Item : "<<temp_x;
data.push_back(temp_x);
start_pos = i+1;
//cout<<"\nSpace found at pos "<<i<<endl;
}
//else
// cout<<" \n "<<input.at(i)<<" " <<i<<endl;
}
data.push_back(input.substr(start_pos,input.size()-start_pos));
// return true;
//
// cout<<"Going to use data ";
// return true;
actions operation = getAction(data.at(0));
pTrade = new Trade();
//pTrade = NULL;
//return true;
//cout<<"Data size"<<data.size() ;
//for (int x=0 ; x < data.size(); ++x)
// cout<<" item :"<<x<<" "<<data.at(x)<<endl;
switch (operation)
{
case BUY :
case SELL :
{
// pTrade = new Trade();
pTrade->setValues(data.at(4),operation,data.at(1),data.at(3),data.at(2));
break;
}
case MODIFY :
{
//pTrade = new Trade();
actions value = getAction(data.at(2));
if(value == BUY)
value = MODIFY_BUY;
else
value = MODIFY_SELL;
string type ="GFD";
pTrade->setValues(data.at(1),value,type,data.at(3),data.at(4));
break;
}
case CANCEL:
//pTrade = new Trade();
pTrade->m_action = operation;
pTrade->m_orderId = data.at(1);
break;
case PRINT:
//pTrade = new Trade();
pTrade->m_action = operation;
break;
case UNKNOWN :
{
delete pTrade;
pTrade = NULL;
break;
return false;
}
default:
return true;
}
return true;
}
class BookManager //: public Thread
{
protected:
queue<Trade *> m_activeTrade;
map<string,Trade * > m_indexBook;
map<uint64_t, vector<Trade *> > m_buyBook;
map<uint64_t, vector<Trade *> > m_sellBook;
public:
BookManager();
~BookManager();
bool addTrade(Trade *);
bool executeTrade();
private:
void matchOrders(vector<Trade *> &list,Trade* pTrade);
void printOrders();
bool addBuyOrder(Trade * pTrade);
bool insertToBuyBook(Trade *pTrade,bool isNewEntry = true);
bool removeBuyOrder();
bool addSellOrder(Trade * pTrade);
bool insertToSellBook(Trade *pTrade,bool isNewEntry = true);
bool removeSellOrder();
bool modifyOrder(Trade* pTrade);
bool cancelOrder(Trade * pTrade);
};
BookManager::BookManager()
{
}
BookManager::~BookManager()
{
}
bool BookManager::addTrade(Trade * pTrade)
{
if(pTrade)
{
this->m_activeTrade.push(pTrade);
}
else
{
cout<<"NULL pointer";
return false;
}
return true;
}
bool BookManager::insertToBuyBook(Trade *pTrade,bool isNewEntry)
{
if(pTrade->getStatus()&& pTrade->getOrderType().compare("GFD") == 0)
{
if( (isNewEntry) && (this->m_indexBook.find(pTrade->getOrderId()) != this->m_indexBook.end() ) )
{
// cout<<"Duplicate entry ";
// return false;
}
map<uint64_t, vector<Trade *>>::iterator it = this->m_buyBook.find(pTrade->getPrice());
if(it != this->m_buyBook.end())
{
it->second.push_back(pTrade);
}
else
{
// this->m_buyBook[pTrade->getPrice()].insert(std::pair<string,Trade*> (pTrade->getOrderId(), pTrade));
vector<Trade*> listVec ;//= std::vector<Trade*> ();
listVec.push_back(pTrade);
this->m_buyBook[pTrade->getPrice()]=listVec;
}
this->m_indexBook[pTrade->getOrderId()]= pTrade;
}
return true;
}
bool BookManager::addBuyOrder(Trade *pTrade)
{
if(this->m_sellBook.size())
{
map<uint64_t, vector<Trade *> >::reverse_iterator sIterator = this->m_sellBook.rbegin();
while(pTrade->getStatus() && sIterator!= this->m_sellBook.rend() )
{
if(sIterator->first > pTrade->getPrice())
{
this->insertToBuyBook(pTrade);
}
else
{
vector<Trade *> list = sIterator->second;
this->matchOrders(list,pTrade);
if( list.size() == 0 )
this->m_sellBook.erase(sIterator->first);
if(pTrade->getStatus() == true)
this->insertToBuyBook(pTrade);
}
++sIterator;
}
}
else
{
this->insertToBuyBook(pTrade);
}
return true;
}
bool BookManager::addSellOrder(Trade *pTrade)
{
if(this->m_buyBook.size())
{
map<uint64_t, vector<Trade *> >::reverse_iterator sIterator = this->m_buyBook.rbegin();
while(pTrade->getStatus() && sIterator!= this->m_buyBook.rend() )
{
if(sIterator->first < pTrade->getPrice())
{
this->insertToSellBook(pTrade);
}
else
{
vector<Trade *> list = sIterator->second;
this->matchOrders(list,pTrade);
if( list.size() == 0 )
this->m_sellBook.erase(sIterator->first);
if(pTrade->getStatus() == true)
this->insertToSellBook(pTrade);
}
++sIterator;
}
}
else
{
this->insertToSellBook(pTrade);
}
return true;
}
bool BookManager::insertToSellBook(Trade *pTrade,bool isNewEntry )
{
if(pTrade->getStatus()&& pTrade->getOrderType().compare("GFD") == 0)
{
if( (isNewEntry) && (this->m_indexBook.find(pTrade->getOrderId()) != this->m_indexBook.end() ) )
{
//cout<<"Duplicate entry ";
//return false;
}
map<uint64_t, vector<Trade *>>::iterator it = this->m_sellBook.find(pTrade->getPrice());
if(it != this->m_sellBook.end())
{
it->second.push_back(pTrade);
}
else
{
// this->m_buyBook[pTrade->getPrice()].insert(std::pair<string,Trade*> (pTrade->getOrderId(), pTrade));
//this->m_sellBook.insert(std::pair<uint64_t,vector<Trade *>(pTrade->getPrice(),{pTrade}));
this->m_sellBook[pTrade->getPrice()] ={pTrade};
}
this->m_indexBook[pTrade->getOrderId()]= pTrade;
}
return true;
}
bool BookManager::cancelOrder(Trade * pTrade)
{
Trade *temp = NULL;
if(pTrade)
{
map<string,Trade * >::iterator it = this->m_indexBook.find(pTrade->getOrderId());
map<uint64_t, vector<Trade *>>::iterator sIterator ;
if(it != this->m_indexBook.end())
{
temp = it->second;
if(temp->getAction() == BUY)
{
sIterator = this->m_buyBook.find(temp->getPrice());
}
else
{
sIterator = this->m_sellBook.find(temp->getPrice());
}
vector<Trade* > list = sIterator->second;
vector<Trade* >new_list ;
for (int x=0; x<list.size();++x)
{
if( list.at(x)->getOrderId() != pTrade->getOrderId() )
new_list.push_back(list.at(x));
else
{
delete list.at(x);
list.at(x) = NULL;
}
}
this->m_indexBook.erase(pTrade->getOrderId());
return true;
}
}
return false;
}
void BookManager::matchOrders(vector<Trade *> &list,Trade* pTrade )
{
Trade *temp = NULL;
int last_pos = 0;
for( int i=0;i< list.size() ; ++i)
{
temp = list.at(i);
if(temp&&temp->getStatus())
{
if(pTrade->getQuantity() > temp->getQuantity())
{
cout<<"TRADE "<<temp->getOrderId()<<" "<<temp->getPrice()<<" "<<temp->getQuantity()<<" ";
cout<<""<<pTrade->getOrderId()<<" "<<pTrade->getPrice()<<" "<<temp->getQuantity()<<" "<<endl;
temp->setStatus(false);
pTrade->setQuantity(pTrade->getQuantity() - temp->getQuantity());
temp->setQuantity(0);
this->m_indexBook.erase(temp->getOrderId());
last_pos = i;
}
else if(pTrade->getQuantity() == temp->getQuantity())
{
cout<<"TRADE "<<temp->getOrderId()<<" "<<temp->getPrice()<<" "<<temp->getQuantity()<<" ";
cout<<""<<pTrade->getOrderId()<<" "<<pTrade->getPrice()<<" "<<pTrade->getQuantity()<<" "<<endl;
temp->setStatus(false);
pTrade->setStatus(false);
pTrade->setQuantity(0);
this->m_indexBook.erase(temp->getOrderId());
last_pos = i;
break; //operation over
}
else
{
cout<<"TRADE "<<temp->getOrderId()<<" "<<temp->getPrice()<<" "<<temp->getQuantity()<<" ";
cout<<""<<pTrade->getOrderId()<<" "<<pTrade->getPrice()<<" "<<pTrade->getQuantity()<<" "<<endl;
temp->setQuantity(temp->getQuantity() - pTrade->getQuantity());
pTrade->setStatus(false);
pTrade->setQuantity(0);
last_pos = i;
break; //operation over
}
}
}
{
Trade * tTrade = NULL;
vector<Trade *> new_list = std::vector<Trade *> ();
for( int x= 0 ; x < list.size() ; ++x)
{
tTrade = list.at(x);
if(tTrade && tTrade->getStatus())
{
new_list.push_back(tTrade);
}
else
{
delete tTrade;
tTrade = NULL;
}
}
//list.clear();
if(last_pos != list.size() -1 )
list = new_list;
}
}
bool BookManager::modifyOrder(Trade* pTrade)
{
if(pTrade)
{
Trade * tTrade = NULL;
map<string,Trade * >::iterator it = this->m_indexBook.find(pTrade->getOrderId());
if(it != this->m_indexBook.end())
{
tTrade = it->second;
this->cancelOrder(tTrade);
if(pTrade->getAction() == MODIFY_BUY)
{
this->addBuyOrder(pTrade);
}
else
{
this->addSellOrder(pTrade);
}
}
}
return true;
}
void BookManager::printOrders()
{
cout<<"SELL:"<<endl;
map<uint64_t, vector<Trade *> >::reverse_iterator sIterator = this->m_sellBook.rbegin();
while(sIterator != this->m_sellBook.rend() )
{
vector<Trade*> list = sIterator->second;
int count =0;
for(int i =0;i< list.size(); ++i )
{
if(list.at(i)->getStatus())
count = count + list.at(i)->getQuantity();
}
if(count> 0)
cout<<sIterator->first<<" "<<count<<endl;
++sIterator;
}
cout<<"BUY:"<<endl;
map<uint64_t, vector<Trade *> >::reverse_iterator sIterator2 = this->m_buyBook.rbegin();
while(sIterator2 != this->m_buyBook.rend() )
{
vector<Trade*> list = sIterator2->second;
int count =0;
for(int i =0;i< list.size(); ++i )
{
if(list.at(i)->getStatus())
count = count + list.at(i)->getQuantity();
}
if(count> 0)
cout<<sIterator2->first<<" "<<count<<endl;
++sIterator2;
}
}
bool BookManager::executeTrade()
{
if(this->m_activeTrade.size())
{
Trade *pTrade = this->m_activeTrade.front();
this->m_activeTrade.pop();
if(pTrade)
{
switch(pTrade->getAction())
{
case BUY : this->addBuyOrder(pTrade);
break;
case SELL: this->addSellOrder(pTrade);
break;
case MODIFY_BUY:
case MODIFY_SELL:
this->modifyOrder(pTrade);
break;
case CANCEL:
this->cancelOrder(pTrade);
break;
case PRINT: this->printOrders();
break;
default :
cout<<"Default case";
break;
}
}
}
return true;
}
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
BookManager *manager = new BookManager();
int count =0;
string dataLine = std::string();
Trade *pTrade = NULL;
//cout<<"Starting ";
while(getline(cin,dataLine))
{
//cin>>dataLine;
//cout<<"Data "<<dataLine<<endl;
if(pTrade->readInput(dataLine,pTrade) == true)
{
manager->addTrade(pTrade);
manager->executeTrade();
}
else
{
cout<<"Failed ";
}
};
return 0;
}
| [
"skur0010@student.monash.edu"
] | skur0010@student.monash.edu |
89c50926e85905e16863db5661d7d1813f95b84d | 1bf8b46afad5402fe6fa74293b464e1ca5ee5fd7 | /Demo/Shenmue3SDK/SDK/BP_MiniMap2DCaptureTaget_functions.cpp | 014ff1fbdef5fdb62a38e968cedc84d26e11ef14 | [] | no_license | LemonHaze420/ShenmueIIISDK | a4857eebefc7e66dba9f667efa43301c5efcdb62 | 47a433b5e94f171bbf5256e3ff4471dcec2c7d7e | refs/heads/master | 2021-06-30T17:33:06.034662 | 2021-01-19T20:33:33 | 2021-01-19T20:33:33 | 214,824,713 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,876 | cpp |
#include "../SDK.h"
// Name: S3Demo, Version: 0.90.0
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
// Function BP_MiniMap2DCaptureTaget.BP_MiniMap2DCaptureTaget_C.GetCaptureSize(2DVector)
// (Public, HasOutParms, HasDefaults, BlueprintCallable, BlueprintEvent, BlueprintPure)
// Parameters:
// struct FVector2D Center (Parm, OutParm, IsPlainOldData)
// struct FVector2D half_size (Parm, OutParm, IsPlainOldData)
void ABP_MiniMap2DCaptureTaget_C::GetCaptureSize_2DVector_(struct FVector2D* Center, struct FVector2D* half_size)
{
static auto fn = UObject::FindObject<UFunction>("Function BP_MiniMap2DCaptureTaget.BP_MiniMap2DCaptureTaget_C.GetCaptureSize(2DVector)");
ABP_MiniMap2DCaptureTaget_C_GetCaptureSize_2DVector__Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
if (Center != nullptr)
*Center = params.Center;
if (half_size != nullptr)
*half_size = params.half_size;
}
// Function BP_MiniMap2DCaptureTaget.BP_MiniMap2DCaptureTaget_C.GetCaptureSize
// (Public, HasOutParms, HasDefaults, BlueprintCallable, BlueprintEvent, BlueprintPure)
// Parameters:
// float CenterX (Parm, OutParm, ZeroConstructor, IsPlainOldData)
// float CenterY (Parm, OutParm, ZeroConstructor, IsPlainOldData)
// float HalfSize (Parm, OutParm, ZeroConstructor, IsPlainOldData)
void ABP_MiniMap2DCaptureTaget_C::GetCaptureSize(float* CenterX, float* CenterY, float* HalfSize)
{
static auto fn = UObject::FindObject<UFunction>("Function BP_MiniMap2DCaptureTaget.BP_MiniMap2DCaptureTaget_C.GetCaptureSize");
ABP_MiniMap2DCaptureTaget_C_GetCaptureSize_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
if (CenterX != nullptr)
*CenterX = params.CenterX;
if (CenterY != nullptr)
*CenterY = params.CenterY;
if (HalfSize != nullptr)
*HalfSize = params.HalfSize;
}
// Function BP_MiniMap2DCaptureTaget.BP_MiniMap2DCaptureTaget_C.UserConstructionScript
// (Event, Public, HasDefaults, BlueprintCallable, BlueprintEvent)
void ABP_MiniMap2DCaptureTaget_C::UserConstructionScript()
{
static auto fn = UObject::FindObject<UFunction>("Function BP_MiniMap2DCaptureTaget.BP_MiniMap2DCaptureTaget_C.UserConstructionScript");
ABP_MiniMap2DCaptureTaget_C_UserConstructionScript_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"35783139+LemonHaze420@users.noreply.github.com"
] | 35783139+LemonHaze420@users.noreply.github.com |
01325d0bdfac476731863d28fdd59f55b46298b7 | acc55ea7338403b57f3e980f9f5938cd866f7e0c | /9_Patrones/ejemplos/EjemploCadenaResponsabilidad/peticion.cpp | ff4f14a357cdcf489b11c2a9ed56008f5c986cf6 | [] | no_license | Antecarlo/CursoC | 4c523ab5b9c359c41013b0e9fa92f80b5d6177c6 | 60efb931d964d82a9763bcaf6ec2d527095428de | refs/heads/master | 2020-08-28T15:18:55.735624 | 2019-10-26T16:24:21 | 2019-10-26T16:24:21 | 217,732,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | cpp | #include "peticion.h"
Peticion::Peticion(TIPO tipo, string contenido)
{
this->tipo = tipo;
this->contenido = contenido;
}
string Peticion::toString()
{
string t="";
switch(tipo)
{
case SMS:
t="SMS";
break;
case EMAIL:
t="email";
break;
case WHATSAPP:
t="whatsapp";
break;
}
return t + " => " + contenido;
}
Peticion::~Peticion()
{
}
| [
"c.antequerasanchez@gmail.com"
] | c.antequerasanchez@gmail.com |
eb36ca561a9a7fd969ae7293f8d1dbb7ce05dbb1 | a75d9471acfc74a84455ab0809b062e42becb8c7 | /ch04/SpeedStateBlackboard/Throttle.h | 577c42ba8cebeae213564856be636e387d82e880 | [
"MIT"
] | permissive | ajunlonglive/Hands-On-Design-Patterns-with-Qt-5 | 035e57e0d06f1cc6e831d614cb4ac4753001ee5b | 00f3f7de9ce75f86e056bf9be942d169bb96d7ff | refs/heads/master | 2023-08-14T14:18:48.868284 | 2021-09-21T23:22:00 | 2021-09-21T23:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 509 | h | #ifndef THROTTLE_H
#define THROTTLE_H
#include <QSlider>
#include "KnowledgeSource.h"
class Throttle : public QSlider, public KnowledgeSource
{
Q_OBJECT
public:
explicit Throttle(QWidget *parent = nullptr);
explicit Throttle(Qt::Orientation orientation, QWidget *parent = nullptr);
// void setBlackboard(Blackboard *a_blackboard) final;
// void act(Topic a_topic) final;
protected:
// void postUpdate(Topic a_topic) final;
private:
double m_value;
};
#endif // THROTTLE_H
| [
"jwernerny@gmail.com"
] | jwernerny@gmail.com |
a9b860e25de3214498d27040d394f2b6c18644e0 | 146b453c1f3219b13d28db75ac22e24217d38222 | /Assignment one/code2.cpp | cd4b4915496ad450a32a1618291c0771f66e8e18 | [] | no_license | jackbundi/OOP-II | 34edcb1c74c2d8ed6f2c098b950d36f6e96dc4e2 | 95244536b677c0c83ceebc7d64f4a6910c61fd36 | refs/heads/master | 2021-01-17T12:42:34.436358 | 2016-06-15T09:10:42 | 2016-06-15T09:10:42 | 56,591,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 172 | cpp | #include <iostream>
using namespace std;
int main()
{
int N;
cin >> N;
for(N=0; N<5;N++)
{
cout << "Hello, World\n";
}
return 0;
} | [
"jack.bundi@strathmore.edu"
] | jack.bundi@strathmore.edu |
a9b5495019b6d5a3821eb83c1935d38569004979 | 04c6d6a2534fa2e63aba918f2c038f45915ff828 | /模拟/1528. Shuffle String.cpp | a5bf4df90cedfa18a09e3dd559ecb4cc74d82f8f | [] | no_license | ttzztztz/leetcodeAlgorithms | 7fdc15267ba9e1304f7c817ea9d3f1bd881b004b | d2ee1c8fecb8fc07e3c7d67dc20b964a606e065c | refs/heads/master | 2023-08-19T10:50:40.340415 | 2023-08-02T03:00:38 | 2023-08-02T03:00:38 | 206,009,736 | 17 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | class Solution {
public:
string restoreString(string s, vector<int>& indices) {
const int N = indices.size();
string answer(N, 'a');
for (int i = 0; i < N; i++) {
answer[indices[i]] = s[i];
}
return answer;
}
};
| [
"ttzztztz@outlook.com"
] | ttzztztz@outlook.com |
aa5cb4e2b0fa2cf75c64afc8d5c6f333fb12dd46 | 110f1f9d104947e18167d08ffca685fb01ee22ad | /MCSim.h | c2f6a71e29b7134cb39212941e16fd28df4257f4 | [] | no_license | Sussex-Invisibles/LaserballMaskGenerator | ea3828815399d5c3d37f2e435f235d1cb5ebc1dc | 77d8aea110fb290d8022c72c1b8cd2ad750d1f93 | refs/heads/master | 2021-08-23T16:47:38.559928 | 2017-12-05T19:02:20 | 2017-12-05T19:02:20 | 113,221,286 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | h | #include "Vector.h"
#include <random>
class MCSim{
public:
//Mersenne Twister random number generator
std::mt19937_64 g;
std::uniform_real_distribution<double> dist;
MCSim();
~MCSim();
//Random number between 0 and 1
double randomDouble();
Vector randomVector(double mag);
Vector randomDirectionVector(Vector pos);
double * runMCOldNeck(int numberOfEvents);
double * runMCNewNeck(int numberOfEvents);
};
| [
"ms711@sussex.ac.uk"
] | ms711@sussex.ac.uk |
cb79887ead929e5d693408d22a08d675bf45a726 | ac2f2177fc4709f3c94d66e29b5e140e62dcce80 | /applictaie/system.hpp | 40d6600e5d204b3c457d99d5dbe69ab77059ea7b | [] | no_license | leojenns/touchless-safe- | 53f11f8b4cbe6e001731f52390e9049b9b99d0db | d57f82b9cacf043775a140aa92cbea667874c705 | refs/heads/master | 2021-01-17T20:08:45.278640 | 2016-06-20T09:53:53 | 2016-06-20T09:53:53 | 59,851,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,348 | hpp | /****************************************************************************************************************************
* auther :: Leo Jenneskens
* File :: system.hpp
* Date:: 18 - june - 2016
* copyright: Leo Jenneskens 2016
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*******************************************************************************************************************************/
#ifndef SYSTEM_HPP
#define SYSTEM_HPP
#include "profile.hpp"
#include "hwlib.hpp"
#include "touchless_safe.hpp"
/// system class
//
/// class that act as an application that runs with use of this library
class system{
protected:
///three profiles
//
profile A,A1,A2;
/// admin
admin AD;
/// reference to keyboard
keypad & k;
///reference to lock
lock & l;
public:
/// default constructor
//
/// this constructor gets an analog pin that is used for analog to digital conversion.
/// second it gets an reference to keypad that is installed .
/// third it gets an reference to lock that is installed
system(hwlib::target::pin_adc & adc, keypad & k, lock & l);
/// start function
//
/// this function starts the system and contains an basic menu
/// where the user can choise an profile or admin
/// also it includes the pir function from the lock
/// that detects movement and closes the lockwhen there is detection.
void start();
};
#endif | [
"leo.jenns.s2@gmail.com"
] | leo.jenns.s2@gmail.com |
84fa7959a591bb1000a6e6510f415b9e8cda2e3e | 016c3156a8b8f8f8c9fe0b2e37d9dc5765ed7823 | /video/src/main/cpp/media/decoder/i_decoder.h | be294692a6498a095c2da51e833241fd6a77c278 | [] | no_license | LuckyXiaoTang/AndroidTrainingRecorder | b1b54f1c2a5fa4083837991d03fe0772aac0f727 | 364b4df19b2d69577c10f59f294524eeaf773f6f | refs/heads/master | 2021-08-10T11:58:17.568353 | 2020-08-27T05:57:07 | 2020-08-27T05:57:07 | 215,716,965 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | h | //
// Created by Terry on 2020/4/3.
//
#ifndef ANDROIDTRAININGRECORDER_I_DECODER_H
#define ANDROIDTRAININGRECORDER_I_DECODER_H
class IDecoder {
public:
virtual void goOn() = 0;
virtual void pause() = 0;
virtual void stop() = 0;
virtual void isRunning() = 0;
virtual void getDurition() = 0;
virtual void getCurrentPos() = 0;
};
#endif //ANDROIDTRAININGRECORDER_I_DECODER_H
| [
"497847377@qq.com"
] | 497847377@qq.com |
4a9590e2eedddc2719e616301b0ac3bd153c4db0 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/tgui/include/TGDataman.h | 081b9a879c4c1765aaa8186871c7b074d6588843 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | C++ | false | false | 2,374 | h | //-----------------------------------------------------------------------------
// This source file is part of TGUI (Tiny GUI)
//
// Copyright (c) 2006-2007 Tubras Software, Ltd
// Also see acknowledgements in Readme.html
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to
// do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//-----------------------------------------------------------------------------
#ifndef __TGDATAMAN_H__
#define __TGDATAMAN_H__
namespace TGUI
{
template <class TGData> class _TGUIExport TGDataManager
{
TGData m_data;
TGData* m_dataSource;
TGControl* m_control;
public:
TGDataManager()
{
m_control = NULL;
m_dataSource = &m_data;
}
~TGDataManager()
{
}
void setControl(TGControl *control)
{
m_control = control;
}
void setDataSource(TGData *place)
{
if (place)
m_dataSource = (TGData*)place;
else
m_dataSource = &m_data;
}
void set(TGData newData)
{
*m_dataSource = newData;
if(m_control)
m_control->fireEvent(TGEvent::Modified,TGEventArgs(m_control));
}
TGData get()
{
return *m_dataSource;
}
};
}
#endif
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
7ba89c5dcc998abf6cf868087dcd31664234e0a9 | c1ff870879152fba2b54eddfb7591ec322eb3061 | /core/sceneManager/network/3rdParty/raknet/Samples/Tests/PingTestsTest.h | be1017b296de3633d0a1019f31da5539b910b5fa | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | MTASZTAKI/ApertusVR | 1a9809fb7af81c3cd7fb732ed481ebe4ce66fefa | 424ec5515ae08780542f33cc4841a8f9a96337b3 | refs/heads/0.9 | 2022-12-11T20:03:42.926813 | 2019-10-11T09:29:45 | 2019-10-11T09:29:45 | 73,708,854 | 188 | 55 | MIT | 2022-12-11T08:53:21 | 2016-11-14T13:48:00 | C++ | UTF-8 | C++ | false | false | 1,147 | h | /*
* Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma once
#include "TestInterface.h"
#include "RakString.h"
#include "RakPeerInterface.h"
#include "MessageIdentifiers.h"
#include "BitStream.h"
#include "RakPeer.h"
#include "RakSleep.h"
#include "RakNetTime.h"
#include "GetTime.h"
#include "DebugTools.h"
#include "TestHelpers.h"
#include "CommonFunctions.h"
#include "RakTimer.h"
using namespace RakNet;
class PingTestsTest : public TestInterface
{
public:
PingTestsTest(void);
~PingTestsTest(void);
int RunTest(DataStructures::List<RakString> params,bool isVerbose,bool noPauses);//should return 0 if no error, or the error number
RakString GetTestName();
RakString ErrorCodeToString(int errorCode);
void DestroyPeers();
int TestAverageValue(int averagePing,int line,bool noPauses,bool isVerbose);
private:
DataStructures::List <RakPeerInterface *> destroyList;
};
| [
"peter.kovacs@sztaki.mta.hu"
] | peter.kovacs@sztaki.mta.hu |
e1f55c37806467fe4921dc6ec5f65e241079fa23 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/admin/burnslib/inc/validatedomainname.hpp | 845961558d008cfb74fae63bc90c19c17c5bdf94 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 2,994 | hpp | // Copyright (C) 2001 Microsoft Corporation
//
// functions to validate a new domain name
// The functions are split into validation routines
// and UI retrieving error messages based on the
// error codes returned from the validation routines.
//
// 3 December 2001 JeffJon
#ifndef VALIDATEDOMAINNAME_HPP_INCLUDED
#define VALIDATEDOMAINNAME_HPP_INCLUDED
// Error codes for the ValidateDomainDnsNameSyntax routine
typedef enum
{
DNS_NAME_VALID,
DNS_NAME_RESERVED,
DNS_NAME_NON_RFC,
DNS_NAME_NON_RFC_OEM_UNMAPPABLE,
DNS_NAME_NON_RFC_WITH_UNDERSCORE,
DNS_NAME_TOO_LONG,
DNS_NAME_BAD_SYNTAX
} DNSNameSyntaxError;
// Does a syntax validation of the DNS name of the domain
// returning an error code from the DNSNameSyntaxError enum
DNSNameSyntaxError
ValidateDomainDnsNameSyntax(
const String& domainName);
bool
ValidateDomainDnsNameSyntax(
HWND parentDialog,
int editResID,
const Popup& popup);
bool
ValidateDomainDnsNameSyntax(
HWND parentDialog,
int editResID,
const Popup& popup,
bool warnOnNonRFC,
bool* isNonRFC = 0);
bool
ValidateDomainDnsNameSyntax(
HWND parentDialog,
const String& domainName,
int editResID,
const Popup& popup,
bool warnOnNonRFC,
bool* isNonRFC = 0);
typedef enum
{
FOREST_DOMAIN_NAME_EXISTS,
FOREST_DOMAIN_NAME_EMPTY,
FOREST_DOMAIN_NAME_DUPLICATE,
FOREST_NETWORK_UNREACHABLE,
FOREST_DOMAIN_NAME_DOES_NOT_EXIST
} ForestNameExistsError;
// Checks to see if the name already exists as a domain
ForestNameExistsError
ForestValidateDomainDoesNotExist(
const String& name);
// Checks to see if the name already exists as a domain by
// retrieving the name from the specified UI control and then
// calling the overloaded ForestValidateDomainDoesNotExist
bool
ForestValidateDomainDoesNotExist(
HWND parentDialog,
int editResID,
const Popup& popup);
// If the new domain name is a single DNS label, then ask the user to confirm
// that name. If the user rejects the name, set focus to the domain name edit
// box, return false. Otherwise, return true.
//
// parentDialog - HWND of the dialog with the edit box control.
//
// editResID - resource ID of the domain name edit box containing the name to
// be confirmed.
//
// 309670
bool
ConfirmNetbiosLookingNameIsReallyDnsName(
HWND parentDialog,
int editResID,
const Popup& popup);
typedef enum
{
NETBIOS_NAME_VALID,
NETBIOS_NAME_DOT,
NETBIOS_NAME_EMPTY,
NETBIOS_NAME_NUMERIC,
NETBIOS_NAME_BAD,
NETBIOS_NAME_TOO_LONG,
NETBIOS_NAME_INVALID,
NETBIOS_NAME_DUPLICATE,
NETBIOS_NETWORK_UNREACHABLE
} NetbiosNameError;
NetbiosNameError
ValidateDomainNetbiosName(
const String& name);
bool
ValidateDomainNetbiosName(
HWND dialog,
int editResID,
const Popup& popup);
#endif // VALIDATEDOMAINNAME_HPP_INCLUDED
| [
"seta7D5@protonmail.com"
] | seta7D5@protonmail.com |
7e1d54e5e1c082e6f994214419271be89a55bedf | fe532fd1a712f0b079731d033b4ac4edb84336f4 | /to_prophet/116_A110461397513341863_wa.cpp/src/prog.cpp | fbf33ccae286ebe911ff87f9ce17416482b7183e | [] | no_license | antongulikov/prophet_data | 857e78a60127b4a95d48903c0729f1691a4db613 | 99ab7b126c094c107cc6041d0351cd89c4fb9616 | refs/heads/master | 2021-01-11T11:52:05.554525 | 2016-12-17T23:35:28 | 2016-12-17T23:35:28 | 76,749,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | #include <iostream>
using namespace std;
int main()
{
int n , a , b , x = 0 , z = 0 , y=0;
cin>>n;
for (int i = 0 ; i < n ; i++){
cin >> a >> b ;
y += b ;
x = y - a;
z = max (z , x);
}
cout<<z<<endl;
return 0 ;
} | [
"antonhulikau@Antons-MacBook-Pro.local"
] | antonhulikau@Antons-MacBook-Pro.local |
3b236bf808032e90a554464c89a589652c5dec83 | 79a454876d4d226fd9b397ce9d1f535dd24eb54c | /SynthLevelControlTutorial/Source/SynthLevelControlTutorial_02.h | 201a2a1409ada7f4985918f8165d271f4ea74fc9 | [] | no_license | cbodonnell/JUCE-Tuts | 58dd99bcfffa3906b79f63f492e908eac7ffc797 | ffeabfa246bbf5a9d1310ab930a296d3cbdcbf01 | refs/heads/master | 2022-04-05T09:22:05.784614 | 2020-02-17T21:18:20 | 2020-02-17T21:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,317 | h | /*
==============================================================================
This file is part of the JUCE tutorials.
Copyright (c) 2017 - ROLI Ltd.
The code included in this file is provided under the terms of the ISC license
http://www.isc.org/downloads/software-support-policy/isc-license. 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" WITHOUT ANY WARRANTY, AND ALL WARRANTIES,
WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR
PURPOSE, ARE DISCLAIMED.
==============================================================================
*/
/*******************************************************************************
The block below describes the properties of this PIP. A PIP is a short snippet
of code that can be read by the Projucer and used to generate a JUCE project.
BEGIN_JUCE_PIP_METADATA
name: SynthLevelControlTutorial
version: 2.0.0
vendor: JUCE
website: http://juce.com
description: Synthesiser with level control.
dependencies: juce_audio_basics, juce_audio_devices, juce_audio_formats,
juce_audio_processors, juce_audio_utils, juce_core,
juce_data_structures, juce_events, juce_graphics,
juce_gui_basics, juce_gui_extra
exporters: xcode_mac, vs2017, linux_make
type: Component
mainClass: MainContentComponent
useLocalCopy: 1
END_JUCE_PIP_METADATA
*******************************************************************************/
#pragma once
//==============================================================================
class MainContentComponent : public AudioAppComponent
{
public:
MainContentComponent()
{
levelSlider.setRange (0.0, 0.25);
levelSlider.setTextBoxStyle (Slider::TextBoxRight, false, 100, 20);
levelLabel.setText ("Noise Level", dontSendNotification);
addAndMakeVisible (levelSlider);
addAndMakeVisible (levelLabel);
setSize (600, 100);
setAudioChannels (0, 2);
}
~MainContentComponent() override
{
shutdownAudio();
}
void prepareToPlay (int, double) override {}
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill) override
{
auto level = (float) levelSlider.getValue();
auto levelScale = level * 2.0f;
for (auto channel = 0; channel < bufferToFill.buffer->getNumChannels(); ++channel)
{
auto* buffer = bufferToFill.buffer->getWritePointer (channel, bufferToFill.startSample);
for (auto sample = 0; sample < bufferToFill.numSamples; ++sample)
buffer[sample] = random.nextFloat() * levelScale - level;
}
}
void releaseResources() override {}
void resized() override
{
levelLabel .setBounds (10, 10, 90, 20);
levelSlider.setBounds (100, 10, getWidth() - 110, 20);
}
private:
Random random;
Slider levelSlider;
Label levelLabel;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
};
| [
"cbodonnell@comcast.net"
] | cbodonnell@comcast.net |
db1cd588f59eee6b80611d8400175c813d765cc7 | 6e22fd0d57240af0f660f600d51177403192b122 | /src/assignment7_codegeneration/arithmetic_expressions.h | 347cb59b5d9b0031c5f73afbcccba2101de7641f | [] | no_license | mschrimpf/dbimpl | 8cad618d8bdde9f11d765f923890a318624b1784 | fa55a43526e65e6ef230c7258889e9ad4523b680 | refs/heads/master | 2021-01-21T07:47:45.591275 | 2015-07-14T10:40:10 | 2015-07-14T10:40:10 | 34,076,696 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | h | //
// Created by daniel on 6/15/15.
//
#ifndef PROJECT_ARITHMETIC_EXPRESSIONS_H
#define PROJECT_ARITHMETIC_EXPRESSIONS_H
#include <sstream>
#include "FunctionContext.h"
#include "Node.h"
using namespace llvm;
Function *CreateArithmeticFunction(FunctionContext &functionContext, Node &node);
int64_t calculate(std::vector<uint64_t> arguments, Node node);
#endif //PROJECT_ARITHMETIC_EXPRESSIONS_H
| [
"daniel.langerenken@gmail.com"
] | daniel.langerenken@gmail.com |
726829d2cd37b411cfc21c04d513305e7c2cc05d | f0257949efd690af7150398079312085abd1b6e7 | /Homework/PA1.cpp | 2fafdd69a5e3cd9bf3a918675fa867325a416309 | [] | no_license | MichaelBalsam/Cplusplus-HW | 247bded78c46f56e53d9ff3c125f5d78c136e189 | 155a52e1d7c46869f1e64021316da3a7b446c9de | refs/heads/main | 2023-07-11T09:06:32.265485 | 2021-08-19T15:32:31 | 2021-08-19T15:32:31 | 397,989,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,914 | cpp | //Michael Balsam
//Class CP2200
//Assignment PA1
#include <iostream>
#include <fstream>
#include <string>
#include<iomanip>
#include<cstdlib>
#include<ctime>
using namespace std;
int main()
{
char again = 'Y';
while(again == 'y' || again == 'Y')
{
int option;
cout<<"Enter 1 leads to the text file menu "<<endl;
cout<<"Enter 2 leads to sorting methods "<<endl;
cin>>option;
if(option == 1)
{
cout<<"Enter 3 for best case"<<endl;
cout<<"Enter 4 for worst case"<<endl;
cout<<"Enter 5 for average case"<<endl;
cin>>option;
}
if(option == 3)
{
ofstream myfile;
myfile.open ("best.txt");
for(int x = 1; x <= 10; x++) myfile << x << endl;
myfile.close();
{
string line;
ifstream myfile ("best.txt");
if (myfile.is_open())
{
while ( getline (myfile,line) )
{
cout << line << '\n';
}
myfile.close();
}
}
}
if(option == 4)
{
ofstream myfile;
myfile.open ("worst.txt");
for(int x = 10; x >= 1; x--) myfile << x << endl;
myfile.close();
{
string line;
ifstream myfile ("worst.txt");
if (myfile.is_open())
{
while ( getline (myfile,line) )
{
cout << line << '\n';
}
myfile.close();
}
}
}
if(option == 5)
{
int Value;
double Average, Sum = 0;
int ArraySize = 5;
int Numbers[ArraySize];
{
ofstream myfile;
myfile.open ("Average.txt");
for(int i = 0; i < ArraySize; i++)
{
cout << "Enter any 5 integers: ";
cin >> Numbers[i];
}
for(Value = 0; Value < ArraySize; Value++)
Sum += Numbers[Value];
Average = Sum / ArraySize;
cout<<"The average is: "<< Average;
}
string line;
ifstream myfile ("Average.txt");
if (myfile.is_open())
{
while ( getline (myfile,line) )
{
cout << line << '\n';
}
myfile.close();
}
}
if(option == 2)
{
cout<<"Enter 6 for plain bubble sort"<<endl;
cout<<"Enter 7 for Efficient bubble sort"<<endl;
cin>>option;
if(option == 6)
{
int temp = 0;
int arraysize = 5;
int numbers [arraysize];
for(int i = 1; i <= arraysize; i++)
{
cout<< "Enter numbers into the array" << i+0 << ": ";
cin >> numbers[i];
cout<< " ";
}
for(int pass = 1; pass <= arraysize; pass++)
for (int index = 0; index <= arraysize-1; index++)
if(numbers[index] > numbers[index+1])
{
temp = numbers[index];
numbers[index] = numbers[index+1];
numbers[index+1] = temp;
}
cout<<"\nsorted numbers: ";
for(int i= 1; i <= arraysize; i++)
cout<<numbers[i] << " ";
}
if(option == 7)
{
clock_t start, stop;
double duration;
start = clock() ;
int temp = 0;
int arraysize = 5;
int numbers [arraysize];
for(int i = 1; i <= arraysize; i++)
{
cout<< "Enter numbers into the array" << i+0 << ": ";
cin >> numbers[i];
cout<< " ";
}
for(int pass = 1; pass <= arraysize; pass++)
for (int index = 0; index <= arraysize-1; index++)
if(numbers[index] > numbers[index+1])
{
temp = numbers[index];
numbers[index] = numbers[index+1];
numbers[index+1] = temp;
}
cout<<"\nsorted numbers: ";
for(int i= 1; i <= arraysize; i++)
cout<<numbers[i] << " ";
stop = clock();
duration = ((double)(stop - start))/CLOCKS_PER_SEC;
cout<<"\nThat took "<<setprecision(3)<<fixed<<duration<<" seconds!\n";
}
}
cout<<"\nEnter y or Y to return to main menu ";
cin>>again;
}
cout<<"The end";
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
9464947dc3465fa48840288a5d3b4f0886f9e462 | ac94c63016dc3711b7a2df5068c40b10c267147b | /DFA2Token.cpp | cdee12f115bd34936700654dff2e38c6ee296d48 | [] | no_license | huamenggg/Compiler2 | 7b42b75e2599b1fefef4fd9c6e3e3eb98ff6bed6 | c8423734579ff12ebb5b74ec74ddb84ae217de4f | refs/heads/master | 2020-11-28T09:30:39.825026 | 2019-12-29T17:24:52 | 2019-12-29T17:24:52 | 229,770,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,933 | cpp | #include"DFA2Token.h"
DFA::DFA() : mDFA(17){
//initial state
mDFA[0].insert(pair<string, int>("_", 1));
mDFA[0].insert(pair<string, int>("L", 1));
mDFA[0].insert(pair<string, int>("D", 2));
mDFA[0].insert(pair<string, int>(">", 3));
mDFA[0].insert(pair<string, int>("<", 3));
mDFA[0].insert(pair<string, int>("!", 3));
mDFA[0].insert(pair<string, int>("+", 5));
mDFA[0].insert(pair<string, int>("-", 6));
mDFA[0].insert(pair<string, int>("*", 7));
mDFA[0].insert(pair<string, int>("/", 8));
mDFA[0].insert(pair<string, int>("(", 9));
mDFA[0].insert(pair<string, int>(")", 10));
mDFA[0].insert(pair<string, int>("}", 11));
mDFA[0].insert(pair<string, int>("{", 12));
mDFA[0].insert(pair<string, int>(";", 13));
mDFA[0].insert(pair<string, int>(",", 14));
mDFA[0].insert(pair<string, int>("=", 15));
mDFA[1].insert(pair<string, int>("_", 1));
mDFA[1].insert(pair<string, int>("L", 1));
mDFA[1].insert(pair<string, int>("D", 1));
mDFA[2].insert(pair<string, int>("D", 2));
mDFA[3].insert(pair<string, int>("=", 4));
mDFA[15].insert(pair<string, int>("=", 16));
}
int DFA::NextState(int curState, char ch) {
int nextState = -1;
string curStr = Ch2Type(ch);
map<string, int>::iterator iter;
iter = mDFA[curState].begin();
while (iter != mDFA[curState].end()) {
if (iter->first == curStr) {
nextState = iter->second;
break;
}
iter++;
}
return nextState;
}
string DFA::Ch2Type(char ch) {
if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) return "L";
if (ch >= '0' && ch <= '9') return "D";
return string(1, ch);
}
void DFA::OutputTokens(string line, vector<InputNode*> &inputSequence, CFG& cfg) {
string curType;
string nextType;
int begin, end;
for (begin = 0, end = 1; end < line.length();) {
//current char is ' ', ignore
if (line[begin] == ' ' || line[begin] == '\t') {
begin++; end++; continue;
}
// if is relop
if (line[begin] == '<' || line[begin] == '>'
|| line[begin] == '!' || line[begin] == '=') {
if (line[end] == '=') {
InputNode *newNode = new InputNode;
newNode->index = cfg.FindNode(Str2Token(line.substr(begin, end - begin + 1)));
newNode->content = line.substr(begin, end - begin + 1);
inputSequence.push_back(newNode);
begin = end + 1;
end += 2;
continue;
}
}
//current char can't be part of ID or Number, output
curType = Ch2Type(line[begin]);
if (curType != "L" && curType != "D" && curType != "_") {
InputNode *newNode = new InputNode;
newNode->index = cfg.FindNode(Str2Token(line.substr(begin, 1)));
newNode->content = line.substr(begin, 1);
inputSequence.push_back(newNode);
begin++; end++; continue;
}
//end is ' ', output before string
if (line[end] == ' ' || line[end] == '\t') {
InputNode *newNode = new InputNode;
newNode->index = cfg.FindNode(Str2Token(line.substr(begin, end - begin)));
newNode->content = line.substr(begin, end - begin);
inputSequence.push_back(newNode);
begin = end + 1;
end += 2;
continue;
}
nextType = Ch2Type(line[end]);
if (nextType != "L" && nextType != "D" && nextType != "_") {
InputNode *newNode = new InputNode;
newNode->index = cfg.FindNode(Str2Token(line.substr(begin, end - begin)));
newNode->content = line.substr(begin, end - begin);
inputSequence.push_back(newNode);
newNode = new InputNode;
newNode->index = cfg.FindNode(Str2Token(line.substr(end, 1)));
newNode->content = line.substr(end, 1);
inputSequence.push_back(newNode);
begin = end + 1;
end += 2;
continue;
}
end++;
}
if (begin < line.length()) {
InputNode *newNode = new InputNode;
newNode->index = cfg.FindNode(Str2Token(line.substr(begin, end - begin)));
newNode->content = line.substr(begin, end - begin);
inputSequence.push_back(newNode);
}
}
string DFA::Str2Token(string str) {
int state = 0; // initial state
for (int i = 0; i < str.length(); i++) {
state = NextState(state, str[i]);
if (state == -1) break;
}
return StateToString(state, str);
}
string DFA::ExtractReservedWord(string str) {
switch (str.length())
{
case 2: if (str == "if") return "IF";
break;
case 3: if (str == "int") return "INT";
break;
case 4: if (str == "else") return "ELSE";
break;
case 5: if (str == "while") return "WHILE";
break;
case 6: if (str == "return") return "RETURN";
break;
default:
return "ID";
}
return "ID";
}
string DFA::StateToString(int state, string str) {
switch (state)
{
case -1: return "Error";
case 1: return ExtractReservedWord(str);
case 2: return "NUMBER";
case 3: return "RELOP";
case 4: return "RELOP";
case 5: return "PLUS";
case 6: return "MINUS";
case 7: return "STAR";
case 8: return "DIV";
case 9: return "LP";
case 10: return "RP";
case 11: return "LC";
case 12: return "RC";
case 13: return "SEMI";
case 14: return "COMMA";
case 15: return "ASSIGNOP";
case 16: return "RELOP";
default:
return "Error";
break;
}
} | [
"dreamanne15@gmail.com"
] | dreamanne15@gmail.com |
cc1b66151c6284ebfe1e20cfeb221e822e0cee95 | f20b987eea85303b70c732b56ce8a64b4f909e92 | /Chess/Chess.cpp | 80cb431491a4eff2e6ab2f0f0ec686f8dc1d5824 | [] | no_license | Wixiyo/truelyDD | 665ee7bbe3f79c70d44a8e1072776df9255771c5 | 4898c4c2c4359df9466e2e32db664242d555cbf2 | refs/heads/master | 2020-06-04T08:05:15.964323 | 2019-06-14T11:53:53 | 2019-06-14T11:53:53 | 191,937,752 | 1 | 0 | null | 2019-06-14T12:15:58 | 2019-06-14T12:15:57 | null | UTF-8 | C++ | false | false | 1,339 | cpp | #include "Chess.h"
#include <QDebug>
Stone::Stone()
{
}
Stone::~Stone()
{
}
QString Stone::name()
{
switch(this->_type)
{
case CHE:
return "车";
case MA:
return "马";
case PAO:
return "炮";
case BING:
return "兵";
case JIANG:
return "将";
case SHI:
return "士";
case XIANG:
return "相";
}
return "错误";
}
void Stone::init(int id)
{
struct {
int row, col;
Stone::TYPE type;
} pos[16] = {
{0, 0, Stone::CHE},
{0, 1, Stone::MA},
{0, 2, Stone::XIANG},
{0, 3, Stone::SHI},
{0, 4, Stone::JIANG},
{0, 5, Stone::SHI},
{0, 6, Stone::XIANG},
{0, 7, Stone::MA},
{0, 8, Stone::CHE},
{2, 1, Stone::PAO},
{2, 7, Stone::PAO},
{3, 0, Stone::BING},
{3, 2, Stone::BING},
{3, 4, Stone::BING},
{3, 6, Stone::BING},
{3, 8, Stone::BING},
};
if(id < 16)
{
this->_col = pos[id].col;
this->_row = pos[id].row;
this->_type = pos[id].type;
}
else
{
this->_col = 8-pos[id-16].col;
this->_row = 9-pos[id-16].row;
this->_type = pos[id-16].type;
}
this->_dead = false;
this->_red = id<16;
}
void Stone::rotate()
{
this->_col = 8-this->_col;
this->_row = 9-this->_row;
}
| [
"noreply@github.com"
] | noreply@github.com |
70648bc3760df8c3f145be0906b68d37d35ef421 | fdfeb3da025ece547aed387ad9c83b34a28b4662 | /Fundamental/CCore/inc/algon/BinarySearch.h | 9aaa307be2682491c85b954cc2055e95fbe728e9 | [
"FTL",
"BSL-1.0"
] | permissive | SergeyStrukov/CCore-3-xx | 815213a9536e9c0094548ad6db469e62ab2ad3f7 | 820507e78f8aa35ca05761e00e060c8f64c59af5 | refs/heads/master | 2021-06-04T05:29:50.384520 | 2020-07-04T20:20:29 | 2020-07-04T20:20:29 | 93,891,835 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,615 | h | /* BinarySearch.h */
//----------------------------------------------------------------------------------------
//
// Project: CCore 3.00
//
// Tag: Fundamental Mini
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// Copyright (c) 2015 Sergey Strukov. All rights reserved.
//
//----------------------------------------------------------------------------------------
#ifndef CCore_inc_algon_BinarySearch_h
#define CCore_inc_algon_BinarySearch_h
#include <CCore/inc/algon/BaseRangeAlgo.h>
namespace CCore {
namespace Algon {
/* classes */
template <RangeType R,class Algo=BaseRangeAlgo<R> > struct BinarySearchAlgo;
/* struct BinarySearchAlgo<R,Algo> */
template <RangeType R,class Algo>
struct BinarySearchAlgo : Algo
{
using LenType = typename Algo::LenType ;
using Algo::GetLen;
using Algo::Split;
using T = Meta::PtrObjType<R> ;
static LenType FindLen(R r,FuncType<bool,const T &> pred)
// pred(R) is 0,0,0,...,0,1,1,...
{
LenType len=GetLen(r);
if( !len ) return 0;
LenType off=0;
// 0,0,... [off,len) 1,1,...
while( len>1 )
{
LenType pref=len/2;
if( pred(r[off+pref]) )
{
len=pref;
}
else
{
pref++;
off+=pref;
len-=pref;
if( !len ) return off;
}
}
if( pred(r[off]) )
{
return off;
}
else
{
return off+1;
}
}
static R Find(R &r,FuncType<bool,const T &> pred)
// pred(R) is 0,0,0,...,0,1,1,...
{
return Split(r,FindLen(r,pred));
}
template <class S>
static R Find_less(R &r,const S &med) requires ( OpLessTypes<T,S> )
// R is decreasing
{
return Find(r, [&] (const T &obj) -> bool { return obj<med; } );
}
template <class S>
static R Find_less_or_equal(R &r,const S &med) requires ( OpLessEqualTypes<T,S> )
// R is decreasing
{
return Find(r, [&] (const T &obj) -> bool { return obj<=med; } );
}
template <class S>
static R Find_greater(R &r,const S &med) requires ( OpGreaterTypes<T,S> )
// R is increasing
{
return Find(r, [&] (const T &obj) -> bool { return obj>med; } );
}
template <class S>
static R Find_greater_or_equal(R &r,const S &med) requires ( OpGreaterEqualTypes<T,S> )
// R is increasing
{
return Find(r, [&] (const T &obj) -> bool { return obj>=med; } );
}
};
/* BinarySearch...() */
template <RangeType R,FuncType<bool,const Meta::PtrObjType<R> &> Pred>
R BinarySearch_if(R &r,Pred pred) { return BinarySearchAlgo<R>::Find(r,pred); }
template <RangeType R,class S>
R BinarySearch_less(R &r,const S &med) requires ( OpLessTypes<Meta::PtrObjType<R>,S> )
{
return BinarySearchAlgo<R>::Find_less(r,med);
}
template <RangeType R,class S>
R BinarySearch_less_or_equal(R &r,const S &med) requires ( OpLessEqualTypes<Meta::PtrObjType<R>,S> )
{
return BinarySearchAlgo<R>::Find_less_or_equal(r,med);
}
template <RangeType R,class S>
R BinarySearch_greater(R &r,const S &med) requires ( OpGreaterTypes<Meta::PtrObjType<R>,S> )
{
return BinarySearchAlgo<R>::Find_greater(r,med);
}
template <RangeType R,class S>
R BinarySearch_greater_or_equal(R &r,const S &med) requires ( OpGreaterEqualTypes<Meta::PtrObjType<R>,S> )
{
return BinarySearchAlgo<R>::Find_greater_or_equal(r,med);
}
} // namespace Algon
} // namespace CCore
#endif
| [
"sshimnick@hotmail.com"
] | sshimnick@hotmail.com |
49367e1ebf0b1b51e181775939accb717f3f415a | 44aaeec4faf6de28c851c2bc803cab63958cb2b7 | /assignment2/postive.cpp | 82c7d9ccbfca019a3d2f2d95bba43ebaf1936553 | [] | no_license | manii24/C- | 7f6c518f08ca820a5846d1d2a6785a9548ae7b77 | b64cc5bd36d886bcc9a6277b767a9e015ef8ba48 | refs/heads/main | 2023-05-03T03:06:19.035882 | 2020-12-06T12:34:54 | 2020-12-06T12:34:54 | 311,292,050 | 0 | 0 | null | 2021-05-26T05:57:58 | 2020-11-09T09:49:15 | C++ | UTF-8 | C++ | false | false | 580 | cpp | #include<iostream>
using namespace std;
class Check_postive
{
int num;
public:void Postive_number()
{
cout<<"enter the number";
cin>>num;
{
if (num>0)
{
cout<<"the number is positive";
}
else if (num==0)
{
cout<<"the number is zero";
}
else
{
cout<<"the number is negative";
}
}
}
};
int main()
{
Check_postive d1;
d1.Postive_number();
}
| [
"noreply@github.com"
] | noreply@github.com |
4a8adb10d494b77a5f56c02dcb588332c6f198d3 | bae76888e633874c1278a43bb5773aae8201c44d | /CPSeis/wrappers/src/org/cpseis/wrappers/CpseisFbal_jni.cpp | 5061a5bfc16cb87bbe51c26ecea0d230d4983b18 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Chen-Zhihui/SeismicPackage | a242f9324c92d03383b06f068c9d2f64a47c5c3f | 255d2311bdbbacad2cb19aa3b91ceb84a733a194 | refs/heads/master | 2020-08-16T05:28:19.283337 | 2016-11-25T02:24:14 | 2016-11-25T02:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 308 | cpp | //////// DO NOT EDIT THIS FILE - it is machine generated ////////
#include "CpseisFbal.hh"
#include <jni.h>
extern "C"
{
JNIEXPORT jlong JNICALL Java_org_cpseis_wrappers_CpseisFbal_nativeCreate
(JNIEnv *env, jobject obj)
{
CpseisFbal *module = new CpseisFbal();
return (jlong)module;
}
}
| [
"Uqer@d-i89-169-66.student.eduroam.uq.edu.au"
] | Uqer@d-i89-169-66.student.eduroam.uq.edu.au |
2dee91a4677d8feb78ca838e29ee57d55251dee0 | db0487e0d4d2f83cd51e4031771af4d058a9be1b | /BoilerPlate/PhysicsEntity.h | 55cd5058e77d0634ccbd17fc95a962b66810a1f9 | [] | no_license | platinum95/Kneely-Engine | 62332c14a629bf3ec4ba61c375c8d4c6663ffb78 | f86706c0e65492c3b43b3e816d61d40b0f922597 | refs/heads/master | 2021-07-04T04:45:00.120720 | 2017-11-28T16:37:36 | 2017-11-28T16:37:36 | 68,232,685 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,035 | h | #pragma once
#include <glm/vec3.hpp>
#include <glm/geometric.hpp>
#include <glm/mat4x4.hpp>
#include <vector>
namespace BoilerPlate{
namespace Physics {
class PhysicsEntity{
public:
PhysicsEntity(glm::vec3, glm::vec3, float);
PhysicsEntity(glm::vec3 pos, glm::vec3 rot);
PhysicsEntity();
void rotate(glm::vec3 axis, float angle);
void ChangeBasis(glm::vec3 right, glm::vec3 up, glm::vec3 forward);
PhysicsEntity(int i);
void addForce(glm::vec3);
virtual void update(std::vector<PhysicsEntity*> eList, float);
float mass, restitution, friction;
glm::vec3 velocity, forces, position, rotation, forward, up, right;
glm::mat4 rotationMat;
};
class StaticEntity : public PhysicsEntity {
public:
void update(std::vector<PhysicsEntity*> eList, float);
private:
};
class DynamicEntity : public PhysicsEntity {
public:
DynamicEntity(glm::vec3 pos, glm::vec3 rot);
DynamicEntity();
void update( float);
private:
glm::vec3 squareKeepSign(glm::vec3);
};
}
}
| [
"platinum95@gmail.com"
] | platinum95@gmail.com |
9f79e6fc53ef4593af4281dd82206c33bd7b8bb4 | 0d0e78c6262417fb1dff53901c6087b29fe260a0 | /mps/src/v20190612/model/AiAnalysisTaskCoverOutput.cpp | e27eacb6b254042a6db3a1cbfd8156401862e80b | [
"Apache-2.0"
] | permissive | li5ch/tencentcloud-sdk-cpp | ae35ffb0c36773fd28e1b1a58d11755682ade2ee | 12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4 | refs/heads/master | 2022-12-04T15:33:08.729850 | 2020-07-20T00:52:24 | 2020-07-20T00:52:24 | 281,135,686 | 1 | 0 | Apache-2.0 | 2020-07-20T14:14:47 | 2020-07-20T14:14:46 | null | UTF-8 | C++ | false | false | 4,121 | cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <tencentcloud/mps/v20190612/model/AiAnalysisTaskCoverOutput.h>
using TencentCloud::CoreInternalOutcome;
using namespace TencentCloud::Mps::V20190612::Model;
using namespace rapidjson;
using namespace std;
AiAnalysisTaskCoverOutput::AiAnalysisTaskCoverOutput() :
m_coverSetHasBeenSet(false),
m_outputStorageHasBeenSet(false)
{
}
CoreInternalOutcome AiAnalysisTaskCoverOutput::Deserialize(const Value &value)
{
string requestId = "";
if (value.HasMember("CoverSet") && !value["CoverSet"].IsNull())
{
if (!value["CoverSet"].IsArray())
return CoreInternalOutcome(Error("response `AiAnalysisTaskCoverOutput.CoverSet` is not array type"));
const Value &tmpValue = value["CoverSet"];
for (Value::ConstValueIterator itr = tmpValue.Begin(); itr != tmpValue.End(); ++itr)
{
MediaAiAnalysisCoverItem item;
CoreInternalOutcome outcome = item.Deserialize(*itr);
if (!outcome.IsSuccess())
{
outcome.GetError().SetRequestId(requestId);
return outcome;
}
m_coverSet.push_back(item);
}
m_coverSetHasBeenSet = true;
}
if (value.HasMember("OutputStorage") && !value["OutputStorage"].IsNull())
{
if (!value["OutputStorage"].IsObject())
{
return CoreInternalOutcome(Error("response `AiAnalysisTaskCoverOutput.OutputStorage` is not object type").SetRequestId(requestId));
}
CoreInternalOutcome outcome = m_outputStorage.Deserialize(value["OutputStorage"]);
if (!outcome.IsSuccess())
{
outcome.GetError().SetRequestId(requestId);
return outcome;
}
m_outputStorageHasBeenSet = true;
}
return CoreInternalOutcome(true);
}
void AiAnalysisTaskCoverOutput::ToJsonObject(Value &value, Document::AllocatorType& allocator) const
{
if (m_coverSetHasBeenSet)
{
Value iKey(kStringType);
string key = "CoverSet";
iKey.SetString(key.c_str(), allocator);
value.AddMember(iKey, Value(kArrayType).Move(), allocator);
int i=0;
for (auto itr = m_coverSet.begin(); itr != m_coverSet.end(); ++itr, ++i)
{
value[key.c_str()].PushBack(Value(kObjectType).Move(), allocator);
(*itr).ToJsonObject(value[key.c_str()][i], allocator);
}
}
if (m_outputStorageHasBeenSet)
{
Value iKey(kStringType);
string key = "OutputStorage";
iKey.SetString(key.c_str(), allocator);
value.AddMember(iKey, Value(kObjectType).Move(), allocator);
m_outputStorage.ToJsonObject(value[key.c_str()], allocator);
}
}
vector<MediaAiAnalysisCoverItem> AiAnalysisTaskCoverOutput::GetCoverSet() const
{
return m_coverSet;
}
void AiAnalysisTaskCoverOutput::SetCoverSet(const vector<MediaAiAnalysisCoverItem>& _coverSet)
{
m_coverSet = _coverSet;
m_coverSetHasBeenSet = true;
}
bool AiAnalysisTaskCoverOutput::CoverSetHasBeenSet() const
{
return m_coverSetHasBeenSet;
}
TaskOutputStorage AiAnalysisTaskCoverOutput::GetOutputStorage() const
{
return m_outputStorage;
}
void AiAnalysisTaskCoverOutput::SetOutputStorage(const TaskOutputStorage& _outputStorage)
{
m_outputStorage = _outputStorage;
m_outputStorageHasBeenSet = true;
}
bool AiAnalysisTaskCoverOutput::OutputStorageHasBeenSet() const
{
return m_outputStorageHasBeenSet;
}
| [
"zhiqiangfan@tencent.com"
] | zhiqiangfan@tencent.com |
4a7c9dbccf75b48a26e905fe5e85afeba9a2e07a | c2bc339753e08d2249c7eea412c3d6739048a76f | /FractalX/FractalX/LightsDlg.h | 22086289ad172754c845b04afc85aec8813c10bc | [] | no_license | sjr213/fractalx | 071680481de9f805d44543f33e48354fd9a61b76 | 4e7837bc9b8edf08b5eaf0eeb05fcbefc5ff7c98 | refs/heads/master | 2022-02-05T14:27:34.587816 | 2022-01-08T21:45:27 | 2022-01-08T21:45:27 | 144,908,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | h | #pragma once
#include "Light.h"
class CLightsDlg : public CDialogEx
{
public:
virtual ~CLightsDlg() {};
virtual DxColor::Lights GetLights() = 0;
static std::shared_ptr<CLightsDlg> CreateLightsDlg(const DxColor::Lights& lights, CWnd* pParent = nullptr);
protected:
CLightsDlg(UINT nIDTemplate, CWnd* pParent)
: CDialogEx(nIDTemplate, pParent)
{}
}; | [
"sjrobles@yahoo.com"
] | sjrobles@yahoo.com |
68d9aee7bbd9c8c5e68024bd5ad866d090e95114 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /components/update_client/url_fetcher_downloader.cc | 7a550febd1c56adb1333aa2714064b161a156c75 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 5,903 | cc | // 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 "components/update_client/url_fetcher_downloader.h"
#include <stdint.h>
#include <utility>
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/sequenced_task_runner.h"
#include "base/task/post_task.h"
#include "base/task/task_traits.h"
#include "components/update_client/network.h"
#include "components/update_client/utils.h"
#include "url/gurl.h"
namespace {
constexpr base::TaskTraits kTaskTraits = {
base::MayBlock(), base::TaskPriority::BEST_EFFORT,
base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN};
} // namespace
namespace update_client {
UrlFetcherDownloader::UrlFetcherDownloader(
std::unique_ptr<CrxDownloader> successor,
scoped_refptr<NetworkFetcherFactory> network_fetcher_factory)
: CrxDownloader(std::move(successor)),
network_fetcher_factory_(network_fetcher_factory) {}
UrlFetcherDownloader::~UrlFetcherDownloader() {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
}
void UrlFetcherDownloader::DoStartDownload(const GURL& url) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
base::PostTaskWithTraitsAndReply(
FROM_HERE, kTaskTraits,
base::BindOnce(&UrlFetcherDownloader::CreateDownloadDir,
base::Unretained(this)),
base::BindOnce(&UrlFetcherDownloader::StartURLFetch,
base::Unretained(this), url));
}
void UrlFetcherDownloader::CreateDownloadDir() {
base::CreateNewTempDirectory(FILE_PATH_LITERAL("chrome_url_fetcher_"),
&download_dir_);
}
void UrlFetcherDownloader::StartURLFetch(const GURL& url) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
if (download_dir_.empty()) {
Result result;
result.error = -1;
DownloadMetrics download_metrics;
download_metrics.url = url;
download_metrics.downloader = DownloadMetrics::kUrlFetcher;
download_metrics.error = -1;
download_metrics.downloaded_bytes = -1;
download_metrics.total_bytes = -1;
download_metrics.download_time_ms = 0;
main_task_runner()->PostTask(
FROM_HERE, base::BindOnce(&UrlFetcherDownloader::OnDownloadComplete,
base::Unretained(this), false, result,
download_metrics));
return;
}
const auto file_path = download_dir_.AppendASCII(url.ExtractFileName());
network_fetcher_ = network_fetcher_factory_->Create();
network_fetcher_->DownloadToFile(
url, file_path,
base::BindOnce(&UrlFetcherDownloader::OnResponseStarted,
base::Unretained(this)),
base::BindRepeating(&UrlFetcherDownloader::OnDownloadProgress,
base::Unretained(this)),
base::BindOnce(&UrlFetcherDownloader::OnNetworkFetcherComplete,
base::Unretained(this)));
download_start_time_ = base::TimeTicks::Now();
}
void UrlFetcherDownloader::OnNetworkFetcherComplete(base::FilePath file_path,
int net_error,
int64_t content_size) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
const base::TimeTicks download_end_time(base::TimeTicks::Now());
const base::TimeDelta download_time =
download_end_time >= download_start_time_
? download_end_time - download_start_time_
: base::TimeDelta();
// Consider a 5xx response from the server as an indication to terminate
// the request and avoid overloading the server in this case.
// is not accepting requests for the moment.
int error = -1;
if (!file_path.empty() && response_code_ == 200) {
DCHECK_EQ(0, net_error);
error = 0;
} else if (response_code_ != -1) {
error = response_code_;
} else {
error = net_error;
}
const bool is_handled = error == 0 || IsHttpServerError(error);
Result result;
result.error = error;
if (!error) {
result.response = file_path;
}
DownloadMetrics download_metrics;
download_metrics.url = url();
download_metrics.downloader = DownloadMetrics::kUrlFetcher;
download_metrics.error = error;
// Tests expected -1, in case of failures and no content is available.
download_metrics.downloaded_bytes = error ? -1 : content_size;
download_metrics.total_bytes = total_bytes_;
download_metrics.download_time_ms = download_time.InMilliseconds();
VLOG(1) << "Downloaded " << content_size << " bytes in "
<< download_time.InMilliseconds() << "ms from " << final_url_.spec()
<< " to " << result.response.value();
// Delete the download directory in the error cases.
if (error && !download_dir_.empty())
base::PostTaskWithTraits(
FROM_HERE, kTaskTraits,
base::BindOnce(IgnoreResult(&base::DeleteFile), download_dir_, true));
main_task_runner()->PostTask(
FROM_HERE, base::BindOnce(&UrlFetcherDownloader::OnDownloadComplete,
base::Unretained(this), is_handled, result,
download_metrics));
}
// This callback is used to indicate that a download has been started.
void UrlFetcherDownloader::OnResponseStarted(const GURL& final_url,
int response_code,
int64_t content_length) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
VLOG(1) << "url fetcher response started for: " << final_url.spec();
final_url_ = final_url;
response_code_ = response_code;
total_bytes_ = content_length;
}
void UrlFetcherDownloader::OnDownloadProgress(int64_t current) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
CrxDownloader::OnDownloadProgress();
}
} // namespace update_client
| [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
e95ec49b96a3349d5ed17d5d6820ea77254155fd | d2249116413e870d8bf6cd133ae135bc52021208 | /MFC CodeGuru/bitmap/ebgfx_xray/PROJECTS/EBGFX/XRay/XRay.cpp | bcf27ba38c840f71888baf3356b66eb69180a5cc | [] | no_license | Unknow-man/mfc-4 | ecbdd79cc1836767ab4b4ca72734bc4fe9f5a0b5 | b58abf9eb4c6d90ef01b9f1203b174471293dfba | refs/heads/master | 2023-02-17T18:22:09.276673 | 2021-01-20T07:46:14 | 2021-01-20T07:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,027 | cpp | // XRay.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "XRay.h"
#include "MainFrm.h"
#include "XRayDoc.h"
#include "XRayView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CXRayApp
BEGIN_MESSAGE_MAP(CXRayApp, CWinApp)
//{{AFX_MSG_MAP(CXRayApp)
ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CXRayApp construction
CXRayApp::CXRayApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CXRayApp object
CXRayApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CXRayApp initialization
BOOL CXRayApp::InitInstance()
{
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Change the registry key under which our settings are stored.
// You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T("Local AppWizard-Generated Applications"));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application's document templates. Document templates
// serve as the connection between documents, frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CXRayDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CXRayView));
AddDocTemplate(pDocTemplate);
// 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;
// The one and only window has been initialized, so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->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
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
//{{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 CXRayApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}
/////////////////////////////////////////////////////////////////////////////
// CXRayApp commands
| [
"chenchao0632@163.com"
] | chenchao0632@163.com |
b1f04fc33272f53fe8e32db117262dd54570d8dd | 4ef69f0044f45be4fbce54f7b7c0319e4c5ec53d | /include/cv/core/cmd/out/dgglse.inl | 957bdd15b45715168069bf40216eb1261dcc1646 | [] | no_license | 15831944/cstd | c6c3996103953ceda7c06625ee1045127bf79ee8 | 53b7e5ba73cbdc9b5bbc61094a09bf3d5957f373 | refs/heads/master | 2021-09-15T13:44:37.937208 | 2018-06-02T10:14:16 | 2018-06-02T10:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 233 | inl | #ifndef __dgglse__
#define __dgglse__
#define c__1 c__1_dgglse
#define c_n1 c_n1_dgglse
#define c_b31 c_b31_dgglse
#define c_b33 c_b33_dgglse
#include "dgglse.c"
#undef c__1
#undef c_n1
#undef c_b31
#undef c_b33
#endif // __dgglse__
| [
"31720406@qq.com"
] | 31720406@qq.com |
ce8c3ce8d152ed54968446e1d276d66b035b791a | b8fdf8b5da98da91356b09955b70ca42045ff02c | /graphicsview.cpp | 657e22be19fbe51b33ea561bce7e4a9b2e081f1a | [] | no_license | andrewreeman/staffGames | b9280d8710444b2a0c310936eec4740be4c2952c | 1351698c0cfefb102127ef3650126fee877469f1 | refs/heads/master | 2021-01-25T09:53:06.429101 | 2015-04-26T18:04:02 | 2015-04-26T18:04:02 | 21,549,555 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,995 | cpp | #include "graphicsview.h"
#include <QEvent>
#include <QTouchEvent>
#include <QDebug>
GraphicsView::GraphicsView(QWidget *parent) :
QGraphicsView(parent), totalScaleFactor(1)
{
viewport()->setAttribute(Qt::WA_AcceptTouchEvents);
setDragMode(ScrollHandDrag);
}
bool GraphicsView::viewportEvent(QEvent *event)
{
switch (event->type()) {
case QEvent::TouchBegin:
case QEvent::TouchUpdate:
case QEvent::TouchEnd:
{
QTouchEvent *touchEvent = static_cast<QTouchEvent *>(event);
QList<QTouchEvent::TouchPoint> touchPoints = touchEvent->touchPoints();
if (touchPoints.count() == 2) {
// determine scale factor
const QTouchEvent::TouchPoint &touchPoint0 = touchPoints.first();
const QTouchEvent::TouchPoint &touchPoint1 = touchPoints.last();
qreal currentScaleFactor =
QLineF(touchPoint0.pos(), touchPoint1.pos()).length()
/ QLineF(touchPoint0.startPos(), touchPoint1.startPos()).length();
setTransform(QTransform().scale(totalScaleFactor * currentScaleFactor,
totalScaleFactor * currentScaleFactor));
if (touchEvent->touchPointStates() & Qt::TouchPointReleased) {
// if one of the fingers is released, remember the current scale
// factor so that adding another finger later will continue zooming
// by adding new scale factor to the existing remembered value.
totalScaleFactor *= currentScaleFactor;
//currentScaleFactor = 1;
}
qDebug() << totalScaleFactor;
}
return false; // don't consume as touch is needed for mouse
}
default:
break;
}
return QGraphicsView::viewportEvent(event);
}
| [
"andrew.reeman@gmail.com"
] | andrew.reeman@gmail.com |
ca91fe86c755362c16c172954be33307c322721a | e780ac4efed690d0671c9e25df3e9732a32a14f5 | /RaiderEngine/libs/PhysX-4.1/physx/samples/sampleframework/renderer/src/d3d11/D3D11RendererSpotLight.h | 1d6970f8cdde262c5a9cc1178cef38eadc5609f5 | [
"MIT"
] | permissive | rystills/RaiderEngine | fbe943143b48f4de540843440bd4fcd2a858606a | 3fe2dcdad6041e839e1bad3632ef4b5e592a47fb | refs/heads/master | 2022-06-16T20:35:52.785407 | 2022-06-11T00:51:40 | 2022-06-11T00:51:40 | 184,037,276 | 6 | 0 | MIT | 2022-05-07T06:00:35 | 2019-04-29T09:05:20 | C++ | UTF-8 | C++ | false | false | 2,206 | h | //
// 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 NVIDIA CORPORATION 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 ''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.
//
// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.
#ifndef D3D11_RENDERER_SPOT_LIGHT_H
#define D3D11_RENDERER_SPOT_LIGHT_H
#include <RendererConfig.h>
#if defined(RENDERER_ENABLE_DIRECT3D11)
#include <RendererSpotLight.h>
#include "D3D11Renderer.h"
namespace SampleRenderer
{
class D3D11RendererSpotLight : public RendererSpotLight
{
public:
D3D11RendererSpotLight(D3D11Renderer& renderer, const RendererSpotLightDesc& desc);
virtual ~D3D11RendererSpotLight(void);
virtual void bind(void) const { bind(0); }
virtual void bind(PxU32 lightIndex) const;
private:
D3D11Renderer& m_renderer;
};
} // namespace SampleRenderer
#endif // #if defined(RENDERER_ENABLE_DIRECT3D11)
#endif
| [
"rystills@gmail.com"
] | rystills@gmail.com |
b9af6ecce4610b7e01fe8fa2bed21980ea862d07 | 0a1eb091a59dd8eabfa972920095c357f4137bc8 | /library/cpp/modint.cpp | 29fb31e6dd2b85c2d0cb2d99f85f46c16e20d924 | [] | no_license | y-kamiya/contest | ec033a0b4340b1c8aed074a3a04f7007279b91ae | 2af56ac79231a4d7bad3637771d1a985b6162b2e | refs/heads/master | 2023-03-13T03:18:13.294463 | 2023-02-19T07:24:08 | 2023-02-19T07:24:08 | 17,743,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,281 | cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define REPR(i,n) for(int i=n;i>=0;i--)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FORR(i,a,b) for(int i=(a);i>=(b);--i)
#define ALL(x) (x).begin(),(x).end()
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );
#define YES(n) cout << ((n) ? "YES" : "NO" ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl
#define PRINT_DOUBLE(n, x) cout << std::fixed << std::setprecision(n) << x << endl;
void print() { cout << endl; }
template<typename Head, typename... Tail>
void print(Head h, Tail... t) {
cout << h << " "; print(t...);
}
template<typename T, typename... Tail>
void print(vector<T> vec, Tail... t) {
cout << "[";
for (const auto &e : vec) {
cout << e << ", ";
}
cout << "] ";
print(t...);
}
#ifdef _DEBUG
#define DEBUG(...) print(__VA_ARGS__)
#else
#define DEBUG(...)
#endif
static const ll MOD = 1e9+7;
using u64 = std::uint_fast64_t;
template<u64 Mod> struct Modint {
u64 val;
constexpr Modint(const u64 x = 0) noexcept : val(x % Mod) {}
constexpr u64 &value() noexcept { return val; }
constexpr const u64 &value() const noexcept { return val; }
constexpr Modint operator+(const Modint rhs) const noexcept {
return Modint(*this) += rhs;
}
constexpr Modint operator-(const Modint rhs) const noexcept {
return Modint(*this) -= rhs;
}
constexpr Modint operator*(const Modint rhs) const noexcept {
return Modint(*this) *= rhs;
}
constexpr Modint operator/(const Modint rhs) const noexcept {
return Modint(*this) /= rhs;
}
constexpr Modint &operator+=(const Modint rhs) noexcept {
val += rhs.val;
if (Mod <= val) val -= Mod;
return *this;
}
constexpr Modint &operator-=(const Modint rhs) noexcept {
if (val < rhs.val) val += Mod;
val -= rhs.val;
return *this;
}
constexpr Modint &operator*=(const Modint rhs) noexcept {
val = val * rhs.val % Mod;
return *this;
}
// constexpr Modint &operator/=(Modint rhs) noexcept {
// u64 exp = Mod - 2;
// while (exp) {
// if (exp % 2) {
// *this *= rhs;
// }
// rhs *= rhs;
// exp /= 2;
// }
// return *this;
// }
constexpr Modint &operator/=(Modint rhs) noexcept {
ll a = rhs.val, b = Mod, u = 1, v = 0;
while (b) {
ll t = a / b;
a -= t * b; swap(a, b);
u -= t * v; swap(u, v);
}
if (u < 0) u += Mod;
val = val * u % Mod;
return *this;
}
constexpr bool operator == (const Modint& rhs) const noexcept {
return this->val == rhs.val;
}
constexpr bool operator != (const Modint& rhs) const noexcept {
return this->val != rhs.val;
}
friend constexpr ostream& operator << (ostream &os, const Modint<Mod>& x) noexcept {
return os << x.value();
}
constexpr Modint modpow(u64 n) noexcept {
u64 ret = 1;
while (n > 0) {
if (n & 1) ret = ret * val % Mod;
val = val * val % Mod;
n >>= 1;
}
val = ret;
return *this;
}
constexpr Modint modpow(const Modint &mi) noexcept {
return modpow(mi.value());
}
};
using mint = Modint<MOD>;
ll modpow(ll a, ll n) {
ll ret = 1;
while (n > 0) {
if (n & 1) ret = ret * a % MOD;
a = a * a % MOD;
n >>= 1;
}
return ret;
}
// https://atcoder.jp/contests/s8pc-1/tasks/s8pc_1_e
void _main() {
int N, Q;
cin >> N >> Q;
vector<ll> c(Q+2, 0);
vector<mint> a(N), b(N, 0);
REP(i, N) {
int x; cin >> x;
a[i] = x;
}
FOR(i, 1, Q+1) {
cin >> c[i];
--c[i];
}
REP(i, N-1) {
b[i+1] = b[i] + a[i].modpow(a[i+1]);
}
DEBUG(a);
DEBUG(b);
mint ans = 0;
REP(i, Q+1) {
int s = c[i];
int t = c[i+1];
if (s > t) swap(s, t);
auto d = b[t] - b[s];
DEBUG(i, s, t, d);
ans += d;
}
cout << ans << endl;
}
int main() {
_main();
return 0;
}
| [
"y.kamiya0@gmail.com"
] | y.kamiya0@gmail.com |
9d923916d7190fe32908904bacdf7cf56981db58 | e23db5e995e8611f42833171f048c6381d66b6a6 | /FrameWork/src/multiplayercore/ServerReplicationManager.h | f79dee9802c5f55631c756814f15e0687be99115 | [
"MIT"
] | permissive | alwayssmile11a1/MultiplayerGameServer | 34c618b73764606170733f05255e59cfe3570790 | cd4227ecc5fe1b44d427bcbd76c050a8130d2200 | refs/heads/master | 2020-04-06T23:42:40.516647 | 2020-01-10T14:47:42 | 2020-01-10T14:47:42 | 157,878,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,133 | h | #ifndef SERVERREPLICATIONMANAGER_H
#define SERVERREPLICATIONMANAGER_H
#include "ReplicationCommand.h"
#include "MemoryBitStream.h"
#include <unordered_map>
#include "NetworkGameObject.h"
class ServerReplicationManager
{
public:
void ReplicateCreate(NetworkGameObjectPtr gameObject, uint32_t inInitialDirtyState);
void ReplicateDestroy(NetworkGameObjectPtr gameObject);
void AddDirtyState(NetworkGameObjectPtr gameObject, uint32_t inDirtyState);
void RemoveFromReplication(NetworkGameObjectPtr gameObject);
void Write(OutputMemoryBitStream& inOutputStream);
private:
uint32_t WriteCreateAction(OutputMemoryBitStream& inOutputStream, NetworkGameObjectPtr gameObject, uint32_t inDirtyState);
uint32_t WriteUpdateAction(OutputMemoryBitStream& inOutputStream, NetworkGameObjectPtr gameObject, uint32_t inDirtyState);
uint32_t WriteDestroyAction(OutputMemoryBitStream& inOutputStream, NetworkGameObjectPtr gameObject, uint32_t inDirtyState);
std::unordered_map< NetworkGameObjectPtr, ReplicationCommand > mNetworkGameObjectToReplicationCommand;
std::vector< NetworkGameObjectPtr > mNetworkGameObjectsToRemove;
};
#endif | [
"alwayssmile11a1@gmail.com"
] | alwayssmile11a1@gmail.com |
7c58525e0b8e0168ab77588603f08051058e3cac | 9f7c7b5c19e0019c90eb6fdb425f5eaa0135e50b | /master_project/vulkan_rasterizer/GraphicBackend.hpp | e89b493f7e18b9bdb0679c2cd626b355da377e9c | [] | no_license | nebulark/master_project | 3fa4ae9bc035c1eb989d0b1a750959ef8c46cd4c | 16a3b041c9f91fb37ea8fbb5f2578f35ee57feef | refs/heads/master | 2020-04-23T22:35:16.653398 | 2019-08-07T13:20:59 | 2019-08-07T13:20:59 | 171,506,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,433 | hpp | #pragma once
#include <vulkan/vulkan.hpp>
#include "SDL.h"
#include "VmaRAII.hpp"
#include "Swapchain.hpp"
#include "common/VulkanDevice.hpp"
#include "VmaAllocationsPool.hpp"
#include "MeshDataManager.hpp"
#include "Scene.hpp"
#include "Portal.hpp"
#include "UniqueVmaObject.hpp"
#include "PortalManager.hpp"
#include "NTree.hpp"
#include "TriangleMesh.hpp"
#include "LineDrawer.hpp"
class Camera;
struct DrawOptions
{
std::vector<Line> extraLines;
int maxRecursion = std::numeric_limits<int>::max();
};
class GraphicsBackend
{
public:
void Init(SDL_Window* window, Camera& camera);
void Render(const Camera& camera, const DrawOptions& drawoptions);
void WaitIdle() { m_device->waitIdle(); }
gsl::span<const TriangleMesh> GetTriangleMeshes() const { return m_triangleMeshes; }
const PortalManager& GetPortalManager() const { return m_portalManager; }
void SetMaxVisiblePortalsForRecursion(gsl::span<const int> visiblePortals) { m_maxVisiblePortalsForRecursion = visiblePortals; }
private:
static constexpr int MaxInFlightFrames = 2;
static constexpr int maxPortalCount = 12;
static constexpr int worstMaxVisiblePortalsForRecursion[] =
{ maxPortalCount, maxPortalCount, maxPortalCount, maxPortalCount, maxPortalCount };
static constexpr int worstRecursionCount = gsl::narrow<int>(std::size(worstMaxVisiblePortalsForRecursion));
static constexpr int cameraMatricesMaxCount = NTree::CalcTotalElements(maxPortalCount, worstRecursionCount + 1);
static_assert(cameraMatricesMaxCount <= 3257437);
gsl::span<const int> m_maxVisiblePortalsForRecursion;
vk::UniqueInstance m_vkInstance;
vk::PhysicalDevice m_physicalDevice;
vk::UniqueDevice m_device;
VmaRAII::UniqueVmaAllocator m_allocator;
vk::UniqueDebugUtilsMessengerEXT m_debugUtilsMessenger;
vk::UniqueSurfaceKHR m_surface;
VulkanDevice::QueueResult m_graphicsPresentQueueInfo;
vk::Queue m_graphicsPresentQueues;
vk::UniqueShaderModule m_vertShaderModule;
vk::UniqueShaderModule m_fragShaderModule;
vk::UniqueShaderModule m_fragShaderModule_subsequent;
vk::UniqueShaderModule m_vertShaderModule_lines;
vk::UniqueShaderModule m_fragShaderModule_lines;
vk::UniqueShaderModule m_fragShaderModule_lines_subsequent;
vk::UniqueShaderModule m_vertShaderModule_portal;
vk::UniqueShaderModule m_fragShaderModule_portal;
vk::UniqueShaderModule m_fragShaderModule_portal_subsequent;
Swapchain m_swapchain;
vk::Format m_depthStencilFormat;
UniqueVmaImage m_depthBuffer;
vk::UniqueImageView m_depthBufferView;
std::vector<vk::UniqueFramebuffer> m_framebuffer;
vk::UniqueRenderPass m_portalRenderPass;
vk::UniqueDescriptorPool m_descriptorPool;
vk::UniqueSampler m_textureSampler;
UniqueVmaImage m_textureImage;
vk::UniqueImageView m_textureImageView;
std::array<UniqueVmaBuffer, MaxInFlightFrames> m_ubo_buffer;
std::array<UniqueVmaBuffer, MaxInFlightFrames> m_cameratMat_buffer;
// Stores indices to access the camera mat buffer
std::array<UniqueVmaBuffer, MaxInFlightFrames> m_cameraIndexBuffer;
// only used by portal rendering, to calc its index, so it can write into the correct location of cameraMatIndexBuffer
std::array<UniqueVmaBuffer, MaxInFlightFrames> m_portalIndexHelperBuffer;
std::array<UniqueVmaImage, 2> m_image_renderedDepth;
std::array<vk::UniqueImageView, 2> m_imageview_renderedDepth;
std::array<UniqueVmaImage, 2> m_image_renderedStencil;
std::array<vk::UniqueImageView, 2> m_imageview_renderedStencil;
vk::UniqueDescriptorSetLayout m_descriptorSetLayout_texture;
vk::UniqueDescriptorSetLayout m_descriptorSetLayout_ubo;
vk::UniqueDescriptorSetLayout m_descriptorSetLayout_cameraMat;
vk::UniqueDescriptorSetLayout m_descriptorSetLayout_cameraIndices;
vk::UniqueDescriptorSetLayout m_descriptorSetLayout_portalIndexHelper;
vk::UniqueDescriptorSetLayout m_descriptorSetLayout_rendered;
vk::DescriptorSet m_descriptorSet_texture;
std::array<vk::DescriptorSet, MaxInFlightFrames> m_descriptorSet_ubo;
std::array<vk::DescriptorSet, MaxInFlightFrames> m_descriptorSet_cameratMat;
std::array<vk::DescriptorSet, MaxInFlightFrames> m_descriptorSet_cameraIndices;
std::array<vk::DescriptorSet, MaxInFlightFrames> m_descriptorSet_portalIndexHelper;
std::array<vk::DescriptorSet, 2> m_descriptorSet_rendered;
vk::UniquePipelineLayout m_pipelineLayout_portal;
vk::UniquePipelineLayout m_pipelineLayout_scene;
vk::UniquePipelineLayout m_pipelineLayout_lines;
std::array<vk::UniqueCommandPool, MaxInFlightFrames> m_graphicsPresentCommandPools;
std::array<vk::UniqueCommandBuffer, MaxInFlightFrames> m_graphicsPresentBuffer;
std::array<vk::UniqueFence, MaxInFlightFrames> m_frameFence;
std::array<vk::UniqueSemaphore, MaxInFlightFrames> m_imageAvailableSem;
std::array<vk::UniqueSemaphore, MaxInFlightFrames> m_renderFinishedSem;
int m_currentframe = 0;
struct ScenePassPipelines
{
std::vector<vk::UniqueHandle<vk::Pipeline, vk::DispatchLoaderStatic>> scene;
std::vector<vk::UniqueHandle<vk::Pipeline, vk::DispatchLoaderStatic>> line;
};
struct PortalPassPipelines
{
std::vector<vk::UniqueHandle<vk::Pipeline, vk::DispatchLoaderStatic>> portal;
};
struct Pipelines
{
ScenePassPipelines scenePass;
PortalPassPipelines portalPass;
};
Pipelines m_pipelines;
std::unique_ptr<MeshDataManager> m_meshData;
std::vector<TriangleMesh> m_triangleMeshes;
std::unique_ptr<Scene> m_scene;
PortalManager m_portalManager;
std::vector<Line> m_portalAABBLines;
};
| [
"florian.schmiderer@yahoo.de"
] | florian.schmiderer@yahoo.de |
958338a885669d3a43132da224a46ca86c39e066 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /base/trace_event/application_state_proto_android.h | 73f558b933553c72dd9a2f2c8cc4469bab7568b2 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,371 | h | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_TRACE_EVENT_APPLICATION_STATE_PROTO_ANDROID_H_
#define BASE_TRACE_EVENT_APPLICATION_STATE_PROTO_ANDROID_H_
#include "base/android/application_status_listener.h"
#include "base/base_export.h"
#include "third_party/perfetto/protos/perfetto/trace/track_event/chrome_application_state_info.pbzero.h"
#define TRACE_APPLICATION_STATE(state) \
TRACE_EVENT_INSTANT( \
"Java", "ApplicationState", perfetto::Track::Global(0), \
[state](perfetto::EventContext ctx) { \
ctx.event() \
->set_chrome_application_state_info() \
->set_application_state( \
base::trace_event::ApplicationStateToTraceEnum(state)); \
});
namespace base {
namespace trace_event {
BASE_EXPORT
perfetto::protos::pbzero::ChromeApplicationStateInfo::ChromeApplicationState
ApplicationStateToTraceEnum(base::android::ApplicationState state);
} // namespace trace_event
} // namespace base
#endif // BASE_TRACE_EVENT_APPLICATION_STATE_PROTO_ANDROID_H_
| [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
df9c812ba1435bb535e65ba50524978e4864b585 | 8dd21bc8eae28667bbe275dfbe2dad8d6e44747e | /autotest/autotest.cpp | 37179f99f628b6495dce03079d14f1fb8ff1463f | [
"Zlib",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | liuf1986/ncnn | 46a6b16a6f41e549c90ea4d66c1bacc20efaa414 | a4d28107f409699ce0a10fb1cd560dfae4625bfa | refs/heads/master | 2021-05-06T22:10:26.147714 | 2017-12-01T03:16:01 | 2017-12-01T03:16:01 | 112,716,910 | 7 | 0 | null | 2017-12-01T08:50:42 | 2017-12-01T08:50:42 | null | UTF-8 | C++ | false | false | 342 | cpp | #include <stdio.h>
#include "blob.h"
#include "net.h"
#include "layer.h"
#include "mat.h"
#include "opencv.h"
#include "platform.h"
#include "test_convlution.h"
#include "test_innerproduct.h"
#include "gtest/gtest.h"
int main(int argc, char **argv){
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
} | [
"shuizhuyuanluo@126.com"
] | shuizhuyuanluo@126.com |
da7b442201a27b15f8b07489a09353d3160e4732 | 25abd807ca135a5c268255515f6d493c229903be | /cppwinrt/impl/Windows.ApplicationModel.Contacts.DataProvider.2.h | ae08d60b6ec22c58ef1d0304f289e7bae942ec69 | [
"Apache-2.0"
] | permissive | RakeshShrestha/C-Calendar-Library | 670924ae3204d8737d8f43c47e54fe113d202265 | 6525707089891b0710e34769f7aeaea0c79271a1 | refs/heads/master | 2022-05-16T15:26:37.102822 | 2022-04-28T08:45:58 | 2022-04-28T08:45:58 | 33,488,761 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,278 | h | // WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.200117.5
#ifndef WINRT_Windows_ApplicationModel_Contacts_DataProvider_2_H
#define WINRT_Windows_ApplicationModel_Contacts_DataProvider_2_H
#include "winrt/impl/Windows.ApplicationModel.Contacts.DataProvider.1.h"
WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Contacts::DataProvider
{
struct __declspec(empty_bases) ContactDataProviderConnection : Windows::ApplicationModel::Contacts::DataProvider::IContactDataProviderConnection,
impl::require<ContactDataProviderConnection, Windows::ApplicationModel::Contacts::DataProvider::IContactDataProviderConnection2>
{
ContactDataProviderConnection(std::nullptr_t) noexcept {}
ContactDataProviderConnection(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactDataProviderConnection(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) ContactDataProviderTriggerDetails : Windows::ApplicationModel::Contacts::DataProvider::IContactDataProviderTriggerDetails
{
ContactDataProviderTriggerDetails(std::nullptr_t) noexcept {}
ContactDataProviderTriggerDetails(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactDataProviderTriggerDetails(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) ContactListCreateOrUpdateContactRequest : Windows::ApplicationModel::Contacts::DataProvider::IContactListCreateOrUpdateContactRequest
{
ContactListCreateOrUpdateContactRequest(std::nullptr_t) noexcept {}
ContactListCreateOrUpdateContactRequest(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactListCreateOrUpdateContactRequest(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) ContactListCreateOrUpdateContactRequestEventArgs : Windows::ApplicationModel::Contacts::DataProvider::IContactListCreateOrUpdateContactRequestEventArgs
{
ContactListCreateOrUpdateContactRequestEventArgs(std::nullptr_t) noexcept {}
ContactListCreateOrUpdateContactRequestEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactListCreateOrUpdateContactRequestEventArgs(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) ContactListDeleteContactRequest : Windows::ApplicationModel::Contacts::DataProvider::IContactListDeleteContactRequest
{
ContactListDeleteContactRequest(std::nullptr_t) noexcept {}
ContactListDeleteContactRequest(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactListDeleteContactRequest(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) ContactListDeleteContactRequestEventArgs : Windows::ApplicationModel::Contacts::DataProvider::IContactListDeleteContactRequestEventArgs
{
ContactListDeleteContactRequestEventArgs(std::nullptr_t) noexcept {}
ContactListDeleteContactRequestEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactListDeleteContactRequestEventArgs(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) ContactListServerSearchReadBatchRequest : Windows::ApplicationModel::Contacts::DataProvider::IContactListServerSearchReadBatchRequest
{
ContactListServerSearchReadBatchRequest(std::nullptr_t) noexcept {}
ContactListServerSearchReadBatchRequest(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactListServerSearchReadBatchRequest(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) ContactListServerSearchReadBatchRequestEventArgs : Windows::ApplicationModel::Contacts::DataProvider::IContactListServerSearchReadBatchRequestEventArgs
{
ContactListServerSearchReadBatchRequestEventArgs(std::nullptr_t) noexcept {}
ContactListServerSearchReadBatchRequestEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactListServerSearchReadBatchRequestEventArgs(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) ContactListSyncManagerSyncRequest : Windows::ApplicationModel::Contacts::DataProvider::IContactListSyncManagerSyncRequest
{
ContactListSyncManagerSyncRequest(std::nullptr_t) noexcept {}
ContactListSyncManagerSyncRequest(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactListSyncManagerSyncRequest(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) ContactListSyncManagerSyncRequestEventArgs : Windows::ApplicationModel::Contacts::DataProvider::IContactListSyncManagerSyncRequestEventArgs
{
ContactListSyncManagerSyncRequestEventArgs(std::nullptr_t) noexcept {}
ContactListSyncManagerSyncRequestEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : Windows::ApplicationModel::Contacts::DataProvider::IContactListSyncManagerSyncRequestEventArgs(ptr, take_ownership_from_abi) {}
};
}
#endif
| [
"rakesh.shrestha@gmail.com"
] | rakesh.shrestha@gmail.com |
15a37d30ded11c68834afde1549b41225f4fb491 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2692487_0/C++/alin/Task1.cpp | 8224672b1673efed6eb2d415f887888321310f4c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,146 | cpp | #define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int Sizes[100];
int Nums[100];
int intcmp(const void * A, const void * B){
if( *(int*)A < *(int*)B )
return -1;
if( *(int*)A > *(int*)B )
return 1;
return 0;
}
int Solver(int A, int N){
int i, cur, nums, sizes, last;
if( A == 1 ){
return N;
}
qsort(Sizes, N, sizeof(int), intcmp);
//for( i = 0; i < N; i ++ ){
// printf("%d ",Sizes[i]);
//}
//printf("\n");
cur = A;
for( i = 0; i < N; i ++ ){
Nums[i] = 0;
while( Sizes[i] >= cur ){
cur = cur + cur - 1;
Nums[i] ++;
}
cur += Sizes[i];
//if( Sizes[i] < cur ){
// Nums[i] = 0;
// cur += Sizes[i];
//}
//else{
// Nums[i] = (Sizes[i] - cur) / (cur - 1) + 1;
// cur += (cur - 1) * Nums[i] + Sizes[i];
//}
}
nums = 0;
sizes = 0;
last = N - 1;
for( i = N - 1; i >= 0; i -- ){
nums += Nums[i];
sizes ++;
if( nums > sizes ){
last = i - 1;
nums = 0;
sizes = 0;
}
}
if( last == -1 ){
return N;
}
return (N-1) - last + nums;
}
int main(int argc, char *argv[]){
FILE* filein;
FILE* fileout;
int T;
int t, i;
int res;
int A, N;
if( argc < 3 ){
printf("Usage is: task1 filein fileout\n");
return 0;
}
// Input
filein = fopen(argv[1], "r");
if( filein == NULL ){
printf("Error open(); filein\n");
return 0;
}
fileout = fopen(argv[2], "w");
if( fileout == NULL ){
printf("Error open(); fileout\n");
return 0;
}
fscanf(filein, "%d\n", &T);
printf("%d\n", T);
for( t = 0; t < T; t ++ ){
printf("-------------\t=%d\n", t);
fscanf(filein, "%d %d\n", &A, &N);
printf("%d %d\n", A, N);
for( i = 0; i < N-1; i ++){
fscanf(filein, "%d ", Sizes + i);
printf("%d ", Sizes[i]);
}
fscanf(filein, "%d\n", Sizes + N - 1);
printf("%d\n", Sizes[N-1]);
// Solve & Output
res = Solver(A, N);
fprintf(fileout, "Case #%d: %I64u\n", t + 1, res);
}
fclose(fileout);
fclose(filein);
return 0;
}
| [
"eewestman@gmail.com"
] | eewestman@gmail.com |
89a1c5ce7dd990f64086b0da5a504b034e0f5bbd | bbbfbe716c50b681c6f6fc9d13fc9f0d927dc916 | /pal_game_qt/controller.cpp | adaaa743f2e54c33d24f194838ac290941e4c034 | [] | no_license | SkyeWoo/pal_game | 025fdf6f9fbee17bb1a39643b161637e28609438 | c7ddc5f3435c8e1726d4a689fedbfa2b44e44ef9 | refs/heads/master | 2021-05-15T13:05:44.607644 | 2017-10-27T07:20:14 | 2017-10-27T07:20:14 | 108,511,769 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,250 | cpp | #include "controller.h"
#include "ui_pal_game.h"
Controller::Controller(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Controller),
m_pScene(-10, -10, 900, 500),
m_pImages(new Images())
{
ui->setupUi(this);
ui->RunningView->setScene(&m_pScene);
ui->RunningView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
ui->RunningView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
/* 实时刷新画面 */
connect(&m_pTimer, SIGNAL(timeout()), this, SLOT(GameUpdate()));
sndAvail = true;
sndBackGround = new QSound(":/snd/snd/pal4-回梦游仙.wav");
// sndBackGround = new QSound(":/snd/snd/pal5-心愿.wav");
sndGame = new QSound(":/snd/snd/pal5-逐韵律.wav");
sndGood = new QSound(":/snd/snd/getGood.wav");
sndHurt_female = new QSound(":/snd/snd/受伤-female.wav");
sndHurt_male = new QSound(":/snd/snd/受伤-male.wav");
sndWin = new QSound(":/snd/snd/战斗胜利.wav");
sndLost = new QSound(":/snd/snd/战斗失败.wav");
init();
}
Controller::~Controller()
{
delete ui;
}
void Controller::init() {
m_pScene.clear();
ui->StartWidget->setFocus();
ui->Config->setEnabled(false);
ui->Config->setVisible(false);
ui->RunningView->setEnabled(false);
ui->RunningView->setVisible(false);
ui->Atribute->setEnabled(false);
ui->Atribute->setVisible(false);
ui->Continue->setEnabled(false);
ui->Continue->setVisible(false);
ui->GameOver->setEnabled(false);
ui->GameOver->setVisible(false);
ui->GamePass->setEnabled(false);
ui->GamePass->setVisible(false);
ui->GamePass->tabBar()->hide();
ui->StartWidget->setEnabled(true);
ui->StartWidget->setVisible(true);
ui->InstructWindow->setCurrentIndex(0);
ui->InstructWindow->setVisible(false);
ui->InstructWindow->tabBar()->hide();
ui->LastPage->setEnabled(false);
ui->LastPage->setVisible(false);
ui->NextPage->setEnabled(false);
ui->NextPage->setVisible(false);
ui->Close->setEnabled(false);
ui->Close->setVisible(false);
/* 游戏还没开始 */
this->state = -1;
if (sndAvail == true) {
sndWin->stop();
sndLost->stop();
sndBackGround->play();
}
}
void Controller::keyPressEvent(QKeyEvent *event) {
int keyValue = event->key();
switch(keyValue) {
case Qt::Key_I:
on_Instruction_clicked(); break;
case Qt::Key_Q:
if (ui->GameExit->isEnabled()) on_GameExit_clicked(); break;
case Qt::Key_Y:
if (ui->Continue->isEnabled()) on_Yes_clicked();
else if (ui->Config->isEnabled()) on_confirmConfig_clicked();
break;
case Qt::Key_N:
if (ui->Continue->isEnabled()) on_No_clicked();
else if (ui->Config->isEnabled()) on_cancelConfig_clicked();
break;
case Qt::Key_R:
if (ui->RunningView->isEnabled()) ResetRole(); break;
case Qt::Key_C:
if (state == -1 && ui->Config->isEnabled()) on_setConfig_clicked();
break;
case Qt::Key_Up:
if (ui->RunningView->isEnabled()) {
if (!event->isAutoRepeat()) setGoingUp(true);
}
else if (ui->Config->isEnabled()) {
ui->openSound->setChecked(true);
on_openSound_clicked();
}
break;
case Qt::Key_Down:
if (ui->RunningView->isEnabled()) {
if (!event->isAutoRepeat()) setGoingDown(true);
}
else if (ui->Config->isEnabled()) {
ui->closeSound->setChecked(true);
on_closeSound_clicked();
}
break;
case Qt::Key_Left:
if (ui->InstructWindow->isEnabled()) on_LastPage_clicked();
else
if (ui->RunningView->isEnabled() && !event->isAutoRepeat()) setGoingLeft(true);
break;
case Qt::Key_Right:
if (ui->InstructWindow->isEnabled()) on_NextPage_clicked();
else
if (ui->RunningView->isEnabled() && !event->isAutoRepeat()) setGoingRight(true);
break;
case Qt::Key_Space:
if (ui->RunningView->isEnabled() && !event->isAutoRepeat()) setRoleFire(true);
break;
case Qt::Key_Escape:
if (ui->Config->isEnabled() == true) on_cancelConfig_clicked();
else if (ui->InstructWindow->isEnabled() == true) on_Close_clicked();
else if (state == 1) GamePause();
break;
case Qt::Key_Return:
if (ui->GameStart->isEnabled()) on_GameStart_clicked();
else if (state == 2) on_No_clicked();
break;
}
}
void Controller::keyReleaseEvent(QKeyEvent *event) {
int keyValue = event->key();
switch(keyValue) {
case Qt::Key_Up:
if (!event->isAutoRepeat() && isGoingUp) setGoingUp(false);
break;
case Qt::Key_Down:
if (!event->isAutoRepeat() && isGoingDown) setGoingDown(false);
break;
case Qt::Key_Left:
if (!event->isAutoRepeat() && isGoingLeft) setGoingLeft(false);
break;
case Qt::Key_Right:
if (!event->isAutoRepeat() && isGoingRight) setGoingRight(false);
break;
case Qt::Key_Space:
if (!event->isAutoRepeat() && isFire) setRoleFire(false);
}
}
void Controller::on_GameExit_clicked()
{
this->close();
}
void Controller::on_Instruction_clicked()
{
ui->InstructWindow->setEnabled(true);
ui->InstructWindow->setVisible(true);
ui->NextPage->setVisible(true);
ui->LastPage->setVisible(true);
ui->NextPage->setEnabled(true);
ui->LastPage->setEnabled(true);
ui->Close->setEnabled(true);
ui->Close->setVisible(true);
ui->GameStart->setEnabled(false);
ui->GameExit->setEnabled(false);
ui->Config->setEnabled(false);
}
void Controller::on_Close_clicked()
{
ui->GameStart->setEnabled(true);
ui->GameExit->setEnabled(true);
ui->Config->setEnabled(true);
ui->InstructWindow->setEnabled(false);
ui->InstructWindow->setVisible(false);
ui->LastPage->setEnabled(false);
ui->LastPage->setVisible(false);
ui->NextPage->setEnabled(false);
ui->NextPage->setVisible(false);
ui->Close->setEnabled(false);
ui->Close->setVisible(false);
}
void Controller::on_LastPage_clicked()
{
int index = ui->InstructWindow->currentIndex();
int count = ui->InstructWindow->count();
ui->InstructWindow->setCurrentIndex((index + count - 1) % count);
}
void Controller::on_NextPage_clicked()
{
int index = ui->InstructWindow->currentIndex();
int count = ui->InstructWindow->count();
ui->InstructWindow->setCurrentIndex((index + 1) % count);
}
void Controller::on_Yes_clicked()
{
state = 1;
ui->Continue->setEnabled(false);
ui->Continue->setVisible(false);
ui->RunningView->setEnabled(true);
m_pTimer.start(1000 / 24);
if (sndAvail) sndGame->play();
}
void Controller::on_No_clicked()
{
state = -1;
init();
}
void Controller::on_GameStart_clicked()
{
GameStart();
}
void Controller::on_Confirm_clicked()
{
on_No_clicked();
}
void Controller::on_GamePassConfirm_1_clicked()
{
on_No_clicked();
}
void Controller::on_GamePassConfirm_2_clicked()
{
on_No_clicked();
}
void Controller::on_GamePassConfirm_3_clicked()
{
on_No_clicked();
}
void Controller::on_GamePassConfirm_4_clicked()
{
on_No_clicked();
}
void Controller::on_setConfig_clicked()
{
ui->Config->setEnabled(true);
ui->Config->setVisible(true);
ui->GameStart->setEnabled(false);
ui->Instruction->setEnabled(false);
ui->GameExit->setEnabled(false);
}
void Controller::GameStart() {
m_pScene.clear();
ui->RunningView->setFocus();
m_pTimer.start(1000/24);
if (sndAvail) {
sndBackGround->stop();
sndGame->play();
sndGame->setLoops(-1);
}
if (state == -1) state = 1;
ui->RunningView->setEnabled(true);
ui->RunningView->setVisible(true);
ui->Atribute->setEnabled(true);
ui->Atribute->setVisible(true);
ui->StartWidget->setEnabled(false);
ui->StartWidget->setVisible(false);
/* ScoreBoard */
m_pScore = new QGraphicsPixmapItem(m_pImages->hImgScore);
/* 显示在顶层 */
m_pScore->setZValue(1);
m_pScene.addItem(m_pScore);
m_pScore->setPos(5, 5);
for (int i = 0; i < 5; i++) {
m_ScoreNum[i] = new QGraphicsPixmapItem(m_pImages->hImgNum[0]);
m_pScene.addItem(m_ScoreNum[i]);
m_ScoreNum[i]->setPos(35 * i + 100, 22);
/* 显示在得分板上面 */
m_ScoreNum[i]->setZValue(2);
}
/* LifeBoard */
m_pRoleLife = new RoleLife(m_pImages->hImgLife, &m_pScene);
/* 角色初始子弹伤害值为2 */
RoleCurrentDamage = 2;
flag_win = false;
/* 创建角色 默认为姜云凡 */
m_pRole = new Role(m_pImages->hImgRole[0], &m_pScene, 0);
m_pRoleHealth = new RoleHealth(HEALTH[0], m_pImages->hImgHealth, &m_pScene);
/* 角色初始化 */
ResetRole();
/* AttributeBoard */
m_HPNum[2] = new QGraphicsPixmapItem(m_pImages->hImgAttNum[m_pRoleHealth->getHP() % 10]);
m_HPNum[1] = new QGraphicsPixmapItem(m_pImages->hImgAttNum[(m_pRoleHealth->getHP() / 10) % 10]);
m_HPNum[0] = new QGraphicsPixmapItem(m_pImages->hImgAttNum[(m_pRoleHealth->getHP() / 100) % 10]);
for (int i = 0; i < 3; i++) {
m_pScene.addItem(m_HPNum[i]);
m_HPNum[i]->setPos(1330 + 16 * i, 125);
m_HPNum[i]->setZValue(1);
}
m_damage[2] = new QGraphicsPixmapItem(m_pImages->hImgAttNum[m_pRole->getDamage() % 10]);
m_damage[1] = new QGraphicsPixmapItem(m_pImages->hImgAttNum[(m_pRole->getDamage() / 10) % 10]);
m_damage[0] = new QGraphicsPixmapItem(m_pImages->hImgAttNum[(m_pRole->getDamage() / 100) % 10]);
for (int i = 0; i < 3; i++) {
m_pScene.addItem(m_damage[i]);
m_damage[i]->setPos(1330 + 16 * i, 177);
m_damage[i]->setZValue(1);
}
m_protect = new QGraphicsPixmapItem(m_pImages->hImgAttNum[m_pRole->getProtect()]);
m_pScene.addItem(m_protect);
m_protect->setPos(1330, 215);
m_protect->setZValue(1);
m_speed = new QGraphicsPixmapItem(m_pImages->hImgAttNum[m_pRole->getSpeed()]);
m_pScene.addItem(m_speed);
m_speed->setPos(1330, 253);
m_speed->setZValue(1);
m_pEnemyList = new QList<Enemy*>();
m_pEnemyBulletList = new QList<Bullet*>();
m_pExplodeList = new QList<Explode*>();
m_pGoodsList = new QList<Goods*>();
this->totScore = 0;
}
void Controller::GamePause() {
if (state == 0) {
state = 1;
if (sndAvail) sndGame->play();
}
else if (state == 1) {
state = 0;
m_pTimer.stop();
if (sndAvail) sndGame->stop();
}
ui->RunningView->setEnabled(false);
ui->Continue->setEnabled(true);
ui->Continue->setVisible(true);
}
void Controller::GameEnd() {
state = 2;
m_pTimer.stop();
sndGame->stop();
ui->RunningView->setEnabled(false);
if (flag_win == true) {
if (sndAvail) sndWin->play();
ui->GamePass->setCurrentIndex(m_pRole->getKey());
ui->GamePass->setEnabled(true);
ui->GamePass->setVisible(true);
}
else {
if (sndAvail) sndLost->play();
ui->GameOver->setEnabled(true);
ui->GameOver->setVisible(true);
}
}
void Controller::GameWaitReset() {
state = 3;
m_pTimer.stop();
sndGame->stop();
ResetRole();
ui->RunningView->setEnabled(false);
ui->Continue->setEnabled(true);
ui->Continue->setVisible(true);
}
void Controller::ResetRole() {
if (m_pRoleLife->getLifeNum() > 0) {
m_pRoleLife->setLifeNum(m_pRoleLife->getLifeNum() - 1); // 初始设置生命数
/* 更换角色 */
int key = ROLENUM - 1 - m_pRoleLife->getLifeNum();
m_pRole->setKey(key);
m_pRole->Reset();
m_pRole->setPixmap(m_pImages->hImgRole[key]);
m_pRole->setFireMode(m_pImages->hImgBullet[key], RoleCurrentDamage, 0);
isGoingUp = isGoingDown = isGoingLeft = isGoingRight = false;
isFire = false;
m_pRoleHealth->setHP(m_pRole->getHealth()); // 获取生命值
/* 游戏恢复运行 */
this->state = 1;
}
}
void Controller::setRoleFireMode(int type, int damage) {
if (m_pRole != nullptr)
m_pRole->setFireMode(m_pImages->hImgBullet[m_pRole->getKey()], damage, type);
}
void Controller::addEnemy() {
static int i = 0;
static int life_count = 1, type_count = 1;
i++;
if (i % 50 == 0 && type_count < 4) type_count += 1;
if (i == 6000) {
life_count++; i = 0;
}
if (m_pEnemyList->size() < 10 && rand() % 100 > 95)
/* enemy的生命值会随count递增 时间越长 enemy生命值越高 type取值范围也越大 */
m_pEnemyList->append(new Enemy(m_pImages->hImgEnemy[rand() % ENEMYNUM], &m_pScene, this, life_count * 20, rand() % type_count));
}
void Controller::addGoods() {
if (m_pGoodsList->size() < 30 && rand() % 1000 > 990) {
int type = rand() % 30;
m_pGoodsList->append(new Goods(m_pImages->hImgGoods[type], &m_pScene, type));
}
}
void Controller::allEnemyRun() {
addEnemy();
for (auto &i : *m_pEnemyList) {
i->EnemyRun();
/* 判断enemy是否被role击中 */
i->beHit(m_pRole);
/* enemy与role相撞 */
if (!m_pRole->isDead() && i->isCollision(m_pRole)) {
/* role血量减少 */
m_pRole->addHealth(-i->getDamage());
if (sndAvail) {
if (m_pRole->getKey() < 2) sndHurt_male->play();
else sndHurt_female->play();
}
m_pExplodeList->append(new Explode(i->getDamage(), getImages()->hImgMinus, getImages()->hImgDelNum, this, &m_pScene));
/* 如果role死亡 爆炸 */
if (m_pRole->isDead()) {
if (m_pRoleLife->getLifeNum() > 0) GameWaitReset();
else GameEnd();
}
m_pRoleHealth->setHP(m_pRole->getHealth());
/* enemy血量减少 */
i->addHealth(-m_pRole->getDamage());
}
}
for (QList<Enemy*>::iterator i = m_pEnemyList->begin(); i != m_pEnemyList->end();) {
if ((*i)->isDead()) {
/* 得到enemy相应分值 */
totScore += (*i)->getScore();
if (totScore >= WINSCORE) {
flag_win = true; state = 2; GameEnd();
}
m_pRole->setScore((*i)->getScore());
m_pRole->changeType();
m_pScene.removeItem(*i);
i = m_pEnemyList->erase(i); /* 消除该enemy对象 */
}
else i++;
}
}
void Controller::allRun() {
/* 所有角色发出的子弹移动 */
if (m_pRole->isDead() == false) RoleRun();
m_pRole->allRoleBulletRun();
/* 所有enemy发出的子弹移动 */
allEnemyRun();
allEnemyBulletRun();
allGoodsRun();
updateScore();
}
void Controller::RoleRun() {
if (m_pRole == nullptr) return;
if (isFire) m_pRole->Fire();
if (isGoingUp) m_pRole->up();
if (isGoingDown) m_pRole->down();
if (isGoingLeft) m_pRole->left();
if (isGoingRight) m_pRole->right();
}
void Controller::allEnemyBulletRun() {
/* 遍历enemy子弹链表 */
for (auto &i : *m_pEnemyBulletList) {
i->BulletRun();
/* Role is hit */
if (!m_pRole->isDead() && i->isCollision(m_pRole)) {
if (i->getDamage() - m_pRole->getProtect() > 0) {
m_pRole->addHealth(-(i->getDamage() - m_pRole->getProtect()));
if (sndAvail) {
if (m_pRole->getKey() < 2) sndHurt_male->play();
else sndHurt_female->play();
}
m_pExplodeList->append(new Explode(i->getDamage() - m_pRole->getProtect(), getImages()->hImgMinus, getImages()->hImgDelNum, this, &m_pScene));
}
/* Role is dead, explode */
if (m_pRole->isDead()) {
m_pRole->setVisible(false);
if (m_pRoleLife->getLifeNum() > 0) GameWaitReset();
else GameEnd();
}
m_pRoleHealth->setHP(m_pRole->getHealth());
i->setDead(true); /* 子弹用过消亡 */
}
}
for (QList<Bullet*>::iterator i = m_pEnemyBulletList->begin(); i != m_pEnemyBulletList->end(); )
if ((*i)->isDead()) {
m_pScene.removeItem(*i);
i = m_pEnemyBulletList->erase(i);
}
else i++;
}
void Controller::allGoodsRun() {
addGoods();
for (auto &i : *m_pGoodsList) {
i->GoodsRun();
/* role得到物品 */
if (!m_pRole->isDead() && i->isCollision(m_pRole)) {
/* 物品效果 */
if (sndAvail) sndGood->play();
if (i->getType() < 5) {
/* random buff */
int temp = rand() % 4;
switch (temp) {
case 0: // hp
if (m_pRoleHealth->getHP() + 10 <= HEALTH[m_pRole->getKey()]) {
m_pRoleHealth->setHP(m_pRoleHealth->getHP() + 10);
m_pExplodeList->append(new Explode(10, getImages()->hImgPlus, getImages()->hImgIncreNum, this, &m_pScene));
}
break;
case 1: // speed
// speed上限为8
if (m_pRole->getSpeed() + 1 < 9)
m_pRole->setSpeed(m_pRole->getSpeed() + 1);
break;
case 2: // protect
// protect上限为5
if (m_pRole->getProtect() + 1 < 6)
m_pRole->setProtect(m_pRole->getProtect() + 1);
break;
case 3: // damage
// damage上限为250
if (m_pRole->getDamage() + 10 <= 250)
m_pRole->setDamage(m_pRole->getDamage() + 10);
RoleCurrentDamage += 1;
break;
}
}
else if (i->getType() < 10) {// hp
if (m_pRoleHealth->getHP() + 10 <= HEALTH[m_pRole->getKey()]) {
m_pRoleHealth->setHP(m_pRoleHealth->getHP() + 10);
m_pExplodeList->append(new Explode(10, getImages()->hImgPlus, getImages()->hImgIncreNum, this, &m_pScene));
}
}
// speed
else if (i->getType() < 13) {
if (m_pRole->getKey() < 2) // male
if (m_pRole->getSpeed() + 1 < 9)
m_pRole->setSpeed(m_pRole->getSpeed() + 1);
}
else if (i->getType() < 16) {
if (m_pRole->getKey() >= 2)
if (m_pRole->getSpeed() + 1 < 9)
m_pRole->setSpeed(m_pRole->getSpeed() + 1);
}
// protect
else if (i->getType() < 19) {
if (m_pRole->getKey() < 2)
if (m_pRole->getProtect() + 1 < 6)
m_pRole->setProtect(m_pRole->getProtect() + 1);
}
else if (i->getType() < 22) {
if (m_pRole->getKey() >= 2)
if (m_pRole->getProtect() + 1 < 6)
m_pRole->setProtect(m_pRole->getProtect() + 1);
}
// damage
else if (i->getType() < 24) {
if (m_pRole->getKey() == 0) {// 姜
if (m_pRole->getDamage() + 10 <= 250)
m_pRole->setDamage(m_pRole->getDamage() + 10);
RoleCurrentDamage += 1;
}
}
else if (i->getType() < 26) {
if (m_pRole->getKey() == 1) {// 龙
if (m_pRole->getDamage() + 10 <= 250)
m_pRole->setDamage(m_pRole->getDamage() + 10);
RoleCurrentDamage += 1;
}
}
else if (i->getType() < 28) {
if (m_pRole->getKey() == 2) {// 蛮
if (m_pRole->getDamage() + 10 <= 250)
m_pRole->setDamage(m_pRole->getDamage() + 10);
RoleCurrentDamage += 1;
}
}
else {
if (m_pRole->getKey() == 3) {// 唐
if (m_pRole->getDamage() + 10 <= 250)
m_pRole->setDamage(m_pRole->getDamage() + 10);
RoleCurrentDamage += 1;
}
}
i->setDead(true);
}
}
updateAttribute();
for (QList<Goods*>::iterator i = m_pGoodsList->begin(); i != m_pGoodsList->end();) {
if ((*i)->isDead() == true) {
m_pScene.removeItem(*i);
i = m_pGoodsList->erase(i);
}
else i++;
}
}
void Controller::GameUpdate() {
allRun();
updateAllExplode();
updateAllGoods();
m_pScene.update();
}
void Controller::updateScore() {
int num[5] = { 0 };
num[4] = totScore % 10;
num[3] = (totScore / 10) % 10;
num[2] = (totScore / 100) % 10;
num[1] = (totScore / 1000) % 10;
num[0] = (totScore / 10000) % 10;
for (int i = 0; i < 5; i++)
m_ScoreNum[i]->setPixmap(m_pImages->hImgNum[num[i]]);
}
void Controller::updateAttribute() {
int hp = m_pRoleHealth->getHP();
m_HPNum[2]->setPixmap(m_pImages->hImgAttNum[hp % 10]);
m_HPNum[1]->setPixmap(m_pImages->hImgAttNum[(hp / 10) % 10]);
m_HPNum[0]->setPixmap(m_pImages->hImgAttNum[(hp / 100) % 10]);
m_damage[2]->setPixmap(m_pImages->hImgAttNum[m_pRole->getDamage() % 10]);
m_damage[1]->setPixmap(m_pImages->hImgAttNum[(m_pRole->getDamage() / 10) % 10]);
m_damage[0]->setPixmap(m_pImages->hImgAttNum[(m_pRole->getDamage() / 100) % 10]);
m_protect->setPixmap(m_pImages->hImgAttNum[m_pRole->getProtect()]);
m_speed->setPixmap(m_pImages->hImgAttNum[m_pRole->getSpeed()]);
}
void Controller::updateAllExplode() {
for (QList<Explode*>::iterator i = m_pExplodeList->begin(); i != m_pExplodeList->end();)
if ((*i)->isDead()) {
m_pScene.removeItem(*i);
i = m_pExplodeList->erase(i);
}
else i++;
}
void Controller::updateAllGoods() {
for (QList<Goods*>::iterator i = m_pGoodsList->begin(); i != m_pGoodsList->end();)
if ((*i)->isDead()) {
m_pScene.removeItem(*i);
i = m_pGoodsList->erase(i);
}
else i++;
}
void Controller::on_openSound_clicked()
{
tempAvail = true;
}
void Controller::on_closeSound_clicked()
{
tempAvail = false;
}
void Controller::on_confirmConfig_clicked()
{
if (tempAvail == false) sndBackGround->stop();
else if (sndAvail == false && tempAvail == true) sndBackGround->play();
sndAvail = tempAvail;
ui->Config->setEnabled(false);
ui->Config->setVisible(false);
ui->GameStart->setEnabled(true);
ui->Instruction->setEnabled(true);
ui->GameExit->setEnabled(true);
}
void Controller::on_cancelConfig_clicked()
{
if (sndAvail == true) ui->openSound->setChecked(true);
else ui->closeSound->setChecked(true);
ui->Config->setEnabled(false);
ui->Config->setVisible(false);
ui->GameStart->setEnabled(true);
ui->Instruction->setEnabled(true);
ui->GameExit->setEnabled(true);
}
| [
"151220127@smail.nju.edu.cn"
] | 151220127@smail.nju.edu.cn |
223b24f23aab174e4c21a9b40f6e672a8b4e800e | f53267d2223a023e1c643a648dd9bed4f1e58c53 | /software/C64/source/stdafx.cpp | 464152bf1c5cc16ca0f67d44f58462e80888a3d5 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | robfinch/Cores | 9eec2c88ba7c2495ed5c1bdde9ff1fd82436a6cd | 0015669674bafdc4eff56e816cf714c975536fc3 | refs/heads/master | 2023-07-06T21:07:31.639981 | 2023-06-28T23:05:20 | 2023-06-28T23:05:20 | 13,174,959 | 58 | 27 | null | 2017-08-12T12:03:51 | 2013-09-28T15:03:00 | C++ | UTF-8 | C++ | false | false | 201 | cpp | // stdafx.cpp : source file that includes just the standard includes
// C64PView.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
| [
"robfinch@sympatico.ca"
] | robfinch@sympatico.ca |
07ee1997ae8a68ed1df7b0b4f5a1a0f8ab607d13 | 458a9282705b089bdfb49ce83e1ae8dc13f56fde | /contents/code/questions/question.cpp | 2ed762cdfc89c590ba45300ee68f391c060b7043 | [] | no_license | jperichon/kusabilitysurvey | 1f7aa9ed411721b768ef26b0d221aa26b8b303b2 | e3295b3ea7167864ef3a499deeac058be82592a2 | refs/heads/master | 2020-05-09T13:05:38.864454 | 2012-09-09T15:36:18 | 2012-09-09T15:36:18 | 2,420,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,577 | cpp | /*
* Copyright 2011 Jonathan Perichon <jonathan.perichon@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) version 3 or any later version
* accepted by the membership of KDE e.V. (or its successor approved
* by the membership of KDE e.V.), which shall act as a proxy
* defined in Section 14 of version 3 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "question.h"
#include <QtCore/QString>
#include <QtGui/QGraphicsWidget>
#include <Plasma/Label>
#include <boost/optional.hpp>
class Question::Private
{
public:
/** the question's value */
QString m_value;
/** the question's description */
boost::optional<QString> m_description;
/** indicates whether the question is required or not */
boost::optional<bool> m_required;
};
Question::Question()
: d_ptr(new Private)
{
}
Question::Question(const QString& val,
const boost::optional<QString>& desc,
const boost::optional<bool>& required)
: d_ptr(new Private)
{
d_ptr->m_value = val;
d_ptr->m_description = desc;
d_ptr->m_required = required;
}
Question::~Question()
{
delete d_ptr;
}
bool Question::operator==(const Question& q) const
{
if(this == &q || this->d_ptr == q.d_ptr) return true;
return d_ptr->m_value == q.d_ptr->m_value &&
d_ptr->m_description == q.d_ptr->m_description &&
d_ptr->m_required == q.d_ptr->m_required;
}
void Question::setupUi(QGraphicsWidget *q) const
{
Plasma::Label title(q);
title.setText(d_ptr->m_value);
if(d_ptr->m_description) {
Plasma::Label desc(q);
desc.setText(*d_ptr->m_description);
}
}
QString Question::toString() const
{
QString str;
str += QString("\n\t\tValue: %1").arg(d_ptr->m_value);
if(d_ptr->m_description) {
str += QString("\n\t\tDescription: %1").arg(d_ptr->m_description.get());
}
str += QString("\n\t\tIs required? %1").arg(d_ptr->m_required && d_ptr->m_required.get() ? "true" : "false");
return str;
}
| [
"jonathan.perichon@gmail.com"
] | jonathan.perichon@gmail.com |
e340add61394f65a48489d1ebf865dc406ede323 | bd1fea86d862456a2ec9f56d57f8948456d55ee6 | /000/074/747/CWE124_Buffer_Underwrite__new_char_cpy_51b.cpp | df5d56f0c03db96da38590397d57971c3aefc542 | [] | no_license | CU-0xff/juliet-cpp | d62b8485104d8a9160f29213368324c946f38274 | d8586a217bc94cbcfeeec5d39b12d02e9c6045a2 | refs/heads/master | 2021-03-07T15:44:19.446957 | 2020-03-10T12:45:40 | 2020-03-10T12:45:40 | 246,275,244 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,869 | cpp | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE124_Buffer_Underwrite__new_char_cpy_51b.cpp
Label Definition File: CWE124_Buffer_Underwrite__new.label.xml
Template File: sources-sink-51b.tmpl.cpp
*/
/*
* @description
* CWE: 124 Buffer Underwrite
* BadSource: Set data pointer to before the allocated memory buffer
* GoodSource: Set data pointer to the allocated memory buffer
* Sink: cpy
* BadSink : Copy string to data using strcpy
* Flow Variant: 51 Data flow: data passed as an argument from one function to another in different source files
*
* */
#include "std_testcase.h"
#include <wchar.h>
namespace CWE124_Buffer_Underwrite__new_char_cpy_51
{
/* all the sinks are the same, we just want to know where the hit originated if a tool flags one */
#ifndef OMITBAD
void badSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possibly copying data to memory before the destination buffer */
strcpy(data, source);
printLine(data);
/* INCIDENTAL CWE-401: Memory Leak - data may not point to location
* returned by new [] so can't safely call delete [] on it */
}
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodG2B uses the GoodSource with the BadSink */
void goodG2BSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possibly copying data to memory before the destination buffer */
strcpy(data, source);
printLine(data);
/* INCIDENTAL CWE-401: Memory Leak - data may not point to location
* returned by new [] so can't safely call delete [] on it */
}
}
#endif /* OMITGOOD */
} /* close namespace */
| [
"frank@fischer.com.mt"
] | frank@fischer.com.mt |
dae21847019153a2e40a0356d60d44e1ca4a8e83 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_repos_function_504_httpd-2.0.44.cpp | 39fa49ec7dc709247730bd7b6b963d97f18cb26d | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | static const char *non_regex_pattern(apr_pool_t *p, const char *s)
{
const char *src = s;
int escapes_found = 0;
int in_escape = 0;
while (*src) {
if (in_escape) {
in_escape = 0;
}
else {
switch (*src) {
case '^':
case '.':
case '$':
case '|':
case '(':
case ')':
case '[':
case ']':
case '*':
case '+':
case '?':
case '{':
case '}':
return NULL;
case '\\':
in_escape = 1;
escapes_found = 1;
}
}
src++;
}
if (!escapes_found) {
return s;
}
else {
char *unescaped = (char *)apr_palloc(p, src - s + 1);
char *dst = unescaped;
src = s;
do {
if (*src == '\\') {
src++;
}
} while ((*dst++ = *src++));
return unescaped;
}
} | [
"993273596@qq.com"
] | 993273596@qq.com |
7926d47eaff1052de9a96ac79fdc03c0d0469e17 | 30b531b49b68e887b8ef3cf1758cbcf4c86c5773 | /src/method.h | 3c9312432ee9dfedc08f9add859a0d1fbc8c9dfa | [] | no_license | AjaySharma02/Test | 1ce08f7312a588e80bcf8e546065867f6dce5a77 | 1f713441b2692e575c012718ca123220ac3ad560 | refs/heads/master | 2022-12-31T06:26:23.765498 | 2020-10-09T13:19:13 | 2020-10-09T13:19:13 | 292,785,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 978 | h | #ifndef METHOD_H
#define METHOD_H
#include <string>
namespace method {
static const std::string METHOD_TV_SETTINGS = "tv_settings";
static const std::string METHOD_STATE = "state";
static const std::string METHOD_PAIRING = "pairing";
static const std::string METHOD_OOBE = "oobe";
static const std::string METHOD_ULI = "uli";
static const std::string METHOD_PIN = "pin";
static const std::string METHOD_SYSTEM = "system";
static const std::string METHOD_KEY_COMMAND = "key_command";
static const std::string METHOD_APP = "app";
static const std::string METHOD_SERVER = "server";
static const std::string METHOD_AIRPLAY = "airplay";
static const std::string METHOD_HOMEKIT = "homekit";
static const std::string METHOD_SYSTEM_MENU = "system_menu";
static const std::string METHOD_CONJURE = "conjure";
static const std::string METHOD_AUDIO = "audio";
};
#endif /* METHOD_H */
| [
"jenkins@ip-172-31-0-254.us-west-2.compute.internal"
] | jenkins@ip-172-31-0-254.us-west-2.compute.internal |
e2bb8fee9f8ef03898a2accc96007fccef08f52f | 2489f20116dfa10e4514b636cbf92a6036edc21a | /tojcode/2930.cpp | 64e04e0a4b7728331c914aa99a0ba1cb5c8129c3 | [] | no_license | menguan/toj_code | 7db20eaffce976932a3bc8880287f0111a621a40 | f41bd77ee333c58d5fcb26d1848a101c311d1790 | refs/heads/master | 2020-03-25T04:08:41.881068 | 2018-08-03T05:02:38 | 2018-08-03T05:02:38 | 143,379,558 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cpp | #include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<iomanip>
using namespace std;
#define N 1000005
int head[N];
struct G
{
int v,next;
double cost;
}edge[N];
double sum ;
bool vis[N];
int n;
int dian[N];
int dfs(int u)
{
dian[u] = 1;
vis[u] = true;
for(int j = head[u];j!=-1;j=edge[j].next)
{
int v = edge[j].v;
if(!vis[v])
{
dian[v] = dfs(v);
dian[u] += dian[v];
sum+=dian[v]*(n-dian[v])*edge[j].cost;//
//cout<<u<<" "<<v<<" "<<" "<<dian[v]<<" "<<edge[j].cost<<endl;
}
}
return dian[u];
}
int enu;
void addedge(int a,int b,double c)
{
edge[enu].v = b;
edge[enu].next = head[a];
edge[enu].cost = c;
head[a] = enu++;
}
int main()
{
int t;
cin>>t;
while(t--)
{
int a,b;
double c;
memset(head,-1,sizeof(head));
cin>>n;
enu = 0;
for(int i = 0;i<n-1;i++)
{
cin>>a>>b>>c;
addedge(a,b,c);
addedge(b,a,c);
}
sum = 0;
memset(dian,0,sizeof(dian));
memset(vis,0,sizeof(vis));
dfs(0);
sum/=(n*(n-1)/2.0);
cout<<setprecision(6)<<fixed<<sum<<endl;
}
}
| [
"qq1812755792@sina.com"
] | qq1812755792@sina.com |
15bf269db1bb1536f1d2fa0d0ce52f25956ce703 | 334b1def112fa1118ec2d4a256eea2fbe80ea1e2 | /player.h | 307ea1bd548fc77c75433e258cf0930c377b8fcd | [] | no_license | npbendre/2D-Game-Engine- | 239eff0f42773ba5efa42c5dd1e2bb3f0287af91 | 4e090bd26c1dc2fbb489c04753e0afac92ee2f4b | refs/heads/master | 2021-01-25T07:19:27.543178 | 2012-03-04T05:04:22 | 2012-03-04T05:04:22 | 3,616,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | h | #include "sprite.h"
class Player : public Sprite {
public:
Player(Vector2f pos, Vector2f vel, Frame* f) :
Sprite(pos, vel, f),
ballWidth( f->getWidth() ), ballHeight( f->getWidth() )
{}
virtual void update() { Sprite::update(); }
void stop() { velocity = Vector2f(0, 0); }
void right();
void left();
void up();
void down();
private:
float ballWidth;
float ballHeight;
};
| [
"npbendre@gmail.com"
] | npbendre@gmail.com |
91fce4fbd114f9d3fd91d6b658895b74632542a5 | 24e400b878c2e410c5afbcc007f2e219fd4f7644 | /include/STPrimaryGeneratorAction.hh | 573ce86955edbd5f798caa616706b68461d5bdc4 | [] | no_license | nburmaso/SiliconTracker | 33fec133294f736cb431086b2dc6e7990014a86e | 905500cae32274400c0da0d81443f6f813c328e3 | refs/heads/master | 2023-04-30T16:18:20.251300 | 2021-05-19T14:13:24 | 2021-05-19T14:13:24 | 359,834,817 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | hh | #ifndef S1PrimaryGeneratorAction_h
#define S1PrimaryGeneratorAction_h 1
#include "G4VUserPrimaryGeneratorAction.hh"
#include "G4ParticleGun.hh"
class G4ParticleGun;
class G4Event;
class STPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
public:
STPrimaryGeneratorAction();
virtual ~STPrimaryGeneratorAction();
virtual void GeneratePrimaries(G4Event*);
private:
G4ParticleGun* fParticleGun;
};
#endif
| [
"nazar.burmasov@cern.ch"
] | nazar.burmasov@cern.ch |
2ce8697b587581fe4549abf8ce1775404f39a5ec | 8a71e93f6dcda2428999143370d5fe4219327d3f | /solutions/yAgzZqAL.cpp | 7d30aec4d17f0f7ff8915845b508900cbb033908 | [
"MIT"
] | permissive | randauto/cpp-solutions | 21dce36fd4e10dbea3945d37be0cb2510210d446 | 627397fb887654e9f5ee64cfb73d708f6f6706f7 | refs/heads/main | 2023-09-02T11:15:20.336637 | 2021-11-18T01:03:00 | 2021-11-18T01:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,901 | cpp | /*
Sưu tầm bởi @nguyenvanhieuvn
Thực hành nhiều bài tập hơn tại https://luyencode.net/
*/
#include<stdio.h>
#include<conio.h>
#include<math.h>
#define MAX 100
void NhapMang(int a[][MAX], int &dong, int &cot)
{
//Nhập số dòng
do
{
printf("\nNhap vao so dong: ");
// Cách tà đạo: scanf("dong =%d",&dong); // Lúc nhập phải viết thêm chữ ( dong = ) ở khung console
scanf("%d",&dong);
if(dong < 1 || dong > MAX)
{
printf("\nSo dong khong hop le. Xin kiem tra lai!");
}
}while(dong < 1 || dong > MAX);
//Nhập số cột
do
{
printf("\nNhap vao so cot: ");
scanf("%d",&cot);
if(cot < 1 || cot > MAX)
{
printf("\nSo cot khong hop le. Xin kiem tra lai!");
}
}while(cot < 1 || cot > MAX);
for(int i = 0; i < dong; i++)
{
for(int j = 0; j < cot; j++)
{
printf("\nNhap a[%d][%d] = ", i, j);
scanf("%d", &a[i][j]);
}
}
}
void XuatMang(int a[][MAX], int dong, int cot)
{
for(int i = 0; i < dong; i++)
{
for(int j = 0; j < cot; j++)
{
printf("%4d", a[i][j]);
}
printf("\n\n");
}
}
int KiemTraMaTranCoTonTaiSoDuong(int a[][MAX], int dong, int cot)
{
int flag = 0;
for(int i = 0; i < dong; i++)
{
for(int j = 0; j < cot; j++)
{
if(a[i][j] > 0)
{
flag = 1;
}
}
}
return flag;
}
int main()
{
int a[MAX][MAX], dong, cot;
NhapMang(a, dong, cot);
XuatMang(a, dong, cot);
int flag = KiemTraMaTranCoTonTaiSoDuong(a, dong, cot);
if(flag == 1)
{
printf("\nMa tran co ton tai so duong");
}
else
{
printf("\nKhong tim thay");
}
getch();
return 0;
} | [
"hieunv.dev@gmail.com"
] | hieunv.dev@gmail.com |
1aa04ae308634ef90f97dbbeee4926cef2598906 | 4c1d515719425db127ba5285b5be4f03af10d5a1 | /UVa-Judge/UVa_11157.cpp | 0692e3d29cb6e0e6c79db211f7402b63ada0ea48 | [] | no_license | matheusmtta/Competitive-Programming | 26e51741332aed223b9231da33749940f5a1b977 | e254b80090cc75bc213aad0a7957875842e90f1a | refs/heads/master | 2023-04-28T18:08:51.417470 | 2023-04-24T21:09:00 | 2023-04-24T21:09:00 | 223,605,672 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,536 | cpp | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF (int)0x3f3f3f3f
#define LINF (long long)0x3f3f3f3f3f3f3f3fll
#define mp make_pair
#define pb push_back
typedef long int int32;
typedef unsigned long int uint32;
typedef long long int int64;
typedef unsigned long long int uint64;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t; cin >> t;
int q = 1;
while (t--){
int64 n, sz; cin >> n >> sz;
vector <pair<int64, pair<char, int>>> arr;
arr.push_back({sz, {'B', 0}});
arr.push_back({0, {'B',0}});
for (int i = 0; i < n; i++){
char k, aux;
cin >> k >> aux;
int64 x; cin >> x;
arr.push_back({x, {k, 0}});
}
sort(arr.begin(), arr.end());
int64 ans = -1;
pair<int64, pair<char, int>> curr = {0,{'B',0}};
bool flag = 0;
for (int i = 1; i <= n+1; i++){
if (arr[i].first <= curr.first) continue;
if (arr[i].second.first == 'B'){
ans = max(abs(arr[i].first-curr.first), ans);
curr = arr[i];
flag = 0;
}
else {
if (flag) {
flag = 0;
continue;
} //alternating small stones
ans = max(abs(arr[i].first-curr.first), ans);
curr = arr[i];
arr[i].second.second = 1;
flag = 1;
}
}
reverse(arr.begin(), arr.end());
curr = {sz, {'B', 0}};
for (int i = 1; i <= n+1; i++){
if (arr[i].first >= curr.first || arr[i].second.second == 1)
continue;
ans = max(ans, abs(arr[i].first-curr.first));
curr = arr[i];
}
cout << "Case " << q++ << ": " << ans << endl;
}
return 0;
} | [
"noreply@github.com"
] | noreply@github.com |
5cb4bc9e12b096e9882ddac5d5799edbe98a379c | 6fafdbe916c2469c0b8c56a4da86ac819bd0da37 | /code/branch-cut-price/Rota.h | 9c71482a752fb3be54ecdb38e6939bde3bc3d1db | [] | no_license | lulzzz/phd-cross-docking | ca84b7f749be778b27cd72b0a2f54e35b075969f | 980e5abc9402cadeff5916c63bc8298df8aaf247 | refs/heads/master | 2021-05-09T15:08:44.878172 | 2017-02-17T17:36:47 | 2017-02-17T17:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | h | #ifndef ROTA_H_
#define ROTA_H_
#include "Grafo.h"
#include <vector>
using namespace std;
class Rota{
private:
vector< int > vertices;
float custo;
float custoReduzido;
int numApontadores;
public:
Rota();
~Rota();
void setVertices(vector<int>);
vector<int> getVertices();
void setCusto(Grafo*);
float getCusto();
void setCustoReduzido(float);
void setCustoReduzido(Grafo*);
float getCustoReduzido();
void incrNumApontadores();
bool decrNumApontadores();
int getNumApontadores();
void inserirVerticeFim(int);
void inserirVerticeInicio(int);
void imprimir();
};
#endif /*ROTA_H_*/
| [
"fasantos@uwaterloo.ca"
] | fasantos@uwaterloo.ca |
6add42fd10f0dba8a6335328b67c09384a12769a | 056e06fa06261992b771d2c7b77d9d60f8c2ec17 | /Hacker Rank/Warm Up/AngryChildern.cpp | 9b81275c74f3aec1c30269b63d0aa91514ec3a8f | [] | no_license | KedarBiradar/Problem-Solving | 7a2943e57227b9472ff58b4622b97e340de12af4 | 69c41cbd9a7639b09b7112ede7f431e224538c96 | refs/heads/master | 2016-09-08T01:19:47.913554 | 2014-10-01T12:40:22 | 2014-10-01T12:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | cpp | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <algorithm>
using namespace std;
#define MAX 100000
#define MAX_VAL 1000000001
int candies[MAX];
/** The code to read from STDIN and output to STDOUT has been provided by us, for convenience. You may or may not use this. **/
int main() {
int N,K;
int i;
scanf("%d %d",&N,&K);
for(i = 0;i < N;i++)
scanf("%d",candies + i);
sort(candies,candies+N);
//int unfairness = // Compute the min unfairness over here, using N,K,candies
int min=candies[K-1]-candies[0];
for(i=K;i<N;i++)
{
if(min>(candies[i]-candies[i-K+1]))
min=candies[i]-candies[i-K+1];
}
printf("%d",min);
return 0;
}
| [
"biradar.kedar96@gmail.com"
] | biradar.kedar96@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.