hexsha
stringlengths 40
40
| size
int64 7
1.05M
| ext
stringclasses 13
values | lang
stringclasses 1
value | max_stars_repo_path
stringlengths 4
269
| max_stars_repo_name
stringlengths 5
109
| max_stars_repo_head_hexsha
stringlengths 40
40
| max_stars_repo_licenses
listlengths 1
9
| max_stars_count
int64 1
191k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 4
269
| max_issues_repo_name
stringlengths 5
116
| max_issues_repo_head_hexsha
stringlengths 40
40
| max_issues_repo_licenses
listlengths 1
9
| max_issues_count
int64 1
48.5k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 4
269
| max_forks_repo_name
stringlengths 5
116
| max_forks_repo_head_hexsha
stringlengths 40
40
| max_forks_repo_licenses
listlengths 1
9
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 7
1.05M
| avg_line_length
float64 1.21
330k
| max_line_length
int64 6
990k
| alphanum_fraction
float64 0.01
0.99
| author_id
stringlengths 2
40
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a195c898295ad1c74cdb666dafbe6a68f74e2f2
| 3,745
|
cpp
|
C++
|
src/wrappers/win32/BHAPI_wrapper_os.cpp
|
stasinek/BHAPI
|
5d9aa61665ae2cc5c6e34415957d49a769325b2b
|
[
"BSD-3-Clause",
"MIT"
] | 3
|
2018-05-21T15:32:32.000Z
|
2019-03-21T13:34:55.000Z
|
src/wrappers/win32/BHAPI_wrapper_os.cpp
|
stasinek/BHAPI
|
5d9aa61665ae2cc5c6e34415957d49a769325b2b
|
[
"BSD-3-Clause",
"MIT"
] | null | null | null |
src/wrappers/win32/BHAPI_wrapper_os.cpp
|
stasinek/BHAPI
|
5d9aa61665ae2cc5c6e34415957d49a769325b2b
|
[
"BSD-3-Clause",
"MIT"
] | null | null | null |
/* --------------------------------------------------------------------------
*
* BHAPI++ Copyright (C) 2017, Stanislaw Stasiak, based on Haiku & ETK++, The Easy Toolkit for C++ programing
* Copyright (C) 2004-2006, Anthony Lee, All Rights Reserved
*
* BHAPI++ library is a freeware; it may be used and distributed according to
* the terms of The MIT License.
*
* 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: BHAPI_wrapper_os.cpp
*
* --------------------------------------------------------------------------*/
#include <os/kernel.h>
#include <kits/support/String.h>
#include <kits/private/PrivateApplication.h>
#include <winsock2.h>
#include <windows.h>
HINSTANCE b_dll_hinstance = NULL;
extern "C" {
//typedef int __stdcall WSAStartup( _In_ WORD wVersionRequested, _Out_ LPWSADATA lpWSAData);
//typedef int WSACleanup(void);
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
b_dll_hinstance = hinstDLL;
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
/* The DLL is being mapped into process's address space */
/* Do any required initialization on a per application basis, return FALSE if failed */
{
WSADATA wsaData;
WSAStartup(0x202, &wsaData);
b_system_boot_time();
BApplicationConnector::Init();
break;
}
case DLL_THREAD_ATTACH:
/* A thread is created. Do any required initialization on a per thread basis*/
{
break;
}
case DLL_PROCESS_DETACH:
/* The DLL unmapped from process's address space. Do necessary cleanup */
{
BApplicationConnector::Quit();
WSACleanup();
break;
}
case DLL_THREAD_DETACH:
/* Thread exits with cleanup */
{
break;
}
}
return TRUE;
}
char* bhapi::win32_convert_active_to_utf8(const char *str, int32 length)
{
if(str == NULL || *str == 0 || length == 0) return NULL;
int32 nChars = (int32)strlen(str);
if(length < 0 || length > nChars) length = nChars;
WCHAR *wStr = (WCHAR*)malloc(sizeof(WCHAR) * (size_t)(length + 1));
if(wStr == NULL) return NULL;
bzero(wStr, sizeof(WCHAR) * (size_t)(length + 1));
MultiByteToWideChar(CP_ACP, 0, str, length, wStr, length);
char *uStr = bhapi::unicode_convert_to_utf8((const unichar16*)wStr, -1);
free(wStr);
return uStr;
}
char* bhapi::win32_convert_utf8_to_active(const char *str, int32 length)
{
unichar16*wStr = bhapi::utf8_convert_to_unicode(str, length);
if(wStr == NULL) return NULL;
int32 len = bhapi::unicode_strlen(wStr);
char *aStr = (char*)malloc((size_t)len * 3 + 1);
if(aStr == NULL)
{
free(wStr);
return NULL;
}
bzero(aStr, (size_t)len * 3 + 1);
WideCharToMultiByte(CP_ACP, 0, (WCHAR*)wStr, -1, aStr, len * 3, NULL, NULL);
free(wStr);
return aStr;
}
} // extern "C"
| 29.031008
| 109
| 0.683311
|
stasinek
|
7a19ab9e1a905b3159798b8bbdf07c38900fe58b
| 4,128
|
hpp
|
C++
|
src/game/asteroid.hpp
|
Abergard/PMC_Asteroids
|
0df023381430a1fd5ec2675a9b1882da63a85bc5
|
[
"MIT"
] | 1
|
2019-08-29T15:07:50.000Z
|
2019-08-29T15:07:50.000Z
|
src/game/asteroid.hpp
|
Abergard/PMC_Asteroids
|
0df023381430a1fd5ec2675a9b1882da63a85bc5
|
[
"MIT"
] | null | null | null |
src/game/asteroid.hpp
|
Abergard/PMC_Asteroids
|
0df023381430a1fd5ec2675a9b1882da63a85bc5
|
[
"MIT"
] | 1
|
2017-09-29T14:41:37.000Z
|
2017-09-29T14:41:37.000Z
|
#pragma once
#include <cassert>
#include "game/game_entity.hpp"
static bool is_object_inside_screen(const component::transform& transform)
{
if (transform.position.x > 400 + 50 || transform.position.x < -400 - 50 ||
transform.position.y > 300 + 50 || transform.position.y < -300 - 50)
{
return false;
}
return true;
}
class Actor
{
public:
virtual ~Actor() = default;
virtual void update(double delta) = 0;
};
struct Asteroid : public Actor
{
game_entity* game_object;
// TODO: replace by movement component
float current_speed{1};
static const int base_speed{30};
// ...
float asteroidBuffer = 0;
Asteroid() = default;
Asteroid(std::vector<game_entity>& game_objects,
component::transform& asteroid_transform,
component::direction& asteroid_direction,
component::rendering_target& asteroid_renderer)
{
asteroid_direction.is_forward = component::direction::forward{true};
asteroid_direction.direction_x = 1;
asteroid_direction.direction_y = -1;
asteroid_renderer.is_visible = true;
asteroid_renderer.color.r = 1.0f;
asteroid_renderer.color.g = 1.0f;
asteroid_renderer.color.b = 1.0f;
asteroid_renderer.lines = {{+50.0f, -10.0f},
{+20.0f, -50.0f},
{-5.0f, -50.0f},
{-5.0f, -25.0f},
{-30.0f, -50.0f},
{-50.0f, -10.0f},
{-25.0f, 0.0f},
{-50.0f, +10.0f},
{-15.0f, +45.0f},
{+20.0f, +45.0f}};
asteroid_renderer.points = {{0.0f, 0.0f}};
game_objects.push_back(game_entity{
asteroid_transform, asteroid_renderer, asteroid_direction});
game_object = &game_objects.back();
move_to_new_position();
}
void update(const double delta) override
{
// if asteroid go on out of screen wait some time before show up in the
// new position
if (!is_object_inside_screen(
*game_object->get<component::transform>()))
{
asteroidBuffer += delta;
if (asteroidBuffer >= 2)
{
asteroidBuffer = 0;
move_to_new_position();
}
}
}
void move_to_new_position()
{
int site = rand() % 2800;
int alfa = 0;
assert(game_object->get<component::transform>() != nullptr);
assert(game_object->get<component::direction>() !=
nullptr); // FIXME: better way to be sure
// that is not null
auto& t = *game_object->get<component::transform>();
auto& d = *game_object->get<component::direction>();
if (site < 800)
{
t.position.x = static_cast<float>(site - 400);
t.position.y = 300 + 50;
t.rotation = static_cast<float>(rand() % 180 + 180);
alfa = rand() % 180 + 180;
}
else if (site < 1400)
{
t.position.x = 400 + 50;
t.position.y = static_cast<float>(site - 1100);
t.rotation = static_cast<float>(rand() % 180 + 90);
alfa = rand() % 180 + 90;
}
else if (site < 2200)
{
t.position.x = static_cast<float>(site - 1800);
t.position.y = -300 - 50;
t.rotation = static_cast<float>(rand() % 180);
alfa = rand() % 180;
}
else
{
t.position.x = -400 - 50;
t.position.y = static_cast<float>(site - 2500);
t.rotation = static_cast<float>(rand() % 180 - 90);
alfa = rand() % 180 - 90;
}
d.direction_x = cos(alfa * M_PI / 180.0f);
d.direction_y = sin(alfa * M_PI / 180.0f);
current_speed =
static_cast<float>(Asteroid::base_speed * (rand() % 3 + 1));
}
};
| 30.80597
| 79
| 0.507267
|
Abergard
|
7a1bb7096617842b43d7158d7ad2ed239ef3146a
| 2,355
|
cpp
|
C++
|
src/builtin/btrc/builtin/renderer/wavefront/soa_buffer.cpp
|
AirGuanZ/Btrc
|
8865eb1506f96fb0230fb394b9fadb1e38f2b9d8
|
[
"MIT"
] | 17
|
2022-02-03T09:35:14.000Z
|
2022-03-28T04:27:05.000Z
|
src/builtin/btrc/builtin/renderer/wavefront/soa_buffer.cpp
|
AirGuanZ/Btrc
|
8865eb1506f96fb0230fb394b9fadb1e38f2b9d8
|
[
"MIT"
] | 1
|
2022-02-09T15:11:55.000Z
|
2022-02-09T15:11:55.000Z
|
src/builtin/btrc/builtin/renderer/wavefront/soa_buffer.cpp
|
AirGuanZ/Btrc
|
8865eb1506f96fb0230fb394b9fadb1e38f2b9d8
|
[
"MIT"
] | null | null | null |
#include <random>
#include <btrc/builtin/renderer/wavefront/soa_buffer.h>
BTRC_WFPT_BEGIN
RayBuffer::RayBuffer(int state_count)
{
o_medium_id_.initialize(state_count);
d_t1_.initialize(state_count);
}
RayBuffer::operator RaySOA()
{
return RaySOA{
.o_med_id_buffer = o_medium_id_,
.d_t1_buffer = d_t1_
};
}
BSDFLeBuffer::BSDFLeBuffer(int state_count)
{
beta_le_bsdf_pdf_.initialize(state_count);
}
BSDFLeBuffer::operator BSDFLeSOA()
{
return BSDFLeSOA{
.beta_le_bsdf_pdf_buffer = beta_le_bsdf_pdf_
};
}
PathBuffer::PathBuffer(int state_count)
{
pixel_coord_.initialize(state_count);
beta_depth_.initialize(state_count);
path_radiance_.initialize(state_count);
sampler_state_.initialize(state_count);
}
PathBuffer::operator PathSOA()
{
return PathSOA{
.pixel_coord_buffer = pixel_coord_,
.beta_depth_buffer = beta_depth_,
.path_radiance_buffer = path_radiance_,
.sampler_state_buffer = sampler_state_
};
}
IntersectionBuffer::IntersectionBuffer(int state_count)
{
path_flag_.initialize(state_count);
t_prim_uv_.initialize(state_count);
}
IntersectionBuffer::operator IntersectionSOA()
{
return IntersectionSOA{
.path_flag_buffer = path_flag_,
.t_prim_id_buffer = t_prim_uv_
};
}
ShadowRayBuffer::ShadowRayBuffer(int state_count)
{
pixel_coord_.initialize(state_count);
beta_li_.initialize(state_count);
ray_ = newRC<RayBuffer>(state_count);
}
ShadowRayBuffer::operator ShadowRaySOA()
{
return ShadowRaySOA{
.pixel_coord_buffer = pixel_coord_,
.beta_li_buffer = beta_li_,
.ray = *ray_
};
}
ShadowSamplerBuffer::ShadowSamplerBuffer(int state_count)
{
buffer_.initialize(state_count);
}
void ShadowSamplerBuffer::clear()
{
const int state_count = static_cast<int>(buffer_.get_size());
std::vector<IndependentSampler::State> rng_init_data(state_count);
for(int i = 0; i < state_count; ++i)
rng_init_data[i].rng = cstd::PCG::Data(static_cast<uint32_t>(i));
std::default_random_engine random_engine{ 42 };
std::shuffle(rng_init_data.begin(), rng_init_data.end(), random_engine);
buffer_.from_cpu(rng_init_data.data());
}
ShadowSamplerBuffer::operator independent_sampler_detail::State*()
{
return buffer_;
}
BTRC_WFPT_END
| 22.644231
| 76
| 0.722718
|
AirGuanZ
|
7a22d71bc92698580142f8a3b961c631c8587a82
| 871
|
cpp
|
C++
|
ACM-ICPC/5014.cpp
|
KimBoWoon/ACM-ICPC
|
146c36999488af9234d73f7b4b0c10d78486604f
|
[
"MIT"
] | null | null | null |
ACM-ICPC/5014.cpp
|
KimBoWoon/ACM-ICPC
|
146c36999488af9234d73f7b4b0c10d78486604f
|
[
"MIT"
] | null | null | null |
ACM-ICPC/5014.cpp
|
KimBoWoon/ACM-ICPC
|
146c36999488af9234d73f7b4b0c10d78486604f
|
[
"MIT"
] | null | null | null |
#include <cstdio>
#include <queue>
using namespace std;
#define MAX 1000001
int f, s, g, u, d;
int building[MAX];
queue<int> q;
void bfs() {
while (!q.empty()) {
int here = q.front();
q.pop();
// 올라간다
int next = here + u;
if (next <= f && building[next] == 0) {
building[next] = building[here] + 1;
q.push(next);
}
// 내려간다
next = here - d;
if (next > 0 && building[next] == 0) {
building[next] = building[here] + 1;
q.push(next);
}
}
}
int main() {
scanf("%d %d %d %d %d", &f, &s, &g, &u, &d);
// 현재 층 저장
building[s] = 1;
q.push(s);
bfs();
if (building[g]) {
printf("%d\n", building[g] - 1);
} else {
printf("use the stairs\n");
}
}
| 18.934783
| 49
| 0.41217
|
KimBoWoon
|
7a28f8aa3d5b9f460887a91155b581d17f9ced68
| 1,771
|
cpp
|
C++
|
1400/60/1467b.cpp
|
actium/cf
|
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
|
[
"Unlicense"
] | 1
|
2020-07-03T15:55:52.000Z
|
2020-07-03T15:55:52.000Z
|
1400/60/1467b.cpp
|
actium/cf
|
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
|
[
"Unlicense"
] | null | null | null |
1400/60/1467b.cpp
|
actium/cf
|
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
|
[
"Unlicense"
] | 3
|
2020-10-01T14:55:28.000Z
|
2021-07-11T11:33:58.000Z
|
#include <iostream>
#include <vector>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(unsigned v)
{
std::cout << v << '\n';
}
void solve(const std::vector<unsigned>& a)
{
const size_t n = a.size();
std::vector<size_t> x;
for (size_t i = 1; i < n-1; ++i) {
if (a[i-1] < a[i] && a[i] > a[i+1])
x.push_back(i);
if (a[i-1] > a[i] && a[i] < a[i+1])
x.push_back(i);
}
const auto check = [&](size_t i, unsigned v) {
unsigned c[2] = {};
if (i > 1) {
c[0] += (a[i-2] < a[i-1] && a[i-1] > a[i]);
c[0] += (a[i-2] > a[i-1] && a[i-1] < a[i]);
c[1] += (a[i-2] < a[i-1] && a[i-1] > v);
c[1] += (a[i-2] > a[i-1] && a[i-1] < v);
}
c[0] += (a[i-1] < a[i] && a[i] > a[i+1]);
c[0] += (a[i-1] > a[i] && a[i] < a[i+1]);
c[1] += (a[i-1] < v && v > a[i+1]);
c[1] += (a[i-1] > v && v < a[i+1]);
if (i+2 < n) {
c[0] += (a[i] < a[i+1] && a[i+1] > a[i+2]);
c[0] += (a[i] > a[i+1] && a[i+1] < a[i+2]);
c[1] += (v < a[i+1] && a[i+1] > a[i+2]);
c[1] += (v > a[i+1] && a[i+1] < a[i+2]);
}
return c[0] > c[1] ? c[0] - c[1] : 0;
};
unsigned d = 0;
for (const size_t i : x) {
d = std::max(d, check(i, a[i-1]));
d = std::max(d, check(i, a[i+1]));
}
answer(x.size() - d);
}
void test_case()
{
size_t n;
std::cin >> n;
std::vector<unsigned> a(n);
std::cin >> a;
solve(a);
}
int main()
{
size_t t;
std::cin >> t;
while (t-- > 0)
test_case();
return 0;
}
| 19.677778
| 65
| 0.36646
|
actium
|
7a2b5d78e4e25a66205637bf85cacceef9423f98
| 10,513
|
cpp
|
C++
|
Source/McRave/Resources.cpp
|
Cmccrave/CMProtoBot
|
220cddaf41724004daf5aace5b48a07e28931279
|
[
"MIT"
] | 32
|
2017-03-04T19:38:13.000Z
|
2022-03-16T02:03:01.000Z
|
Source/McRave/Resources.cpp
|
Cmccrave/CMProtoBot
|
220cddaf41724004daf5aace5b48a07e28931279
|
[
"MIT"
] | 2
|
2017-02-25T02:43:01.000Z
|
2017-02-27T00:14:55.000Z
|
Source/McRave/Resources.cpp
|
Cmccrave/CMProtoBot
|
220cddaf41724004daf5aace5b48a07e28931279
|
[
"MIT"
] | 8
|
2017-06-28T23:58:10.000Z
|
2021-04-20T16:56:08.000Z
|
#include "McRave.h"
using namespace BWAPI;
using namespace std;
using namespace UnitTypes;
namespace McRave::Resources {
namespace {
set<shared_ptr<ResourceInfo>> myMinerals;
set<shared_ptr<ResourceInfo>> myGas;
set<shared_ptr<ResourceInfo>> myBoulders;
bool mineralSat, gasSat, halfMineralSat, halfGasSat;
int miners, gassers;
int mineralCount, gasCount;
int incomeMineral, incomeGas;
int maxGas;
int maxMin;
string mapName, myRaceChar;
void updateIncome(const shared_ptr<ResourceInfo>& r)
{
auto &resource = *r;
auto cnt = resource.getGathererCount();
if (resource.getType().isMineralField())
incomeMineral += cnt == 1 ? 65 : 126;
else
incomeGas += resource.getRemainingResources() ? 103 * cnt : 26 * cnt;
}
void updateInformation(const shared_ptr<ResourceInfo>& r)
{
auto &resource = *r;
if (resource.unit()->exists())
resource.updateResource();
UnitType geyserType = Broodwar->self()->getRace().getRefinery();
// If resource is blocked from usage
if (!resource.getType().isMineralField() && resource.getTilePosition().isValid()) {
for (auto block = mapBWEM.GetTile(resource.getTilePosition()).GetNeutral(); block; block = block->NextStacked()) {
if (block && block->Unit() && block->Unit()->exists() && block->Unit()->isInvincible() && !block->IsGeyser())
resource.setResourceState(ResourceState::None);
}
}
// Update resource state
if (resource.hasStation()) {
auto base = Util::getClosestUnit(resource.getPosition(), PlayerState::Self, [&](auto &u) {
return u.getType().isResourceDepot() && u.getPosition() == resource.getStation()->getBase()->Center();
});
resource.setResourceState(ResourceState::None);
if (base) {
if (base->unit()->getRemainingBuildTime() < 300 || base->getType() == Zerg_Lair || base->getType() == Zerg_Hive || (resource.getType().isRefinery() && resource.unit()->getRemainingBuildTime() < 120))
resource.setResourceState(ResourceState::Mineable);
else
resource.setResourceState(ResourceState::Assignable);
}
}
// Update saturation
if (resource.getType().isMineralField() && resource.getResourceState() != ResourceState::None)
miners += resource.getGathererCount();
else if (resource.getType() == geyserType && resource.unit()->isCompleted() && resource.getResourceState() != ResourceState::None)
gassers += resource.getGathererCount();
if (!resource.isBoulder()) {
if (resource.getResourceState() == ResourceState::Mineable || (resource.getResourceState() == ResourceState::Assignable && Stations::getMyStations().size() >= 3 && !Players::vP())) {
resource.getType().isMineralField() ? mineralCount++ : gasCount++;
resource.getType().isMineralField() ? maxMin+=resource.getWorkerCap() : maxGas+=resource.getWorkerCap();
}
for (auto &w : resource.targetedByWhat()) {
if (auto worker = w.lock()) {
if (worker->getBuildPosition().isValid())
maxMin--, maxGas--;
}
}
}
}
void updateResources()
{
mineralCount = 0;
gasCount = 0;
miners = 0;
gassers = 0;
maxGas = 0;
maxMin = 0;
const auto update = [&](const shared_ptr<ResourceInfo>& r) {
updateInformation(r);
updateIncome(r);
};
for (auto &r : myBoulders)
update(r);
for (auto &r : myMinerals)
update(r);
for (auto &r : myGas)
update(r);
mineralSat = miners >= maxMin;
halfMineralSat = miners >= mineralCount;
gasSat = gassers >= maxGas;
halfGasSat = gassers >= gasCount;
}
}
void recheckSaturation()
{
miners = 0;
gassers = 0;
for (auto &r : myMinerals) {
auto &resource = *r;
miners += resource.getGathererCount();
}
for (auto &r : myGas) {
auto &resource = *r;
gassers += resource.getGathererCount();
}
mineralSat = miners >= maxMin;
halfMineralSat = miners >= mineralCount;
gasSat = gassers >= maxGas;
halfGasSat = gassers >= gasCount;
}
void onFrame()
{
Visuals::startPerfTest();
updateResources();
Visuals::endPerfTest("Resources");
}
void onStart()
{
// Store all resources
for (auto &resource : Broodwar->getMinerals())
storeResource(resource);
for (auto &resource : Broodwar->getGeysers())
storeResource(resource);
// Grab only the alpha characters from the map name to remove version numbers
for (auto &c : Broodwar->mapFileName()) {
if (isalpha(c))
mapName.push_back(c);
if (c == '.')
break;
}
myRaceChar = *Broodwar->self()->getRace().c_str();
ifstream readFileA("bwapi-data/AI/" + mapName + "GatherInfo" + myRaceChar + ".txt");
int x, y, cnt;
string line;
while (readFileA) {
readFileA >> x >> y >> cnt;
for (auto &mineral : myMinerals) {
if (x == mineral->getPosition().x && y == mineral->getPosition().y) {
while (cnt > 0) {
readFileA >> x >> y;
mineral->getGatherOrderPositions().insert(Position(x, y));
cnt--;
}
}
}
}
ifstream readFileB("bwapi-data/AI/" + mapName + "ReturnInfo" + myRaceChar + ".txt");
while (readFileB) {
readFileB >> x >> y >> cnt;
for (auto &mineral : myMinerals) {
if (x == mineral->getPosition().x && y == mineral->getPosition().y) {
while (cnt > 0) {
readFileB >> x >> y;
mineral->getReturnOrderPositions().insert(Position(x, y));
cnt--;
}
}
}
}
}
void onEnd()
{
ofstream readFileA("bwapi-data/AI/" + mapName + "GatherInfo" + myRaceChar + ".txt");
if (readFileA) {
for (auto &mineral : myMinerals) {
if (!mineral->getGatherOrderPositions().empty()) {
readFileA << mineral->getPosition().x << " " << mineral->getPosition().y << " " << mineral->getGatherOrderPositions().size() << "\n";
for (auto &pos : mineral->getGatherOrderPositions())
readFileA << pos.x << " " << pos.y << " ";
readFileA << "\n";
}
}
}
ofstream readFileB("bwapi-data/AI/" + mapName + "ReturnInfo" + myRaceChar + ".txt");
if (readFileB) {
for (auto &mineral : myMinerals) {
if (!mineral->getReturnOrderPositions().empty()) {
readFileB << mineral->getPosition().x << " " << mineral->getPosition().y << " " << mineral->getReturnOrderPositions().size() << "\n";
for (auto &pos : mineral->getReturnOrderPositions())
readFileB << pos.x << " " << pos.y << " ";
readFileB << "\n";
}
}
}
}
void storeResource(Unit resource)
{
auto info = ResourceInfo(resource);
auto &resourceList = (!info.isBoulder() ? (resource->getType().isMineralField() ? myMinerals : myGas) : myBoulders);
// Check if we already stored this resource
for (auto &u : resourceList) {
if (u->unit() == resource)
return;
}
// Add station
auto newStation = BWEB::Stations::getClosestStation(resource->getTilePosition());
info.setStation(newStation);
if (Stations::ownedBy(newStation) == PlayerState::Self)
info.setResourceState(ResourceState::Assignable);
resourceList.insert(make_shared<ResourceInfo>(info));
}
void removeResource(Unit unit)
{
auto &resource = getResourceInfo(unit);
if (resource) {
// Remove assignments
for (auto &u : resource->targetedByWhat()) {
if (!u.expired())
u.lock()->setResource(nullptr);
}
// Remove dead resources
if (myMinerals.find(resource) != myMinerals.end())
myMinerals.erase(resource);
else if (myBoulders.find(resource) != myBoulders.end())
myBoulders.erase(resource);
else if (myGas.find(resource) != myGas.end())
myGas.erase(resource);
}
}
shared_ptr<ResourceInfo> getResourceInfo(BWAPI::Unit unit)
{
for (auto &m : myMinerals) {
if (m->unit() == unit)
return m;
}
for (auto &b : myBoulders) {
if (b->unit() == unit)
return b;
}
for (auto &g : myGas) {
if (g->unit() == unit)
return g;
}
return nullptr;
}
int getMineralCount() { return mineralCount; }
int getGasCount() { return gasCount; }
int getIncomeMineral() { return incomeMineral; }
int getIncomeGas() { return incomeGas; }
bool isMineralSaturated() { return mineralSat; }
bool isHalfMineralSaturated() { return halfMineralSat; }
bool isGasSaturated() { return gasSat; }
bool isHalfGasSaturated() { return halfGasSat; }
set<shared_ptr<ResourceInfo>>& getMyMinerals() { return myMinerals; }
set<shared_ptr<ResourceInfo>>& getMyGas() { return myGas; }
set<shared_ptr<ResourceInfo>>& getMyBoulders() { return myBoulders; }
}
| 36.503472
| 219
| 0.512889
|
Cmccrave
|
7a2f74f47f3d04dae04872ee49ced59efeacb96e
| 1,213
|
cpp
|
C++
|
NFComm/NFNoSqlPlugin/NFNoSqlPlugin.cpp
|
sosan/NoahGameFrame
|
38c54014c5c4620b784b2c1d2cab256f42bae186
|
[
"Apache-2.0"
] | null | null | null |
NFComm/NFNoSqlPlugin/NFNoSqlPlugin.cpp
|
sosan/NoahGameFrame
|
38c54014c5c4620b784b2c1d2cab256f42bae186
|
[
"Apache-2.0"
] | null | null | null |
NFComm/NFNoSqlPlugin/NFNoSqlPlugin.cpp
|
sosan/NoahGameFrame
|
38c54014c5c4620b784b2c1d2cab256f42bae186
|
[
"Apache-2.0"
] | 1
|
2020-04-23T21:57:32.000Z
|
2020-04-23T21:57:32.000Z
|
//------------------------------------------------------------------------ -
// @FileName : NFNoSqlPlugin.cpp
// @Author : LvSheng.Huang
// @Date : 2017-02-08
// @Module : NFNoSqlPlugin
//
// -------------------------------------------------------------------------
#include "NFNoSqlPlugin.h"
#include "NFCNoSqlModule.h"
#include "NFCAsyNoSqlModule.h"
#ifdef NF_DYNAMIC_PLUGIN
NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
CREATE_PLUGIN(pm, NFNoSqlPlugin)
};
NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
DESTROY_PLUGIN(pm, NFNoSqlPlugin)
};
#endif
//////////////////////////////////////////////////////////////////////////
const int NFNoSqlPlugin::GetPluginVersion()
{
return 0;
}
const std::string NFNoSqlPlugin::GetPluginName()
{
return GET_CLASS_NAME(NFNoSqlPlugin);
}
void NFNoSqlPlugin::Install()
{
REGISTER_MODULE(pPluginManager, NFINoSqlModule, NFCNoSqlModule)
REGISTER_MODULE(pPluginManager, NFIAsyNoSqlModule, NFCAsyNoSqlModule)
}
void NFNoSqlPlugin::Uninstall()
{
UNREGISTER_MODULE(pPluginManager, NFIAsyNoSqlModule, NFCAsyNoSqlModule)
UNREGISTER_MODULE(pPluginManager, NFINoSqlModule, NFCNoSqlModule)
}
| 25.270833
| 76
| 0.597692
|
sosan
|
7a3905913bc7ab9af7618154cfda716d3ef6b1af
| 2,883
|
cpp
|
C++
|
Siv3D/src/Siv3D/Script/Bind/Script_WaveSample.cpp
|
Fuyutsubaki/OpenSiv3D
|
4370f6ebe28addd39bfdd75915c5a18e3e5e9273
|
[
"MIT"
] | null | null | null |
Siv3D/src/Siv3D/Script/Bind/Script_WaveSample.cpp
|
Fuyutsubaki/OpenSiv3D
|
4370f6ebe28addd39bfdd75915c5a18e3e5e9273
|
[
"MIT"
] | null | null | null |
Siv3D/src/Siv3D/Script/Bind/Script_WaveSample.cpp
|
Fuyutsubaki/OpenSiv3D
|
4370f6ebe28addd39bfdd75915c5a18e3e5e9273
|
[
"MIT"
] | null | null | null |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Script.hpp>
# include <Siv3D/WaveSample.hpp>
# include <Siv3D/Logger.hpp>
# include "ScriptBind.hpp"
namespace s3d
{
using namespace AngelScript;
using BindType = WaveSample;
static void CopyConstruct(const BindType& s, BindType* self)
{
new(self) BindType(s);
}
static void ConstructF(float mono, BindType* self)
{
new(self) BindType(mono);
}
static void ConstructFF(float left, float right, BindType* self)
{
new(self) BindType(left, right);
}
void RegisterWaveSample(asIScriptEngine* engine)
{
constexpr char TypeName[] = "WaveSample";
int32 r = 0;
r = engine->RegisterObjectProperty(TypeName, "float left", asOFFSET(WaveSample, left)); assert(r >= 0);
r = engine->RegisterObjectProperty(TypeName, "float right", asOFFSET(WaveSample, right)); assert(r >= 0);
r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(const WaveSample &in)", asFUNCTION(CopyConstruct), asCALL_CDECL_OBJLAST); assert(r >= 0);
r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(float)", asFUNCTION(ConstructF), asCALL_CDECL_OBJLAST); assert(r >= 0);
r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(float, float)", asFUNCTION(ConstructFF), asCALL_CDECL_OBJLAST); assert(r >= 0);
r = engine->RegisterObjectMethod(TypeName, "WaveSample& opAssign(const WaveSample& in)", asMETHODPR(WaveSample, operator=, (const WaveSample&), WaveSample&), asCALL_THISCALL); assert(r >= 0);
r = engine->RegisterObjectMethod(TypeName, "WaveSample& opAssign(float)", asMETHODPR(WaveSample, operator=, (float), WaveSample&), asCALL_THISCALL); assert(r >= 0);
r = engine->RegisterObjectMethod(TypeName, "WaveSample& set(const WaveSample& in)", asMETHODPR(WaveSample, set, (const WaveSample&), WaveSample&), asCALL_THISCALL); assert(r >= 0);
r = engine->RegisterObjectMethod(TypeName, "WaveSample& set(float)", asMETHODPR(WaveSample, set, (float), WaveSample&), asCALL_THISCALL); assert(r >= 0);
r = engine->RegisterObjectMethod(TypeName, "WaveSample& set(float, float)", asMETHODPR(WaveSample, set, (float, float), WaveSample&), asCALL_THISCALL); assert(r >= 0);
r = engine->RegisterObjectMethod(TypeName, "void swapChannel()", asMETHOD(WaveSample, swapChannel), asCALL_THISCALL); assert(r >= 0);
//[[nodiscard]] constexpr WaveSampleS16 asS16() const noexcept
r = engine->SetDefaultNamespace(TypeName); assert(r >= 0);
{
r = engine->RegisterGlobalFunction("WaveSample Zero()", asFUNCTION(WaveSample::Zero), asCALL_CDECL); assert(r >= 0);
}
r = engine->SetDefaultNamespace(""); assert(r >= 0);
}
}
| 42.397059
| 193
| 0.701006
|
Fuyutsubaki
|
7a3a661eb0cb66b1614ba001791e400cabb2acd2
| 4,120
|
cpp
|
C++
|
raytracer/features/Matrix/Transform.cpp
|
Max135/Raytracer
|
4679da74d27cc2b6199f7a177ac9e08fe673c0c9
|
[
"MIT"
] | 3
|
2021-02-27T02:28:02.000Z
|
2021-03-02T13:45:11.000Z
|
raytracer/features/Matrix/Transform.cpp
|
Max135/Raytracer
|
4679da74d27cc2b6199f7a177ac9e08fe673c0c9
|
[
"MIT"
] | 1
|
2021-02-03T20:37:42.000Z
|
2021-02-04T02:46:06.000Z
|
raytracer/features/Matrix/Transform.cpp
|
Max135/Raytracer
|
4679da74d27cc2b6199f7a177ac9e08fe673c0c9
|
[
"MIT"
] | null | null | null |
//
// Created by Max on 2021-01-05.
//
#include "Transform.h"
Transform Transform::viewTransform(const Point& from, const Point& to, const Vector& up) {
Tuple forward = (to - from).normalize();
Tuple left = forward.cross(up.normalize());
Tuple trueUp = left.cross(forward);
Transform orientation;
orientation.matrix[0][0] = left.x;
orientation.matrix[0][1] = left.y;
orientation.matrix[0][2] = left.z;
orientation.matrix[1][0] = trueUp.x;
orientation.matrix[1][1] = trueUp.y;
orientation.matrix[1][2] = trueUp.z;
orientation.matrix[2][0] = -forward.x;
orientation.matrix[2][1] = -forward.y;
orientation.matrix[2][2] = -forward.z;
return orientation.translate(-from.x, -from.y, -from.z);
}
Transform Transform::translation(double x, double y, double z) {
Transform transform;
transform.matrix[0][3] = x;
transform.matrix[1][3] = y;
transform.matrix[2][3] = z;
return transform;
}
Transform Transform::scaling(double x, double y, double z) {
Transform transform;
transform.matrix[0][0] = x;
transform.matrix[1][1] = y;
transform.matrix[2][2] = z;
return transform;
}
Transform Transform::xRotation(double angle) {
Transform transform;
double cosine = cos(angle);
double sine = sin(angle);
transform.matrix[1][1] = cosine;
transform.matrix[1][2] = -sine;
transform.matrix[2][1] = sine;
transform.matrix[2][2] = cosine;
return transform;
}
Transform Transform::yRotation(double angle) {
Transform transform;
double cosine = cos(angle);
double sine = sin(angle);
transform.matrix[0][0] = cosine;
transform.matrix[0][2] = sine;
transform.matrix[2][0] = -sine;
transform.matrix[2][2] = cosine;
return transform;
}
Transform Transform::zRotation(double angle) {
Transform transform;
double cosine = cos(angle);
double sine = sin(angle);
transform.matrix[0][0] = cosine;
transform.matrix[0][1] = -sine;
transform.matrix[1][0] = sine;
transform.matrix[1][1] = cosine;
return transform;
}
Transform Transform::shearing(double xToY, double xToZ, double yToX, double yToZ, double zToX, double zToY) {
Transform transform;
transform.matrix[0][1] = xToY;
transform.matrix[0][2] = xToZ;
transform.matrix[1][0] = yToX;
transform.matrix[1][2] = yToZ;
transform.matrix[2][0] = zToX;
transform.matrix[2][1] = zToY;
return transform;
}
//TODO: Change function call to * operator
//TODO: To have normal order change this->multiply(other) to other.multiply(this)
Transform &Transform::translate(double x, double y, double z) {
return this->multiplyTransforms(Transform::translation(x, y, z));
}
Transform &Transform::scale(double x, double y, double z) {
return this->multiplyTransforms(Transform::scaling(x, y, z));
}
Transform &Transform::rotateX(double angle) {
return this->multiplyTransforms(Transform::xRotation(angle));
}
Transform &Transform::rotateY(double angle) {
return this->multiplyTransforms(Transform::yRotation(angle));
}
Transform &Transform::rotateZ(double angle) {
return this->multiplyTransforms(Transform::zRotation(angle));
}
Transform &Transform::shear(double xToY, double xToZ, double yToX, double yToZ, double zToX, double zToY) {
return this->multiplyTransforms(Transform::shearing(xToY, xToZ, yToX, yToZ, zToX, zToY));
}
//TODO: Refactor so operation can work both on Matrix and Transform
//TODO: Fix this shit (not efficient)
Transform &Transform::multiplyTransforms(const Transform &other) {
//Bugged because it changed the matrix while calculating it 🤦
Transform temp;
for (int i = 0; i < this->sizeY; ++i) {
for (int j = 0; j < this->sizeX; ++j) {
temp[i][j] = this->matrix[i][0] * other[0][j] + this->matrix[i][1] * other[1][j] +
this->matrix[i][2] * other[2][j] + this->matrix[i][3] * other[3][j];
}
}
for (int i = 0; i < 4; ++i) {
for (int j = 0; j < 4; ++j) {
this->matrix[i][j] = temp[i][j];
}
}
return *this;
}
| 27.466667
| 109
| 0.645388
|
Max135
|
7a3b3a1bf901347e386b7bf100bb81fe8bdb0d3a
| 2,530
|
cpp
|
C++
|
source/assets/font.cpp
|
xeek-pro/isometric
|
6f7d05ce597683552d5dc3078a1634fddd41092b
|
[
"MIT"
] | 1
|
2021-08-02T04:49:44.000Z
|
2021-08-02T04:49:44.000Z
|
source/assets/font.cpp
|
xeek-pro/isometric
|
6f7d05ce597683552d5dc3078a1634fddd41092b
|
[
"MIT"
] | null | null | null |
source/assets/font.cpp
|
xeek-pro/isometric
|
6f7d05ce597683552d5dc3078a1634fddd41092b
|
[
"MIT"
] | 1
|
2021-09-09T16:49:53.000Z
|
2021-09-09T16:49:53.000Z
|
#include <SDL.h>
#include <SDL_ttf.h>
#include "font.h"
#include "../source/application/application.h"
#include <algorithm>
using namespace isometric::assets;
font::font(const std::string& name)
: asset(name)
{
}
font::~font()
{
clear();
}
std::unique_ptr<font> font::load(const std::string& name, const std::string& path, const std::vector<int>& point_sizes)
{
if (!application::get_app() || !application::get_app()->is_initialized())
{
auto error_msg = std::string("Attempted to load image before an application object has been created and initialized");
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, error_msg.c_str());
throw std::exception(error_msg.c_str());
}
auto new_font = std::unique_ptr<font>(new font(name));
for (int point_size : point_sizes)
{
TTF_Font* sdl_font = TTF_OpenFont(path.c_str(), point_size);
if (sdl_font == NULL)
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to load font named [%s] with point size [%d] from '%s'", name.c_str(), point_size, path.c_str());
new_font.reset();
return nullptr;
}
new_font->point_sizes.push_back(point_size);
new_font->fonts[point_size] = sdl_font;
}
return std::move(new_font);
}
const std::vector<int>& isometric::assets::font::get_point_sizes() const
{
return this->point_sizes;
}
int isometric::assets::font::get_closest_point_size(int point_size) const
{
if (this->point_sizes.empty()) return 0;
else
{
return (*std::upper_bound(point_sizes.begin(), point_sizes.end() - 1, point_size));
}
}
std::unique_ptr<font> font::load(const std::string& name, const std::string& path, int point_size)
{
auto sizes = std::vector<int>{ point_size };
return std::move(load(name, path, sizes));
}
TTF_Font* font::get_font(int point_size) const
{
if (fonts.empty())
{
return nullptr;
}
else if (fonts.contains(point_size))
{
return fonts.at(point_size);
}
else
{
int closest_point_size = get_closest_point_size(point_size);
TTF_Font* closest_match = fonts.at(closest_point_size);
return closest_match;
}
}
void font::clear()
{
for (auto& pair : fonts)
{
int point_size = pair.first;
TTF_Font* sdl_font = pair.second;
if (sdl_font)
{
TTF_CloseFont(sdl_font);
sdl_font = nullptr;
}
}
point_sizes.clear();
fonts.clear();
}
| 24.563107
| 160
| 0.630435
|
xeek-pro
|
7a3c7167e30b51be47f1e749053a155d80fd741c
| 1,811
|
cpp
|
C++
|
13- Linked Lists/palindrome_ll.cpp
|
ShreyashRoyzada/C-plus-plus-Algorithms
|
9db89faf0a9b9e636aece3e7289f21ab6a1e3748
|
[
"MIT"
] | 21
|
2020-10-03T03:57:19.000Z
|
2022-03-25T22:41:05.000Z
|
13- Linked Lists/palindrome_ll.cpp
|
ShreyashRoyzada/C-plus-plus-Algorithms
|
9db89faf0a9b9e636aece3e7289f21ab6a1e3748
|
[
"MIT"
] | 40
|
2020-10-02T07:02:34.000Z
|
2021-10-30T16:00:07.000Z
|
13- Linked Lists/palindrome_ll.cpp
|
ShreyashRoyzada/C-plus-plus-Algorithms
|
9db89faf0a9b9e636aece3e7289f21ab6a1e3748
|
[
"MIT"
] | 90
|
2020-10-02T07:06:22.000Z
|
2022-03-25T22:41:17.000Z
|
// in this program we check if the given LL is a palindrome or not and return 1 for Palindrome and 0 for not palindrome
#include <iostream>
#include <stack>
using namespace std;
// linked list structure
struct Node {
int data;
struct Node *next;
Node(int x) {
data = x;
next = NULL;
}
};
// function to check given linked list is palindrome or not
bool isPalindrome(Node *head, int n);
int main()
{
int T,i,n,l,firstdata;
cin>>T;
while(T--)
{
struct Node *head = NULL, *tail = NULL;
cin>>n;
// taking first data of LL
cin>>firstdata;
head = new Node(firstdata);
tail = head;
// taking remaining data of LL
for(i=1;i<n;i++)
{
cin>>l;
tail->next = new Node(l);
tail = tail->next;
}
cout<<isPalindrome(head,n)<<endl;
}
return 0;
}
bool isPalindrome(Node *head, int n)
{
//initialize all the pointers
Node* temp=head;
Node* tempcount=head;
Node* r=head;
Node* p=NULL;
Node* q=NULL;
//if only 1 element is present
if(n==1)
return 1;
//if only 2 elements are present
if(n==2){
if(temp->data!=temp->next->data)
return 0;
else
return 1;
}
//for any number of elements present in LL
int new_count=n/2;
while(new_count>0){
r=r->next;
new_count--;
}
while(r != NULL){
p=q;
q=r;
r=r->next;
q->next=p;
}
int a = n/2;
while(a>1){
if(q->data!=temp->data){
return 0;
break;
}
q=q->next;
temp=temp->next;
a--;
}
if(q->data==temp->data)
return 1;
else
return 0;
}
| 18.479592
| 119
| 0.500276
|
ShreyashRoyzada
|
7a459a6aa8578e9217608a55f34eff6e335dfbb4
| 520
|
cpp
|
C++
|
pgm16_01.cpp
|
neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C-
|
c9a29d2dd43ad8561e828c25f98de6a8c8f2317a
|
[
"Unlicense"
] | 1
|
2021-07-13T03:58:36.000Z
|
2021-07-13T03:58:36.000Z
|
pgm16_01.cpp
|
neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C-
|
c9a29d2dd43ad8561e828c25f98de6a8c8f2317a
|
[
"Unlicense"
] | null | null | null |
pgm16_01.cpp
|
neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C-
|
c9a29d2dd43ad8561e828c25f98de6a8c8f2317a
|
[
"Unlicense"
] | null | null | null |
//
// This file contains the C++ code from Program 16.1 of
// "Data Structures and Algorithms
// with Object-Oriented Design Patterns in C++"
// by Bruno R. Preiss.
//
// Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved.
//
// http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/programs/pgm16_01.cpp
//
class Vertex : public Object
{
public:
typedef unsigned int Number;
protected:
Number number;
public:
Vertex (Number);
virtual operator Number () const;
// ...
};
| 23.636364
| 80
| 0.663462
|
neharkarvishal
|
7a464efdc20b7ed15edd2e2fb26ef66710b8d364
| 972
|
cpp
|
C++
|
hdu/1000/13/1335.cpp
|
TheBadZhang/OJ
|
b5407f2483aa630068343b412ecaf3a9e3303f7e
|
[
"Apache-2.0"
] | 1
|
2020-07-22T16:54:07.000Z
|
2020-07-22T16:54:07.000Z
|
hdu/1000/13/1335.cpp
|
TheBadZhang/OJ
|
b5407f2483aa630068343b412ecaf3a9e3303f7e
|
[
"Apache-2.0"
] | 1
|
2018-05-12T12:53:06.000Z
|
2018-05-12T12:53:06.000Z
|
hdu/1000/13/1335.cpp
|
TheBadZhang/OJ
|
b5407f2483aa630068343b412ecaf3a9e3303f7e
|
[
"Apache-2.0"
] | null | null | null |
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
#define N 20
char s[N], w[N];
char y[N];
int a, b;
int T(int x, int n) {
int s = 1;
for (int i = 1; i <= n; i++) {
s *= x;
}
return s;
}
int main() {
while (scanf("%s%d%d", s, &a, &b) != EOF) {
int i, sum = 0, l;
l = strlen(s);
for (i = 0; i < l; i++) {
if (s[i] >= '0' && s[i] <= '9') {
sum += ((s[i] - '0') * T(a, l - i - 1));
}
else if (s[i] >= 'A' && s[i] <= 'Z') {
sum += ((s[i] - 'A' + 10) * T(a, l - i - 1));
}
}
int cnt = 0;
while (sum > 0) {
int u = sum % b;
if (u >= 0 && u <= 9) {
w[cnt++] = u + '0';
}
else {
w[cnt++] = (u - 10) + 'A';
}
sum /= b;
}
for (i = 0; i < cnt; i++) {
y[i] = w[cnt - i - 1];
}
if (cnt > 7) {
printf(" ERROR");
}
else {
for (i = 0; i < 7 - cnt; i++) {
printf(" ");
}
for (i = 0; i < cnt; i++) {
printf("%c", y[i]);
}
}
printf("\n");
}
return 0;
}
| 17.357143
| 49
| 0.371399
|
TheBadZhang
|
7a47e89d4b622154aa5985afbedfcf5ac7491df7
| 1,504
|
cpp
|
C++
|
0463 - Island Perimeter/cpp/main.cpp
|
xiaoswu/Leetcode
|
e4ae8b2f72a312ee247084457cf4e6dbcfd20e18
|
[
"MIT"
] | 5
|
2018-10-18T06:47:19.000Z
|
2020-06-19T09:30:03.000Z
|
0463 - Island Perimeter/cpp/main.cpp
|
xiaoswu/Leetcode
|
e4ae8b2f72a312ee247084457cf4e6dbcfd20e18
|
[
"MIT"
] | null | null | null |
0463 - Island Perimeter/cpp/main.cpp
|
xiaoswu/Leetcode
|
e4ae8b2f72a312ee247084457cf4e6dbcfd20e18
|
[
"MIT"
] | null | null | null |
//
// main.cpp
// 463 - Island Perimeter
//
// Created by ynfMac on 2019/11/26.
// Copyright © 2019 ynfMac. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution {
private:
int d[4][2] = {{1,0},{-1,0},{0,1},{0, -1}};
int C,R;
bool isInArea(int x, int y){
return x >= 0 && x < C && y >= 0 && y < R;
}
public:
int islandPerimeter(vector<vector<int>>& grid) {
C = grid.size();
if (C == 0) {
return 0;
}
R = grid[0].size();
if (R == 0) {
return 0;
}
int result = 0;
for (int i = 0; i < C; i++) {
for (int j = 0; j < R; j++) {
if (grid[i][j] == 1) {
result += islandEdge(grid,i,j);
}
}
}
return result;
}
int islandEdge(vector<vector<int>>& grid, int x,int y){
int edge = 4;
cout << x;
cout << y;
for (int i = 0; i < 4;i++) {
int newX = x + d[i][0];
int newY = y + d[i][1];
if (isInArea(newX, newY) && grid[newX][newY]) {
edge --;
}
}
return edge;
}
};
int main(int argc, const char * argv[]) {
vector<vector<int>> vec = vector<vector<int>>{{1,1}};
cout << Solution().islandPerimeter(vec);
std::cout << "Hello, World!\n";
return 0;
}
| 20.60274
| 59
| 0.40891
|
xiaoswu
|
7a4816c8482dc04dc8afed51bbe499600a23b979
| 457,727
|
cpp
|
C++
|
Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs198.cpp
|
JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity
|
6e13b31a0b053443b9c93267d8f174f1554e79dd
|
[
"CC-BY-4.0",
"MIT"
] | 1
|
2021-06-01T19:33:53.000Z
|
2021-06-01T19:33:53.000Z
|
Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs198.cpp
|
JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity
|
6e13b31a0b053443b9c93267d8f174f1554e79dd
|
[
"CC-BY-4.0",
"MIT"
] | null | null | null |
Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs198.cpp
|
JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity
|
6e13b31a0b053443b9c93267d8f174f1554e79dd
|
[
"CC-BY-4.0",
"MIT"
] | null | null | null |
#include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
template <typename R>
struct VirtFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, invokeData.method);
}
};
// System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject/MeshData>
struct List_1_tFB0CB232CE88C5B88CE821554A7D3FA62CCB01FF;
// System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject/QuadData>
struct List_1_tFE68FBF4E8F070DD0335517B9447CD21B6A3535C;
// System.Byte[]
struct ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726;
// System.Char[]
struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34;
// System.Int32[]
struct Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32;
// System.String[]
struct StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A;
// System.Type[]
struct TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755;
// System.UInt32[]
struct UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF;
// UnityEngine.BoxCollider
struct BoxCollider_tA530691AC1A3C9FE6428F68F98588FCB1BF9AAA5;
// UnityEngine.GameObject
struct GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319;
// System.IFormatProvider
struct IFormatProvider_tF2AECC4B14F41D36718920D67F930CED940412DF;
// UnityEngine.MeshCollider
struct MeshCollider_t1983F4E7E53D8C6B65FE21A8B4E2345A84D57E98;
// UnityEngine.MeshFilter
struct MeshFilter_t763BB2BBF3881176AD25E4570E6DD215BA0AA51A;
// UnityEngine.MeshRenderer
struct MeshRenderer_tCD983A2F635E12BCB0BAA2E635D96A318757908B;
// ProgressController
struct ProgressController_tF9F02EB59D94987ECAFF59CC4CA61158B949E6E8;
// System.Security.Cryptography.RandomNumberGenerator
struct RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50;
// SiteOverviewTurbineButton
struct SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939;
// SiteOverviewUIPanel
struct SiteOverviewUIPanel_tC1890DA197296EDD75E4E430A5254B9AC192AEA0;
// Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver
struct Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971;
// Microsoft.MixedReality.Toolkit.Utilities.Solvers.SolverHandler
struct SolverHandler_t6CF6DCC834885CCD53A484458C1B78548C6D8810;
// Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject
struct SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A;
// Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject
struct SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE;
// Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject
struct SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612;
// UnityEngine.Sprite
struct Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9;
// System.Data.SqlTypes.SqlBytes
struct SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6;
// System.Data.SqlTypes.SqlChars
struct SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53;
// System.Data.SqlTypes.SqlStreamChars
struct SqlStreamChars_t910B848D31E31CB82C6F50F1ECE148D614DE4665;
// System.IO.Stream
struct Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB;
// System.String
struct String_t;
// TMPro.TextMeshProUGUI
struct TextMeshProUGUI_tCC5BE8A76E6E9AF92521A462E8D81ACFBA7C85F1;
// System.Void
struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5;
// WindTurbineGameEvent
struct WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB;
// WindTurbineScriptableObject
struct WindTurbineScriptableObject_t03D27141AD20B61458ADEA1BADEEEF48CC01E1B0;
IL2CPP_EXTERN_C RuntimeClass* ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* String_t_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* UInt16U5BU5D_t42D35C587B07DCDBCFDADF572C6D733AE85B2A67_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* UInt64U5BU5D_t7C6E32D10F47677C1CEF3C30F4E4CE95B3A633E2_il2cpp_TypeInfo_var;
struct DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ;
struct Guid_t ;
struct IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB;
struct IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA;
struct IIterator_1_t53A3C573D4888D0C268E9C0D9515A4BDAD329CCC;
struct IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C;
struct IVectorView_1_t0652AC4EC7AA575BE5D7797DFD20689718705BE0;
struct Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ;
struct Rect_tC45F1DDF39812623644DE296D8057A4958176627 ;
struct Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ;
struct TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ;
struct ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726;
struct DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB;
struct GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8;
struct Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD;
struct Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32;
struct Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6;
struct SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA;
struct SiteOverviewTurbineButtonU5BU5D_t3ACBCC0C5A7D36AFE732F05FFE492AA4B8CCCF5C;
struct SolverU5BU5D_t7D4E8D7D33AE0E86ADE266E97543F909C6A9D1B6;
struct SpatialAwarenessMeshObjectU5BU5D_tA94B023FDD95287C601B9EC531C41DA60D5D0C5A;
struct SpatialAwarenessPlanarObjectU5BU5D_t772A69ED777B1C864FC824CA32DA58CA28AC6743;
struct SpatialAwarenessSceneObjectU5BU5D_t6F70086B6848AB4D5DA4B5454581DCEA06A370E3;
struct SpriteU5BU5D_t8DB77E112FFC97B722E701189DCB4059F943FD77;
struct SqlBinaryU5BU5D_t4A1CD2FDEEC6E9EAEC15A8C28A7701484B8D4485;
struct SqlBooleanU5BU5D_t07B79EADC41ED65294851549545D3F3918FDC6A0;
struct SqlByteU5BU5D_tB403A2418F730327A0789B78506CDACCECBB4CB6;
struct SqlBytesU5BU5D_t6F60DB18D1E498C69C2A2A292075B88252A47C49;
struct SqlCharsU5BU5D_t20FD646DC66170A3025ACFD16C890584136139FC;
struct SqlDateTimeU5BU5D_t12EEE5C7616A30E9F9CE304F76B5912B2A47EABF;
struct SqlDecimalU5BU5D_t436F1578CFBAD13111599A27A32FB894D8307CBD;
struct SqlDoubleU5BU5D_t65F627E3E10E5B61B332C69E3E8180BB1B5C5EA7;
struct SqlGuidU5BU5D_t7B958D75216823CC6FD381B81133477AFD2DE5E2;
struct SqlInt16U5BU5D_tFDBC98064CCDBA5EF1A928770767FF5E428F68B0;
struct SqlInt32U5BU5D_t4E9A0DCCD18A21ED32AE342EE7288F4722D13002;
struct SqlInt64U5BU5D_t07215C71C5947E0BE4CF431CB6124BC53ADA28C5;
struct SqlMoneyU5BU5D_tF5702E9AA3B2D27362711637FFD105D198723C95;
struct SqlSingleU5BU5D_t2F81D199741A89C70F73D8FAC1385A28379B442F;
struct StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A;
struct UInt16U5BU5D_t42D35C587B07DCDBCFDADF572C6D733AE85B2A67;
struct UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF;
struct UInt64U5BU5D_t7C6E32D10F47677C1CEF3C30F4E4CE95B3A633E2;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Windows.Foundation.Collections.IIterable`1<System.Object>
struct NOVTABLE IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.Single>
struct NOVTABLE IIterable_1_t0EA6FF8BF23034840DB9F5189AF1D72411992F7E : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mBD8D20BBA2E9F188C15175F2C9AB4039C6400ED1(IIterator_1_t53A3C573D4888D0C268E9C0D9515A4BDAD329CCC** comReturnValue) = 0;
};
// Windows.Foundation.IReferenceArray`1<System.Single>
struct NOVTABLE IReferenceArray_1_t1BB7D08F28C5D27D16C0145A86D139290E764ABC : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IReferenceArray_1_get_Value_mDB41698A556618F72FF5F33C60E6D9B78435F619(uint32_t* comReturnValueArraySize, float** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IVectorView`1<System.Object>
struct NOVTABLE IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260(uint32_t ___index0, Il2CppIInspectable** comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B(uint32_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1(uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue) = 0;
};
// Windows.Foundation.Collections.IVectorView`1<System.Single>
struct NOVTABLE IVectorView_1_t0652AC4EC7AA575BE5D7797DFD20689718705BE0 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m3D2911EEE429BEE9DFCCFD08528A6B62938AE14E(uint32_t ___index0, float* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_mE51A5C7833E725EA8286E5878D80E9D44ECDFF41(uint32_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_m4C0458BD59B3F97E792DE7EB4399297542D76C97(float ___value0, uint32_t* ___index1, bool* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m481FCAC8A5B7E6C75882A80893023447977DA78B(uint32_t ___startIndex0, uint32_t ___items1ArraySize, float* ___items1, uint32_t* comReturnValue) = 0;
};
// Windows.Foundation.Collections.IVector`1<System.Single>
struct NOVTABLE IVector_1_t5FBA1DB686EDD35620DC2CCA810C0754A18E8C9D : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IVector_1_GetAt_mB49A020A8CDF0AAF8DCFB381FD74A77688B0FA71(uint32_t ___index0, float* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_get_Size_m494C6D174D411D7FC20D21CE0FA2C0EDD5E91568(uint32_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_GetView_m2720307D308D3DCD49B6AF4C4A08D67498D2B186(IVectorView_1_t0652AC4EC7AA575BE5D7797DFD20689718705BE0** comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_IndexOf_mC1E5DFCDEDC953A4E1CA8BB1C427FBE7EA517FF4(float ___value0, uint32_t* ___index1, bool* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_SetAt_m478207B3FCA7EB1D8264306765201B9B4C8725AD(uint32_t ___index0, float ___value1) = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_InsertAt_m6C9D77B26BDE0B12FE238687DA397FC58C2032A2(uint32_t ___index0, float ___value1) = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_RemoveAt_m3EFDAC8DAF08714CB4FDF41FA54DF4EB2E0F9D97(uint32_t ___index0) = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_Append_mB47ED34CA2102C71646E947495BA9D14451E29C6(float ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_RemoveAtEnd_m04EB0AD3F455408D30F0FFE3100BEB8367635CFC() = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_Clear_mE43500616C5480A63657796BB0AE2E60D7BA49A9() = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_GetMany_m436FF76C0F1FFB49549025672552A1353FEF8745(uint32_t ___startIndex0, uint32_t ___items1ArraySize, float* ___items1, uint32_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IVector_1_ReplaceAll_mF925EE20FE793EF0740B86913574AE2E17FD6B93(uint32_t ___items0ArraySize, float* ___items0) = 0;
};
// Windows.UI.Xaml.Interop.IBindableIterable
struct NOVTABLE IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) = 0;
};
// Windows.UI.Xaml.Interop.IBindableVector
struct NOVTABLE IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) = 0;
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) = 0;
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) = 0;
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() = 0;
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() = 0;
};
// System.Object
// Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialAwarenessObject
struct BaseSpatialAwarenessObject_tDEC7FF3F1B319E20ED34F26109C51E5D4BB48883 : public RuntimeObject
{
public:
// System.Int32 Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialAwarenessObject::<Id>k__BackingField
int32_t ___U3CIdU3Ek__BackingField_0;
// UnityEngine.GameObject Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialAwarenessObject::<GameObject>k__BackingField
GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___U3CGameObjectU3Ek__BackingField_1;
// UnityEngine.MeshRenderer Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialAwarenessObject::<Renderer>k__BackingField
MeshRenderer_tCD983A2F635E12BCB0BAA2E635D96A318757908B * ___U3CRendererU3Ek__BackingField_2;
// UnityEngine.MeshFilter Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialAwarenessObject::<Filter>k__BackingField
MeshFilter_t763BB2BBF3881176AD25E4570E6DD215BA0AA51A * ___U3CFilterU3Ek__BackingField_3;
public:
inline static int32_t get_offset_of_U3CIdU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(BaseSpatialAwarenessObject_tDEC7FF3F1B319E20ED34F26109C51E5D4BB48883, ___U3CIdU3Ek__BackingField_0)); }
inline int32_t get_U3CIdU3Ek__BackingField_0() const { return ___U3CIdU3Ek__BackingField_0; }
inline int32_t* get_address_of_U3CIdU3Ek__BackingField_0() { return &___U3CIdU3Ek__BackingField_0; }
inline void set_U3CIdU3Ek__BackingField_0(int32_t value)
{
___U3CIdU3Ek__BackingField_0 = value;
}
inline static int32_t get_offset_of_U3CGameObjectU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(BaseSpatialAwarenessObject_tDEC7FF3F1B319E20ED34F26109C51E5D4BB48883, ___U3CGameObjectU3Ek__BackingField_1)); }
inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * get_U3CGameObjectU3Ek__BackingField_1() const { return ___U3CGameObjectU3Ek__BackingField_1; }
inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 ** get_address_of_U3CGameObjectU3Ek__BackingField_1() { return &___U3CGameObjectU3Ek__BackingField_1; }
inline void set_U3CGameObjectU3Ek__BackingField_1(GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * value)
{
___U3CGameObjectU3Ek__BackingField_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CGameObjectU3Ek__BackingField_1), (void*)value);
}
inline static int32_t get_offset_of_U3CRendererU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(BaseSpatialAwarenessObject_tDEC7FF3F1B319E20ED34F26109C51E5D4BB48883, ___U3CRendererU3Ek__BackingField_2)); }
inline MeshRenderer_tCD983A2F635E12BCB0BAA2E635D96A318757908B * get_U3CRendererU3Ek__BackingField_2() const { return ___U3CRendererU3Ek__BackingField_2; }
inline MeshRenderer_tCD983A2F635E12BCB0BAA2E635D96A318757908B ** get_address_of_U3CRendererU3Ek__BackingField_2() { return &___U3CRendererU3Ek__BackingField_2; }
inline void set_U3CRendererU3Ek__BackingField_2(MeshRenderer_tCD983A2F635E12BCB0BAA2E635D96A318757908B * value)
{
___U3CRendererU3Ek__BackingField_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CRendererU3Ek__BackingField_2), (void*)value);
}
inline static int32_t get_offset_of_U3CFilterU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(BaseSpatialAwarenessObject_tDEC7FF3F1B319E20ED34F26109C51E5D4BB48883, ___U3CFilterU3Ek__BackingField_3)); }
inline MeshFilter_t763BB2BBF3881176AD25E4570E6DD215BA0AA51A * get_U3CFilterU3Ek__BackingField_3() const { return ___U3CFilterU3Ek__BackingField_3; }
inline MeshFilter_t763BB2BBF3881176AD25E4570E6DD215BA0AA51A ** get_address_of_U3CFilterU3Ek__BackingField_3() { return &___U3CFilterU3Ek__BackingField_3; }
inline void set_U3CFilterU3Ek__BackingField_3(MeshFilter_t763BB2BBF3881176AD25E4570E6DD215BA0AA51A * value)
{
___U3CFilterU3Ek__BackingField_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CFilterU3Ek__BackingField_3), (void*)value);
}
};
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::m_stringLength
int32_t ___m_stringLength_0;
// System.Char System.String::m_firstChar
Il2CppChar ___m_firstChar_1;
public:
inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
inline void set_m_stringLength_0(int32_t value)
{
___m_stringLength_0 = value;
}
inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
inline void set_m_firstChar_1(Il2CppChar value)
{
___m_firstChar_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_5;
public:
inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
inline String_t* get_Empty_5() const { return ___Empty_5; }
inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
inline void set_Empty_5(String_t* value)
{
___Empty_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
}
};
// System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com
{
};
// System.Boolean
struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37, ___m_value_0)); }
inline bool get_m_value_0() const { return ___m_value_0; }
inline bool* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(bool value)
{
___m_value_0 = value;
}
};
struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields
{
public:
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
public:
inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___TrueString_5)); }
inline String_t* get_TrueString_5() const { return ___TrueString_5; }
inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
inline void set_TrueString_5(String_t* value)
{
___TrueString_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___FalseString_6)); }
inline String_t* get_FalseString_6() const { return ___FalseString_6; }
inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
inline void set_FalseString_6(String_t* value)
{
___FalseString_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
}
};
// System.Byte
struct Byte_t0111FAB8B8685667EDDAF77683F0D8F86B659056
{
public:
// System.Byte System.Byte::m_value
uint8_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Byte_t0111FAB8B8685667EDDAF77683F0D8F86B659056, ___m_value_0)); }
inline uint8_t get_m_value_0() const { return ___m_value_0; }
inline uint8_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint8_t value)
{
___m_value_0 = value;
}
};
// System.DateTime
struct DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405
{
public:
// System.UInt64 System.DateTime::dateData
uint64_t ___dateData_44;
public:
inline static int32_t get_offset_of_dateData_44() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405, ___dateData_44)); }
inline uint64_t get_dateData_44() const { return ___dateData_44; }
inline uint64_t* get_address_of_dateData_44() { return &___dateData_44; }
inline void set_dateData_44(uint64_t value)
{
___dateData_44 = value;
}
};
struct DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields
{
public:
// System.Int32[] System.DateTime::DaysToMonth365
Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___DaysToMonth365_29;
// System.Int32[] System.DateTime::DaysToMonth366
Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___DaysToMonth366_30;
// System.DateTime System.DateTime::MinValue
DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___MinValue_31;
// System.DateTime System.DateTime::MaxValue
DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___MaxValue_32;
public:
inline static int32_t get_offset_of_DaysToMonth365_29() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___DaysToMonth365_29)); }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_DaysToMonth365_29() const { return ___DaysToMonth365_29; }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_DaysToMonth365_29() { return &___DaysToMonth365_29; }
inline void set_DaysToMonth365_29(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value)
{
___DaysToMonth365_29 = value;
Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth365_29), (void*)value);
}
inline static int32_t get_offset_of_DaysToMonth366_30() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___DaysToMonth366_30)); }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_DaysToMonth366_30() const { return ___DaysToMonth366_30; }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_DaysToMonth366_30() { return &___DaysToMonth366_30; }
inline void set_DaysToMonth366_30(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value)
{
___DaysToMonth366_30 = value;
Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth366_30), (void*)value);
}
inline static int32_t get_offset_of_MinValue_31() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___MinValue_31)); }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_MinValue_31() const { return ___MinValue_31; }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_MinValue_31() { return &___MinValue_31; }
inline void set_MinValue_31(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value)
{
___MinValue_31 = value;
}
inline static int32_t get_offset_of_MaxValue_32() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___MaxValue_32)); }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_MaxValue_32() const { return ___MaxValue_32; }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_MaxValue_32() { return &___MaxValue_32; }
inline void set_MaxValue_32(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value)
{
___MaxValue_32 = value;
}
};
// Windows.Foundation.DateTime
struct DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C
{
public:
// System.Int64 Windows.Foundation.DateTime::UniversalTime
int64_t ___UniversalTime_0;
public:
inline static int32_t get_offset_of_UniversalTime_0() { return static_cast<int32_t>(offsetof(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C, ___UniversalTime_0)); }
inline int64_t get_UniversalTime_0() const { return ___UniversalTime_0; }
inline int64_t* get_address_of_UniversalTime_0() { return &___UniversalTime_0; }
inline void set_UniversalTime_0(int64_t value)
{
___UniversalTime_0 = value;
}
};
// System.Double
struct Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181
{
public:
// System.Double System.Double::m_value
double ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181, ___m_value_0)); }
inline double get_m_value_0() const { return ___m_value_0; }
inline double* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(double value)
{
___m_value_0 = value;
}
};
struct Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181_StaticFields
{
public:
// System.Double System.Double::NegativeZero
double ___NegativeZero_7;
public:
inline static int32_t get_offset_of_NegativeZero_7() { return static_cast<int32_t>(offsetof(Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181_StaticFields, ___NegativeZero_7)); }
inline double get_NegativeZero_7() const { return ___NegativeZero_7; }
inline double* get_address_of_NegativeZero_7() { return &___NegativeZero_7; }
inline void set_NegativeZero_7(double value)
{
___NegativeZero_7 = value;
}
};
// System.Enum
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52
{
public:
public:
};
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com
{
};
// System.Guid
struct Guid_t
{
public:
// System.Int32 System.Guid::_a
int32_t ____a_1;
// System.Int16 System.Guid::_b
int16_t ____b_2;
// System.Int16 System.Guid::_c
int16_t ____c_3;
// System.Byte System.Guid::_d
uint8_t ____d_4;
// System.Byte System.Guid::_e
uint8_t ____e_5;
// System.Byte System.Guid::_f
uint8_t ____f_6;
// System.Byte System.Guid::_g
uint8_t ____g_7;
// System.Byte System.Guid::_h
uint8_t ____h_8;
// System.Byte System.Guid::_i
uint8_t ____i_9;
// System.Byte System.Guid::_j
uint8_t ____j_10;
// System.Byte System.Guid::_k
uint8_t ____k_11;
public:
inline static int32_t get_offset_of__a_1() { return static_cast<int32_t>(offsetof(Guid_t, ____a_1)); }
inline int32_t get__a_1() const { return ____a_1; }
inline int32_t* get_address_of__a_1() { return &____a_1; }
inline void set__a_1(int32_t value)
{
____a_1 = value;
}
inline static int32_t get_offset_of__b_2() { return static_cast<int32_t>(offsetof(Guid_t, ____b_2)); }
inline int16_t get__b_2() const { return ____b_2; }
inline int16_t* get_address_of__b_2() { return &____b_2; }
inline void set__b_2(int16_t value)
{
____b_2 = value;
}
inline static int32_t get_offset_of__c_3() { return static_cast<int32_t>(offsetof(Guid_t, ____c_3)); }
inline int16_t get__c_3() const { return ____c_3; }
inline int16_t* get_address_of__c_3() { return &____c_3; }
inline void set__c_3(int16_t value)
{
____c_3 = value;
}
inline static int32_t get_offset_of__d_4() { return static_cast<int32_t>(offsetof(Guid_t, ____d_4)); }
inline uint8_t get__d_4() const { return ____d_4; }
inline uint8_t* get_address_of__d_4() { return &____d_4; }
inline void set__d_4(uint8_t value)
{
____d_4 = value;
}
inline static int32_t get_offset_of__e_5() { return static_cast<int32_t>(offsetof(Guid_t, ____e_5)); }
inline uint8_t get__e_5() const { return ____e_5; }
inline uint8_t* get_address_of__e_5() { return &____e_5; }
inline void set__e_5(uint8_t value)
{
____e_5 = value;
}
inline static int32_t get_offset_of__f_6() { return static_cast<int32_t>(offsetof(Guid_t, ____f_6)); }
inline uint8_t get__f_6() const { return ____f_6; }
inline uint8_t* get_address_of__f_6() { return &____f_6; }
inline void set__f_6(uint8_t value)
{
____f_6 = value;
}
inline static int32_t get_offset_of__g_7() { return static_cast<int32_t>(offsetof(Guid_t, ____g_7)); }
inline uint8_t get__g_7() const { return ____g_7; }
inline uint8_t* get_address_of__g_7() { return &____g_7; }
inline void set__g_7(uint8_t value)
{
____g_7 = value;
}
inline static int32_t get_offset_of__h_8() { return static_cast<int32_t>(offsetof(Guid_t, ____h_8)); }
inline uint8_t get__h_8() const { return ____h_8; }
inline uint8_t* get_address_of__h_8() { return &____h_8; }
inline void set__h_8(uint8_t value)
{
____h_8 = value;
}
inline static int32_t get_offset_of__i_9() { return static_cast<int32_t>(offsetof(Guid_t, ____i_9)); }
inline uint8_t get__i_9() const { return ____i_9; }
inline uint8_t* get_address_of__i_9() { return &____i_9; }
inline void set__i_9(uint8_t value)
{
____i_9 = value;
}
inline static int32_t get_offset_of__j_10() { return static_cast<int32_t>(offsetof(Guid_t, ____j_10)); }
inline uint8_t get__j_10() const { return ____j_10; }
inline uint8_t* get_address_of__j_10() { return &____j_10; }
inline void set__j_10(uint8_t value)
{
____j_10 = value;
}
inline static int32_t get_offset_of__k_11() { return static_cast<int32_t>(offsetof(Guid_t, ____k_11)); }
inline uint8_t get__k_11() const { return ____k_11; }
inline uint8_t* get_address_of__k_11() { return &____k_11; }
inline void set__k_11(uint8_t value)
{
____k_11 = value;
}
};
struct Guid_t_StaticFields
{
public:
// System.Guid System.Guid::Empty
Guid_t ___Empty_0;
// System.Object System.Guid::_rngAccess
RuntimeObject * ____rngAccess_12;
// System.Security.Cryptography.RandomNumberGenerator System.Guid::_rng
RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____rng_13;
// System.Security.Cryptography.RandomNumberGenerator System.Guid::_fastRng
RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____fastRng_14;
public:
inline static int32_t get_offset_of_Empty_0() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ___Empty_0)); }
inline Guid_t get_Empty_0() const { return ___Empty_0; }
inline Guid_t * get_address_of_Empty_0() { return &___Empty_0; }
inline void set_Empty_0(Guid_t value)
{
___Empty_0 = value;
}
inline static int32_t get_offset_of__rngAccess_12() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rngAccess_12)); }
inline RuntimeObject * get__rngAccess_12() const { return ____rngAccess_12; }
inline RuntimeObject ** get_address_of__rngAccess_12() { return &____rngAccess_12; }
inline void set__rngAccess_12(RuntimeObject * value)
{
____rngAccess_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&____rngAccess_12), (void*)value);
}
inline static int32_t get_offset_of__rng_13() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rng_13)); }
inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__rng_13() const { return ____rng_13; }
inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__rng_13() { return &____rng_13; }
inline void set__rng_13(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value)
{
____rng_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&____rng_13), (void*)value);
}
inline static int32_t get_offset_of__fastRng_14() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____fastRng_14)); }
inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__fastRng_14() const { return ____fastRng_14; }
inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__fastRng_14() { return &____fastRng_14; }
inline void set__fastRng_14(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value)
{
____fastRng_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&____fastRng_14), (void*)value);
}
};
// System.Int16
struct Int16_tD0F031114106263BB459DA1F099FF9F42691295A
{
public:
// System.Int16 System.Int16::m_value
int16_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int16_tD0F031114106263BB459DA1F099FF9F42691295A, ___m_value_0)); }
inline int16_t get_m_value_0() const { return ___m_value_0; }
inline int16_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int16_t value)
{
___m_value_0 = value;
}
};
// System.Int32
struct Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046
{
public:
// System.Int32 System.Int32::m_value
int32_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046, ___m_value_0)); }
inline int32_t get_m_value_0() const { return ___m_value_0; }
inline int32_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int32_t value)
{
___m_value_0 = value;
}
};
// System.Int64
struct Int64_t378EE0D608BD3107E77238E85F30D2BBD46981F3
{
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_t378EE0D608BD3107E77238E85F30D2BBD46981F3, ___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;
}
};
// System.IntPtr
struct IntPtr_t
{
public:
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
inline void* get_m_value_0() const { return ___m_value_0; }
inline void** get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(void* value)
{
___m_value_0 = value;
}
};
struct IntPtr_t_StaticFields
{
public:
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
public:
inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
inline intptr_t get_Zero_1() const { return ___Zero_1; }
inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
inline void set_Zero_1(intptr_t value)
{
___Zero_1 = value;
}
};
// Windows.Foundation.Point
struct Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578
{
public:
// System.Single Windows.Foundation.Point::_x
float ____x_0;
// System.Single Windows.Foundation.Point::_y
float ____y_1;
public:
inline static int32_t get_offset_of__x_0() { return static_cast<int32_t>(offsetof(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578, ____x_0)); }
inline float get__x_0() const { return ____x_0; }
inline float* get_address_of__x_0() { return &____x_0; }
inline void set__x_0(float value)
{
____x_0 = value;
}
inline static int32_t get_offset_of__y_1() { return static_cast<int32_t>(offsetof(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578, ____y_1)); }
inline float get__y_1() const { return ____y_1; }
inline float* get_address_of__y_1() { return &____y_1; }
inline void set__y_1(float value)
{
____y_1 = value;
}
};
// UnityEngine.Quaternion
struct Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4
{
public:
// System.Single UnityEngine.Quaternion::x
float ___x_0;
// System.Single UnityEngine.Quaternion::y
float ___y_1;
// System.Single UnityEngine.Quaternion::z
float ___z_2;
// System.Single UnityEngine.Quaternion::w
float ___w_3;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
inline static int32_t get_offset_of_z_2() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4, ___z_2)); }
inline float get_z_2() const { return ___z_2; }
inline float* get_address_of_z_2() { return &___z_2; }
inline void set_z_2(float value)
{
___z_2 = value;
}
inline static int32_t get_offset_of_w_3() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4, ___w_3)); }
inline float get_w_3() const { return ___w_3; }
inline float* get_address_of_w_3() { return &___w_3; }
inline void set_w_3(float value)
{
___w_3 = value;
}
};
struct Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4_StaticFields
{
public:
// UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion
Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 ___identityQuaternion_4;
public:
inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4_StaticFields, ___identityQuaternion_4)); }
inline Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 get_identityQuaternion_4() const { return ___identityQuaternion_4; }
inline Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; }
inline void set_identityQuaternion_4(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 value)
{
___identityQuaternion_4 = value;
}
};
// Windows.Foundation.Rect
struct Rect_tC45F1DDF39812623644DE296D8057A4958176627
{
public:
// System.Single Windows.Foundation.Rect::_x
float ____x_0;
// System.Single Windows.Foundation.Rect::_y
float ____y_1;
// System.Single Windows.Foundation.Rect::_width
float ____width_2;
// System.Single Windows.Foundation.Rect::_height
float ____height_3;
public:
inline static int32_t get_offset_of__x_0() { return static_cast<int32_t>(offsetof(Rect_tC45F1DDF39812623644DE296D8057A4958176627, ____x_0)); }
inline float get__x_0() const { return ____x_0; }
inline float* get_address_of__x_0() { return &____x_0; }
inline void set__x_0(float value)
{
____x_0 = value;
}
inline static int32_t get_offset_of__y_1() { return static_cast<int32_t>(offsetof(Rect_tC45F1DDF39812623644DE296D8057A4958176627, ____y_1)); }
inline float get__y_1() const { return ____y_1; }
inline float* get_address_of__y_1() { return &____y_1; }
inline void set__y_1(float value)
{
____y_1 = value;
}
inline static int32_t get_offset_of__width_2() { return static_cast<int32_t>(offsetof(Rect_tC45F1DDF39812623644DE296D8057A4958176627, ____width_2)); }
inline float get__width_2() const { return ____width_2; }
inline float* get_address_of__width_2() { return &____width_2; }
inline void set__width_2(float value)
{
____width_2 = value;
}
inline static int32_t get_offset_of__height_3() { return static_cast<int32_t>(offsetof(Rect_tC45F1DDF39812623644DE296D8057A4958176627, ____height_3)); }
inline float get__height_3() const { return ____height_3; }
inline float* get_address_of__height_3() { return &____height_3; }
inline void set__height_3(float value)
{
____height_3 = value;
}
};
// System.Single
struct Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E
{
public:
// System.Single System.Single::m_value
float ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E, ___m_value_0)); }
inline float get_m_value_0() const { return ___m_value_0; }
inline float* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(float value)
{
___m_value_0 = value;
}
};
// Windows.Foundation.Size
struct Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92
{
public:
// System.Single Windows.Foundation.Size::_width
float ____width_0;
// System.Single Windows.Foundation.Size::_height
float ____height_1;
public:
inline static int32_t get_offset_of__width_0() { return static_cast<int32_t>(offsetof(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92, ____width_0)); }
inline float get__width_0() const { return ____width_0; }
inline float* get_address_of__width_0() { return &____width_0; }
inline void set__width_0(float value)
{
____width_0 = value;
}
inline static int32_t get_offset_of__height_1() { return static_cast<int32_t>(offsetof(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92, ____height_1)); }
inline float get__height_1() const { return ____height_1; }
inline float* get_address_of__height_1() { return &____height_1; }
inline void set__height_1(float value)
{
____height_1 = value;
}
};
// Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject
struct SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A : public BaseSpatialAwarenessObject_tDEC7FF3F1B319E20ED34F26109C51E5D4BB48883
{
public:
// UnityEngine.MeshCollider Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject::<Collider>k__BackingField
MeshCollider_t1983F4E7E53D8C6B65FE21A8B4E2345A84D57E98 * ___U3CColliderU3Ek__BackingField_5;
public:
inline static int32_t get_offset_of_U3CColliderU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A, ___U3CColliderU3Ek__BackingField_5)); }
inline MeshCollider_t1983F4E7E53D8C6B65FE21A8B4E2345A84D57E98 * get_U3CColliderU3Ek__BackingField_5() const { return ___U3CColliderU3Ek__BackingField_5; }
inline MeshCollider_t1983F4E7E53D8C6B65FE21A8B4E2345A84D57E98 ** get_address_of_U3CColliderU3Ek__BackingField_5() { return &___U3CColliderU3Ek__BackingField_5; }
inline void set_U3CColliderU3Ek__BackingField_5(MeshCollider_t1983F4E7E53D8C6B65FE21A8B4E2345A84D57E98 * value)
{
___U3CColliderU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CColliderU3Ek__BackingField_5), (void*)value);
}
};
struct SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A_StaticFields
{
public:
// System.Type[] Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject::RequiredMeshComponents
TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755* ___RequiredMeshComponents_4;
public:
inline static int32_t get_offset_of_RequiredMeshComponents_4() { return static_cast<int32_t>(offsetof(SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A_StaticFields, ___RequiredMeshComponents_4)); }
inline TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755* get_RequiredMeshComponents_4() const { return ___RequiredMeshComponents_4; }
inline TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755** get_address_of_RequiredMeshComponents_4() { return &___RequiredMeshComponents_4; }
inline void set_RequiredMeshComponents_4(TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755* value)
{
___RequiredMeshComponents_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___RequiredMeshComponents_4), (void*)value);
}
};
// System.Data.SqlTypes.SqlBinary
struct SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B
{
public:
// System.Byte[] System.Data.SqlTypes.SqlBinary::_value
ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ____value_0;
public:
inline static int32_t get_offset_of__value_0() { return static_cast<int32_t>(offsetof(SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B, ____value_0)); }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get__value_0() const { return ____value_0; }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of__value_0() { return &____value_0; }
inline void set__value_0(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value)
{
____value_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____value_0), (void*)value);
}
};
struct SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B_StaticFields
{
public:
// System.Data.SqlTypes.SqlBinary System.Data.SqlTypes.SqlBinary::Null
SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B ___Null_1;
public:
inline static int32_t get_offset_of_Null_1() { return static_cast<int32_t>(offsetof(SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B_StaticFields, ___Null_1)); }
inline SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B get_Null_1() const { return ___Null_1; }
inline SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B * get_address_of_Null_1() { return &___Null_1; }
inline void set_Null_1(SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B value)
{
___Null_1 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___Null_1))->____value_0), (void*)NULL);
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlBinary
struct SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B_marshaled_pinvoke
{
Il2CppSafeArray/*NONE*/* ____value_0;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlBinary
struct SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B_marshaled_com
{
Il2CppSafeArray/*NONE*/* ____value_0;
};
// System.Data.SqlTypes.SqlBoolean
struct SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3
{
public:
// System.Byte System.Data.SqlTypes.SqlBoolean::m_value
uint8_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3, ___m_value_0)); }
inline uint8_t get_m_value_0() const { return ___m_value_0; }
inline uint8_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint8_t value)
{
___m_value_0 = value;
}
};
struct SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3_StaticFields
{
public:
// System.Data.SqlTypes.SqlBoolean System.Data.SqlTypes.SqlBoolean::True
SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 ___True_1;
// System.Data.SqlTypes.SqlBoolean System.Data.SqlTypes.SqlBoolean::False
SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 ___False_2;
// System.Data.SqlTypes.SqlBoolean System.Data.SqlTypes.SqlBoolean::Null
SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 ___Null_3;
// System.Data.SqlTypes.SqlBoolean System.Data.SqlTypes.SqlBoolean::Zero
SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 ___Zero_4;
// System.Data.SqlTypes.SqlBoolean System.Data.SqlTypes.SqlBoolean::One
SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 ___One_5;
public:
inline static int32_t get_offset_of_True_1() { return static_cast<int32_t>(offsetof(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3_StaticFields, ___True_1)); }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 get_True_1() const { return ___True_1; }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 * get_address_of_True_1() { return &___True_1; }
inline void set_True_1(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 value)
{
___True_1 = value;
}
inline static int32_t get_offset_of_False_2() { return static_cast<int32_t>(offsetof(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3_StaticFields, ___False_2)); }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 get_False_2() const { return ___False_2; }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 * get_address_of_False_2() { return &___False_2; }
inline void set_False_2(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 value)
{
___False_2 = value;
}
inline static int32_t get_offset_of_Null_3() { return static_cast<int32_t>(offsetof(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3_StaticFields, ___Null_3)); }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 get_Null_3() const { return ___Null_3; }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 * get_address_of_Null_3() { return &___Null_3; }
inline void set_Null_3(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 value)
{
___Null_3 = value;
}
inline static int32_t get_offset_of_Zero_4() { return static_cast<int32_t>(offsetof(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3_StaticFields, ___Zero_4)); }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 get_Zero_4() const { return ___Zero_4; }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 * get_address_of_Zero_4() { return &___Zero_4; }
inline void set_Zero_4(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 value)
{
___Zero_4 = value;
}
inline static int32_t get_offset_of_One_5() { return static_cast<int32_t>(offsetof(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3_StaticFields, ___One_5)); }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 get_One_5() const { return ___One_5; }
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 * get_address_of_One_5() { return &___One_5; }
inline void set_One_5(SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 value)
{
___One_5 = value;
}
};
// System.Data.SqlTypes.SqlByte
struct SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41
{
public:
// System.Boolean System.Data.SqlTypes.SqlByte::m_fNotNull
bool ___m_fNotNull_0;
// System.Byte System.Data.SqlTypes.SqlByte::m_value
uint8_t ___m_value_1;
public:
inline static int32_t get_offset_of_m_fNotNull_0() { return static_cast<int32_t>(offsetof(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41, ___m_fNotNull_0)); }
inline bool get_m_fNotNull_0() const { return ___m_fNotNull_0; }
inline bool* get_address_of_m_fNotNull_0() { return &___m_fNotNull_0; }
inline void set_m_fNotNull_0(bool value)
{
___m_fNotNull_0 = value;
}
inline static int32_t get_offset_of_m_value_1() { return static_cast<int32_t>(offsetof(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41, ___m_value_1)); }
inline uint8_t get_m_value_1() const { return ___m_value_1; }
inline uint8_t* get_address_of_m_value_1() { return &___m_value_1; }
inline void set_m_value_1(uint8_t value)
{
___m_value_1 = value;
}
};
struct SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41_StaticFields
{
public:
// System.Int32 System.Data.SqlTypes.SqlByte::s_iBitNotByteMax
int32_t ___s_iBitNotByteMax_2;
// System.Data.SqlTypes.SqlByte System.Data.SqlTypes.SqlByte::Null
SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 ___Null_3;
// System.Data.SqlTypes.SqlByte System.Data.SqlTypes.SqlByte::Zero
SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 ___Zero_4;
// System.Data.SqlTypes.SqlByte System.Data.SqlTypes.SqlByte::MinValue
SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 ___MinValue_5;
// System.Data.SqlTypes.SqlByte System.Data.SqlTypes.SqlByte::MaxValue
SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 ___MaxValue_6;
public:
inline static int32_t get_offset_of_s_iBitNotByteMax_2() { return static_cast<int32_t>(offsetof(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41_StaticFields, ___s_iBitNotByteMax_2)); }
inline int32_t get_s_iBitNotByteMax_2() const { return ___s_iBitNotByteMax_2; }
inline int32_t* get_address_of_s_iBitNotByteMax_2() { return &___s_iBitNotByteMax_2; }
inline void set_s_iBitNotByteMax_2(int32_t value)
{
___s_iBitNotByteMax_2 = value;
}
inline static int32_t get_offset_of_Null_3() { return static_cast<int32_t>(offsetof(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41_StaticFields, ___Null_3)); }
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 get_Null_3() const { return ___Null_3; }
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 * get_address_of_Null_3() { return &___Null_3; }
inline void set_Null_3(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 value)
{
___Null_3 = value;
}
inline static int32_t get_offset_of_Zero_4() { return static_cast<int32_t>(offsetof(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41_StaticFields, ___Zero_4)); }
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 get_Zero_4() const { return ___Zero_4; }
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 * get_address_of_Zero_4() { return &___Zero_4; }
inline void set_Zero_4(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 value)
{
___Zero_4 = value;
}
inline static int32_t get_offset_of_MinValue_5() { return static_cast<int32_t>(offsetof(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41_StaticFields, ___MinValue_5)); }
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 get_MinValue_5() const { return ___MinValue_5; }
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 * get_address_of_MinValue_5() { return &___MinValue_5; }
inline void set_MinValue_5(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 value)
{
___MinValue_5 = value;
}
inline static int32_t get_offset_of_MaxValue_6() { return static_cast<int32_t>(offsetof(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41_StaticFields, ___MaxValue_6)); }
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 get_MaxValue_6() const { return ___MaxValue_6; }
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 * get_address_of_MaxValue_6() { return &___MaxValue_6; }
inline void set_MaxValue_6(SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 value)
{
___MaxValue_6 = value;
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlByte
struct SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41_marshaled_pinvoke
{
int32_t ___m_fNotNull_0;
uint8_t ___m_value_1;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlByte
struct SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41_marshaled_com
{
int32_t ___m_fNotNull_0;
uint8_t ___m_value_1;
};
// System.Data.SqlTypes.SqlDecimal
struct SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B
{
public:
// System.Byte System.Data.SqlTypes.SqlDecimal::_bStatus
uint8_t ____bStatus_0;
// System.Byte System.Data.SqlTypes.SqlDecimal::_bLen
uint8_t ____bLen_1;
// System.Byte System.Data.SqlTypes.SqlDecimal::_bPrec
uint8_t ____bPrec_2;
// System.Byte System.Data.SqlTypes.SqlDecimal::_bScale
uint8_t ____bScale_3;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::_data1
uint32_t ____data1_4;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::_data2
uint32_t ____data2_5;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::_data3
uint32_t ____data3_6;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::_data4
uint32_t ____data4_7;
public:
inline static int32_t get_offset_of__bStatus_0() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B, ____bStatus_0)); }
inline uint8_t get__bStatus_0() const { return ____bStatus_0; }
inline uint8_t* get_address_of__bStatus_0() { return &____bStatus_0; }
inline void set__bStatus_0(uint8_t value)
{
____bStatus_0 = value;
}
inline static int32_t get_offset_of__bLen_1() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B, ____bLen_1)); }
inline uint8_t get__bLen_1() const { return ____bLen_1; }
inline uint8_t* get_address_of__bLen_1() { return &____bLen_1; }
inline void set__bLen_1(uint8_t value)
{
____bLen_1 = value;
}
inline static int32_t get_offset_of__bPrec_2() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B, ____bPrec_2)); }
inline uint8_t get__bPrec_2() const { return ____bPrec_2; }
inline uint8_t* get_address_of__bPrec_2() { return &____bPrec_2; }
inline void set__bPrec_2(uint8_t value)
{
____bPrec_2 = value;
}
inline static int32_t get_offset_of__bScale_3() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B, ____bScale_3)); }
inline uint8_t get__bScale_3() const { return ____bScale_3; }
inline uint8_t* get_address_of__bScale_3() { return &____bScale_3; }
inline void set__bScale_3(uint8_t value)
{
____bScale_3 = value;
}
inline static int32_t get_offset_of__data1_4() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B, ____data1_4)); }
inline uint32_t get__data1_4() const { return ____data1_4; }
inline uint32_t* get_address_of__data1_4() { return &____data1_4; }
inline void set__data1_4(uint32_t value)
{
____data1_4 = value;
}
inline static int32_t get_offset_of__data2_5() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B, ____data2_5)); }
inline uint32_t get__data2_5() const { return ____data2_5; }
inline uint32_t* get_address_of__data2_5() { return &____data2_5; }
inline void set__data2_5(uint32_t value)
{
____data2_5 = value;
}
inline static int32_t get_offset_of__data3_6() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B, ____data3_6)); }
inline uint32_t get__data3_6() const { return ____data3_6; }
inline uint32_t* get_address_of__data3_6() { return &____data3_6; }
inline void set__data3_6(uint32_t value)
{
____data3_6 = value;
}
inline static int32_t get_offset_of__data4_7() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B, ____data4_7)); }
inline uint32_t get__data4_7() const { return ____data4_7; }
inline uint32_t* get_address_of__data4_7() { return &____data4_7; }
inline void set__data4_7(uint32_t value)
{
____data4_7 = value;
}
};
struct SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields
{
public:
// System.Byte System.Data.SqlTypes.SqlDecimal::s_NUMERIC_MAX_PRECISION
uint8_t ___s_NUMERIC_MAX_PRECISION_8;
// System.Byte System.Data.SqlTypes.SqlDecimal::MaxPrecision
uint8_t ___MaxPrecision_9;
// System.Byte System.Data.SqlTypes.SqlDecimal::MaxScale
uint8_t ___MaxScale_10;
// System.Byte System.Data.SqlTypes.SqlDecimal::s_bNullMask
uint8_t ___s_bNullMask_11;
// System.Byte System.Data.SqlTypes.SqlDecimal::s_bIsNull
uint8_t ___s_bIsNull_12;
// System.Byte System.Data.SqlTypes.SqlDecimal::s_bNotNull
uint8_t ___s_bNotNull_13;
// System.Byte System.Data.SqlTypes.SqlDecimal::s_bReverseNullMask
uint8_t ___s_bReverseNullMask_14;
// System.Byte System.Data.SqlTypes.SqlDecimal::s_bSignMask
uint8_t ___s_bSignMask_15;
// System.Byte System.Data.SqlTypes.SqlDecimal::s_bPositive
uint8_t ___s_bPositive_16;
// System.Byte System.Data.SqlTypes.SqlDecimal::s_bNegative
uint8_t ___s_bNegative_17;
// System.Byte System.Data.SqlTypes.SqlDecimal::s_bReverseSignMask
uint8_t ___s_bReverseSignMask_18;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_uiZero
uint32_t ___s_uiZero_19;
// System.Int32 System.Data.SqlTypes.SqlDecimal::s_cNumeMax
int32_t ___s_cNumeMax_20;
// System.Int64 System.Data.SqlTypes.SqlDecimal::s_lInt32Base
int64_t ___s_lInt32Base_21;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_ulInt32Base
uint64_t ___s_ulInt32Base_22;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_ulInt32BaseForMod
uint64_t ___s_ulInt32BaseForMod_23;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_llMax
uint64_t ___s_llMax_24;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulBase10
uint32_t ___s_ulBase10_25;
// System.Double System.Data.SqlTypes.SqlDecimal::s_DUINT_BASE
double ___s_DUINT_BASE_26;
// System.Double System.Data.SqlTypes.SqlDecimal::s_DUINT_BASE2
double ___s_DUINT_BASE2_27;
// System.Double System.Data.SqlTypes.SqlDecimal::s_DUINT_BASE3
double ___s_DUINT_BASE3_28;
// System.Double System.Data.SqlTypes.SqlDecimal::s_DMAX_NUME
double ___s_DMAX_NUME_29;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_DBL_DIG
uint32_t ___s_DBL_DIG_30;
// System.Byte System.Data.SqlTypes.SqlDecimal::s_cNumeDivScaleMin
uint8_t ___s_cNumeDivScaleMin_31;
// System.UInt32[] System.Data.SqlTypes.SqlDecimal::s_rgulShiftBase
UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* ___s_rgulShiftBase_32;
// System.UInt32[] System.Data.SqlTypes.SqlDecimal::s_decimalHelpersLo
UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* ___s_decimalHelpersLo_33;
// System.UInt32[] System.Data.SqlTypes.SqlDecimal::s_decimalHelpersMid
UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* ___s_decimalHelpersMid_34;
// System.UInt32[] System.Data.SqlTypes.SqlDecimal::s_decimalHelpersHi
UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* ___s_decimalHelpersHi_35;
// System.UInt32[] System.Data.SqlTypes.SqlDecimal::s_decimalHelpersHiHi
UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* ___s_decimalHelpersHiHi_36;
// System.Byte[] System.Data.SqlTypes.SqlDecimal::s_rgCLenFromPrec
ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___s_rgCLenFromPrec_37;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulT1
uint32_t ___s_ulT1_38;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulT2
uint32_t ___s_ulT2_39;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulT3
uint32_t ___s_ulT3_40;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulT4
uint32_t ___s_ulT4_41;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulT5
uint32_t ___s_ulT5_42;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulT6
uint32_t ___s_ulT6_43;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulT7
uint32_t ___s_ulT7_44;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulT8
uint32_t ___s_ulT8_45;
// System.UInt32 System.Data.SqlTypes.SqlDecimal::s_ulT9
uint32_t ___s_ulT9_46;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT10
uint64_t ___s_dwlT10_47;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT11
uint64_t ___s_dwlT11_48;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT12
uint64_t ___s_dwlT12_49;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT13
uint64_t ___s_dwlT13_50;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT14
uint64_t ___s_dwlT14_51;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT15
uint64_t ___s_dwlT15_52;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT16
uint64_t ___s_dwlT16_53;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT17
uint64_t ___s_dwlT17_54;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT18
uint64_t ___s_dwlT18_55;
// System.UInt64 System.Data.SqlTypes.SqlDecimal::s_dwlT19
uint64_t ___s_dwlT19_56;
// System.Data.SqlTypes.SqlDecimal System.Data.SqlTypes.SqlDecimal::Null
SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B ___Null_57;
// System.Data.SqlTypes.SqlDecimal System.Data.SqlTypes.SqlDecimal::MinValue
SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B ___MinValue_58;
// System.Data.SqlTypes.SqlDecimal System.Data.SqlTypes.SqlDecimal::MaxValue
SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B ___MaxValue_59;
public:
inline static int32_t get_offset_of_s_NUMERIC_MAX_PRECISION_8() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_NUMERIC_MAX_PRECISION_8)); }
inline uint8_t get_s_NUMERIC_MAX_PRECISION_8() const { return ___s_NUMERIC_MAX_PRECISION_8; }
inline uint8_t* get_address_of_s_NUMERIC_MAX_PRECISION_8() { return &___s_NUMERIC_MAX_PRECISION_8; }
inline void set_s_NUMERIC_MAX_PRECISION_8(uint8_t value)
{
___s_NUMERIC_MAX_PRECISION_8 = value;
}
inline static int32_t get_offset_of_MaxPrecision_9() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___MaxPrecision_9)); }
inline uint8_t get_MaxPrecision_9() const { return ___MaxPrecision_9; }
inline uint8_t* get_address_of_MaxPrecision_9() { return &___MaxPrecision_9; }
inline void set_MaxPrecision_9(uint8_t value)
{
___MaxPrecision_9 = value;
}
inline static int32_t get_offset_of_MaxScale_10() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___MaxScale_10)); }
inline uint8_t get_MaxScale_10() const { return ___MaxScale_10; }
inline uint8_t* get_address_of_MaxScale_10() { return &___MaxScale_10; }
inline void set_MaxScale_10(uint8_t value)
{
___MaxScale_10 = value;
}
inline static int32_t get_offset_of_s_bNullMask_11() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_bNullMask_11)); }
inline uint8_t get_s_bNullMask_11() const { return ___s_bNullMask_11; }
inline uint8_t* get_address_of_s_bNullMask_11() { return &___s_bNullMask_11; }
inline void set_s_bNullMask_11(uint8_t value)
{
___s_bNullMask_11 = value;
}
inline static int32_t get_offset_of_s_bIsNull_12() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_bIsNull_12)); }
inline uint8_t get_s_bIsNull_12() const { return ___s_bIsNull_12; }
inline uint8_t* get_address_of_s_bIsNull_12() { return &___s_bIsNull_12; }
inline void set_s_bIsNull_12(uint8_t value)
{
___s_bIsNull_12 = value;
}
inline static int32_t get_offset_of_s_bNotNull_13() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_bNotNull_13)); }
inline uint8_t get_s_bNotNull_13() const { return ___s_bNotNull_13; }
inline uint8_t* get_address_of_s_bNotNull_13() { return &___s_bNotNull_13; }
inline void set_s_bNotNull_13(uint8_t value)
{
___s_bNotNull_13 = value;
}
inline static int32_t get_offset_of_s_bReverseNullMask_14() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_bReverseNullMask_14)); }
inline uint8_t get_s_bReverseNullMask_14() const { return ___s_bReverseNullMask_14; }
inline uint8_t* get_address_of_s_bReverseNullMask_14() { return &___s_bReverseNullMask_14; }
inline void set_s_bReverseNullMask_14(uint8_t value)
{
___s_bReverseNullMask_14 = value;
}
inline static int32_t get_offset_of_s_bSignMask_15() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_bSignMask_15)); }
inline uint8_t get_s_bSignMask_15() const { return ___s_bSignMask_15; }
inline uint8_t* get_address_of_s_bSignMask_15() { return &___s_bSignMask_15; }
inline void set_s_bSignMask_15(uint8_t value)
{
___s_bSignMask_15 = value;
}
inline static int32_t get_offset_of_s_bPositive_16() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_bPositive_16)); }
inline uint8_t get_s_bPositive_16() const { return ___s_bPositive_16; }
inline uint8_t* get_address_of_s_bPositive_16() { return &___s_bPositive_16; }
inline void set_s_bPositive_16(uint8_t value)
{
___s_bPositive_16 = value;
}
inline static int32_t get_offset_of_s_bNegative_17() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_bNegative_17)); }
inline uint8_t get_s_bNegative_17() const { return ___s_bNegative_17; }
inline uint8_t* get_address_of_s_bNegative_17() { return &___s_bNegative_17; }
inline void set_s_bNegative_17(uint8_t value)
{
___s_bNegative_17 = value;
}
inline static int32_t get_offset_of_s_bReverseSignMask_18() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_bReverseSignMask_18)); }
inline uint8_t get_s_bReverseSignMask_18() const { return ___s_bReverseSignMask_18; }
inline uint8_t* get_address_of_s_bReverseSignMask_18() { return &___s_bReverseSignMask_18; }
inline void set_s_bReverseSignMask_18(uint8_t value)
{
___s_bReverseSignMask_18 = value;
}
inline static int32_t get_offset_of_s_uiZero_19() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_uiZero_19)); }
inline uint32_t get_s_uiZero_19() const { return ___s_uiZero_19; }
inline uint32_t* get_address_of_s_uiZero_19() { return &___s_uiZero_19; }
inline void set_s_uiZero_19(uint32_t value)
{
___s_uiZero_19 = value;
}
inline static int32_t get_offset_of_s_cNumeMax_20() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_cNumeMax_20)); }
inline int32_t get_s_cNumeMax_20() const { return ___s_cNumeMax_20; }
inline int32_t* get_address_of_s_cNumeMax_20() { return &___s_cNumeMax_20; }
inline void set_s_cNumeMax_20(int32_t value)
{
___s_cNumeMax_20 = value;
}
inline static int32_t get_offset_of_s_lInt32Base_21() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_lInt32Base_21)); }
inline int64_t get_s_lInt32Base_21() const { return ___s_lInt32Base_21; }
inline int64_t* get_address_of_s_lInt32Base_21() { return &___s_lInt32Base_21; }
inline void set_s_lInt32Base_21(int64_t value)
{
___s_lInt32Base_21 = value;
}
inline static int32_t get_offset_of_s_ulInt32Base_22() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulInt32Base_22)); }
inline uint64_t get_s_ulInt32Base_22() const { return ___s_ulInt32Base_22; }
inline uint64_t* get_address_of_s_ulInt32Base_22() { return &___s_ulInt32Base_22; }
inline void set_s_ulInt32Base_22(uint64_t value)
{
___s_ulInt32Base_22 = value;
}
inline static int32_t get_offset_of_s_ulInt32BaseForMod_23() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulInt32BaseForMod_23)); }
inline uint64_t get_s_ulInt32BaseForMod_23() const { return ___s_ulInt32BaseForMod_23; }
inline uint64_t* get_address_of_s_ulInt32BaseForMod_23() { return &___s_ulInt32BaseForMod_23; }
inline void set_s_ulInt32BaseForMod_23(uint64_t value)
{
___s_ulInt32BaseForMod_23 = value;
}
inline static int32_t get_offset_of_s_llMax_24() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_llMax_24)); }
inline uint64_t get_s_llMax_24() const { return ___s_llMax_24; }
inline uint64_t* get_address_of_s_llMax_24() { return &___s_llMax_24; }
inline void set_s_llMax_24(uint64_t value)
{
___s_llMax_24 = value;
}
inline static int32_t get_offset_of_s_ulBase10_25() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulBase10_25)); }
inline uint32_t get_s_ulBase10_25() const { return ___s_ulBase10_25; }
inline uint32_t* get_address_of_s_ulBase10_25() { return &___s_ulBase10_25; }
inline void set_s_ulBase10_25(uint32_t value)
{
___s_ulBase10_25 = value;
}
inline static int32_t get_offset_of_s_DUINT_BASE_26() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_DUINT_BASE_26)); }
inline double get_s_DUINT_BASE_26() const { return ___s_DUINT_BASE_26; }
inline double* get_address_of_s_DUINT_BASE_26() { return &___s_DUINT_BASE_26; }
inline void set_s_DUINT_BASE_26(double value)
{
___s_DUINT_BASE_26 = value;
}
inline static int32_t get_offset_of_s_DUINT_BASE2_27() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_DUINT_BASE2_27)); }
inline double get_s_DUINT_BASE2_27() const { return ___s_DUINT_BASE2_27; }
inline double* get_address_of_s_DUINT_BASE2_27() { return &___s_DUINT_BASE2_27; }
inline void set_s_DUINT_BASE2_27(double value)
{
___s_DUINT_BASE2_27 = value;
}
inline static int32_t get_offset_of_s_DUINT_BASE3_28() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_DUINT_BASE3_28)); }
inline double get_s_DUINT_BASE3_28() const { return ___s_DUINT_BASE3_28; }
inline double* get_address_of_s_DUINT_BASE3_28() { return &___s_DUINT_BASE3_28; }
inline void set_s_DUINT_BASE3_28(double value)
{
___s_DUINT_BASE3_28 = value;
}
inline static int32_t get_offset_of_s_DMAX_NUME_29() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_DMAX_NUME_29)); }
inline double get_s_DMAX_NUME_29() const { return ___s_DMAX_NUME_29; }
inline double* get_address_of_s_DMAX_NUME_29() { return &___s_DMAX_NUME_29; }
inline void set_s_DMAX_NUME_29(double value)
{
___s_DMAX_NUME_29 = value;
}
inline static int32_t get_offset_of_s_DBL_DIG_30() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_DBL_DIG_30)); }
inline uint32_t get_s_DBL_DIG_30() const { return ___s_DBL_DIG_30; }
inline uint32_t* get_address_of_s_DBL_DIG_30() { return &___s_DBL_DIG_30; }
inline void set_s_DBL_DIG_30(uint32_t value)
{
___s_DBL_DIG_30 = value;
}
inline static int32_t get_offset_of_s_cNumeDivScaleMin_31() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_cNumeDivScaleMin_31)); }
inline uint8_t get_s_cNumeDivScaleMin_31() const { return ___s_cNumeDivScaleMin_31; }
inline uint8_t* get_address_of_s_cNumeDivScaleMin_31() { return &___s_cNumeDivScaleMin_31; }
inline void set_s_cNumeDivScaleMin_31(uint8_t value)
{
___s_cNumeDivScaleMin_31 = value;
}
inline static int32_t get_offset_of_s_rgulShiftBase_32() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_rgulShiftBase_32)); }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* get_s_rgulShiftBase_32() const { return ___s_rgulShiftBase_32; }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF** get_address_of_s_rgulShiftBase_32() { return &___s_rgulShiftBase_32; }
inline void set_s_rgulShiftBase_32(UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* value)
{
___s_rgulShiftBase_32 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_rgulShiftBase_32), (void*)value);
}
inline static int32_t get_offset_of_s_decimalHelpersLo_33() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_decimalHelpersLo_33)); }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* get_s_decimalHelpersLo_33() const { return ___s_decimalHelpersLo_33; }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF** get_address_of_s_decimalHelpersLo_33() { return &___s_decimalHelpersLo_33; }
inline void set_s_decimalHelpersLo_33(UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* value)
{
___s_decimalHelpersLo_33 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_decimalHelpersLo_33), (void*)value);
}
inline static int32_t get_offset_of_s_decimalHelpersMid_34() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_decimalHelpersMid_34)); }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* get_s_decimalHelpersMid_34() const { return ___s_decimalHelpersMid_34; }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF** get_address_of_s_decimalHelpersMid_34() { return &___s_decimalHelpersMid_34; }
inline void set_s_decimalHelpersMid_34(UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* value)
{
___s_decimalHelpersMid_34 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_decimalHelpersMid_34), (void*)value);
}
inline static int32_t get_offset_of_s_decimalHelpersHi_35() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_decimalHelpersHi_35)); }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* get_s_decimalHelpersHi_35() const { return ___s_decimalHelpersHi_35; }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF** get_address_of_s_decimalHelpersHi_35() { return &___s_decimalHelpersHi_35; }
inline void set_s_decimalHelpersHi_35(UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* value)
{
___s_decimalHelpersHi_35 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_decimalHelpersHi_35), (void*)value);
}
inline static int32_t get_offset_of_s_decimalHelpersHiHi_36() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_decimalHelpersHiHi_36)); }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* get_s_decimalHelpersHiHi_36() const { return ___s_decimalHelpersHiHi_36; }
inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF** get_address_of_s_decimalHelpersHiHi_36() { return &___s_decimalHelpersHiHi_36; }
inline void set_s_decimalHelpersHiHi_36(UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* value)
{
___s_decimalHelpersHiHi_36 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_decimalHelpersHiHi_36), (void*)value);
}
inline static int32_t get_offset_of_s_rgCLenFromPrec_37() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_rgCLenFromPrec_37)); }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get_s_rgCLenFromPrec_37() const { return ___s_rgCLenFromPrec_37; }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of_s_rgCLenFromPrec_37() { return &___s_rgCLenFromPrec_37; }
inline void set_s_rgCLenFromPrec_37(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value)
{
___s_rgCLenFromPrec_37 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_rgCLenFromPrec_37), (void*)value);
}
inline static int32_t get_offset_of_s_ulT1_38() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulT1_38)); }
inline uint32_t get_s_ulT1_38() const { return ___s_ulT1_38; }
inline uint32_t* get_address_of_s_ulT1_38() { return &___s_ulT1_38; }
inline void set_s_ulT1_38(uint32_t value)
{
___s_ulT1_38 = value;
}
inline static int32_t get_offset_of_s_ulT2_39() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulT2_39)); }
inline uint32_t get_s_ulT2_39() const { return ___s_ulT2_39; }
inline uint32_t* get_address_of_s_ulT2_39() { return &___s_ulT2_39; }
inline void set_s_ulT2_39(uint32_t value)
{
___s_ulT2_39 = value;
}
inline static int32_t get_offset_of_s_ulT3_40() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulT3_40)); }
inline uint32_t get_s_ulT3_40() const { return ___s_ulT3_40; }
inline uint32_t* get_address_of_s_ulT3_40() { return &___s_ulT3_40; }
inline void set_s_ulT3_40(uint32_t value)
{
___s_ulT3_40 = value;
}
inline static int32_t get_offset_of_s_ulT4_41() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulT4_41)); }
inline uint32_t get_s_ulT4_41() const { return ___s_ulT4_41; }
inline uint32_t* get_address_of_s_ulT4_41() { return &___s_ulT4_41; }
inline void set_s_ulT4_41(uint32_t value)
{
___s_ulT4_41 = value;
}
inline static int32_t get_offset_of_s_ulT5_42() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulT5_42)); }
inline uint32_t get_s_ulT5_42() const { return ___s_ulT5_42; }
inline uint32_t* get_address_of_s_ulT5_42() { return &___s_ulT5_42; }
inline void set_s_ulT5_42(uint32_t value)
{
___s_ulT5_42 = value;
}
inline static int32_t get_offset_of_s_ulT6_43() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulT6_43)); }
inline uint32_t get_s_ulT6_43() const { return ___s_ulT6_43; }
inline uint32_t* get_address_of_s_ulT6_43() { return &___s_ulT6_43; }
inline void set_s_ulT6_43(uint32_t value)
{
___s_ulT6_43 = value;
}
inline static int32_t get_offset_of_s_ulT7_44() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulT7_44)); }
inline uint32_t get_s_ulT7_44() const { return ___s_ulT7_44; }
inline uint32_t* get_address_of_s_ulT7_44() { return &___s_ulT7_44; }
inline void set_s_ulT7_44(uint32_t value)
{
___s_ulT7_44 = value;
}
inline static int32_t get_offset_of_s_ulT8_45() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulT8_45)); }
inline uint32_t get_s_ulT8_45() const { return ___s_ulT8_45; }
inline uint32_t* get_address_of_s_ulT8_45() { return &___s_ulT8_45; }
inline void set_s_ulT8_45(uint32_t value)
{
___s_ulT8_45 = value;
}
inline static int32_t get_offset_of_s_ulT9_46() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_ulT9_46)); }
inline uint32_t get_s_ulT9_46() const { return ___s_ulT9_46; }
inline uint32_t* get_address_of_s_ulT9_46() { return &___s_ulT9_46; }
inline void set_s_ulT9_46(uint32_t value)
{
___s_ulT9_46 = value;
}
inline static int32_t get_offset_of_s_dwlT10_47() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT10_47)); }
inline uint64_t get_s_dwlT10_47() const { return ___s_dwlT10_47; }
inline uint64_t* get_address_of_s_dwlT10_47() { return &___s_dwlT10_47; }
inline void set_s_dwlT10_47(uint64_t value)
{
___s_dwlT10_47 = value;
}
inline static int32_t get_offset_of_s_dwlT11_48() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT11_48)); }
inline uint64_t get_s_dwlT11_48() const { return ___s_dwlT11_48; }
inline uint64_t* get_address_of_s_dwlT11_48() { return &___s_dwlT11_48; }
inline void set_s_dwlT11_48(uint64_t value)
{
___s_dwlT11_48 = value;
}
inline static int32_t get_offset_of_s_dwlT12_49() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT12_49)); }
inline uint64_t get_s_dwlT12_49() const { return ___s_dwlT12_49; }
inline uint64_t* get_address_of_s_dwlT12_49() { return &___s_dwlT12_49; }
inline void set_s_dwlT12_49(uint64_t value)
{
___s_dwlT12_49 = value;
}
inline static int32_t get_offset_of_s_dwlT13_50() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT13_50)); }
inline uint64_t get_s_dwlT13_50() const { return ___s_dwlT13_50; }
inline uint64_t* get_address_of_s_dwlT13_50() { return &___s_dwlT13_50; }
inline void set_s_dwlT13_50(uint64_t value)
{
___s_dwlT13_50 = value;
}
inline static int32_t get_offset_of_s_dwlT14_51() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT14_51)); }
inline uint64_t get_s_dwlT14_51() const { return ___s_dwlT14_51; }
inline uint64_t* get_address_of_s_dwlT14_51() { return &___s_dwlT14_51; }
inline void set_s_dwlT14_51(uint64_t value)
{
___s_dwlT14_51 = value;
}
inline static int32_t get_offset_of_s_dwlT15_52() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT15_52)); }
inline uint64_t get_s_dwlT15_52() const { return ___s_dwlT15_52; }
inline uint64_t* get_address_of_s_dwlT15_52() { return &___s_dwlT15_52; }
inline void set_s_dwlT15_52(uint64_t value)
{
___s_dwlT15_52 = value;
}
inline static int32_t get_offset_of_s_dwlT16_53() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT16_53)); }
inline uint64_t get_s_dwlT16_53() const { return ___s_dwlT16_53; }
inline uint64_t* get_address_of_s_dwlT16_53() { return &___s_dwlT16_53; }
inline void set_s_dwlT16_53(uint64_t value)
{
___s_dwlT16_53 = value;
}
inline static int32_t get_offset_of_s_dwlT17_54() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT17_54)); }
inline uint64_t get_s_dwlT17_54() const { return ___s_dwlT17_54; }
inline uint64_t* get_address_of_s_dwlT17_54() { return &___s_dwlT17_54; }
inline void set_s_dwlT17_54(uint64_t value)
{
___s_dwlT17_54 = value;
}
inline static int32_t get_offset_of_s_dwlT18_55() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT18_55)); }
inline uint64_t get_s_dwlT18_55() const { return ___s_dwlT18_55; }
inline uint64_t* get_address_of_s_dwlT18_55() { return &___s_dwlT18_55; }
inline void set_s_dwlT18_55(uint64_t value)
{
___s_dwlT18_55 = value;
}
inline static int32_t get_offset_of_s_dwlT19_56() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___s_dwlT19_56)); }
inline uint64_t get_s_dwlT19_56() const { return ___s_dwlT19_56; }
inline uint64_t* get_address_of_s_dwlT19_56() { return &___s_dwlT19_56; }
inline void set_s_dwlT19_56(uint64_t value)
{
___s_dwlT19_56 = value;
}
inline static int32_t get_offset_of_Null_57() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___Null_57)); }
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B get_Null_57() const { return ___Null_57; }
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B * get_address_of_Null_57() { return &___Null_57; }
inline void set_Null_57(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B value)
{
___Null_57 = value;
}
inline static int32_t get_offset_of_MinValue_58() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___MinValue_58)); }
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B get_MinValue_58() const { return ___MinValue_58; }
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B * get_address_of_MinValue_58() { return &___MinValue_58; }
inline void set_MinValue_58(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B value)
{
___MinValue_58 = value;
}
inline static int32_t get_offset_of_MaxValue_59() { return static_cast<int32_t>(offsetof(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B_StaticFields, ___MaxValue_59)); }
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B get_MaxValue_59() const { return ___MaxValue_59; }
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B * get_address_of_MaxValue_59() { return &___MaxValue_59; }
inline void set_MaxValue_59(SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B value)
{
___MaxValue_59 = value;
}
};
// System.Data.SqlTypes.SqlDouble
struct SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA
{
public:
// System.Boolean System.Data.SqlTypes.SqlDouble::m_fNotNull
bool ___m_fNotNull_0;
// System.Double System.Data.SqlTypes.SqlDouble::m_value
double ___m_value_1;
public:
inline static int32_t get_offset_of_m_fNotNull_0() { return static_cast<int32_t>(offsetof(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA, ___m_fNotNull_0)); }
inline bool get_m_fNotNull_0() const { return ___m_fNotNull_0; }
inline bool* get_address_of_m_fNotNull_0() { return &___m_fNotNull_0; }
inline void set_m_fNotNull_0(bool value)
{
___m_fNotNull_0 = value;
}
inline static int32_t get_offset_of_m_value_1() { return static_cast<int32_t>(offsetof(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA, ___m_value_1)); }
inline double get_m_value_1() const { return ___m_value_1; }
inline double* get_address_of_m_value_1() { return &___m_value_1; }
inline void set_m_value_1(double value)
{
___m_value_1 = value;
}
};
struct SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA_StaticFields
{
public:
// System.Data.SqlTypes.SqlDouble System.Data.SqlTypes.SqlDouble::Null
SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA ___Null_2;
// System.Data.SqlTypes.SqlDouble System.Data.SqlTypes.SqlDouble::Zero
SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA ___Zero_3;
// System.Data.SqlTypes.SqlDouble System.Data.SqlTypes.SqlDouble::MinValue
SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA ___MinValue_4;
// System.Data.SqlTypes.SqlDouble System.Data.SqlTypes.SqlDouble::MaxValue
SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA ___MaxValue_5;
public:
inline static int32_t get_offset_of_Null_2() { return static_cast<int32_t>(offsetof(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA_StaticFields, ___Null_2)); }
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA get_Null_2() const { return ___Null_2; }
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA * get_address_of_Null_2() { return &___Null_2; }
inline void set_Null_2(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA value)
{
___Null_2 = value;
}
inline static int32_t get_offset_of_Zero_3() { return static_cast<int32_t>(offsetof(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA_StaticFields, ___Zero_3)); }
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA get_Zero_3() const { return ___Zero_3; }
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA * get_address_of_Zero_3() { return &___Zero_3; }
inline void set_Zero_3(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA value)
{
___Zero_3 = value;
}
inline static int32_t get_offset_of_MinValue_4() { return static_cast<int32_t>(offsetof(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA_StaticFields, ___MinValue_4)); }
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA get_MinValue_4() const { return ___MinValue_4; }
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA * get_address_of_MinValue_4() { return &___MinValue_4; }
inline void set_MinValue_4(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA value)
{
___MinValue_4 = value;
}
inline static int32_t get_offset_of_MaxValue_5() { return static_cast<int32_t>(offsetof(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA_StaticFields, ___MaxValue_5)); }
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA get_MaxValue_5() const { return ___MaxValue_5; }
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA * get_address_of_MaxValue_5() { return &___MaxValue_5; }
inline void set_MaxValue_5(SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA value)
{
___MaxValue_5 = value;
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlDouble
struct SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA_marshaled_pinvoke
{
int32_t ___m_fNotNull_0;
double ___m_value_1;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlDouble
struct SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA_marshaled_com
{
int32_t ___m_fNotNull_0;
double ___m_value_1;
};
// System.Data.SqlTypes.SqlGuid
struct SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46
{
public:
// System.Byte[] System.Data.SqlTypes.SqlGuid::m_value
ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___m_value_2;
public:
inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46, ___m_value_2)); }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get_m_value_2() const { return ___m_value_2; }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of_m_value_2() { return &___m_value_2; }
inline void set_m_value_2(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value)
{
___m_value_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_value_2), (void*)value);
}
};
struct SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46_StaticFields
{
public:
// System.Int32 System.Data.SqlTypes.SqlGuid::s_sizeOfGuid
int32_t ___s_sizeOfGuid_0;
// System.Int32[] System.Data.SqlTypes.SqlGuid::s_rgiGuidOrder
Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___s_rgiGuidOrder_1;
// System.Data.SqlTypes.SqlGuid System.Data.SqlTypes.SqlGuid::Null
SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 ___Null_3;
public:
inline static int32_t get_offset_of_s_sizeOfGuid_0() { return static_cast<int32_t>(offsetof(SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46_StaticFields, ___s_sizeOfGuid_0)); }
inline int32_t get_s_sizeOfGuid_0() const { return ___s_sizeOfGuid_0; }
inline int32_t* get_address_of_s_sizeOfGuid_0() { return &___s_sizeOfGuid_0; }
inline void set_s_sizeOfGuid_0(int32_t value)
{
___s_sizeOfGuid_0 = value;
}
inline static int32_t get_offset_of_s_rgiGuidOrder_1() { return static_cast<int32_t>(offsetof(SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46_StaticFields, ___s_rgiGuidOrder_1)); }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_s_rgiGuidOrder_1() const { return ___s_rgiGuidOrder_1; }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_s_rgiGuidOrder_1() { return &___s_rgiGuidOrder_1; }
inline void set_s_rgiGuidOrder_1(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value)
{
___s_rgiGuidOrder_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_rgiGuidOrder_1), (void*)value);
}
inline static int32_t get_offset_of_Null_3() { return static_cast<int32_t>(offsetof(SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46_StaticFields, ___Null_3)); }
inline SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 get_Null_3() const { return ___Null_3; }
inline SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 * get_address_of_Null_3() { return &___Null_3; }
inline void set_Null_3(SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 value)
{
___Null_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___Null_3))->___m_value_2), (void*)NULL);
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlGuid
struct SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46_marshaled_pinvoke
{
Il2CppSafeArray/*NONE*/* ___m_value_2;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlGuid
struct SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46_marshaled_com
{
Il2CppSafeArray/*NONE*/* ___m_value_2;
};
// System.Data.SqlTypes.SqlInt16
struct SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F
{
public:
// System.Boolean System.Data.SqlTypes.SqlInt16::m_fNotNull
bool ___m_fNotNull_0;
// System.Int16 System.Data.SqlTypes.SqlInt16::m_value
int16_t ___m_value_1;
public:
inline static int32_t get_offset_of_m_fNotNull_0() { return static_cast<int32_t>(offsetof(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F, ___m_fNotNull_0)); }
inline bool get_m_fNotNull_0() const { return ___m_fNotNull_0; }
inline bool* get_address_of_m_fNotNull_0() { return &___m_fNotNull_0; }
inline void set_m_fNotNull_0(bool value)
{
___m_fNotNull_0 = value;
}
inline static int32_t get_offset_of_m_value_1() { return static_cast<int32_t>(offsetof(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F, ___m_value_1)); }
inline int16_t get_m_value_1() const { return ___m_value_1; }
inline int16_t* get_address_of_m_value_1() { return &___m_value_1; }
inline void set_m_value_1(int16_t value)
{
___m_value_1 = value;
}
};
struct SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F_StaticFields
{
public:
// System.Int32 System.Data.SqlTypes.SqlInt16::s_MASKI2
int32_t ___s_MASKI2_2;
// System.Data.SqlTypes.SqlInt16 System.Data.SqlTypes.SqlInt16::Null
SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F ___Null_3;
// System.Data.SqlTypes.SqlInt16 System.Data.SqlTypes.SqlInt16::Zero
SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F ___Zero_4;
// System.Data.SqlTypes.SqlInt16 System.Data.SqlTypes.SqlInt16::MinValue
SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F ___MinValue_5;
// System.Data.SqlTypes.SqlInt16 System.Data.SqlTypes.SqlInt16::MaxValue
SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F ___MaxValue_6;
public:
inline static int32_t get_offset_of_s_MASKI2_2() { return static_cast<int32_t>(offsetof(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F_StaticFields, ___s_MASKI2_2)); }
inline int32_t get_s_MASKI2_2() const { return ___s_MASKI2_2; }
inline int32_t* get_address_of_s_MASKI2_2() { return &___s_MASKI2_2; }
inline void set_s_MASKI2_2(int32_t value)
{
___s_MASKI2_2 = value;
}
inline static int32_t get_offset_of_Null_3() { return static_cast<int32_t>(offsetof(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F_StaticFields, ___Null_3)); }
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F get_Null_3() const { return ___Null_3; }
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F * get_address_of_Null_3() { return &___Null_3; }
inline void set_Null_3(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F value)
{
___Null_3 = value;
}
inline static int32_t get_offset_of_Zero_4() { return static_cast<int32_t>(offsetof(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F_StaticFields, ___Zero_4)); }
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F get_Zero_4() const { return ___Zero_4; }
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F * get_address_of_Zero_4() { return &___Zero_4; }
inline void set_Zero_4(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F value)
{
___Zero_4 = value;
}
inline static int32_t get_offset_of_MinValue_5() { return static_cast<int32_t>(offsetof(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F_StaticFields, ___MinValue_5)); }
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F get_MinValue_5() const { return ___MinValue_5; }
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F * get_address_of_MinValue_5() { return &___MinValue_5; }
inline void set_MinValue_5(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F value)
{
___MinValue_5 = value;
}
inline static int32_t get_offset_of_MaxValue_6() { return static_cast<int32_t>(offsetof(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F_StaticFields, ___MaxValue_6)); }
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F get_MaxValue_6() const { return ___MaxValue_6; }
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F * get_address_of_MaxValue_6() { return &___MaxValue_6; }
inline void set_MaxValue_6(SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F value)
{
___MaxValue_6 = value;
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlInt16
struct SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F_marshaled_pinvoke
{
int32_t ___m_fNotNull_0;
int16_t ___m_value_1;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlInt16
struct SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F_marshaled_com
{
int32_t ___m_fNotNull_0;
int16_t ___m_value_1;
};
// System.Data.SqlTypes.SqlInt32
struct SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5
{
public:
// System.Boolean System.Data.SqlTypes.SqlInt32::m_fNotNull
bool ___m_fNotNull_0;
// System.Int32 System.Data.SqlTypes.SqlInt32::m_value
int32_t ___m_value_1;
public:
inline static int32_t get_offset_of_m_fNotNull_0() { return static_cast<int32_t>(offsetof(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5, ___m_fNotNull_0)); }
inline bool get_m_fNotNull_0() const { return ___m_fNotNull_0; }
inline bool* get_address_of_m_fNotNull_0() { return &___m_fNotNull_0; }
inline void set_m_fNotNull_0(bool value)
{
___m_fNotNull_0 = value;
}
inline static int32_t get_offset_of_m_value_1() { return static_cast<int32_t>(offsetof(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5, ___m_value_1)); }
inline int32_t get_m_value_1() const { return ___m_value_1; }
inline int32_t* get_address_of_m_value_1() { return &___m_value_1; }
inline void set_m_value_1(int32_t value)
{
___m_value_1 = value;
}
};
struct SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5_StaticFields
{
public:
// System.Int64 System.Data.SqlTypes.SqlInt32::s_iIntMin
int64_t ___s_iIntMin_2;
// System.Int64 System.Data.SqlTypes.SqlInt32::s_lBitNotIntMax
int64_t ___s_lBitNotIntMax_3;
// System.Data.SqlTypes.SqlInt32 System.Data.SqlTypes.SqlInt32::Null
SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 ___Null_4;
// System.Data.SqlTypes.SqlInt32 System.Data.SqlTypes.SqlInt32::Zero
SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 ___Zero_5;
// System.Data.SqlTypes.SqlInt32 System.Data.SqlTypes.SqlInt32::MinValue
SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 ___MinValue_6;
// System.Data.SqlTypes.SqlInt32 System.Data.SqlTypes.SqlInt32::MaxValue
SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 ___MaxValue_7;
public:
inline static int32_t get_offset_of_s_iIntMin_2() { return static_cast<int32_t>(offsetof(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5_StaticFields, ___s_iIntMin_2)); }
inline int64_t get_s_iIntMin_2() const { return ___s_iIntMin_2; }
inline int64_t* get_address_of_s_iIntMin_2() { return &___s_iIntMin_2; }
inline void set_s_iIntMin_2(int64_t value)
{
___s_iIntMin_2 = value;
}
inline static int32_t get_offset_of_s_lBitNotIntMax_3() { return static_cast<int32_t>(offsetof(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5_StaticFields, ___s_lBitNotIntMax_3)); }
inline int64_t get_s_lBitNotIntMax_3() const { return ___s_lBitNotIntMax_3; }
inline int64_t* get_address_of_s_lBitNotIntMax_3() { return &___s_lBitNotIntMax_3; }
inline void set_s_lBitNotIntMax_3(int64_t value)
{
___s_lBitNotIntMax_3 = value;
}
inline static int32_t get_offset_of_Null_4() { return static_cast<int32_t>(offsetof(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5_StaticFields, ___Null_4)); }
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 get_Null_4() const { return ___Null_4; }
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 * get_address_of_Null_4() { return &___Null_4; }
inline void set_Null_4(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 value)
{
___Null_4 = value;
}
inline static int32_t get_offset_of_Zero_5() { return static_cast<int32_t>(offsetof(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5_StaticFields, ___Zero_5)); }
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 get_Zero_5() const { return ___Zero_5; }
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 * get_address_of_Zero_5() { return &___Zero_5; }
inline void set_Zero_5(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 value)
{
___Zero_5 = value;
}
inline static int32_t get_offset_of_MinValue_6() { return static_cast<int32_t>(offsetof(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5_StaticFields, ___MinValue_6)); }
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 get_MinValue_6() const { return ___MinValue_6; }
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 * get_address_of_MinValue_6() { return &___MinValue_6; }
inline void set_MinValue_6(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 value)
{
___MinValue_6 = value;
}
inline static int32_t get_offset_of_MaxValue_7() { return static_cast<int32_t>(offsetof(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5_StaticFields, ___MaxValue_7)); }
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 get_MaxValue_7() const { return ___MaxValue_7; }
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 * get_address_of_MaxValue_7() { return &___MaxValue_7; }
inline void set_MaxValue_7(SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 value)
{
___MaxValue_7 = value;
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlInt32
struct SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5_marshaled_pinvoke
{
int32_t ___m_fNotNull_0;
int32_t ___m_value_1;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlInt32
struct SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5_marshaled_com
{
int32_t ___m_fNotNull_0;
int32_t ___m_value_1;
};
// System.Data.SqlTypes.SqlInt64
struct SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE
{
public:
// System.Boolean System.Data.SqlTypes.SqlInt64::m_fNotNull
bool ___m_fNotNull_0;
// System.Int64 System.Data.SqlTypes.SqlInt64::m_value
int64_t ___m_value_1;
public:
inline static int32_t get_offset_of_m_fNotNull_0() { return static_cast<int32_t>(offsetof(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE, ___m_fNotNull_0)); }
inline bool get_m_fNotNull_0() const { return ___m_fNotNull_0; }
inline bool* get_address_of_m_fNotNull_0() { return &___m_fNotNull_0; }
inline void set_m_fNotNull_0(bool value)
{
___m_fNotNull_0 = value;
}
inline static int32_t get_offset_of_m_value_1() { return static_cast<int32_t>(offsetof(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE, ___m_value_1)); }
inline int64_t get_m_value_1() const { return ___m_value_1; }
inline int64_t* get_address_of_m_value_1() { return &___m_value_1; }
inline void set_m_value_1(int64_t value)
{
___m_value_1 = value;
}
};
struct SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE_StaticFields
{
public:
// System.Int64 System.Data.SqlTypes.SqlInt64::s_lLowIntMask
int64_t ___s_lLowIntMask_2;
// System.Int64 System.Data.SqlTypes.SqlInt64::s_lHighIntMask
int64_t ___s_lHighIntMask_3;
// System.Data.SqlTypes.SqlInt64 System.Data.SqlTypes.SqlInt64::Null
SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE ___Null_4;
// System.Data.SqlTypes.SqlInt64 System.Data.SqlTypes.SqlInt64::Zero
SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE ___Zero_5;
// System.Data.SqlTypes.SqlInt64 System.Data.SqlTypes.SqlInt64::MinValue
SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE ___MinValue_6;
// System.Data.SqlTypes.SqlInt64 System.Data.SqlTypes.SqlInt64::MaxValue
SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE ___MaxValue_7;
public:
inline static int32_t get_offset_of_s_lLowIntMask_2() { return static_cast<int32_t>(offsetof(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE_StaticFields, ___s_lLowIntMask_2)); }
inline int64_t get_s_lLowIntMask_2() const { return ___s_lLowIntMask_2; }
inline int64_t* get_address_of_s_lLowIntMask_2() { return &___s_lLowIntMask_2; }
inline void set_s_lLowIntMask_2(int64_t value)
{
___s_lLowIntMask_2 = value;
}
inline static int32_t get_offset_of_s_lHighIntMask_3() { return static_cast<int32_t>(offsetof(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE_StaticFields, ___s_lHighIntMask_3)); }
inline int64_t get_s_lHighIntMask_3() const { return ___s_lHighIntMask_3; }
inline int64_t* get_address_of_s_lHighIntMask_3() { return &___s_lHighIntMask_3; }
inline void set_s_lHighIntMask_3(int64_t value)
{
___s_lHighIntMask_3 = value;
}
inline static int32_t get_offset_of_Null_4() { return static_cast<int32_t>(offsetof(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE_StaticFields, ___Null_4)); }
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE get_Null_4() const { return ___Null_4; }
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE * get_address_of_Null_4() { return &___Null_4; }
inline void set_Null_4(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE value)
{
___Null_4 = value;
}
inline static int32_t get_offset_of_Zero_5() { return static_cast<int32_t>(offsetof(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE_StaticFields, ___Zero_5)); }
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE get_Zero_5() const { return ___Zero_5; }
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE * get_address_of_Zero_5() { return &___Zero_5; }
inline void set_Zero_5(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE value)
{
___Zero_5 = value;
}
inline static int32_t get_offset_of_MinValue_6() { return static_cast<int32_t>(offsetof(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE_StaticFields, ___MinValue_6)); }
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE get_MinValue_6() const { return ___MinValue_6; }
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE * get_address_of_MinValue_6() { return &___MinValue_6; }
inline void set_MinValue_6(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE value)
{
___MinValue_6 = value;
}
inline static int32_t get_offset_of_MaxValue_7() { return static_cast<int32_t>(offsetof(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE_StaticFields, ___MaxValue_7)); }
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE get_MaxValue_7() const { return ___MaxValue_7; }
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE * get_address_of_MaxValue_7() { return &___MaxValue_7; }
inline void set_MaxValue_7(SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE value)
{
___MaxValue_7 = value;
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlInt64
struct SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE_marshaled_pinvoke
{
int32_t ___m_fNotNull_0;
int64_t ___m_value_1;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlInt64
struct SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE_marshaled_com
{
int32_t ___m_fNotNull_0;
int64_t ___m_value_1;
};
// System.Data.SqlTypes.SqlMoney
struct SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA
{
public:
// System.Boolean System.Data.SqlTypes.SqlMoney::_fNotNull
bool ____fNotNull_0;
// System.Int64 System.Data.SqlTypes.SqlMoney::_value
int64_t ____value_1;
public:
inline static int32_t get_offset_of__fNotNull_0() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA, ____fNotNull_0)); }
inline bool get__fNotNull_0() const { return ____fNotNull_0; }
inline bool* get_address_of__fNotNull_0() { return &____fNotNull_0; }
inline void set__fNotNull_0(bool value)
{
____fNotNull_0 = value;
}
inline static int32_t get_offset_of__value_1() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA, ____value_1)); }
inline int64_t get__value_1() const { return ____value_1; }
inline int64_t* get_address_of__value_1() { return &____value_1; }
inline void set__value_1(int64_t value)
{
____value_1 = value;
}
};
struct SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields
{
public:
// System.Int32 System.Data.SqlTypes.SqlMoney::s_iMoneyScale
int32_t ___s_iMoneyScale_2;
// System.Int64 System.Data.SqlTypes.SqlMoney::s_lTickBase
int64_t ___s_lTickBase_3;
// System.Double System.Data.SqlTypes.SqlMoney::s_dTickBase
double ___s_dTickBase_4;
// System.Int64 System.Data.SqlTypes.SqlMoney::s_minLong
int64_t ___s_minLong_5;
// System.Int64 System.Data.SqlTypes.SqlMoney::s_maxLong
int64_t ___s_maxLong_6;
// System.Data.SqlTypes.SqlMoney System.Data.SqlTypes.SqlMoney::Null
SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA ___Null_7;
// System.Data.SqlTypes.SqlMoney System.Data.SqlTypes.SqlMoney::Zero
SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA ___Zero_8;
// System.Data.SqlTypes.SqlMoney System.Data.SqlTypes.SqlMoney::MinValue
SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA ___MinValue_9;
// System.Data.SqlTypes.SqlMoney System.Data.SqlTypes.SqlMoney::MaxValue
SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA ___MaxValue_10;
public:
inline static int32_t get_offset_of_s_iMoneyScale_2() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields, ___s_iMoneyScale_2)); }
inline int32_t get_s_iMoneyScale_2() const { return ___s_iMoneyScale_2; }
inline int32_t* get_address_of_s_iMoneyScale_2() { return &___s_iMoneyScale_2; }
inline void set_s_iMoneyScale_2(int32_t value)
{
___s_iMoneyScale_2 = value;
}
inline static int32_t get_offset_of_s_lTickBase_3() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields, ___s_lTickBase_3)); }
inline int64_t get_s_lTickBase_3() const { return ___s_lTickBase_3; }
inline int64_t* get_address_of_s_lTickBase_3() { return &___s_lTickBase_3; }
inline void set_s_lTickBase_3(int64_t value)
{
___s_lTickBase_3 = value;
}
inline static int32_t get_offset_of_s_dTickBase_4() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields, ___s_dTickBase_4)); }
inline double get_s_dTickBase_4() const { return ___s_dTickBase_4; }
inline double* get_address_of_s_dTickBase_4() { return &___s_dTickBase_4; }
inline void set_s_dTickBase_4(double value)
{
___s_dTickBase_4 = value;
}
inline static int32_t get_offset_of_s_minLong_5() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields, ___s_minLong_5)); }
inline int64_t get_s_minLong_5() const { return ___s_minLong_5; }
inline int64_t* get_address_of_s_minLong_5() { return &___s_minLong_5; }
inline void set_s_minLong_5(int64_t value)
{
___s_minLong_5 = value;
}
inline static int32_t get_offset_of_s_maxLong_6() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields, ___s_maxLong_6)); }
inline int64_t get_s_maxLong_6() const { return ___s_maxLong_6; }
inline int64_t* get_address_of_s_maxLong_6() { return &___s_maxLong_6; }
inline void set_s_maxLong_6(int64_t value)
{
___s_maxLong_6 = value;
}
inline static int32_t get_offset_of_Null_7() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields, ___Null_7)); }
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA get_Null_7() const { return ___Null_7; }
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA * get_address_of_Null_7() { return &___Null_7; }
inline void set_Null_7(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA value)
{
___Null_7 = value;
}
inline static int32_t get_offset_of_Zero_8() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields, ___Zero_8)); }
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA get_Zero_8() const { return ___Zero_8; }
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA * get_address_of_Zero_8() { return &___Zero_8; }
inline void set_Zero_8(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA value)
{
___Zero_8 = value;
}
inline static int32_t get_offset_of_MinValue_9() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields, ___MinValue_9)); }
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA get_MinValue_9() const { return ___MinValue_9; }
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA * get_address_of_MinValue_9() { return &___MinValue_9; }
inline void set_MinValue_9(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA value)
{
___MinValue_9 = value;
}
inline static int32_t get_offset_of_MaxValue_10() { return static_cast<int32_t>(offsetof(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_StaticFields, ___MaxValue_10)); }
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA get_MaxValue_10() const { return ___MaxValue_10; }
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA * get_address_of_MaxValue_10() { return &___MaxValue_10; }
inline void set_MaxValue_10(SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA value)
{
___MaxValue_10 = value;
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlMoney
struct SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_marshaled_pinvoke
{
int32_t ____fNotNull_0;
int64_t ____value_1;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlMoney
struct SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA_marshaled_com
{
int32_t ____fNotNull_0;
int64_t ____value_1;
};
// System.Data.SqlTypes.SqlSingle
struct SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E
{
public:
// System.Boolean System.Data.SqlTypes.SqlSingle::_fNotNull
bool ____fNotNull_0;
// System.Single System.Data.SqlTypes.SqlSingle::_value
float ____value_1;
public:
inline static int32_t get_offset_of__fNotNull_0() { return static_cast<int32_t>(offsetof(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E, ____fNotNull_0)); }
inline bool get__fNotNull_0() const { return ____fNotNull_0; }
inline bool* get_address_of__fNotNull_0() { return &____fNotNull_0; }
inline void set__fNotNull_0(bool value)
{
____fNotNull_0 = value;
}
inline static int32_t get_offset_of__value_1() { return static_cast<int32_t>(offsetof(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E, ____value_1)); }
inline float get__value_1() const { return ____value_1; }
inline float* get_address_of__value_1() { return &____value_1; }
inline void set__value_1(float value)
{
____value_1 = value;
}
};
struct SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E_StaticFields
{
public:
// System.Data.SqlTypes.SqlSingle System.Data.SqlTypes.SqlSingle::Null
SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E ___Null_2;
// System.Data.SqlTypes.SqlSingle System.Data.SqlTypes.SqlSingle::Zero
SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E ___Zero_3;
// System.Data.SqlTypes.SqlSingle System.Data.SqlTypes.SqlSingle::MinValue
SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E ___MinValue_4;
// System.Data.SqlTypes.SqlSingle System.Data.SqlTypes.SqlSingle::MaxValue
SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E ___MaxValue_5;
public:
inline static int32_t get_offset_of_Null_2() { return static_cast<int32_t>(offsetof(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E_StaticFields, ___Null_2)); }
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E get_Null_2() const { return ___Null_2; }
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E * get_address_of_Null_2() { return &___Null_2; }
inline void set_Null_2(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E value)
{
___Null_2 = value;
}
inline static int32_t get_offset_of_Zero_3() { return static_cast<int32_t>(offsetof(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E_StaticFields, ___Zero_3)); }
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E get_Zero_3() const { return ___Zero_3; }
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E * get_address_of_Zero_3() { return &___Zero_3; }
inline void set_Zero_3(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E value)
{
___Zero_3 = value;
}
inline static int32_t get_offset_of_MinValue_4() { return static_cast<int32_t>(offsetof(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E_StaticFields, ___MinValue_4)); }
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E get_MinValue_4() const { return ___MinValue_4; }
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E * get_address_of_MinValue_4() { return &___MinValue_4; }
inline void set_MinValue_4(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E value)
{
___MinValue_4 = value;
}
inline static int32_t get_offset_of_MaxValue_5() { return static_cast<int32_t>(offsetof(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E_StaticFields, ___MaxValue_5)); }
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E get_MaxValue_5() const { return ___MaxValue_5; }
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E * get_address_of_MaxValue_5() { return &___MaxValue_5; }
inline void set_MaxValue_5(SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E value)
{
___MaxValue_5 = value;
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlSingle
struct SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E_marshaled_pinvoke
{
int32_t ____fNotNull_0;
float ____value_1;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlSingle
struct SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E_marshaled_com
{
int32_t ____fNotNull_0;
float ____value_1;
};
// System.UInt16
struct UInt16_t894EA9D4FB7C799B244E7BBF2DF0EEEDBC77A8BD
{
public:
// System.UInt16 System.UInt16::m_value
uint16_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt16_t894EA9D4FB7C799B244E7BBF2DF0EEEDBC77A8BD, ___m_value_0)); }
inline uint16_t get_m_value_0() const { return ___m_value_0; }
inline uint16_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint16_t value)
{
___m_value_0 = value;
}
};
// System.UInt32
struct UInt32_tE60352A06233E4E69DD198BCC67142159F686B15
{
public:
// System.UInt32 System.UInt32::m_value
uint32_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt32_tE60352A06233E4E69DD198BCC67142159F686B15, ___m_value_0)); }
inline uint32_t get_m_value_0() const { return ___m_value_0; }
inline uint32_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint32_t value)
{
___m_value_0 = value;
}
};
// System.UInt64
struct UInt64_tEC57511B3E3CA2DBA1BEBD434C6983E31C943281
{
public:
// System.UInt64 System.UInt64::m_value
uint64_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt64_tEC57511B3E3CA2DBA1BEBD434C6983E31C943281, ___m_value_0)); }
inline uint64_t get_m_value_0() const { return ___m_value_0; }
inline uint64_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint64_t value)
{
___m_value_0 = value;
}
};
// UnityEngine.Vector3
struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E
{
public:
// System.Single UnityEngine.Vector3::x
float ___x_2;
// System.Single UnityEngine.Vector3::y
float ___y_3;
// System.Single UnityEngine.Vector3::z
float ___z_4;
public:
inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___x_2)); }
inline float get_x_2() const { return ___x_2; }
inline float* get_address_of_x_2() { return &___x_2; }
inline void set_x_2(float value)
{
___x_2 = value;
}
inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___y_3)); }
inline float get_y_3() const { return ___y_3; }
inline float* get_address_of_y_3() { return &___y_3; }
inline void set_y_3(float value)
{
___y_3 = value;
}
inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___z_4)); }
inline float get_z_4() const { return ___z_4; }
inline float* get_address_of_z_4() { return &___z_4; }
inline void set_z_4(float value)
{
___z_4 = value;
}
};
struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields
{
public:
// UnityEngine.Vector3 UnityEngine.Vector3::zeroVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___zeroVector_5;
// UnityEngine.Vector3 UnityEngine.Vector3::oneVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___oneVector_6;
// UnityEngine.Vector3 UnityEngine.Vector3::upVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___upVector_7;
// UnityEngine.Vector3 UnityEngine.Vector3::downVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___downVector_8;
// UnityEngine.Vector3 UnityEngine.Vector3::leftVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___leftVector_9;
// UnityEngine.Vector3 UnityEngine.Vector3::rightVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___rightVector_10;
// UnityEngine.Vector3 UnityEngine.Vector3::forwardVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___forwardVector_11;
// UnityEngine.Vector3 UnityEngine.Vector3::backVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___backVector_12;
// UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___positiveInfinityVector_13;
// UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___negativeInfinityVector_14;
public:
inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___zeroVector_5)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_zeroVector_5() const { return ___zeroVector_5; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_zeroVector_5() { return &___zeroVector_5; }
inline void set_zeroVector_5(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___zeroVector_5 = value;
}
inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___oneVector_6)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_oneVector_6() const { return ___oneVector_6; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_oneVector_6() { return &___oneVector_6; }
inline void set_oneVector_6(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___oneVector_6 = value;
}
inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___upVector_7)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_upVector_7() const { return ___upVector_7; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_upVector_7() { return &___upVector_7; }
inline void set_upVector_7(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___upVector_7 = value;
}
inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___downVector_8)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_downVector_8() const { return ___downVector_8; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_downVector_8() { return &___downVector_8; }
inline void set_downVector_8(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___downVector_8 = value;
}
inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___leftVector_9)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_leftVector_9() const { return ___leftVector_9; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_leftVector_9() { return &___leftVector_9; }
inline void set_leftVector_9(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___leftVector_9 = value;
}
inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___rightVector_10)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_rightVector_10() const { return ___rightVector_10; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_rightVector_10() { return &___rightVector_10; }
inline void set_rightVector_10(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___rightVector_10 = value;
}
inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___forwardVector_11)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_forwardVector_11() const { return ___forwardVector_11; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_forwardVector_11() { return &___forwardVector_11; }
inline void set_forwardVector_11(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___forwardVector_11 = value;
}
inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___backVector_12)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_backVector_12() const { return ___backVector_12; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_backVector_12() { return &___backVector_12; }
inline void set_backVector_12(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___backVector_12 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___positiveInfinityVector_13)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; }
inline void set_positiveInfinityVector_13(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___positiveInfinityVector_13 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___negativeInfinityVector_14)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; }
inline void set_negativeInfinityVector_14(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___negativeInfinityVector_14 = value;
}
};
// UnityEngine.Object
struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.Object::m_CachedPtr
intptr_t ___m_CachedPtr_0;
public:
inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A, ___m_CachedPtr_0)); }
inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
inline void set_m_CachedPtr_0(intptr_t value)
{
___m_CachedPtr_0 = value;
}
};
struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_StaticFields
{
public:
// System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
public:
inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
{
___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
// Windows.Foundation.PropertyType
struct PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808
{
public:
// System.Int32 Windows.Foundation.PropertyType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes
struct SpatialAwarenessSurfaceTypes_t2C9E25F3650C54A7EA5B939EB508C79F9E0858A7
{
public:
// System.Int32 Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SpatialAwarenessSurfaceTypes_t2C9E25F3650C54A7EA5B939EB508C79F9E0858A7, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.Data.SqlTypes.SqlBytesCharsState
struct SqlBytesCharsState_tDE947198DFA4F1F888E5CEFB59A92F6D4DF59685
{
public:
// System.Int32 System.Data.SqlTypes.SqlBytesCharsState::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SqlBytesCharsState_tDE947198DFA4F1F888E5CEFB59A92F6D4DF59685, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.TimeSpan
struct TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203
{
public:
// System.Int64 System.TimeSpan::_ticks
int64_t ____ticks_22;
public:
inline static int32_t get_offset_of__ticks_22() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203, ____ticks_22)); }
inline int64_t get__ticks_22() const { return ____ticks_22; }
inline int64_t* get_address_of__ticks_22() { return &____ticks_22; }
inline void set__ticks_22(int64_t value)
{
____ticks_22 = value;
}
};
struct TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields
{
public:
// System.TimeSpan System.TimeSpan::Zero
TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___Zero_19;
// System.TimeSpan System.TimeSpan::MaxValue
TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___MaxValue_20;
// System.TimeSpan System.TimeSpan::MinValue
TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___MinValue_21;
// System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::_legacyConfigChecked
bool ____legacyConfigChecked_23;
// System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::_legacyMode
bool ____legacyMode_24;
public:
inline static int32_t get_offset_of_Zero_19() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ___Zero_19)); }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_Zero_19() const { return ___Zero_19; }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_Zero_19() { return &___Zero_19; }
inline void set_Zero_19(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value)
{
___Zero_19 = value;
}
inline static int32_t get_offset_of_MaxValue_20() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ___MaxValue_20)); }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_MaxValue_20() const { return ___MaxValue_20; }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_MaxValue_20() { return &___MaxValue_20; }
inline void set_MaxValue_20(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value)
{
___MaxValue_20 = value;
}
inline static int32_t get_offset_of_MinValue_21() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ___MinValue_21)); }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_MinValue_21() const { return ___MinValue_21; }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_MinValue_21() { return &___MinValue_21; }
inline void set_MinValue_21(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value)
{
___MinValue_21 = value;
}
inline static int32_t get_offset_of__legacyConfigChecked_23() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ____legacyConfigChecked_23)); }
inline bool get__legacyConfigChecked_23() const { return ____legacyConfigChecked_23; }
inline bool* get_address_of__legacyConfigChecked_23() { return &____legacyConfigChecked_23; }
inline void set__legacyConfigChecked_23(bool value)
{
____legacyConfigChecked_23 = value;
}
inline static int32_t get_offset_of__legacyMode_24() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ____legacyMode_24)); }
inline bool get__legacyMode_24() const { return ____legacyMode_24; }
inline bool* get_address_of__legacyMode_24() { return &____legacyMode_24; }
inline void set__legacyMode_24(bool value)
{
____legacyMode_24 = value;
}
};
// UnityEngine.Component
struct Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A
{
public:
public:
};
// Windows.Foundation.IPropertyValue
struct NOVTABLE IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) = 0;
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) = 0;
};
// Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject
struct SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE : public BaseSpatialAwarenessObject_tDEC7FF3F1B319E20ED34F26109C51E5D4BB48883
{
public:
// UnityEngine.BoxCollider Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject::<Collider>k__BackingField
BoxCollider_tA530691AC1A3C9FE6428F68F98588FCB1BF9AAA5 * ___U3CColliderU3Ek__BackingField_4;
// Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject::planeType
int32_t ___planeType_5;
public:
inline static int32_t get_offset_of_U3CColliderU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE, ___U3CColliderU3Ek__BackingField_4)); }
inline BoxCollider_tA530691AC1A3C9FE6428F68F98588FCB1BF9AAA5 * get_U3CColliderU3Ek__BackingField_4() const { return ___U3CColliderU3Ek__BackingField_4; }
inline BoxCollider_tA530691AC1A3C9FE6428F68F98588FCB1BF9AAA5 ** get_address_of_U3CColliderU3Ek__BackingField_4() { return &___U3CColliderU3Ek__BackingField_4; }
inline void set_U3CColliderU3Ek__BackingField_4(BoxCollider_tA530691AC1A3C9FE6428F68F98588FCB1BF9AAA5 * value)
{
___U3CColliderU3Ek__BackingField_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CColliderU3Ek__BackingField_4), (void*)value);
}
inline static int32_t get_offset_of_planeType_5() { return static_cast<int32_t>(offsetof(SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE, ___planeType_5)); }
inline int32_t get_planeType_5() const { return ___planeType_5; }
inline int32_t* get_address_of_planeType_5() { return &___planeType_5; }
inline void set_planeType_5(int32_t value)
{
___planeType_5 = value;
}
};
// Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject
struct SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612 : public BaseSpatialAwarenessObject_tDEC7FF3F1B319E20ED34F26109C51E5D4BB48883
{
public:
// UnityEngine.Vector3 Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject::<Position>k__BackingField
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___U3CPositionU3Ek__BackingField_4;
// UnityEngine.Quaternion Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject::<Rotation>k__BackingField
Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 ___U3CRotationU3Ek__BackingField_5;
// System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject/QuadData> Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject::<Quads>k__BackingField
List_1_tFE68FBF4E8F070DD0335517B9447CD21B6A3535C * ___U3CQuadsU3Ek__BackingField_6;
// System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject/MeshData> Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject::<Meshes>k__BackingField
List_1_tFB0CB232CE88C5B88CE821554A7D3FA62CCB01FF * ___U3CMeshesU3Ek__BackingField_7;
// Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject::<SurfaceType>k__BackingField
int32_t ___U3CSurfaceTypeU3Ek__BackingField_8;
public:
inline static int32_t get_offset_of_U3CPositionU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612, ___U3CPositionU3Ek__BackingField_4)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_U3CPositionU3Ek__BackingField_4() const { return ___U3CPositionU3Ek__BackingField_4; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_U3CPositionU3Ek__BackingField_4() { return &___U3CPositionU3Ek__BackingField_4; }
inline void set_U3CPositionU3Ek__BackingField_4(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___U3CPositionU3Ek__BackingField_4 = value;
}
inline static int32_t get_offset_of_U3CRotationU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612, ___U3CRotationU3Ek__BackingField_5)); }
inline Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 get_U3CRotationU3Ek__BackingField_5() const { return ___U3CRotationU3Ek__BackingField_5; }
inline Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 * get_address_of_U3CRotationU3Ek__BackingField_5() { return &___U3CRotationU3Ek__BackingField_5; }
inline void set_U3CRotationU3Ek__BackingField_5(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 value)
{
___U3CRotationU3Ek__BackingField_5 = value;
}
inline static int32_t get_offset_of_U3CQuadsU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612, ___U3CQuadsU3Ek__BackingField_6)); }
inline List_1_tFE68FBF4E8F070DD0335517B9447CD21B6A3535C * get_U3CQuadsU3Ek__BackingField_6() const { return ___U3CQuadsU3Ek__BackingField_6; }
inline List_1_tFE68FBF4E8F070DD0335517B9447CD21B6A3535C ** get_address_of_U3CQuadsU3Ek__BackingField_6() { return &___U3CQuadsU3Ek__BackingField_6; }
inline void set_U3CQuadsU3Ek__BackingField_6(List_1_tFE68FBF4E8F070DD0335517B9447CD21B6A3535C * value)
{
___U3CQuadsU3Ek__BackingField_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CQuadsU3Ek__BackingField_6), (void*)value);
}
inline static int32_t get_offset_of_U3CMeshesU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612, ___U3CMeshesU3Ek__BackingField_7)); }
inline List_1_tFB0CB232CE88C5B88CE821554A7D3FA62CCB01FF * get_U3CMeshesU3Ek__BackingField_7() const { return ___U3CMeshesU3Ek__BackingField_7; }
inline List_1_tFB0CB232CE88C5B88CE821554A7D3FA62CCB01FF ** get_address_of_U3CMeshesU3Ek__BackingField_7() { return &___U3CMeshesU3Ek__BackingField_7; }
inline void set_U3CMeshesU3Ek__BackingField_7(List_1_tFB0CB232CE88C5B88CE821554A7D3FA62CCB01FF * value)
{
___U3CMeshesU3Ek__BackingField_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CMeshesU3Ek__BackingField_7), (void*)value);
}
inline static int32_t get_offset_of_U3CSurfaceTypeU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612, ___U3CSurfaceTypeU3Ek__BackingField_8)); }
inline int32_t get_U3CSurfaceTypeU3Ek__BackingField_8() const { return ___U3CSurfaceTypeU3Ek__BackingField_8; }
inline int32_t* get_address_of_U3CSurfaceTypeU3Ek__BackingField_8() { return &___U3CSurfaceTypeU3Ek__BackingField_8; }
inline void set_U3CSurfaceTypeU3Ek__BackingField_8(int32_t value)
{
___U3CSurfaceTypeU3Ek__BackingField_8 = value;
}
};
// UnityEngine.Sprite
struct Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A
{
public:
public:
};
// System.Data.SqlTypes.SqlBytes
struct SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6 : public RuntimeObject
{
public:
// System.Byte[] System.Data.SqlTypes.SqlBytes::_rgbBuf
ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ____rgbBuf_0;
// System.Int64 System.Data.SqlTypes.SqlBytes::_lCurLen
int64_t ____lCurLen_1;
// System.IO.Stream System.Data.SqlTypes.SqlBytes::_stream
Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB * ____stream_2;
// System.Data.SqlTypes.SqlBytesCharsState System.Data.SqlTypes.SqlBytes::_state
int32_t ____state_3;
// System.Byte[] System.Data.SqlTypes.SqlBytes::_rgbWorkBuf
ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ____rgbWorkBuf_4;
public:
inline static int32_t get_offset_of__rgbBuf_0() { return static_cast<int32_t>(offsetof(SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6, ____rgbBuf_0)); }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get__rgbBuf_0() const { return ____rgbBuf_0; }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of__rgbBuf_0() { return &____rgbBuf_0; }
inline void set__rgbBuf_0(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value)
{
____rgbBuf_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____rgbBuf_0), (void*)value);
}
inline static int32_t get_offset_of__lCurLen_1() { return static_cast<int32_t>(offsetof(SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6, ____lCurLen_1)); }
inline int64_t get__lCurLen_1() const { return ____lCurLen_1; }
inline int64_t* get_address_of__lCurLen_1() { return &____lCurLen_1; }
inline void set__lCurLen_1(int64_t value)
{
____lCurLen_1 = value;
}
inline static int32_t get_offset_of__stream_2() { return static_cast<int32_t>(offsetof(SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6, ____stream_2)); }
inline Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB * get__stream_2() const { return ____stream_2; }
inline Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB ** get_address_of__stream_2() { return &____stream_2; }
inline void set__stream_2(Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB * value)
{
____stream_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&____stream_2), (void*)value);
}
inline static int32_t get_offset_of__state_3() { return static_cast<int32_t>(offsetof(SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6, ____state_3)); }
inline int32_t get__state_3() const { return ____state_3; }
inline int32_t* get_address_of__state_3() { return &____state_3; }
inline void set__state_3(int32_t value)
{
____state_3 = value;
}
inline static int32_t get_offset_of__rgbWorkBuf_4() { return static_cast<int32_t>(offsetof(SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6, ____rgbWorkBuf_4)); }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get__rgbWorkBuf_4() const { return ____rgbWorkBuf_4; }
inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of__rgbWorkBuf_4() { return &____rgbWorkBuf_4; }
inline void set__rgbWorkBuf_4(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value)
{
____rgbWorkBuf_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____rgbWorkBuf_4), (void*)value);
}
};
// System.Data.SqlTypes.SqlChars
struct SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53 : public RuntimeObject
{
public:
// System.Char[] System.Data.SqlTypes.SqlChars::_rgchBuf
CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ____rgchBuf_0;
// System.Int64 System.Data.SqlTypes.SqlChars::_lCurLen
int64_t ____lCurLen_1;
// System.Data.SqlTypes.SqlStreamChars System.Data.SqlTypes.SqlChars::_stream
SqlStreamChars_t910B848D31E31CB82C6F50F1ECE148D614DE4665 * ____stream_2;
// System.Data.SqlTypes.SqlBytesCharsState System.Data.SqlTypes.SqlChars::_state
int32_t ____state_3;
// System.Char[] System.Data.SqlTypes.SqlChars::_rgchWorkBuf
CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ____rgchWorkBuf_4;
public:
inline static int32_t get_offset_of__rgchBuf_0() { return static_cast<int32_t>(offsetof(SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53, ____rgchBuf_0)); }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get__rgchBuf_0() const { return ____rgchBuf_0; }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of__rgchBuf_0() { return &____rgchBuf_0; }
inline void set__rgchBuf_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value)
{
____rgchBuf_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____rgchBuf_0), (void*)value);
}
inline static int32_t get_offset_of__lCurLen_1() { return static_cast<int32_t>(offsetof(SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53, ____lCurLen_1)); }
inline int64_t get__lCurLen_1() const { return ____lCurLen_1; }
inline int64_t* get_address_of__lCurLen_1() { return &____lCurLen_1; }
inline void set__lCurLen_1(int64_t value)
{
____lCurLen_1 = value;
}
inline static int32_t get_offset_of__stream_2() { return static_cast<int32_t>(offsetof(SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53, ____stream_2)); }
inline SqlStreamChars_t910B848D31E31CB82C6F50F1ECE148D614DE4665 * get__stream_2() const { return ____stream_2; }
inline SqlStreamChars_t910B848D31E31CB82C6F50F1ECE148D614DE4665 ** get_address_of__stream_2() { return &____stream_2; }
inline void set__stream_2(SqlStreamChars_t910B848D31E31CB82C6F50F1ECE148D614DE4665 * value)
{
____stream_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&____stream_2), (void*)value);
}
inline static int32_t get_offset_of__state_3() { return static_cast<int32_t>(offsetof(SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53, ____state_3)); }
inline int32_t get__state_3() const { return ____state_3; }
inline int32_t* get_address_of__state_3() { return &____state_3; }
inline void set__state_3(int32_t value)
{
____state_3 = value;
}
inline static int32_t get_offset_of__rgchWorkBuf_4() { return static_cast<int32_t>(offsetof(SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53, ____rgchWorkBuf_4)); }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get__rgchWorkBuf_4() const { return ____rgchWorkBuf_4; }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of__rgchWorkBuf_4() { return &____rgchWorkBuf_4; }
inline void set__rgchWorkBuf_4(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value)
{
____rgchWorkBuf_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____rgchWorkBuf_4), (void*)value);
}
};
// System.Data.SqlTypes.SqlDateTime
struct SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D
{
public:
// System.Boolean System.Data.SqlTypes.SqlDateTime::m_fNotNull
bool ___m_fNotNull_0;
// System.Int32 System.Data.SqlTypes.SqlDateTime::m_day
int32_t ___m_day_1;
// System.Int32 System.Data.SqlTypes.SqlDateTime::m_time
int32_t ___m_time_2;
public:
inline static int32_t get_offset_of_m_fNotNull_0() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D, ___m_fNotNull_0)); }
inline bool get_m_fNotNull_0() const { return ___m_fNotNull_0; }
inline bool* get_address_of_m_fNotNull_0() { return &___m_fNotNull_0; }
inline void set_m_fNotNull_0(bool value)
{
___m_fNotNull_0 = value;
}
inline static int32_t get_offset_of_m_day_1() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D, ___m_day_1)); }
inline int32_t get_m_day_1() const { return ___m_day_1; }
inline int32_t* get_address_of_m_day_1() { return &___m_day_1; }
inline void set_m_day_1(int32_t value)
{
___m_day_1 = value;
}
inline static int32_t get_offset_of_m_time_2() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D, ___m_time_2)); }
inline int32_t get_m_time_2() const { return ___m_time_2; }
inline int32_t* get_address_of_m_time_2() { return &___m_time_2; }
inline void set_m_time_2(int32_t value)
{
___m_time_2 = value;
}
};
struct SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields
{
public:
// System.Double System.Data.SqlTypes.SqlDateTime::s_SQLTicksPerMillisecond
double ___s_SQLTicksPerMillisecond_3;
// System.Int32 System.Data.SqlTypes.SqlDateTime::SQLTicksPerSecond
int32_t ___SQLTicksPerSecond_4;
// System.Int32 System.Data.SqlTypes.SqlDateTime::SQLTicksPerMinute
int32_t ___SQLTicksPerMinute_5;
// System.Int32 System.Data.SqlTypes.SqlDateTime::SQLTicksPerHour
int32_t ___SQLTicksPerHour_6;
// System.Int32 System.Data.SqlTypes.SqlDateTime::s_SQLTicksPerDay
int32_t ___s_SQLTicksPerDay_7;
// System.Int64 System.Data.SqlTypes.SqlDateTime::s_ticksPerSecond
int64_t ___s_ticksPerSecond_8;
// System.DateTime System.Data.SqlTypes.SqlDateTime::s_SQLBaseDate
DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___s_SQLBaseDate_9;
// System.Int64 System.Data.SqlTypes.SqlDateTime::s_SQLBaseDateTicks
int64_t ___s_SQLBaseDateTicks_10;
// System.Int32 System.Data.SqlTypes.SqlDateTime::s_minYear
int32_t ___s_minYear_11;
// System.Int32 System.Data.SqlTypes.SqlDateTime::s_maxYear
int32_t ___s_maxYear_12;
// System.Int32 System.Data.SqlTypes.SqlDateTime::s_minDay
int32_t ___s_minDay_13;
// System.Int32 System.Data.SqlTypes.SqlDateTime::s_maxDay
int32_t ___s_maxDay_14;
// System.Int32 System.Data.SqlTypes.SqlDateTime::s_minTime
int32_t ___s_minTime_15;
// System.Int32 System.Data.SqlTypes.SqlDateTime::s_maxTime
int32_t ___s_maxTime_16;
// System.Int32 System.Data.SqlTypes.SqlDateTime::s_dayBase
int32_t ___s_dayBase_17;
// System.Int32[] System.Data.SqlTypes.SqlDateTime::s_daysToMonth365
Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___s_daysToMonth365_18;
// System.Int32[] System.Data.SqlTypes.SqlDateTime::s_daysToMonth366
Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___s_daysToMonth366_19;
// System.DateTime System.Data.SqlTypes.SqlDateTime::s_minDateTime
DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___s_minDateTime_20;
// System.DateTime System.Data.SqlTypes.SqlDateTime::s_maxDateTime
DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___s_maxDateTime_21;
// System.TimeSpan System.Data.SqlTypes.SqlDateTime::s_minTimeSpan
TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___s_minTimeSpan_22;
// System.TimeSpan System.Data.SqlTypes.SqlDateTime::s_maxTimeSpan
TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___s_maxTimeSpan_23;
// System.String System.Data.SqlTypes.SqlDateTime::s_ISO8601_DateTimeFormat
String_t* ___s_ISO8601_DateTimeFormat_24;
// System.String[] System.Data.SqlTypes.SqlDateTime::s_dateTimeFormats
StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* ___s_dateTimeFormats_25;
// System.Data.SqlTypes.SqlDateTime System.Data.SqlTypes.SqlDateTime::MinValue
SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D ___MinValue_26;
// System.Data.SqlTypes.SqlDateTime System.Data.SqlTypes.SqlDateTime::MaxValue
SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D ___MaxValue_27;
// System.Data.SqlTypes.SqlDateTime System.Data.SqlTypes.SqlDateTime::Null
SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D ___Null_28;
public:
inline static int32_t get_offset_of_s_SQLTicksPerMillisecond_3() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_SQLTicksPerMillisecond_3)); }
inline double get_s_SQLTicksPerMillisecond_3() const { return ___s_SQLTicksPerMillisecond_3; }
inline double* get_address_of_s_SQLTicksPerMillisecond_3() { return &___s_SQLTicksPerMillisecond_3; }
inline void set_s_SQLTicksPerMillisecond_3(double value)
{
___s_SQLTicksPerMillisecond_3 = value;
}
inline static int32_t get_offset_of_SQLTicksPerSecond_4() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___SQLTicksPerSecond_4)); }
inline int32_t get_SQLTicksPerSecond_4() const { return ___SQLTicksPerSecond_4; }
inline int32_t* get_address_of_SQLTicksPerSecond_4() { return &___SQLTicksPerSecond_4; }
inline void set_SQLTicksPerSecond_4(int32_t value)
{
___SQLTicksPerSecond_4 = value;
}
inline static int32_t get_offset_of_SQLTicksPerMinute_5() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___SQLTicksPerMinute_5)); }
inline int32_t get_SQLTicksPerMinute_5() const { return ___SQLTicksPerMinute_5; }
inline int32_t* get_address_of_SQLTicksPerMinute_5() { return &___SQLTicksPerMinute_5; }
inline void set_SQLTicksPerMinute_5(int32_t value)
{
___SQLTicksPerMinute_5 = value;
}
inline static int32_t get_offset_of_SQLTicksPerHour_6() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___SQLTicksPerHour_6)); }
inline int32_t get_SQLTicksPerHour_6() const { return ___SQLTicksPerHour_6; }
inline int32_t* get_address_of_SQLTicksPerHour_6() { return &___SQLTicksPerHour_6; }
inline void set_SQLTicksPerHour_6(int32_t value)
{
___SQLTicksPerHour_6 = value;
}
inline static int32_t get_offset_of_s_SQLTicksPerDay_7() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_SQLTicksPerDay_7)); }
inline int32_t get_s_SQLTicksPerDay_7() const { return ___s_SQLTicksPerDay_7; }
inline int32_t* get_address_of_s_SQLTicksPerDay_7() { return &___s_SQLTicksPerDay_7; }
inline void set_s_SQLTicksPerDay_7(int32_t value)
{
___s_SQLTicksPerDay_7 = value;
}
inline static int32_t get_offset_of_s_ticksPerSecond_8() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_ticksPerSecond_8)); }
inline int64_t get_s_ticksPerSecond_8() const { return ___s_ticksPerSecond_8; }
inline int64_t* get_address_of_s_ticksPerSecond_8() { return &___s_ticksPerSecond_8; }
inline void set_s_ticksPerSecond_8(int64_t value)
{
___s_ticksPerSecond_8 = value;
}
inline static int32_t get_offset_of_s_SQLBaseDate_9() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_SQLBaseDate_9)); }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_s_SQLBaseDate_9() const { return ___s_SQLBaseDate_9; }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_s_SQLBaseDate_9() { return &___s_SQLBaseDate_9; }
inline void set_s_SQLBaseDate_9(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value)
{
___s_SQLBaseDate_9 = value;
}
inline static int32_t get_offset_of_s_SQLBaseDateTicks_10() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_SQLBaseDateTicks_10)); }
inline int64_t get_s_SQLBaseDateTicks_10() const { return ___s_SQLBaseDateTicks_10; }
inline int64_t* get_address_of_s_SQLBaseDateTicks_10() { return &___s_SQLBaseDateTicks_10; }
inline void set_s_SQLBaseDateTicks_10(int64_t value)
{
___s_SQLBaseDateTicks_10 = value;
}
inline static int32_t get_offset_of_s_minYear_11() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_minYear_11)); }
inline int32_t get_s_minYear_11() const { return ___s_minYear_11; }
inline int32_t* get_address_of_s_minYear_11() { return &___s_minYear_11; }
inline void set_s_minYear_11(int32_t value)
{
___s_minYear_11 = value;
}
inline static int32_t get_offset_of_s_maxYear_12() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_maxYear_12)); }
inline int32_t get_s_maxYear_12() const { return ___s_maxYear_12; }
inline int32_t* get_address_of_s_maxYear_12() { return &___s_maxYear_12; }
inline void set_s_maxYear_12(int32_t value)
{
___s_maxYear_12 = value;
}
inline static int32_t get_offset_of_s_minDay_13() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_minDay_13)); }
inline int32_t get_s_minDay_13() const { return ___s_minDay_13; }
inline int32_t* get_address_of_s_minDay_13() { return &___s_minDay_13; }
inline void set_s_minDay_13(int32_t value)
{
___s_minDay_13 = value;
}
inline static int32_t get_offset_of_s_maxDay_14() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_maxDay_14)); }
inline int32_t get_s_maxDay_14() const { return ___s_maxDay_14; }
inline int32_t* get_address_of_s_maxDay_14() { return &___s_maxDay_14; }
inline void set_s_maxDay_14(int32_t value)
{
___s_maxDay_14 = value;
}
inline static int32_t get_offset_of_s_minTime_15() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_minTime_15)); }
inline int32_t get_s_minTime_15() const { return ___s_minTime_15; }
inline int32_t* get_address_of_s_minTime_15() { return &___s_minTime_15; }
inline void set_s_minTime_15(int32_t value)
{
___s_minTime_15 = value;
}
inline static int32_t get_offset_of_s_maxTime_16() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_maxTime_16)); }
inline int32_t get_s_maxTime_16() const { return ___s_maxTime_16; }
inline int32_t* get_address_of_s_maxTime_16() { return &___s_maxTime_16; }
inline void set_s_maxTime_16(int32_t value)
{
___s_maxTime_16 = value;
}
inline static int32_t get_offset_of_s_dayBase_17() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_dayBase_17)); }
inline int32_t get_s_dayBase_17() const { return ___s_dayBase_17; }
inline int32_t* get_address_of_s_dayBase_17() { return &___s_dayBase_17; }
inline void set_s_dayBase_17(int32_t value)
{
___s_dayBase_17 = value;
}
inline static int32_t get_offset_of_s_daysToMonth365_18() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_daysToMonth365_18)); }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_s_daysToMonth365_18() const { return ___s_daysToMonth365_18; }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_s_daysToMonth365_18() { return &___s_daysToMonth365_18; }
inline void set_s_daysToMonth365_18(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value)
{
___s_daysToMonth365_18 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_daysToMonth365_18), (void*)value);
}
inline static int32_t get_offset_of_s_daysToMonth366_19() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_daysToMonth366_19)); }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_s_daysToMonth366_19() const { return ___s_daysToMonth366_19; }
inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_s_daysToMonth366_19() { return &___s_daysToMonth366_19; }
inline void set_s_daysToMonth366_19(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value)
{
___s_daysToMonth366_19 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_daysToMonth366_19), (void*)value);
}
inline static int32_t get_offset_of_s_minDateTime_20() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_minDateTime_20)); }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_s_minDateTime_20() const { return ___s_minDateTime_20; }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_s_minDateTime_20() { return &___s_minDateTime_20; }
inline void set_s_minDateTime_20(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value)
{
___s_minDateTime_20 = value;
}
inline static int32_t get_offset_of_s_maxDateTime_21() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_maxDateTime_21)); }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_s_maxDateTime_21() const { return ___s_maxDateTime_21; }
inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_s_maxDateTime_21() { return &___s_maxDateTime_21; }
inline void set_s_maxDateTime_21(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value)
{
___s_maxDateTime_21 = value;
}
inline static int32_t get_offset_of_s_minTimeSpan_22() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_minTimeSpan_22)); }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_s_minTimeSpan_22() const { return ___s_minTimeSpan_22; }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_s_minTimeSpan_22() { return &___s_minTimeSpan_22; }
inline void set_s_minTimeSpan_22(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value)
{
___s_minTimeSpan_22 = value;
}
inline static int32_t get_offset_of_s_maxTimeSpan_23() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_maxTimeSpan_23)); }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_s_maxTimeSpan_23() const { return ___s_maxTimeSpan_23; }
inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_s_maxTimeSpan_23() { return &___s_maxTimeSpan_23; }
inline void set_s_maxTimeSpan_23(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value)
{
___s_maxTimeSpan_23 = value;
}
inline static int32_t get_offset_of_s_ISO8601_DateTimeFormat_24() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_ISO8601_DateTimeFormat_24)); }
inline String_t* get_s_ISO8601_DateTimeFormat_24() const { return ___s_ISO8601_DateTimeFormat_24; }
inline String_t** get_address_of_s_ISO8601_DateTimeFormat_24() { return &___s_ISO8601_DateTimeFormat_24; }
inline void set_s_ISO8601_DateTimeFormat_24(String_t* value)
{
___s_ISO8601_DateTimeFormat_24 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_ISO8601_DateTimeFormat_24), (void*)value);
}
inline static int32_t get_offset_of_s_dateTimeFormats_25() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___s_dateTimeFormats_25)); }
inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* get_s_dateTimeFormats_25() const { return ___s_dateTimeFormats_25; }
inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A** get_address_of_s_dateTimeFormats_25() { return &___s_dateTimeFormats_25; }
inline void set_s_dateTimeFormats_25(StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* value)
{
___s_dateTimeFormats_25 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_dateTimeFormats_25), (void*)value);
}
inline static int32_t get_offset_of_MinValue_26() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___MinValue_26)); }
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D get_MinValue_26() const { return ___MinValue_26; }
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D * get_address_of_MinValue_26() { return &___MinValue_26; }
inline void set_MinValue_26(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D value)
{
___MinValue_26 = value;
}
inline static int32_t get_offset_of_MaxValue_27() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___MaxValue_27)); }
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D get_MaxValue_27() const { return ___MaxValue_27; }
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D * get_address_of_MaxValue_27() { return &___MaxValue_27; }
inline void set_MaxValue_27(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D value)
{
___MaxValue_27 = value;
}
inline static int32_t get_offset_of_Null_28() { return static_cast<int32_t>(offsetof(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_StaticFields, ___Null_28)); }
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D get_Null_28() const { return ___Null_28; }
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D * get_address_of_Null_28() { return &___Null_28; }
inline void set_Null_28(SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D value)
{
___Null_28 = value;
}
};
// Native definition for P/Invoke marshalling of System.Data.SqlTypes.SqlDateTime
struct SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_marshaled_pinvoke
{
int32_t ___m_fNotNull_0;
int32_t ___m_day_1;
int32_t ___m_time_2;
};
// Native definition for COM marshalling of System.Data.SqlTypes.SqlDateTime
struct SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D_marshaled_com
{
int32_t ___m_fNotNull_0;
int32_t ___m_day_1;
int32_t ___m_time_2;
};
// UnityEngine.Behaviour
struct Behaviour_t1A3DDDCF73B4627928FBFE02ED52B7251777DBD9 : public Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684
{
public:
public:
};
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A : public Behaviour_t1A3DDDCF73B4627928FBFE02ED52B7251777DBD9
{
public:
public:
};
// SiteOverviewTurbineButton
struct SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939 : public MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A
{
public:
// SiteOverviewUIPanel SiteOverviewTurbineButton::siteOverviewPanel
SiteOverviewUIPanel_tC1890DA197296EDD75E4E430A5254B9AC192AEA0 * ___siteOverviewPanel_4;
// TMPro.TextMeshProUGUI SiteOverviewTurbineButton::turbineNameLabel
TextMeshProUGUI_tCC5BE8A76E6E9AF92521A462E8D81ACFBA7C85F1 * ___turbineNameLabel_5;
// ProgressController SiteOverviewTurbineButton::progressController
ProgressController_tF9F02EB59D94987ECAFF59CC4CA61158B949E6E8 * ___progressController_6;
// UnityEngine.GameObject SiteOverviewTurbineButton::warningIndicator
GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___warningIndicator_7;
// WindTurbineScriptableObject SiteOverviewTurbineButton::windTurbineData
WindTurbineScriptableObject_t03D27141AD20B61458ADEA1BADEEEF48CC01E1B0 * ___windTurbineData_8;
// WindTurbineGameEvent SiteOverviewTurbineButton::focusOnTurbineEvent
WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB * ___focusOnTurbineEvent_9;
// WindTurbineGameEvent SiteOverviewTurbineButton::onHoverStart
WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB * ___onHoverStart_10;
// WindTurbineGameEvent SiteOverviewTurbineButton::onHoverEnd
WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB * ___onHoverEnd_11;
public:
inline static int32_t get_offset_of_siteOverviewPanel_4() { return static_cast<int32_t>(offsetof(SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939, ___siteOverviewPanel_4)); }
inline SiteOverviewUIPanel_tC1890DA197296EDD75E4E430A5254B9AC192AEA0 * get_siteOverviewPanel_4() const { return ___siteOverviewPanel_4; }
inline SiteOverviewUIPanel_tC1890DA197296EDD75E4E430A5254B9AC192AEA0 ** get_address_of_siteOverviewPanel_4() { return &___siteOverviewPanel_4; }
inline void set_siteOverviewPanel_4(SiteOverviewUIPanel_tC1890DA197296EDD75E4E430A5254B9AC192AEA0 * value)
{
___siteOverviewPanel_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___siteOverviewPanel_4), (void*)value);
}
inline static int32_t get_offset_of_turbineNameLabel_5() { return static_cast<int32_t>(offsetof(SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939, ___turbineNameLabel_5)); }
inline TextMeshProUGUI_tCC5BE8A76E6E9AF92521A462E8D81ACFBA7C85F1 * get_turbineNameLabel_5() const { return ___turbineNameLabel_5; }
inline TextMeshProUGUI_tCC5BE8A76E6E9AF92521A462E8D81ACFBA7C85F1 ** get_address_of_turbineNameLabel_5() { return &___turbineNameLabel_5; }
inline void set_turbineNameLabel_5(TextMeshProUGUI_tCC5BE8A76E6E9AF92521A462E8D81ACFBA7C85F1 * value)
{
___turbineNameLabel_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___turbineNameLabel_5), (void*)value);
}
inline static int32_t get_offset_of_progressController_6() { return static_cast<int32_t>(offsetof(SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939, ___progressController_6)); }
inline ProgressController_tF9F02EB59D94987ECAFF59CC4CA61158B949E6E8 * get_progressController_6() const { return ___progressController_6; }
inline ProgressController_tF9F02EB59D94987ECAFF59CC4CA61158B949E6E8 ** get_address_of_progressController_6() { return &___progressController_6; }
inline void set_progressController_6(ProgressController_tF9F02EB59D94987ECAFF59CC4CA61158B949E6E8 * value)
{
___progressController_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___progressController_6), (void*)value);
}
inline static int32_t get_offset_of_warningIndicator_7() { return static_cast<int32_t>(offsetof(SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939, ___warningIndicator_7)); }
inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * get_warningIndicator_7() const { return ___warningIndicator_7; }
inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 ** get_address_of_warningIndicator_7() { return &___warningIndicator_7; }
inline void set_warningIndicator_7(GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * value)
{
___warningIndicator_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___warningIndicator_7), (void*)value);
}
inline static int32_t get_offset_of_windTurbineData_8() { return static_cast<int32_t>(offsetof(SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939, ___windTurbineData_8)); }
inline WindTurbineScriptableObject_t03D27141AD20B61458ADEA1BADEEEF48CC01E1B0 * get_windTurbineData_8() const { return ___windTurbineData_8; }
inline WindTurbineScriptableObject_t03D27141AD20B61458ADEA1BADEEEF48CC01E1B0 ** get_address_of_windTurbineData_8() { return &___windTurbineData_8; }
inline void set_windTurbineData_8(WindTurbineScriptableObject_t03D27141AD20B61458ADEA1BADEEEF48CC01E1B0 * value)
{
___windTurbineData_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___windTurbineData_8), (void*)value);
}
inline static int32_t get_offset_of_focusOnTurbineEvent_9() { return static_cast<int32_t>(offsetof(SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939, ___focusOnTurbineEvent_9)); }
inline WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB * get_focusOnTurbineEvent_9() const { return ___focusOnTurbineEvent_9; }
inline WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB ** get_address_of_focusOnTurbineEvent_9() { return &___focusOnTurbineEvent_9; }
inline void set_focusOnTurbineEvent_9(WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB * value)
{
___focusOnTurbineEvent_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___focusOnTurbineEvent_9), (void*)value);
}
inline static int32_t get_offset_of_onHoverStart_10() { return static_cast<int32_t>(offsetof(SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939, ___onHoverStart_10)); }
inline WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB * get_onHoverStart_10() const { return ___onHoverStart_10; }
inline WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB ** get_address_of_onHoverStart_10() { return &___onHoverStart_10; }
inline void set_onHoverStart_10(WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB * value)
{
___onHoverStart_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onHoverStart_10), (void*)value);
}
inline static int32_t get_offset_of_onHoverEnd_11() { return static_cast<int32_t>(offsetof(SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939, ___onHoverEnd_11)); }
inline WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB * get_onHoverEnd_11() const { return ___onHoverEnd_11; }
inline WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB ** get_address_of_onHoverEnd_11() { return &___onHoverEnd_11; }
inline void set_onHoverEnd_11(WindTurbineGameEvent_tB0CD29D5DBE8F397B833AB90886F66A05343A1AB * value)
{
___onHoverEnd_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onHoverEnd_11), (void*)value);
}
};
// Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver
struct Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971 : public MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A
{
public:
// System.Boolean Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver::updateLinkedTransform
bool ___updateLinkedTransform_4;
// System.Single Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver::moveLerpTime
float ___moveLerpTime_5;
// System.Single Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver::rotateLerpTime
float ___rotateLerpTime_6;
// System.Single Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver::scaleLerpTime
float ___scaleLerpTime_7;
// System.Boolean Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver::maintainScaleOnInitialization
bool ___maintainScaleOnInitialization_8;
// System.Boolean Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver::smoothing
bool ___smoothing_9;
// System.Single Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver::lifetime
float ___lifetime_10;
// System.Single Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver::currentLifetime
float ___currentLifetime_11;
// Microsoft.MixedReality.Toolkit.Utilities.Solvers.SolverHandler Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver::SolverHandler
SolverHandler_t6CF6DCC834885CCD53A484458C1B78548C6D8810 * ___SolverHandler_12;
public:
inline static int32_t get_offset_of_updateLinkedTransform_4() { return static_cast<int32_t>(offsetof(Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971, ___updateLinkedTransform_4)); }
inline bool get_updateLinkedTransform_4() const { return ___updateLinkedTransform_4; }
inline bool* get_address_of_updateLinkedTransform_4() { return &___updateLinkedTransform_4; }
inline void set_updateLinkedTransform_4(bool value)
{
___updateLinkedTransform_4 = value;
}
inline static int32_t get_offset_of_moveLerpTime_5() { return static_cast<int32_t>(offsetof(Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971, ___moveLerpTime_5)); }
inline float get_moveLerpTime_5() const { return ___moveLerpTime_5; }
inline float* get_address_of_moveLerpTime_5() { return &___moveLerpTime_5; }
inline void set_moveLerpTime_5(float value)
{
___moveLerpTime_5 = value;
}
inline static int32_t get_offset_of_rotateLerpTime_6() { return static_cast<int32_t>(offsetof(Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971, ___rotateLerpTime_6)); }
inline float get_rotateLerpTime_6() const { return ___rotateLerpTime_6; }
inline float* get_address_of_rotateLerpTime_6() { return &___rotateLerpTime_6; }
inline void set_rotateLerpTime_6(float value)
{
___rotateLerpTime_6 = value;
}
inline static int32_t get_offset_of_scaleLerpTime_7() { return static_cast<int32_t>(offsetof(Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971, ___scaleLerpTime_7)); }
inline float get_scaleLerpTime_7() const { return ___scaleLerpTime_7; }
inline float* get_address_of_scaleLerpTime_7() { return &___scaleLerpTime_7; }
inline void set_scaleLerpTime_7(float value)
{
___scaleLerpTime_7 = value;
}
inline static int32_t get_offset_of_maintainScaleOnInitialization_8() { return static_cast<int32_t>(offsetof(Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971, ___maintainScaleOnInitialization_8)); }
inline bool get_maintainScaleOnInitialization_8() const { return ___maintainScaleOnInitialization_8; }
inline bool* get_address_of_maintainScaleOnInitialization_8() { return &___maintainScaleOnInitialization_8; }
inline void set_maintainScaleOnInitialization_8(bool value)
{
___maintainScaleOnInitialization_8 = value;
}
inline static int32_t get_offset_of_smoothing_9() { return static_cast<int32_t>(offsetof(Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971, ___smoothing_9)); }
inline bool get_smoothing_9() const { return ___smoothing_9; }
inline bool* get_address_of_smoothing_9() { return &___smoothing_9; }
inline void set_smoothing_9(bool value)
{
___smoothing_9 = value;
}
inline static int32_t get_offset_of_lifetime_10() { return static_cast<int32_t>(offsetof(Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971, ___lifetime_10)); }
inline float get_lifetime_10() const { return ___lifetime_10; }
inline float* get_address_of_lifetime_10() { return &___lifetime_10; }
inline void set_lifetime_10(float value)
{
___lifetime_10 = value;
}
inline static int32_t get_offset_of_currentLifetime_11() { return static_cast<int32_t>(offsetof(Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971, ___currentLifetime_11)); }
inline float get_currentLifetime_11() const { return ___currentLifetime_11; }
inline float* get_address_of_currentLifetime_11() { return &___currentLifetime_11; }
inline void set_currentLifetime_11(float value)
{
___currentLifetime_11 = value;
}
inline static int32_t get_offset_of_SolverHandler_12() { return static_cast<int32_t>(offsetof(Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971, ___SolverHandler_12)); }
inline SolverHandler_t6CF6DCC834885CCD53A484458C1B78548C6D8810 * get_SolverHandler_12() const { return ___SolverHandler_12; }
inline SolverHandler_t6CF6DCC834885CCD53A484458C1B78548C6D8810 ** get_address_of_SolverHandler_12() { return &___SolverHandler_12; }
inline void set_SolverHandler_12(SolverHandler_t6CF6DCC834885CCD53A484458C1B78548C6D8810 * value)
{
___SolverHandler_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___SolverHandler_12), (void*)value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// System.Single[]
struct SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA : public RuntimeArray
{
public:
ALIGN_FIELD (8) float m_Items[1];
public:
inline float GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline float* 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, float value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline float GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline float* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, float value)
{
m_Items[index] = value;
}
};
// System.Byte[]
struct ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726 : public RuntimeArray
{
public:
ALIGN_FIELD (8) uint8_t m_Items[1];
public:
inline uint8_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline uint8_t* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, uint8_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline uint8_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline uint8_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, uint8_t value)
{
m_Items[index] = value;
}
};
// System.Int16[]
struct Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD : public RuntimeArray
{
public:
ALIGN_FIELD (8) int16_t m_Items[1];
public:
inline int16_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline int16_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, int16_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline int16_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline int16_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, int16_t value)
{
m_Items[index] = value;
}
};
// System.UInt16[]
struct UInt16U5BU5D_t42D35C587B07DCDBCFDADF572C6D733AE85B2A67 : public RuntimeArray
{
public:
ALIGN_FIELD (8) uint16_t m_Items[1];
public:
inline uint16_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline uint16_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, uint16_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline uint16_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline uint16_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, uint16_t value)
{
m_Items[index] = value;
}
};
// System.Int32[]
struct Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32 : 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.UInt32[]
struct UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF : public RuntimeArray
{
public:
ALIGN_FIELD (8) uint32_t m_Items[1];
public:
inline uint32_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline uint32_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, uint32_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline uint32_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline uint32_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, uint32_t value)
{
m_Items[index] = value;
}
};
// System.Int64[]
struct Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6 : public RuntimeArray
{
public:
ALIGN_FIELD (8) int64_t m_Items[1];
public:
inline int64_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline int64_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, int64_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline int64_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline int64_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, int64_t value)
{
m_Items[index] = value;
}
};
// System.UInt64[]
struct UInt64U5BU5D_t7C6E32D10F47677C1CEF3C30F4E4CE95B3A633E2 : public RuntimeArray
{
public:
ALIGN_FIELD (8) uint64_t m_Items[1];
public:
inline uint64_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline uint64_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, uint64_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline uint64_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline uint64_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, uint64_t value)
{
m_Items[index] = value;
}
};
// System.Double[]
struct DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB : public RuntimeArray
{
public:
ALIGN_FIELD (8) double m_Items[1];
public:
inline double GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline double* 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, double value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline double GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline double* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, double value)
{
m_Items[index] = value;
}
};
// System.String[]
struct StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A : public RuntimeArray
{
public:
ALIGN_FIELD (8) String_t* m_Items[1];
public:
inline String_t* GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline String_t** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, String_t* value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline String_t* GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline String_t** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, String_t* value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// System.Guid[]
struct GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Guid_t m_Items[1];
public:
inline Guid_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Guid_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, Guid_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Guid_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Guid_t * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Guid_t value)
{
m_Items[index] = value;
}
};
// SiteOverviewTurbineButton[]
struct SiteOverviewTurbineButtonU5BU5D_t3ACBCC0C5A7D36AFE732F05FFE492AA4B8CCCF5C : public RuntimeArray
{
public:
ALIGN_FIELD (8) SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939 * m_Items[1];
public:
inline SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939 ** 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, SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SiteOverviewTurbineButton_t774E530836694BA3714EC78176A40D5C27856939 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver[]
struct SolverU5BU5D_t7D4E8D7D33AE0E86ADE266E97543F909C6A9D1B6 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971 * m_Items[1];
public:
inline Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971 ** 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, Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Solver_t8BBDA74686483C111074BE6BE588AB31E74B2971 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject[]
struct SpatialAwarenessMeshObjectU5BU5D_tA94B023FDD95287C601B9EC531C41DA60D5D0C5A : public RuntimeArray
{
public:
ALIGN_FIELD (8) SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A * m_Items[1];
public:
inline SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A ** 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, SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SpatialAwarenessMeshObject_t6599CE0971A63B6D01F0F352431B66848093BE5A * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject[]
struct SpatialAwarenessPlanarObjectU5BU5D_t772A69ED777B1C864FC824CA32DA58CA28AC6743 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE * m_Items[1];
public:
inline SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE ** 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, SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SpatialAwarenessPlanarObject_t548FB81C44BB10562EBA2CD41024B3A84ED7BDEE * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject[]
struct SpatialAwarenessSceneObjectU5BU5D_t6F70086B6848AB4D5DA4B5454581DCEA06A370E3 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612 * m_Items[1];
public:
inline SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612 ** 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, SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SpatialAwarenessSceneObject_tB51F64F99C29A4803DEFA3EA7BC7947816DB8612 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// UnityEngine.Sprite[]
struct SpriteU5BU5D_t8DB77E112FFC97B722E701189DCB4059F943FD77 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * m_Items[1];
public:
inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 ** 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, Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// System.Data.SqlTypes.SqlBinary[]
struct SqlBinaryU5BU5D_t4A1CD2FDEEC6E9EAEC15A8C28A7701484B8D4485 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B m_Items[1];
public:
inline SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B * 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, SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->____value_0), (void*)NULL);
}
inline SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlBinary_t83BA1113ACB82E306D2EC534B0864D8A4A7D125B value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->____value_0), (void*)NULL);
}
};
// System.Data.SqlTypes.SqlBoolean[]
struct SqlBooleanU5BU5D_t07B79EADC41ED65294851549545D3F3918FDC6A0 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 m_Items[1];
public:
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 * 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, SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlBoolean_tD34BC5894C8A7061B0E2D2D2CBE8E4A5257FD4F3 value)
{
m_Items[index] = value;
}
};
// System.Data.SqlTypes.SqlByte[]
struct SqlByteU5BU5D_tB403A2418F730327A0789B78506CDACCECBB4CB6 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 m_Items[1];
public:
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 * 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, SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlByte_t5E78C40CFCD84AF432F47D15743E513022E09B41 value)
{
m_Items[index] = value;
}
};
// System.Data.SqlTypes.SqlBytes[]
struct SqlBytesU5BU5D_t6F60DB18D1E498C69C2A2A292075B88252A47C49 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6 * m_Items[1];
public:
inline SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6 ** 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, SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlBytes_tA89570BFA7CB45E83EAFB32FF13B8ABEC21555B6 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// System.Data.SqlTypes.SqlChars[]
struct SqlCharsU5BU5D_t20FD646DC66170A3025ACFD16C890584136139FC : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53 * m_Items[1];
public:
inline SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53 ** 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, SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlChars_t123841A0B03CA780E6710DFE1A63ABA7CDE1CD53 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// System.Data.SqlTypes.SqlDateTime[]
struct SqlDateTimeU5BU5D_t12EEE5C7616A30E9F9CE304F76B5912B2A47EABF : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D m_Items[1];
public:
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D * 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, SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlDateTime_t18DC6DADB09444EBDCCF6536AA4F1567EC19337D value)
{
m_Items[index] = value;
}
};
// System.Data.SqlTypes.SqlDecimal[]
struct SqlDecimalU5BU5D_t436F1578CFBAD13111599A27A32FB894D8307CBD : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B m_Items[1];
public:
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B * 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, SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlDecimal_t2E3764DA58ABCDADAC6F390C24C8273EF87AA54B value)
{
m_Items[index] = value;
}
};
// System.Data.SqlTypes.SqlDouble[]
struct SqlDoubleU5BU5D_t65F627E3E10E5B61B332C69E3E8180BB1B5C5EA7 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA m_Items[1];
public:
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA * 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, SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlDouble_t0D9EDD6B609690459BDBBB52962B791D3D40B1FA value)
{
m_Items[index] = value;
}
};
// System.Data.SqlTypes.SqlGuid[]
struct SqlGuidU5BU5D_t7B958D75216823CC6FD381B81133477AFD2DE5E2 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 m_Items[1];
public:
inline SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 * 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, SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_value_2), (void*)NULL);
}
inline SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlGuid_t5D26918EA5666BC8EBF86F12192E616F0BA8DE46 value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_value_2), (void*)NULL);
}
};
// System.Data.SqlTypes.SqlInt16[]
struct SqlInt16U5BU5D_tFDBC98064CCDBA5EF1A928770767FF5E428F68B0 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F m_Items[1];
public:
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F * 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, SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlInt16_tB003889273CEF2625C06174D4DB23DBBAFEDD72F value)
{
m_Items[index] = value;
}
};
// System.Data.SqlTypes.SqlInt32[]
struct SqlInt32U5BU5D_t4E9A0DCCD18A21ED32AE342EE7288F4722D13002 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 m_Items[1];
public:
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 * 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, SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlInt32_t2AB23DF9003BEBE6DBD94E94C8C679454A8AF0E5 value)
{
m_Items[index] = value;
}
};
// System.Data.SqlTypes.SqlInt64[]
struct SqlInt64U5BU5D_t07215C71C5947E0BE4CF431CB6124BC53ADA28C5 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE m_Items[1];
public:
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE * 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, SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlInt64_tCF441A47D276F6121644D08D6BEE0296E84E46AE value)
{
m_Items[index] = value;
}
};
// System.Data.SqlTypes.SqlMoney[]
struct SqlMoneyU5BU5D_tF5702E9AA3B2D27362711637FFD105D198723C95 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA m_Items[1];
public:
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA * 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, SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlMoney_t3AFB18BE9EB489D660B42B8A4276B7C3054E00CA value)
{
m_Items[index] = value;
}
};
// System.Data.SqlTypes.SqlSingle[]
struct SqlSingleU5BU5D_t2F81D199741A89C70F73D8FAC1385A28379B442F : public RuntimeArray
{
public:
ALIGN_FIELD (8) SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E m_Items[1];
public:
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E * 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, SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SqlSingle_t2CD814E1AA8A493B2181D8240064E7A0A034A32E value)
{
m_Items[index] = value;
}
};
il2cpp_hresult_t IVector_1_GetAt_mB49A020A8CDF0AAF8DCFB381FD74A77688B0FA71_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0, float* comReturnValue);
il2cpp_hresult_t IVector_1_get_Size_m494C6D174D411D7FC20D21CE0FA2C0EDD5E91568_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t* comReturnValue);
il2cpp_hresult_t IVector_1_GetView_m2720307D308D3DCD49B6AF4C4A08D67498D2B186_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IVectorView_1_t0652AC4EC7AA575BE5D7797DFD20689718705BE0** comReturnValue);
il2cpp_hresult_t IVector_1_IndexOf_mC1E5DFCDEDC953A4E1CA8BB1C427FBE7EA517FF4_ComCallableWrapperProjectedMethod(RuntimeObject* __this, float ___value0, uint32_t* ___index1, bool* comReturnValue);
il2cpp_hresult_t IVector_1_SetAt_m478207B3FCA7EB1D8264306765201B9B4C8725AD_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0, float ___value1);
il2cpp_hresult_t IVector_1_InsertAt_m6C9D77B26BDE0B12FE238687DA397FC58C2032A2_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0, float ___value1);
il2cpp_hresult_t IVector_1_RemoveAt_m3EFDAC8DAF08714CB4FDF41FA54DF4EB2E0F9D97_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0);
il2cpp_hresult_t IVector_1_Append_mB47ED34CA2102C71646E947495BA9D14451E29C6_ComCallableWrapperProjectedMethod(RuntimeObject* __this, float ___value0);
il2cpp_hresult_t IVector_1_RemoveAtEnd_m04EB0AD3F455408D30F0FFE3100BEB8367635CFC_ComCallableWrapperProjectedMethod(RuntimeObject* __this);
il2cpp_hresult_t IVector_1_Clear_mE43500616C5480A63657796BB0AE2E60D7BA49A9_ComCallableWrapperProjectedMethod(RuntimeObject* __this);
il2cpp_hresult_t IVector_1_GetMany_m436FF76C0F1FFB49549025672552A1353FEF8745_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___startIndex0, uint32_t ___items1ArraySize, float* ___items1, uint32_t* comReturnValue);
il2cpp_hresult_t IVector_1_ReplaceAll_mF925EE20FE793EF0740B86913574AE2E17FD6B93_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___items0ArraySize, float* ___items0);
il2cpp_hresult_t IIterable_1_First_mBD8D20BBA2E9F188C15175F2C9AB4039C6400ED1_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t53A3C573D4888D0C268E9C0D9515A4BDAD329CCC** comReturnValue);
il2cpp_hresult_t IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue);
il2cpp_hresult_t IVectorView_1_GetAt_m3D2911EEE429BEE9DFCCFD08528A6B62938AE14E_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0, float* comReturnValue);
il2cpp_hresult_t IVectorView_1_get_Size_mE51A5C7833E725EA8286E5878D80E9D44ECDFF41_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t* comReturnValue);
il2cpp_hresult_t IVectorView_1_IndexOf_m4C0458BD59B3F97E792DE7EB4399297542D76C97_ComCallableWrapperProjectedMethod(RuntimeObject* __this, float ___value0, uint32_t* ___index1, bool* comReturnValue);
il2cpp_hresult_t IVectorView_1_GetMany_m481FCAC8A5B7E6C75882A80893023447977DA78B_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___startIndex0, uint32_t ___items1ArraySize, float* ___items1, uint32_t* comReturnValue);
il2cpp_hresult_t IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0, Il2CppIInspectable** comReturnValue);
il2cpp_hresult_t IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t* comReturnValue);
il2cpp_hresult_t IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue);
il2cpp_hresult_t IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(RuntimeObject* __this, Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue);
il2cpp_hresult_t IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0, Il2CppIInspectable* ___value1);
il2cpp_hresult_t IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0, Il2CppIInspectable* ___value1);
il2cpp_hresult_t IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0);
il2cpp_hresult_t IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(RuntimeObject* __this, Il2CppIInspectable* ___value0);
il2cpp_hresult_t IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(RuntimeObject* __this);
il2cpp_hresult_t IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(RuntimeObject* __this);
il2cpp_hresult_t IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue);
il2cpp_hresult_t IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___index0, Il2CppIInspectable** comReturnValue);
il2cpp_hresult_t IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t* comReturnValue);
il2cpp_hresult_t IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67_ComCallableWrapperProjectedMethod(RuntimeObject* __this, Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue);
il2cpp_hresult_t IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1_ComCallableWrapperProjectedMethod(RuntimeObject* __this, uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue);
// System.Byte System.Single::System.IConvertible.ToByte(System.IFormatProvider)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t Single_System_IConvertible_ToByte_m8FAE4E8EDDF055FF2F17C2C00D091EBAA0099D49 (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method);
// System.Int16 System.Single::System.IConvertible.ToInt16(System.IFormatProvider)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int16_t Single_System_IConvertible_ToInt16_mBED24FBB9C6465ABAECDC3C894F41B7CF0E6FC6A (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method);
// System.UInt16 System.Single::System.IConvertible.ToUInt16(System.IFormatProvider)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint16_t Single_System_IConvertible_ToUInt16_mCBB71CEDC4797B00D50B4417A96EC702076C757A (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method);
// System.Int32 System.Single::System.IConvertible.ToInt32(System.IFormatProvider)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Single_System_IConvertible_ToInt32_mD144638A230B62184C32B38DFFFDF955353F42AC (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method);
// System.UInt32 System.Single::System.IConvertible.ToUInt32(System.IFormatProvider)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint32_t Single_System_IConvertible_ToUInt32_mF7B0C9FE3652F3FE2E0BDEEC4B90A316099B525E (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method);
// System.Int64 System.Single::System.IConvertible.ToInt64(System.IFormatProvider)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int64_t Single_System_IConvertible_ToInt64_mAC0D1AEA698E9A358F503A77DA9C2873465E7ADC (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method);
// System.UInt64 System.Single::System.IConvertible.ToUInt64(System.IFormatProvider)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint64_t Single_System_IConvertible_ToUInt64_m6A235CB0548A46C28B13E14D5F62DEADE7887613 (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method);
// System.Double System.Single::System.IConvertible.ToDouble(System.IFormatProvider)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR double Single_System_IConvertible_ToDouble_m103B0F5DD6C36D37816B2524CCFAB7A60F9781E6 (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method);
// COM Callable Wrapper for System.Single[]
struct SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA_ComCallableWrapper>, IVector_1_t5FBA1DB686EDD35620DC2CCA810C0754A18E8C9D, IIterable_1_t0EA6FF8BF23034840DB9F5189AF1D72411992F7E, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IVectorView_1_t0652AC4EC7AA575BE5D7797DFD20689718705BE0, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC, IReferenceArray_1_t1BB7D08F28C5D27D16C0145A86D139290E764ABC, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8
{
inline SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVector_1_t5FBA1DB686EDD35620DC2CCA810C0754A18E8C9D::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVector_1_t5FBA1DB686EDD35620DC2CCA810C0754A18E8C9D*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t0EA6FF8BF23034840DB9F5189AF1D72411992F7E::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t0EA6FF8BF23034840DB9F5189AF1D72411992F7E*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVectorView_1_t0652AC4EC7AA575BE5D7797DFD20689718705BE0::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVectorView_1_t0652AC4EC7AA575BE5D7797DFD20689718705BE0*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IReferenceArray_1_t1BB7D08F28C5D27D16C0145A86D139290E764ABC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IReferenceArray_1_t1BB7D08F28C5D27D16C0145A86D139290E764ABC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(7);
interfaceIds[0] = IVector_1_t5FBA1DB686EDD35620DC2CCA810C0754A18E8C9D::IID;
interfaceIds[1] = IIterable_1_t0EA6FF8BF23034840DB9F5189AF1D72411992F7E::IID;
interfaceIds[2] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[3] = IVectorView_1_t0652AC4EC7AA575BE5D7797DFD20689718705BE0::IID;
interfaceIds[4] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
interfaceIds[5] = IReferenceArray_1_t1BB7D08F28C5D27D16C0145A86D139290E764ABC::IID;
interfaceIds[6] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID;
*iidCount = 7;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IVector_1_GetAt_mB49A020A8CDF0AAF8DCFB381FD74A77688B0FA71(uint32_t ___index0, float* comReturnValue) IL2CPP_OVERRIDE
{
return IVector_1_GetAt_mB49A020A8CDF0AAF8DCFB381FD74A77688B0FA71_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVector_1_get_Size_m494C6D174D411D7FC20D21CE0FA2C0EDD5E91568(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVector_1_get_Size_m494C6D174D411D7FC20D21CE0FA2C0EDD5E91568_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVector_1_GetView_m2720307D308D3DCD49B6AF4C4A08D67498D2B186(IVectorView_1_t0652AC4EC7AA575BE5D7797DFD20689718705BE0** comReturnValue) IL2CPP_OVERRIDE
{
return IVector_1_GetView_m2720307D308D3DCD49B6AF4C4A08D67498D2B186_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVector_1_IndexOf_mC1E5DFCDEDC953A4E1CA8BB1C427FBE7EA517FF4(float ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVector_1_IndexOf_mC1E5DFCDEDC953A4E1CA8BB1C427FBE7EA517FF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVector_1_SetAt_m478207B3FCA7EB1D8264306765201B9B4C8725AD(uint32_t ___index0, float ___value1) IL2CPP_OVERRIDE
{
return IVector_1_SetAt_m478207B3FCA7EB1D8264306765201B9B4C8725AD_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IVector_1_InsertAt_m6C9D77B26BDE0B12FE238687DA397FC58C2032A2(uint32_t ___index0, float ___value1) IL2CPP_OVERRIDE
{
return IVector_1_InsertAt_m6C9D77B26BDE0B12FE238687DA397FC58C2032A2_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IVector_1_RemoveAt_m3EFDAC8DAF08714CB4FDF41FA54DF4EB2E0F9D97(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IVector_1_RemoveAt_m3EFDAC8DAF08714CB4FDF41FA54DF4EB2E0F9D97_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IVector_1_Append_mB47ED34CA2102C71646E947495BA9D14451E29C6(float ___value0) IL2CPP_OVERRIDE
{
return IVector_1_Append_mB47ED34CA2102C71646E947495BA9D14451E29C6_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IVector_1_RemoveAtEnd_m04EB0AD3F455408D30F0FFE3100BEB8367635CFC() IL2CPP_OVERRIDE
{
return IVector_1_RemoveAtEnd_m04EB0AD3F455408D30F0FFE3100BEB8367635CFC_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IVector_1_Clear_mE43500616C5480A63657796BB0AE2E60D7BA49A9() IL2CPP_OVERRIDE
{
return IVector_1_Clear_mE43500616C5480A63657796BB0AE2E60D7BA49A9_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IVector_1_GetMany_m436FF76C0F1FFB49549025672552A1353FEF8745(uint32_t ___startIndex0, uint32_t ___items1ArraySize, float* ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVector_1_GetMany_m436FF76C0F1FFB49549025672552A1353FEF8745_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVector_1_ReplaceAll_mF925EE20FE793EF0740B86913574AE2E17FD6B93(uint32_t ___items0ArraySize, float* ___items0) IL2CPP_OVERRIDE
{
return IVector_1_ReplaceAll_mF925EE20FE793EF0740B86913574AE2E17FD6B93_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___items0ArraySize, ___items0);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mBD8D20BBA2E9F188C15175F2C9AB4039C6400ED1(IIterator_1_t53A3C573D4888D0C268E9C0D9515A4BDAD329CCC** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mBD8D20BBA2E9F188C15175F2C9AB4039C6400ED1_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m3D2911EEE429BEE9DFCCFD08528A6B62938AE14E(uint32_t ___index0, float* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetAt_m3D2911EEE429BEE9DFCCFD08528A6B62938AE14E_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_mE51A5C7833E725EA8286E5878D80E9D44ECDFF41(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_get_Size_mE51A5C7833E725EA8286E5878D80E9D44ECDFF41_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_m4C0458BD59B3F97E792DE7EB4399297542D76C97(float ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_IndexOf_m4C0458BD59B3F97E792DE7EB4399297542D76C97_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m481FCAC8A5B7E6C75882A80893023447977DA78B(uint32_t ___startIndex0, uint32_t ___items1ArraySize, float* ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetMany_m481FCAC8A5B7E6C75882A80893023447977DA78B_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IReferenceArray_1_get_Value_mDB41698A556618F72FF5F33C60E6D9B78435F619(uint32_t* comReturnValueArraySize, float** comReturnValue) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Managed method invocation
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* returnValue;
try
{
returnValue = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
}
catch (const Il2CppExceptionWrapper& ex)
{
memset(comReturnValue, 0, sizeof(*comReturnValue));
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of return value back from managed representation
uint32_t _returnValue_marshaledArraySize = 0;
float* _returnValue_marshaled = NULL;
if (returnValue != NULL)
{
_returnValue_marshaledArraySize = static_cast<uint32_t>((returnValue)->max_length);
_returnValue_marshaled = il2cpp_codegen_marshal_allocate_array<float>(static_cast<int32_t>(_returnValue_marshaledArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(_returnValue_marshaledArraySize)); i++)
{
(_returnValue_marshaled)[i] = (returnValue)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
*comReturnValueArraySize = _returnValue_marshaledArraySize;
*comReturnValue = _returnValue_marshaled;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Managed method invocation
int32_t returnValue;
try
{
returnValue = 1032;
}
catch (const Il2CppExceptionWrapper& ex)
{
memset(comReturnValue, 0, sizeof(*comReturnValue));
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
*comReturnValue = returnValue;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Managed method invocation
bool returnValue;
try
{
returnValue = false;
}
catch (const Il2CppExceptionWrapper& ex)
{
memset(comReturnValue, 0, sizeof(*comReturnValue));
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
*comReturnValue = returnValue;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Byte");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Int16");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "UInt16");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Int32");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "UInt32");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Int64");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "UInt64");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Single");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Double");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Char16");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Boolean");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "String");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Guid");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "DateTime");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "TimeSpan");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Point");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Size");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Rect");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
____value0_empty = (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)SZArrayNew(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726_il2cpp_TypeInfo_var, static_cast<uint32_t>(arrayLength));
for (il2cpp_array_size_t i = 0; i < arrayLength; i++)
{
float item = (managedArray)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
if (item < 0)
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "Byte", i);
}
try
{
uint8_t il2cppRetVal;
il2cppRetVal = Single_System_IConvertible_ToByte_m8FAE4E8EDDF055FF2F17C2C00D091EBAA0099D49((&item), NULL, NULL);
(____value0_empty)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), il2cppRetVal);
}
catch (const Il2CppExceptionWrapper& ex)
{
if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var))
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "Byte", i);
}
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "Byte", i);
}
}
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<uint8_t>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
____value0_empty = (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)SZArrayNew(Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD_il2cpp_TypeInfo_var, static_cast<uint32_t>(arrayLength));
for (il2cpp_array_size_t i = 0; i < arrayLength; i++)
{
float item = (managedArray)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
try
{
int16_t il2cppRetVal;
il2cppRetVal = Single_System_IConvertible_ToInt16_mBED24FBB9C6465ABAECDC3C894F41B7CF0E6FC6A((&item), NULL, NULL);
(____value0_empty)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), il2cppRetVal);
}
catch (const Il2CppExceptionWrapper& ex)
{
if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var))
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "Int16", i);
}
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "Int16", i);
}
}
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<int16_t>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&UInt16U5BU5D_t42D35C587B07DCDBCFDADF572C6D733AE85B2A67_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
UInt16U5BU5D_t42D35C587B07DCDBCFDADF572C6D733AE85B2A67* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
____value0_empty = (UInt16U5BU5D_t42D35C587B07DCDBCFDADF572C6D733AE85B2A67*)SZArrayNew(UInt16U5BU5D_t42D35C587B07DCDBCFDADF572C6D733AE85B2A67_il2cpp_TypeInfo_var, static_cast<uint32_t>(arrayLength));
for (il2cpp_array_size_t i = 0; i < arrayLength; i++)
{
float item = (managedArray)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
if (item < 0)
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "UInt16", i);
}
try
{
uint16_t il2cppRetVal;
il2cppRetVal = Single_System_IConvertible_ToUInt16_mCBB71CEDC4797B00D50B4417A96EC702076C757A((&item), NULL, NULL);
(____value0_empty)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), il2cppRetVal);
}
catch (const Il2CppExceptionWrapper& ex)
{
if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var))
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "UInt16", i);
}
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "UInt16", i);
}
}
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<uint16_t>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
____value0_empty = (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)SZArrayNew(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32_il2cpp_TypeInfo_var, static_cast<uint32_t>(arrayLength));
for (il2cpp_array_size_t i = 0; i < arrayLength; i++)
{
float item = (managedArray)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
try
{
int32_t il2cppRetVal;
il2cppRetVal = Single_System_IConvertible_ToInt32_mD144638A230B62184C32B38DFFFDF955353F42AC((&item), NULL, NULL);
(____value0_empty)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), il2cppRetVal);
}
catch (const Il2CppExceptionWrapper& ex)
{
if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var))
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "Int32", i);
}
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "Int32", i);
}
}
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<int32_t>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
____value0_empty = (UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF*)SZArrayNew(UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF_il2cpp_TypeInfo_var, static_cast<uint32_t>(arrayLength));
for (il2cpp_array_size_t i = 0; i < arrayLength; i++)
{
float item = (managedArray)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
if (item < 0)
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "UInt32", i);
}
try
{
uint32_t il2cppRetVal;
il2cppRetVal = Single_System_IConvertible_ToUInt32_mF7B0C9FE3652F3FE2E0BDEEC4B90A316099B525E((&item), NULL, NULL);
(____value0_empty)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), il2cppRetVal);
}
catch (const Il2CppExceptionWrapper& ex)
{
if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var))
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "UInt32", i);
}
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "UInt32", i);
}
}
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<uint32_t>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
____value0_empty = (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)SZArrayNew(Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6_il2cpp_TypeInfo_var, static_cast<uint32_t>(arrayLength));
for (il2cpp_array_size_t i = 0; i < arrayLength; i++)
{
float item = (managedArray)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
try
{
int64_t il2cppRetVal;
il2cppRetVal = Single_System_IConvertible_ToInt64_mAC0D1AEA698E9A358F503A77DA9C2873465E7ADC((&item), NULL, NULL);
(____value0_empty)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), il2cppRetVal);
}
catch (const Il2CppExceptionWrapper& ex)
{
if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var))
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "Int64", i);
}
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "Int64", i);
}
}
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<int64_t>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&UInt64U5BU5D_t7C6E32D10F47677C1CEF3C30F4E4CE95B3A633E2_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
UInt64U5BU5D_t7C6E32D10F47677C1CEF3C30F4E4CE95B3A633E2* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
____value0_empty = (UInt64U5BU5D_t7C6E32D10F47677C1CEF3C30F4E4CE95B3A633E2*)SZArrayNew(UInt64U5BU5D_t7C6E32D10F47677C1CEF3C30F4E4CE95B3A633E2_il2cpp_TypeInfo_var, static_cast<uint32_t>(arrayLength));
for (il2cpp_array_size_t i = 0; i < arrayLength; i++)
{
float item = (managedArray)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
if (item < 0)
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "UInt64", i);
}
try
{
uint64_t il2cppRetVal;
il2cppRetVal = Single_System_IConvertible_ToUInt64_m6A235CB0548A46C28B13E14D5F62DEADE7887613((&item), NULL, NULL);
(____value0_empty)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), il2cppRetVal);
}
catch (const Il2CppExceptionWrapper& ex)
{
if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var))
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "UInt64", i);
}
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "UInt64", i);
}
}
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<uint64_t>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* ____value0_empty = NULL;
// Managed method invocation
try
{
____value0_empty = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<float>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
____value0_empty = (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)SZArrayNew(DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB_il2cpp_TypeInfo_var, static_cast<uint32_t>(arrayLength));
for (il2cpp_array_size_t i = 0; i < arrayLength; i++)
{
float item = (managedArray)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
try
{
double il2cppRetVal;
il2cppRetVal = Single_System_IConvertible_ToDouble_m103B0F5DD6C36D37816B2524CCFAB7A60F9781E6((&item), NULL, NULL);
(____value0_empty)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), il2cppRetVal);
}
catch (const Il2CppExceptionWrapper& ex)
{
if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var))
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion(Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, (managedArray)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(i))), "SingleArray", "Single", "Double", i);
}
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "Double", i);
}
}
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<double>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Char16[]");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Boolean[]");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
if (arrayLength > 0)
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "String", 0);
}
____value0_empty = NULL;
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<Il2CppHString>(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
if ((____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i)) == NULL)
{
IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_argument_null_exception("value"), NULL);
}
(*___value0)[i] = il2cpp_codegen_create_hstring((____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i)));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Inspectable[]");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
il2cpp::vm::ScopedThreadAttacher _vmThreadHelper;
// Marshaling of parameter '___value0' to managed representation
GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ____value0_empty = NULL;
// Managed method invocation
try
{
SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA* managedArray = static_cast<SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA*>(GetManagedObjectInline());
il2cpp_array_size_t arrayLength = managedArray->max_length;
if (arrayLength > 0)
{
return il2cpp_codegen_com_handle_invalid_ipropertyarray_conversion("SingleArray", "Single", "Guid", 0);
}
____value0_empty = NULL;
}
catch (const Il2CppExceptionWrapper& ex)
{
String_t* exceptionStr = NULL;
try
{
exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex);
}
catch (const Il2CppExceptionWrapper&)
{
exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
}
il2cpp_codegen_store_exception_info(ex.ex, exceptionStr);
return ex.ex->hresult;
}
// Marshaling of parameter '___value0' back from managed representation
if (____value0_empty != NULL)
{
*___value0ArraySize = static_cast<uint32_t>((____value0_empty)->max_length);
*___value0 = il2cpp_codegen_marshal_allocate_array<Guid_t >(static_cast<int32_t>(*___value0ArraySize));
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(static_cast<int32_t>(*___value0ArraySize)); i++)
{
(*___value0)[i] = (____value0_empty)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i));
}
}
else
{
*___value0ArraySize = 0;
*___value0 = NULL;
}
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "DateTimeOffset[]");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "TimeSpan[]");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Point[]");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Size[]");
}
virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE
{
return il2cpp_codegen_com_handle_invalid_iproperty_conversion("SingleArray", "Rect[]");
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SingleU5BU5D_t47E8DBF5B597C122478D1FFBD9DD57399A0650FA_ComCallableWrapper(obj));
}
// COM Callable Wrapper for SiteOverviewTurbineButton[]
struct SiteOverviewTurbineButtonU5BU5D_t3ACBCC0C5A7D36AFE732F05FFE492AA4B8CCCF5C_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SiteOverviewTurbineButtonU5BU5D_t3ACBCC0C5A7D36AFE732F05FFE492AA4B8CCCF5C_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SiteOverviewTurbineButtonU5BU5D_t3ACBCC0C5A7D36AFE732F05FFE492AA4B8CCCF5C_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SiteOverviewTurbineButtonU5BU5D_t3ACBCC0C5A7D36AFE732F05FFE492AA4B8CCCF5C_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID;
interfaceIds[3] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 4;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1(uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SiteOverviewTurbineButtonU5BU5D_t3ACBCC0C5A7D36AFE732F05FFE492AA4B8CCCF5C(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SiteOverviewTurbineButtonU5BU5D_t3ACBCC0C5A7D36AFE732F05FFE492AA4B8CCCF5C_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SiteOverviewTurbineButtonU5BU5D_t3ACBCC0C5A7D36AFE732F05FFE492AA4B8CCCF5C_ComCallableWrapper(obj));
}
// COM Callable Wrapper for Microsoft.MixedReality.Toolkit.Utilities.Solvers.Solver[]
struct SolverU5BU5D_t7D4E8D7D33AE0E86ADE266E97543F909C6A9D1B6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SolverU5BU5D_t7D4E8D7D33AE0E86ADE266E97543F909C6A9D1B6_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SolverU5BU5D_t7D4E8D7D33AE0E86ADE266E97543F909C6A9D1B6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SolverU5BU5D_t7D4E8D7D33AE0E86ADE266E97543F909C6A9D1B6_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID;
interfaceIds[3] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 4;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1(uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SolverU5BU5D_t7D4E8D7D33AE0E86ADE266E97543F909C6A9D1B6(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SolverU5BU5D_t7D4E8D7D33AE0E86ADE266E97543F909C6A9D1B6_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SolverU5BU5D_t7D4E8D7D33AE0E86ADE266E97543F909C6A9D1B6_ComCallableWrapper(obj));
}
// COM Callable Wrapper for Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject[]
struct SpatialAwarenessMeshObjectU5BU5D_tA94B023FDD95287C601B9EC531C41DA60D5D0C5A_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SpatialAwarenessMeshObjectU5BU5D_tA94B023FDD95287C601B9EC531C41DA60D5D0C5A_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SpatialAwarenessMeshObjectU5BU5D_tA94B023FDD95287C601B9EC531C41DA60D5D0C5A_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SpatialAwarenessMeshObjectU5BU5D_tA94B023FDD95287C601B9EC531C41DA60D5D0C5A_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID;
interfaceIds[3] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 4;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1(uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SpatialAwarenessMeshObjectU5BU5D_tA94B023FDD95287C601B9EC531C41DA60D5D0C5A(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SpatialAwarenessMeshObjectU5BU5D_tA94B023FDD95287C601B9EC531C41DA60D5D0C5A_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SpatialAwarenessMeshObjectU5BU5D_tA94B023FDD95287C601B9EC531C41DA60D5D0C5A_ComCallableWrapper(obj));
}
// COM Callable Wrapper for Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject[]
struct SpatialAwarenessPlanarObjectU5BU5D_t772A69ED777B1C864FC824CA32DA58CA28AC6743_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SpatialAwarenessPlanarObjectU5BU5D_t772A69ED777B1C864FC824CA32DA58CA28AC6743_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SpatialAwarenessPlanarObjectU5BU5D_t772A69ED777B1C864FC824CA32DA58CA28AC6743_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SpatialAwarenessPlanarObjectU5BU5D_t772A69ED777B1C864FC824CA32DA58CA28AC6743_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID;
interfaceIds[3] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 4;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1(uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SpatialAwarenessPlanarObjectU5BU5D_t772A69ED777B1C864FC824CA32DA58CA28AC6743(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SpatialAwarenessPlanarObjectU5BU5D_t772A69ED777B1C864FC824CA32DA58CA28AC6743_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SpatialAwarenessPlanarObjectU5BU5D_t772A69ED777B1C864FC824CA32DA58CA28AC6743_ComCallableWrapper(obj));
}
// COM Callable Wrapper for Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject[]
struct SpatialAwarenessSceneObjectU5BU5D_t6F70086B6848AB4D5DA4B5454581DCEA06A370E3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SpatialAwarenessSceneObjectU5BU5D_t6F70086B6848AB4D5DA4B5454581DCEA06A370E3_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SpatialAwarenessSceneObjectU5BU5D_t6F70086B6848AB4D5DA4B5454581DCEA06A370E3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SpatialAwarenessSceneObjectU5BU5D_t6F70086B6848AB4D5DA4B5454581DCEA06A370E3_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID;
interfaceIds[3] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 4;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1(uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SpatialAwarenessSceneObjectU5BU5D_t6F70086B6848AB4D5DA4B5454581DCEA06A370E3(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SpatialAwarenessSceneObjectU5BU5D_t6F70086B6848AB4D5DA4B5454581DCEA06A370E3_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SpatialAwarenessSceneObjectU5BU5D_t6F70086B6848AB4D5DA4B5454581DCEA06A370E3_ComCallableWrapper(obj));
}
// COM Callable Wrapper for UnityEngine.Sprite[]
struct SpriteU5BU5D_t8DB77E112FFC97B722E701189DCB4059F943FD77_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SpriteU5BU5D_t8DB77E112FFC97B722E701189DCB4059F943FD77_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SpriteU5BU5D_t8DB77E112FFC97B722E701189DCB4059F943FD77_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SpriteU5BU5D_t8DB77E112FFC97B722E701189DCB4059F943FD77_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID;
interfaceIds[3] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 4;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1(uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SpriteU5BU5D_t8DB77E112FFC97B722E701189DCB4059F943FD77(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SpriteU5BU5D_t8DB77E112FFC97B722E701189DCB4059F943FD77_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SpriteU5BU5D_t8DB77E112FFC97B722E701189DCB4059F943FD77_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlBinary[]
struct SqlBinaryU5BU5D_t4A1CD2FDEEC6E9EAEC15A8C28A7701484B8D4485_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlBinaryU5BU5D_t4A1CD2FDEEC6E9EAEC15A8C28A7701484B8D4485_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlBinaryU5BU5D_t4A1CD2FDEEC6E9EAEC15A8C28A7701484B8D4485_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlBinaryU5BU5D_t4A1CD2FDEEC6E9EAEC15A8C28A7701484B8D4485_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlBinaryU5BU5D_t4A1CD2FDEEC6E9EAEC15A8C28A7701484B8D4485(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlBinaryU5BU5D_t4A1CD2FDEEC6E9EAEC15A8C28A7701484B8D4485_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlBinaryU5BU5D_t4A1CD2FDEEC6E9EAEC15A8C28A7701484B8D4485_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlBoolean[]
struct SqlBooleanU5BU5D_t07B79EADC41ED65294851549545D3F3918FDC6A0_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlBooleanU5BU5D_t07B79EADC41ED65294851549545D3F3918FDC6A0_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlBooleanU5BU5D_t07B79EADC41ED65294851549545D3F3918FDC6A0_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlBooleanU5BU5D_t07B79EADC41ED65294851549545D3F3918FDC6A0_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlBooleanU5BU5D_t07B79EADC41ED65294851549545D3F3918FDC6A0(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlBooleanU5BU5D_t07B79EADC41ED65294851549545D3F3918FDC6A0_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlBooleanU5BU5D_t07B79EADC41ED65294851549545D3F3918FDC6A0_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlByte[]
struct SqlByteU5BU5D_tB403A2418F730327A0789B78506CDACCECBB4CB6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlByteU5BU5D_tB403A2418F730327A0789B78506CDACCECBB4CB6_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlByteU5BU5D_tB403A2418F730327A0789B78506CDACCECBB4CB6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlByteU5BU5D_tB403A2418F730327A0789B78506CDACCECBB4CB6_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlByteU5BU5D_tB403A2418F730327A0789B78506CDACCECBB4CB6(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlByteU5BU5D_tB403A2418F730327A0789B78506CDACCECBB4CB6_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlByteU5BU5D_tB403A2418F730327A0789B78506CDACCECBB4CB6_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlBytes[]
struct SqlBytesU5BU5D_t6F60DB18D1E498C69C2A2A292075B88252A47C49_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlBytesU5BU5D_t6F60DB18D1E498C69C2A2A292075B88252A47C49_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlBytesU5BU5D_t6F60DB18D1E498C69C2A2A292075B88252A47C49_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlBytesU5BU5D_t6F60DB18D1E498C69C2A2A292075B88252A47C49_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID;
interfaceIds[3] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 4;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1(uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlBytesU5BU5D_t6F60DB18D1E498C69C2A2A292075B88252A47C49(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlBytesU5BU5D_t6F60DB18D1E498C69C2A2A292075B88252A47C49_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlBytesU5BU5D_t6F60DB18D1E498C69C2A2A292075B88252A47C49_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlChars[]
struct SqlCharsU5BU5D_t20FD646DC66170A3025ACFD16C890584136139FC_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlCharsU5BU5D_t20FD646DC66170A3025ACFD16C890584136139FC_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlCharsU5BU5D_t20FD646DC66170A3025ACFD16C890584136139FC_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlCharsU5BU5D_t20FD646DC66170A3025ACFD16C890584136139FC_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IVectorView_1_t9D427951F2D09C2E6F846759B5273E993F185D4A::IID;
interfaceIds[3] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 4;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetAt_m38CCDDE1E25317AEF5170D9818FC01816AF34260_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_get_Size_m33BC340C458F20A80A8B07FF4764CEF1F5513F8B_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_IndexOf_mFAE432DA0C1902EEF54AB68CFFD3E2182C443F67_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1(uint32_t ___startIndex0, uint32_t ___items1ArraySize, Il2CppIInspectable** ___items1, uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IVectorView_1_GetMany_m6AA46969FB50015EB7107EBCC29E48B7AD4BB6B1_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___startIndex0, ___items1ArraySize, ___items1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlCharsU5BU5D_t20FD646DC66170A3025ACFD16C890584136139FC(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlCharsU5BU5D_t20FD646DC66170A3025ACFD16C890584136139FC_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlCharsU5BU5D_t20FD646DC66170A3025ACFD16C890584136139FC_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlDateTime[]
struct SqlDateTimeU5BU5D_t12EEE5C7616A30E9F9CE304F76B5912B2A47EABF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlDateTimeU5BU5D_t12EEE5C7616A30E9F9CE304F76B5912B2A47EABF_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlDateTimeU5BU5D_t12EEE5C7616A30E9F9CE304F76B5912B2A47EABF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlDateTimeU5BU5D_t12EEE5C7616A30E9F9CE304F76B5912B2A47EABF_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlDateTimeU5BU5D_t12EEE5C7616A30E9F9CE304F76B5912B2A47EABF(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlDateTimeU5BU5D_t12EEE5C7616A30E9F9CE304F76B5912B2A47EABF_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlDateTimeU5BU5D_t12EEE5C7616A30E9F9CE304F76B5912B2A47EABF_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlDecimal[]
struct SqlDecimalU5BU5D_t436F1578CFBAD13111599A27A32FB894D8307CBD_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlDecimalU5BU5D_t436F1578CFBAD13111599A27A32FB894D8307CBD_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlDecimalU5BU5D_t436F1578CFBAD13111599A27A32FB894D8307CBD_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlDecimalU5BU5D_t436F1578CFBAD13111599A27A32FB894D8307CBD_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlDecimalU5BU5D_t436F1578CFBAD13111599A27A32FB894D8307CBD(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlDecimalU5BU5D_t436F1578CFBAD13111599A27A32FB894D8307CBD_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlDecimalU5BU5D_t436F1578CFBAD13111599A27A32FB894D8307CBD_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlDouble[]
struct SqlDoubleU5BU5D_t65F627E3E10E5B61B332C69E3E8180BB1B5C5EA7_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlDoubleU5BU5D_t65F627E3E10E5B61B332C69E3E8180BB1B5C5EA7_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlDoubleU5BU5D_t65F627E3E10E5B61B332C69E3E8180BB1B5C5EA7_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlDoubleU5BU5D_t65F627E3E10E5B61B332C69E3E8180BB1B5C5EA7_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlDoubleU5BU5D_t65F627E3E10E5B61B332C69E3E8180BB1B5C5EA7(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlDoubleU5BU5D_t65F627E3E10E5B61B332C69E3E8180BB1B5C5EA7_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlDoubleU5BU5D_t65F627E3E10E5B61B332C69E3E8180BB1B5C5EA7_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlGuid[]
struct SqlGuidU5BU5D_t7B958D75216823CC6FD381B81133477AFD2DE5E2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlGuidU5BU5D_t7B958D75216823CC6FD381B81133477AFD2DE5E2_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlGuidU5BU5D_t7B958D75216823CC6FD381B81133477AFD2DE5E2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlGuidU5BU5D_t7B958D75216823CC6FD381B81133477AFD2DE5E2_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlGuidU5BU5D_t7B958D75216823CC6FD381B81133477AFD2DE5E2(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlGuidU5BU5D_t7B958D75216823CC6FD381B81133477AFD2DE5E2_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlGuidU5BU5D_t7B958D75216823CC6FD381B81133477AFD2DE5E2_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlInt16[]
struct SqlInt16U5BU5D_tFDBC98064CCDBA5EF1A928770767FF5E428F68B0_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlInt16U5BU5D_tFDBC98064CCDBA5EF1A928770767FF5E428F68B0_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlInt16U5BU5D_tFDBC98064CCDBA5EF1A928770767FF5E428F68B0_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlInt16U5BU5D_tFDBC98064CCDBA5EF1A928770767FF5E428F68B0_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlInt16U5BU5D_tFDBC98064CCDBA5EF1A928770767FF5E428F68B0(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlInt16U5BU5D_tFDBC98064CCDBA5EF1A928770767FF5E428F68B0_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlInt16U5BU5D_tFDBC98064CCDBA5EF1A928770767FF5E428F68B0_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlInt32[]
struct SqlInt32U5BU5D_t4E9A0DCCD18A21ED32AE342EE7288F4722D13002_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlInt32U5BU5D_t4E9A0DCCD18A21ED32AE342EE7288F4722D13002_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlInt32U5BU5D_t4E9A0DCCD18A21ED32AE342EE7288F4722D13002_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlInt32U5BU5D_t4E9A0DCCD18A21ED32AE342EE7288F4722D13002_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlInt32U5BU5D_t4E9A0DCCD18A21ED32AE342EE7288F4722D13002(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlInt32U5BU5D_t4E9A0DCCD18A21ED32AE342EE7288F4722D13002_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlInt32U5BU5D_t4E9A0DCCD18A21ED32AE342EE7288F4722D13002_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlInt64[]
struct SqlInt64U5BU5D_t07215C71C5947E0BE4CF431CB6124BC53ADA28C5_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlInt64U5BU5D_t07215C71C5947E0BE4CF431CB6124BC53ADA28C5_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlInt64U5BU5D_t07215C71C5947E0BE4CF431CB6124BC53ADA28C5_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlInt64U5BU5D_t07215C71C5947E0BE4CF431CB6124BC53ADA28C5_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlInt64U5BU5D_t07215C71C5947E0BE4CF431CB6124BC53ADA28C5(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlInt64U5BU5D_t07215C71C5947E0BE4CF431CB6124BC53ADA28C5_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlInt64U5BU5D_t07215C71C5947E0BE4CF431CB6124BC53ADA28C5_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlMoney[]
struct SqlMoneyU5BU5D_tF5702E9AA3B2D27362711637FFD105D198723C95_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlMoneyU5BU5D_tF5702E9AA3B2D27362711637FFD105D198723C95_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlMoneyU5BU5D_tF5702E9AA3B2D27362711637FFD105D198723C95_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlMoneyU5BU5D_tF5702E9AA3B2D27362711637FFD105D198723C95_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlMoneyU5BU5D_tF5702E9AA3B2D27362711637FFD105D198723C95(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlMoneyU5BU5D_tF5702E9AA3B2D27362711637FFD105D198723C95_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlMoneyU5BU5D_tF5702E9AA3B2D27362711637FFD105D198723C95_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Data.SqlTypes.SqlSingle[]
struct SqlSingleU5BU5D_t2F81D199741A89C70F73D8FAC1385A28379B442F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SqlSingleU5BU5D_t2F81D199741A89C70F73D8FAC1385A28379B442F_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC
{
inline SqlSingleU5BU5D_t2F81D199741A89C70F73D8FAC1385A28379B442F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SqlSingleU5BU5D_t2F81D199741A89C70F73D8FAC1385A28379B442F_ComCallableWrapper>(obj) {}
virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE
{
if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0
|| ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0)
{
*object = GetIdentity();
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIManagedObjectHolder*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IBindableVector_tC070A96258CD93818901E9B7808E1A8EFB64B7EC::IID;
*iidCount = 2;
*iids = interfaceIds;
return IL2CPP_S_OK;
}
virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE
{
return GetRuntimeClassNameImpl(className);
}
virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE
{
return ComObjectBase::GetTrustLevel(trustLevel);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED(uint32_t ___index0, Il2CppIInspectable** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetAt_m33D2170810828C01473D9BDC22745A0354FA4FED_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9(uint32_t* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_get_Size_m45347BCD42A1FE180ED2B377BB9C88C7B50CD7D9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38(IBindableVectorView_tD80A01049DD2609FEA5FACD5E77BF95A875534FA** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_GetView_m9736FE93BC8979E0CBF8ED26090D1FE54C2E1A38_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4(Il2CppIInspectable* ___value0, uint32_t* ___index1, bool* comReturnValue) IL2CPP_OVERRIDE
{
return IBindableVector_IndexOf_m2F1A64750D19C5A03E9B65880F4A04275E6AABF4_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0, ___index1, comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_SetAt_mD4C84EC02EAD7F636873B77E6D48E7132055A213_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5(uint32_t ___index0, Il2CppIInspectable* ___value1) IL2CPP_OVERRIDE
{
return IBindableVector_InsertAt_m19A0C885F7C7A7FFA257A46218D7232317E022B5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0, ___value1);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0(uint32_t ___index0) IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAt_m1AC6E54165809374E91F456B9922A9B24F8652B0_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___index0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F(Il2CppIInspectable* ___value0) IL2CPP_OVERRIDE
{
return IBindableVector_Append_mCA138F8E4026725AC867B607FA63709B6752BB7F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), ___value0);
}
virtual il2cpp_hresult_t STDCALL IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3() IL2CPP_OVERRIDE
{
return IBindableVector_RemoveAtEnd_mB3178911995D4CC7BAC0EA43720C1280267E54E3_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
virtual il2cpp_hresult_t STDCALL IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF() IL2CPP_OVERRIDE
{
return IBindableVector_Clear_mEF05B40EFF6D42CBB5A5E336B0946FECE7A4A6EF_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SqlSingleU5BU5D_t2F81D199741A89C70F73D8FAC1385A28379B442F(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(SqlSingleU5BU5D_t2F81D199741A89C70F73D8FAC1385A28379B442F_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SqlSingleU5BU5D_t2F81D199741A89C70F73D8FAC1385A28379B442F_ComCallableWrapper(obj));
}
| 47.580769
| 600
| 0.841349
|
JBrentJ
|
7a485db2e1678c0e06a1bbfa4a4f9ba6adadb7a9
| 589
|
cpp
|
C++
|
DataStructure/c++/heap/loveBabbarDsSheet/BST-to-Maxheap.cpp
|
subhamengine/DataStructures-and-Algorithm
|
582f2f724a8dd5b42703c9f02d3934a85679c9b7
|
[
"MIT"
] | 17
|
2021-09-13T14:50:29.000Z
|
2022-01-07T10:53:35.000Z
|
DataStructure/c++/heap/loveBabbarDsSheet/BST-to-Maxheap.cpp
|
subhamengine/DataStructures-and-Algorithm
|
582f2f724a8dd5b42703c9f02d3934a85679c9b7
|
[
"MIT"
] | 15
|
2021-10-01T04:13:32.000Z
|
2021-11-05T07:49:55.000Z
|
DataStructure/c++/heap/loveBabbarDsSheet/BST-to-Maxheap.cpp
|
subhamengine/DataStructures-and-Algorithm
|
582f2f724a8dd5b42703c9f02d3934a85679c9b7
|
[
"MIT"
] | 11
|
2021-09-23T14:37:03.000Z
|
2021-11-04T13:22:17.000Z
|
class Solution{
queue<int>q;
public:
void dfs(Node* root){
if(root==NULL)
return;
dfs(root->right);
q.push(root->data); // storing in descending order
dfs(root->left);
}
void solver(Node* root){
if(root==NULL)
return;
int val=q.front();
q.pop();
root->data=val; // putting the values according to defintion of the problem
solver(root->right);
solver(root->left);
}
void convertToMaxHeapUtil(Node* root)
{
dfs(root);
solver(root);
}
| 22.653846
| 83
| 0.519525
|
subhamengine
|
7a53aaf90b9f479f1539dc464d81281928ebccff
| 240
|
cpp
|
C++
|
delete/main.cpp
|
mamil/demo
|
32240d95b80175549e6a1904699363ce672a1591
|
[
"MIT"
] | null | null | null |
delete/main.cpp
|
mamil/demo
|
32240d95b80175549e6a1904699363ce672a1591
|
[
"MIT"
] | null | null | null |
delete/main.cpp
|
mamil/demo
|
32240d95b80175549e6a1904699363ce672a1591
|
[
"MIT"
] | null | null | null |
#include <memory>
#include <iostream>
class Man
{
public:
Man() = default;
// ~Man() = delete; // error: use of deleted function ‘Man::~Man()’
int age;
};
int main()
{
{
auto man = std::make_shared<Man>();
}
}
| 13.333333
| 71
| 0.5375
|
mamil
|
7a5b9ac7204db2f5a306c83e336d67510bbb8faf
| 5,711
|
cc
|
C++
|
testdata/fuzzer_binary.cc
|
DaryaShirokova/lldb-eval
|
114625c28f5aa8fafda4d49d9dbb0e6fd2b16d20
|
[
"Apache-2.0"
] | null | null | null |
testdata/fuzzer_binary.cc
|
DaryaShirokova/lldb-eval
|
114625c28f5aa8fafda4d49d9dbb0e6fd2b16d20
|
[
"Apache-2.0"
] | null | null | null |
testdata/fuzzer_binary.cc
|
DaryaShirokova/lldb-eval
|
114625c28f5aa8fafda4d49d9dbb0e6fd2b16d20
|
[
"Apache-2.0"
] | null | null | null |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <limits>
// This file _must not_ access the file system, since the current directory
// is specified in the fuzzer as just `./`.
class MultiInheritBase1 {
public:
int f1 = 10;
};
class MultiInheritBase2 {
public:
int f2 = 20;
};
class MultiInheritDerived : public MultiInheritBase1, public MultiInheritBase2 {
public:
int f3 = 30;
};
class DeadlyDiamondBase {
public:
int f1 = 10;
};
class DeadlyDiamondDerived1 : public DeadlyDiamondBase {
public:
int f2 = 20;
};
class DeadlyDiamondDerived2 : public DeadlyDiamondBase {
public:
int f3 = 30;
};
class DeadlyDiamondSubclass : public DeadlyDiamondDerived1,
public DeadlyDiamondDerived2 {
public:
int f4 = 40;
};
class VirtualDiamondBase {
public:
int f1 = 10;
};
class VirtualDiamondDerived1 : public virtual VirtualDiamondBase {
public:
int f2 = 20;
};
class VirtualDiamondDerived2 : public virtual VirtualDiamondBase {
public:
int f3 = 30;
};
class VirtualDiamondSubclass : public VirtualDiamondDerived1,
public VirtualDiamondDerived2 {
public:
int f4 = 40;
};
class EmptyBase {};
class NonEmptyBase {
public:
int f2 = 10;
};
struct TestStruct {
float flt_field = 0.5f;
int int_field = 20;
unsigned long long ull_field = -1ull;
char ch_field = '/';
};
union TestUnion {
unsigned int uint_field;
unsigned char ch_field;
};
class NonEmptyDerived : public NonEmptyBase, public EmptyBase {
public:
EmptyBase base;
int f1 = 10;
};
int main() {
auto char_min = std::numeric_limits<char>::min();
auto char_max = std::numeric_limits<char>::max();
(void)char_min, (void)char_max;
auto uchar_min = std::numeric_limits<unsigned char>::min();
auto uchar_max = std::numeric_limits<unsigned char>::max();
(void)uchar_min, (void)uchar_max;
auto schar_min = std::numeric_limits<signed char>::min();
auto schar_max = std::numeric_limits<signed char>::max();
(void)schar_min, (void)schar_max;
auto short_min = std::numeric_limits<short>::min();
auto short_max = std::numeric_limits<short>::max();
(void)short_min, (void)short_max;
auto ushort_min = std::numeric_limits<unsigned short>::min();
auto ushort_max = std::numeric_limits<unsigned short>::max();
(void)ushort_min, (void)ushort_max;
auto int_min = std::numeric_limits<int>::min();
auto int_max = std::numeric_limits<int>::max();
(void)int_min, (void)int_max;
auto uint_min = std::numeric_limits<unsigned int>::min();
auto uint_max = std::numeric_limits<unsigned int>::max();
(void)uint_min, (void)uint_max;
auto long_min = std::numeric_limits<long>::min();
auto long_max = std::numeric_limits<long>::max();
(void)long_min, (void)long_max;
auto ulong_min = std::numeric_limits<unsigned long>::min();
auto ulong_max = std::numeric_limits<unsigned long>::max();
(void)ulong_min, (void)ulong_max;
auto llong_min = std::numeric_limits<long long>::min();
auto llong_max = std::numeric_limits<long long>::max();
(void)llong_min, (void)llong_max;
auto ullong_min = std::numeric_limits<unsigned long long>::min();
auto ullong_max = std::numeric_limits<unsigned long long>::max();
(void)ullong_min, (void)ullong_max;
auto finf = std::numeric_limits<float>::infinity();
auto fnan = std::numeric_limits<float>::quiet_NaN();
auto fsnan = std::numeric_limits<float>::signaling_NaN();
auto fmax = std::numeric_limits<float>::max();
// Smallest positive non-zero float denormal
auto fdenorm = 0x0.1p-145f;
(void)finf, (void)fnan, (void)fsnan, (void)fmax, (void)fdenorm;
auto dinf = std::numeric_limits<double>::infinity();
auto dnan = std::numeric_limits<double>::quiet_NaN();
auto dsnan = std::numeric_limits<double>::signaling_NaN();
auto dmax = std::numeric_limits<double>::max();
// Smallest positive non-zero double denormal
auto ddenorm = 0x0.1p-1070;
(void)dinf, (void)dnan, (void)dsnan, (void)dmax, (void)ddenorm;
auto ldinf = std::numeric_limits<long double>::infinity();
auto ldnan = std::numeric_limits<long double>::quiet_NaN();
auto ldsnan = std::numeric_limits<long double>::signaling_NaN();
auto ldmax = std::numeric_limits<long double>::max();
// Smallest positive non-zero long double denormal
#ifdef _WIN32
// On Win32 `long double` is an alias for `double`.
auto lddenorm = 0x0.1p-1070L;
#else
auto lddenorm = 0x0.1p-16440L;
#endif
(void)ldinf, (void)ldnan, (void)ldsnan, (void)ldmax, (void)lddenorm;
int x = 42;
int* p = &x;
int** q = &p;
int& ref = x;
int* const* const& refp = &p;
(void)x, (void)p, (void)q, (void)ref, (void)refp;
int array2d[3][3] = {{0, 1, 2}, {3, 4, 5}, {6, 7, 8}};
(void)array2d;
MultiInheritDerived multi;
DeadlyDiamondSubclass diamond;
VirtualDiamondSubclass virtual_diamond;
(void)multi, (void)diamond, (void)diamond;
const char* null_char_ptr = nullptr;
const char* test_str = "Hee hee hee";
(void)null_char_ptr, (void)test_str;
NonEmptyDerived empty_base;
(void)empty_base;
TestStruct ts;
TestUnion tu;
tu.uint_field = 65;
(void)ts, (void)tu;
// BREAK HERE
return 0;
}
| 26.938679
| 80
| 0.696726
|
DaryaShirokova
|
7a5e493193012d1eddb6252c4ecdc4ca47989b12
| 824
|
cpp
|
C++
|
841.cpp
|
zfang399/LeetCode-Problems
|
4cb25718a3d1361569f5ee6fde7b4a9a4fde2186
|
[
"MIT"
] | 8
|
2018-10-31T11:00:19.000Z
|
2020-07-31T05:25:06.000Z
|
841.cpp
|
zfang399/LeetCode-Problems
|
4cb25718a3d1361569f5ee6fde7b4a9a4fde2186
|
[
"MIT"
] | null | null | null |
841.cpp
|
zfang399/LeetCode-Problems
|
4cb25718a3d1361569f5ee6fde7b4a9a4fde2186
|
[
"MIT"
] | 2
|
2018-05-31T11:29:22.000Z
|
2019-09-11T06:34:40.000Z
|
class Solution {
public:
bool canVisitAllRooms(vector<vector<int>>& rooms) {
int N = rooms.size();
vector<bool> vis(N, false);
queue<int> tovis;
// start from room #0, until we cannot visit any new room
tovis.push(0);
while(tovis.size()){
int cur_room = tovis.front();
tovis.pop();
// mark as visited
vis[cur_room] = true;
// add the unvisited room to the queue
for(int i = 0; i < rooms[cur_room].size(); i++){
if(vis[rooms[cur_room][i]]) continue;
tovis.push(rooms[cur_room][i]);
vis[rooms[cur_room][i]] = true;
}
}
for(int i = 0; i < N; i++){
if(!vis[i]) return false;
}
return true;
}
};
| 29.428571
| 65
| 0.475728
|
zfang399
|
7a623faa989e4f1123ac07e2c079ecb7ae20b16c
| 81
|
cpp
|
C++
|
src/SystemQ/Tests/TestString.cpp
|
BclEx/GpuStructs
|
b93acb1c7196477d1d023453a75b480f75cdd29a
|
[
"MIT"
] | null | null | null |
src/SystemQ/Tests/TestString.cpp
|
BclEx/GpuStructs
|
b93acb1c7196477d1d023453a75b480f75cdd29a
|
[
"MIT"
] | null | null | null |
src/SystemQ/Tests/TestString.cpp
|
BclEx/GpuStructs
|
b93acb1c7196477d1d023453a75b480f75cdd29a
|
[
"MIT"
] | null | null | null |
#include "..\..\System\System.h"
using namespace Sys;
void TestString()
{
}
| 13.5
| 33
| 0.62963
|
BclEx
|
7a64a80c254b19d758af298820082f7908506da9
| 2,927
|
hpp
|
C++
|
include/yymp/tuple_traits.hpp
|
surrealwaffle/yymp
|
662def34a298bf2992bf429e26bc35605906897b
|
[
"BSL-1.0"
] | 1
|
2020-04-02T12:37:58.000Z
|
2020-04-02T12:37:58.000Z
|
include/yymp/tuple_traits.hpp
|
surrealwaffle/yymp
|
662def34a298bf2992bf429e26bc35605906897b
|
[
"BSL-1.0"
] | null | null | null |
include/yymp/tuple_traits.hpp
|
surrealwaffle/yymp
|
662def34a298bf2992bf429e26bc35605906897b
|
[
"BSL-1.0"
] | 1
|
2018-11-22T10:36:37.000Z
|
2018-11-22T10:36:37.000Z
|
// SPDX-License-Identifier: BSL-1.0
#ifndef YYMP_TUPLE_TRAITS_HPP
#define YYMP_TUPLE_TRAITS_HPP
#include <type_traits>
#include <utility>
#include <yymp/dtl/piecewise_reinitializable.hpp>
namespace yymp
{
/**
* \brief Determines if all the element types of a \a Tuple have a
* constructor that accepts the elements extracted from a \a Tuple,
* as if synthesized by `std::declval<Tuple>()`.
*/
template<typename Tuple>
struct is_piecewise_reinitializable
: ::yymp::dtl::tuple_traits::is_piecewise_reinitializable<
Tuple
> { };
/**
* \brief Determines if all the element types of a \a Tuple have a
* constructor that accepts the elements extracted from a \a Tuple,
* as if synthesized by `std::declval<Tuple>()`, which is known to
* not throw any exceptions.
*/
template<typename Tuple>
struct is_piecewise_nothrow_reinitializable
: ::yymp::dtl::tuple_traits::is_piecewise_nothrow_reinitializable<
Tuple
> { };
/**
* \brief Constraint for #is_piecewise_reinitializable.
*/
template<typename Tuple>
concept piecewise_reinitializable
= is_piecewise_reinitializable<Tuple>::value;
/**
* \brief Constraint for #is_piecewise_nothrow_reinitializable.
*/
template<typename Tuple>
concept piecewise_nothrow_reinitializable
= is_piecewise_nothrow_reinitializable<Tuple>::value;
// =========================================================================
// The following specializations provide massive improvements in compile
// times when used in certain pathological cases.
// These specializations drastically reduce the quadratic term involved in
// many chained stuple_cats.
template<typename... Types>
struct is_piecewise_reinitializable<const stuple<Types...>&>
: ::std::is_copy_constructible<stuple<Types...>>::type { };
template<typename... Types>
struct is_piecewise_reinitializable<stuple<Types...>&&>
: ::std::is_move_constructible<stuple<Types...>>::type { };
template<typename... Types>
struct is_piecewise_reinitializable<stuple<Types...>>
: ::std::is_move_constructible<stuple<Types...>>::type { };
template<typename... Types>
struct is_piecewise_nothrow_reinitializable<const stuple<Types...>&>
: ::std::is_nothrow_copy_constructible<stuple<Types...>>::type { };
template<typename... Types>
struct is_piecewise_nothrow_reinitializable<stuple<Types...>&&>
: ::std::is_nothrow_move_constructible<stuple<Types...>>::type { };
template<typename... Types>
struct is_piecewise_nothrow_reinitializable<stuple<Types...>>
: ::std::is_nothrow_move_constructible<stuple<Types...>>::type { };
}
#endif // YYMP_TUPLE_TRAITS_HPP
| 36.135802
| 80
| 0.648446
|
surrealwaffle
|
7a64f04ef2624374202d9ca9d502f5ef86067df8
| 2,533
|
cpp
|
C++
|
firmware/remote_logger/src/envsensor.cpp
|
oxullo/envlogger
|
736efd5dfe74fd62bc3ae18a04f73dbf5c4402cf
|
[
"MIT"
] | null | null | null |
firmware/remote_logger/src/envsensor.cpp
|
oxullo/envlogger
|
736efd5dfe74fd62bc3ae18a04f73dbf5c4402cf
|
[
"MIT"
] | null | null | null |
firmware/remote_logger/src/envsensor.cpp
|
oxullo/envlogger
|
736efd5dfe74fd62bc3ae18a04f73dbf5c4402cf
|
[
"MIT"
] | null | null | null |
// Copyright (c) 2020 OXullo Intersecans <x@brainrapers.org>
//
// 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 <stdint.h>
#include <Adafruit_BME680.h>
#include "envsensor.h"
const uint8_t BME680_I2C_ADDRESS = 0x76;
Adafruit_BME680 bme;
void envsensor_init(bool init_vco)
{
while (!bme.begin(BME680_I2C_ADDRESS)) {
Serial.println("Could not find a valid BME680 sensor, check wiring!");
delay(1000);
}
// Slowest filtering, reducing jitters
bme.setTemperatureOversampling(BME680_OS_16X);
bme.setHumidityOversampling(BME680_OS_16X);
bme.setPressureOversampling(BME680_OS_16X);
bme.setIIRFilterSize(BME680_FILTER_SIZE_127);
if (init_vco) {
bme.setGasHeater(320, 150); // 320*C for 150 ms
} else {
bme.setGasHeater(0, 0); // Disable VOC sampling
}
}
void envsensor_update()
{
if (!bme.performReading()) {
Serial.println("BME680: Failed to perform reading");
return;
}
}
void envsensor_dump()
{
String s;
s += "BME680: Ta=" + String(bme.temperature);
s += "C Pa=" + String(bme.pressure / 100.0);
s += "hPa RH=" + String(bme.humidity);
s += "% VCOR=" + String(bme.gas_resistance / 1000.0) + "kOhm";
Serial.println(s);
}
float envsensor_get_ta()
{
return bme.temperature;
}
float envsensor_get_pa()
{
return bme.pressure / 100.0;
}
float envsensor_get_rh()
{
return bme.humidity;
}
float envsensor_get_vocr()
{
return bme.gas_resistance / 1000.0;
}
| 27.532609
| 81
| 0.705488
|
oxullo
|
7a6676d207ea7e25a296d3e59a3aa340d66d3755
| 2,319
|
cpp
|
C++
|
src/c++/test-blackbox/test_grm.cpp
|
vb-wayne/paragraph
|
3f6f6f7a2a3ac209c7dbb21487ca4d9eaed5c14c
|
[
"Apache-2.0"
] | 111
|
2017-11-24T18:22:50.000Z
|
2022-02-25T07:55:31.000Z
|
src/c++/test-blackbox/test_grm.cpp
|
vb-wayne/paragraph
|
3f6f6f7a2a3ac209c7dbb21487ca4d9eaed5c14c
|
[
"Apache-2.0"
] | 61
|
2018-01-01T19:58:06.000Z
|
2022-03-09T12:01:17.000Z
|
src/c++/test-blackbox/test_grm.cpp
|
vb-wayne/paragraph
|
3f6f6f7a2a3ac209c7dbb21487ca4d9eaed5c14c
|
[
"Apache-2.0"
] | 30
|
2018-03-01T04:41:15.000Z
|
2022-03-11T14:52:03.000Z
|
// -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Paragraph
// Copyright (c) 2016-2019 Illumina, Inc.
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied
// See the License for the specific language governing permissions and limitations
//
//
#include "gtest/gtest.h"
#include <iostream>
#include <sstream>
#include <string>
#include "common.hh"
#include "common/BamReader.hh"
#include "grmpy/AlignSamples.hh"
#include "grmpy/CountAndGenotype.hh"
#include "grmpy/Parameters.hh"
#include "json/json.h"
TEST(Grmpy, GenotypesSingleSwap)
{
std::string graph_path
= g_testenv->getBasePath() + "/../share/test-data/paragraph/long-del/chrX_graph_typing.2sample.json";
std::string reference_path
= g_testenv->getBasePath() + "/../share/test-data/paragraph/long-del/chrX_graph_typing.fa";
std::string manifest_path
= g_testenv->getBasePath() + "/../share/test-data/paragraph/long-del/chrX_graph_typing.manifest";
std::string genotype_parameter_path
= g_testenv->getBasePath() + "/../share/test-data/paragraph/long-del/param.json";
grmpy::Parameters parameters;
genotyping::Samples samples = genotyping::loadManifest(manifest_path);
for (auto& sample : samples)
{
common::BamReader reader(sample.filename(), sample.index_filename(), reference_path);
alignSingleSample(parameters, graph_path, reference_path, reader, sample);
}
const Json::Value genotype = grmpy::countAndGenotype(graph_path, reference_path, genotype_parameter_path, samples);
std::stringstream out_stream;
out_stream << genotype;
std::istream* json_stream = &out_stream;
Json::Value result;
(*json_stream) >> result;
EXPECT_EQ("REF", result["samples"]["SAMPLE1"]["gt"]["GT"].asString());
EXPECT_EQ("REF/REF", result["samples"]["SAMPLE2"]["gt"]["GT"].asString());
std::cout << out_stream.str() << std::endl;
}
| 34.61194
| 119
| 0.70332
|
vb-wayne
|
7a717471d064720669aca5be2b84a34764adc364
| 1,725
|
cpp
|
C++
|
Visual Mercutio/zModel/PSS_SymbolObserverMsg.cpp
|
Jeanmilost/Visual-Mercutio
|
f079730005b6ce93d5e184bb7c0893ccced3e3ab
|
[
"MIT"
] | 1
|
2022-01-31T06:24:24.000Z
|
2022-01-31T06:24:24.000Z
|
Visual Mercutio/zModel/PSS_SymbolObserverMsg.cpp
|
Jeanmilost/Visual-Mercutio
|
f079730005b6ce93d5e184bb7c0893ccced3e3ab
|
[
"MIT"
] | 2
|
2021-04-11T15:50:42.000Z
|
2021-06-05T08:23:04.000Z
|
Visual Mercutio/zModel/PSS_SymbolObserverMsg.cpp
|
Jeanmilost/Visual-Mercutio
|
f079730005b6ce93d5e184bb7c0893ccced3e3ab
|
[
"MIT"
] | 2
|
2021-01-08T00:55:18.000Z
|
2022-01-31T06:24:18.000Z
|
/****************************************************************************
* ==> PSS_SymbolObserverMsg -----------------------------------------------*
****************************************************************************
* Description : Provides a symbol observer message *
* Developer : Processsoft *
****************************************************************************/
#include "stdafx.h"
#include "PSS_SymbolObserverMsg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#define new DEBUG_NEW
#endif
//---------------------------------------------------------------------------
// Dynamic creation
//---------------------------------------------------------------------------
IMPLEMENT_DYNAMIC(PSS_SymbolObserverMsg, PSS_ObserverMsg)
//---------------------------------------------------------------------------
// PSS_SymbolObserverMsg
//---------------------------------------------------------------------------
PSS_SymbolObserverMsg::PSS_SymbolObserverMsg(IEActionType actionType, CODComponent* pElement) :
PSS_ObserverMsg(),
m_pElement(pElement),
m_ActionType(actionType),
m_SymbolRef(-1)
{}
//---------------------------------------------------------------------------
PSS_SymbolObserverMsg::PSS_SymbolObserverMsg(int symbolRef, IEActionType actionType) :
PSS_ObserverMsg(),
m_pElement(NULL),
m_ActionType(actionType),
m_SymbolRef(symbolRef)
{}
//---------------------------------------------------------------------------
PSS_SymbolObserverMsg::~PSS_SymbolObserverMsg()
{}
//---------------------------------------------------------------------------
| 42.073171
| 95
| 0.364638
|
Jeanmilost
|
7a72a854df113bfab1fc07c9d37e2fe616621124
| 4,648
|
cp
|
C++
|
Win32/Sources/Application/Search/CSearchBase.cp
|
mulberry-mail/mulberry4-client
|
cdaae15c51dd759110b4fbdb2063d0e3d5202103
|
[
"ECL-2.0",
"Apache-2.0"
] | 12
|
2015-04-21T16:10:43.000Z
|
2021-11-05T13:41:46.000Z
|
Win32/Sources/Application/Search/CSearchBase.cp
|
mulberry-mail/mulberry4-client
|
cdaae15c51dd759110b4fbdb2063d0e3d5202103
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2015-11-02T13:32:11.000Z
|
2019-07-10T21:11:21.000Z
|
Win32/Sources/Application/Search/CSearchBase.cp
|
mulberry-mail/mulberry4-client
|
cdaae15c51dd759110b4fbdb2063d0e3d5202103
|
[
"ECL-2.0",
"Apache-2.0"
] | 6
|
2015-01-12T08:49:12.000Z
|
2021-03-27T09:11:10.000Z
|
/*
Copyright (c) 2007 Cyrus Daboo. 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.
*/
// CSearchBase.cp : implementation of the CSearchBase class
//
#include "CSearchBase.h"
#include "CGrayBorder.h"
#include "CMulberryCommon.h"
#include "CSearchCriteriaContainer.h"
/////////////////////////////////////////////////////////////////////////////
// CSearchBase
/////////////////////////////////////////////////////////////////////////////
// CSearchBase construction/destruction
CSearchBase::CSearchBase(bool rules)
{
mRules = rules;
mGroupItems = NULL;
mFilterType = CFilterItem::eLocal;
}
CSearchBase::~CSearchBase()
{
// Always delete criteria items
delete mGroupItems;
}
// Respond to list changes
void CSearchBase::ListenTo_Message(long msg, void* param)
{
// For time being reset entire menu
switch(msg)
{
case CSearchCriteriaContainer::eBroadcast_SearchCriteriaContainerResized:
// Change the size of this one
Resized(*reinterpret_cast<unsigned long*>(param));
break;
default:;
}
}
// Activate search item
void CSearchBase::DoActivate()
{
// Active first criteria that wants to acticate
//if (mGroupItems)
// mGroupItems->DoActivate();
}
void CSearchBase::OnMore()
{
AddCriteria();
}
void CSearchBase::OnFewer()
{
RemoveCriteria();
}
void CSearchBase::OnClear()
{
// Remove all
while(mGroupItems->GetCount() > 0)
RemoveCriteria();
// Reset the first one
AddCriteria();
}
#pragma mark ____________________________Criteria Panels
const int cCriteriaPanelHeight = 46;
const int cCriteriaPanelWidth = 460;
const int cCriteriaHOffset = 4;
const int cCriteriaVInitOffset = 14;
void CSearchBase::MakeGroup()
{
if (mGroupItems != NULL)
return;
mGroupItems = new CSearchCriteriaContainer;
CRect gsize;
gsize.left = cCriteriaHOffset;
gsize.right = gsize.left + cCriteriaPanelWidth;
gsize.top = cCriteriaVInitOffset;
gsize.bottom = gsize.top + cCriteriaPanelHeight;
mGroupItems->SetTopLevel();
mGroupItems->SetRules(mRules);
mGroupItems->Create(gsize, GetContainerWnd());
mGroupItems->InitGroup(mFilterType, NULL);
static_cast<CGrayBorder*>(GetContainerWnd())->AddAlignment(new CWndAlignment(mGroupItems, CWndAlignment::eAlign_TopWidth));
// Get size after init'ing the group
mGroupItems->GetWindowRect(gsize);
// Set group width based on parent
CRect size;
GetContainerWnd()->GetWindowRect(size);
::ResizeWindowBy(mGroupItems, size.Width() - 2 * cCriteriaHOffset - gsize.Width(), 0, false);
// Increase the size of this one
Resized(gsize.Height());
// Position new sub-panel
mGroupItems->ShowWindow(SW_SHOW);
mGroupItems->Add_Listener(this);
}
void CSearchBase::InitCriteria(const CSearchItem* spec)
{
// Always make the group - it will only be done if not done already
MakeGroup();
// Pass to the group
RemoveAllCriteria();
mGroupItems->InitCriteria(spec);
// Do button state
if (mGroupItems->GetCount() > 1)
GetFewerBtn()->ShowWindow(SW_SHOW);
}
void CSearchBase::AddCriteria(const CSearchItem* spec, bool use_or)
{
// Pass to the group
if (mGroupItems)
mGroupItems->AddCriteria(spec, use_or);
// Do button state
if (mGroupItems->GetCount() > 1)
GetFewerBtn()->ShowWindow(SW_SHOW);
}
void CSearchBase::RemoveCriteria()
{
// Pass to the group
if (mGroupItems)
mGroupItems->RemoveCriteria();
// Do button state
if (mGroupItems->GetCount() < 2)
GetFewerBtn()->ShowWindow(SW_HIDE);
}
void CSearchBase::RemoveAllCriteria()
{
// Remove all
if (mGroupItems)
{
while(mGroupItems->GetCount() > 0)
RemoveCriteria();
}
// Do button state
GetFewerBtn()->ShowWindow(SW_HIDE);
}
void CSearchBase::SelectNextCriteria(CSearchCriteria* previous)
{
// Pass to the group
if (mGroupItems)
mGroupItems->SelectNextCriteria(previous);
}
#pragma mark ____________________________Build Search
CSearchItem* CSearchBase::ConstructSearch() const
{
// Pass to the group
return mGroupItems->ConstructSearch();
}
| 24.335079
| 125
| 0.68395
|
mulberry-mail
|
7a7b9a40f3d5ad192a99cd40f36478213ba5e945
| 1,166
|
cpp
|
C++
|
4-Array/06.cpp
|
chshzhe/CppReference
|
f67c50696ad0f4874f23659cab72f25ca989f614
|
[
"Unlicense"
] | 4
|
2021-12-03T06:26:06.000Z
|
2022-01-15T12:15:23.000Z
|
4-Array/06.cpp
|
chshzhe/CppReference
|
f67c50696ad0f4874f23659cab72f25ca989f614
|
[
"Unlicense"
] | null | null | null |
4-Array/06.cpp
|
chshzhe/CppReference
|
f67c50696ad0f4874f23659cab72f25ca989f614
|
[
"Unlicense"
] | null | null | null |
#include <iostream>
using namespace std;
int main()
{
int B;
cin >> B;
for (int i = 1; i <= 200; i++)
{
int temp = i * i;
int top = 0;
int a[20];
while (temp)
{
a[top++] = temp % B;
temp /= B;
}
bool flag = true;
for (int j = 0; j < top; j++)
{
if (a[j] != a[top - 1 - j])
{
flag = false;
break;
}
}
if (flag)
{
int temp = i;
int top_2 = 0;
int b[20];
while (temp)
{
b[top_2++] = temp % B;
temp /= B;
}
for (int j = top_2 - 1; j >= 0; j--)
if (b[j] < 10)
cout << b[j];
else
cout << char(b[j] - 10 + 'A');
cout
<< ' ';
for (int j = top - 1; j >= 0; j--)
if (a[j] < 10)
cout << a[j];
else
cout << char(a[j] - 10 + 'A');
cout << endl;
}
}
}
| 22.423077
| 50
| 0.264151
|
chshzhe
|
7a7b9e35307bee0c3702690909989691ff8058f8
| 438
|
hpp
|
C++
|
src/libs/input/bound/keyboard_button_binding.hpp
|
jdmclark/gorc
|
a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8
|
[
"Apache-2.0"
] | 97
|
2015-02-24T05:09:24.000Z
|
2022-01-23T12:08:22.000Z
|
src/libs/input/bound/keyboard_button_binding.hpp
|
annnoo/gorc
|
1889b4de6380c30af6c58a8af60ecd9c816db91d
|
[
"Apache-2.0"
] | 8
|
2015-03-27T23:03:23.000Z
|
2020-12-21T02:34:33.000Z
|
src/libs/input/bound/keyboard_button_binding.hpp
|
annnoo/gorc
|
1889b4de6380c30af6c58a8af60ecd9c816db91d
|
[
"Apache-2.0"
] | 10
|
2016-03-24T14:32:50.000Z
|
2021-11-13T02:38:53.000Z
|
#pragma once
#include "input_binding.hpp"
#include "button_bindable_command.hpp"
namespace gorc {
class keyboard_button_binding : public input_binding {
private:
keyboard_key bound_key;
button_bindable_command &command;
public:
keyboard_button_binding(button_bindable_command &command, keyboard_key bound_key);
virtual void handle_keyboard_input(time_delta, keyboard&) override;
};
}
| 21.9
| 90
| 0.73516
|
jdmclark
|
7a8652c4bc66d131a5e3809f07d917a863f956fd
| 3,675
|
cpp
|
C++
|
src/Source/DxbcContainer.cpp
|
tgjones/slimshader-cpp
|
a1833e2eccf32cccfe33aa7613772503eca963ee
|
[
"MIT"
] | 20
|
2015-03-29T02:14:03.000Z
|
2021-11-14T12:27:02.000Z
|
src/Source/DxbcContainer.cpp
|
tgjones/slimshader-cpp
|
a1833e2eccf32cccfe33aa7613772503eca963ee
|
[
"MIT"
] | null | null | null |
src/Source/DxbcContainer.cpp
|
tgjones/slimshader-cpp
|
a1833e2eccf32cccfe33aa7613772503eca963ee
|
[
"MIT"
] | 12
|
2015-05-04T06:39:10.000Z
|
2022-02-23T06:48:04.000Z
|
#include "PCH.h"
#include "DxbcContainer.h"
#include "DxbcChunk.h"
#include "InputSignatureChunk.h"
#include "InterfacesChunk.h"
#include "OutputSignatureChunk.h"
#include "PatchConstantSignatureChunk.h"
#include "ResourceDefinitionChunk.h"
#include "ShaderProgramChunk.h"
#include "StatisticsChunk.h"
using namespace boolinq;
using namespace std;
using namespace SlimShader;
DxbcContainer DxbcContainer::Parse(const vector<char> bytes)
{
const uint8_t* bytesPointer = reinterpret_cast<const uint8_t*>(&bytes[0]);
return Parse(BytecodeReader(bytesPointer, bytes.size()));
}
DxbcContainer DxbcContainer::Parse(BytecodeReader& reader)
{
DxbcContainer container;
BytecodeReader headerReader(reader);
container._header = DxbcContainerHeader::Parse(headerReader);
for (uint32_t i = 0; i < container._header.GetChunkCount(); i++)
{
auto chunkOffset = headerReader.ReadUInt32();
auto chunkReader = reader.CopyAtOffset(chunkOffset);
container._chunks.push_back(DxbcChunk::Parse(chunkReader, container));
}
return container;
}
template <class T>
const shared_ptr<T> FindChunk(vector<shared_ptr<DxbcChunk>> chunks, ChunkType type1, ChunkType type2 = ChunkType::Unknown)
{
// Not quite as nice as chunks.OfType<ResourceDefinitionChunk>().FirstOrDefault(), but never mind...
auto matchingChunks = from(chunks)
.where([type1, type2](shared_ptr<DxbcChunk> chunk) { return chunk->GetChunkType() == type1 || chunk->GetChunkType() == type2; })
.toVector();
if (!matchingChunks.empty())
return dynamic_pointer_cast<T>(matchingChunks[0]);
return nullptr;
}
const shared_ptr<ResourceDefinitionChunk> DxbcContainer::GetResourceDefinition() const
{
return FindChunk<ResourceDefinitionChunk>(_chunks, ChunkType::Rdef);
}
const std::shared_ptr<PatchConstantSignatureChunk> DxbcContainer::GetPatchConstantSignature() const
{
return FindChunk<PatchConstantSignatureChunk>(_chunks, ChunkType::Pcsg);
}
const std::shared_ptr<InputSignatureChunk> DxbcContainer::GetInputSignature() const
{
return FindChunk<InputSignatureChunk>(_chunks, ChunkType::Isgn);
}
const std::shared_ptr<OutputSignatureChunk> DxbcContainer::GetOutputSignature() const
{
return FindChunk<OutputSignatureChunk>(_chunks, ChunkType::Osgn, ChunkType::Osg5);
}
const std::shared_ptr<ShaderProgramChunk> DxbcContainer::GetShader() const
{
return FindChunk<ShaderProgramChunk>(_chunks, ChunkType::Shdr, ChunkType::Shex);
}
const std::shared_ptr<StatisticsChunk> DxbcContainer::GetStatistics() const
{
return FindChunk<StatisticsChunk>(_chunks, ChunkType::Stat);
}
const std::shared_ptr<InterfacesChunk> DxbcContainer::GetInterfaces() const
{
return FindChunk<InterfacesChunk>(_chunks, ChunkType::Ifce);
}
ostream& SlimShader::operator<<(ostream &out, const DxbcContainer &container)
{
out << "// " << endl;
out << "// Generated by SlimShader" << endl;
out << "// " << endl;
out << "// " << endl;
out << "// " << endl;
out << "//" << endl;
out << "//" << endl;
if (container.GetResourceDefinition() != nullptr)
out << *container.GetResourceDefinition();
out << "//" << endl;
if (container.GetPatchConstantSignature() != nullptr)
{
out << *container.GetPatchConstantSignature();
out << "//" << endl;
}
out << *container.GetInputSignature();
out << "//" << endl;
out << *container.GetOutputSignature();
if (container.GetStatistics() != nullptr)
out << *container.GetStatistics();
if (container.GetInterfaces() != nullptr)
out << *container.GetInterfaces();
if (container.GetShader() != nullptr)
out << *container.GetShader();
out << "// Approximately " << container.GetStatistics()->GetInstructionCount() << " instruction slots used";
return out;
}
| 29.166667
| 130
| 0.742041
|
tgjones
|
185332dd40e3656bccc9b216e5b36d096882b5ad
| 473
|
cpp
|
C++
|
cpp14faqs/code/c++14/product_vector3.cpp
|
ancientscience/ancientscience.github.io
|
2c8e3c6a8017164fd86fabaaa3343257cea54405
|
[
"MIT"
] | null | null | null |
cpp14faqs/code/c++14/product_vector3.cpp
|
ancientscience/ancientscience.github.io
|
2c8e3c6a8017164fd86fabaaa3343257cea54405
|
[
"MIT"
] | null | null | null |
cpp14faqs/code/c++14/product_vector3.cpp
|
ancientscience/ancientscience.github.io
|
2c8e3c6a8017164fd86fabaaa3343257cea54405
|
[
"MIT"
] | null | null | null |
#include <vector>
#include <algorithm>
#include <iostream>
constexpr struct
{
template< class X, class Y >
auto operator () ( X x, Y y )
-> decltype(x*y)
{
return x * y;
}
} multOp{};
int main()
{
std::vector<int> v{1, 2, 3, 4, 5};
auto prod =
std::accumulate(v.begin(), v.end(),
1,
multOp
);
std::cout << "product : " << prod << std::endl;
}
| 18.192308
| 51
| 0.437632
|
ancientscience
|
185775db6e36148ae69ca118bcc60ec1aad7f6b7
| 2,430
|
cpp
|
C++
|
Week02/src/Graph.cpp
|
exp-3/ArtificialIntelligence
|
7edb258a00998181426906c9276afe09ce91ad9d
|
[
"MIT"
] | null | null | null |
Week02/src/Graph.cpp
|
exp-3/ArtificialIntelligence
|
7edb258a00998181426906c9276afe09ce91ad9d
|
[
"MIT"
] | null | null | null |
Week02/src/Graph.cpp
|
exp-3/ArtificialIntelligence
|
7edb258a00998181426906c9276afe09ce91ad9d
|
[
"MIT"
] | null | null | null |
#include "Graph.hpp"
#include <random>
#include <iostream>
Graph::Graph() {
;
}
void Graph::set(vector<Point> &virtices, vector<vector<int>> &adjacency) {
Graph::virtices_num = virtices.size();
Graph::virtices = virtices;
Graph::adjacency = adjacency;
}
void Graph::set_random(int virtices_num) {
Graph::virtices_num = virtices_num;
virtices.resize(virtices_num);
adjacency = vector<vector<int>>(virtices_num, vector<int>(virtices_num, 0));
random_device seed_gen;
default_random_engine engine(seed_gen());
uniform_real_distribution<> dist(-1, 1);
for(int i = 0; i < virtices_num; i++) {
virtices[i].x = dist(engine);
virtices[i].y = dist(engine);
}
// ドロネー三角分割による平面グラフと隣接行列の生成
double epsilon = 1e-6;
for(int i = 0; i < virtices_num - 2; i++) {
Point v1 = virtices[i];
for(int j = i + 1; j < virtices_num - 1; j++) {
Point v2 = virtices[j];
for(int k = j + 1; k < virtices_num; k++) {
Point v3 = virtices[k];
double tmp = 2.0*((v2.x-v1.x)*(v3.y-v1.y)-(v2.y-v1.y)*(v3.x-v1.x));
Point center = {((v3.y-v1.y)*(v2.x*v2.x-v1.x*v1.x+v2.y*v2.y-v1.y*v1.y)+
(v1.y-v2.y)*(v3.x*v3.x-v1.x*v1.x+v3.y*v3.y-v1.y*v1.y))/tmp,
((v1.x-v3.x)*(v2.x*v2.x-v1.x*v1.x+v2.y*v2.y-v1.y*v1.y)+
(v2.x-v1.x)*(v3.x*v3.x-v1.x*v1.x+v3.y*v3.y-v1.y*v1.y))/tmp};
double r = center.distance(v1) - epsilon;
bool flag = true;
for(int l = 0; l < virtices_num; l++) {
if(center.distance(virtices[l]) < r) {
flag = false;
break;
}
}
if(flag) {
adjacency[i][j] = 1;
adjacency[i][k] = 1;
adjacency[j][k] = 1;
adjacency[j][i] = 1;
adjacency[k][i] = 1;
adjacency[k][j] = 1;
}
}
}
}
cout << "==== virtices ====" << endl;
for(int i = 0; i < virtices_num; i++) {
cout << "(" << virtices[i].x << ", " << virtices[i].y << ")" << endl;
}
cout << endl;
cout << "==== adjacency ====" << endl;
for(int i = 0; i < virtices_num; i++) {
cout << adjacency[i][0];
for(int j = 0; j < virtices_num; j++) {
cout << ", " << adjacency[i][j];
}
cout << endl;
}
}
int Graph::get_virtices_num() {
return virtices_num;
}
Point &Graph::get_virtex(int virtex_id) {
return virtices[virtex_id];
}
int Graph::get_adjacency(int m, int n) {
return adjacency[m][n];
}
| 25.851064
| 79
| 0.537037
|
exp-3
|
1857ad89bf1290ff8d86c8522e191f543c622fcd
| 4,643
|
cpp
|
C++
|
CanadianExperience/CanadianExperience/CanadianExperience/HeadTop.cpp
|
NicholsTyler/cse_335
|
b8a46522c15a9881cb681ae94b4a5f737817b05e
|
[
"MIT"
] | null | null | null |
CanadianExperience/CanadianExperience/CanadianExperience/HeadTop.cpp
|
NicholsTyler/cse_335
|
b8a46522c15a9881cb681ae94b4a5f737817b05e
|
[
"MIT"
] | null | null | null |
CanadianExperience/CanadianExperience/CanadianExperience/HeadTop.cpp
|
NicholsTyler/cse_335
|
b8a46522c15a9881cb681ae94b4a5f737817b05e
|
[
"MIT"
] | null | null | null |
#include "pch.h"
#include "HeadTop.h"
#include "Actor.h"
#include "Timeline.h"
#include <sstream>
#include <iomanip>
using namespace Gdiplus;
using namespace std;
/// Constant ratio to convert radians to degrees
const double RtoD = 57.295779513;
/** Constructor for a top of the head object
* \param name The drawable name to use
* \param filename The filename for the image to use
*/
CHeadTop::CHeadTop(const std::wstring &name, const std::wstring &filename) : CImageDrawable(name, filename)
{
}
/**
* Destructor
*/
CHeadTop::~CHeadTop()
{
}
/**
* Set the actor. This is where we set the channel name
* \param actor Actor to set
*/
void CHeadTop::SetActor(CActor *actor)
{
CImageDrawable::SetActor(actor);
// Set the channel name
mPositionChannel.SetName(actor->GetName() + L":" + GetName() + L":position");
}
/**
* Set the timeline. The tells the channel the timeline
* \param timeline Timeline to set
*/
void CHeadTop::SetTimeline(CTimeline *timeline)
{
CImageDrawable::SetTimeline(timeline);
timeline->AddChannel(&mPositionChannel);
}
/** Set the keyframe based on the current status.
*/
void CHeadTop::SetKeyframe()
{
CImageDrawable::SetKeyframe();
mPositionChannel.SetKeyframe(GetPosition());
}
/** Get the current channel from the animation system.
*/
void CHeadTop::GetKeyframe()
{
CImageDrawable::GetKeyframe();
if (mPositionChannel.IsValid())
SetPosition(mPositionChannel.GetPoint());
}
/**
* Draw the head
* \param graphics Graphics context to draw on
*/
void CHeadTop::Draw(Gdiplus::Graphics *graphics)
{
CImageDrawable::Draw(graphics);
// Distance horizontally from each eye center to the center
int d2 = mInterocularDistance / 2;
// Compute a left and right eye center X location
int rightX = mEyesCenter.X - d2;
int leftX = mEyesCenter.X + d2;
// Eye center Y value
int eyeY = mEyesCenter.Y;
DrawEyebrow(graphics, Point(rightX - 10, eyeY - 16), Point(rightX + 4, eyeY - 18));
DrawEyebrow(graphics, Point(leftX - 4, eyeY - 20), Point(leftX + 9, eyeY - 18));
if (mLeftEye.IsLoaded() && mRightEye.IsLoaded())
{
// Determine the point on the screen were we will draw the left eye
Point leye = TransformPoint(Point(leftX, eyeY));
// And draw the bitmap there
mLeftEye.DrawImage(graphics, leye, mPlacedR);
// Repeat the process for the right eye.
Point reye = TransformPoint(Point(rightX, eyeY));
mRightEye.DrawImage(graphics, reye, mPlacedR);
}
else
{
DrawEye(graphics, Point(leftX, eyeY));
DrawEye(graphics, Point(rightX, eyeY));
}
//SolidBrush brush(Color::Black);
//FontFamily fontFamily(L"Arial");
//Gdiplus::Font font(&fontFamily, 30);
//wstringstream str;
//double rotation = GetRotation();
//str << fixed << setprecision(1) << rotation;
//RectF bb;
//graphics->MeasureString(str.str().c_str(), str.str().length(), &font, PointF(0, 0), &bb);
//graphics->DrawString(str.str().c_str(), str.str().length(), &font, PointF((float)(mPlacedPosition.X - bb.Width / 2), (float)mPlacedPosition.Y - 40), &brush);
}
/** Draw an eye using an Ellipse
* \param graphics The graphics context to draw on
* \param p1 Where to draw before transformation */
void CHeadTop::DrawEye(Gdiplus::Graphics *graphics, Gdiplus::Point p1)
{
SolidBrush brush(Color::Black);
Point e1 = TransformPoint(p1);
float wid = 15.0f;
float hit = 20.0f;
auto state = graphics->Save();
graphics->TranslateTransform((float)e1.X, (float)e1.Y);
graphics->RotateTransform((float)(-mPlacedR * RtoD));
graphics->FillEllipse(&brush, -wid/2, -hit/2, wid, hit);
graphics->Restore(state);
}
/**
* Draw an eyebrow, automatically transforming the points
*
* Draw a line from (x1, y1) to (x2, y2) after transformation
* to the local coordinate system.
* \param graphics Graphics context to draw on
* \param p1 First point
* \param p2 Second point
*/
void CHeadTop::DrawEyebrow(Gdiplus::Graphics *graphics, Gdiplus::Point p1, Gdiplus::Point p2)
{
Point eb1 = TransformPoint(p1);
Point eb2 = TransformPoint(p2);
Pen eyebrowPen(Color::Black, 2);
graphics->DrawLine(&eyebrowPen, eb1, eb2);
}
/** Transform a point from a location on the bitmap to
* a location on the screen.
* \param p Point to transform
* \returns Transformed point
*/
Gdiplus::Point CHeadTop::TransformPoint(Gdiplus::Point p)
{
// Make p relative to the image center
p = p - GetCenter();
// Rotate as needed and offset
return RotatePoint(p, mPlacedR) + mPlacedPosition;
}
| 25.938547
| 163
| 0.673702
|
NicholsTyler
|
185ae531b8f50cb0038dac353c219b93ec2a00c1
| 11,858
|
cpp
|
C++
|
src/ngraph/pattern/matcher.cpp
|
pqLee/ngraph
|
ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7
|
[
"Apache-2.0"
] | null | null | null |
src/ngraph/pattern/matcher.cpp
|
pqLee/ngraph
|
ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7
|
[
"Apache-2.0"
] | null | null | null |
src/ngraph/pattern/matcher.cpp
|
pqLee/ngraph
|
ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7
|
[
"Apache-2.0"
] | null | null | null |
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//*****************************************************************************
#include <algorithm>
#include <regex>
#include "matcher.hpp"
#include "ngraph/env_util.hpp"
#include "ngraph/graph_util.hpp"
#include "ngraph/log.hpp"
#include "ngraph/op/parameter.hpp"
using namespace std;
using namespace ngraph;
pattern::MatcherState::MatcherState(Matcher* matcher)
: m_matcher(matcher)
, m_pattern_value_map(matcher->m_pattern_map)
, m_watermark(matcher->m_matched_list.size())
, m_capture_size(matcher->m_pattern_value_maps.size())
{
}
pattern::Matcher::Matcher() {}
pattern::Matcher::Matcher(Output<Node>& pattern_node)
: m_pattern_node{pattern_node}
{
}
pattern::Matcher::Matcher(Output<Node>& pattern_node, const std::string& name)
: m_pattern_node(pattern_node)
, m_name{name}
{
}
pattern::Matcher::Matcher(const Output<Node>& pattern_node,
const std::string& name,
bool strict_mode)
: m_pattern_node(pattern_node)
, m_name(name)
, m_strict_mode(strict_mode)
{
}
pattern::Matcher::Matcher(shared_ptr<Node> pattern_node)
: m_pattern_node(pattern_node->output(0))
{
}
pattern::Matcher::Matcher(shared_ptr<Node> pattern_node, const string& name)
: m_pattern_node(pattern_node->output(0))
, m_name(name)
{
}
pattern::Matcher::Matcher(shared_ptr<Node> pattern_node, const string& name, bool strict_mode)
: Matcher(pattern_node->output(0), name, strict_mode)
{
}
pattern::MatcherState::~MatcherState()
{
if (m_restore)
{
if (!m_matcher->m_matched_list.empty())
{
m_matcher->m_matched_list.erase(m_matcher->m_matched_list.begin() + m_watermark,
m_matcher->m_matched_list.end());
}
if (!m_pattern_value_maps.empty())
{
m_matcher->m_pattern_value_maps.erase(m_pattern_value_maps.begin() + m_capture_size,
m_pattern_value_maps.end());
}
m_matcher->m_pattern_map = m_pattern_value_map;
}
}
bool pattern::MatcherState::finish(bool is_successful)
{
m_restore = !is_successful;
return is_successful;
}
pattern::PatternMap pattern::Matcher::get_pattern_map() const
{
return as_pattern_map(m_pattern_map);
}
size_t pattern::Matcher::add_node(Output<Node> value)
{
size_t result = m_matched_list.size();
m_matched_list.push_back(value);
return result;
}
shared_ptr<Node> pattern::Matcher::get_match_root()
{
return m_match_root.get_node_shared_ptr();
}
pattern::MatcherState pattern::Matcher::start_match()
{
return MatcherState(this);
}
Output<Node> pattern::Matcher::get_match_value()
{
return m_match_root;
}
void pattern::Matcher::capture(const set<Node*>& static_nodes)
{
m_pattern_value_maps.push_back(m_pattern_map);
m_pattern_map.clear();
for (auto key_value : m_pattern_value_maps.back())
{
if (static_nodes.count(key_value.first.get()) > 0)
{
m_pattern_map.insert(key_value);
}
}
}
bool pattern::Matcher::is_contained_match(const OutputVector& exclusions, bool ignore_unused)
{
if (exclusions.empty())
{
OutputVector label_exclusions;
for (auto entry : m_pattern_map)
{
// leaf label
if (entry.first->get_input_size() == 0)
{
label_exclusions.push_back(entry.second.get_node_shared_ptr());
}
}
return get_subgraph_outputs(get_matched_values(), label_exclusions, ignore_unused).size() <
2;
}
return get_subgraph_outputs(get_matched_values(), exclusions).size() < 2;
}
bool pattern::Matcher::match_value(const Output<Node>& pattern_value,
const Output<Node>& graph_value)
{
shared_ptr<Node> pattern_node = pattern_value.get_node_shared_ptr();
shared_ptr<Node> graph_node = graph_value.get_node_shared_ptr();
// This env var allows one to specify node name patterns to abort pattern matching
// at particular nodes. The upshot is that one can quickly zero in on an offending
// fusion by disabling individual fusions or optimizations that use Matcher.
static const string node_skip_cregex = getenv_string("NGRAPH_FAIL_MATCH_AT");
if (!node_skip_cregex.empty())
{
static const regex node_skip_regex(node_skip_cregex);
if (regex_match(graph_node->get_name(), node_skip_regex))
{
NGRAPH_DEBUG << "[MATCHER] Aborting at " << *graph_node
<< " due to NGRAPH_MATCHER_SKIP set to " << node_skip_cregex;
return false;
}
}
return pattern_node->match_value(this, pattern_value, graph_value);
}
bool pattern::Matcher::match_permutation(const OutputVector& pattern_args, const OutputVector& args)
{
for (size_t i = 0; i < args.size(); i++)
{
if (!match_value(pattern_args.at(i), args.at(i)))
{
return false;
}
}
return true;
}
bool pattern::Matcher::match_arguments(Node* pattern_node, const shared_ptr<Node>& graph_node)
{
NGRAPH_DEBUG << "[MATCHER] Match arguments at " << *graph_node << " for pattern "
<< *pattern_node;
auto args = graph_node->input_values();
auto pattern_args = pattern_node->input_values();
if (args.size() != pattern_args.size())
{
NGRAPH_DEBUG << "[MATCHER] Aborting at " << *graph_node << " for pattern " << *pattern_node;
return false;
}
if (graph_node->is_commutative())
{
// TODO: [nikolayk] we don't really have to use lexicographically-based perms,
// heap's algo should be faster
sort(begin(pattern_args),
end(pattern_args),
[](const Output<Node>& n1, const Output<Node>& n2) { return n1 < n2; });
do
{
auto saved = start_match();
if (match_permutation(pattern_args, args))
{
return saved.finish(true);
}
} while (next_permutation(
begin(pattern_args),
end(pattern_args),
[](const Output<Node>& n1, const Output<Node>& n2) { return n1 < n2; }));
}
else
{
return match_permutation(pattern_args, args);
}
NGRAPH_DEBUG << "[MATCHER] Aborting at " << *graph_node << " for pattern " << *pattern_node;
return false;
}
bool pattern::Matcher::match(const Output<Node>& graph_value)
{
// clear our state
m_matched_list.clear();
return match(graph_value, PatternValueMap{});
}
bool pattern::Matcher::match(shared_ptr<Node> node)
{
for (Output<Node> output : node->outputs())
{
if (this->match(output))
{
return true;
}
}
return false;
}
bool pattern::Matcher::match(const Output<Node>& graph_value,
const PatternValueMap& previous_matches)
{
// clear our state
m_match_root.reset();
m_pattern_map.clear();
m_matched_list.clear();
// insert previous matches
m_pattern_map.insert(previous_matches.cbegin(), previous_matches.cend());
auto saved = start_match();
bool is_match = saved.finish(match_value(m_pattern_node, graph_value));
if (is_match)
{
m_match_root = graph_value;
}
return is_match;
}
bool pattern::Matcher::match(const Output<Node>& graph_value, const PatternMap& previous_matches)
{
return match(graph_value, as_pattern_value_map(previous_matches));
}
set<shared_ptr<Node>>
pattern::RecurrentMatcher::as_node_set(const set<shared_ptr<op::Label>>& label_set)
{
set<shared_ptr<Node>> result;
for (auto label : label_set)
{
result.insert(label);
}
return result;
}
pattern::RecurrentMatcher::RecurrentMatcher(
const Output<Node>& initial_pattern,
const Output<Node>& pattern,
const std::shared_ptr<Node>& rpattern,
const std::set<std::shared_ptr<Node>>& correlated_patterns)
: m_initial_pattern(initial_pattern)
, m_pattern(pattern)
, m_recurrent_pattern(rpattern)
, m_correlated_patterns(correlated_patterns)
{
}
pattern::RecurrentMatcher::RecurrentMatcher(
const Output<Node>& pattern,
const std::shared_ptr<Node>& rpattern,
const std::set<std::shared_ptr<Node>>& correlated_patterns)
: RecurrentMatcher(pattern, pattern, rpattern, correlated_patterns)
{
}
pattern::RecurrentMatcher::RecurrentMatcher(
const Output<Node>& pattern,
const std::shared_ptr<Node>& rpattern,
const std::set<std::shared_ptr<op::Label>>& correlated_patterns)
: RecurrentMatcher(pattern, pattern, rpattern, correlated_patterns)
{
}
pattern::RecurrentMatcher::RecurrentMatcher(const Output<Node>& initial_pattern,
const Output<Node>& pattern,
const shared_ptr<Node>& rpattern,
const set<shared_ptr<op::Label>>& correlated_patterns)
: RecurrentMatcher(initial_pattern, pattern, rpattern, as_node_set(correlated_patterns))
{
}
bool pattern::RecurrentMatcher::match(std::shared_ptr<Node> graph)
{
for (Output<Node> output : graph->outputs())
{
if (match(output))
{
return true;
}
}
return false;
}
bool pattern::RecurrentMatcher::match(Output<Node> graph)
{
bool matched = false;
Matcher m_initial(m_initial_pattern);
Matcher m_repeat(m_pattern);
Matcher& m = m_initial;
PatternValueMap previous_matches;
m_matches.clear();
m_match_root = graph;
// try to match one cell (i.e. pattern)
while (m.match(graph, previous_matches))
{
matched = true;
// move to the next cell
graph = m.get_pattern_value_map()[m_recurrent_pattern];
// copy bound nodes for the current pattern graph into a global matches map
for (auto cur_match : m.get_pattern_value_map())
{
m_matches[cur_match.first].push_back(cur_match.second);
}
// pre-populate the pattern map for the next cell with the bound nodes
// from the current match. Only bound nodes whose labels are in
// correlated_patterns are pre-populated. Skip other labels are
// unbounded by default
for (auto cor_pat : m_correlated_patterns)
{
previous_matches[cor_pat] = m.get_pattern_value_map()[cor_pat];
}
m = m_repeat;
}
if (!matched)
{
m_match_root.reset();
}
return matched;
}
/// \brief Returns a vector of bound values for a given label (used in a pattern
/// describing an individual cell
OutputVector pattern::RecurrentMatcher::get_bound_values_for_pattern(
const std::shared_ptr<Node>& pattern) const
{
if (m_matches.count(pattern) == 0)
{
throw ngraph_error("No bound nodes for a given label");
}
return m_matches.at(pattern);
}
size_t pattern::RecurrentMatcher::get_number_of_recurrent_matches() const
{
if (m_matches.size() == 0)
{
return 0;
}
return (*m_matches.begin()).second.size();
}
| 29.351485
| 100
| 0.642182
|
pqLee
|
185eb811b951605f459d79fe797e58d3432aedde
| 1,120
|
cpp
|
C++
|
source/orzTest/test_streamconv.cpp
|
poppeman/Pictus
|
0e58285b89292d0b221ab4d09911ef439711cc59
|
[
"MIT"
] | 73
|
2015-01-19T17:38:26.000Z
|
2022-02-15T06:16:08.000Z
|
source/orzTest/test_streamconv.cpp
|
poppeman/Pictus
|
0e58285b89292d0b221ab4d09911ef439711cc59
|
[
"MIT"
] | 75
|
2015-01-01T17:32:24.000Z
|
2018-10-18T08:19:08.000Z
|
source/orzTest/test_streamconv.cpp
|
poppeman/Pictus
|
0e58285b89292d0b221ab4d09911ef439711cc59
|
[
"MIT"
] | 18
|
2015-01-05T04:57:18.000Z
|
2022-03-06T01:35:10.000Z
|
#include "orz/streamconv.h"
#include "main.h"
#include "orz/file_reader.h"
#include "orz/types.h"
#include <UnitTest++/UnitTest++.h>
SUITE(StreamConverter)
{
TEST(Defaults)
{
Util::StreamConverter sc;
// Should default to empty with wordsize 8
CHECK(sc.CurrentWordSize() == 8);
CHECK(sc.IsWordsLeft() == false);
}
TEST(ChangeWordSize)
{
Util::StreamConverter sc;
sc.ChangeWordSize(16);
CHECK(sc.CurrentWordSize() == 16);
}
TEST(IO)
{
const int ReadBuffer=1024;
Util::StreamConverter sc;
// Store an entire file in the stream converter
auto f = std::make_shared<IO::FileReader>(g_datapath+"/data.raw");
CHECK(f->Open());
size_t read;
do
{
uint8_t buf[ReadBuffer];
read=f->Read(buf, 1, ReadBuffer);
sc.AddBytes(buf, read);
}
while(read!=0);
// Increase size to 16 bits and verify with the file contents
sc.ChangeWordSize(16);
f->Seek(0, IO::SeekMethod::Begin);
do
{
uint16_t buf[ReadBuffer];
read = f->Read(buf, 2, ReadBuffer);
for(size_t i = 0; i < read; i++)
{
CHECK((uint16_t)sc.GetWord()==buf[i]);
}
}
while(read != 0);
}
}
| 18.666667
| 68
| 0.644643
|
poppeman
|
185ef91df49a724eb68581351e21b214ebfd9eb1
| 4,109
|
cpp
|
C++
|
src/app/input/input_manager.cpp
|
JacobDomagala/Shady
|
cdb8b07a83d179f58bd70c42957e987ddd201eb4
|
[
"MIT"
] | 2
|
2020-10-27T00:16:18.000Z
|
2021-03-29T12:59:48.000Z
|
src/app/input/input_manager.cpp
|
JacobDomagala/DEngine
|
cdb8b07a83d179f58bd70c42957e987ddd201eb4
|
[
"MIT"
] | 58
|
2020-08-23T21:38:21.000Z
|
2021-08-05T16:12:31.000Z
|
src/app/input/input_manager.cpp
|
JacobDomagala/Shady
|
cdb8b07a83d179f58bd70c42957e987ddd201eb4
|
[
"MIT"
] | null | null | null |
#include "input_manager.hpp"
#include "event.hpp"
#include "trace/logger.hpp"
#include <GLFW/glfw3.h>
#include <iostream>
namespace shady::app::input {
void
InputManager::InternalKeyCallback(GLFWwindow* /* window */, int32_t key, int32_t scancode, int32_t action,
int32_t mods)
{
trace::Logger::Trace("GLFW key {} {} scan code - {}", action, key, scancode);
s_keyMap[key] = action;
BroadcastEvent(KeyEvent{key, scancode, action, mods});
}
void
InputManager::InternalMouseButtonCallback(GLFWwindow* /* window */, int32_t button, int32_t action,
int32_t mods)
{
trace::Logger::Trace("GLFW mouse button {} {} {}", button, action, mods);
s_mouseButtonMap[button] = action;
BroadcastEvent(MouseButtonEvent{button, action, mods});
}
void
InputManager::InternalCursorPositionCallback(GLFWwindow* /* window */, double xpos, double ypos)
{
trace::Logger::Trace("GLFW cursor pos {} {}", xpos, ypos);
auto deltaPosition = glm::dvec2(xpos, ypos) - s_mousePosition;
s_mousePosition = glm::dvec2(xpos, ypos);
BroadcastEvent(CursorPositionEvent{xpos, ypos, deltaPosition.x, deltaPosition.y});
}
void
InputManager::InternalMouseScrollCallback(GLFWwindow* /* window */, double xoffset, double yoffset)
{
trace::Logger::Trace("GLFW scroll {} {}", xoffset, yoffset);
BroadcastEvent(MouseScrollEvent{xoffset, yoffset});
}
void
InputManager::BroadcastEvent(const Event& event)
{
switch (event.m_type)
{
case Event::EventType::KEY: {
for (auto* listener : s_keyListeners)
{
listener->KeyCallback(static_cast< const KeyEvent& >(event));
}
}
break;
case Event::EventType::MOUSE_BUTTON: {
for (auto* listener : s_mouseButtonListeners)
{
listener->MouseButtonCallback(static_cast< const MouseButtonEvent& >(event));
}
}
break;
case Event::EventType::MOUSE_CURSOR: {
for (auto* listener : s_mouseMovementListeners)
{
listener->CursorPositionCallback(static_cast< const CursorPositionEvent& >(event));
}
}
break;
case Event::EventType::MOUSE_SCROLL: {
for (auto* listener : s_mouseScrollListeners)
{
listener->MouseScrollCallback(static_cast< const MouseScrollEvent& >(event));
}
}
break;
default:
break;
}
}
void
InputManager::Init(GLFWwindow* mainWindow)
{
s_windowHandle = mainWindow;
glfwGetCursorPos(s_windowHandle, &s_mousePosition.x, &s_mousePosition.y);
glfwSetKeyCallback(s_windowHandle, InternalKeyCallback);
glfwSetMouseButtonCallback(s_windowHandle, InternalMouseButtonCallback);
glfwSetCursorPosCallback(s_windowHandle, InternalCursorPositionCallback);
glfwSetScrollCallback(s_windowHandle, InternalMouseScrollCallback);
s_keyMap.clear();
}
void
InputManager::RegisterForKeyInput(InputListener* listener)
{
s_keyListeners.push_back(listener);
}
void
InputManager::RegisterForMouseButtonInput(InputListener* listener)
{
s_mouseButtonListeners.push_back(listener);
}
void
InputManager::RegisterForMouseMovementInput(InputListener* listener)
{
s_mouseMovementListeners.push_back(listener);
}
void
InputManager::RegisterForMouseScrollInput(InputListener* listener)
{
s_mouseScrollListeners.push_back(listener);
}
void
InputManager::PollEvents()
{
glfwPollEvents();
}
bool
InputManager::CheckButtonPressed(int32_t button)
{
return s_mouseButtonMap[button];
}
bool
InputManager::CheckKeyPressed(int32_t keyKode)
{
return s_keyMap[keyKode];
}
glm::vec2
InputManager::GetMousePos()
{
return s_mousePosition;
}
void
InputManager::SetMousePos(const glm::vec2& position)
{
glfwSetCursorPos(s_windowHandle, static_cast< double >(position.x),
static_cast< double >(position.y));
}
} // namespace shady::app::input
| 25.364198
| 107
| 0.666099
|
JacobDomagala
|
18612f1a957d88caaaabcca573098411fd17e931
| 2,116
|
cc
|
C++
|
base/parsers/character_set_tests.cc
|
dimhotepus/whitebox
|
03902b15b03ae0bfe6db5dc12d91ce49c576ac97
|
[
"BSD-3-Clause"
] | 1
|
2022-01-16T15:01:42.000Z
|
2022-01-16T15:01:42.000Z
|
base/parsers/character_set_tests.cc
|
dimhotepus/whitebox
|
03902b15b03ae0bfe6db5dc12d91ce49c576ac97
|
[
"BSD-3-Clause"
] | 5
|
2021-08-11T22:04:28.000Z
|
2022-01-10T11:18:56.000Z
|
base/parsers/character_set_tests.cc
|
dimhotepus/whitebox
|
03902b15b03ae0bfe6db5dc12d91ce49c576ac97
|
[
"BSD-3-Clause"
] | null | null | null |
// Copyright (c) 2021 The WhiteBox Authors. All rights reserved.
// Use of this source code is governed by a 3-Clause BSD license that can be
// found in the LICENSE file.
//
// Character set for parsers.
#include "character_set.h"
//
#include "base/deps/googletest/gtest/gtest.h"
// NOLINTNEXTLINE(cert-err58-cpp,cppcoreguidelines-avoid-non-const-global-variables,cppcoreguidelines-owning-memory)
GTEST_TEST(CharacterSetTest, DefaultConstructor) {
using namespace wb::base::parsers;
constexpr CharacterSet set;
for (auto &&ch : set.set) {
EXPECT_FALSE(ch);
}
}
// NOLINTNEXTLINE(cert-err58-cpp,cppcoreguidelines-avoid-non-const-global-variables,cppcoreguidelines-owning-memory)
GTEST_TEST(CharacterSetTest, SetConstructor) {
using namespace wb::base::parsers;
constexpr CharacterSet set{"123"};
size_t idx{0};
for (auto &&ch : set.set) {
if (idx == static_cast<CharacterSet::char_type>('1') ||
idx == static_cast<CharacterSet::char_type>('2') ||
idx == static_cast<CharacterSet::char_type>('3')) {
EXPECT_TRUE(ch) << "Char '"
<< static_cast<char>(
static_cast<CharacterSet::char_type>(idx))
<< " should be in set.";
} else {
EXPECT_FALSE(ch) << "Char '"
<< static_cast<char>(
static_cast<CharacterSet::char_type>(idx))
<< " should not be in set.";
}
++idx;
}
}
// NOLINTNEXTLINE(cert-err58-cpp,cppcoreguidelines-avoid-non-const-global-variables,cppcoreguidelines-owning-memory)
GTEST_TEST(CharacterSetTest, HasChar) {
using namespace wb::base::parsers;
constexpr CharacterSet set{"{}()"};
static_assert(set.HasChar('{'));
static_assert(set.HasChar('}'));
static_assert(set.HasChar('('));
static_assert(set.HasChar(')'));
static_assert(!set.HasChar(' '));
static_assert(!set.HasChar('.'));
static_assert(!set.HasChar('a'));
static_assert(!set.HasChar('A'));
static_assert(!set.HasChar('1'));
static_assert(!set.HasChar('\\'));
static_assert(!set.HasChar('\n'));
}
| 32.553846
| 116
| 0.648393
|
dimhotepus
|
186aba9728bc54e6f2236322cde1aad2ddcb639c
| 663
|
cpp
|
C++
|
GameEngine/Sources/GLFW_Init.cpp
|
GPUWorks/OpenGL-Mini-CAD-2D
|
fedb903302f82a1d1ff0ca6776687a60a237008a
|
[
"MIT"
] | 1
|
2021-08-10T02:48:57.000Z
|
2021-08-10T02:48:57.000Z
|
GameEngine/Sources/GLFW_Init.cpp
|
GPUWorks/OpenGL-Mini-CAD-2D
|
fedb903302f82a1d1ff0ca6776687a60a237008a
|
[
"MIT"
] | null | null | null |
GameEngine/Sources/GLFW_Init.cpp
|
GPUWorks/OpenGL-Mini-CAD-2D
|
fedb903302f82a1d1ff0ca6776687a60a237008a
|
[
"MIT"
] | null | null | null |
#include "GLFW_Init.h"
core::GLFW_Init::GLFW_Init()
{
}
core::GLFW_Init::GLFW_Init(int major_version, int minor_version, int opengl_profile, int msaa_factor)
{
this->major_context_version = major_version;
this->minor_context_version = minor_version;
this->opengl_profile = opengl_profile;
this->msaa_factor = msaa_factor;
}
void core::GLFW_Init::init()
{
glfwInit();
glfwWindowHint(GLFW_SAMPLES, msaa_factor);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, this->major_context_version);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, this->minor_context_version);
glfwWindowHint(GLFW_OPENGL_PROFILE, this->opengl_profile);
}
| 22.862069
| 102
| 0.761689
|
GPUWorks
|
186feedf62975ca20b669a846171be662ad04f28
| 1,227
|
cpp
|
C++
|
src/utils/CursorHelper.cpp
|
oclero/luna
|
00bd5736e7bab57daa5d622bcd5379992ca6505c
|
[
"MIT"
] | 5
|
2021-07-19T19:57:41.000Z
|
2021-09-25T01:41:13.000Z
|
src/utils/CursorHelper.cpp
|
chiefstone/luna
|
00bd5736e7bab57daa5d622bcd5379992ca6505c
|
[
"MIT"
] | 2
|
2021-09-25T08:35:49.000Z
|
2021-09-25T11:14:49.000Z
|
src/utils/CursorHelper.cpp
|
chiefstone/luna
|
00bd5736e7bab57daa5d622bcd5379992ca6505c
|
[
"MIT"
] | 3
|
2021-08-20T10:19:12.000Z
|
2021-09-25T10:46:40.000Z
|
#include <luna/utils/CursorHelper.hpp>
#include <QCursor>
#include <QGuiApplication>
namespace luna::utils {
CursorHelper::CursorHelper(QObject* parent)
: QObject(parent) {}
CursorHelper::~CursorHelper() {
QGuiApplication::restoreOverrideCursor();
}
Qt::CursorShape CursorHelper::cursor() const {
return QGuiApplication::overrideCursor()->shape();
}
void CursorHelper::setCursor(const Qt::CursorShape cursor) {
if (cursor != _cursor) {
_cursor = cursor;
// If the cursor is currently overriden, replace it by the new one.
if (_overrideCursor) {
QGuiApplication::changeOverrideCursor(QCursor{ _cursor });
}
emit cursorChanged();
}
}
bool CursorHelper::overrideCursor() const {
return _overrideCursor;
}
void CursorHelper::setOverrideCursor(const bool overrideCursor) {
if (overrideCursor != _overrideCursor) {
_overrideCursor = overrideCursor;
// Do the actual cursor overriding.
if (overrideCursor) {
QGuiApplication::setOverrideCursor(QCursor{ _cursor });
} else {
QGuiApplication::restoreOverrideCursor();
}
emit overrideCursorChanged();
}
}
CursorHelper* CursorHelper::qmlAttachedProperties(QObject* object) {
return new CursorHelper(object);
}
} // namespace luna::utils
| 22.722222
| 69
| 0.742461
|
oclero
|
18712c56bf3e1f0651dd1d542d78f433ce5660e8
| 795
|
hpp
|
C++
|
include/mitama/dimensional/systems/si/derived_units/heat.hpp
|
LoliGothick/mitama-dimensional
|
46b9ae3764bd472da9ed5372afd82e6b5d542543
|
[
"MIT"
] | 34
|
2019-01-18T11:51:02.000Z
|
2021-09-17T02:46:43.000Z
|
include/mitama/dimensional/systems/si/derived_units/heat.hpp
|
LoliGothick/mitama-dimensional
|
46b9ae3764bd472da9ed5372afd82e6b5d542543
|
[
"MIT"
] | 11
|
2019-02-10T23:12:07.000Z
|
2019-05-06T21:05:09.000Z
|
include/mitama/dimensional/systems/si/derived_units/heat.hpp
|
LoliGothick/mitama-dimensional
|
46b9ae3764bd472da9ed5372afd82e6b5d542543
|
[
"MIT"
] | 5
|
2019-02-27T11:53:20.000Z
|
2021-03-20T21:59:59.000Z
|
#ifndef MITAMA_DIMENSIONAL_DERIVED_UNITS_HEAT_HPP
#define MITAMA_DIMENSIONAL_DERIVED_UNITS_HEAT_HPP
#include <mitama/dimensional/systems/si/all.hpp>
#include <mitama/dimensional/quantity.hpp>
#include <mitama/dimensional/io.hpp>
namespace mitama::systems::si {
template<class> struct heat_synonym{};
using heat_t = make_synonym_t<heat_synonym, decltype(kilogram<> * meter<2> * second<-2>)>;
#if !defined(MITAMA_DIMENSIONAL_DERIVED_UNITS_ENERGY_HPP) && !defined(MITAMA_DIMENSIONAL_DERIVED_UNITS_WORK_HPP)
inline constexpr heat_t joule{};
#endif
}
#if !defined(MITAMA_DIMENSIONAL_DERIVED_UNITS_ENERGY_HPP) && !defined(MITAMA_DIMENSIONAL_DERIVED_UNITS_WORK_HPP)
namespace mitama {
template <> struct abbreviation_<systems::si::heat_t> { static constexpr char str[] = "J"; };
}
#endif
#endif
| 31.8
| 112
| 0.803774
|
LoliGothick
|
1874ab136870b4eb334cbde189625fd573772ac5
| 5,731
|
cpp
|
C++
|
test/test_list.cpp
|
kophy/TinySTL
|
366c2f585344a249846f4087904d509fa71e419e
|
[
"MIT"
] | 5
|
2017-05-04T12:21:09.000Z
|
2019-03-28T09:29:50.000Z
|
test/test_list.cpp
|
kophy/TinySTL
|
366c2f585344a249846f4087904d509fa71e419e
|
[
"MIT"
] | null | null | null |
test/test_list.cpp
|
kophy/TinySTL
|
366c2f585344a249846f4087904d509fa71e419e
|
[
"MIT"
] | null | null | null |
#include <cstdlib>
#include "list.hpp"
#include "catch.hpp"
using TinySTL::List;
TEST_CASE("front and back") {
SECTION("empty list") {
List<int> l;
CHECK_THROWS_AS(l.front(), std::out_of_range);
CHECK_THROWS_AS(l.back(), std::out_of_range);
}
}
TEST_CASE("push front") {
SECTION("push 1 ~ 5 from front") {
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_front(i);
CHECK(l.front() == 4);
CHECK(l.back() == 0);
}
}
TEST_CASE("pop front") {
SECTION("empty list") {
List<int> l;
CHECK_THROWS_AS(l.pop_front(), std::out_of_range);
}
SECTION("not empty list") {
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_front(i);
l.pop_front();
CHECK(l.front() == 3);
}
}
TEST_CASE("push_back") {
SECTION("push 1 ~ 5 from back") {
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(i);
CHECK(l.front() == 0);
CHECK(l.back() == 4);
}
}
TEST_CASE("pop back") {
SECTION("empty list") {
List<int> l;
CHECK_THROWS_AS(l.pop_back(), std::out_of_range);
}
SECTION("not empty list") {
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(i);
l.pop_back();
CHECK(l.back() == 3);
}
}
TEST_CASE("clear") {
SECTION("clear a list") {
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(i);
CHECK(l.size() == 5);
l.clear();
CHECK(l.size() == 0);
}
}
TEST_CASE("iterator") {
SECTION("empty list") {
List<int> l;
CHECK(l.begin() == l.end());
}
SECTION("not empty list : traverse") {
int data[] = {7, 11, 23, 41, 73};
int cnt;
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(data[i]);
cnt = 0;
for (auto iter = l.begin(); iter != l.end(); ++iter)
CHECK(*iter == data[cnt++]);
CHECK(cnt == 5);
}
SECTION("not empty list : edit") {
int data[] = {7, 11, 23, 41, 73};
int cnt;
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(data[i]);
cnt = 0;
for (auto iter = l.begin(); iter != l.end(); ++iter)
*iter = 3 * data[cnt++];
CHECK(cnt == 5);
cnt = 0;
for (auto iter = l.begin(); iter != l.end(); iter++)
CHECK(*iter == 3 * data[cnt++]);
CHECK(cnt == 5);
}
}
TEST_CASE("reverse iterator") {
SECTION("empty list") {
List<int> l;
CHECK(l.rbegin() == l.rend());
}
SECTION("not empty list : traverse") {
int data[] = {7, 11, 23, 41, 73};
int cnt;
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(data[i]);
cnt = 0;
for (auto iter = l.begin(); iter != l.end(); ++iter)
CHECK(*iter == data[cnt++]);
CHECK(cnt == 5);
cnt = 5;
for (auto iter = l.rbegin(); iter != l.rend(); iter++)
CHECK(*iter == data[--cnt]);
CHECK(cnt == 0);
}
SECTION("not empty list : edit") {
int data[] = {7, 11, 23, 41, 73};
int cnt;
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(data[i]);
cnt = 5;
for (auto iter = l.rbegin(); iter != l.rend(); ++iter)
*iter = 3 * data[--cnt];
CHECK(cnt == 0);
cnt = 5;
for (auto iter = l.rbegin(); iter != l.rend(); iter++)
CHECK(*iter == 3 * data[--cnt]);
CHECK(cnt == 0);
}
}
TEST_CASE("insert") {
SECTION("front") {
List<int> l;
l.insert(l.begin(), 17);
CHECK(l.front() == 17);
l.insert(l.begin(), 233);
CHECK(l.front() == 233);
}
SECTION("back") {
List<int> l;
l.insert(l.end(), 17);
CHECK(l.back() == 17);
l.insert(l.end(), 233);
CHECK(l.back() == 233);
}
SECTION("middle") {
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(i);
auto iter = l.begin();
iter++;
l.insert(iter, 43);
int data[] = {0, 43, 1, 2, 3, 4};
int cnt = 0;
for (iter = l.begin(); iter != l.end(); ++iter)
CHECK(*iter == data[cnt++]);
CHECK(cnt == 6);
}
}
// TODO: add size check
TEST_CASE("erase") {
SECTION("front") {
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(i);
l.erase(l.begin());
CHECK(l.front() == 1);
}
SECTION("back") {
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(i);
l.erase(l.end());
CHECK(l.back() == 4);
}
SECTION("middle") {
List<int> l;
for (int i = 0; i < 5; ++i)
l.push_back(i);
auto iter = l.begin();
++iter;
iter = l.erase(iter);
CHECK(*iter == 2);
int data[] = {0, 2, 3, 4};
int cnt = 0;
for (iter = l.begin(); iter != l.end(); ++iter)
CHECK(*iter == data[cnt++]);
CHECK(cnt == 4);
}
}
TEST_CASE("swap") {
SECTION("swap two lists") {
List<int> l1, l2;
for (int i = 0; i < 3; ++i)
l1.push_back(1);
for (int j = 0; j < 5; ++j)
l2.push_back(2);
l1.swap(l2);
CHECK(l1.size() == 5);
CHECK(l2.size() == 3);
auto iter1 = l1.begin(), iter2 = l2.end();
while (iter1 != l1.end()) {
CHECK(*iter1 == 2);
++iter1;
}
while (iter2 != l2.end()) {
CHECK(*iter2 == 1);
++iter2;
}
}
}
| 24.079832
| 62
| 0.424184
|
kophy
|
18770ff3124b3f7c22f268506d0dfe3d91497cd2
| 2,774
|
hpp
|
C++
|
citadel_lib/include/citadel/character.hpp
|
myddrin/citadel
|
f7f00e81154b1ac5e0442e1cfcef402f9e92887d
|
[
"MIT"
] | null | null | null |
citadel_lib/include/citadel/character.hpp
|
myddrin/citadel
|
f7f00e81154b1ac5e0442e1cfcef402f9e92887d
|
[
"MIT"
] | null | null | null |
citadel_lib/include/citadel/character.hpp
|
myddrin/citadel
|
f7f00e81154b1ac5e0442e1cfcef402f9e92887d
|
[
"MIT"
] | null | null | null |
/**
* Copyright (c) 2016 Thomas Richard
*
* Following MIT license (see copying.txt)
*
* 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.
*/
#ifndef CITADEL_CHARACTER
#define CITADEL_CHARACTER
#include <string>
#include "citadel/building.hpp"
namespace Citadel {
struct Character
{
/** @brief possible power for characters */
enum Power {
/** @brief Nothing special */
POWER_NONE = 0,
/** @brief Kill another character */
POWER_KILL = 1,
/**
* @brief Steal from another character
*
* Cannot steal from the assassin (lower level of play)
* or a dead character.
*/
POWER_STEAL = POWER_KILL << 1,
/** @brief exchange all cards with another player */
POWER_CARDS_PLAYER = POWER_STEAL << 1,
/** @brief exchange some cards with the deck */
POWER_CARDS_DECK = POWER_CARDS_PLAYER << 1,
/** @brief become the first player to choose a character */
POWER_CROWN = POWER_CARDS_DECK << 1,
/** @brief cannot be attacked by the condotiere */
POWER_IMMUNITY = POWER_CROWN << 1,
/** @brief additional gold each turn */
POWER_RENT = POWER_IMMUNITY << 1,
/** @brief additional cards each turn */
POWER_CARDS = POWER_RENT << 1,
/** @brief can build more buildings per turn */
POWER_BUILD = POWER_CARDS << 1,
/**
* @brief can destroy another building
*
* Unless the character has immunity. Has to pay value-1.
* Cannot attack the 1st player that has enough buildings to win.
*/
POWER_DESTROY = POWER_BUILD << 1,
};
const std::string name;
const std::string description;
/** @brief turn of play - lower first */
const unsigned int level;
/**
* @brief power held - constructed from values @ref enum Power
*/
const unsigned int power;
/** @brief what buildings are taxable */
const enum Building::Type taxing;
/** @brief if dead will not be able to play or be stolen from */
bool dead;
/** @brief at start of turn loose all its money to the thief */
bool stolen;
/**
* @brief character is visible
*
* (i.e. was turned over or has played already)
*/
bool visible;
Character(const std::string &_name, unsigned int _level,
unsigned int _power, enum Building::Type _taxing,
const std::string &_description = "");
void reset();
};
} /* namespace Citadel */
#endif /* CITADEL_CHARACTER */
| 30.483516
| 77
| 0.603461
|
myddrin
|
18771a185896ed2cf4c7b04b0e8bff3abf66617b
| 944
|
cpp
|
C++
|
src/core/platform/Process.cpp
|
TheJelmega/engine
|
39778e153a3214fb54d7c88295289a5128cd248f
|
[
"0BSD"
] | 3
|
2021-09-04T20:36:23.000Z
|
2022-01-20T14:16:43.000Z
|
src/core/platform/Process.cpp
|
TheJelmega/engine
|
39778e153a3214fb54d7c88295289a5128cd248f
|
[
"0BSD"
] | 1
|
2021-11-02T23:26:26.000Z
|
2021-11-02T23:26:26.000Z
|
src/core/platform/Process.cpp
|
TheJelmega/engine
|
39778e153a3214fb54d7c88295289a5128cd248f
|
[
"0BSD"
] | null | null | null |
#include "Process.h"
namespace Core
{
auto Process::GetPath() const noexcept -> const FileSystem::Path&
{
return m_path;
}
auto Process::GetCmdLine() const noexcept -> const String&
{
return m_cmdLine;
}
auto Process::GetEnvironment() const noexcept -> const String&
{
return m_environment;
}
auto Process::GetPriority() const noexcept -> ProcessPriority
{
return m_priority;
}
auto Process::GetMemoryPriority() const noexcept -> ProcessMemoryPriority
{
return m_memPriority;
}
auto Process::GetPowerThrottling() const noexcept -> ProcessPowerThrottling
{
return m_powerThrottling;
}
auto Process::GetProcessId() const noexcept -> ProcessID
{
return m_id;
}
auto Process::GetWorkingDir() const noexcept -> const FileSystem::Path&
{
return m_workingDir;
}
auto Process::GetNativeHandle() const noexcept -> NativeHandle
{
return m_handle;
}
}
| 18.88
| 77
| 0.684322
|
TheJelmega
|
18797a8a106c2dafd1386df0110f53de65436f6c
| 1,991
|
cc
|
C++
|
src/itensor/util/args.h.cc
|
kyungminlee/PiTensor
|
f206fe5a384b52336e9f406c11dc492ff129791b
|
[
"MIT"
] | 10
|
2019-01-25T03:21:49.000Z
|
2020-01-19T04:42:32.000Z
|
src/itensor/util/args.h.cc
|
kyungminlee/PiTensor
|
f206fe5a384b52336e9f406c11dc492ff129791b
|
[
"MIT"
] | null | null | null |
src/itensor/util/args.h.cc
|
kyungminlee/PiTensor
|
f206fe5a384b52336e9f406c11dc492ff129791b
|
[
"MIT"
] | 2
|
2018-04-10T05:11:30.000Z
|
2018-09-14T08:16:07.000Z
|
#include "../../pitensor.h"
#include "itensor/util/args.h"
#include <pybind11/embed.h>
namespace py = pybind11;
using namespace itensor;
// TODO: Implement python version altogether?
static inline
auto
initArgs(pybind11::module& module)
{
py::class_<Args> type(module, "Args");
using namespace pybind11::literals;
type
.def(py::init<>())
.def(py::init(
[](py::kwargs kwargs) {
auto self = new Args();
for (auto const & kv : kwargs) {
auto key = kv.first.cast<std::string>();
auto val = kv.second;
auto typestr = py::str(val.get_type()).cast<std::string>();
if (typestr == "<class 'bool'>") {
self->add(key, val.cast<bool>());
} else if (typestr == "<class 'int'>") {
self->add(key, val.cast<long>());
} else if (typestr == "<class 'float'>") {
self->add(key, val.cast<double>());
} else if (typestr == "<class 'str'>") {
self->add(key, val.cast<std::string>());
} // TODO: Find better way.
}
return self;
})
)
.def("add",
(void (Args::*)(std::string const &, bool)) &Args::add)
.def("add",
(void (Args::*)(std::string const &, long)) &Args::add)
.def("add",
(void (Args::*)(std::string const &, std::string const &)) &Args::add)
.def("add",
(void (Args::*)(std::string const &, Real)) &Args::add)
.def("defined", &Args::defined)
.def("remove", &Args::remove)
// TODO: getBool
// TODO: getString
// TODO: getInt
// TODO: getReal
.def("__repr__",
[](Args const & obj) -> std::string { std::stringstream ss; ss << obj; return ss.str(); })
.def(py::self + py::self)
;
return type;
}
void pitensor::util::args(pybind11::module& module)
{
auto typeArgs = initArgs(module);
}
| 32.112903
| 101
| 0.500753
|
kyungminlee
|
1880424f60d56103a862c1621422485c864059af
| 12,962
|
cpp
|
C++
|
sta-src/Loitering/loiteringTLE.cpp
|
hoehnp/SpaceDesignTool
|
9abd34048274b2ce9dbbb685124177b02d6a34ca
|
[
"IJG"
] | 6
|
2018-09-05T12:41:59.000Z
|
2021-07-01T05:34:23.000Z
|
sta-src/Loitering/loiteringTLE.cpp
|
hoehnp/SpaceDesignTool
|
9abd34048274b2ce9dbbb685124177b02d6a34ca
|
[
"IJG"
] | 2
|
2015-02-07T19:09:21.000Z
|
2015-08-14T03:15:42.000Z
|
sta-src/Loitering/loiteringTLE.cpp
|
hoehnp/SpaceDesignTool
|
9abd34048274b2ce9dbbb685124177b02d6a34ca
|
[
"IJG"
] | 2
|
2015-03-25T15:50:31.000Z
|
2017-12-06T12:16:47.000Z
|
/*
This program is free software; you can redistribute it and/or modify it under
the terms of the European Union Public Licence - EUPL v.1.1 as published by
the European Commission.
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 European Union Public Licence - EUPL v.1.1
for more details.
You should have received a copy of the European Union Public Licence - EUPL v.1.1
along with this program.
Further information about the European Union Public Licence - EUPL v.1.1 can
also be found on the world wide web at http://ec.europa.eu/idabc/eupl
*/
/*
------ Copyright (C) 2010 STA Steering Board (space.trajectory.analysis AT gmail.com) ----
*/
/*
------------------ Author: Guillermo Ortega -------------------
------------------ Affiliation: European Space Agency (ESA) -------------------
-----------------------------------------------------------------------------------
*/
#include "Loitering/loiteringTLE.h"
#include "Main/scenariotree.h"
#include "Scenario/scenario.h"
#include "Astro-Core/date.h"
#include "Astro-Core/stacoordsys.h"
#include "Astro-Core/calendarTOjulian.h"
#include "thirdparty/noradtle/norad.h"
#include <QtGui>
#include <iostream>
#include <QTextStream>
#include "ui_loiteringTLE.h"
// The maximum number of steps allowed for a propagation; the user should be allowed
// to adjust this.
static const int MAX_OUTPUT_STEPS = 1000000;
QT_BEGIN_NAMESPACE
class QMimeData;
QT_END_NAMESPACE
class DropArea;
LoiteringTLEDialog::LoiteringTLEDialog(ScenarioTree* parent) :
QDialog(parent)
{
setupUi(this);
// Set up the input validators
QDoubleValidator* angleValidator = new QDoubleValidator(this);
angleValidator->setBottom(0.0);
angleValidator->setTop(360.0);
QDoubleValidator* positiveDoubleValidator = new QDoubleValidator(this);
positiveDoubleValidator->setBottom(0.0);
QDoubleValidator* zeroToOneValidator = new QDoubleValidator(this);
zeroToOneValidator->setBottom(0.0);
zeroToOneValidator->setTop(0.9999);
QDoubleValidator* minusOneToOneValidator = new QDoubleValidator(this);
minusOneToOneValidator->setBottom(-1.0);
minusOneToOneValidator->setTop(1.0);
TimeStepLineEdit->setValidator(positiveDoubleValidator);
// This creates the drop area inside a QFormLayout called "DropTLEhere" in the UI file
dropArea = new DropArea;
dropArea->setMaximumSize(106, 55); dropArea->setMinimumSize(106, 55); // Set the size
DropTLEhere->addWidget(dropArea); //Add the widget into the desired area
// Feeding back what we read as TLE file
connect(dropArea, SIGNAL(changed(const QMimeData *)), this, SLOT(on_TLE_dropped(const QMimeData *)));
}
LoiteringTLEDialog::~LoiteringTLEDialog()
{
}
/////////////////////////////////// FUNCTIONS ///////////////////////////////////
bool LoiteringTLEDialog::loadValues(ScenarioLoiteringTLEType* loiteringTLE)
{
// Loading the time line and the time step
ScenarioTimeLine* timeLine = loiteringTLE->TimeLine().data();
StartDateTimeEdit->setDateTime(timeLine->StartTime());
EndDateTimeEdit->setDateTime(timeLine->EndTime());
TimeStepLineEdit->setText(QString::number(timeLine->StepTime()));
TLEline0Edit->setText(loiteringTLE->tleLine0());
TLEline1Edit->setText(loiteringTLE->tleLine1());
TLEline2Edit->setText(loiteringTLE->tleLine2());
//loiteringAspectTLE.loadValueCentralBody("Earth");
ScenarioElementIdentifierType* arcIdentifier = loiteringTLE->ElementIdentifier().data();
LoiteringTLEDialog::loadValues(arcIdentifier);
return true;
} // End of LoiteringTLEDialog::loadValues
void LoiteringTLEDialog::on_LoadTLEpushButton_clicked()
{
QTextStream out (stdout);
QString TLEFileName;
QString TLE_line_1;
QString TLE_line_2;
// Loading now the TLE file
QString CompleteTLEFileName = QFileDialog::getOpenFileName(this, tr("Select TLE File"),
QString("./TLEs/"),
tr("TLEs (*.tle *.TLE)"));
if (!CompleteTLEFileName.isEmpty())
{
// Strip away the path--we just want the filename
if (CompleteTLEFileName.contains('/'))
{
TLEFileName = CompleteTLEFileName.remove(0, TLEFileName.lastIndexOf('/') + 1);
//out << "TLEFileName: " << TLEFileName << endl;
};
// Reading the TLE file
QFile TLEfile(CompleteTLEFileName);
TLEfile.open(QIODevice::ReadOnly);
QTextStream StreamWithTLEs(&TLEfile);
QString NameOfParticipant = StreamWithTLEs.readLine();
TLE_line_1 = StreamWithTLEs.readLine();
TLE_line_2 = StreamWithTLEs.readLine();
TLEfile.close();
//Updating the GUI
LoiteringTLEDialog::TLEline0Edit->setText(NameOfParticipant);
LoiteringTLEDialog::TLEline1Edit->setText(TLE_line_1);
LoiteringTLEDialog::TLEline2Edit->setText(TLE_line_2);
}
}
bool LoiteringTLEDialog::saveValues(ScenarioLoiteringTLEType* loiteringTLE)
{
// Loading the time line and the time step
ScenarioTimeLine* timeLine = loiteringTLE->TimeLine().data();
// Saving the time line that constains start date, end date and time step
timeLine->setStartTime(StartDateTimeEdit->dateTime());
timeLine->setEndTime(EndDateTimeEdit->dateTime());
timeLine->setStepTime(TimeStepLineEdit->text().toDouble());
// Saving now the TLE parameters
loiteringTLE->setTleLine0(TLEline0Edit->text()); //The name of the vehicle
loiteringTLE->setTleLine1(TLEline1Edit->text()); //The first TLE line
loiteringTLE->setTleLine2(TLEline2Edit->text()); //The second TLE line
ScenarioElementIdentifierType* identifier = loiteringTLE->ElementIdentifier().data();
LoiteringTLEDialog::saveValues(identifier);
return true;
}
void LoiteringTLEDialog::on_TLE_dropped(const QMimeData *mimeData)
{
QTextStream out (stdout);
QString TLE_line_0;
QString TLE_line_1;
QString TLE_line_2;
QString DroppedTLEFileName;
QList<QUrl> urlList = mimeData->urls();
for (int i = 0; i < urlList.size() && i < 32; ++i)
{
QString url = urlList.at(i).path();
DroppedTLEFileName += url;
}
if (!DroppedTLEFileName.isEmpty())
{
// Reading the TLE file
QFile TLEfile(DroppedTLEFileName);
TLEfile.open(QIODevice::ReadOnly);
QTextStream StreamWithTLEs(&TLEfile);
TLE_line_0 = StreamWithTLEs.readLine();
TLE_line_1 = StreamWithTLEs.readLine();
TLE_line_2 = StreamWithTLEs.readLine();
TLEfile.close();
LoiteringTLEDialog::TLEline0Edit->setText(TLE_line_0);
LoiteringTLEDialog::TLEline1Edit->setText(TLE_line_1);
LoiteringTLEDialog::TLEline2Edit->setText(TLE_line_2);
}
}
// This creates a generic drop area
DropArea::DropArea(QWidget *parent)
: QLabel(parent)
{
//setFrameStyle(QFrame::Sunken | QFrame::StyledPanel);
setFrameStyle(QFrame::Sunken);
setAlignment(Qt::AlignCenter);
setAcceptDrops(true);
setAutoFillBackground(true);
clear();
}
void DropArea::dragEnterEvent(QDragEnterEvent *event)
{
setText(tr("drop TLE"));
setBackgroundRole(QPalette::Highlight);
event->acceptProposedAction();
emit changed(event->mimeData());
}
void DropArea::dragMoveEvent(QDragMoveEvent *event)
{
event->acceptProposedAction();
}
// What to do when dropping a file into the drop area
void DropArea::dropEvent(QDropEvent *event)
{
QTextStream out (stdout);
QString DroppedTLEFileName, TLEFileName;
QString TLE_line_0;
QString TLE_line_1;
QString TLE_line_2;
const QMimeData *mimeData = event->mimeData();
QList<QUrl> urlList = mimeData->urls();
for (int i = 0; i < urlList.size() && i < 32; ++i)
{
QString url = urlList.at(i).path();
DroppedTLEFileName += url;
}
// Strip away the path--we just want the filename
if (DroppedTLEFileName.contains('/'))
{
TLEFileName = DroppedTLEFileName.remove(0, DroppedTLEFileName.lastIndexOf('/') + 1);
//out << "TLEFileName: " << TLEFileName << endl;
};
setText(TLEFileName);
setBackgroundRole(QPalette::Dark);
event->acceptProposedAction();
}
void DropArea::dragLeaveEvent(QDragLeaveEvent *event)
{
clear();
event->accept();
}
void DropArea::clear()
{
setText(tr("drop TLE"));
setBackgroundRole(QPalette::Dark);
emit changed();
}
/////////////////////////////////////// PropagateLoiteringTLETrajectory /////////////////////////////
bool
PropagateLoiteringTLETrajectory(ScenarioLoiteringTLEType* loiteringTLE,
QList<double>& sampleTimes,
QList<sta::StateVector>& samples,
PropagationFeedback& propFeedback)
{
double timelineDuration = loiteringTLE->TimeLine()->StartTime().secsTo(loiteringTLE->TimeLine()->EndTime());
if (timelineDuration < 0)
{
propFeedback.raiseError(QObject::tr("End time before initial time"));
return true;
}
double dt = loiteringTLE->TimeLine()->StepTime();
tle_t tle;
int tleError = parse_elements(loiteringTLE->tleLine1().toAscii().data(), loiteringTLE->tleLine2().toAscii().data(), &tle);
if (tleError != 0)
{
if (tleError == 3)
propFeedback.raiseError(QObject::tr("TLE is not parseable."));
else
propFeedback.raiseError(QObject::tr("Checksum error in TLE.\n"));
//return initialState;
return true;
}
if (dt == 0.0)
{
propFeedback.raiseError(QObject::tr("Time step is zero!"));
//return initialState;
return true;
}
if (timelineDuration / dt > MAX_OUTPUT_STEPS)
{
propFeedback.raiseError(QObject::tr("Number of propagation steps exceeds %1. Try increasing the simulation time step.").arg(MAX_OUTPUT_STEPS));
//return initialState;
return true;
}
int ephemeris = TLE_EPHEMERIS_TYPE_SGP4;
bool isDeep = select_ephemeris(&tle) != 0;
if (isDeep)
{
ephemeris = TLE_EPHEMERIS_TYPE_SDP4;
}
else
{
ephemeris = TLE_EPHEMERIS_TYPE_SGP4;
}
double satelliteParams[N_SAT_PARAMS];
switch (ephemeris)
{
case TLE_EPHEMERIS_TYPE_SGP:
SGP_init(satelliteParams, &tle);
break;
case TLE_EPHEMERIS_TYPE_SGP4:
SGP4_init(satelliteParams, &tle);
break;
case TLE_EPHEMERIS_TYPE_SGP8:
SGP8_init(satelliteParams, &tle);
break;
case TLE_EPHEMERIS_TYPE_SDP4:
SDP4_init(satelliteParams, &tle);
break;
case TLE_EPHEMERIS_TYPE_SDP8:
SDP8_init(satelliteParams, &tle);
break;
}
double startTimeJd = sta::CalendarToJd(loiteringTLE->TimeLine()->StartTime());
double timeBase = (startTimeJd - tle.epoch) * 1440.0;
sta::StateVector state;
// Loop written to ensure that we always sample right to the end of the
// requested span.
for (double t = 0.0; t < timelineDuration + dt; t += dt)
{
double tclamp = std::min(t, timelineDuration);
// Time since epoch
double t1 = timeBase + tclamp / 60.0;
switch (ephemeris)
{
case TLE_EPHEMERIS_TYPE_SGP:
SGP(t1, &tle, satelliteParams, state.position.data(), state.velocity.data());
break;
case TLE_EPHEMERIS_TYPE_SGP4:
SGP4(t1, &tle, satelliteParams, state.position.data(), state.velocity.data());
break;
case TLE_EPHEMERIS_TYPE_SGP8:
SGP8(t1, &tle, satelliteParams, state.position.data(), state.velocity.data());
break;
case TLE_EPHEMERIS_TYPE_SDP4:
SDP4(t1, &tle, satelliteParams, state.position.data(), state.velocity.data());
break;
case TLE_EPHEMERIS_TYPE_SDP8:
SDP8(t1, &tle, satelliteParams, state.position.data(), state.velocity.data());
break;
}
// SGP output velocities are in km/minute; convert to km/sec.
state.velocity /= 60.0;
//sampleTimes << m_timeline->startTime() + sta::secsToDays(tclamp);
sampleTimes << sta::JdToMjd(startTimeJd) + sta::secsToDays(tclamp);
samples << state;
}
return true;
}
bool LoiteringTLEDialog::loadValues(ScenarioElementIdentifierType* arcIdentifier)
{
QString theArcName = arcIdentifier->Name();
loiteringAspectTLE.loadValueArcName(theArcName);
QString theArcColor = arcIdentifier->colorName();
loiteringAspectTLE.loadValueArcColor(theArcColor);
QString theArcModel = arcIdentifier->modelName();
loiteringAspectTLE.loadValueArcModel(theArcModel);
}
bool LoiteringTLEDialog::saveValues(ScenarioElementIdentifierType* arcIdentifier)
{
// The arc name
QString theArcName = loiteringAspectTLE.saveValueArcName();
arcIdentifier->setName(theArcName);
// The color
QString theColorName = loiteringAspectTLE.saveValueArcColor();
arcIdentifier->setColorName(theColorName);
// The model
QString theModelName = loiteringAspectTLE.saveValueArcModel();
arcIdentifier->setModelName(theModelName);
}
void LoiteringTLEDialog::on_pushButtonAspectTLE_clicked()
{
// loiteringAspectTLE.removePlanetsFromComboBoxForTLEs();
// loiteringAspectTLE.removePlanetsFromComboBoxForTLEs();
// loiteringAspectTLE.removePlanetsFromComboBoxForTLEs();
// loiteringAspectTLE.removePlanetsFromComboBoxForTLEs();
loiteringAspectTLE.exec();
}
| 27.935345
| 145
| 0.704212
|
hoehnp
|
1881eee331797c9274dd9381422225cbcb31e705
| 1,913
|
hpp
|
C++
|
lib/dmitigr/net/client.hpp
|
dmitigr/pgfe
|
c5dd21c0f4949cf6ea2e71368e3c6025c3daf69a
|
[
"Zlib"
] | 121
|
2018-05-23T19:51:00.000Z
|
2022-03-12T13:05:34.000Z
|
lib/dmitigr/net/client.hpp
|
dmitigr/pgfe
|
c5dd21c0f4949cf6ea2e71368e3c6025c3daf69a
|
[
"Zlib"
] | 36
|
2019-11-11T03:25:10.000Z
|
2022-03-28T21:54:07.000Z
|
lib/dmitigr/net/client.hpp
|
dmitigr/pgfe
|
c5dd21c0f4949cf6ea2e71368e3c6025c3daf69a
|
[
"Zlib"
] | 17
|
2018-05-24T04:01:28.000Z
|
2022-01-16T13:22:26.000Z
|
// -*- C++ -*-
// Copyright (C) Dmitry Igrishin
// For conditions of distribution and use, see files LICENSE.txt or net.hpp
#ifndef DMITIGR_NET_CLIENT_HPP
#define DMITIGR_NET_CLIENT_HPP
#include "dmitigr/net/descriptor.hpp"
#include "dmitigr/net/endpoint.hpp"
#include "dmitigr/net/socket.hpp"
#include <cassert>
#include <memory>
#include <utility>
namespace dmitigr::net {
/**
* @brief Client options.
*/
class Client_options final {
public:
#ifdef _WIN32
/// wnp.
explicit Client_options(std::string pipe_name)
: endpoint_{std::move(pipe_name)}
{}
#else
/// uds.
Client_options(std::filesystem::path path)
: endpoint_{std::move(path)}
{}
#endif
/// net.
Client_options(std::string address, int port)
: endpoint_{std::move(address), port}
{}
/// @return The endpoint.
const net::Endpoint& endpoint() const
{
return endpoint_;
}
private:
Endpoint endpoint_;
};
/**
* @returns A newly created descriptor connected over TCP (or Named Pipe)
* to `remote` endpoint.
*/
inline std::unique_ptr<Descriptor> make_tcp_connection(const Client_options& opts)
{
using Sockdesc = detail::socket_Descriptor;
static const auto make_tcp_connection = [](const Socket_address& addr)
{
auto result = make_tcp_socket(addr.family());
connect_socket(result, addr);
return result;
};
const auto& remote = opts.endpoint();
switch (remote.communication_mode()) {
#ifdef _WIN32
case Communication_mode::wnp: {
throw std::logic_error{"not implemented"};
return nullptr;
}
#else
case Communication_mode::uds:
return std::make_unique<Sockdesc>(make_tcp_connection({remote.uds_path().value()}));
#endif
case Communication_mode::net:
return std::make_unique<Sockdesc>(make_tcp_connection({remote.net_address().value(), remote.net_port().value()}));
}
assert(false);
}
} // namespace dmitigr::net
#endif // DMITIGR_NET_CLIENT_HPP
| 22.77381
| 118
| 0.70413
|
dmitigr
|
18832373562193ffa9ddb902e43c611ce75a84dc
| 6,186
|
cpp
|
C++
|
packages/Adapters/C_API/src/DTK_POD_PointCloudEntityImpl.cpp
|
chiao45/DataTransferKit
|
51923eb08ccd4c12c5a5ea5f136f5ccbbbeb6243
|
[
"BSD-3-Clause"
] | 1
|
2020-07-26T03:50:31.000Z
|
2020-07-26T03:50:31.000Z
|
packages/Adapters/C_API/src/DTK_POD_PointCloudEntityImpl.cpp
|
chiao45/DataTransferKit
|
51923eb08ccd4c12c5a5ea5f136f5ccbbbeb6243
|
[
"BSD-3-Clause"
] | null | null | null |
packages/Adapters/C_API/src/DTK_POD_PointCloudEntityImpl.cpp
|
chiao45/DataTransferKit
|
51923eb08ccd4c12c5a5ea5f136f5ccbbbeb6243
|
[
"BSD-3-Clause"
] | 1
|
2018-07-09T18:39:38.000Z
|
2018-07-09T18:39:38.000Z
|
//---------------------------------------------------------------------------//
/*
Copyright (c) 2012, Stuart R. Slattery
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 the University of Wisconsin - Madison nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
//---------------------------------------------------------------------------//
/*!
* \brief DTK_POD_PointCloudEntityImpl.cpp
* \author Stuart R. Slattery
* \brief Point cloud entity implementation.
*/
//---------------------------------------------------------------------------//
#include <limits>
#include "DTK_DBC.hpp"
#include "DTK_POD_PointCloudEntityImpl.hpp"
namespace DataTransferKit
{
//---------------------------------------------------------------------------//
// Constructor.
POD_PointCloudEntityImpl::POD_PointCloudEntityImpl(
const double *cloud_coords, const unsigned num_points, const int space_dim,
const DataLayout layout, const EntityId global_id, const int local_id,
const int owner_rank )
: d_cloud_coords( cloud_coords )
, d_offsets( space_dim, -1 )
, d_global_id( global_id )
, d_owner_rank( owner_rank )
{
DTK_REQUIRE( INTERLEAVED == layout || BLOCKED == layout );
// Calculate the offsets into the coordinates array.
for ( int d = 0; d < space_dim; ++d )
{
d_offsets[d] = ( INTERLEAVED == layout ) ? space_dim * local_id + d
: d * num_points + local_id;
}
}
//---------------------------------------------------------------------------//
// Get the coordinates of the point in a given dimension.
double POD_PointCloudEntityImpl::coord( const int dim ) const
{
DTK_REQUIRE( dim < physicalDimension() );
return d_cloud_coords[d_offsets[dim]];
}
//---------------------------------------------------------------------------//
// Get the unique global identifier for the entity.
EntityId POD_PointCloudEntityImpl::id() const { return d_global_id; }
//---------------------------------------------------------------------------//
// Get the parallel rank that owns the entity.
int POD_PointCloudEntityImpl::ownerRank() const { return d_owner_rank; }
//---------------------------------------------------------------------------//
// Get the topological dimension of the entity.
int POD_PointCloudEntityImpl::topologicalDimension() const { return 0; }
//---------------------------------------------------------------------------//
// Return the physical dimension of the entity.
int POD_PointCloudEntityImpl::physicalDimension() const
{
return d_offsets.size();
}
//---------------------------------------------------------------------------//
// Return the Cartesian bounding box around an entity.
void POD_PointCloudEntityImpl::boundingBox(
Teuchos::Tuple<double, 6> &bounds ) const
{
for ( int d = 0; d < physicalDimension(); ++d )
{
bounds[d] = d_cloud_coords[d_offsets[d]];
bounds[d + 3] = bounds[d];
}
for ( int d = physicalDimension(); d < 3; ++d )
{
bounds[d] = 0.0;
bounds[d + 3] = bounds[d];
}
}
//---------------------------------------------------------------------------//
// Determine if an entity is in the block with the given id.
bool POD_PointCloudEntityImpl::inBlock( const int block_id ) const
{
return false;
}
//---------------------------------------------------------------------------//
// Determine if an entity is on the boundary with the given id.
bool POD_PointCloudEntityImpl::onBoundary( const int boundary_id ) const
{
return false;
}
//---------------------------------------------------------------------------//
// Get the extra data on the entity.
Teuchos::RCP<EntityExtraData> POD_PointCloudEntityImpl::extraData() const
{
return Teuchos::rcp( const_cast<POD_PointCloudEntityImpl *>( this ),
false );
}
//---------------------------------------------------------------------------//
// Provide a verbose description of the object.
void POD_PointCloudEntityImpl::describe(
Teuchos::FancyOStream &out,
const Teuchos::EVerbosityLevel /*verb_level*/ ) const
{
out << std::endl;
out << "---" << std::endl;
out << "POD Point Cloud Entity" << std::endl;
out << "Id: " << id() << std::endl;
out << "Owner rank: " << ownerRank() << std::endl;
out << "Point coords: ";
for ( int d = 0; d < physicalDimension(); ++d )
{
out << d_cloud_coords[d_offsets[d]] << " ";
}
out << std::endl;
}
//---------------------------------------------------------------------------//
} // end namespace DataTransferKit
//---------------------------------------------------------------------------//
// end DTK_POD_PointCloudEntityImpl.cpp
//---------------------------------------------------------------------------//
| 37.26506
| 79
| 0.54882
|
chiao45
|
1884a96f39c161d0349b994cbd34a098c2a047f4
| 21,721
|
cpp
|
C++
|
cvrin.cpp
|
AlexeyAkhunov/espresso
|
5c7a57ad6fde2fb3af46171ca1a5c78d250716e9
|
[
"MIT"
] | null | null | null |
cvrin.cpp
|
AlexeyAkhunov/espresso
|
5c7a57ad6fde2fb3af46171ca1a5c78d250716e9
|
[
"MIT"
] | null | null | null |
cvrin.cpp
|
AlexeyAkhunov/espresso
|
5c7a57ad6fde2fb3af46171ca1a5c78d250716e9
|
[
"MIT"
] | null | null | null |
/*
module: cvrin.c
purpose: cube and cover input routines
*/
#include <iostream>
#include <cmath>
#include "espresso.h"
static bool line_length_error;
static int lineno;
void skip_line(std::istream& fpin, std::ostream& fpout, bool echo)
{
int ch;
while ((ch=fpin.get()) != EOF && ch != '\n')
if (echo)
fpout.put(ch);
if (echo)
fpout.put('\n');
lineno++;
}
char *get_word(std::istream& fp, char* word)
{
int ch, i = 0;
while ((ch = fp.get()) != EOF && isspace(ch))
;
word[i++] = ch;
while ((ch = fp.get()) != EOF && ! isspace(ch))
word[i++] = ch;
word[i++] = '\0';
return word;
}
/*
* Yes, I know this routine is a mess
*/
void read_cube(std::istream& fp, pPLA PLA)
{
int var, i;
pcube cf = cube.temp[0], cr = cube.temp[1], cd = cube.temp[2];
bool savef = FALSE, saved = FALSE, saver = FALSE;
char token[256]; /* for kiss read hack */
int varx, first, last, offset; /* for kiss read hack */
set_clear(cf, cube.size);
/* Loop and read binary variables */
for(var = 0; var < cube.num_binary_vars; var++)
switch(fp.get()) {
case EOF:
goto bad_char;
case '\n':
if (! line_length_error)
fprintf(stderr, "product term(s) %s, line %d\n",
"span more than one line (warning only)", lineno);
line_length_error = FALSE;
lineno++;
var--;
break;
case ' ': case '|': case '\t':
var--;
break;
case '2': case '-':
set_insert(cf, var*2+1);
case '0':
set_insert(cf, var*2);
break;
case '1':
set_insert(cf, var*2+1);
break;
case '?':
break;
default:
goto bad_char;
}
/* Loop for the all but one of the multiple-valued variables */
for(var = cube.num_binary_vars; var < cube.num_vars-1; var++)
/* Read a symbolic multiple-valued variable */
if (cube.part_size[var] < 0) {
fp >> token;
if (equal(token, "-") || equal(token, "ANY")) {
if (kiss && var == cube.num_vars - 2) {
/* leave it empty */
} else {
/* make it full */
set_or(cf, cf, cube.var_mask[var]);
}
} else if (equal(token, "~")) {
;
/* leave it empty ... (?) */
} else {
if (kiss && var == cube.num_vars - 2)
varx = var - 1, offset = abs(cube.part_size[var-1]);
else
varx = var, offset = 0;
/* Find the symbolic label in the label table */
first = cube.first_part[varx];
last = cube.last_part[varx];
for(i = first; i <= last; i++)
if (PLA->label[i] == (char *) NULL) {
PLA->label[i] = strcpy(new char[strlen(token)+1], token); /* add new label */
set_insert(cf, i+offset);
break;
} else if (equal(PLA->label[i], token)) {
set_insert(cf, i+offset); /* use column i */
break;
}
if (i > last) {
fprintf(stderr,
"declared size of variable %d (counting from variable 0) is too small\n", var);
exit(-1);
}
}
} else for(i = cube.first_part[var]; i <= cube.last_part[var]; i++)
switch (fp.get()) {
case EOF:
goto bad_char;
case '\n':
if (! line_length_error)
fprintf(stderr, "product term(s) %s, line %d\n",
"span more than one line (warning only)", lineno);
line_length_error = FALSE;
lineno++;
i--;
break;
case ' ': case '|': case '\t':
i--;
break;
case '1':
set_insert(cf, i);
case '0':
break;
default:
goto bad_char;
}
/* Loop for last multiple-valued variable */
if (kiss) {
saver = savef = TRUE;
(void) set_xor(cr, cf, cube.var_mask[cube.num_vars - 2]);
} else
set_copy(cr, cf);
set_copy(cd, cf);
for(i = cube.first_part[var]; i <= cube.last_part[var]; i++)
switch (fp.get()) {
case EOF:
goto bad_char;
case '\n':
if (! line_length_error)
fprintf(stderr, "product term(s) %s, line %d\n",
"span more than one line (warning only)", lineno);
line_length_error = FALSE;
lineno++;
i--;
break;
case ' ': case '|': case '\t':
i--;
break;
case '4': case '1':
if (PLA->pla_type & F_type)
set_insert(cf, i), savef = TRUE;
break;
case '3': case '0':
if (PLA->pla_type & R_type)
set_insert(cr, i), saver = TRUE;
break;
case '2': case '-':
if (PLA->pla_type & D_type)
set_insert(cd, i), saved = TRUE;
case '~':
break;
default:
goto bad_char;
}
if (savef) PLA->F = sf_addset(PLA->F, cf);
if (saved) PLA->D = sf_addset(PLA->D, cd);
if (saver) PLA->R = sf_addset(PLA->R, cr);
return;
bad_char:
fprintf(stderr, "(warning): input line #%d ignored\n", lineno);
skip_line(fp, std::cout, true);
return;
}
void parse_pla(std::istream& fp, pPLA PLA)
{
int i, var, ch, np, last;
char word[256];
lineno = 1;
line_length_error = FALSE;
loop:
switch(ch = fp.get()) {
case EOF:
return;
case '\n':
lineno++;
case ' ': case '\t': case '\f': case '\r':
break;
case '#':
(void) fp.unget();
skip_line(fp, std::cout, echo_comments);
break;
case '.':
/* .i gives the cube input size (binary-functions only) */
if (equal(get_word(fp, word), "i")) {
if (cube.fullset != NULL) {
fprintf(stderr, "extra .i ignored\n");
skip_line(fp, std::cout, /* echo */ false);
} else {
fp >> cube.num_binary_vars;
if (!fp.good()) {
fatal("error reading .i");
}
cube.num_vars = cube.num_binary_vars + 1;
cube.part_size = new int[cube.num_vars];
}
/* .o gives the cube output size (binary-functions only) */
} else if (equal(word, "o")) {
if (cube.fullset != NULL) {
fprintf(stderr, "extra .o ignored\n");
skip_line(fp, std::cout, /* echo */ false);
} else {
if (cube.part_size == NULL) {
fatal(".o cannot appear before .i");
}
fp >> cube.part_size[cube.num_vars-1];
if (!fp.good())
fatal("error reading .o");
cube_setup();
PLA_labels(PLA);
}
/* .mv gives the cube size for a multiple-valued function */
} else if (equal(word, "mv")) {
if (cube.fullset != NULL) {
fprintf(stderr, "extra .mv ignored\n");
skip_line(fp, std::cout, /* echo */ false);
} else {
if (cube.part_size != nullptr)
fatal("cannot mix .i and .mv");
fp >> cube.num_vars >> cube.num_binary_vars;
if (!fp.good())
fatal("error reading .mv");
if (cube.num_binary_vars < 0)
fatal("num_binary_vars (second field of .mv) cannot be negative");
if (cube.num_vars < cube.num_binary_vars)
fatal(
"num_vars (1st field of .mv) must exceed num_binary_vars (2nd field of .mv)");
cube.part_size = new int[cube.num_vars];
for(var=cube.num_binary_vars; var < cube.num_vars; var++) {
fp >> cube.part_size[var];
if (!fp.good()) {
fatal("error reading .mv");
}
}
cube_setup();
PLA_labels(PLA);
}
/* .p gives the number of product terms -- we ignore it */
} else if (equal(word, "p")) {
fp >> np;
}
/* .e and .end specify the end of the file */
else if (equal(word, "e") || equal(word,"end")) {
return;
}
/* .kiss turns on the kiss-hack option */
else if (equal(word, "kiss")) {
kiss = true;
}
/* .type specifies a logical type for the PLA */
else if (equal(word, "type")) {
(void) get_word(fp, word);
for(i = 0; pla_types[i].key != 0; i++)
if (equal(pla_types[i].key + 1, word)) {
PLA->pla_type = pla_types[i].value;
break;
}
if (pla_types[i].key == 0)
fatal("unknown type in .type command");
/* parse the labels */
} else if (equal(word, "ilb")) {
if (cube.fullset == NULL)
fatal("PLA size must be declared before .ilb or .ob");
if (PLA->label == NULL)
PLA_labels(PLA);
for(var = 0; var < cube.num_binary_vars; var++) {
(void) get_word(fp, word);
i = cube.first_part[var];
PLA->label[i+1] = strcpy(new char[strlen(word)+1], word);
PLA->label[i] = new char[strlen(word) + 6];
(void) sprintf(PLA->label[i], "%s.bar", word);
}
} else if (equal(word, "ob")) {
if (cube.fullset == NULL)
fatal("PLA size must be declared before .ilb or .ob");
if (PLA->label == NULL)
PLA_labels(PLA);
var = cube.num_vars - 1;
for(i = cube.first_part[var]; i <= cube.last_part[var]; i++) {
(void) get_word(fp, word);
PLA->label[i] = strcpy(new char[strlen(word)+1], word);
}
/* .label assigns labels to multiple-valued variables */
} else if (equal(word, "label")) {
if (cube.fullset == nullptr) {
fatal("PLA size must be declared before .label");
}
if (PLA->label == nullptr) {
PLA_labels(PLA);
}
char vstr[5];
fp.getline(vstr, 4);
fp >> var;
if (strcmp("var=",vstr) || !fp.good()) {
fatal("Error reading labels");
}
for(i = cube.first_part[var]; i <= cube.last_part[var]; i++) {
(void) get_word(fp, word);
PLA->label[i] = strcpy(new char[strlen(word)+1], word);
}
} else if (equal(word, "symbolic")) {
symbolic_t *newlist, *p1;
if (read_symbolic(fp, PLA, word, &newlist)) {
if (PLA->symbolic == nullptr) {
PLA->symbolic = newlist;
} else {
for(p1=PLA->symbolic;p1->next!=nullptr;p1=p1->next);
p1->next = newlist;
}
} else {
fatal("error reading .symbolic");
}
} else if (equal(word, "symbolic-output")) {
symbolic_t *newlist, *p1;
if (read_symbolic(fp, PLA, word, &newlist)) {
if (PLA->symbolic_output == nullptr) {
PLA->symbolic_output = newlist;
} else {
for(p1=PLA->symbolic_output;p1->next!=nullptr;p1=p1->next);
p1->next = newlist;
}
} else {
fatal("error reading .symbolic-output");
}
/* .phase allows a choice of output phases */
} else if (equal(word, "phase")) {
if (cube.fullset == NULL)
fatal("PLA size must be declared before .phase");
if (PLA->phase != NULL) {
fprintf(stderr, "extra .phase ignored\n");
skip_line(fp, std::cout, /* echo */ false);
} else {
do ch = fp.get(); while (ch == ' ' || ch == '\t');
(void) fp.unget();
PLA->phase = set_save(cube.fullset);
last = cube.last_part[cube.num_vars - 1];
for(i=cube.first_part[cube.num_vars - 1]; i <= last; i++)
if ((ch = fp.get()) == '0')
set_remove(PLA->phase, i);
else if (ch != '1')
fatal("only 0 or 1 allowed in phase description");
}
/* .pair allows for bit-pairing input variables */
} else if (equal(word, "pair")) {
int j;
if (PLA->pair != NULL) {
fprintf(stderr, "extra .pair ignored\n");
} else {
ppair pair;
PLA->pair = pair = new pair_t();
fp >> pair->cnt;
if (!fp.good()) {
fatal("syntax error in .pair");
}
pair->var1 = new int[pair->cnt];
pair->var2 = new int[pair->cnt];
for(i = 0; i < pair->cnt; i++) {
(void) get_word(fp, word);
if (word[0] == '(') (void) strcpy(word, word+1);
if (label_index(PLA, word, &var, &j)) {
pair->var1[i] = var+1;
} else {
fatal("syntax error in .pair");
}
(void) get_word(fp, word);
if (word[strlen(word)-1] == ')') {
word[strlen(word)-1]='\0';
}
if (label_index(PLA, word, &var, &j)) {
pair->var2[i] = var+1;
} else {
fatal("syntax error in .pair");
}
}
}
} else {
if (echo_unknown_commands) {
printf("%c%s ", ch, word);
}
skip_line(fp, std::cout, echo_unknown_commands);
}
break;
default:
(void) fp.unget();
if (cube.fullset == NULL) {
/* fatal("unknown PLA size, need .i/.o or .mv");*/
if (echo_comments) {
putchar('#');
}
skip_line(fp, std::cout, echo_comments);
break;
}
if (PLA->F == NULL) {
PLA->F = new_cover(10);
PLA->D = new_cover(10);
PLA->R = new_cover(10);
}
read_cube(fp, PLA);
}
goto loop;
}
/*
read_pla -- read a PLA from a file
Input stops when ".e" is encountered in the input file, or upon reaching
end of file.
Returns the PLA in the variable PLA after massaging the "symbolic"
representation into a positional cube notation of the ON-set, OFF-set,
and the DC-set.
needs_dcset and needs_offset control the computation of the OFF-set
and DC-set (i.e., if either needs to be computed, then it will be
computed via complement only if the corresponding option is TRUE.)
pla_type specifies the interpretation to be used when reading the
PLA.
The phase of the output functions is adjusted according to the
global option "pos" or according to an imbedded .phase option in
the input file. Note that either phase option implies that the
OFF-set be computed regardless of whether the caller needs it
explicitly or not.
Bit pairing of the binary variables is performed according to an
imbedded .pair option in the input file.
The global cube structure also reflects the sizes of the PLA which
was just read. If these fields have already been set, then any
subsequent PLA must conform to these sizes.
The global flags trace and summary control the output produced
during the read.
Returns a status code as a result:
EOF (-1) : End of file reached before any data was read
> 0 : Operation successful
*/
int read_pla(std::istream& fp, bool needs_dcset, bool needs_offset, int pla_type, pPLA * PLA_return)
{
pPLA PLA;
int i, second, third;
cost_t cost;
/* Allocate and initialize the PLA structure */
PLA = *PLA_return = new_PLA();
PLA->pla_type = pla_type;
/* Read the pla */
auto time = ptime();
parse_pla(fp, PLA);
/* Check for nothing on the file -- implies reached EOF */
if (PLA->F == NULL) {
return EOF;
}
/* This hack merges the next-state field with the outputs */
for(i = 0; i < cube.num_vars; i++) {
cube.part_size[i] = abs(cube.part_size[i]);
}
if (kiss) {
third = cube.num_vars - 3;
second = cube.num_vars - 2;
if (cube.part_size[third] != cube.part_size[second]) {
fprintf(stderr," with .kiss option, third to last and second\n");
fprintf(stderr, "to last variables must be the same size.\n");
return EOF;
}
for(i = 0; i < cube.part_size[second]; i++) {
PLA->label[i + cube.first_part[second]] = strcpy(new char[strlen(PLA->label[i + cube.first_part[third]])+1], PLA->label[i + cube.first_part[third]]);
}
cube.part_size[second] += cube.part_size[cube.num_vars-1];
cube.num_vars--;
setdown_cube();
cube_setup();
}
if (trace) {
totals(time, READ_TIME, PLA->F, &cost);
}
/* Decide how to break PLA into ON-set, OFF-set and DC-set */
time = ptime();
if (pos || PLA->phase != nullptr || PLA->symbolic_output != nullptr) {
needs_offset = true;
}
if (needs_offset && (PLA->pla_type==F_type || PLA->pla_type==FD_type)) {
free_cover(PLA->R);
PLA->R = complement(cube2list(PLA->F, PLA->D));
} else if (needs_dcset && PLA->pla_type == FR_type) {
pcover X;
free_cover(PLA->D);
/* hack, why not? */
X = d1merge(sf_join(PLA->F, PLA->R), cube.num_vars - 1);
PLA->D = complement(cube1list(X));
free_cover(X);
} else if (PLA->pla_type == R_type || PLA->pla_type == DR_type) {
free_cover(PLA->F);
PLA->F = complement(cube2list(PLA->D, PLA->R));
}
if (trace) {
totals(time, COMPL_TIME, PLA->R, &cost);
}
/* Check for phase rearrangement of the functions */
if (pos) {
pcover onset = PLA->F;
PLA->F = PLA->R;
PLA->R = onset;
PLA->phase = new_cube();
set_diff(PLA->phase, cube.fullset, cube.var_mask[cube.num_vars-1]);
} else if (PLA->phase != NULL) {
(void) set_phase(PLA);
}
/* Setup minimization for two-bit decoders */
if (PLA->pair != (ppair) NULL) {
set_pair(PLA);
}
if (PLA->symbolic != nullptr) {
EXEC(map_symbolic(PLA), "MAP-INPUT ", PLA->F);
}
if (PLA->symbolic_output != nullptr) {
EXEC(map_output_symbolic(PLA), "MAP-OUTPUT ", PLA->F);
if (needs_offset) {
free_cover(PLA->R);
EXECUTE(PLA->R=complement(cube2list(PLA->F,PLA->D)), COMPL_TIME, PLA->R, cost);
}
}
std::cout << "After reading PLA\n";
//fprint_pla(std::cout, PLA, F_type);
return 1;
}
void PLA_summary(pPLA PLA)
{
int var, i;
symbolic_list_t *p2;
symbolic_t *p1;
printf("# PLA is %s", PLA->filename);
if (cube.num_binary_vars == cube.num_vars - 1)
printf(" with %d inputs and %d outputs\n",
cube.num_binary_vars, cube.part_size[cube.num_vars - 1]);
else {
printf(" with %d variables (%d binary, mv sizes",
cube.num_vars, cube.num_binary_vars);
for(var = cube.num_binary_vars; var < cube.num_vars; var++)
printf(" %d", cube.part_size[var]);
printf(")\n");
}
printf("# ON-set cost is %s\n", print_cost(PLA->F));
printf("# OFF-set cost is %s\n", print_cost(PLA->R));
printf("# DC-set cost is %s\n", print_cost(PLA->D));
if (PLA->phase != NULL)
printf("# phase is %s\n", pc1(PLA->phase));
if (PLA->pair != NULL) {
printf("# two-bit decoders:");
for(i = 0; i < PLA->pair->cnt; i++)
printf(" (%d %d)", PLA->pair->var1[i], PLA->pair->var2[i]);
printf("\n");
}
if (PLA->symbolic != nullptr) {
for(p1 = PLA->symbolic; p1 != nullptr; p1 = p1->next) {
printf("# symbolic: ");
for(p2=p1->symbolic_list; p2!=nullptr; p2=p2->next) {
printf(" %d", p2->variable);
}
printf("\n");
}
}
if (PLA->symbolic_output != nullptr) {
for(p1 = PLA->symbolic_output; p1 != nullptr; p1 = p1->next) {
printf("# output symbolic: ");
for(p2=p1->symbolic_list; p2!=nullptr; p2=p2->next) {
printf(" %d", p2->pos);
}
printf("\n");
}
}
(void) fflush(stdout);
}
pPLA new_PLA()
{
pPLA PLA;
PLA = new PLA_t();
PLA->F = PLA->D = PLA->R = (pcover) NULL;
PLA->phase = (pcube) NULL;
PLA->pair = (ppair) NULL;
PLA->label = (char **) NULL;
PLA->filename = (char *) NULL;
PLA->pla_type = 0;
PLA->symbolic = nullptr;
PLA->symbolic_output = nullptr;
return PLA;
}
void PLA_labels(pPLA PLA)
{
int i;
PLA->label = new char*[cube.size];
for(i = 0; i < cube.size; i++)
PLA->label[i] = (char *) NULL;
}
void free_PLA(pPLA PLA)
{
symbolic_list_t *p2, *p2next;
symbolic_t *p1, *p1next;
int i;
if (PLA->F != (pcover) NULL)
free_cover(PLA->F);
if (PLA->R != (pcover) NULL)
free_cover(PLA->R);
if (PLA->D != (pcover) NULL)
free_cover(PLA->D);
if (PLA->phase != (pcube) NULL)
free_cube(PLA->phase);
if (PLA->pair != (ppair) NULL) {
delete PLA->pair->var1;
delete PLA->pair->var2;
delete PLA->pair;
}
if (PLA->label != NULL) {
for(i = 0; i < cube.size; i++)
if (PLA->label[i] != NULL)
delete PLA->label[i];
delete PLA->label;
}
if (PLA->filename != NULL) {
delete PLA->filename;
}
for(p1 = PLA->symbolic; p1 != nullptr; p1 = p1next) {
for(p2 = p1->symbolic_list; p2 != nullptr; p2 = p2next) {
p2next = p2->next;
delete p2;
}
p1next = p1->next;
delete p1;
}
PLA->symbolic = nullptr;
for(p1 = PLA->symbolic_output; p1 != nullptr; p1 = p1next) {
for(p2 = p1->symbolic_list; p2 != nullptr; p2 = p2next) {
p2next = p2->next;
delete p2;
}
p1next = p1->next;
delete p1;
}
PLA->symbolic_output = nullptr;
delete PLA;
}
int read_symbolic(std::istream& fp, pPLA PLA, char* word /* scratch string for words */, symbolic_t ** retval)
{
symbolic_list_t *listp, *prev_listp;
symbolic_label_t *labelp, *prev_labelp;
symbolic_t *newlist;
int i, var;
newlist = new symbolic_t();
newlist->next = nullptr;
newlist->symbolic_list = nullptr;
newlist->symbolic_list_length = 0;
newlist->symbolic_label = nullptr;
newlist->symbolic_label_length = 0;
prev_listp = nullptr;
prev_labelp = nullptr;
for(;;) {
(void) get_word(fp, word);
if (equal(word, ";"))
break;
if (label_index(PLA, word, &var, &i)) {
listp = new symbolic_list_t();
listp->variable = var;
listp->pos = i;
listp->next = nullptr;
if (prev_listp == nullptr) {
newlist->symbolic_list = listp;
} else {
prev_listp->next = listp;
}
prev_listp = listp;
newlist->symbolic_list_length++;
} else {
return false;
}
}
for(;;) {
(void) get_word(fp, word);
if (equal(word, ";"))
break;
labelp = new symbolic_label_t();
labelp->label = strcpy(new char[strlen(word)+1], word);
labelp->next = nullptr;
if (prev_labelp == nullptr) {
newlist->symbolic_label = labelp;
} else {
prev_labelp->next = labelp;
}
prev_labelp = labelp;
newlist->symbolic_label_length++;
}
*retval = newlist;
return TRUE;
}
int label_index(pPLA PLA, char * word, int * varp, int * ip)
{
int var, i;
if (PLA->label == nullptr || PLA->label[0] == nullptr) {
if (sscanf(word, "%d", varp) == 1) {
*ip = *varp;
return TRUE;
}
} else {
for(var = 0; var < cube.num_vars; var++) {
for(i = 0; i < cube.part_size[var]; i++) {
if (equal(PLA->label[cube.first_part[var]+i], word)) {
*varp = var;
*ip = i;
return TRUE;
}
}
}
}
return FALSE;
}
| 27.494937
| 157
| 0.560471
|
AlexeyAkhunov
|
188c09ac36619ddff05d88bd1808e911fc078ed1
| 7,356
|
cpp
|
C++
|
Plugins/org.mitk.gui.qt.radiomics/src/internal/QmitkRadiomicsMaskProcessingView.cpp
|
zhaomengxiao/MITK
|
a09fd849a4328276806008bfa92487f83a9e2437
|
[
"BSD-3-Clause"
] | 1
|
2022-03-03T12:03:32.000Z
|
2022-03-03T12:03:32.000Z
|
Plugins/org.mitk.gui.qt.radiomics/src/internal/QmitkRadiomicsMaskProcessingView.cpp
|
zhaomengxiao/MITK
|
a09fd849a4328276806008bfa92487f83a9e2437
|
[
"BSD-3-Clause"
] | 1
|
2021-12-22T10:19:02.000Z
|
2021-12-22T10:19:02.000Z
|
Plugins/org.mitk.gui.qt.radiomics/src/internal/QmitkRadiomicsMaskProcessingView.cpp
|
zhaomengxiao/MITK_lancet
|
a09fd849a4328276806008bfa92487f83a9e2437
|
[
"BSD-3-Clause"
] | 1
|
2020-11-27T09:41:18.000Z
|
2020-11-27T09:41:18.000Z
|
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
============================================================================*/
#include "QmitkRadiomicsMaskProcessingView.h"
// QT includes (GUI)
#include <qlabel.h>
#include <qspinbox.h>
#include <qpushbutton.h>
#include <qcheckbox.h>
#include <qgroupbox.h>
#include <qradiobutton.h>
#include <qmessagebox.h>
// Berry includes (selection service)
#include <berryISelectionService.h>
#include <berryIWorkbenchWindow.h>
// MITK includes (GUI)
#include <QmitkDataStorageComboBox.h>
#include "QmitkDataNodeSelectionProvider.h"
#include "mitkDataNodeObject.h"
// MITK includes (general
#include <mitkNodePredicateDataType.h>
#include <mitkNodePredicateAnd.h>
#include <mitkProperties.h>
#include <mitkTransformationOperation.h>
#include <mitkLabelSetImage.h>
// Specific GUI Includes
#include <mitkMaskCleaningOperation.h>
QmitkRadiomicsMaskProcessing::QmitkRadiomicsMaskProcessing()
: QmitkAbstractView(),
m_Controls(nullptr)
{
}
QmitkRadiomicsMaskProcessing::~QmitkRadiomicsMaskProcessing()
{
//berry::ISelectionService* s = GetSite()->GetWorkbenchWindow()->GetSelectionService();
//if(s)
// s->RemoveSelectionListener(m_SelectionListener);
}
void QmitkRadiomicsMaskProcessing::CreateQtPartControl(QWidget *parent)
{
if (m_Controls == nullptr)
{
m_Controls = new Ui::QmitkRadiomicsMaskProcessingViewControls;
m_Controls->setupUi(parent);
QLabel * label1 = new QLabel("Image: ");
QLabel * label2 = new QLabel("Mask: ");
QmitkDataStorageComboBox * cb_inputimage = new QmitkDataStorageComboBox(this->GetDataStorage(), mitk::TNodePredicateDataType<mitk::Image>::New());
QmitkDataStorageComboBox * cb_maskimage = new QmitkDataStorageComboBox(this->GetDataStorage(), mitk::TNodePredicateDataType<mitk::LabelSetImage>::New());
m_Controls->m_InputImageGroup->layout()->addWidget(label1);
m_Controls->m_InputImageGroup->layout()->addWidget(cb_inputimage);
m_Controls->m_InputImageGroup->layout()->addWidget(label2);
m_Controls->m_InputImageGroup->layout()->addWidget(cb_maskimage);
this->CreateConnections();
}
}
void QmitkRadiomicsMaskProcessing::CreateConnections()
{
if ( m_Controls )
{
connect( (QObject*)(m_Controls->maskBasedExecutionButton), SIGNAL(clicked() ), this, SLOT(executeButtonIntervalBasedMaskClearning() ) );
connect((QObject*)(m_Controls->outlierRemoveButton), SIGNAL(clicked()), this, SLOT(executeButtonMaskOutlierRemoval()));
}
}
void QmitkRadiomicsMaskProcessing::executeButtonIntervalBasedMaskClearning()
{
QmitkDataStorageComboBox * cb_image = dynamic_cast<QmitkDataStorageComboBox *>(m_Controls->m_InputImageGroup->layout()->itemAt(1)->widget());
QmitkDataStorageComboBox * cb_maskimage = dynamic_cast<QmitkDataStorageComboBox *>(m_Controls->m_InputImageGroup->layout()->itemAt(3)->widget());
mitk::BaseData* baseDataRawImage = nullptr;
mitk::BaseData* baseDataMaskImage = nullptr;
mitk::Image::Pointer raw_image;
mitk::Image::Pointer mask_image;
std::string nodeName;
if ((cb_image->GetSelectedNode().IsNotNull()) && (cb_maskimage->GetSelectedNode().IsNotNull()))
{
baseDataRawImage = (cb_image->GetSelectedNode()->GetData());
baseDataMaskImage = (cb_maskimage->GetSelectedNode()->GetData());
nodeName = cb_maskimage->GetSelectedNode()->GetName();
}
if ((baseDataRawImage != nullptr) && (baseDataMaskImage != nullptr))
{
raw_image = dynamic_cast<mitk::Image *>(baseDataRawImage);
mask_image = dynamic_cast<mitk::Image *>(baseDataMaskImage);
}
else {
QMessageBox msgBox;
msgBox.setText("Please specify the images that shlould be used.");
msgBox.exec();
return;
}
if (raw_image.IsNull() || mask_image.IsNull())
{
QMessageBox msgBox;
msgBox.setText("Error during processing the specified images.");
msgBox.exec();
return;
}
bool lowerLimitOn = m_Controls->lowerOn->isChecked();
bool upperLimitOn = m_Controls->upperOn->isChecked();
double lowerLimit = m_Controls->lowerLimitSpinbox->value();
double upperLimit = m_Controls->spinboxUpperValue->value();
auto image = mitk::MaskCleaningOperation::RangeBasedMasking(raw_image, mask_image, lowerLimitOn, lowerLimit, upperLimitOn, upperLimit);
mitk::LabelSetImage::Pointer labelResult = mitk::LabelSetImage::New();
labelResult->InitializeByLabeledImage(image);
mitk::LabelSetImage::Pointer oldLabelSet = dynamic_cast<mitk::LabelSetImage *>(mask_image.GetPointer());
labelResult->AddLabelSetToLayer(labelResult->GetActiveLayer(), oldLabelSet->GetLabelSet());
mitk::DataNode::Pointer result = mitk::DataNode::New();
result->SetProperty("name", mitk::StringProperty::New(nodeName+"::MaskRange"));
result->SetData(labelResult);
GetDataStorage()->Add(result, cb_image->GetSelectedNode());
}
void QmitkRadiomicsMaskProcessing::executeButtonMaskOutlierRemoval()
{
QmitkDataStorageComboBox * cb_image = dynamic_cast<QmitkDataStorageComboBox *>(m_Controls->m_InputImageGroup->layout()->itemAt(1)->widget());
QmitkDataStorageComboBox * cb_maskimage = dynamic_cast<QmitkDataStorageComboBox *>(m_Controls->m_InputImageGroup->layout()->itemAt(3)->widget());
mitk::BaseData* baseDataRawImage = nullptr;
mitk::BaseData* baseDataMaskImage = nullptr;
mitk::Image::Pointer raw_image;
mitk::Image::Pointer mask_image;
std::string nodeName;
if ((cb_image->GetSelectedNode().IsNotNull()) && (cb_maskimage->GetSelectedNode().IsNotNull()))
{
baseDataRawImage = (cb_image->GetSelectedNode()->GetData());
baseDataMaskImage = (cb_maskimage->GetSelectedNode()->GetData());
nodeName = cb_maskimage->GetSelectedNode()->GetName();
}
if ((baseDataRawImage != nullptr) && (baseDataMaskImage != nullptr))
{
raw_image = dynamic_cast<mitk::Image *>(baseDataRawImage);
mask_image = dynamic_cast<mitk::Image *>(baseDataMaskImage);
}
else {
QMessageBox msgBox;
msgBox.setText("Please specify the images that shlould be used.");
msgBox.exec();
return;
}
if (raw_image.IsNull() || mask_image.IsNull())
{
QMessageBox msgBox;
msgBox.setText("Error during processing the specified images.");
msgBox.exec();
return;
}
auto image = mitk::MaskCleaningOperation::MaskOutlierFiltering(raw_image, mask_image);
mitk::LabelSetImage::Pointer labelResult = mitk::LabelSetImage::New();
labelResult->InitializeByLabeledImage(image);
mitk::LabelSetImage::Pointer oldLabelSet = dynamic_cast<mitk::LabelSetImage *>(mask_image.GetPointer());
labelResult->AddLabelSetToLayer(labelResult->GetActiveLayer(), oldLabelSet->GetLabelSet());
mitk::DataNode::Pointer result = mitk::DataNode::New();
result->SetProperty("name", mitk::StringProperty::New(nodeName + "::MaskOutlier"));
result->SetData(labelResult);
GetDataStorage()->Add(result, cb_image->GetSelectedNode());
}
void QmitkRadiomicsMaskProcessing::SetFocus()
{
}
//datamanager selection changed
void QmitkRadiomicsMaskProcessing::OnSelectionChanged(berry::IWorkbenchPart::Pointer, const QList<mitk::DataNode::Pointer>& nodes)
{
//any nodes there?
if (!nodes.empty())
{
}
}
| 36.415842
| 157
| 0.73192
|
zhaomengxiao
|
188c682e13e2b48640c0e8ed6c3b41088570741e
| 985
|
cpp
|
C++
|
src/crypto/RsaKey.cpp
|
toolbrew/libtoolchain
|
fd98be60d1c5ca62871c16c88b8e59be05d7f0ac
|
[
"MIT"
] | 4
|
2019-01-30T21:04:33.000Z
|
2022-03-20T04:24:34.000Z
|
src/crypto/RsaKey.cpp
|
toolbrew/libtoolchain
|
fd98be60d1c5ca62871c16c88b8e59be05d7f0ac
|
[
"MIT"
] | 2
|
2021-11-18T09:07:53.000Z
|
2021-11-19T13:25:20.000Z
|
src/crypto/RsaKey.cpp
|
toolbrew/libtoolchain
|
fd98be60d1c5ca62871c16c88b8e59be05d7f0ac
|
[
"MIT"
] | 1
|
2021-11-18T09:11:04.000Z
|
2021-11-18T09:11:04.000Z
|
#include <tc/crypto/RsaKey.h>
tc::crypto::RsaPublicKey::RsaPublicKey(const byte_t* modulus, size_t modulus_size)
{
static const byte_t kPublicExponent[3] = { 0x01, 0x00, 0x01 };
if (modulus != nullptr && modulus_size != 0)
{
this->n = tc::ByteData(modulus, modulus_size);
this->e = tc::ByteData(kPublicExponent, sizeof(kPublicExponent));
}
}
tc::crypto::RsaPrivateKey::RsaPrivateKey(const byte_t* modulus, size_t modulus_size, const byte_t* private_exponent, size_t private_exponent_size)
{
static const byte_t kPublicExponent[3] = { 0x01, 0x00, 0x01 };
if (modulus != nullptr && modulus_size != 0 && private_exponent != nullptr && private_exponent_size != 0)
{
this->n = tc::ByteData(modulus, modulus_size);
this->d = tc::ByteData(private_exponent, private_exponent_size);
this->e = tc::ByteData(kPublicExponent, sizeof(kPublicExponent));
}
}
tc::crypto::RsaKey tc::crypto::RsaPrivateKey::getPublicKey()
{
return RsaPublicKey(this->n.data(), this->n.size());
}
| 33.965517
| 146
| 0.722843
|
toolbrew
|
188f7f8ac0582f03242f27ce5a33f429eb32532a
| 9,520
|
hpp
|
C++
|
src/core/math_func.hpp
|
trademarks/OpenTTD
|
fd7fca73cf61a2960e8df8fa221b179d23ae3ef0
|
[
"Unlicense"
] | 8
|
2016-10-21T09:01:43.000Z
|
2021-05-31T06:32:14.000Z
|
src/core/math_func.hpp
|
blackberry/OpenTTD
|
fd7fca73cf61a2960e8df8fa221b179d23ae3ef0
|
[
"Unlicense"
] | null | null | null |
src/core/math_func.hpp
|
blackberry/OpenTTD
|
fd7fca73cf61a2960e8df8fa221b179d23ae3ef0
|
[
"Unlicense"
] | 4
|
2017-05-16T00:15:58.000Z
|
2020-08-06T01:46:31.000Z
|
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD 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 OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file math_func.hpp Integer math functions */
#ifndef MATH_FUNC_HPP
#define MATH_FUNC_HPP
#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif
#ifdef abs
#undef abs
#endif
/**
* Returns the maximum of two values.
*
* This function returns the greater value of two given values.
* If they are equal the value of a is returned.
*
* @param a The first value
* @param b The second value
* @return The greater value or a if equals
*/
template <typename T>
static FORCEINLINE T max(const T a, const T b)
{
return (a >= b) ? a : b;
}
/**
* Returns the minimum of two values.
*
* This function returns the smaller value of two given values.
* If they are equal the value of b is returned.
*
* @param a The first value
* @param b The second value
* @return The smaller value or b if equals
*/
template <typename T>
static FORCEINLINE T min(const T a, const T b)
{
return (a < b) ? a : b;
}
/**
* Returns the minimum of two integer.
*
* This function returns the smaller value of two given integers.
*
* @param a The first integer
* @param b The second integer
* @return The smaller value
*/
static FORCEINLINE int min(const int a, const int b)
{
return ::min<int>(a, b);
}
/**
* Returns the minimum of two unsigned integers.
*
* This function returns the smaller value of two given unsigned integers.
*
* @param a The first unsigned integer
* @param b The second unsigned integer
* @return The smaller value
*/
static FORCEINLINE uint minu(const uint a, const uint b)
{
return ::min<uint>(a, b);
}
/**
* Returns the absolute value of (scalar) variable.
*
* @note assumes variable to be signed
* @param a The value we want to unsign
* @return The unsigned value
*/
template <typename T>
static FORCEINLINE T abs(const T a)
{
return (a < (T)0) ? -a : a;
}
/**
* Return the smallest multiple of n equal or greater than x
*
* @note n must be a power of 2
* @param x The min value
* @param n The base of the number we are searching
* @return The smallest multiple of n equal or greater than x
*/
template <typename T>
static FORCEINLINE T Align(const T x, uint n)
{
assert((n & (n - 1)) == 0 && n != 0);
n--;
return (T)((x + n) & ~((T)n));
}
/**
* Return the smallest multiple of n equal or greater than x
* Applies to pointers only
*
* @note n must be a power of 2
* @param x The min value
* @param n The base of the number we are searching
* @return The smallest multiple of n equal or greater than x
* @see Align()
*/
template <typename T>
static FORCEINLINE T *AlignPtr(T *x, uint n)
{
assert_compile(sizeof(size_t) == sizeof(void *));
return (T *)Align((size_t)x, n);
}
/**
* Clamp a value between an interval.
*
* This function returns a value which is between the given interval of
* min and max. If the given value is in this interval the value itself
* is returned otherwise the border of the interval is returned, according
* which side of the interval was 'left'.
*
* @note The min value must be less or equal of max or you get some
* unexpected results.
* @param a The value to clamp/truncate.
* @param min The minimum of the interval.
* @param max the maximum of the interval.
* @returns A value between min and max which is closest to a.
* @see ClampU(uint, uint, uint)
* @see Clamp(int, int, int)
*/
template <typename T>
static FORCEINLINE T Clamp(const T a, const T min, const T max)
{
assert(min <= max);
if (a <= min) return min;
if (a >= max) return max;
return a;
}
/**
* Clamp an integer between an interval.
*
* This function returns a value which is between the given interval of
* min and max. If the given value is in this interval the value itself
* is returned otherwise the border of the interval is returned, according
* which side of the interval was 'left'.
*
* @note The min value must be less or equal of max or you get some
* unexpected results.
* @param a The value to clamp/truncate.
* @param min The minimum of the interval.
* @param max the maximum of the interval.
* @returns A value between min and max which is closest to a.
* @see ClampU(uint, uint, uint)
*/
static FORCEINLINE int Clamp(const int a, const int min, const int max)
{
return Clamp<int>(a, min, max);
}
/**
* Clamp an unsigned integer between an interval.
*
* This function returns a value which is between the given interval of
* min and max. If the given value is in this interval the value itself
* is returned otherwise the border of the interval is returned, according
* which side of the interval was 'left'.
*
* @note The min value must be less or equal of max or you get some
* unexpected results.
* @param a The value to clamp/truncate.
* @param min The minimum of the interval.
* @param max the maximum of the interval.
* @returns A value between min and max which is closest to a.
* @see Clamp(int, int, int)
*/
static FORCEINLINE uint ClampU(const uint a, const uint min, const uint max)
{
return Clamp<uint>(a, min, max);
}
/**
* Reduce a signed 64-bit int to a signed 32-bit one
*
* This function clamps a 64-bit integer to a 32-bit integer.
* If the 64-bit value is smaller than the smallest 32-bit integer
* value 0x80000000 this value is returned (the left one bit is the sign bit).
* If the 64-bit value is greater than the greatest 32-bit integer value 0x7FFFFFFF
* this value is returned. In all other cases the 64-bit value 'fits' in a
* 32-bits integer field and so the value is casted to int32 and returned.
*
* @param a The 64-bit value to clamps
* @return The 64-bit value reduced to a 32-bit value
* @see Clamp(int, int, int)
*/
static FORCEINLINE int32 ClampToI32(const int64 a)
{
return (int32)Clamp<int64>(a, INT32_MIN, INT32_MAX);
}
/**
* Reduce an unsigned 64-bit int to an unsigned 16-bit one
*
* @param a The 64-bit value to clamp
* @return The 64-bit value reduced to a 16-bit value
* @see ClampU(uint, uint, uint)
*/
static FORCEINLINE uint16 ClampToU16(const uint64 a)
{
/* MSVC thinks, in its infinite wisdom, that int min(int, int) is a better
* match for min(uint64, uint) than uint64 min(uint64, uint64). As such we
* need to cast the UINT16_MAX to prevent MSVC from displaying its
* infinite loads of warnings. */
return (uint16)::min<uint64>(a, (uint64)UINT16_MAX);
}
/**
* Returns the (absolute) difference between two (scalar) variables
*
* @param a The first scalar
* @param b The second scalar
* @return The absolute difference between the given scalars
*/
template <typename T>
static FORCEINLINE T Delta(const T a, const T b)
{
return (a < b) ? b - a : a - b;
}
/**
* Checks if a value is between a window started at some base point.
*
* This function checks if the value x is between the value of base
* and base+size. If x equals base this returns true. If x equals
* base+size this returns false.
*
* @param x The value to check
* @param base The base value of the interval
* @param size The size of the interval
* @return True if the value is in the interval, false else.
*/
template <typename T>
static FORCEINLINE bool IsInsideBS(const T x, const uint base, const uint size)
{
return (uint)(x - base) < size;
}
/**
* Checks if a value is in an interval.
*
* Returns true if a value is in the interval of [min, max).
*
* @param x The value to check
* @param min The minimum of the interval
* @param max The maximum of the interval
* @see IsInsideBS()
*/
template <typename T>
static FORCEINLINE bool IsInsideMM(const T x, const uint min, const uint max)
{
return (uint)(x - min) < (max - min);
}
/**
* Type safe swap operation
* @param a variable to swap with b
* @param b variable to swap with a
*/
template <typename T>
static FORCEINLINE void Swap(T &a, T &b)
{
T t = a;
a = b;
b = t;
}
/**
* Converts a "fract" value 0..255 to "percent" value 0..100
* @param i value to convert, range 0..255
* @return value in range 0..100
*/
static FORCEINLINE uint ToPercent8(uint i)
{
assert(i < 256);
return i * 101 >> 8;
}
/**
* Converts a "fract" value 0..65535 to "percent" value 0..100
* @param i value to convert, range 0..65535
* @return value in range 0..100
*/
static FORCEINLINE uint ToPercent16(uint i)
{
assert(i < 65536);
return i * 101 >> 16;
}
int LeastCommonMultiple(int a, int b);
int GreatestCommonDivisor(int a, int b);
/**
* Computes ceil(a / b) for non-negative a and b.
* @param a Numerator
* @param b Denominator
* @return Quotient, rounded up
*/
static FORCEINLINE uint CeilDiv(uint a, uint b)
{
return (a + b - 1) / b;
}
/**
* Computes round(a / b) for signed a and unsigned b.
* @param a Numerator
* @param b Denominator
* @return Quotient, rounded to nearest
*/
static FORCEINLINE int RoundDivSU(int a, uint b)
{
if (a > 0) {
/* 0.5 is rounded to 1 */
return (a + (int)b / 2) / (int)b;
} else {
/* -0.5 is rounded to 0 */
return (a - ((int)b - 1) / 2) / (int)b;
}
}
#endif /* MATH_FUNC_HPP */
| 27.2
| 185
| 0.689496
|
trademarks
|
188fd34689a01e00169a8c77c4b3d3f2ddb114d1
| 8,771
|
cpp
|
C++
|
EScript/Utils/StringUtils.cpp
|
antifermion/EScript
|
eca6765c28e319eb77b4da81125bdbb2510c9add
|
[
"MIT"
] | 3
|
2017-06-01T15:58:43.000Z
|
2019-08-07T05:36:44.000Z
|
EScript/Utils/StringUtils.cpp
|
antifermion/EScript
|
eca6765c28e319eb77b4da81125bdbb2510c9add
|
[
"MIT"
] | 4
|
2015-01-23T18:17:50.000Z
|
2019-02-10T11:48:55.000Z
|
EScript/Utils/StringUtils.cpp
|
antifermion/EScript
|
eca6765c28e319eb77b4da81125bdbb2510c9add
|
[
"MIT"
] | 12
|
2015-01-04T16:07:45.000Z
|
2020-10-06T15:42:46.000Z
|
// StringUtils.cpp
// This file is part of the EScript programming language (https://github.com/EScript)
//
// Copyright (C) 2011-2013 Claudius Jähn <ClaudiusJ@live.de>
// Copyright (C) 2011-2012 Benjamin Eikel <benjamin@eikel.org>
//
// Licensed under the MIT License. See LICENSE file for details.
// ---------------------------------------------------------------------------------
#include "StringUtils.h"
#include <cstdlib>
#include <cstdio>
#include <iomanip>
#include <sstream>
namespace EScript{
double StringUtils::readNumber(const char * s, std::size_t & cursor, bool checkSign) {
char c = s[cursor];
std::string accum="";
bool sign = true;
if( checkSign && c=='-' && s[cursor+1]>='0' && s[cursor+1]<='9' ) {
++cursor;
sign = false;
c = s[cursor];
}
if(c=='0' && (s[cursor+1]=='x'|| s[cursor+1]=='X')) {
++cursor;
accum="0x";
while(true) {
++cursor;
c = s[cursor];
if( (c>='0' && c<='9') || (c>='a' && c<='f') || (c>='A' && c<='F')) {
accum+=c;
continue;
}
break;
}
unsigned int number = 0;
sscanf(accum.c_str(),"%x",&number);
return sign?static_cast<double>(number) : -static_cast<double>(number);
} else if(c=='0' && (s[cursor+1]=='b'|| s[cursor+1]=='B')) { // binaryNumber
++cursor;
double number = 0;
while(true) {
++cursor;
c = s[cursor];
if( c=='0' ){
number *= 2;
} else if( c=='1' ){
number *= 2;
++number;
}else{
break;
}
}
return sign?number : -number;
} else if(c>='0' && c<='9') {
//const char * begin = s+cursor;
int dot = 0;
char numAccum[100];
int i = 0;
while(i<98) {
numAccum[i++]=c;
++cursor;
c = s[cursor];
if( isdigit(c) || (c=='.' && isdigit(s[cursor+1]) && dot++ < 1))
continue;
else if( (c=='E' ||c=='e')&& (s[cursor+1]=='+' || s[cursor+1]=='-')) {
numAccum[i++]=c;
++cursor;
c = s[cursor];
continue;
}
break;
}
numAccum[i]=0;
double number = std::strtod(numAccum,nullptr);
return sign?number:-number;
}
return 0;
}
std::string StringUtils::trim(const std::string & s) {
if(s.empty())
return std::string();
unsigned int start,end;
for(start = 0;start<s.length();++start) {
const char c = s[start];
if(c!=' '&&c!='\t'&&c!='\n'&&c!='\r'&&c!='\0'&&c!=11)
break;
}
for(end = s.length()-1;end>=start;--end) {
const char c = s[end];
if(c!=' '&&c!='\t'&&c!='\n'&&c!='\r'&&c!='\0'&&c!=11)
break;
}
const int count = end-start+1;
return count>0 ? s.substr(start,count) : std::string();
}
std::string StringUtils::rTrim(const std::string & s){
for(int right = s.length()-1 ; right >= 0 ; --right){
const char c = s[right];
if( !(c==' '||c=='\t'||c=='\n'||c=='\r'||c=='\0'||c==11))
return s.substr(0,right+1);
}
return std::string();
}
std::string StringUtils::lTrim(const std::string & s){
for(size_t left = 0 ; left<s.length() ; ++left){
const char c = s[left];
if( !(c==' '||c=='\t'||c=='\n'||c=='\r'||c=='\0'||c==11))
return s.substr(left,s.length()-left);
}
return std::string();
}
std::string StringUtils::replaceAll(const std::string &subject,const std::string &find,const std::string &replace,int count) {
std::ostringstream s;
unsigned int cursor = 0;
unsigned int len = subject.length();
unsigned int fLen = find.length();
//unsigned int pos = string::npos;
int nr = 0;
while(cursor<len&& nr!=count) {
size_t pos = subject.find(find,cursor);
//std::cout << " found "<<search<<" at "<< pos<<"\n";
if(pos==std::string::npos) {
break;
}
if(pos>cursor) {
s<<subject.substr(cursor,pos-cursor);
cursor = pos;
}
s<<replace;
cursor+=fLen;
++nr;
}
if(cursor<len) {
s<<subject.substr(cursor,len-cursor);
}
return s.str();
}
std::string StringUtils::replaceMultiple(const std::string &subject,const std::vector<std::pair<std::string,std::string> > & rules,int max){
typedef std::pair<std::string,std::string> keyValuePair_t;
const size_t ruleCount = rules.size();
std::vector<size_t> findLen(ruleCount);
std::vector<size_t> pos(ruleCount);
size_t i = 0;
for(const auto & keyValuePair : rules) {
// length of the search pattern
findLen[i] = keyValuePair.first.length();
// first position
pos[i] = subject.find(keyValuePair.first, 0);
++i;
}
int nr = 0;
std::ostringstream s;
size_t cursor = 0;
const size_t len = subject.length();
while(cursor<len&& nr!=max) {
// select next match
size_t nextPos = std::string::npos;
size_t nextFindLength = 0;
std::vector<keyValuePair_t>::const_iterator nextReplace = rules.begin();
std::vector<keyValuePair_t>::const_iterator ruleIt = rules.begin();
for(i = 0;i<ruleCount;++i,++ruleIt) {
// search not found -> continue
if(pos[i]==std::string::npos) {
continue;
}
// stepped over position (overlapping foundings) -> search again
if(cursor>pos[i]) {
pos[i]=subject.find((*ruleIt).first,cursor);
}
// nearest founding?
if(pos[i]<nextPos) {
nextReplace = ruleIt;
nextPos = pos[i];
nextFindLength = findLen[i];
}
}
// found nothing? -> finished
if(nextPos==std::string::npos)
break;
// append string
s<<subject.substr(cursor,nextPos-cursor);
s<<(*nextReplace).second;
cursor = nextPos+nextFindLength;
++nr;
}
// add ending
if(cursor<len)
s<<subject.substr(cursor,len-cursor);
return s.str();
}
/**
* TODO: 4byte encoding!
*/
std::string StringUtils::UCS2LE_to_ANSII(const std::string & source) {
std::ostringstream s;
size_t length = source.length();
if(length%2==1)
length--;
const uint8_t * c = reinterpret_cast<const uint8_t*>(source.data());
for(size_t i = 0;i<length;i+=2) {
// ascii char
if(c[i+1]==0x00) {
s<<static_cast<char>(c[i]);
}
// wrong encoding (illegal character)
else if(c[i]==0xfe && c[i+1]==0xff)
throw "UCS2LE_to_ANSII wrong encoding! Try big ending instead.";
else if(c[i]==0xff && c[i+1]==0xfe) // ignore
continue;
// // 4 byte TODO: http://en.wikipedia.org/wiki/UTF-16/UCS-2
// else if(){
// }
// 2 byte //⊕
else {
s<<"&#x"<<std::hex<<std::setfill ('0') <<
static_cast<int>(0x0100*c[i+1]+c[i]) <<std::dec<<";";
}
}
return s.str();
}
std::vector<std::string> StringUtils::split(const std::string & subject,const std::string & delimiter, int max){
std::vector<std::string> result;
const size_t len = subject.length();
if(len>0){
const size_t delimiterLen = delimiter.length();
if(delimiterLen>len || delimiterLen==0){
result.emplace_back(subject);
}else{
size_t cursor = 0;
for( int i = 1 ; i!=max&&cursor<=len-delimiterLen ; ++i){
size_t pos = subject.find(delimiter,cursor);
if( pos==std::string::npos ) // no delimiter found? -> to the end
pos = len;
result.push_back( subject.substr(cursor,pos-cursor) );
cursor = pos+delimiterLen;
if(cursor==len){ // ending on delimiter? -> add empty part
result.push_back("");
}
}
if(cursor<len)
result.push_back( subject.substr(cursor,len-cursor) );
}
}
return result;
}
static std::vector<std::pair<std::string,std::string>> getEscapeRules(){
typedef std::pair<std::string,std::string> keyValuePair_t;
std::vector<keyValuePair_t> replace;
replace.emplace_back("\"","\\\"");
replace.emplace_back("\b","\\b");
replace.emplace_back("\f","\\f");
replace.emplace_back("\n","\\n");
replace.emplace_back("\r","\\r");
replace.emplace_back("\t","\\t");
replace.emplace_back(std::string("\0",1),"\\0");
replace.emplace_back("\\","\\\\");
return replace;
}
std::string StringUtils::escape(const std::string & s){
static const auto escapeRules = getEscapeRules();
return replaceMultiple(s,escapeRules);
}
std::string StringUtils::getLine(const std::string &s,const int lineIndex){
size_t cursor = 0;
for(int i = 0;i<lineIndex;++i){
cursor = s.find('\n',cursor);
if(cursor == std::string::npos){
return "";
}
++cursor;
}
return s.substr(cursor, s.find('\n',cursor)-cursor );
}
std::string StringUtils::utf32_to_utf8(const uint32_t u32){
if(u32<=0x7F){
return { static_cast<char>(u32) }; // 0XXXXXXX
}else if(u32<=0x7FF){
return { static_cast<char>(0xC0 | ( (u32>>6) & 0x1F)), // 110XXXXX
static_cast<char>(0x80 | (u32&0x3F)) }; // 10XXXXXX
}else if(u32<=0xFFFF){
return { static_cast<char>(0xE0 | ( (u32>>12) & 0x0F)), // 1110XXXX
static_cast<char>(0x80 | ( (u32>>6) & 0x3F)), // 10XXXXXX
static_cast<char>(0x80 | (u32&0x3F)) }; // 10XXXXXX
}else if(u32<=0x13FFFF){
return { static_cast<char>(0xF0 | ( (u32>>18) & 0x07)), // 11110XXX
static_cast<char>(0x80 | ( (u32>>12) & 0x3F)), // 10XXXXXX
static_cast<char>(0x80 | ( (u32>>6) & 0x3F)), // 10XXXXXX
static_cast<char>(0x80 | (u32&0x3F)) }; // 10XXXXXX
}else {
return std::string();
}
}
}
| 27.070988
| 140
| 0.598221
|
antifermion
|
1895814a43f7931419ca6f3e711413691498f88c
| 5,883
|
cpp
|
C++
|
IntegrationPlatform/Adapters/Subversion/Interop.Subversion/SubversionClient.cpp
|
adamdriscoll/TfsIntegrationPlatform
|
28e0f51e804423bbde61083422711113662f2710
|
[
"MIT"
] | 6
|
2016-09-06T19:41:51.000Z
|
2021-06-08T19:50:15.000Z
|
IntegrationPlatform/Adapters/Subversion/Interop.Subversion/SubversionClient.cpp
|
adamdriscoll/TfsIntegrationPlatform
|
28e0f51e804423bbde61083422711113662f2710
|
[
"MIT"
] | null | null | null |
IntegrationPlatform/Adapters/Subversion/Interop.Subversion/SubversionClient.cpp
|
adamdriscoll/TfsIntegrationPlatform
|
28e0f51e804423bbde61083422711113662f2710
|
[
"MIT"
] | 6
|
2016-05-24T13:57:54.000Z
|
2020-01-27T12:11:57.000Z
|
#include "stdafx.h"
#include "AprPool.h"
#include "LibraryLoader.h"
#include "SvnError.h"
#include "SubversionClient.h"
#include "SubversionContext.h"
#include "Utils.h"
#include "ChangeSet.h"
#include "Item.h"
#include "DiffSummaryCommand.h"
#include "DownloadCommand.h"
#include "ItemInfoCommand.h"
#include "LatestRevisionCommand.h"
#include "ListCommand.h"
#include "LogCommand.h"
#include "SubversionInfoCommand.h"
using namespace System;
using namespace System::Collections::Generic;
using namespace Microsoft::TeamFoundation::Migration::Toolkit;
using namespace Microsoft::TeamFoundation::Migration::SubversionAdapter::Interop::Subversion;
using namespace Microsoft::TeamFoundation::Migration::SubversionAdapter::Interop::Subversion::Commands;
using namespace Microsoft::TeamFoundation::Migration::SubversionAdapter::Interop::Subversion::Helpers;
using namespace Microsoft::TeamFoundation::Migration::SubversionAdapter::Interop::Subversion::ObjectModel;
SubversionClient::SubversionClient()
{
Interlocked::Increment(s_references);
}
SubversionClient::~SubversionClient()
{
int count = Interlocked::Decrement(s_references);
if(0 == count)
{
//This is the last instance. Release all unmanaged ressources that are shared between the instances
DynamicInvocation::LibraryLoader::Instance()->ReleaseLibraries();
}
Disconnect();
}
void
SubversionClient::Connect(Uri^ repository, NetworkCredential^ credential)
{
if(nullptr == repository)
{
throw gcnew ArgumentNullException("repository");
}
try
{
m_context = gcnew SubversionContext(credential);
m_virtualRepositoryRoot = repository;
SubversionInfoCommand^ command = gcnew SubversionInfoCommand(m_context, repository);
command->Execute(m_repositoryRoot, m_repositoryID);
}
catch(Exception^)
{
Disconnect();
throw;
}
}
void
SubversionClient::Disconnect()
{
m_virtualRepositoryRoot = nullptr;
m_repositoryRoot = nullptr;
m_repositoryID = Guid::Empty;
if(nullptr != m_context)
{
delete m_context;
m_context = nullptr;
}
}
bool
SubversionClient::IsConnected::get()
{
return nullptr != m_context;
}
Guid
SubversionClient::RepositoryId::get()
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
return m_repositoryID;
}
Uri^
SubversionClient::RepositoryRoot::get()
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
return m_repositoryRoot;
}
Uri^
SubversionClient::VirtualRepositoryRoot::get()
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
return m_virtualRepositoryRoot;
}
long
SubversionClient::GetLatestRevisionNumber(Uri^ path)
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
long result;
LatestRevisionCommand^ command = gcnew LatestRevisionCommand(m_context, path);
command->Execute(result);
return result;
}
SubversionContext^
SubversionClient::Context::get()
{
return m_context;
}
Dictionary<long, ChangeSet^>^
SubversionClient::QueryHistoryRange(Uri^ path, long startRevisionNumber, long endRevisionNumber, bool includeChanges)
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
Dictionary<long, ChangeSet^>^ changesets;
LogCommand^ command = gcnew LogCommand(this, path, startRevisionNumber, endRevisionNumber, includeChanges);
command->Execute(changesets);
return changesets;
}
Dictionary<long, ChangeSet^>^
SubversionClient::QueryHistory(Uri^ path, long startRevisionNumber, int limit, bool includeChanges)
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
Dictionary<long, ChangeSet^>^ changesets;
LogCommand^ command = gcnew LogCommand(this, path, startRevisionNumber, limit, includeChanges);
command->Execute(changesets);
return changesets;
}
Dictionary<long, ChangeSet^>^
SubversionClient::QueryHistory(Uri^ path, int limit, bool includeChanges)
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
Dictionary<long, ChangeSet^>^ changesets;
LogCommand^ command = gcnew LogCommand(this, path, limit, includeChanges);
command->Execute(changesets);
return changesets;
}
List<ItemInfo^>^
SubversionClient::QueryItemInfo(Uri^ path, long revision, Depth depth)
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
List<ItemInfo^>^ items;
ItemInfoCommand^ command = gcnew ItemInfoCommand(this, path, revision, depth);
command->Execute(items);
return items;
}
void
SubversionClient::DownloadItem(Uri^ fromPath, long revision, String^ toPath)
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
DownloadCommand^ command = gcnew DownloadCommand(m_context, fromPath, revision, toPath);
command->Execute();
}
bool
SubversionClient::HasContentChange(Uri^ path1, long revision1, System::Uri^ path2, long revision2)
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
bool result;
DiffSummaryCommand^ command = gcnew DiffSummaryCommand(m_context, path1, revision1, path2, revision2);
command->AreEqual(result);
return !result;
}
List<ObjectModel::Item^>^
SubversionClient::GetItems(Uri^ path, long revision, Depth depth)
{
if(!IsConnected)
{
throw gcnew MigrationException("Subversion Client: There is currently no active connection");
}
List<Item^>^ items;
ListCommand^ command = gcnew ListCommand(this, path, revision, depth);
command->Execute(items);
return items;
}
| 23.438247
| 117
| 0.767126
|
adamdriscoll
|
189ab1746731ed04a998dfa4cd3d82c3d019fbc2
| 3,420
|
cpp
|
C++
|
tests/math/TestDegMinSec.cpp
|
marek-cel/libmcutils
|
671a20f37378d32ade4decefdbfba70448d12504
|
[
"MIT"
] | null | null | null |
tests/math/TestDegMinSec.cpp
|
marek-cel/libmcutils
|
671a20f37378d32ade4decefdbfba70448d12504
|
[
"MIT"
] | null | null | null |
tests/math/TestDegMinSec.cpp
|
marek-cel/libmcutils
|
671a20f37378d32ade4decefdbfba70448d12504
|
[
"MIT"
] | null | null | null |
#include <gtest/gtest.h>
#include <mcutils/math/DegMinSec.h>
#include <mcutils/misc/Units.h>
////////////////////////////////////////////////////////////////////////////////
class TestDegMinSec : public ::testing::Test
{
protected:
TestDegMinSec() {}
virtual ~TestDegMinSec() {}
void SetUp() override {}
void TearDown() override {}
};
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanConstruct)
{
mc::DegMinSec *dms = nullptr;
EXPECT_NO_THROW( dms = new mc::DegMinSec() );
delete dms;
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanDestruct)
{
mc::DegMinSec *dms = new mc::DegMinSec();
EXPECT_NO_THROW( delete dms );
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanInstantiate)
{
mc::DegMinSec dms;
EXPECT_EQ( dms.deg(), 0 );
EXPECT_EQ( dms.min(), 0 );
EXPECT_DOUBLE_EQ( dms.sec(), 0.0 );
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanInstantiateAndCopy)
{
mc::DegMinSec dms( mc::Units::deg2rad( 1.0 + 2.0 / 60.0 + 3.0 / 3600.0 ) );
mc::DegMinSec dms1( dms );
EXPECT_EQ( dms1.deg(), 1 );
EXPECT_EQ( dms1.min(), 2 );
EXPECT_NEAR( dms1.sec(), 3.0, 1e-9 );
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanInstantiateAndSetData)
{
mc::DegMinSec dms( mc::Units::deg2rad( 1.0 + 2.0 / 60.0 + 3.0 / 3600.0 ) );
EXPECT_EQ( dms.deg(), 1 );
EXPECT_EQ( dms.min(), 2 );
EXPECT_NEAR( dms.sec(), 3.0, 1e-9 );
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanValidate)
{
mc::DegMinSec dms1( M_PI_4 );
EXPECT_TRUE( dms1.isValid() );
mc::DegMinSec dms2( std::numeric_limits<double>::quiet_NaN() );
EXPECT_FALSE( dms2.isValid() );
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanGetAngle)
{
mc::DegMinSec dms( M_PI_4 );
EXPECT_DOUBLE_EQ( dms.getAngle(), M_PI_4 );
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanSetAngle)
{
mc::DegMinSec dms;
dms.setAngle( M_PI_4 );
EXPECT_DOUBLE_EQ( dms.getAngle(), M_PI_4 );
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanConvertToString)
{
mc::DegMinSec dms( mc::Units::deg2rad( 1.0 + 2.0 / 60.0 + 3.0 / 3600.0 ) );
EXPECT_STREQ( dms.toString().c_str(), "1 deg 2 min 3.00 sec" );
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanAssign)
{
mc::DegMinSec dms;
mc::DegMinSec dms1( mc::Units::deg2rad( 1.0 + 2.0 / 60.0 + 3.0 / 3600.0 ) );
dms = dms1;
EXPECT_EQ( dms.deg(), 1 );
EXPECT_EQ( dms.min(), 2 );
EXPECT_NEAR( dms.sec(), 3.0, 1e-9 );
}
////////////////////////////////////////////////////////////////////////////////
TEST_F(TestDegMinSec, CanCompare)
{
mc::DegMinSec dms;
mc::DegMinSec dms1( mc::Units::deg2rad( 1.0 + 2.0 / 60.0 + 3.0 / 3600.0 ) );
EXPECT_FALSE( dms == dms1 );
EXPECT_TRUE( dms != dms1 );
dms = dms1;
EXPECT_TRUE( dms == dms1 );
EXPECT_FALSE( dms != dms1 );
}
| 25.333333
| 80
| 0.442105
|
marek-cel
|
189dd762c3f93eed453312720521f283395b5022
| 3,367
|
cpp
|
C++
|
base64.cpp
|
MichaelWallace30/fileTransfer
|
d2950a7f24d82ee03ce42fa77fe173614bd21239
|
[
"MIT"
] | null | null | null |
base64.cpp
|
MichaelWallace30/fileTransfer
|
d2950a7f24d82ee03ce42fa77fe173614bd21239
|
[
"MIT"
] | null | null | null |
base64.cpp
|
MichaelWallace30/fileTransfer
|
d2950a7f24d82ee03ce42fa77fe173614bd21239
|
[
"MIT"
] | null | null | null |
#include<iostream>
using namespace std;
/*
encode: 6bit to 8bit
decode: 8bit to 6bit
needs padding if:
convert 3 bytes of 8 bit data into 4 chunks of 6 bits each
don't add new value of 0 to buffer use = sign
value char
0 A 16 Q 32 g 48 w
1 B 17 R 33 h 49 x
2 C 18 S 34 i 50 y
3 D 19 T 35 j 51 z
4 E 20 U 36 k 52 0
5 F 21 V 37 l 53 1
6 G 22 W 38 m 54 2
7 H 23 X 39 n 55 3
8 I 24 Y 40 o 56 4
9 J 25 Z 41 p 57 5
10 K 26 a 42 q 58 6
11 L 27 b 43 r 59 7
12 M 28 c 44 s 60 8
13 N 29 d 45 t 61 9
14 O 30 e 46 u 62 +
15 P 31 f 47 v 63 /
*/
//A = 255
//a = 97
//example: Hello World!!! == SGVsbG8gV29ybGQhISE=
#include "base64.h"
const std::string assciiBase64LookUp ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
#include <vector>
std::vector<char>* encode64(std::vector<char>* buffer)
{
int padding = 0;
//check for padding and pad extra zeros so we don't go out of scope of vector
while ((*buffer).size() % BLOCK_SIZE != 0)
{
buffer->push_back(0);
padding++;
}
char array[BLOCK_SIZE_64] = { 0 };
//CALUCALTE NEW SIZE of new vector
int newSize = buffer->size();
if (newSize % BLOCK_SIZE != 0)
{
newSize += newSize % BLOCK_SIZE;
}
newSize = (newSize / BLOCK_SIZE) * BLOCK_SIZE_64;
//COPY to new vector
std::vector<char>* buffer2 = new std::vector<char>;
buffer2->resize(newSize);
//encode and copy to new vector
for (int i = 0; i < buffer->size() /3; i++)
{
//convert to base64 by base64 lookuptable index
array[0] = ((*buffer)[0 + (i * 3)] & 0xfc) >> 2;
array[1] = (((*buffer)[0 + (i * 3)] & 0x03) << 4) + (((*buffer)[1 + (i * 3)] & 0xf0) >> 4);
array[2] = (((*buffer)[1 + (i * 3)] & 0x0f) << 2) + (((*buffer)[2 + (i * 3)] & 0xc0) >> 6);
array[3] = (*buffer)[2 + (i * 3)] & 0x3f;
//use look up table index to set value of base64
(*buffer2)[0 + (i * 4)] = assciiBase64LookUp[array[0]];
(*buffer2)[1 + (i * 4)] = assciiBase64LookUp[array[1]];
(*buffer2)[2 + (i * 4)] = assciiBase64LookUp[array[2]];
(*buffer2)[3 + (i * 4)] = assciiBase64LookUp[array[3]];
}
//add padding symbol '=' for lengths not module 0 of block size
for (int x = 1; x <= padding; x++)
{
(*buffer2)[newSize - x] = '=';
}
//delete old vector
delete buffer;
return buffer2;
}
std::vector<char>* decode64(std::vector<char>* buffer)
{
std::vector<char>* buffer2 = new std::vector<char>;
int newSize = (buffer->size() / BLOCK_SIZE_64) * BLOCK_SIZE;
//check for '=' padding
int sizeReduction = 0;
for (int i = buffer->size() - 1; i > buffer->size() - BLOCK_SIZE - 1; i --)
{
if ((*buffer)[i] == '=')
{
sizeReduction++;
}
}
//reszie for non needed '='
buffer2->resize(newSize - sizeReduction);
//decode and copy to new vector
for (int i = 0; i < newSize / 3; i++)
{
int index = i * 3;
(*buffer2)[index++] = (((assciiBase64LookUp.find((*buffer)[0 + i * 4]) & 0x3f) << 2) + ((assciiBase64LookUp.find((*buffer)[1 + i * 4]) & 0x30) >> 4));
if(index < (newSize - sizeReduction))(*buffer2)[index++] = (((assciiBase64LookUp.find((*buffer)[1 + i * 4]) & 0x0F) << 4) + ((assciiBase64LookUp.find((*buffer)[2 + i * 4]) & 0x3C) >> 2));
if(index < (newSize - sizeReduction))(*buffer2)[index] = (((assciiBase64LookUp.find((*buffer)[2 + i * 4]) & 0x03) << 6) + (assciiBase64LookUp.find((*buffer)[3 + i * 4]) & 0x3f));
}
//delete old vector buffer return new
delete buffer;
return buffer2;
}
| 27.373984
| 189
| 0.608851
|
MichaelWallace30
|
18a0c0bf52b589eba12fa14176cd6b60ca0b54a9
| 165
|
cpp
|
C++
|
test/llvm_test_code/inst_interaction/call_03.cpp
|
janniclas/phasar
|
324302ae96795e6f0a065c14d4f7756b1addc2a4
|
[
"MIT"
] | 1
|
2022-02-15T07:56:29.000Z
|
2022-02-15T07:56:29.000Z
|
test/llvm_test_code/inst_interaction/call_03.cpp
|
fabianbs96/phasar
|
5b8acd046d8676f72ce0eb85ca20fdb0724de444
|
[
"MIT"
] | null | null | null |
test/llvm_test_code/inst_interaction/call_03.cpp
|
fabianbs96/phasar
|
5b8acd046d8676f72ce0eb85ca20fdb0724de444
|
[
"MIT"
] | null | null | null |
unsigned factorial(unsigned n) {
if (n <= 1) {
return 1;
}
return n * factorial(n - 1);
}
int main() {
int i = 7;
int j = factorial(i);
return j;
}
| 12.692308
| 32
| 0.533333
|
janniclas
|
18a3f669a79f7fb1497e93cd6e1c65e4aabc2da0
| 3,600
|
cpp
|
C++
|
include/ibeosdk/database/datamodel/BsonT_Processing.cpp
|
chouer19/enjoyDriving
|
e4a29e6cad7d3b0061d59f584cce7cdea2a55351
|
[
"MIT"
] | 1
|
2020-07-04T15:23:05.000Z
|
2020-07-04T15:23:05.000Z
|
include/ibeosdk/database/datamodel/BsonT_Processing.cpp
|
chouer19/enjoyDriving
|
e4a29e6cad7d3b0061d59f584cce7cdea2a55351
|
[
"MIT"
] | null | null | null |
include/ibeosdk/database/datamodel/BsonT_Processing.cpp
|
chouer19/enjoyDriving
|
e4a29e6cad7d3b0061d59f584cce7cdea2a55351
|
[
"MIT"
] | null | null | null |
//======================================================================
/*! \file BsonT_Processing.cpp
*
* \copydoc Copyright
* \author Kristian Bischoff (kb)
* \date Feb 8, 2016
*///-------------------------------------------------------------------
//======================================================================
#include <ibeosdk/database/datamodel/BsonT.hpp>
#include <ibeosdk/database/basedatamodel/Processing.hpp>
//======================================================================
namespace ibeosdk {
namespace dbaccess {
//======================================================================
const std::string BsonT<ProcessingJob>::bsonTypeName = "EVSType";
const std::string BsonT<ProcessingJob>::bsonFtProcJobName = "displayName";
const std::string BsonT<ProcessingJob>::bsonFtProcJobTripName = "tripName";
const std::string BsonT<ProcessingJob>::bsonFtProcJobResultConfig = "resultConfig";
const std::string BsonT<ProcessingJob>::bsonFtProcJobStartTime = "startProcessingTime";
const std::string BsonT<ProcessingJob>::bsonFtProcJobFinishTime = "finishProcessingTime";
const std::string BsonT<Processing>::bsonFtProcessingName = "processingJobListName";
const std::string BsonT<Processing>::bsonFtProcessingJobs = "jobs";
//======================================================================
void BsonT<ProcessingJob>::createDataType(ProcessingJob& data,
const mongo::BSONObj& bsonObj)
{
mongo::BSONElement elem;
bsonObj.getObjectID(elem);
const std::string type = bsonObj.getField(bsonTypeName).String();
mongo::Date_t start = bsonObj.getField(bsonFtProcJobStartTime).Date();
mongo::Date_t end = bsonObj.getField(bsonFtProcJobFinishTime).Date();
std::vector<std::string> resultConf;
if(bsonObj.hasField(bsonFtProcJobResultConfig)){
mongo::BSONObjIterator fields (bsonObj.getField(bsonFtProcJobResultConfig).Obj());
while(fields.more()) {
resultConf.push_back(fields.next().String());
}
};
data.setDbId(elem.OID().toString());
data.setJobType(ProcessingUtil::getInstance()->getTypeFromStr(type));
data.setStartTime(NTPTime(MongoDbUtils::convertToBoostTimestamp(start)));
data.setFinishTime(NTPTime(MongoDbUtils::convertToBoostTimestamp(end)));
data.setTripName(bsonObj.getField(bsonFtProcJobTripName).String());
data.setResultConfig(resultConf);
}
//======================================================================
//======================================================================
//======================================================================
//======================================================================
//======================================================================
//======================================================================
void BsonT<Processing>::createDataType(Processing& data,
const mongo::BSONObj& bsonObj)
{
data.setName(bsonObj.getField(bsonFtProcessingName).String());
std::vector<mongo::BSONElement> jobList=bsonObj.getField(bsonFtProcessingJobs).Array();
std::vector<mongo::BSONElement>::const_iterator pIter=jobList.begin();
for (; pIter != jobList.end(); ++pIter) {
CollectionName cName(( *pIter).dbrefNS());
ProcessingJob newProcJob(cName, ( *pIter).dbrefOID().toString());
data.addProcessingJob(newProcJob);
}
}
//======================================================================
} // namespace dbaccess
} // namespace ibeosdk
//======================================================================
| 39.130435
| 92
| 0.525
|
chouer19
|
18a508afc7992496e3e529e792d1d966a2e88bf8
| 443
|
cpp
|
C++
|
UVa/10394 - Twin Primes.cpp
|
geniustanley/problem-solving
|
2b83c5c8197fa8fe2277367027b392a2911d4a28
|
[
"Apache-2.0"
] | 1
|
2018-11-21T07:36:16.000Z
|
2018-11-21T07:36:16.000Z
|
UVa/10394 - Twin Primes.cpp
|
geniustanley/problem-solving
|
2b83c5c8197fa8fe2277367027b392a2911d4a28
|
[
"Apache-2.0"
] | null | null | null |
UVa/10394 - Twin Primes.cpp
|
geniustanley/problem-solving
|
2b83c5c8197fa8fe2277367027b392a2911d4a28
|
[
"Apache-2.0"
] | null | null | null |
#include <stdio.h>
int prime[20000005] = {1, 1, 0};
int answer[100005] = {0};
int main(void)
{
int cnt = 1;
long long i, j;
for(i = 3; i < 20000000 && cnt <= 100000; i += 2) {
if(!prime[i]) {
for(j = i * i; j < 20000000; j+=i)
prime[j] = 1;
if(!prime[i] && !prime[i-2])
answer[cnt++] = i-2;
}
}
int n;
while(scanf("%d", &n) != EOF) {
printf("(%d, %d)\n", answer[n], answer[n]+2);
}
return 0;
}
| 20.136364
| 53
| 0.471783
|
geniustanley
|
18a7a3e7ab2055ea602c5b62e535d56ce665e2bd
| 2,004
|
hpp
|
C++
|
irohad/ametsuchi/index/index.hpp
|
tkyonezu/iroha-hakodate
|
4545c22bfb0db10d441182540d3caa7fd8375c48
|
[
"Apache-2.0"
] | null | null | null |
irohad/ametsuchi/index/index.hpp
|
tkyonezu/iroha-hakodate
|
4545c22bfb0db10d441182540d3caa7fd8375c48
|
[
"Apache-2.0"
] | null | null | null |
irohad/ametsuchi/index/index.hpp
|
tkyonezu/iroha-hakodate
|
4545c22bfb0db10d441182540d3caa7fd8375c48
|
[
"Apache-2.0"
] | null | null | null |
/**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef AMETSUCHI_INDEX_INDEX_HPP
#define AMETSUCHI_INDEX_INDEX_HPP
#include <cstdint>
#include <nonstd/optional.hpp>
#include <string>
#include <vector>
namespace iroha {
namespace ametsuchi {
namespace index {
class Index {
public:
virtual bool add_blockhash_blockid(std::string block_hash,
uint32_t height) = 0;
virtual nonstd::optional<uint64_t> get_blockid_by_blockhash(
std::string hash) = 0;
virtual bool add_txhash_blockid_txid(std::string txhash,
uint32_t height, int txid) = 0;
virtual bool add_pubkey_txhash(std::string pubkey,
std::string txhash) = 0;
virtual nonstd::optional<uint64_t> get_txid_by_txhash(
std::string txhash) = 0;
virtual nonstd::optional<uint64_t> get_blockid_by_txhash(
std::string txhash) = 0;
virtual nonstd::optional<std::vector<std::string>>
get_txhashes_by_pubkey(std::string pubkey) = 0;
virtual nonstd::optional<uint64_t> get_last_blockid() = 0;
virtual bool exec_multi() = 0;
virtual bool discard_multi() = 0;
};
} // namespace index
} // namespace ametsuchi
} // namespace iroha
#endif // AMETSUCHI_INDEX_INDEX_HPP
| 34.551724
| 76
| 0.6502
|
tkyonezu
|
18abbff99ad0364b6fc3227ddbbbb323f47a9965
| 637
|
cpp
|
C++
|
LongestSubstring/LongestSubstring_2.cpp
|
yergen/leetcode
|
7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab
|
[
"MIT"
] | null | null | null |
LongestSubstring/LongestSubstring_2.cpp
|
yergen/leetcode
|
7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab
|
[
"MIT"
] | null | null | null |
LongestSubstring/LongestSubstring_2.cpp
|
yergen/leetcode
|
7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab
|
[
"MIT"
] | null | null | null |
#include<string>
#include<unordered_set>
#include<algorithm>
#include<iostream>
using namespace std;
class Solution {
public:
int lengthOfLongestSubstring(string s) {
int n = s.size();
unordered_set<char> set;
int length = 0,temp = 0;
for (int i = 0; i < n; ++i)
for (int j = temp; j < n; ++j)
{
if (set.find(s[j]) == set.end())
{
set.insert(s[j]);
length = max(length, j+1 - i);
}
else
{
temp = j;
set.erase(s[i]);
break;
}
}
return length;
}
};
int main()
{
string s = "1312454123423";
Solution solution;
cout << solution.lengthOfLongestSubstring(s) << endl;
return 0;
}
| 15.536585
| 54
| 0.590267
|
yergen
|
18ac184b8cb8bf0a521f736b9de9e4be069708c5
| 563
|
cpp
|
C++
|
src/coherence/lang/ClassNotFoundException.cpp
|
chpatel3/coherence-cpp-extend-client
|
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
|
[
"UPL-1.0",
"Apache-2.0"
] | 6
|
2020-07-01T21:38:30.000Z
|
2021-11-03T01:35:11.000Z
|
src/coherence/lang/ClassNotFoundException.cpp
|
chpatel3/coherence-cpp-extend-client
|
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
|
[
"UPL-1.0",
"Apache-2.0"
] | 1
|
2020-07-24T17:29:22.000Z
|
2020-07-24T18:29:04.000Z
|
src/coherence/lang/ClassNotFoundException.cpp
|
chpatel3/coherence-cpp-extend-client
|
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
|
[
"UPL-1.0",
"Apache-2.0"
] | 6
|
2020-07-10T18:40:58.000Z
|
2022-02-18T01:23:40.000Z
|
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "coherence/lang/ClassNotFoundException.hpp"
#include <sstream>
COH_OPEN_NAMESPACE2(coherence,lang)
// ----- constructors -------------------------------------------------------
ClassNotFoundException::ClassNotFoundException(String::View vsName, Exception::View vCause)
: super(COH_TO_STRING(vsName << ": class not found"), vCause)
{
}
COH_CLOSE_NAMESPACE2
| 26.809524
| 91
| 0.653641
|
chpatel3
|
18b41a401f9746f8705d127528ceec05563fa286
| 1,337
|
hpp
|
C++
|
include/ear/warnings.hpp
|
rsjtaylor/libear
|
40a4000296190c3f91eba79e5b92141e368bd72a
|
[
"Apache-2.0"
] | 14
|
2019-07-30T17:58:00.000Z
|
2022-02-15T15:33:36.000Z
|
include/ear/warnings.hpp
|
rsjtaylor/libear
|
40a4000296190c3f91eba79e5b92141e368bd72a
|
[
"Apache-2.0"
] | 27
|
2019-07-30T18:01:58.000Z
|
2021-12-14T10:24:52.000Z
|
include/ear/warnings.hpp
|
rsjtaylor/libear
|
40a4000296190c3f91eba79e5b92141e368bd72a
|
[
"Apache-2.0"
] | 5
|
2019-07-30T15:12:02.000Z
|
2020-09-14T16:22:43.000Z
|
#pragma once
#include <functional>
#include <string>
#include "export.hpp"
namespace ear {
/// A warning message, containing a code and a corresponding message. The code
/// does not need to be shown when displaying warnings; the message should
/// contain all the information required, the code is just to allow
/// implementations to take action on warnings without matching against the
/// messages.
struct Warning {
enum class Code {
/// LFE indication from frequency element does not match speakerLabel
FREQ_SPEAKERLABEL_LFE_MISMATCH = 1,
/// frequency indication present but does not indicate an LFE channel
FREQ_NOT_LFE,
/// frequency information is not implemented; ignoring
FREQ_IGNORED,
/// screenRef for HOA is not implemented; ignoring
HOA_SCREENREF_NOT_IMPLEMENTED,
/// nfcRefDist is not implemented; ignoring
HOA_NFCREFDIST_NOT_IMPLEMENTED,
};
Code code;
std::string message;
};
/// warning callback type; this is passed into `calculate` calls, and will be
/// called with any warnings.
using WarningCB = std::function<void(const Warning &warning)>;
/// default warning callback which prints to stderr with the prefix `libear:
/// warning: `
extern EAR_EXPORT const WarningCB default_warning_cb;
} // namespace ear
| 34.282051
| 80
| 0.715782
|
rsjtaylor
|
18b5fe778684da01ff1fbc9f616ea01d7b890b2d
| 15,233
|
hpp
|
C++
|
include/vif/core/bits/vectorize.hpp
|
lmorabit/vif
|
459715c60e0ef6c83c7ebfb8741355d597dbc7aa
|
[
"Apache-2.0"
] | 6
|
2018-09-04T10:57:00.000Z
|
2021-10-05T07:41:50.000Z
|
include/vif/core/bits/vectorize.hpp
|
lmorabit/vif
|
459715c60e0ef6c83c7ebfb8741355d597dbc7aa
|
[
"Apache-2.0"
] | 2
|
2019-05-22T02:59:46.000Z
|
2019-12-02T19:15:43.000Z
|
include/vif/core/bits/vectorize.hpp
|
lmorabit/vif
|
459715c60e0ef6c83c7ebfb8741355d597dbc7aa
|
[
"Apache-2.0"
] | 3
|
2019-05-01T10:20:47.000Z
|
2021-09-20T16:35:34.000Z
|
#ifndef VIF_INCLUDING_CORE_VEC_BITS
#error this file is not meant to be included separately, include "vif/core/vec.hpp" instead
#endif
namespace vif {
////////////////////////////////////////////
// Vectorization helpers //
////////////////////////////////////////////
#define VIF_VECTORIZE(name) \
template<std::size_t Dim, typename Type, typename ... Args> \
auto name(const vec<Dim,Type>& v, const Args& ... args) -> \
vec<Dim,decltype(name(v[0], args...))> { \
using ntype = decltype(name(v[0], args...)); \
vec<Dim,ntype> r; r.dims = v.dims; r.data.reserve(v.size()); \
for (auto& t : v.data) { \
r.data.push_back(name(impl::dref<Type>(t), args...)); \
} \
return r; \
} \
template<std::size_t Dim, typename Type, typename ... Args> \
auto name(vec<Dim,Type>&& v, const Args& ... args) -> typename std::enable_if< \
!std::is_pointer<Type>::value && std::is_same<decltype(name(v[0], args...)), Type>::value, \
vec<Dim,Type>>::type { \
for (auto& t : v) { \
t = name(t, args...); \
} \
return std::move(v); \
}
#define VIF_VECTORIZE2(name) \
template<std::size_t D, typename T1, typename T2, typename ... Args> \
auto name(const vec<D,T1>& v1, const vec<D,T2>& v2, const Args& ... args) -> \
vec<D,decltype(name(v1[0], v2[0], args...))> { \
vif_check(v1.dims == v2.dims, "incompatible dimensions between V1 and V2 (", \
v1.dims, " vs. ", v2.dims, ")"); \
using ntype = decltype(name(v1[0], v2[0], args...)); \
vec<D,ntype> r; r.dims = v1.dims; r.data.reserve(v1.size()); \
for (uint_t i : range(v1)) { \
r.data.push_back(name(v1.safe[i], v2.safe[i], args...)); \
} \
return r; \
} \
template<std::size_t D, typename T1, typename T2, typename ... Args> \
auto name(vec<D,T1>&& v1, const vec<D,T2>& v2, const Args& ... args) -> typename std::enable_if< \
!std::is_pointer<T1>::value && std::is_same<decltype(name(v1[0], v2[0], args...)), T1>::value, \
vec<D,T1>>::type { \
vif_check(v1.dims == v2.dims, "incompatible dimensions between V1 and V2 (", \
v1.dims, " vs. ", v2.dims, ")"); \
for (uint_t i : range(v1)) { \
v1.safe[i] = name(v1.safe[i], v2.safe[i], args...); \
} \
return v1; \
} \
template<std::size_t D, typename T1, typename T2, typename ... Args> \
auto name(const vec<D,T1>& v1, vec<D,T2>&& v2, const Args& ... args) -> typename std::enable_if< \
!std::is_pointer<T2>::value && std::is_same<decltype(name(v1[0], v2[0], args...)), T2>::value, \
vec<D,T2>>::type { \
vif_check(v1.dims == v2.dims, "incompatible dimensions between V1 and V2 (", \
v1.dims, " vs. ", v2.dims, ")"); \
for (uint_t i : range(v1)) { \
v2.safe[i] = name(v1.safe[i], v2.safe[i], args...); \
} \
return v2; \
} \
template<std::size_t D, typename T1, typename T2, typename ... Args> \
auto name(vec<D,T1>&& v1, vec<D,T2>&& v2, const Args& ... args) -> typename std::enable_if< \
!std::is_pointer<T1>::value && std::is_same<decltype(name(v1[0], v2[0], args...)), T1>::value, \
vec<D,T1>>::type { \
vif_check(v1.dims == v2.dims, "incompatible dimensions between V1 and V2 (", \
v1.dims, " vs. ", v2.dims, ")"); \
for (uint_t i : range(v1)) { \
v1.safe[i] = name(v1.safe[i], v2.safe[i], args...); \
} \
return v1; \
} \
template<std::size_t D, typename T1, typename T2, typename ... Args> \
auto name(T1 v1, const vec<D,T2>& v2, const Args& ... args) -> typename std::enable_if<!meta::is_vec<T1>::value, \
vec<D,decltype(name(v1, v2[0], args...))>>::type { \
using ntype = decltype(name(v1, v2[0], args...)); \
vec<D,ntype> r; r.dims = v2.dims; r.data.reserve(v2.size()); \
for (uint_t i : range(v2)) { \
r.data.push_back(name(v1, v2.safe[i], args...)); \
} \
return r; \
} \
template<std::size_t D, typename T1, typename T2, typename ... Args> \
auto name(const vec<D,T1>& v1, T2 v2, const Args& ... args) -> typename std::enable_if<!meta::is_vec<T2>::value, \
vec<D,decltype(name(v1[0], v2, args...))>>::type { \
using ntype = decltype(name(v1[0], v2, args...)); \
vec<D,ntype> r; r.dims = v1.dims; r.data.reserve(v1.size()); \
for (uint_t i : range(v1)) { \
r.data.push_back(name(v1.safe[i], v2, args...)); \
} \
return r; \
} \
template<std::size_t D, typename T1, typename T2, typename ... Args> \
auto name(T1 v1, vec<D,T2>&& v2, const Args& ... args) -> typename std::enable_if<!meta::is_vec<T1>::value && \
!std::is_pointer<T2>::value && std::is_same<decltype(name(v1, v2[0], args...)), T2>::value, \
vec<D,decltype(name(v1, v2[0], args...))>>::type { \
for (uint_t i : range(v2)) { \
v2.safe[i] = name(v1, v2.safe[i], args...); \
} \
return v2; \
} \
template<std::size_t D, typename T1, typename T2, typename ... Args> \
auto name(vec<D,T1>&& v1, T2 v2, const Args& ... args) -> typename std::enable_if<!meta::is_vec<T2>::value && \
!std::is_pointer<T1>::value && std::is_same<decltype(name(v1[0], v2, args...)), T1>::value, \
vec<D,decltype(name(v1[0], v2, args...))>>::type { \
for (uint_t i : range(v1)) { \
v1.safe[i] = name(v1.safe[i], v2, args...); \
} \
return v1; \
} \
#define VIF_VECTORIZE_REN(name, orig) \
template<std::size_t Dim, typename Type, typename ... Args> \
auto name(const vec<Dim,Type>& v, const Args& ... args) -> \
vec<Dim,decltype(orig(v[0], args...))> { \
using ntype = decltype(orig(v[0], args...)); \
vec<Dim,ntype> r; r.dims = v.dims; r.data.reserve(v.size()); \
for (auto& t : v.data) { \
r.data.push_back(orig(impl::dref<Type>(t), args...)); \
} \
return r; \
} \
template<std::size_t Dim, typename Type, typename ... Args> \
auto name(vec<Dim,Type>&& v, const Args& ... args) -> typename std::enable_if< \
!std::is_pointer<Type>::value && std::is_same<decltype(orig(v[0], args...)), Type>::value, \
vec<Dim,Type>>::type { \
for (auto& t : v) { \
t = orig(t, args...); \
} \
return std::move(v); \
} \
template<typename ... Args> \
auto name(Args&& ... args) -> decltype(orig(std::forward<Args>(args)...)) { \
return orig(std::forward<Args>(args)...); \
}
// Create an overloaded lambda that supports both scalars and vectors for the first argument.
namespace impl {
template<typename L>
struct vectorized_lambda_first_t {
L lambda;
vectorized_lambda_first_t(L tlam) : lambda(tlam) {}
template<typename T, typename ... Args, typename enable =
typename std::enable_if<!meta::is_vec<typename std::decay<T>::type>::value>::type>
auto operator()(T&& t, Args&& ... args) ->
decltype(lambda(std::forward<T>(t), std::forward<Args>(args)...)) {
return lambda(std::forward<T>(t), std::forward<Args>(args)...);
}
template<typename T, std::size_t D, typename ... Args>
auto operator()(const vec<D,T>& t, Args&& ... args) ->
vec<D,typename std::decay<decltype(lambda(std::declval<const meta::rtype_t<T>&>(),
std::forward<Args>(args)...))>::type> {
vec<D,typename std::decay<decltype(lambda(std::declval<const meta::rtype_t<T>&>(),
std::forward<Args>(args)...))>::type> ret(t.dims);
for (uint_t i : range(t)) {
ret.safe[i] = lambda(t.safe[i], std::forward<Args>(args)...);
}
return ret;
}
template<typename T, std::size_t D, typename ... Args>
auto operator()(vec<D,T>&& t, Args&& ... args) ->
vec<D,typename std::decay<decltype(lambda(std::declval<meta::rtype_t<T>>(),
std::forward<Args>(args)...))>::type> {
vec<D,typename std::decay<decltype(lambda(std::declval<meta::rtype_t<T>>(),
std::forward<Args>(args)...))>::type> ret(t.dims);
for (uint_t i : range(t)) {
ret.safe[i] = lambda(std::move(t.safe[i]), std::forward<Args>(args)...);
}
return ret;
}
};
}
template<typename T>
impl::vectorized_lambda_first_t<typename std::decay<T>::type> vectorize_lambda_first(T&& t) {
return impl::vectorized_lambda_first_t<typename std::decay<T>::type>(std::move(t));
}
// Create an overloaded lambda that supports either scalars or vectors for all arguments.
// If multiple vectors are found in the argument list, they are iterated jointly and
// therefore must have the same dimensions.
namespace impl {
template<typename T>
struct elem_dim : std::integral_constant<std::size_t, 0> {};
template<std::size_t D, typename T>
struct elem_dim<vec<D,T>> : std::integral_constant<std::size_t, D> {};
template<typename ... Args>
using common_dim = meta::max<std::size_t, elem_dim<typename std::decay<Args>::type>::value...>;
template <std::size_t D>
struct has_right_dim {
template <typename T>
struct type : meta::bool_constant<elem_dim<T>::value == D || elem_dim<T>::value == 0> {};
};
template <typename T, typename U>
void lambda_check_dims(T& dims, bool& set, const U& u) {}
template <typename T, std::size_t D, typename U>
void lambda_check_dims(T& dims, bool& set, const vec<D,U>& u) {
if (!set) {
dims = u.dims;
set = true;
} else {
vif_check(dims == u.dims, "incompatible dimensions in lambda call (",
dims, " vs ", u.dims, ")");
}
}
template<typename L>
struct vectorize_lambda_t {
L lambda;
vectorize_lambda_t(L tlam) : lambda(tlam) {}
// Get 'i'th element from argument
template <typename T, typename ... Args>
static T& get(uint_t i, T& t) {
return t;
}
template <typename T, typename ... Args>
static const T& get(uint_t i, const T& t) {
return t;
}
template <std::size_t D, typename T, typename ... Args>
static auto get(uint_t i, vec<D,T>& t) -> decltype(t.safe[i]) {
return t.safe[i];
}
template <std::size_t D, typename T, typename ... Args>
static auto get(uint_t i, const vec<D,T>& t) -> decltype(t.safe[i]) {
return t.safe[i];
}
template <typename ... Args>
static void swallow(Args&&...) {}
// Bake return type
template <typename ... Args>
using scalar_return_type = decltype(std::declval<L>()(get(0, std::declval<Args>())...));
template <typename ... Args>
using vector_return_type = vec<common_dim<Args...>::value, scalar_return_type<Args...>>;
// Full scalar call
// ----------------
template <typename ... Args>
void run(std::true_type, std::true_type, Args&& ... args) {
lambda(std::forward<Args>(args)...);
}
template <typename ... Args>
scalar_return_type<Args...> run(std::true_type, std::false_type, Args&& ... args) {
return lambda(std::forward<Args>(args)...);
}
// Vectorized call
// ----------------
template <typename ... Args>
void run(std::false_type, std::true_type, Args&& ... args) {
constexpr const std::size_t D = common_dim<Args...>::value;
static_assert(meta::are_all_true<meta::bool_list<has_right_dim<D>::template type<Args>::value...>>::value,
"incompatible number of dimensions in lambda call");
bool set = false;
std::array<std::size_t,D> dims; // only used to get the dimensions
swallow((lambda_check_dims(dims, set, args), 0)...);
std::size_t size = 1;
for (uint_t i : range(D)) {
size *= dims[i];
}
for (uint_t i : range(size)) {
lambda(get(i, args)...);
}
}
template <typename ... Args>
vector_return_type<Args...> run(std::false_type, std::false_type, Args&& ... args) {
vector_return_type<Args...> ret;
constexpr const std::size_t D = common_dim<Args...>::value;
static_assert(meta::are_all_true<meta::bool_list<has_right_dim<D>::template type<Args>::value...>>::value,
"incompatible number of dimensions in lambda call");
bool set = false;
swallow((lambda_check_dims(ret.dims, set, args), 0)...);
ret.resize();
for (uint_t i : range(ret)) {
ret.safe[i] = lambda(get(i, args)...);
}
return ret;
}
// Generic call dispatcher
// -----------------------
// Needs to check if:
// 1) all the parameters are scalars, to return a scalar or a vector
// 2) the return value is void, to avoid creating a return value
template<typename ... Args>
auto operator()(Args&& ... args) ->
decltype(this->run(meta::bool_constant<common_dim<Args...>::value == 0>{},
std::is_same<scalar_return_type<Args...>, void>{},
std::forward<Args>(args)...)) {
return this->run(meta::bool_constant<common_dim<Args...>::value == 0>{},
std::is_same<scalar_return_type<Args...>, void>{},
std::forward<Args>(args)...);
}
};
}
template<typename T>
impl::vectorize_lambda_t<typename std::decay<T>::type> vectorize_lambda(T&& t) {
return impl::vectorize_lambda_t<typename std::decay<T>::type>(std::move(t));
}
}
| 45.607784
| 122
| 0.495044
|
lmorabit
|
18bc0819b939ceaab3a7cf55215971d56aee9f96
| 1,299
|
cpp
|
C++
|
154.cpp
|
felikjunvianto/kfile-uvaoj-submissions
|
5bd8b3b413ca8523abe412b0a0545f766f70ce63
|
[
"MIT"
] | null | null | null |
154.cpp
|
felikjunvianto/kfile-uvaoj-submissions
|
5bd8b3b413ca8523abe412b0a0545f766f70ce63
|
[
"MIT"
] | null | null | null |
154.cpp
|
felikjunvianto/kfile-uvaoj-submissions
|
5bd8b3b413ca8523abe412b0a0545f766f70ce63
|
[
"MIT"
] | null | null | null |
#include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#define eps 1e-9
#define PII pair<int,int>
#define PDD pair<double,double>
using namespace std;
char masuk[100];
char alokasi[110][5];
int x,y,z,beda,terkecil,terbaik,kota;
int main()
{
kota=-1;
do
{
gets(masuk);
if(masuk[0]=='#') break;
if(masuk[0]=='e')
{
terbaik=terkecil=-1;
for(x=0;x<=kota;x++)
{
beda=0;
for(y=0;y<=kota;y++) if(y!=x)
for(z=0;z<5;z++) if(alokasi[x][z]!=alokasi[y][z]) beda++;
if((terbaik==-1)||(terkecil>beda))
{
terkecil=beda;
terbaik=x;
}
}
printf("%d\n",terbaik+1);
kota=-1;
} else
{
kota++;
for(x=0;x<18;x+=4) switch(masuk[x])
{
case('r') : alokasi[kota][0]=masuk[x+2];break;
case('o') : alokasi[kota][1]=masuk[x+2];break;
case('y') : alokasi[kota][2]=masuk[x+2];break;
case('g') : alokasi[kota][3]=masuk[x+2];break;
case('b') : alokasi[kota][4]=masuk[x+2];break;
}
}
}while(masuk[0]!='#');
return 0;
}
| 19.102941
| 63
| 0.553503
|
felikjunvianto
|
18c52ebff1afd6ce6e3c5d65fe9e42a50051e9fe
| 738
|
cxx
|
C++
|
POSN Camp2/ban_word-113028.cxx
|
ParamaaS/ParamaaS-Cpp-code-
|
a6c78151defe38d1460cde2b005a67be5a1d092d
|
[
"MIT"
] | null | null | null |
POSN Camp2/ban_word-113028.cxx
|
ParamaaS/ParamaaS-Cpp-code-
|
a6c78151defe38d1460cde2b005a67be5a1d092d
|
[
"MIT"
] | null | null | null |
POSN Camp2/ban_word-113028.cxx
|
ParamaaS/ParamaaS-Cpp-code-
|
a6c78151defe38d1460cde2b005a67be5a1d092d
|
[
"MIT"
] | null | null | null |
#include<bits/stdc++.h>
using namespace std;
#define X first
#define Y second
#define pb push_back
#define mp make_pair
long long n;
long long ar[60][10];
long long dp(long long idx,long long ch)
{
if(ar[idx][ch]!=-1)
return ar[idx][ch];
if(idx==1)
return ar[idx][ch]=1;
if(ch!=1)/// not a
{
return ar[idx][ch]=dp(idx-1,1)+dp(idx-1,2)+dp(idx-1,3);
}
else if(ch==1)///is a
{
return ar[idx][ch]=dp(idx-1,1)+dp(idx-1,3);
}
}
main()
{
memset(ar,-1,sizeof ar);
while(scanf("%lld",&n)!=EOF)
{
if(n==0)
{
printf("1\n");
continue;
}
printf("%lld\n",dp(n,1)+dp(n,2)+dp(n,3));
}
}
| 19.945946
| 64
| 0.47561
|
ParamaaS
|
18c6f5b0ca802e3a3cff23d58e9e22b53e304993
| 1,609
|
cpp
|
C++
|
cpp/851. Loud and Rich.cpp
|
longwangjhu/LeetCode
|
a5c33e8d67e67aedcd439953d96ac7f443e2817b
|
[
"MIT"
] | 3
|
2021-08-07T07:01:34.000Z
|
2021-08-07T07:03:02.000Z
|
cpp/851. Loud and Rich.cpp
|
longwangjhu/LeetCode
|
a5c33e8d67e67aedcd439953d96ac7f443e2817b
|
[
"MIT"
] | null | null | null |
cpp/851. Loud and Rich.cpp
|
longwangjhu/LeetCode
|
a5c33e8d67e67aedcd439953d96ac7f443e2817b
|
[
"MIT"
] | null | null | null |
// https://leetcode.com/problems/loud-and-rich/
// In a group of N people (labelled 0, 1, 2, ..., N-1), each person has different
// amounts of money, and different levels of quietness.
// For convenience, we'll call the person with label x, simply "person x".
// We'll say that richer[i] = [x, y] if person x definitely has more money than
// person y. Note that richer may only be a subset of valid observations.
// Also, we'll say quiet[x] = q if person x has quietness q.
// Now, return answer, where answer[x] = y if y is the least quiet person (that is,
// the person y with the smallest value of quiet[y]), among all people who
// definitely have equal to or more money than person x.
////////////////////////////////////////////////////////////////////////////////
// edge x -> y if y is richer, for each x look for the quietest person start from x
class Solution {
public:
// graph[x] = set of richer people
unordered_map<int, unordered_set<int>> graph;
vector<int> ans;
vector<int> loudAndRich(vector<vector<int>>& richer, vector<int>& quiet) {
for (auto& edge : richer) graph[edge[1]].insert(edge[0]);
ans = vector<int>(quiet.size(), -1);
for (int i = 0; i < quiet.size(); ++i) dfs(quiet, i);
return ans;
}
int dfs(const vector<int>& quiet, int i) {
if (ans[i] != -1) return ans[i];
ans[i] = i; // initial val
for (auto child : graph[i]) {
int childAns = dfs(quiet, child);
if (quiet[childAns] < quiet[ans[i]]) ans[i] = childAns;
}
return ans[i];
}
};
| 37.418605
| 83
| 0.585457
|
longwangjhu
|
18c7f597236d07a90fb6e7e71d1fe22ccd75fb25
| 1,916
|
hpp
|
C++
|
src/types.hpp
|
PranayAnchuri/approx-graph-mining-with-label-costs
|
4bb1d78b52175add3955de47281c3ee0073c7943
|
[
"MIT"
] | null | null | null |
src/types.hpp
|
PranayAnchuri/approx-graph-mining-with-label-costs
|
4bb1d78b52175add3955de47281c3ee0073c7943
|
[
"MIT"
] | null | null | null |
src/types.hpp
|
PranayAnchuri/approx-graph-mining-with-label-costs
|
4bb1d78b52175add3955de47281c3ee0073c7943
|
[
"MIT"
] | 1
|
2020-05-08T11:17:33.000Z
|
2020-05-08T11:17:33.000Z
|
#pragma once
#include <string>
#include <vector>
#include <map>
#include <set>
#include <unordered_set>
#include <unordered_map>
namespace types {
typedef int integer_t;
typedef integer_t int_t;
typedef unsigned int unsigned_integer_t;
typedef unsigned_integer_t uint_t;
typedef uint_t symbol_t;
typedef double double_t;
typedef char char_t;
typedef char * charp_t;
typedef float float_t;
typedef long long_t;
typedef unsigned long unsigned_long_t;
typedef unsigned long ulong_t;
typedef bool bool_t;
typedef std::string string_t;
typedef void * void_ptr_t;
typedef int label_t;
typedef int pat_vertex_t;
typedef int db_vertex_t;
typedef std::vector<types::db_vertex_t> vlist_t;
typedef std::set<types::db_vertex_t> set_vlist_t;
typedef std::map<int, label_t> vmap_t;
typedef std::map<int, set_vlist_t > graph_t;
typedef std::map<label_t, vlist_t> lmap_t;
typedef double cost_t;
typedef std::vector<pat_vertex_t> pat_vlist_t;
typedef std::set<pat_vertex_t> pat_set_vlist_t;
typedef std::vector<std::pair<pat_vertex_t, pat_vertex_t> > pat_elist_t;
typedef std::pair<pat_vertex_t, pat_vertex_t> pat_edge_t;
// Pattern in the form of a graph
typedef std::map<pat_vertex_t, pat_vlist_t> pat_graph_t;
// store just the representative vertices without the Repr object
typedef std::map<types::pat_vertex_t, types::set_vlist_t> bare_embeds_t;
// GAPPROX
// one embedding
typedef std::pair<types::cost_t, pat_vlist_t> gapprox_em_t;
// list of all embeddings for a given pattern
typedef std::vector<gapprox_em_t> gapprox_embed_t;
// offsets for the vertices in the database
typedef std::vector<int> offsets_t;
//typedef std::unordered_map<types::pat_vertex_t, std::unordered_map<int, KhopLabel> > pat_hops_t;
//typedef std::unordered_map<types::db_vertex_t , std::unordered_map<int, KhopLabel> > db_hops_t;
} // namespace types
| 31.409836
| 102
| 0.756785
|
PranayAnchuri
|
18cc94708e24ffa0a3ae9e1c38744ed4c06cea31
| 4,198
|
hpp
|
C++
|
include/atma/shared_memory.hpp
|
omnigoat/atma
|
73833f41373fac2af695587786c00a307046de64
|
[
"MIT"
] | 7
|
2016-04-08T03:53:42.000Z
|
2020-07-06T05:52:35.000Z
|
include/atma/shared_memory.hpp
|
omnigoat/atma
|
73833f41373fac2af695587786c00a307046de64
|
[
"MIT"
] | 1
|
2018-04-14T13:56:06.000Z
|
2018-04-14T13:56:06.000Z
|
include/atma/shared_memory.hpp
|
omnigoat/atma
|
73833f41373fac2af695587786c00a307046de64
|
[
"MIT"
] | null | null | null |
#pragma once
#include <atma/platform/allocation.hpp>
import atma.types;
namespace atma
{
namespace detail
{
constexpr size_t header_size = sizeof(size_t) + sizeof(std::atomic_uint32_t) + 4u;
constexpr inline size_t allocation_size(size_t alignment, size_t size)
{
return header_size + (header_size < alignment ? alignment - header_size : 0) + size;
}
}
struct shared_memory_t
{
shared_memory_t() = default;
explicit shared_memory_t(size_t size);
explicit shared_memory_t(size_t size, void* data);
explicit shared_memory_t(size_t alignment, size_t size);
explicit shared_memory_t(size_t alignment, size_t size, void* data);
shared_memory_t(shared_memory_t const&);
shared_memory_t(shared_memory_t&&);
~shared_memory_t();
auto operator = (shared_memory_t const&) -> shared_memory_t&;
auto operator = (shared_memory_t&&) -> shared_memory_t&;
auto size() const -> size_t;
auto begin() -> byte*;
auto end() -> byte*;
auto begin() const -> byte const*;
auto end() const -> byte const*;
private:
auto decrement() -> void;
auto increment() -> void;
auto ref() -> std::atomic_uint32_t&;
auto ref() const -> std::atomic_uint32_t const&;
private:
byte* data_ = nullptr;
};
// our actual data will start 16 bytes after the allocation, allowing space for
// an 8-byte size information, a 4-byte atomic uint32_t for ref-counting, and 4 bytes of padding,
// (to allow for 16-byte alignment naturally).
static_assert(sizeof(std::atomic_uint32_t) == sizeof(uint32_t), "unexpected size of std::atomic");
inline shared_memory_t::shared_memory_t(size_t size)
: shared_memory_t(alignof(int), size)
{}
inline shared_memory_t::shared_memory_t(size_t size, void* data)
: shared_memory_t(alignof(int), size, data)
{}
inline shared_memory_t::shared_memory_t(size_t alignment, size_t size)
: data_((byte*)platform::allocate_aligned_memory(alignment, detail::allocation_size(alignment, size)))
{
new (data_) size_t{size};
new (&ref()) std::atomic_uint32_t{1};
}
inline shared_memory_t::shared_memory_t(size_t alignment, size_t size, void* data)
: data_((byte*)platform::allocate_aligned_memory(alignment, detail::allocation_size(alignment, size)))
{
new (data_) size_t{size};
new (&ref()) std::atomic_uint32_t{1};
memcpy(begin(), data, size);
}
inline shared_memory_t::shared_memory_t(shared_memory_t const& rhs)
: data_(rhs.data_)
{
increment();
}
inline shared_memory_t::shared_memory_t(shared_memory_t&& rhs)
{
std::swap(data_, rhs.data_);
}
inline shared_memory_t::~shared_memory_t()
{
decrement();
}
inline auto shared_memory_t::operator = (shared_memory_t const& rhs) -> shared_memory_t&
{
if (this != &rhs)
{
data_ = rhs.data_;
}
return *this;
}
inline auto shared_memory_t::operator = (shared_memory_t&& rhs) -> shared_memory_t&
{
if (this != &rhs)
{
std::swap(data_, rhs.data_);
}
return *this;
}
inline auto shared_memory_t::size() const -> size_t
{
return *reinterpret_cast<size_t*>(data_);
}
inline auto shared_memory_t::begin() -> byte*
{
return data_ + sizeof(size_t) + sizeof(std::atomic_uint32_t) + 4u;
}
inline auto shared_memory_t::end() -> byte*
{
return begin() + size();
}
inline auto shared_memory_t::begin() const -> byte const*
{
return data_ + sizeof(size_t) + sizeof(std::atomic_uint32_t) + 4u;
}
inline auto shared_memory_t::end() const -> byte const*
{
return begin() + size();
}
inline auto shared_memory_t::decrement() -> void
{
if (data_ && --ref() == 0)
{
atma::platform::deallocate_aligned_memory(data_);
data_ = nullptr;
}
}
inline auto shared_memory_t::increment() -> void
{
if (data_)
++ref();
}
inline auto shared_memory_t::ref() -> std::atomic_uint32_t&
{
return *reinterpret_cast<std::atomic_uint32_t*>(data_ + sizeof(size_t));
}
inline auto shared_memory_t::ref() const -> std::atomic_uint32_t const&
{
return *reinterpret_cast<std::atomic_uint32_t const*>(data_ + sizeof(size_t));
}
}
| 24.694118
| 105
| 0.670796
|
omnigoat
|
18ce0bb394738ee31bcb67b641dd069384026962
| 1,662
|
cpp
|
C++
|
Source/OverlordProject/Components/Other/ColorFlickerComponent.cpp
|
TomvanWaas/OvercookedImitation
|
895b98ff23b026bafc24267c8707d68870a2ac58
|
[
"MIT"
] | null | null | null |
Source/OverlordProject/Components/Other/ColorFlickerComponent.cpp
|
TomvanWaas/OvercookedImitation
|
895b98ff23b026bafc24267c8707d68870a2ac58
|
[
"MIT"
] | null | null | null |
Source/OverlordProject/Components/Other/ColorFlickerComponent.cpp
|
TomvanWaas/OvercookedImitation
|
895b98ff23b026bafc24267c8707d68870a2ac58
|
[
"MIT"
] | null | null | null |
#include "stdafx.h"
#include "ColorFlickerComponent.h"
#include "GameObject.h"
#include "SpriteComponent.h"
#include "GameScene.h"
#include "Destroyer.h"
ColorFlickerComponent::ColorFlickerComponent(const DirectX::XMFLOAT4& colorA, const DirectX::XMFLOAT4& colorB, float speed,
std::vector<SpriteComponent*> pSprites)
: m_Accu(0)
, m_Time(-1)
, m_Speed(speed)
, m_pSprites(pSprites)
, m_ColorA(colorA)
, m_ColorB(colorB)
{
}
void ColorFlickerComponent::Enable(bool enable, float time)
{
m_Time = time;
m_IsEnabled = enable;
m_Accu = 0;
if (enable == false)
{
for (auto* pSprite : m_pSprites)
{
if (pSprite) pSprite->SetColor({ 1,1,1,1 });
}
}
}
void ColorFlickerComponent::Initialize(const GameContext&)
{
//Empty => Init by Get All
if (m_pSprites.size() == 0)
{
m_pSprites = GetGameObject()->GetComponents<SpriteComponent>(true);
}
}
void ColorFlickerComponent::Update(const GameContext& gameContext)
{
if (m_IsEnabled)
{
m_Accu += gameContext.pGameTime->GetElapsed();
float sin = sinf(m_Accu * m_Speed); //[-1, 1]
sin = (sin + 1) * 0.5f; //[ 0, 1]
for (SpriteComponent* pSprite : m_pSprites)
{
if (pSprite) pSprite->SetColor(Lerp(m_ColorA, m_ColorB, sin));
}
if (m_Accu >= m_Time && m_Time > 0)
{
if (m_OnEnd) m_OnEnd();
Enable(false);
}
}
}
void ColorFlickerComponent::Draw(const GameContext&)
{
}
DirectX::XMFLOAT4 ColorFlickerComponent::Lerp(DirectX::XMFLOAT4 a, DirectX::XMFLOAT4 b, float t) const
{
return { a.x * (1 - t) + b.x*t,
a.y * (1 - t) + b.y*t,
a.z * (1 - t) + b.z*t,
a.w * (1 - t) + b.w*t };
}
| 22.767123
| 124
| 0.633574
|
TomvanWaas
|
18cffc0b71b7cebce9c043dc76d90fa6f86755c4
| 1,669
|
hpp
|
C++
|
rm_task/include/rm_task/task_image_proc.hpp
|
Hqz971016/rmoss_core
|
e9e37096ceb883945a838774e20ef58f2de0b10b
|
[
"MIT"
] | 1
|
2020-12-06T13:12:31.000Z
|
2020-12-06T13:12:31.000Z
|
rm_task/include/rm_task/task_image_proc.hpp
|
Hqz971016/rmoss_core
|
e9e37096ceb883945a838774e20ef58f2de0b10b
|
[
"MIT"
] | null | null | null |
rm_task/include/rm_task/task_image_proc.hpp
|
Hqz971016/rmoss_core
|
e9e37096ceb883945a838774e20ef58f2de0b10b
|
[
"MIT"
] | null | null | null |
/*******************************************************************************
* Copyright (c) 2020 robomaster-oss, All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the MIT License, See the MIT License for more details.
*
* You should have received a copy of the MIT License along with this program.
* If not, see <https://opensource.org/licenses/MIT/>.
*
******************************************************************************/
#ifndef RM_TASK_TASK_IMAGE_PROC_HPP
#define RM_TASK_TASK_IMAGE_PROC_HPP
#include <rclcpp/rclcpp.hpp>
#include <image_transport/image_transport.hpp>
#include <sensor_msgs/msg/image.hpp>
#include <opencv2/opencv.hpp>
#include <thread>
#include <string>
namespace rm_task {
//图像处理相关任务基类.如自动瞄准任务,能量机关任务
class TaskImageProc
{
public:
TaskImageProc(rclcpp::Node::SharedPtr &nh);
~TaskImageProc(){};
public:
virtual void taskImageProcess(cv::Mat& img,double img_stamp)=0;
virtual void taskImageWait(){};
virtual void taskSleep(){};
void startTask();
void stopTask();
private:
void mainTask();
void imgSubCb(const sensor_msgs::msg::Image::ConstSharedPtr & msg);
private:
rclcpp::Node::SharedPtr nh_;
//tool
image_transport::Subscriber img_sub_;//订阅图片数据
std::thread task_thread_;
//data
cv::Mat imgbuf_, img_; //获取的图片,以及缓存图片
bool initflag_;
bool get_img_flag_;//使用flag实现多线程同步机制
bool run_flag_; //运行标志位
double img_stamp_;
};
}
#endif //RM_TASK_TASK_IMAGE_PROC_HPP
| 29.280702
| 80
| 0.603355
|
Hqz971016
|
18d9603349604dad388e3eb31dde6bb4f83c195a
| 2,285
|
cpp
|
C++
|
project-euler/src/pe34.cpp
|
ammarhusain/challenges
|
efdb907833d04e9e37fc800d1b2b32507cfcd2e4
|
[
"MIT"
] | null | null | null |
project-euler/src/pe34.cpp
|
ammarhusain/challenges
|
efdb907833d04e9e37fc800d1b2b32507cfcd2e4
|
[
"MIT"
] | null | null | null |
project-euler/src/pe34.cpp
|
ammarhusain/challenges
|
efdb907833d04e9e37fc800d1b2b32507cfcd2e4
|
[
"MIT"
] | null | null | null |
/** ----------------------------------------------------------------------
* Copyright 2014 < Ammar Husain (Carnegie Mellon University) >
*
* @file pe1.cpp
* @author Ammar Husain <ahusain@nrec.ri.cmu.edu>
* @date Thu Jul 31 17:18:28 2014
*
* @brief Boiler Plate
*
*
---------------------------------------------------------------------- */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <vector>
#include <stdint.h>
#include <iostream>
#include <ctime>
void fillFactorial(std::vector<uint64_t>* factorials,
int n) {
factorials->at(n) = n*factorials->at(n-1);
}
uint64_t sumDigitFactorials(uint64_t num,
const std::vector<uint64_t>& factorials) {
uint64_t sum = 0;
while (num > 0) {
int digit = num%10;
sum += factorials[digit];
num = num/10;
}
return sum;
}
uint64_t DigitFactorials()
{
/// precompute factorials
std::vector<uint64_t> factorials(10);
factorials[0] = 1;
for (uint n = 1; n < 10; n++)
fillFactorial(&factorials, n);
/// lowerbound: 2 digits for adding numbers
/// upper bound: 7*9! = 2540160
/// since 8*9! is also a 7 digit number
uint64_t sum = 0;
for (uint64_t i = 10; i <= 2540160; i++) {
if (i == sumDigitFactorials(i, factorials)) {
std::cout << i << std::endl;
sum += i;
}
}
return sum;
}
/** ----------------------------------------------------------------
* Main Routine
*
* @param argc
* @param argv
*
* @return
---------------------------------------------------------------- */
int main(int argc, char *argv[]) {
std::cout << "Boiler-Plate code!" << std::endl;
uint numTests;
std::cin >> numTests;
uint64_t input;
/// keep a timer
std::clock_t start;
double duration;
for (uint i = 0; i < numTests; i++) {
std::cin >> input;
start = std::clock_t();
/// do work here
uint64_t answer = DigitFactorials();
std::cout << answer << std::endl;
duration = (std::clock() - start)/static_cast<double>(CLOCKS_PER_SEC);
std::cout<< "it took: "<< duration << "s" << std::endl;
}
return 0;
}
| 21.971154
| 78
| 0.476586
|
ammarhusain
|
18ddb8a5ebb3a4f000f095759205d7866f95384b
| 8,193
|
cc
|
C++
|
xt_base/www/www/keyform.cc
|
wrcad/xictools
|
f46ba6d42801426739cc8b2940a809b74f1641e2
|
[
"Apache-2.0"
] | 73
|
2017-10-26T12:40:24.000Z
|
2022-03-02T16:59:43.000Z
|
xt_base/www/www/keyform.cc
|
chris-ayala/xictools
|
4ea72c118679caed700dab3d49a8d36445acaec3
|
[
"Apache-2.0"
] | 12
|
2017-11-01T10:18:22.000Z
|
2022-03-20T19:35:36.000Z
|
xt_base/www/www/keyform.cc
|
chris-ayala/xictools
|
4ea72c118679caed700dab3d49a8d36445acaec3
|
[
"Apache-2.0"
] | 34
|
2017-10-06T17:04:21.000Z
|
2022-02-18T16:22:03.000Z
|
/*========================================================================*
* *
* Copyright (c) 2016 Whiteley Research Inc, all rights reserved. *
* *
* WHITELEY RESEARCH INCORPORATED PROPRIETARY SOFTWARE *
* Author: Stephen R. Whiteley (stevew@wrcad.com)
* *
*========================================================================*
* *
* Key registration form handling
* *
*========================================================================*
$Id: keyform.cc,v 1.1 2016/01/15 19:45:21 stevew Exp $
*========================================================================*/
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h>
#include "backend.h"
//
// This handles the "Get A Key" form.
//
namespace {
const char *sedcmdfmt = "sed \'s/@KEY@/%s/;s/@HOSTNAME@/%s/;"
"s/@MSW@/%s/;s/@LINUX@/%s/;s/@OSX@/%s/;"
"s/@KEYTEXT@/%s/;s/@EMAIL@/%s/;s%c@INFO@%c%s%c\' < "
WWWROOT"/www/prices.in";
}
int main(int argc, char **argv)
{
if (argc < 2)
return (1);
sBackEnd::keyval *kval;
int nkv;
if (!sBackEnd::get_keyvals(&kval, &nkv, argv[1])) {
sBackEnd::errordump("Parse failed!");
return (1);
}
// The keys:
// From "Submit"
// hostname
// keytext
// mtype
// email
// text
// From "Find Existing"
// key
OS_type ostype = OS_NONE;
for (int i = 0; i < nkv; i++) {
if (!strcmp(kval[i].key, "mtype")) {
const char *mtype = kval[i].val;
if (!strcmp(mtype, "msw"))
ostype = OS_MSW;
else if (!strcmp(mtype, "linux"))
ostype = OS_LINUX;
else if (!strcmp(mtype, "osx"))
ostype = OS_OSX;
break;
}
if (!strcmp(kval[i].key, "key")) {
sBackEnd be(ostype);
if (!be.set_key(kval[i].val)) {
sBackEnd::errordump(be.error_msg());
return (1);
}
if (!be.recall_hostname()) {
sBackEnd::errordump(be.error_msg());
return (1);
}
if (!be.recall_mtype()) {
sBackEnd::errordump(be.error_msg());
return (1);
}
if (!be.recall_keytext()) {
sBackEnd::errordump(be.error_msg());
return (1);
}
if (!be.recall_email()) {
sBackEnd::errordump(be.error_msg());
return (1);
}
if (!be.recall_info()) {
sBackEnd::errordump(be.error_msg());
return (1);
}
// We need an info string where the newlines are backslash
// quoted.
int len = 0;
const char *p = be.info();
while (*p) {
if (*p == '\n')
len++;
len++;
p++;
}
char *info = new char[len+1];
char *t = info;
p = be.info();
while (*p) {
if (*p == '\n')
*t++ = '\\';
*t++ = *p++;
}
*t = 0;
// Find a delimiter for sed that is not used in the info.
char sp = 0;
if (strchr(info, '/') == 0)
sp = '/';
else if (strchr(info, '%') == 0)
sp = '%';
else if (strchr(info, '&') == 0)
sp = '&';
else if (strchr(info, '~') == 0)
sp = '~';
else if (strchr(info, '+') == 0)
sp = '+';
else {
for (t = info; *t; t++) {
if (*t == '+')
*t = ' ';
}
sp = '+';
}
char *sedcmd = new char[strlen(sedcmdfmt) + strlen(info) +
strlen(be.get_key()) + strlen(be.hostname()) +
strlen(be.keytext()) + strlen(be.email()) + 20];
const char *msw = "";
const char *lnx = "";
const char *osx = "";
if (*be.osname() == 'm')
msw = "selected";
else if (*be.osname() == 'l')
lnx = "selected";
else if (*be.osname() == 'o')
osx = "selected";
sprintf(sedcmd, sedcmdfmt, be.get_key(), be.hostname(),
msw, lnx, osx, be.keytext(), be.email(), sp, sp, info, sp);
delete [] info;
system(sedcmd);
delete [] sedcmd;
return (0);
}
}
if (ostype == OS_NONE) {
sBackEnd::errordump("No Operating System selected!");
return (1);
}
sBackEnd be(ostype);
for (int i = 0; i < nkv; i++) {
if (!strcmp(kval[i].key, "hostname")) {
if (!be.set_hostname(kval[i].val)) {
sBackEnd::errordump(be.error_msg());
return (1);
}
}
else if (!strcmp(kval[i].key, "keytext")) {
if (!be.set_keytext(kval[i].val)) {
sBackEnd::errordump(be.error_msg());
return (1);
}
}
else if (!strcmp(kval[i].key, "email")) {
if (!be.set_email(kval[i].val)) {
sBackEnd::errordump(be.error_msg());
return (1);
}
}
else if (!strcmp(kval[i].key, "text")) {
if (!be.set_info(kval[i].val)) {
sBackEnd::errordump(be.error_msg());
return (1);
}
}
}
// Create the user's key.
const char *key = be.get_key();
if (!key) {
sBackEnd::errordump(be.error_msg());
return (1);
}
// Save the key data in a file.
if (!be.save_key_data()) {
sBackEnd::errordump(be.error_msg());
return (1);
}
// Email the key data to the user.
char *df = be.key_datafile();
FILE *kp = fopen(df, "r");
if (!kp) {
sBackEnd::errordump("failed to open data file");
return (1);
}
delete [] df;
const char *mcmd = "mail -s \"Whiteley Research license key\"";
char *cmd = new char[strlen(mcmd) + strlen(be.email()) + 2];
sprintf(cmd, "%s %s", mcmd, be.email());
FILE *fp = popen(cmd, "w");
if (!fp) {
sBackEnd::errordump("failed to start email thread");
return (1);
}
fprintf(fp, "Hello from wrcad.com, your license key is\n%s\n\n",
be.get_key());
fprintf(fp, "Keep this in a safe place, you will need this to renew\n"
"your license. Contact Whiteley Research if any questions.\n\n");
fprintf(fp, "Automated message, don't reply!\n\n");
fprintf(fp, "The data for this key follows, please verify correctness\n"
"You can re-create the key if necessary to update info.\n\n");
int c;
while ((c = fgetc(kp)) != EOF)
fputc(c, fp);
fclose(kp);
fputc('\n', fp);
pclose(fp);
// Compose the response page.
printf("<body background=/images/tmbg.gif text=#000000 link=#9c009e"
" vlink=#551a8b alink=#ff0000>\n");
printf("<br><br><br><br><br><br><br><br><br><br>\n");
printf("<center><table border=1 cellpadding=12><tr><td bgcolor=white>\n");
printf("<center>Your license key<br><br> <font size=5><tt>%s</tt></font><br></center>\n",
be.get_key());
printf("<br><br>Key data has been emailed to: <tt>%s</tt><br>\n",
be.email());
printf("<p><a href=/cgi-bin/prices.cgi?key=%s#getakey><b>Click here</b></a>"
" to continue.\n", be.get_key());
printf("</td></tr></table></center>\n");
return (0);
}
| 31.511538
| 93
| 0.415965
|
wrcad
|
18e03d1d708bdb656177db3811bb6d1089d1e45b
| 10,018
|
cpp
|
C++
|
ZooidEngine/SceneRenderer/RenderPass/DepthRenderPass.cpp
|
azon04/Z0-Engine
|
1a44781fb5308c11c3b63b954ad683a51e9ba271
|
[
"MIT"
] | 4
|
2019-05-31T22:55:49.000Z
|
2020-11-26T11:55:34.000Z
|
ZooidEngine/SceneRenderer/RenderPass/DepthRenderPass.cpp
|
azon04/Z0-Engine
|
1a44781fb5308c11c3b63b954ad683a51e9ba271
|
[
"MIT"
] | null | null | null |
ZooidEngine/SceneRenderer/RenderPass/DepthRenderPass.cpp
|
azon04/Z0-Engine
|
1a44781fb5308c11c3b63b954ad683a51e9ba271
|
[
"MIT"
] | 1
|
2018-04-11T02:50:47.000Z
|
2018-04-11T02:50:47.000Z
|
#include "DepthRenderPass.h"
#include "ResourceManagers/ShaderManager.h"
#include "ResourceManagers/BufferManager.h"
#include "Resources/Texture.h"
#include "Renderer/IRenderer.h"
#include "Renderer/RenderZooid.h"
#include "Renderer/IGPURenderBuffer.h"
#include "Renderer/IGPUFrameBuffer.h"
#include "Renderer/IGPUTexture.h"
#include "Renderer/IGPUStates.h"
#include "Renderer/RenderQuery.h"
#include "SceneRenderer/SceneRenderer.h"
#include "Math/Vector4.h"
#include "Renderer/DrawList.h"
namespace ZE
{
bool g_bDoSceneOcclusion = false;
bool g_bDoShadowOcclusion = false;
DepthRenderPass::DepthRenderPass()
{
m_shaderChain = nullptr;
m_skinnedShaderChain = nullptr;
m_depthTexture = nullptr;
m_frameBuffer = nullptr;
}
void DepthRenderPass::prepare(GameContext* _gameContext)
{
ScopedRenderThreadOwnership renderLock(_gameContext->getRenderer());
m_shaderChain = ShaderManager::GetInstance()->getShaderChain(Z_SHADER_CHAIN_DEPTH_ONLY);
m_skinnedShaderChain = ShaderManager::GetInstance()->getShaderChain(Z_SHADER_CHAIN_DEPTH_ONLY_SKINNED);
if (!m_depthTexture)
{
TextureCreateDesc textureDesc;
textureDesc.Width = (UInt32)_gameContext->getRenderer()->GetWidth();
textureDesc.Height = (UInt32)_gameContext->getRenderer()->GetHeight();
textureDesc.Channel = 1;
textureDesc.TextureFormat = TEX_DEPTH24_STENCIL8;
textureDesc.WrapU = CLAMP_TO_BORDER;
textureDesc.WrapV = CLAMP_TO_BORDER;
textureDesc.MinFilter = LINEAR;
textureDesc.MagFilter = LINEAR;
textureDesc.DataType = UNSIGNED_INT_24_8;
textureDesc.bGenerateMipMap = false;
Handle depthTextureHandle = _gameContext->getRenderZooid()->CreateRenderTexture();
if (depthTextureHandle.isValid())
{
m_depthTexture = depthTextureHandle.getObject<IGPUTexture>();
m_depthTexture->create(textureDesc);
m_depthTexture->setDebugName("DepthStencilBuffer");
}
}
if (!m_frameBuffer)
{
// Create Frame buffer
Handle fbHandle = _gameContext->getRenderZooid()->CreateFrameBuffer();
if (fbHandle.isValid())
{
m_frameBuffer = fbHandle.getObject<IGPUFrameBuffer>();
m_frameBuffer->bind();
m_frameBuffer->addTextureAttachment(DEPTH_STENCIL_ATTACHMENT, m_depthTexture);
m_frameBuffer->setupAttachments();
m_frameBuffer->unbind();
}
}
}
void DepthRenderPass::release(GameContext* _gameContext)
{
if (m_frameBuffer) { m_frameBuffer->release(); m_frameBuffer = nullptr; }
if (m_depthTexture) { m_depthTexture->release(); m_depthTexture = nullptr; }
}
void DepthRenderPass::begin(GameContext* _gameContext)
{
RenderPass::begin(_gameContext);
ZCHECK(m_frameBuffer);
m_frameBuffer->bind();
}
void DepthRenderPass::end(GameContext* _gameContext)
{
RenderPass::end(_gameContext);
m_frameBuffer->unbind();
// Add output
addOutputTextureBuffer(m_depthTexture);
}
bool DepthRenderPass::execute_CPU(GameContext* _gameContext)
{
return true;
}
bool DepthRenderPass::execute_GPU(GameContext* _gameContext)
{
DrawList* drawList = _gameContext->getRenderDrawList();
_gameContext->getRenderer()->ResetViewport();
_gameContext->getRenderer()->Clear(ERenderBufferBit::DEPTH_BUFFER_BIT | ERenderBufferBit::STENCIL_BUFFER_BIT);
MeshSceneRenderer::Render(drawList->m_meshRenderGatherer.getRenderInfos(), drawList->m_meshRenderGatherer.getRenderCount(), m_shaderChain, true);
SkinMeshSceneRenderer::Render(drawList->m_skinMeshRenderGatherer.getRenderInfos(), drawList->m_skinMeshRenderGatherer.getRenderCount(), m_skinnedShaderChain);
if (g_bDoSceneOcclusion)
{
doOcclusionSceneQueries(drawList->m_meshRenderGatherer.getRenderInfos(), drawList->m_meshRenderGatherer.getRenderCount());
doOcclusionSceneQueries(drawList->m_skinMeshRenderGatherer.getRenderInfos(), drawList->m_skinMeshRenderGatherer.getRenderCount(), true);
if (g_bDoShadowOcclusion)
{
doShadowOcclusionQueries();
}
}
return true;
}
void DepthRenderPass::doOcclusionSceneQueries(RenderInfo* renderInfos, UInt32 renderInfoCount, bool bUsingSkeleton)
{
if (renderInfoCount == 0) { return; }
gGameContext->getRenderer()->PushDebugGroup("SceneOcclusionQueries");
MeshRenderInfo* meshRenderInfos = static_cast<MeshRenderInfo*>(renderInfos);
SkinMeshRenderInfo* skinMeshRenderInfos = static_cast<SkinMeshRenderInfo*>(renderInfos);
// Make Render Queries
Array<RenderQuery> renderQueries(renderInfoCount);
// Get the cube buffer
IGPUBufferArray* cubeArray = BufferManager::getInstance()->getBufferArray(BUFFER_ARRAY_CUBE);
m_shaderChain->bind();
cubeArray->bind();
// Set Depth State
gGameContext->getRenderer()->SetRenderDepthStencilState(TRenderDepthStencilState<true, false, false, ERendererCompareFunc::LEQUAL, ERendererCompareFunc::ALWAYS, 0, 0, 0>::GetGPUState());
gGameContext->getRenderer()->SetRenderRasterizerState(TRenderRasterizerState<EFaceFrontOrder::CCW, ECullFace::CULL_NONE, ERenderFillMode::MODE_FILL>::GetGPUState());
Matrix4x4 transform;
Matrix4x4 worldTransform;
Vector3 extent;
Vector3 pos;
bool bUseStencil = false;
for (UInt32 index = 0; index < renderInfoCount; index++)
{
if (bUsingSkeleton)
{
SkinMeshRenderInfo& skinMesh = skinMeshRenderInfos[index];
extent = skinMesh.m_boxExtent;
pos = skinMesh.m_boxLocalPos;
worldTransform = skinMesh.m_worldTransform;
bUseStencil = false;
}
else
{
MeshRenderInfo& currentMesh = meshRenderInfos[index];
extent = currentMesh.m_boxExtent;
pos = currentMesh.m_boxLocalPos;
worldTransform = currentMesh.m_worldTransform;
bUseStencil = currentMesh.m_outlined;
}
// check if scale has any zero
if (extent.m_x == 0.0f) { extent.m_x = 0.001f; }
if (extent.m_y == 0.0f) { extent.m_y = 0.001f; }
if (extent.m_z == 0.0f) { extent.m_z = 0.001f; }
transform.setScale(extent * 2.0f);
transform.setPos(pos);
transform = transform * worldTransform;
// Bind frame_data
gGameContext->getRenderDrawList()->m_mainConstantBuffer->bind();
m_shaderChain->bindConstantBuffer("frame_data", gGameContext->getRenderDrawList()->m_mainConstantBuffer);
// Create and bind draw data
IGPUBufferData* drawBufferData = BufferManager::getInstance()->getOrCreateDrawBuffer(transform.m_data, sizeof(Matrix4x4));
drawBufferData->bind();
m_shaderChain->bindConstantBuffer("draw_data", drawBufferData);
renderQueries[index].BeginQuery(gGameContext->getRenderer(), RQ_ANY_SAMPLES_PASSED);
gGameContext->getRenderer()->DrawArray(ERenderTopologyEnum::TOPOLOGY_TRIANGLE, 0, 36);
renderQueries[index].EndQuery();
}
gGameContext->getRenderer()->SetRenderRasterizerState(DefaultRasterizerState::GetGPUState());
gGameContext->getRenderer()->SetRenderDepthStencilState(DefaultDepthStencilState::GetGPUState());
cubeArray->unbind();
m_shaderChain->unbind();
// Flush Command to get the query results
gGameContext->getRenderer()->FlushCommands();
gGameContext->getRenderer()->FinishCommands();
for (UInt32 index = 0; index < renderInfoCount; index++)
{
MeshRenderInfo& currentMesh = meshRenderInfos[index];
if (renderQueries[index].IsResultAvailable())
{
currentMesh.m_bCulled = !renderQueries[index].GetBoolResult();
}
}
gGameContext->getRenderer()->PopDebugGroup();
}
void DepthRenderPass::doShadowOcclusionQueries()
{
gGameContext->getRenderer()->PushDebugGroup("ShadowOcclusionQueries");
DrawList* drawList = gGameContext->getRenderDrawList();
const int shadowMapCount = drawList->m_lightShadowSize;
// Make Render Queries
Array<RenderQuery> renderQueries(shadowMapCount);
// Get the cube buffer
IGPUBufferArray* cubeArray = BufferManager::getInstance()->getBufferArray(BUFFER_ARRAY_CUBE);
m_shaderChain->bind();
cubeArray->bind();
// Set Depth State
gGameContext->getRenderer()->SetRenderDepthStencilState(TRenderDepthStencilState<true, false, false, ERendererCompareFunc::LEQUAL, ERendererCompareFunc::ALWAYS, 0, 0, 0>::GetGPUState());
gGameContext->getRenderer()->SetRenderRasterizerState(TRenderRasterizerState<EFaceFrontOrder::CCW, ECullFace::CULL_NONE, ERenderFillMode::MODE_FILL>::GetGPUState());
Matrix4x4 transform;
Matrix4x4 worldTransform;
Vector3 extent;
Vector3 pos;
for (UInt32 index = 0; index < shadowMapCount; index++)
{
if (drawList->m_lightShadowMapData[index].cascadeIndex == 0) { continue; } // first cascade index always visible, no need to do this
transform = drawList->m_lightShadowMapData[index].cullingBoxTransform;
// Bind frame_data
gGameContext->getRenderDrawList()->m_mainConstantBuffer->bind();
m_shaderChain->bindConstantBuffer("frame_data", gGameContext->getRenderDrawList()->m_mainConstantBuffer);
// Create and bind draw data
IGPUBufferData* drawBufferData = BufferManager::getInstance()->getOrCreateDrawBuffer(transform.m_data, sizeof(Matrix4x4));
drawBufferData->bind();
m_shaderChain->bindConstantBuffer("draw_data", drawBufferData);
renderQueries[index].BeginQuery(gGameContext->getRenderer(), RQ_ANY_SAMPLES_PASSED);
gGameContext->getRenderer()->DrawArray(ERenderTopologyEnum::TOPOLOGY_TRIANGLE, 0, 36);
renderQueries[index].EndQuery();
}
gGameContext->getRenderer()->SetRenderRasterizerState(DefaultRasterizerState::GetGPUState());
gGameContext->getRenderer()->SetRenderDepthStencilState(DefaultDepthStencilState::GetGPUState());
cubeArray->unbind();
m_shaderChain->unbind();
// Flush Command to get the query results
gGameContext->getRenderer()->FlushCommands();
gGameContext->getRenderer()->FinishCommands();
for (UInt32 index = 0; index < shadowMapCount; index++)
{
LightShadowMapData& lightMapData = drawList->m_lightShadowMapData[index];
if (lightMapData.cascadeIndex == 0) { continue; } // first cascade index always visible, no need to do this
if (renderQueries[index].IsResultAvailable())
{
lightMapData.bCull = !renderQueries[index].GetBoolResult();
}
}
gGameContext->getRenderer()->PopDebugGroup();
}
}
| 34.191126
| 188
| 0.759034
|
azon04
|
18f0ea5527cb789b6c4aa7af6bffee73d562164a
| 16,636
|
cpp
|
C++
|
linear_solvers/Solver.cpp
|
acse-qq219/Linear_Solvers_app
|
faf5c2272a542a21a3da0c4689adc7eaad30b8e5
|
[
"MIT"
] | null | null | null |
linear_solvers/Solver.cpp
|
acse-qq219/Linear_Solvers_app
|
faf5c2272a542a21a3da0c4689adc7eaad30b8e5
|
[
"MIT"
] | null | null | null |
linear_solvers/Solver.cpp
|
acse-qq219/Linear_Solvers_app
|
faf5c2272a542a21a3da0c4689adc7eaad30b8e5
|
[
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <vector>
#include "Solver.h"
#define COUNT_TIME_MAX 10001
using namespace std;
template <class T>
Solver<T>::Solver() {}
template <class T>
Solver<T>::~Solver() {}
template <class T>
bool Solver<T>::solverJacobi(int iterations, double allowed_convergence, T init_guess, Matrix<T>& a_left, T* b_right_value, T* x_ans, int& counter) {
// Assign all solutions for the initial guess
for (int i = 0; i < a_left.rows; i++) {
x_ans[i] = init_guess;
}
auto* diag_mat = new Matrix<T>(a_left.rows, a_left.cols, true);
auto* remain_mat = new Matrix<T>(a_left.rows, a_left.cols, true);
a_left.getMatDiag(*diag_mat);
a_left.getMatRemn(*remain_mat);
// Get the inverse of diagonal matrix
for (int i = 0; i < a_left.rows; i++) {
if (a_left.getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value"
<< "\n No solution";
return false;
}
else {
diag_mat->setValue(i, i, 1. / diag_mat->getValue(i, i));
}
}
// Result of inverse of diagonal matrix dot multiply (vector) b
// output_db = inv(D) .* b
T* output_db = new T[diag_mat->rows];
diag_mat->matVecMult(diag_mat->rows, b_right_value, output_db);
// Get negative of inverse of diagonal matrix for later use
for (int i = 0; i < diag_mat->rows; i++) {
if (diag_mat->getValue(i, i) != 0) {
diag_mat->setValue(i, i, (-diag_mat->getValue(i, i)));
}
}
counter = 0;
do {
// Result of negative inverse of diagonal matrix dot multiple remainder matrix
// output_dr = -inv(D) .* R
auto* output_dr = new Matrix<T>(diag_mat->rows, remain_mat->cols, true);
diag_mat->matMatMult(*remain_mat, *output_dr);
// Result of output_dr matrix dot multiply (vector) x
// output_drx = output_dr .* x
T* output_drx = new T[output_dr->rows];
output_dr->matVecMult(a_left.rows, x_ans, output_drx);
// Result of output_drx add output_db
// output_add = output_drx + output_db
T* output_add = new T[output_dr->rows];
for (int i = 0; i < output_dr->rows; i++) {
output_add[i] = output_drx[i] + output_db[i];
}
T err = 0;
int err_counter = 0;
for (int i = 0; i < a_left.rows; i++) {
err = abs(output_add[i] - x_ans[i]);
x_ans[i] = output_add[i];
if (err <= allowed_convergence) {
err_counter++;
}
}
counter++;
if (err_counter == a_left.rows) {
delete diag_mat;
delete remain_mat;
delete output_dr;
delete[] output_drx;
delete[] output_db;
delete[] output_add;
return true;
}
delete output_dr;
delete[] output_drx;
delete[] output_add;
} while (counter < iterations);
delete[] output_db;
delete diag_mat;
delete remain_mat;
return false;
}
template <class T>
bool Solver<T>::solverGausSeid(int iterations, double allowed_convergence, T init_guess, Matrix<T>& a_left, T* b_right_value, T* x_ans, int& counter) {
// Assign all solutions for the initial guess
T* temp_x = new T[a_left.rows];
for (int i = 0; i < a_left.rows; i++) {
x_ans[i] = init_guess;
temp_x[i] = 0;
}
auto* diag_mat = new Matrix<T>(a_left.rows, a_left.cols, true);
a_left.getMatDiag(*diag_mat);
// Get the negative inverse of diagonal matrix
for (int i = 0; i < diag_mat->rows; i++) {
if (diag_mat->getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value"
<< "\n No solution";
return false;
}
else {
diag_mat->setValue(i, i, 1. / diag_mat->getValue(i, i));
}
}
T temp_L, temp_U, temp_sum, err;
counter = 0;
int err_counter = 0; // if err is less than allowed convergence, err_counter + 1
do {
for (int i = 0; i < a_left.rows; i++) {
temp_L = temp_U = temp_sum = err = 0;
for (int j = 0; j < i; j++) {
temp_L += a_left.getValue(i, j) * x_ans[j];
}
for (int k = a_left.cols - 1; k >= i + 1; k--) {
temp_U += a_left.getValue(i, k) * x_ans[k];
}
temp_sum = b_right_value[i] - temp_L - temp_U;
temp_x[i] = diag_mat->getValue(i, i) * temp_sum;
err = abs(temp_x[i] - x_ans[i]);
x_ans[i] = temp_x[i];
if (err <= allowed_convergence) {
err_counter++;
}
}
counter++;
if (err_counter == a_left.rows) {
delete diag_mat;
return true;
}
} while (counter < iterations);
delete diag_mat;
return false;
}
template <class T>
bool Solver<T>::solverGausElim(Matrix<T>& a_left, T* b_right_value, T* x_ans) {
for (int i = 0; i < a_left.rows; i++) {
if (a_left.getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value" << endl
<< "No solution" << endl << endl;
system("pause");
return false;
}
}
// Elimination
T temp = 0.0;
for (int k = 0; k < a_left.rows - 1; k++) {
for (int i = k + 1; i < a_left.rows; i++) {
temp = a_left.getValue(i, k) / a_left.getValue(k, k);
for (int j = k; j < a_left.rows; j++) {
a_left.setValue(i, j, a_left.getValue(i, j) - temp * a_left.getValue(k, j));
}
b_right_value[i] -= temp * b_right_value[k];
}
}
//Back substitution
for (int k = a_left.rows - 1; k >= 0; k--) {
temp = 0.0;
for (int j = k + 1; j < a_left.rows; j++) {
temp += a_left.getValue(k, j) * x_ans[j];
}
x_ans[k] = (b_right_value[k] - temp) / a_left.getValue(k, k);
}
return true;
}
template <class T>
bool Solver<T>::solverLuDecom(Matrix<T>& a_left, T* b_right_value, T* x_ans) {
for (int i = 0; i < a_left.rows; i++) {
if (a_left.getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value" << endl
<< "No solution" << endl << endl;
system("pause");
return false;
}
}
T* mat_U = new T[a_left.rows * a_left.cols];
T* mat_L = new T[a_left.rows * a_left.cols];
T* mat_y = new T[a_left.rows];
for (int i = 0; i < a_left.rows * a_left.cols; i++) {
mat_L[i] = 0;
mat_U[i] = 0;
}
for (int i = 0; i < a_left.rows; i++) {
mat_y[i] = 0;
}
for (int i = 0; i < a_left.rows; i++) {
mat_U[i] = a_left.getValue(0, i);
}
for (int i = 1; i < a_left.rows; i++) {
mat_L[i * a_left.rows] = a_left.getValue(i * a_left.rows) / mat_U[0];
}
for (int i = 1; i < a_left.rows; i++) {
for (int k = i; k < a_left.rows; k++) {
T sum1 = 0;
for (int j = 0; j < i; j++) {
sum1 += mat_L[i * a_left.rows + j] * mat_U[j * a_left.rows + k];
}
mat_U[i * a_left.rows + k] = a_left.getValue(i, k) - sum1;
}
if (i != a_left.rows - 1) {
for (int k = i; k < a_left.rows; k++) {
T sum2 = 0;
for (int j = 0; j < i; j++) {
sum2 += mat_L[k * a_left.rows + j] * mat_U[j * a_left.rows + i];
}
mat_L[k * a_left.rows + i] = (a_left.getValue(k, i) - sum2) / mat_U[i * a_left.rows + i];
}
}
}
for (int i = 0; i < a_left.rows; i++) {
mat_L[i * a_left.rows + i] = 1;
}
mat_y[0] = b_right_value[0];
for (int i = 1; i < a_left.rows; i++) {
T sum3 = 0;
for (int k = 0; k < i; k++) {
sum3 += mat_L[i * a_left.rows + k] * mat_y[k];
}
mat_y[i] = b_right_value[i] - sum3;
}
x_ans[a_left.rows - 1] = mat_y[a_left.rows - 1] / mat_U[a_left.rows * a_left.rows - 1];
for (int i = a_left.rows - 2; i >= 0; i--) {
T sum4 = 0;
for (int k = i + 1; k < a_left.rows; k++) {
sum4 += mat_U[i * a_left.rows + k] * x_ans[k];
}
x_ans[i] = (mat_y[i] - sum4) / mat_U[i * a_left.rows + i];
}
delete[] mat_U;
delete[] mat_L;
delete[] mat_y;
return true;
}
template <class T>
bool Solver<T>::solverSor(int iterations, double allowed_convergence, T init_guess, Matrix<T>& a_left, T* b_right_value, T* x_ans, int& counter) {
for (int i = 0; i < a_left.rows; i++) {
if (a_left.getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value" << endl
<< "No solution" << endl << endl;
system("pause");
return false;
}
}
T w = 1.46;
T* vec_y = new T[a_left.rows];
for (int i = 0; i < a_left.rows; i++) {
vec_y[i] = 0;
}
for (int i = 0; i < a_left.rows; i++) {
x_ans[i] = init_guess;
}
counter = 0;
do {
T err = 0;
for (int i = 0; i < a_left.rows; i++) {
T s = 0;
for (int j = 0; j < a_left.rows; j++)
if (j != i)
s += a_left.getValue(i, j) * x_ans[j];
vec_y[i] = (b_right_value[i] - s) / a_left.getValue(i, i);
vec_y[i] = (1 - w) * x_ans[i] + w * vec_y[i];
err = abs(x_ans[i] - vec_y[i]);
x_ans[i] = vec_y[i];
if (err <= allowed_convergence) break;
}
counter++;
} while (counter < iterations);
if (counter == iterations) {
delete[] vec_y;
return false;
}
delete[] vec_y;
return true;
}
template <class T>
bool Solver<T>::solverJacobi(int iterations, double allowed_convergence, T init_guess, CSRMatrix<T>& a_left, T* b_right_value, T* x_ans, int& counter) {
// Assign all solutions for the initial guess
for (int i = 0; i < a_left.rows; i++) {
x_ans[i] = init_guess;
}
auto* diag_mat = new CSRMatrix<T>(a_left.rows, a_left.cols, a_left.rows, true);
auto* remain_mat = new CSRMatrix<T>(a_left.rows, a_left.cols, a_left.nnzs, true);
a_left.getMatDiag(*diag_mat);
a_left.getMatRemn(*remain_mat);
// Get the inverse of diagonal matrix
for (int i = 0; i < a_left.rows; i++) {
if (a_left.getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value"
<< "\n No solution";
return false;
}
else {
diag_mat->setValue(i, i, 1. / diag_mat->getValue(i, i));
}
}
// Result of inverse of diagonal matrix dot multiply (vector) b
// output_db = inv(D) .* b
T* output_db = new T[diag_mat->rows];
diag_mat->matVecMult(diag_mat->rows, b_right_value, output_db);
// Get negative of inverse of diagonal matrix for later use
for (int i = 0; i < diag_mat->rows; i++) {
if (diag_mat->getValue(i, i) != 0) {
diag_mat->setValue(i, i, (-diag_mat->getValue(i, i)));
}
}
counter = 0;
do {
// Result of negative inverse of diagonal matrix dot multiple remainder matrix
// output_dr = -inv(D) .* R
auto* output_dr = new CSRMatrix<T>(diag_mat->rows, remain_mat->cols, a_left.nnzs, true);
diag_mat->matMatMult(*remain_mat, *output_dr);
// Result of output_dr matrix dot multiply (vector) x
// output_drx = output_dr .* x
T* output_drx = new T[output_dr->rows];
output_dr->matVecMult(a_left.rows, x_ans, output_drx);
// Result of output_drx add output_db
// output_add = output_drx + output_db
T* output_add = new T[output_dr->rows];
for (int i = 0; i < output_dr->rows; i++) {
output_add[i] = output_drx[i] + output_db[i];
}
T err = 0;
int err_counter = 0;
for (int i = 0; i < a_left.rows; i++) {
err = abs(output_add[i] - x_ans[i]);
x_ans[i] = output_add[i];
if (err <= allowed_convergence) {
err_counter++;
}
}
counter++;
if (err_counter == a_left.rows) {
delete diag_mat;
delete remain_mat;
delete output_dr;
delete[] output_drx;
delete[] output_db;
delete[] output_add;
return true;
}
delete output_dr;
delete[] output_drx;
delete[] output_add;
} while (counter < iterations);
delete[] output_db;
delete diag_mat;
delete remain_mat;
return false;
}
template <class T>
bool Solver<T>::solverGausSeid(int iterations, double allowed_convergence, T init_guess, CSRMatrix<T>& a_left, T* b_right_value, T* x_ans, int& counter) {
// Assign all solutions for the initial guess
T* temp_x = new T[a_left.rows];
for (int i = 0; i < a_left.rows; i++) {
x_ans[i] = init_guess;
temp_x[i] = 0;
}
auto* diag_mat = new CSRMatrix<T>(a_left.rows, a_left.cols, a_left.cols, true);
a_left.getMatDiag(*diag_mat);
// Get the negative inverse of diagonal matrix
for (int i = 0; i < diag_mat->rows; i++) {
if (diag_mat->getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value"
<< "\n No solution";
return false;
}
else {
diag_mat->setValue(i, i, 1. / diag_mat->getValue(i, i));
}
}
T temp_L, temp_U, temp_sum, err;
counter = 0;
int err_counter = 0; // if err is less than allowed convergence, err_counter + 1
do {
for (int i = 0; i < a_left.rows; i++) {
temp_L = temp_U = temp_sum = err = 0;
for (int j = 0; j < i; j++) {
temp_L += a_left.getValue(i, j) * x_ans[j];
}
for (int k = a_left.cols - 1; k >= i + 1; k--) {
temp_U += a_left.getValue(i, k) * x_ans[k];
}
temp_sum = b_right_value[i] - temp_L - temp_U;
temp_x[i] = diag_mat->getValue(i, i) * temp_sum;
err = abs(temp_x[i] - x_ans[i]);
x_ans[i] = temp_x[i];
if (err <= allowed_convergence) {
err_counter++;
}
}
counter++;
if (err_counter == a_left.rows) {
delete diag_mat;
return true;
}
} while (counter < iterations);
delete diag_mat;
return false;
}
template <class T>
bool Solver<T>::solverGausElim(CSRMatrix<T>& a_left, T* b_right_value, T* x_ans) {
for (int i = 0; i < a_left.rows; i++) {
if (a_left.getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value" << endl
<< "No solution" << endl << endl;
system("pause");
return false;
}
}
// Elimination
T temp = 0.0;
for (int k = 0; k < a_left.rows - 1; k++) {
for (int i = k + 1; i < a_left.rows; i++) {
temp = a_left.getValue(i, k) / a_left.getValue(k, k);
for (int j = k; j < a_left.rows; j++) {
a_left.setValue(i, j, a_left.getValue(i, j) - temp * a_left.getValue(k, j));
}
b_right_value[i] -= temp * b_right_value[k];
}
}
//Back substitution
for (int k = a_left.rows - 1; k >= 0; k--) {
temp = 0.0;
for (int j = k + 1; j < a_left.rows; j++) {
temp += a_left.getValue(k, j) * x_ans[j];
}
x_ans[k] = (b_right_value[k] - temp) / a_left.getValue(k, k);
}
return true;
}
template <class T>
bool Solver<T>::solverLuDecom(CSRMatrix<T>& a_left, T* b_right_value, T* x_ans) {
for (int i = 0; i < a_left.rows; i++) {
if (a_left.getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value" << endl
<< "No solution" << endl << endl;
system("pause");
return false;
}
}
T* mat_U = new T[a_left.rows * a_left.cols];
T* mat_L = new T[a_left.rows * a_left.cols];
T* mat_y = new T[a_left.rows];
for (int i = 0; i < a_left.rows * a_left.cols; i++) {
mat_L[i] = 0;
mat_U[i] = 0;
}
for (int i = 0; i < a_left.rows; i++) {
mat_y[i] = 0;
}
for (int i = 0; i < a_left.rows; i++) {
mat_U[i] = a_left.getValue(0, i);
}
for (int i = 1; i < a_left.rows; i++) {
mat_L[i * a_left.rows] = a_left.getValue(i * a_left.rows) / mat_U[0];
}
for (int i = 1; i < a_left.rows; i++) {
for (int k = i; k < a_left.rows; k++) {
T sum1 = 0;
for (int j = 0; j < i; j++) {
sum1 += mat_L[i * a_left.rows + j] * mat_U[j * a_left.rows + k];
}
mat_U[i * a_left.rows + k] = a_left.getValue(i, k) - sum1;
}
if (i != a_left.rows - 1) {
for (int k = i; k < a_left.rows; k++) {
T sum2 = 0;
for (int j = 0; j < i; j++) {
sum2 += mat_L[k * a_left.rows + j] * mat_U[j * a_left.rows + i];
}
mat_L[k * a_left.rows + i] = (a_left.getValue(k, i) - sum2) / mat_U[i * a_left.rows + i];
}
}
}
for (int i = 0; i < a_left.rows; i++) {
mat_L[i * a_left.rows + i] = 1;
}
mat_y[0] = b_right_value[0];
for (int i = 1; i < a_left.rows; i++) {
T sum3 = 0;
for (int k = 0; k < i; k++) {
sum3 += mat_L[i * a_left.rows + k] * mat_y[k];
}
mat_y[i] = b_right_value[i] - sum3;
}
x_ans[a_left.rows - 1] = mat_y[a_left.rows - 1] / mat_U[a_left.rows * a_left.rows - 1];
for (int i = a_left.rows - 2; i >= 0; i--) {
T sum4 = 0;
for (int k = i + 1; k < a_left.rows; k++) {
sum4 += mat_U[i * a_left.rows + k] * x_ans[k];
}
x_ans[i] = (mat_y[i] - sum4) / mat_U[i * a_left.rows + i];
}
delete[] mat_U;
delete[] mat_L;
delete[] mat_y;
return true;
}
template <class T>
bool Solver<T>::solverSor(int iterations, double allowed_convergence, T init_guess, CSRMatrix<T>& a_left, T* b_right_value, T* x_ans, int& counter) {
for (int i = 0; i < a_left.rows; i++) {
if (a_left.getValue(i, i) == 0) {
cerr << "Main diagonal elements of LHS A matrix exist 0 value" << endl
<< "No solution" << endl << endl;
system("pause");
return false;
}
}
T w = 1.46;
T* vec_y = new T[a_left.rows];
for (int i = 0; i < a_left.rows; i++) {
vec_y[i] = 0;
}
for (int i = 0; i < a_left.rows; i++) {
x_ans[i] = init_guess;
}
counter = 0;
do {
T err = 0;
for (int i = 0; i < a_left.rows; i++) {
T s = 0;
for (int j = 0; j < a_left.rows; j++)
if (j != i)
s += a_left.getValue(i, j) * x_ans[j];
vec_y[i] = (b_right_value[i] - s) / a_left.getValue(i, i);
vec_y[i] = (1 - w) * x_ans[i] + w * vec_y[i];
err = abs(x_ans[i] - vec_y[i]);
x_ans[i] = vec_y[i];
if (err <= allowed_convergence) break;
}
counter++;
} while (counter < iterations);
if (counter == iterations) {
delete[] vec_y;
return false;
}
delete[] vec_y;
return true;
}
| 25.476263
| 154
| 0.594975
|
acse-qq219
|
18f7d8b99ab0329b98f5b67678bf3508ce0fae11
| 2,153
|
cpp
|
C++
|
DawnBreakers/Source/Basic/Private/TestAttrModifyActor.cpp
|
954818696/FPSGame
|
bc82ceb1b56460a8e0e0c0e9a0da20fb5898e158
|
[
"MIT"
] | 1
|
2017-01-21T14:08:06.000Z
|
2017-01-21T14:08:06.000Z
|
DawnBreakers/Source/Basic/Private/TestAttrModifyActor.cpp
|
954818696/FPSGame
|
bc82ceb1b56460a8e0e0c0e9a0da20fb5898e158
|
[
"MIT"
] | null | null | null |
DawnBreakers/Source/Basic/Private/TestAttrModifyActor.cpp
|
954818696/FPSGame
|
bc82ceb1b56460a8e0e0c0e9a0da20fb5898e158
|
[
"MIT"
] | 2
|
2017-11-14T10:36:01.000Z
|
2020-07-13T08:52:08.000Z
|
// Fill out your copyright notice in the Description page of Project Settings.
#include "TestAttrModifyActor.h"
//#if WITH_DEV_AUTOMATION_TESTS
// Sets default values
ATestAttrModifyActor::ATestAttrModifyActor()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
AttrModifyComp = CreateDefaultSubobject<UAttrModifyComponent>(TEXT("AttrModifyComponent"));
IntegerAttr = 1024;
FloatAttr = 128.128;
// Register.
TArray<FAttrRegisterItem> RegAttr;
FAttrRegisterItem IntegerReg, FloatReg;
IntegerReg.AttrName = TEXT("IntegerAttr");
IntegerReg.AttrVariableType = EAttrVariableType::Int;
IntegerReg.AttrDataPtr = &IntegerAttr;
IntegerReg.OriginalValue = IntegerAttr;
IntegerReg.HasReplicatedTag = false;
RegAttr.Add(IntegerReg);
FloatReg.AttrName = TEXT("FloatAttr");
FloatReg.AttrVariableType = EAttrVariableType::Float;
FloatReg.AttrDataPtr = &FloatAttr;
FloatReg.OriginalValue = FloatAttr;
IntegerReg.HasReplicatedTag = false;
RegAttr.Add(FloatReg);
AttrModifyComp->RegisterModifyAbleAttr(RegAttr);
}
UAttrModifyComponent* ATestAttrModifyActor::GetAttrModifyComponent_Implementation()
{
//UE_LOG(LogTemp, Error, TEXT("ATestAttrModifyActor GetAttrModifyComponent_Implementation"));
return AttrModifyComp;
}
TArray<AActor*> ATestAttrModifyActor::GetRelevantActors_Implementation()
{
TArray<AActor*> OutTargets;
OutTargets.Add(this);
//UE_LOG(LogTemp, Error, TEXT("ATestAttrModifyActor GetRelevantActors_Implementation"));
return OutTargets;
}
// Called when the game starts or when spawned
void ATestAttrModifyActor::BeginPlay()
{
Super::BeginPlay();
}
bool ATestAttrModifyActor::TestGetVariable()
{
UIntProperty* IntProp = FindField<UIntProperty>(GetClass(), TEXT("xubowen"));
if (IntProp)
{
int32* FoundInt = nullptr;
FoundInt = IntProp->GetPropertyValuePtr_InContainer(this);
if (FoundInt)
{
*FoundInt = 100;
return true;
}
}
return false;
}
// Called every frame
void ATestAttrModifyActor::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}
//#endif //WITH_DEV_AUTOMATION_TESTS
| 24.465909
| 115
| 0.775662
|
954818696
|
18fd5e51b9ace076e762342b477cefb7d7ac7c90
| 773
|
hpp
|
C++
|
src/data/Contour.hpp
|
haruneko/uzume_vocoder
|
63343118fd8d0dd8b7ebb92d98f023bfa6b9855e
|
[
"MIT"
] | 1
|
2020-04-28T06:29:25.000Z
|
2020-04-28T06:29:25.000Z
|
src/data/Contour.hpp
|
haruneko/uzume
|
63343118fd8d0dd8b7ebb92d98f023bfa6b9855e
|
[
"MIT"
] | null | null | null |
src/data/Contour.hpp
|
haruneko/uzume
|
63343118fd8d0dd8b7ebb92d98f023bfa6b9855e
|
[
"MIT"
] | null | null | null |
// Copyright 2020 Hal@shurabaP. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
#ifndef UZUME_VOCODER_CONTOUR_HPP
#define UZUME_VOCODER_CONTOUR_HPP
namespace uzume { namespace vocoder {
/**
* Contour represents array values in time axis.
*/
class Contour final {
public:
Contour() = delete;
Contour(double msLength, double msFramePeriod);
~Contour();
/**
* @param ms points the time.
* @return the value at ms.
*/
double at(double ms) const;
/**
* @return an entire length in milli seconds.
*/
double msLength() const;
const int length;
double *data;
const double msFramePeriod;
};
} }
#endif //UZUME_VOCODER_CONTOUR_HPP
| 20.891892
| 53
| 0.673997
|
haruneko
|
bb4402880342b48323057c0d00c0b5329f3a1af3
| 605
|
cpp
|
C++
|
tests/BinaryTreeRightSideViewTest.cpp
|
yanzhe-chen/LeetCode
|
d82f0b9721ea613ab216c78e7286671d0e9e4187
|
[
"MIT"
] | 43
|
2015-10-10T12:59:52.000Z
|
2018-07-11T18:07:00.000Z
|
tests/BinaryTreeRightSideViewTest.cpp
|
yanzhe-chen/LeetCode
|
d82f0b9721ea613ab216c78e7286671d0e9e4187
|
[
"MIT"
] | null | null | null |
tests/BinaryTreeRightSideViewTest.cpp
|
yanzhe-chen/LeetCode
|
d82f0b9721ea613ab216c78e7286671d0e9e4187
|
[
"MIT"
] | 11
|
2015-10-10T14:41:11.000Z
|
2018-07-28T06:03:16.000Z
|
#include "catch.hpp"
#include "BinaryTreeRightSideView.hpp"
TEST_CASE("Binary Tree Right Side View") {
BinaryTreeRightSideView s;
TreeNode *root = nullptr;
SECTION("Sample test") {
TreeNode *_5 = new TreeNode(5);
TreeNode *_4 = new TreeNode(4);
TreeNode *_2 = new TreeNode(2, nullptr, _5);
TreeNode *_3 = new TreeNode(3, nullptr, _4);
TreeNode *_1 = new TreeNode(1, _2, _3);
root = _1;
vector<int> expected{1, 3, 4};
vector<int> result = s.rightSideView(root);
REQUIRE(result == expected);
}
tree_free(root);
}
| 28.809524
| 52
| 0.603306
|
yanzhe-chen
|
bb4455886d8dbff0625ae111afb488763a801462
| 2,012
|
cpp
|
C++
|
TouchGFX/generated/fonts/src/Table_trebucbd_80_4bpp.cpp
|
timagr615/ILI9488_touchGFX
|
5d3695f09a440edefe3d0ddf727e08c7fd5e5bd2
|
[
"MIT"
] | null | null | null |
TouchGFX/generated/fonts/src/Table_trebucbd_80_4bpp.cpp
|
timagr615/ILI9488_touchGFX
|
5d3695f09a440edefe3d0ddf727e08c7fd5e5bd2
|
[
"MIT"
] | null | null | null |
TouchGFX/generated/fonts/src/Table_trebucbd_80_4bpp.cpp
|
timagr615/ILI9488_touchGFX
|
5d3695f09a440edefe3d0ddf727e08c7fd5e5bd2
|
[
"MIT"
] | null | null | null |
// Autogenerated, do not edit
#include <fonts/GeneratedFont.hpp>
FONT_TABLE_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::GlyphNode glyphs_trebucbd_80_4bpp[] FONT_TABLE_LOCATION_FLASH_ATTRIBUTE = {
{ 0, 0x0020, 0, 0, 0, 0, 24, 0, 1, 0x00 },
{ 0, 0x003F, 29, 60, 59, 4, 35, 0, 0, 0x00 },
{ 900, 0x0041, 51, 59, 59, 0, 51, 1, 1, 0x00 },
{ 2434, 0x0052, 45, 58, 58, 5, 49, 0, 0, 0x00 },
{ 3768, 0x0053, 35, 60, 59, 3, 41, 0, 0, 0x00 },
{ 4848, 0x0061, 39, 44, 43, 2, 43, 2, 1, 0x00 },
{ 5728, 0x0063, 37, 44, 43, 2, 41, 0, 0, 0x00 },
{ 6564, 0x0065, 42, 44, 43, 2, 46, 0, 0, 0x00 },
{ 7488, 0x0069, 17, 59, 59, 2, 24, 0, 0, 0x00 },
{ 8019, 0x006C, 16, 61, 60, 6, 24, 0, 0, 0x00 },
{ 8507, 0x006E, 37, 43, 43, 5, 47, 0, 0, 0x00 },
{ 9324, 0x0072, 29, 43, 43, 5, 34, 0, 0, 0x00 },
{ 9969, 0x0079, 42, 59, 42, 0, 43, 3, 1, 0x00 },
{ 11208, 0x007A, 38, 42, 42, 2, 42, 0, 0, 0x00 }
};
// trebucbd_80_4bpp
FONT_TABLE_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::GlyphNode glyphs_trebucbd_80_4bpp[] FONT_TABLE_LOCATION_FLASH_ATTRIBUTE;
FONT_GLYPH_LOCATION_FLASH_PRAGMA
KEEP extern const uint8_t unicodes_trebucbd_80_4bpp_0[] FONT_GLYPH_LOCATION_FLASH_ATTRIBUTE;
FONT_SEARCHTABLE_LOCATION_FLASH_PRAGMA
KEEP extern const uint8_t* const unicodes_trebucbd_80_4bpp[] FONT_SEARCHTABLE_LOCATION_FLASH_ATTRIBUTE = {
unicodes_trebucbd_80_4bpp_0
};
FONT_KERNING_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::KerningNode kerning_trebucbd_80_4bpp[] FONT_KERNING_LOCATION_FLASH_ATTRIBUTE;
touchgfx::GeneratedFont& getFont_trebucbd_80_4bpp();
touchgfx::GeneratedFont& getFont_trebucbd_80_4bpp()
{
static touchgfx::GeneratedFont trebucbd_80_4bpp(glyphs_trebucbd_80_4bpp, 14, 80, 17, 4, 1, 0, 1, unicodes_trebucbd_80_4bpp, kerning_trebucbd_80_4bpp, 63, 0, 0, 0);
return trebucbd_80_4bpp;
}
| 49.073171
| 167
| 0.644135
|
timagr615
|
bb454db385d80d86cacdcbb9cae15acb8695970e
| 5,907
|
hpp
|
C++
|
src/module/sps_module.hpp
|
byrcoder/sps
|
20c910f6f3a2784f7bbab316d8a4049076650286
|
[
"MIT"
] | 8
|
2021-06-13T18:15:27.000Z
|
2022-02-05T07:39:58.000Z
|
src/module/sps_module.hpp
|
byrcoder/sps
|
20c910f6f3a2784f7bbab316d8a4049076650286
|
[
"MIT"
] | 4
|
2021-06-12T20:06:44.000Z
|
2022-02-05T08:22:08.000Z
|
src/module/sps_module.hpp
|
byrcoder/sps
|
20c910f6f3a2784f7bbab316d8a4049076650286
|
[
"MIT"
] | 1
|
2022-02-21T00:58:31.000Z
|
2022-02-21T00:58:31.000Z
|
/*****************************************************************************
MIT License
Copyright (c) 2021 byrcoder
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.
*****************************************************************************/
/**
* module X consists of followings:
* 1. Conf${X}Ctx reload context
* 2. ${X}Module
* a. create_conf required, impl Conf${X} context
* b. pre_conf optional, do something after create_conf and before init_conf default nothing
* c. post_sub_module optional, do something after a submodule post_conf.
* d. post_conf optional, do something after the init_conf success
* e. install optional, do something startup such as starting a server
* 3. ${X}ModuleFactory how ${X}Module create work as reflection
*
* module layer show such as
* ++++++++++++++++
* + root options +
* ++++++++++++++++ \
* / | \
* / | \
* ++++++++++++ ++++++++++++++ \ +++++++++++++++++++
* + upstream + + http/rtmp + + host (global) +
* ++++++++++++ ++++++++++++++ ++++++++++++++++++
* | | /
* | | /
* ++++++++++ ++++++++ /
* + server + + host +
* ++++++++++ ++++++++
* |
* |
* ++++++++++
* + stream +
* ++++++++++
*
*/
#ifndef SPS_CONFIG_MODULE_HPP
#define SPS_CONFIG_MODULE_HPP
#include <cstdio>
#include <cctype>
#include <cstddef>
#include <algorithm>
#include <list>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <sps_module_opt.hpp>
#include <sps_log.hpp>
namespace sps {
struct ConfCtx {
};
typedef std::shared_ptr<ConfCtx> PConfCtx;
class IModule;
typedef std::shared_ptr<IModule> PIModule;
typedef std::string ModuleType;
class IModule : public std::enable_shared_from_this<IModule> {
public:
IModule(ModuleType module_type, std::string module_name,
const ConfigOption* opts, PIModule parent);
virtual ~IModule() = default;
public:
virtual PConfCtx create_conf() = 0;
public:
// every thing work in
virtual error_t install();
public:
virtual error_t pre_conf();
virtual error_t post_conf();
virtual error_t post_sub_module(PIModule sub);
virtual error_t merge(PIModule& module);
error_t init_conf(PIReader rd);
error_t parse(const std::string &line, std::string &cmd, std::string &arg,
LineType <);
public:
bool is_module(const std::string& name);
private:
error_t set_default();
public:
ModuleType module_type;
std::string module_name;
PConfCtx conf;
const ConfigOption* opts;
PIModule parent;
public:
std::map<ModuleType, std::list<PIModule> > subs;
};
class IModuleFactory {
public:
virtual ~IModuleFactory() = default;
virtual PIModule create(const std::string& module, const std::string& arg,
PIModule parent) = 0;
public:
std::string module;
};
typedef std::shared_ptr<IModuleFactory> PIModuleFactory;
class ModuleFactoryRegister :
public KeyRegisters<std::string, PIModuleFactory> {
public:
PIModule create(const std::string& name, const std::string& arg,
PIModule parent);
private:
std::map<std::string, PIModuleFactory> factories;
};
#define MODULE_CONSTRUCT(N, opt) \
N##Module(std::string module_type, std::string module_name, \
PIModule parent): \
IModule(std::move(module_type), std::move(module_name), \
opt, std::move(parent)) { \
}
#define MODULE_CREATE_CTX(N) \
PConfCtx create_conf() override { \
return std::make_shared<N##ConfCtx>(); \
}
#define MODULE_FACTORY(N) \
class N##ModuleFactory : public IModuleFactory { \
public: \
N##ModuleFactory() { \
module = #N; \
std::transform(module.begin(), module.end(), module.begin(), ::tolower); \
} \
public: \
PIModule create(const std::string& module, \
const std::string& arg, PIModule parent) { \
sp_debug("===================== %s create %s module:%s, " \
"arg:%s=================================", \
parent ? parent->module_type.c_str() : "root", \
#N, module.c_str(), arg.c_str()); \
return std::make_shared<N##Module> (module, arg, parent); \
} \
};
} // namespace sps
#endif // SPS_CONFIG_MODULE_HPP
| 32.103261
| 96
| 0.555104
|
byrcoder
|
bb4925305a58ee6e569b836d42b887e5429ec2f2
| 16,621
|
cpp
|
C++
|
ExeExplorer/CodeCommon.cpp
|
Fiskmans/FiskDisassembler
|
0ede8f0ebf307bf45730e36258f6718312d40490
|
[
"MIT"
] | null | null | null |
ExeExplorer/CodeCommon.cpp
|
Fiskmans/FiskDisassembler
|
0ede8f0ebf307bf45730e36258f6718312d40490
|
[
"MIT"
] | null | null | null |
ExeExplorer/CodeCommon.cpp
|
Fiskmans/FiskDisassembler
|
0ede8f0ebf307bf45730e36258f6718312d40490
|
[
"MIT"
] | null | null | null |
#include "CodeCommon.h"
#include "ConsoleHelp.h"
#include <algorithm>
#include <map>
namespace globals {
std::vector<BranchType> globalFunctions;
std::vector<BranchType> globalBranches;
const size_t globalLocationColumn = 50;
size_t globalImageBase = 0;
} // globals
std::string
GenerateName(
std::string aName,
std::string aSuffix)
{
static size_t counter = 0;
return aName + std::to_string(++counter) + aSuffix;
}
std::string
GetOrGenerateFunctionName(
size_t aAddress,
std::string aSuffix)
{
static std::map<size_t, std::string> names;
if (names.count(aAddress) == 0)
{
names[aAddress] = GenerateName("function_", aSuffix);
for (BranchType& b : globals::globalFunctions)
{
if (b.myAddress == aAddress)
{
names[aAddress] = b.myName;
}
}
}
return names[aAddress];
}
std::string
GetOrGenerateLocationName(
size_t aAddress,
std::string aSuffix)
{
static std::map<size_t, std::string> names;
if (names.count(aAddress) == 0)
{
names[aAddress] = GenerateName("location_", aSuffix);
}
return names[aAddress];
}
void
AddFunction(
BranchType aFunction)
{
globals::globalFunctions.insert(
std::upper_bound(
globals::globalFunctions.begin(),
globals::globalFunctions.end(),
aFunction,
[](const BranchType& aA, const BranchType& aB) { return aA.myAddress < aB.myAddress; }),
aFunction);
}
void
AddFunction(
size_t aAddress,
std::string aSuffix)
{
for (BranchType& b : globals::globalFunctions)
if (b.myAddress == aAddress)
return;
AddFunction({GetOrGenerateFunctionName(aAddress, aSuffix), aAddress, false});
}
void
AddBranch(
size_t aAddress,
std::string aSuffix)
{
for (BranchType& b : globals::globalBranches)
if (b.myAddress == aAddress)
return;
BranchType b{GetOrGenerateLocationName(aAddress, aSuffix), aAddress, false};
globals::globalBranches.insert(
std::upper_bound(
globals::globalBranches.begin(),
globals::globalBranches.end(),
b,
[](const BranchType& aA, const BranchType& aB) { return aA.myAddress < aB.myAddress; }),
b);
}
void
PrintFunction(
const std::string& aName)
{
PRINTF_LIGHTBLUE("%s", aName.c_str());
}
void
PrintFunction(
size_t aAddress)
{
PrintFunction(GetOrGenerateFunctionName(aAddress));
}
void
PrintLocation(
const std::string& aName)
{
PRINTF_BLUE("%s", aName.c_str());
}
void
PrintLocation(
size_t aAddress)
{
PrintLocation(GetOrGenerateLocationName(aAddress));
}
ModRMByte
ParseModRM(
unsigned char aByte,
REXState aREX)
{
ModRMByte ret;
ret.mod = (aByte & 0b11000000) >> 6;
ret.reg = (aByte & 0b00111000) >> 3;
ret.rm = (aByte & 0b00000111);
if (aREX.r)
ret.reg |= 0b1000;
if (aREX.b)
ret.rm |= 0b1000;
return ret;
}
SIBByte
ParseSIB(
unsigned char aByte,
REXState aREX)
{
SIBByte ret;
ret.scale = (aByte & 0b11000000) >> 6;
ret.index = (aByte & 0b00111000) >> 3;
ret.base = (aByte & 0b00000111);
if (aREX.x)
ret.index |= 0b1000;
if (aREX.b)
ret.base |= 0b1000;
return ret;
}
std::string
RegMemSIB(
ModRMByte aModRM,
SIBByte aSIB)
{
std::string out = "[";
switch (aSIB.index)
{
case 0b000:
out += (std::to_string(1 << aSIB.scale)) + " * rAX + ";
break;
case 0b001:
out += (std::to_string(1 << aSIB.scale)) + " * rCX + ";
break;
case 0b010:
out += (std::to_string(1 << aSIB.scale)) + " * rDX + ";
break;
case 0b011:
out += (std::to_string(1 << aSIB.scale)) + " * rBX + ";
break;
case 0b100:
break;
case 0b101:
out += (std::to_string(1 << aSIB.scale)) + " * rBP + ";
break;
case 0b110:
out += (std::to_string(1 << aSIB.scale)) + " * rSI + ";
break;
case 0b111:
out += (std::to_string(1 << aSIB.scale)) + " * rDI + ";
break;
}
switch (aSIB.base)
{
case 0b000:
out += "rAX + ";
break;
case 0b001:
out += "rCX + ";
break;
case 0b010:
out += "rDX + ";
break;
case 0b011:
out += "rBX + ";
break;
case 0b100:
out += "rSP + ";
break;
case 0b101:
if (aModRM.mod != 0b00)
{
out += "rBP + ";
}
break;
case 0b110:
out += "rSI + ";
break;
case 0b111:
out += "rDI + ";
break;
}
out += "offset]";
return out;
}
std::string
RegMem(
ModRMByte aModRM,
REXState aREX,
RegisterSize aRegisterSize,
bool aSelector,
const std::vector<unsigned char>& aImage,
size_t aNextByte,
uint32_t& aOutExtraConsumed,
int32_t* aOutMarkerAt)
{
aOutExtraConsumed = 0;
if (aSelector)
{
switch (aModRM.reg)
{
case 0b0000:
return "[rAX]";
case 0b0001:
return "[rCX]";
case 0b0010:
return "[rDX]";
case 0b0011:
return "[rBX]";
case 0b0100:
return "[rSP]";
case 0b0101:
return "[rBP]";
case 0b0110:
return "[rSI]";
case 0b0111:
return "[rDI]";
case 0b1000:
return "[r8]";
case 0b1001:
return "[r9]";
case 0b1010:
return "[r10]";
case 0b1011:
return "[r11]";
case 0b1100:
return "[r12]";
case 0b1101:
return "[r13]";
case 0b1110:
return "[r14]";
case 0b1111:
return "[r15]";
}
return "[unkwon reg field]";
}
switch (aModRM.mod)
{
case 0b11:
switch (aModRM.rm)
{
case 0b0000:
return "[rAX]";
case 0b0001:
return "[rCX]";
case 0b0010:
return "[rDX]";
case 0b0011:
return "[rBX]";
case 0b0100:
return "[rSP]";
case 0b0101:
return "[rBP]";
case 0b0110:
return "[rSI]";
case 0b0111:
return "[rDI]";
case 0b1000:
return "[r8]";
case 0b1001:
return "[r9]";
case 0b1010:
return "[r10]";
case 0b1011:
return "[r11]";
case 0b1100:
return "[r12]";
case 0b1101:
return "[r13]";
case 0b1110:
return "[r14]";
case 0b1111:
return "[r15]";
}
break;
case 0b01: {
int8_t offset;
memcpy(&offset, aImage.data() + aNextByte, sizeof(offset));
aOutExtraConsumed = 1;
switch (aModRM.rm)
{
case 0b000:
return "[rAX" + StringSignedHex(offset) + "]";
case 0b001:
return "[rCX" + StringSignedHex(offset) + "]";
case 0b010:
return "[rDX" + StringSignedHex(offset) + "]";
case 0b011:
return "[rBX" + StringSignedHex(offset) + "]";
case 0b100: {
SIBByte sib = ParseSIB(aImage[aNextByte], aREX);
std::string out = "[";
switch (sib.base)
{
case 0b000:
out += "rAX";
break;
case 0b001:
out += "rCX";
break;
case 0b010:
out += "rDX";
break;
case 0b011:
out += "rBX";
break;
case 0b100:
out += "rSP";
break;
case 0b101:
out += "rBP";
break;
case 0b110:
out += "rSI";
break;
case 0b111:
out += "rDI";
break;
}
int8_t offsetWithSib;
memcpy(&offsetWithSib, aImage.data() + aNextByte + 1, sizeof(offsetWithSib));
out += StringSignedHex(offset) + "]";
aOutExtraConsumed = 2;
return out;
}
case 0b101:
return "[rBP" + StringSignedHex(offset) + "]";
case 0b110: {
return "[rSI" + StringSignedHex(offset) + "]";
}
case 0b111:
return "[rDI" + StringSignedHex(offset) + "]";
case 0b1000:
return "[r8" + StringSignedHex(offset) + "]";
case 0b1001:
return "[r9" + StringSignedHex(offset) + "]";
case 0b1010:
return "[r10" + StringSignedHex(offset) + "]";
case 0b1011:
return "[r11" + StringSignedHex(offset) + "]";
case 0b1100:
return "[r12" + StringSignedHex(offset) + "]";
case 0b1101:
return "[r13" + StringSignedHex(offset) + "]";
case 0b1110:
return "[r14" + StringSignedHex(offset) + "]";
case 0b1111:
return "[r15" + StringSignedHex(offset) + "]";
}
break;
}
case 0b10: {
int32_t offset;
memcpy(&offset, aImage.data() + aNextByte, sizeof(offset));
aOutExtraConsumed = 4;
switch (aModRM.rm)
{
case 0b000:
return "[rAX" + StringSignedHex(offset) + "]";
case 0b001:
return "[rCX" + StringSignedHex(offset) + "]";
case 0b010:
return "[rDX" + StringSignedHex(offset) + "]";
case 0b011:
return "[rBX" + StringSignedHex(offset) + "]";
case 0b100: {
SIBByte sib = ParseSIB(aImage[aNextByte], aREX);
std::string out = "[";
switch (sib.base)
{
case 0b000:
out += "rAX";
break;
case 0b001:
out += "rCX";
break;
case 0b010:
out += "rDX";
break;
case 0b011:
out += "rBX";
break;
case 0b100:
out += "rSP";
break;
case 0b101:
out += "rBP";
break;
case 0b110:
out += "rSI";
break;
case 0b111:
out += "rDI";
break;
}
int32_t offsetWithSib;
memcpy(&offsetWithSib, aImage.data() + aNextByte + 1, sizeof(offsetWithSib));
out += StringSignedHex(offset) + "]";
aOutExtraConsumed = 5;
return out;
}
case 0b101:
return "[rBP" + StringSignedHex(offset) + "]";
case 0b110:
return "[rSI" + StringSignedHex(offset) + "]";
case 0b111:
return "[rDI" + StringSignedHex(offset) + "]";
case 0b1000:
return "[r8" + StringSignedHex(offset) + "]";
case 0b1001:
return "[r9" + StringSignedHex(offset) + "]";
case 0b1010:
return "[r10" + StringSignedHex(offset) + "]";
case 0b1011:
return "[r11" + StringSignedHex(offset) + "]";
case 0b1100:
return "[r12" + StringSignedHex(offset) + "]";
case 0b1101:
return "[r13" + StringSignedHex(offset) + "]";
case 0b1110:
return "[r14" + StringSignedHex(offset) + "]";
case 0b1111:
return "[r15" + StringSignedHex(offset) + "]";
}
break;
}
case 0b00:
switch (aModRM.rm)
{
case 0b000:
return "[rAX]";
case 0b001:
return "[rCX]";
case 0b010:
return "[rDX]";
case 0b011:
return "[rBX]";
case 0b100: {
aOutExtraConsumed = 1;
SIBByte sib = ParseSIB(aImage[aNextByte], aREX);
return RegMemSIB(aModRM, sib);
}
case 0b101: {
std::string out = "[rIP ";
int32_t offset;
memcpy(&offset, aImage.data() + aNextByte, sizeof(offset));
aOutExtraConsumed = sizeof(offset);
out += StringSignedHex(offset);
if (aOutMarkerAt)
{
*aOutMarkerAt = offset;
}
return out + "]";
}
case 0b110:
return "[rSI]";
case 0b111:
return "[rDI]";
case 0b1000:
return "[r8]";
case 0b1001:
return "[r9]";
case 0b1010:
return "[r10]";
case 0b1011:
return "[r11]";
case 0b1100:
return "[r12]";
case 0b1101:
return "[r13]";
case 0b1110:
return "[r14]";
case 0b1111:
return "[r15]";
default:
break;
}
break;
}
return "[Unparsed]";
}
size_t
Operands(
OperandType aFirst,
OperandType aSecond,
REXState aREX,
ModRMByte aModRMByte,
const std::vector<unsigned char>& aImage,
size_t aNextByte,
bool aIsLEA,
uint64_t* aOutPointOfInterestData)
{
size_t end = aNextByte;
int32_t pointOfInterest = 0;
ReadWrite pointOfInterestType = ReadWrite::READ;
uint32_t pointOfInterestSize = 1;
uint32_t extra;
switch (aFirst)
{
case OperandType::IMM8:
case OperandType::IMM16:
case OperandType::IMM32:
case OperandType::IMM64:
printf("imm as first operand, code corrupted");
return -1;
case OperandType::REG8:
printf("%s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_8BIT, true, aImage, end, extra).c_str());
break;
case OperandType::REG16:
printf("%s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_16BIT, true, aImage, end, extra).c_str());
break;
case OperandType::REG32:
printf("%s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_32BIT, true, aImage, end, extra).c_str());
break;
case OperandType::REG64:
printf("%s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_64BIT, true, aImage, end, extra).c_str());
break;
case OperandType::REGMEM8:
printf("%s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_8BIT, false, aImage, end, extra, &pointOfInterest).c_str());
end += extra;
pointOfInterestSize = 1;
pointOfInterestType = ReadWrite::WRITE;
break;
case OperandType::REGMEM16:
printf("%s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_16BIT, false, aImage, end, extra, &pointOfInterest).c_str());
end += extra;
pointOfInterestSize = 2;
pointOfInterestType = ReadWrite::WRITE;
break;
case OperandType::REGMEM32:
printf("%s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_32BIT, false, aImage, end, extra, &pointOfInterest).c_str());
end += extra;
pointOfInterestSize = 4;
pointOfInterestType = ReadWrite::WRITE;
break;
case OperandType::REGMEM64:
printf("%s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_64BIT, false, aImage, end, extra, &pointOfInterest).c_str());
end += extra;
pointOfInterestSize = 8;
pointOfInterestType = ReadWrite::WRITE;
break;
}
switch (aSecond)
{
case OperandType::IMM8: {
uint8_t imm;
memcpy(&imm, aImage.data() + end, sizeof(imm));
printf(", ");
PRINTF_GREEN("$0x%02x", imm);
end += sizeof(imm);
}
break;
case OperandType::IMM16: {
uint16_t imm;
memcpy(&imm, aImage.data() + end, sizeof(imm));
printf(", ");
PRINTF_GREEN("$0x%04x", imm);
end += sizeof(imm);
}
break;
case OperandType::IMM32: {
uint32_t imm;
memcpy(&imm, aImage.data() + end, sizeof(imm));
printf(", ");
PRINTF_GREEN("$0x%08x", imm);
end += sizeof(imm);
}
break;
case OperandType::IMM64: {
uint64_t imm;
memcpy(&imm, aImage.data() + end, sizeof(imm));
printf(", ");
PRINTF_GREEN("$0x%016I64x", imm);
end += sizeof(imm);
}
break;
case OperandType::REG8:
printf(", %s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_8BIT, true, aImage, end, extra).c_str());
break;
case OperandType::REG16:
printf(", %s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_16BIT, true, aImage, end, extra).c_str());
break;
case OperandType::REG32:
printf(", %s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_32BIT, true, aImage, end, extra).c_str());
break;
case OperandType::REG64:
printf(", %s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_64BIT, true, aImage, end, extra).c_str());
break;
case OperandType::REGMEM8:
printf(", %s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_8BIT, false, aImage, end, extra, &pointOfInterest).c_str());
end += extra;
pointOfInterestSize = 1;
pointOfInterestType = ReadWrite::READ;
break;
case OperandType::REGMEM16:
printf(", %s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_16BIT, false, aImage, end, extra, &pointOfInterest).c_str());
end += extra;
pointOfInterestSize = 2;
pointOfInterestType = ReadWrite::READ;
break;
case OperandType::REGMEM32:
printf(", %s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_32BIT, false, aImage, end, extra, &pointOfInterest).c_str());
end += extra;
pointOfInterestSize = 4;
pointOfInterestType = ReadWrite::READ;
break;
case OperandType::REGMEM64:
printf(", %s", RegMem(aModRMByte, aREX, RegisterSize::REGISTER_64BIT, false, aImage, end, extra, &pointOfInterest).c_str());
end += extra;
pointOfInterestSize = 8;
pointOfInterestType = ReadWrite::READ;
break;
case OperandType::NONE:
pointOfInterestType = ReadWrite::READ;
break;
default:
break;
}
if (pointOfInterest != 0)
{
size_t location = pointOfInterest + end;
SetColumn(globals::globalLocationColumn);
if (aIsLEA)
{
PRINTF_GREEN("0x%08zx", location);
}
else
{
printf("0x%08zx", location);
}
switch (pointOfInterestType)
{
case ReadWrite::READ:
if (aIsLEA)
printf(" LOAD ADDR");
else
printf(" LOAD");
{
switch (pointOfInterestSize)
{
case 1: {
uint8_t data;
memcpy(&data, aImage.data() + location, sizeof(data));
if (aIsLEA)
{
printf(" 0x%02x", data);
}
else
{
PRINTF_GREEN(" 0x%02x", data);
}
if (aOutPointOfInterestData)
*aOutPointOfInterestData = data;
}
break;
case 2: {
uint16_t data;
memcpy(&data, aImage.data() + location, sizeof(data));
if (aIsLEA)
{
printf(" 0x%04x", data);
}
else
{
PRINTF_GREEN(" 0x%04x", data);
}
if (aOutPointOfInterestData)
*aOutPointOfInterestData = data;
}
break;
case 4: {
uint32_t data;
memcpy(&data, aImage.data() + location, sizeof(data));
if (aIsLEA)
{
printf(" 0x%08x", data);
}
else
{
PRINTF_GREEN(" 0x%08x", data);
}
if (aOutPointOfInterestData)
*aOutPointOfInterestData = data;
}
break;
case 8: {
uint64_t data;
memcpy(&data, aImage.data() + location, sizeof(data));
if (aIsLEA)
{
printf(" 0x%016I64x", data);
}
else
{
PRINTF_GREEN(" 0x%016I64x", data);
}
if (aOutPointOfInterestData)
*aOutPointOfInterestData = data;
}
break;
}
}
break;
case ReadWrite::WRITE:
printf(" STORE");
break;
}
}
return end;
}
| 21.336329
| 126
| 0.621082
|
Fiskmans
|
bb4da8a8a526dee82519216963ea175634ed8763
| 5,800
|
cpp
|
C++
|
high_level_controller/examples/cpp/eight_zero/src/main.cpp
|
Durrrr95/cpm_lab
|
e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67
|
[
"MIT"
] | 9
|
2020-06-24T11:22:15.000Z
|
2022-01-13T14:14:13.000Z
|
high_level_controller/examples/cpp/eight_zero/src/main.cpp
|
Durrrr95/cpm_lab
|
e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67
|
[
"MIT"
] | 1
|
2021-05-10T13:48:04.000Z
|
2021-05-10T13:48:04.000Z
|
high_level_controller/examples/cpp/eight_zero/src/main.cpp
|
Durrrr95/cpm_lab
|
e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67
|
[
"MIT"
] | 2
|
2021-11-08T11:59:29.000Z
|
2022-03-15T13:50:54.000Z
|
#include "cpm/Logging.hpp"
#include "cpm/CommandLineReader.hpp"
#include "cpm/init.hpp"
#include "cpm/HLCCommunicator.hpp"
#include "cpm/Writer.hpp"
#include "VehicleCommandTrajectory.hpp"
#include "Eight.hpp"
#include <iostream>
#include <memory>
#include <stdlib.h>
using std::vector;
//Description for bash files
/**
* \defgroup eight_zero_files Additional Files
* \ingroup eight_zero
*/
/**
* \page eight_zero_files_page Additional Files for Eight Zero
* \subpage e_z_build <br>
* \subpage e_z_run <br>
* \ingroup eight_zero_files
*/
/**
* \page e_z_build build.bash
* \brief Build script for eight_zero
*/
/**
* \page e_z_run run.bash
* \brief Run script for eight_zero
*/
/**
* \brief Main function of the eight_zero scenario
* \param argc Command line param
* \param argv Command line param
* \ingroup eight_zero
*/
int main(int argc, char *argv[])
{
const std::string node_id = "eight_zero";
cpm::init(argc, argv);
cpm::Logging::Instance().set_id(node_id);
const std::vector<int> vehicle_ids_int = cpm::cmd_parameter_ints("vehicle_ids", {4}, argc, argv);
std::vector<uint8_t> vehicle_ids;
for(auto i:vehicle_ids_int)
{
assert(i>0);
assert(i<255);
vehicle_ids.push_back(i);
}
assert(vehicle_ids.size() > 0);
uint8_t vehicle_id = vehicle_ids.at(0);
// Ease-of-life class to communicate with the middleware.
// This participant should only communicate on this system, so its messages are not directly sent to the vehicles.
// Instead we communicate with the middleware, and the middleware relays these messages to the vehicle.
// These settings are saved in the Quality of Service (QoS) xml-file and are identical to the ones the middleware uses.
// One QoS file can define multiple profiles, which is why we need to specify that we want to use the
// LocalCommunicationProfile, from the MatlabLibrary.
HLCCommunicator hlc_communicator(
vehicle_id
);
// Writer for sending trajectory commands
cpm::Writer<VehicleCommandTrajectory> writer_vehicleCommandTrajectory(
hlc_communicator.getLocalParticipant()->get_participant(),
"vehicleCommandTrajectory");
// Initialize 8-Trajectory
Eight eight;
// This variabel tracks the reference state of the time,
// it is incremented as time passes. It refers to the first trajectory point the vehicle will drive to.
uint64_t reference_trajectory_time = 0;
// This variable refers to the last currently planned trajectory point the vehicle will drive to. --TODO
uint64_t trajectory_duration = 0;
uint64_t t_now = 0;
// Saves the current trajectory which is to be sent
vector<TrajectoryPoint> trajectory_points;
// The code inside the onEachTimestep method is executed each timestep.
// Here we assume that we send trajectories every 200ms
// This means we need to manually set the middleware_period_ms parameter in the LCC to 200ms.
// Commands must be sent to the vehicle regularly, more than 2x per second.
// Otherwise it is assumed that the connection is lost and the vehicle stops.
const uint64_t dt_nanos = 200000000ull; // 400 milliseconds == 400000000 nanoseconds
hlc_communicator.onFirstTimestep([&](VehicleStateList vehicle_state_list)
{
// Initial time used for trajectory generation
reference_trajectory_time = vehicle_state_list.t_now() + 2000000000ull;
});
// The code inside the cpm::Timer is executed every 400 milliseconds.
// Commands must be sent to the vehicle regularly, more than 2x per second.
// Otherwise it is assumed that the connection is lost and the vehicle stops.
hlc_communicator.onEachTimestep([&](VehicleStateList vehicle_state_list)
{
// Check if middleware_period_ms was set correctly, as described above
// If not, write a message to log
if( vehicle_state_list.period_ms()*1000000ull != dt_nanos ){
cpm::Logging::Instance().write(1,
"Please set middleware_period_ms to 200ms");
return;
}
t_now = vehicle_state_list.t_now();
// Append new points to the trajectory
while (reference_trajectory_time + trajectory_duration < t_now + 4000000000ull){
TrajectoryPoint trajectory_point = eight.get_trajectoryPoint();
trajectory_point.t().nanoseconds(reference_trajectory_time + trajectory_duration);
trajectory_points.push_back(trajectory_point);
trajectory_duration += eight.get_segment_duration();
eight.move_forward(); //TODO Fitting with initial point?
}
// Delete outdated points, i.e., remove first point if second one lies in past, too,
while (!trajectory_points.empty() && trajectory_points.at(1).t().nanoseconds() < t_now){
uint64_t delta_t = trajectory_points.at(1).t().nanoseconds() - trajectory_points.at(0).t().nanoseconds();
trajectory_duration -= delta_t;
reference_trajectory_time += delta_t;
trajectory_points.erase(trajectory_points.begin());
}
// Send the current trajectory
rti::core::vector<TrajectoryPoint> rti_trajectory_points(trajectory_points);
VehicleCommandTrajectory vehicle_command_trajectory;
vehicle_command_trajectory.vehicle_id(vehicle_id);
vehicle_command_trajectory.trajectory_points(rti_trajectory_points);
vehicle_command_trajectory.header().create_stamp().nanoseconds(t_now);
vehicle_command_trajectory.header().valid_after_stamp().nanoseconds(t_now + 1000000000ull);
writer_vehicleCommandTrajectory.write(vehicle_command_trajectory);
});
hlc_communicator.start();
}
| 37.908497
| 123
| 0.704483
|
Durrrr95
|
bb54bd95cfa5a715d0c1492c203c807a40b15239
| 12,642
|
cpp
|
C++
|
libs/object/tests/TCntPtrTest.cpp
|
ZachHenkel/Mso
|
ee250782dfc67e309a1c66c67e97f774727b56af
|
[
"MIT"
] | null | null | null |
libs/object/tests/TCntPtrTest.cpp
|
ZachHenkel/Mso
|
ee250782dfc67e309a1c66c67e97f774727b56af
|
[
"MIT"
] | null | null | null |
libs/object/tests/TCntPtrTest.cpp
|
ZachHenkel/Mso
|
ee250782dfc67e309a1c66c67e97f774727b56af
|
[
"MIT"
] | null | null | null |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/****************************************************************************
Unit tests for the TCntPtr smart pointer
****************************************************************************/
#include "precomp.h"
#include <atomic>
#include <functional>
#include <object/refCounted.h>
#include <object/unknownObject.h>
#include <test/testCheck.h>
MSO_STRUCT_GUID(IUnkSimple, "9FEAB33F-E5D0-4A52-9216-6BA8BA9990A4")
struct IUnkSimple : public IUnknown
{
virtual void DoSomething() = 0;
};
MSO_STRUCT_GUID(IUnkSample, "8A2560F5-E28D-4342-8716-1BBD3A4603B3")
struct IUnkSample : public IUnknown
{
virtual void DoAnything() = 0;
};
struct ISimple : public Mso::IRefCounted
{
virtual void DoSomething() = 0;
};
typedef std::function<void(bool inc)> RefCountChangedCallback;
class SimpleClass : public ISimple
{
public:
SimpleClass(RefCountChangedCallback&& onRefCountChanged)
: m_refCount(0)
, m_onRefCountChanged(std::move(onRefCountChanged))
{
}
virtual void AddRef() const noexcept override
{
OACR_ASSUME_NOTHROW_BEGIN
m_onRefCountChanged(/*incremented*/true);
OACR_ASSUME_NOTHROW_END
++m_refCount;
}
virtual void Release() const noexcept override
{
OACR_ASSUME_NOTHROW_BEGIN
m_onRefCountChanged(/*incremented*/false);
OACR_ASSUME_NOTHROW_END
if (--m_refCount == 0)
{
delete this;
}
}
virtual void DoSomething() noexcept override
{
}
void ClassDoSomething() noexcept
{
OACR_USE_PTR(this); // simulates access to 'this' for OACR build
}
private:
mutable std::atomic<uint32_t> m_refCount;
RefCountChangedCallback m_onRefCountChanged;
};
class UnkSimpleClass : public IUnkSimple
{
public:
UnkSimpleClass(RefCountChangedCallback&& onRefCountChanged)
: m_refCount(0)
, m_onRefCountChanged(std::move(onRefCountChanged))
{
}
_Success_(return == S_OK)
STDMETHOD(QueryInterface)(const GUID& /*riid*/, _Outptr_ void** /*ppvObject*/) noexcept override
{
return E_NOINTERFACE;
}
STDMETHOD_(ULONG, AddRef)() noexcept override
{
OACR_ASSUME_NOTHROW_BEGIN
m_onRefCountChanged(/*incremented*/true);
OACR_ASSUME_NOTHROW_END
++m_refCount;
return 1;
}
STDMETHOD_(ULONG, Release)() noexcept override
{
OACR_ASSUME_NOTHROW_BEGIN
m_onRefCountChanged(/*incremented*/false);
OACR_ASSUME_NOTHROW_END
if (--m_refCount == 0)
{
delete this;
}
return 1;
}
virtual void DoSomething() noexcept override
{
}
void ClassDoSomething() noexcept
{
OACR_USE_PTR(this); // simulates access to 'this' for OACR build
}
private:
mutable std::atomic<uint32_t> m_refCount;
RefCountChangedCallback m_onRefCountChanged;
};
inline static std::wstring ToString(UnkSimpleClass* q) { return L""; }
inline static std::wstring ToString(SimpleClass* q) { return L""; }
inline static std::wstring ToString(const UnkSimpleClass* q) { return L""; }
inline static std::wstring ToString(const SimpleClass* q) { return L""; }
class AggregatedObject : public Mso::UnknownObject<IUnkSimple, IUnkSample>
{
public:
virtual void DoSomething() noexcept override
{
}
virtual void DoAnything() noexcept override
{
}
};
template <typename TAction>
static void ValidateRefCount(uint32_t expectedIncRefCountCallCount, TAction action)
{
uint32_t actualIncRefCountCallCount = 0;
uint32_t actualDecRefCountCallCount = 0;
auto callback = [&actualIncRefCountCallCount, &actualDecRefCountCallCount](bool incremented) noexcept
{
if (incremented)
{
++actualIncRefCountCallCount;
}
else
{
++actualDecRefCountCallCount;
}
};
action(RefCountChangedCallback(callback));
TestAssert::AreEqual(actualIncRefCountCallCount, actualDecRefCountCallCount, L"IncCount != DecCount.");
TestAssert::AreEqual(expectedIncRefCountCallCount, actualIncRefCountCallCount, L"Unexpected IncCount.");
}
TestClassComponent(TCntPtrTest, Mso.TCntPtr)
TEST_CLASS(TCntPtrTest)
{
TEST_METHOD(TCntPtr_EmptyCtor)
{
Mso::TCntPtr<SimpleClass> spObj;
TestAssert::IsNull(spObj.Get(), L"Expected null");
}
TEST_METHOD(TCntPtr_NullCtor)
{
Mso::TCntPtr<SimpleClass> spObj = nullptr;
TestAssert::IsNull(spObj.Get(), L"Expected null");
}
TEST_METHOD(TCntPtr_DeprecatedNullCtor)
{
//TODO: Remove when we stop using NULL
Mso::TCntPtr<SimpleClass> spObj;
TestAssert::IsNull(spObj.Get(), L"Expected null");
}
TEST_METHOD(TCntPtr_Create)
{
ValidateRefCount(1, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj(ptr);
TestAssert::AreEqual((void*)ptr, (void*)spObj.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_CreateInterface)
{
ValidateRefCount(1, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<ISimple> spIntf(ptr);
TestAssert::AreEqual((void*)ptr, (void*)spIntf.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_CopyConstructor)
{
ValidateRefCount(2, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj(ptr);
Mso::TCntPtr<SimpleClass> spSameObj(spObj);
TestAssert::AreEqual((void*)ptr, (void*)spObj.Get(), L"Expected ptr");
TestAssert::AreEqual((void*)ptr, (void*)spSameObj.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_CopyConstructorInterface)
{
ValidateRefCount(2, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj(ptr);
Mso::TCntPtr<ISimple> spIntf(spObj);
TestAssert::AreEqual((void*) ptr, (void*) spObj.Get(), L"Expected ptr");
TestAssert::AreEqual((void*)ptr, (void*)spIntf.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_MoveConstructor)
{
ValidateRefCount(1, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj(ptr);
Mso::TCntPtr<SimpleClass> spSameObj(std::move(spObj));
TestAssert::IsNull(spObj.Get(), L"Expected null");
TestAssert::AreEqual((void*)ptr, (void*)spSameObj.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_MoveConstructorInterface)
{
ValidateRefCount(1, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj(ptr);
Mso::TCntPtr<ISimple> spIntf(std::move(spObj));
TestAssert::IsNull(spObj.Get(), L"Expected null");
TestAssert::AreEqual((void*)ptr, (void*)spIntf.Get(), L"Expected ptr");
});
}
// Factory method to get benefits from using the move constructor
static Mso::TCntPtr<SimpleClass> CreateSimpleClass(RefCountChangedCallback&& onRefCountChanged)
{
Mso::TCntPtr<SimpleClass> spObj = new SimpleClass(std::move(onRefCountChanged));
spObj->ClassDoSomething();
return spObj; // std::move() not needed because the same type allows the named return value optimization.
}
TEST_METHOD(TCntPtr_CallCreateSimpleClass)
{
ValidateRefCount(1, [](RefCountChangedCallback&& onRefCountChanged)
{
Mso::TCntPtr<ISimple> spObj = CreateSimpleClass(std::move(onRefCountChanged));
TestAssert::IsNotNull(spObj.Get(), L"Expected not a null value");
});
}
// Factory method to get benefits from using the move constructor
static Mso::TCntPtr<ISimple> CreateISimple(RefCountChangedCallback&& onRefCountChanged)
{
Mso::TCntPtr<SimpleClass> spObj = new SimpleClass(std::move(onRefCountChanged));
spObj->ClassDoSomething();
return std::move(spObj); // We should use std::move() here to avoid use of copy constructor.
// Named value return optimization will not work because we have different types.
}
TEST_METHOD(TCntPtr_CallCreateISimple)
{
ValidateRefCount(1, [](RefCountChangedCallback&& onRefCountChanged)
{
Mso::TCntPtr<ISimple> spIntf = CreateISimple(std::move(onRefCountChanged));
TestAssert::IsNotNull(spIntf.Get(), L"Expected not a null value");
});
}
TEST_METHOD(TCntPtr_CopyAssignment)
{
ValidateRefCount(3, [](RefCountChangedCallback&& onRefCountChanged)
{
Mso::TCntPtr<SimpleClass> spObj1(new SimpleClass(RefCountChangedCallback(onRefCountChanged)));
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj2(ptr);
spObj1 = spObj2;
TestAssert::AreEqual((void*)ptr, (void*)spObj1.Get(), L"Expected ptr");
TestAssert::AreEqual((void*)ptr, (void*)spObj2.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_CopyAssignmentInterface)
{
ValidateRefCount(3, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(RefCountChangedCallback(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj(ptr);
Mso::TCntPtr<ISimple> spIntf = new SimpleClass(std::move(onRefCountChanged));
spIntf = spObj;
TestAssert::AreEqual((void*)ptr, (void*)spObj.Get(), L"Expected ptr");
TestAssert::AreEqual((void*)ptr, (void*)spIntf.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_CopyAssignmentSameObject)
{
// See what happens when we assign TCntPtr to itself.
ValidateRefCount(1, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj(ptr);
OACR_WARNING_SUPPRESS(IDENTITY_ASSIGNMENT, "We want to test our code that nothing bad happens in this case");
spObj = spObj;
TestAssert::AreEqual((void*)ptr, (void*)spObj.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_CopyAssignmentConst)
{
// Test that TCntPtr can accept a const variable and AddRef/Release methods are not const.
ValidateRefCount(3, [](RefCountChangedCallback&& onRefCountChanged)
{
Mso::TCntPtr<const UnkSimpleClass> spObj1(new UnkSimpleClass(RefCountChangedCallback(onRefCountChanged)));
const UnkSimpleClass* ptr = new UnkSimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<const UnkSimpleClass> spObj2(ptr);
spObj1 = spObj2;
TestAssert::AreEqual((void*)ptr, (void*)spObj1.Get(), L"Expected ptr");
TestAssert::AreEqual((void*)ptr, (void*)spObj2.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_MoveAssignment)
{
ValidateRefCount(2, [](RefCountChangedCallback&& onRefCountChanged)
{
Mso::TCntPtr<SimpleClass> spObj1 = new SimpleClass(RefCountChangedCallback(onRefCountChanged));
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj2(ptr);
spObj1 = std::move(spObj2);
TestAssert::AreEqual((void*)ptr, (void*)spObj1.Get(), L"Expected ptr");
TestAssert::IsNull(spObj2.Get(), L"Expected null");
});
}
TEST_METHOD(TCntPtr_MoveAssignmentInterface)
{
ValidateRefCount(2, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(RefCountChangedCallback(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj(ptr);
Mso::TCntPtr<ISimple> spIntf = new SimpleClass(std::move(onRefCountChanged));
spIntf = std::move(spObj);
TestAssert::IsNull(spObj.Get(), L"Expected null");
TestAssert::AreEqual((void*)ptr, (void*)spIntf.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_MoveAssignmentSameObject)
{
// Our copy assignment does not check if we use the same object. This test is to see that nothing bad happens.
ValidateRefCount(1, [](RefCountChangedCallback&& onRefCountChanged)
{
SimpleClass* ptr = new SimpleClass(std::move(onRefCountChanged));
Mso::TCntPtr<SimpleClass> spObj(ptr);
spObj = std::move(spObj);
TestAssert::AreEqual((void*)ptr, (void*)spObj.Get(), L"Expected ptr");
});
}
TEST_METHOD(TCntPtr_NullAssignment)
{
ValidateRefCount(1, [](RefCountChangedCallback&& onRefCountChanged)
{
Mso::TCntPtr<SimpleClass> spObj = new SimpleClass(RefCountChangedCallback(onRefCountChanged));
spObj = nullptr;
TestAssert::IsNull(spObj.Get(), L"Expected null");
});
}
TEST_METHOD(TCntPtr_IsEqualObject_BothISimpleClass_AreEqual)
{
Mso::TCntPtr<IUnkSimple> spObj = Mso::Make<AggregatedObject>();
Mso::TCntPtr<IUnkSimple> spObjTwo = spObj;
TestAssert::IsTrue(Mso::ComUtil::AreEqualObjects(spObj, spObjTwo));
}
TEST_METHOD(TCntPtr_IsEqualObject_DifferentInterfaceTypes_AreEqual)
{
Mso::TCntPtr<IUnkSimple> spObj = Mso::Make<AggregatedObject>();
Mso::TCntPtr<IUnkSample> spSample;
TestAssert::HrSucceeded(Mso::ComUtil::HrQueryFrom(spSample, spObj));
TestAssert::IsTrue(Mso::ComUtil::AreEqualObjects(spObj, spSample));
}
TEST_METHOD(TCntPtr_IsEqualObject_DifferentObject_AreNotEqual)
{
Mso::TCntPtr<IUnkSimple> spObj = Mso::Make<AggregatedObject>();
Mso::TCntPtr<IUnkSimple> spObjTwo = Mso::Make<AggregatedObject>();
TestAssert::IsFalse(Mso::ComUtil::AreEqualObjects(spObj, spObjTwo));
}
};
| 28.408989
| 111
| 0.742525
|
ZachHenkel
|
bb5a0334002f1517f6a080b793f0ced044a4c5c1
| 230,241
|
cc
|
C++
|
tensorflow/core/profiler/tfprof_log.pb.cc
|
1250281649/tensorflow
|
fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c
|
[
"Apache-2.0"
] | null | null | null |
tensorflow/core/profiler/tfprof_log.pb.cc
|
1250281649/tensorflow
|
fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c
|
[
"Apache-2.0"
] | 2
|
2021-08-25T15:57:35.000Z
|
2022-02-10T01:09:32.000Z
|
tensorflow/core/profiler/tfprof_log.pb.cc
|
1250281649/tensorflow
|
fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c
|
[
"Apache-2.0"
] | null | null | null |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/profiler/tfprof_log.proto
#include "tensorflow/core/profiler/tfprof_log.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AllocationRecord_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_AttrValue_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CodeDef_Trace_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecMemory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecMemory_OutputMemoryEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ExecProfile_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecProfile_AcceleratorExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecProfile_CpuExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecTime_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Memory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OpLogEntry_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OpLogProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<8> scc_info_ProfileNode_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileNode_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileNode_ExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileNode_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileNode_InputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileNode_OutputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileNode_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileNode_SrcOutputIndexEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileProto_NodesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Tuple_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
namespace tensorflow {
namespace tfprof {
class CodeDef_TraceDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeDef_Trace> _instance;
} _CodeDef_Trace_default_instance_;
class CodeDefDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeDef> _instance;
} _CodeDef_default_instance_;
class OpLogEntryDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OpLogEntry> _instance;
} _OpLogEntry_default_instance_;
class OpLogProto_IdToStringEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OpLogProto_IdToStringEntry_DoNotUse> _instance;
} _OpLogProto_IdToStringEntry_DoNotUse_default_instance_;
class OpLogProtoDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OpLogProto> _instance;
} _OpLogProto_default_instance_;
class ProfileProto_NodesEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileProto_NodesEntry_DoNotUse> _instance;
} _ProfileProto_NodesEntry_DoNotUse_default_instance_;
class ProfileProto_IdToStringEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileProto_IdToStringEntry_DoNotUse> _instance;
} _ProfileProto_IdToStringEntry_DoNotUse_default_instance_;
class ProfileProtoDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileProto> _instance;
} _ProfileProto_default_instance_;
class ProfileNode_InputsEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileNode_InputsEntry_DoNotUse> _instance;
} _ProfileNode_InputsEntry_DoNotUse_default_instance_;
class ProfileNode_InputShapesEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileNode_InputShapesEntry_DoNotUse> _instance;
} _ProfileNode_InputShapesEntry_DoNotUse_default_instance_;
class ProfileNode_OutputsEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileNode_OutputsEntry_DoNotUse> _instance;
} _ProfileNode_OutputsEntry_DoNotUse_default_instance_;
class ProfileNode_OutputShapesEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileNode_OutputShapesEntry_DoNotUse> _instance;
} _ProfileNode_OutputShapesEntry_DoNotUse_default_instance_;
class ProfileNode_SrcOutputIndexEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileNode_SrcOutputIndexEntry_DoNotUse> _instance;
} _ProfileNode_SrcOutputIndexEntry_DoNotUse_default_instance_;
class ProfileNode_AttrsEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileNode_AttrsEntry_DoNotUse> _instance;
} _ProfileNode_AttrsEntry_DoNotUse_default_instance_;
class ProfileNode_ExecsEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileNode_ExecsEntry_DoNotUse> _instance;
} _ProfileNode_ExecsEntry_DoNotUse_default_instance_;
class ProfileNodeDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileNode> _instance;
} _ProfileNode_default_instance_;
class ExecProfile_AcceleratorExecsEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExecProfile_AcceleratorExecsEntry_DoNotUse> _instance;
} _ExecProfile_AcceleratorExecsEntry_DoNotUse_default_instance_;
class ExecProfile_CpuExecsEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExecProfile_CpuExecsEntry_DoNotUse> _instance;
} _ExecProfile_CpuExecsEntry_DoNotUse_default_instance_;
class ExecProfileDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExecProfile> _instance;
} _ExecProfile_default_instance_;
class ExecTimeDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExecTime> _instance;
} _ExecTime_default_instance_;
class ExecMemory_OutputMemoryEntry_DoNotUseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExecMemory_OutputMemoryEntry_DoNotUse> _instance;
} _ExecMemory_OutputMemoryEntry_DoNotUse_default_instance_;
class ExecMemoryDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExecMemory> _instance;
} _ExecMemory_default_instance_;
class TupleDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Tuple> _instance;
} _Tuple_default_instance_;
class MemoryDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Memory> _instance;
} _Memory_default_instance_;
} // namespace tfprof
} // namespace tensorflow
static void InitDefaultsscc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_CodeDef_default_instance_;
new (ptr) ::tensorflow::tfprof::CodeDef();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::CodeDef::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_CodeDef_Trace_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_CodeDef_Trace_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_CodeDef_Trace_default_instance_;
new (ptr) ::tensorflow::tfprof::CodeDef_Trace();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::CodeDef_Trace::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CodeDef_Trace_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CodeDef_Trace_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {}};
static void InitDefaultsscc_info_ExecMemory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ExecMemory_default_instance_;
new (ptr) ::tensorflow::tfprof::ExecMemory();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::ExecMemory::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecMemory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ExecMemory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_ExecMemory_OutputMemoryEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_ExecMemory_OutputMemoryEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ExecMemory_OutputMemoryEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse();
}
::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecMemory_OutputMemoryEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ExecMemory_OutputMemoryEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_Memory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_ExecProfile_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ExecProfile_default_instance_;
new (ptr) ::tensorflow::tfprof::ExecProfile();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::ExecProfile::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ExecProfile_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_ExecProfile_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_ExecProfile_AcceleratorExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ExecProfile_CpuExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ExecMemory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_AllocationRecord_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto.base,}};
static void InitDefaultsscc_info_ExecProfile_AcceleratorExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ExecProfile_AcceleratorExecsEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse();
}
::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecProfile_AcceleratorExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ExecProfile_AcceleratorExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_ExecTime_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_ExecProfile_CpuExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ExecProfile_CpuExecsEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse();
}
::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecProfile_CpuExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ExecProfile_CpuExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_ExecTime_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_ExecTime_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ExecTime_default_instance_;
new (ptr) ::tensorflow::tfprof::ExecTime();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::ExecTime::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecTime_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ExecTime_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_Tuple_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_Memory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_Memory_default_instance_;
new (ptr) ::tensorflow::tfprof::Memory();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::Memory::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Memory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Memory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {}};
static void InitDefaultsscc_info_OpLogEntry_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_OpLogEntry_default_instance_;
new (ptr) ::tensorflow::tfprof::OpLogEntry();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::OpLogEntry::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OpLogEntry_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OpLogEntry_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_OpLogProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_OpLogProto_default_instance_;
new (ptr) ::tensorflow::tfprof::OpLogProto();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::OpLogProto::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_OpLogProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_OpLogProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_OpLogEntry_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_OpLogProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_OpLogProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_OpLogProto_IdToStringEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse();
}
::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OpLogProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_OpLogProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {}};
static void InitDefaultsscc_info_ProfileNode_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileNode_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileNode();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::ProfileNode::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<8> scc_info_ProfileNode_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 8, 0, InitDefaultsscc_info_ProfileNode_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_ProfileNode_InputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_OutputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_SrcOutputIndexEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_ExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_ProfileNode_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileNode_AttrsEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse();
}
::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileNode_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ProfileNode_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_AttrValue_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto.base,}};
static void InitDefaultsscc_info_ProfileNode_ExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileNode_ExecsEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse();
}
::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileNode_ExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ProfileNode_ExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_ExecProfile_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_ProfileNode_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileNode_InputShapesEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse();
}
::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileNode_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ProfileNode_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_Tuple_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_ProfileNode_InputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileNode_InputsEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse();
}
::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileNode_InputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ProfileNode_InputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {}};
static void InitDefaultsscc_info_ProfileNode_OutputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileNode_OutputShapesEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse();
}
::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileNode_OutputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ProfileNode_OutputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_Tuple_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_ProfileNode_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileNode_OutputsEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse();
}
::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileNode_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ProfileNode_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {}};
static void InitDefaultsscc_info_ProfileNode_SrcOutputIndexEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileNode_SrcOutputIndexEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse();
}
::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileNode_SrcOutputIndexEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ProfileNode_SrcOutputIndexEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {}};
static void InitDefaultsscc_info_ProfileProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileProto_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileProto();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::ProfileProto::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ProfileProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_ProfileProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_ProfileProto_NodesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_ProfileProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileProto_IdToStringEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse();
}
::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ProfileProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {}};
static void InitDefaultsscc_info_ProfileProto_NodesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_ProfileProto_NodesEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse();
}
::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileProto_NodesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ProfileProto_NodesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {
&scc_info_ProfileNode_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
static void InitDefaultsscc_info_Tuple_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::tensorflow::tfprof::_Tuple_default_instance_;
new (ptr) ::tensorflow::tfprof::Tuple();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::tfprof::Tuple::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Tuple_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Tuple_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto}, {}};
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto[24];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto = nullptr;
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef_Trace, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef_Trace, file_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef_Trace, file_id_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef_Trace, lineno_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef_Trace, function_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef_Trace, function_id_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef_Trace, line_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef_Trace, line_id_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef_Trace, func_start_line_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::CodeDef, traces_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogEntry, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogEntry, name_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogEntry, float_ops_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogEntry, types_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogEntry, code_def_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse, value_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogProto, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogProto, log_entries_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OpLogProto, id_to_string_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse, value_),
0,
1,
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse, value_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto, nodes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto, has_trace_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto, miss_accelerator_stream_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto, steps_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileProto, id_to_string_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse, value_),
0,
1,
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse, value_),
0,
1,
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse, value_),
0,
1,
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse, value_),
0,
1,
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse, value_),
0,
1,
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse, value_),
0,
1,
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse, value_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, name_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, op_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, id_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, inputs_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, input_shapes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, outputs_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, output_shapes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, src_output_index_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, shape_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, op_types_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, canonical_device_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, host_device_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, float_ops_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, trace_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, attrs_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ProfileNode, execs_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse, value_),
0,
1,
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse, value_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile, run_count_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile, all_start_micros_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile, latest_end_micros_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile, accelerator_execs_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile, cpu_execs_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile, memory_execs_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile, allocations_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecProfile, devices_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecTime, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecTime, times_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse, value_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, memory_micros_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, host_temp_bytes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, host_persistent_bytes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, accelerator_temp_bytes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, accelerator_persistent_bytes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, requested_bytes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, peak_bytes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, residual_bytes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, output_bytes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, allocator_bytes_in_use_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::ExecMemory, output_memory_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::Tuple, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::Tuple, int64_values_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::Memory, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::Memory, bytes_),
PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::Memory, ptr_),
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::tensorflow::tfprof::CodeDef_Trace)},
{ 13, -1, sizeof(::tensorflow::tfprof::CodeDef)},
{ 19, -1, sizeof(::tensorflow::tfprof::OpLogEntry)},
{ 28, 35, sizeof(::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse)},
{ 37, -1, sizeof(::tensorflow::tfprof::OpLogProto)},
{ 44, 51, sizeof(::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse)},
{ 53, 60, sizeof(::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse)},
{ 62, -1, sizeof(::tensorflow::tfprof::ProfileProto)},
{ 72, 79, sizeof(::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse)},
{ 81, 88, sizeof(::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse)},
{ 90, 97, sizeof(::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse)},
{ 99, 106, sizeof(::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse)},
{ 108, 115, sizeof(::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse)},
{ 117, 124, sizeof(::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse)},
{ 126, 133, sizeof(::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse)},
{ 135, -1, sizeof(::tensorflow::tfprof::ProfileNode)},
{ 156, 163, sizeof(::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse)},
{ 165, 172, sizeof(::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse)},
{ 174, -1, sizeof(::tensorflow::tfprof::ExecProfile)},
{ 187, -1, sizeof(::tensorflow::tfprof::ExecTime)},
{ 193, 200, sizeof(::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse)},
{ 202, -1, sizeof(::tensorflow::tfprof::ExecMemory)},
{ 218, -1, sizeof(::tensorflow::tfprof::Tuple)},
{ 224, -1, sizeof(::tensorflow::tfprof::Memory)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_CodeDef_Trace_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_CodeDef_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_OpLogEntry_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_OpLogProto_IdToStringEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_OpLogProto_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileProto_NodesEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileProto_IdToStringEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileProto_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileNode_InputsEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileNode_InputShapesEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileNode_OutputsEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileNode_OutputShapesEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileNode_SrcOutputIndexEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileNode_AttrsEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileNode_ExecsEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ProfileNode_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ExecProfile_AcceleratorExecsEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ExecProfile_CpuExecsEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ExecProfile_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ExecTime_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ExecMemory_OutputMemoryEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_ExecMemory_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_Tuple_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_Memory_default_instance_),
};
const char descriptor_table_protodef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n)tensorflow/core/profiler/tfprof_log.pr"
"oto\022\021tensorflow.tfprof\032*tensorflow/core/"
"framework/attr_value.proto\032*tensorflow/c"
"ore/framework/step_stats.proto\"\337\001\n\007CodeD"
"ef\0220\n\006traces\030\001 \003(\0132 .tensorflow.tfprof.C"
"odeDef.Trace\032\241\001\n\005Trace\022\020\n\004file\030\001 \001(\tB\002\030\001"
"\022\017\n\007file_id\030\006 \001(\003\022\016\n\006lineno\030\002 \001(\005\022\024\n\010fun"
"ction\030\003 \001(\tB\002\030\001\022\023\n\013function_id\030\007 \001(\003\022\020\n\004"
"line\030\004 \001(\tB\002\030\001\022\017\n\007line_id\030\010 \001(\003\022\027\n\017func_"
"start_line\030\005 \001(\005\"j\n\nOpLogEntry\022\014\n\004name\030\001"
" \001(\t\022\021\n\tfloat_ops\030\002 \001(\003\022\r\n\005types\030\003 \003(\t\022,"
"\n\010code_def\030\004 \001(\0132\032.tensorflow.tfprof.Cod"
"eDef\"\270\001\n\nOpLogProto\0222\n\013log_entries\030\001 \003(\013"
"2\035.tensorflow.tfprof.OpLogEntry\022C\n\014id_to"
"_string\030\002 \003(\0132-.tensorflow.tfprof.OpLogP"
"roto.IdToStringEntry\0321\n\017IdToStringEntry\022"
"\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\t:\0028\001\"\324\002\n\014Prof"
"ileProto\0229\n\005nodes\030\001 \003(\0132*.tensorflow.tfp"
"rof.ProfileProto.NodesEntry\022\021\n\thas_trace"
"\030\002 \001(\010\022\037\n\027miss_accelerator_stream\030\005 \001(\010\022"
"\r\n\005steps\030\003 \003(\003\022E\n\014id_to_string\030\004 \003(\0132/.t"
"ensorflow.tfprof.ProfileProto.IdToString"
"Entry\032L\n\nNodesEntry\022\013\n\003key\030\001 \001(\003\022-\n\005valu"
"e\030\002 \001(\0132\036.tensorflow.tfprof.ProfileNode:"
"\0028\001\0321\n\017IdToStringEntry\022\013\n\003key\030\001 \001(\003\022\r\n\005v"
"alue\030\002 \001(\t:\0028\001\"\323\010\n\013ProfileNode\022\014\n\004name\030\001"
" \001(\t\022\n\n\002op\030\t \001(\t\022\n\n\002id\030\r \001(\003\022:\n\006inputs\030\002"
" \003(\0132*.tensorflow.tfprof.ProfileNode.Inp"
"utsEntry\022E\n\014input_shapes\030\020 \003(\0132/.tensorf"
"low.tfprof.ProfileNode.InputShapesEntry\022"
"<\n\007outputs\030\003 \003(\0132+.tensorflow.tfprof.Pro"
"fileNode.OutputsEntry\022G\n\routput_shapes\030\017"
" \003(\01320.tensorflow.tfprof.ProfileNode.Out"
"putShapesEntry\022L\n\020src_output_index\030\016 \003(\013"
"22.tensorflow.tfprof.ProfileNode.SrcOutp"
"utIndexEntry\022\r\n\005shape\030\004 \003(\003\022\020\n\010op_types\030"
"\005 \003(\t\022\030\n\020canonical_device\030\006 \001(\t\022\023\n\013host_"
"device\030\007 \001(\t\022\021\n\tfloat_ops\030\010 \001(\003\022)\n\005trace"
"\030\n \001(\0132\032.tensorflow.tfprof.CodeDef\0228\n\005at"
"trs\030\013 \003(\0132).tensorflow.tfprof.ProfileNod"
"e.AttrsEntry\0228\n\005execs\030\014 \003(\0132).tensorflow"
".tfprof.ProfileNode.ExecsEntry\032-\n\013Inputs"
"Entry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\003:\0028\001\032L\n"
"\020InputShapesEntry\022\013\n\003key\030\001 \001(\005\022\'\n\005value\030"
"\002 \001(\0132\030.tensorflow.tfprof.Tuple:\0028\001\032.\n\014O"
"utputsEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\003:"
"\0028\001\032M\n\021OutputShapesEntry\022\013\n\003key\030\001 \001(\005\022\'\n"
"\005value\030\002 \001(\0132\030.tensorflow.tfprof.Tuple:\002"
"8\001\0325\n\023SrcOutputIndexEntry\022\013\n\003key\030\001 \001(\003\022\r"
"\n\005value\030\002 \001(\005:\0028\001\032C\n\nAttrsEntry\022\013\n\003key\030\001"
" \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorflow.AttrVal"
"ue:\0028\001\032L\n\nExecsEntry\022\013\n\003key\030\001 \001(\003\022-\n\005val"
"ue\030\002 \001(\0132\036.tensorflow.tfprof.ExecProfile"
":\0028\001\"\204\004\n\013ExecProfile\022\021\n\trun_count\030\001 \001(\003\022"
"\030\n\020all_start_micros\030\002 \001(\003\022\031\n\021latest_end_"
"micros\030\003 \001(\003\022O\n\021accelerator_execs\030\004 \003(\0132"
"4.tensorflow.tfprof.ExecProfile.Accelera"
"torExecsEntry\022\?\n\tcpu_execs\030\005 \003(\0132,.tenso"
"rflow.tfprof.ExecProfile.CpuExecsEntry\0223"
"\n\014memory_execs\030\007 \003(\0132\035.tensorflow.tfprof"
".ExecMemory\0221\n\013allocations\030\013 \003(\0132\034.tenso"
"rflow.AllocationRecord\022\017\n\007devices\030\006 \003(\t\032"
"T\n\025AcceleratorExecsEntry\022\013\n\003key\030\001 \001(\t\022*\n"
"\005value\030\002 \001(\0132\033.tensorflow.tfprof.ExecTim"
"e:\0028\001\032L\n\rCpuExecsEntry\022\013\n\003key\030\001 \001(\t\022*\n\005v"
"alue\030\002 \001(\0132\033.tensorflow.tfprof.ExecTime:"
"\0028\001\"3\n\010ExecTime\022\'\n\005times\030\001 \003(\0132\030.tensorf"
"low.tfprof.Tuple\"\264\003\n\nExecMemory\022\025\n\rmemor"
"y_micros\030\001 \001(\003\022\027\n\017host_temp_bytes\030\002 \001(\003\022"
"\035\n\025host_persistent_bytes\030\003 \001(\003\022\036\n\026accele"
"rator_temp_bytes\030\004 \001(\003\022$\n\034accelerator_pe"
"rsistent_bytes\030\005 \001(\003\022\027\n\017requested_bytes\030"
"\006 \001(\003\022\022\n\npeak_bytes\030\007 \001(\003\022\026\n\016residual_by"
"tes\030\010 \001(\003\022\024\n\014output_bytes\030\t \001(\003\022\036\n\026alloc"
"ator_bytes_in_use\030\n \001(\003\022F\n\routput_memory"
"\030\013 \003(\0132/.tensorflow.tfprof.ExecMemory.Ou"
"tputMemoryEntry\032N\n\021OutputMemoryEntry\022\013\n\003"
"key\030\001 \001(\005\022(\n\005value\030\002 \001(\0132\031.tensorflow.tf"
"prof.Memory:\0028\001\"\035\n\005Tuple\022\024\n\014int64_values"
"\030\001 \003(\003\"$\n\006Memory\022\r\n\005bytes\030\001 \001(\003\022\013\n\003ptr\030\002"
" \001(\004b\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto_deps[2] = {
&::descriptor_table_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto,
&::descriptor_table_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto,
};
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto_sccs[24] = {
&scc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_CodeDef_Trace_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ExecMemory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ExecMemory_OutputMemoryEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ExecProfile_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ExecProfile_AcceleratorExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ExecProfile_CpuExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ExecTime_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_Memory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_OpLogEntry_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_OpLogProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_OpLogProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_ExecsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_InputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_OutputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileNode_SrcOutputIndexEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileProto_IdToStringEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_ProfileProto_NodesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
&scc_info_Tuple_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto_once;
static bool descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto_initialized = false;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto = {
&descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto, "tensorflow/core/profiler/tfprof_log.proto", 3212,
&descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto_once, descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto_deps, 24, 2,
schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto::offsets,
file_level_metadata_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto, 24, file_level_enum_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto,
};
// Force running AddDescriptors() at dynamic initialization time.
static bool dynamic_init_dummy_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto), true);
namespace tensorflow {
namespace tfprof {
// ===================================================================
void CodeDef_Trace::InitAsDefaultInstance() {
}
class CodeDef_Trace::_Internal {
public:
};
CodeDef_Trace::CodeDef_Trace()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.CodeDef.Trace)
}
CodeDef_Trace::CodeDef_Trace(const CodeDef_Trace& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_file().empty()) {
file_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.file_);
}
function_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_function().empty()) {
function_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.function_);
}
line_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_line().empty()) {
line_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.line_);
}
::memcpy(&lineno_, &from.lineno_,
static_cast<size_t>(reinterpret_cast<char*>(&line_id_) -
reinterpret_cast<char*>(&lineno_)) + sizeof(line_id_));
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.CodeDef.Trace)
}
void CodeDef_Trace::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CodeDef_Trace_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
function_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
line_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&lineno_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&line_id_) -
reinterpret_cast<char*>(&lineno_)) + sizeof(line_id_));
}
CodeDef_Trace::~CodeDef_Trace() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.CodeDef.Trace)
SharedDtor();
}
void CodeDef_Trace::SharedDtor() {
file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
function_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
line_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
void CodeDef_Trace::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const CodeDef_Trace& CodeDef_Trace::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CodeDef_Trace_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void CodeDef_Trace::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.CodeDef.Trace)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
file_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
function_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
line_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&lineno_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&line_id_) -
reinterpret_cast<char*>(&lineno_)) + sizeof(line_id_));
_internal_metadata_.Clear();
}
const char* CodeDef_Trace::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// string file = 1 [deprecated = true];
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_file(), ptr, ctx, "tensorflow.tfprof.CodeDef.Trace.file");
CHK_(ptr);
} else goto handle_unusual;
continue;
// int32 lineno = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
lineno_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// string function = 3 [deprecated = true];
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_function(), ptr, ctx, "tensorflow.tfprof.CodeDef.Trace.function");
CHK_(ptr);
} else goto handle_unusual;
continue;
// string line = 4 [deprecated = true];
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_line(), ptr, ctx, "tensorflow.tfprof.CodeDef.Trace.line");
CHK_(ptr);
} else goto handle_unusual;
continue;
// int32 func_start_line = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
func_start_line_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 file_id = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
file_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 function_id = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
function_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 line_id = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
line_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* CodeDef_Trace::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.CodeDef.Trace)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// string file = 1 [deprecated = true];
if (this->file().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_file().data(), static_cast<int>(this->_internal_file().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.CodeDef.Trace.file");
target = stream->WriteStringMaybeAliased(
1, this->_internal_file(), target);
}
// int32 lineno = 2;
if (this->lineno() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_lineno(), target);
}
// string function = 3 [deprecated = true];
if (this->function().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_function().data(), static_cast<int>(this->_internal_function().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.CodeDef.Trace.function");
target = stream->WriteStringMaybeAliased(
3, this->_internal_function(), target);
}
// string line = 4 [deprecated = true];
if (this->line().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_line().data(), static_cast<int>(this->_internal_line().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.CodeDef.Trace.line");
target = stream->WriteStringMaybeAliased(
4, this->_internal_line(), target);
}
// int32 func_start_line = 5;
if (this->func_start_line() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_func_start_line(), target);
}
// int64 file_id = 6;
if (this->file_id() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_file_id(), target);
}
// int64 function_id = 7;
if (this->function_id() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_function_id(), target);
}
// int64 line_id = 8;
if (this->line_id() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->_internal_line_id(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.CodeDef.Trace)
return target;
}
size_t CodeDef_Trace::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.CodeDef.Trace)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string file = 1 [deprecated = true];
if (this->file().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_file());
}
// string function = 3 [deprecated = true];
if (this->function().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_function());
}
// string line = 4 [deprecated = true];
if (this->line().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_line());
}
// int32 lineno = 2;
if (this->lineno() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
this->_internal_lineno());
}
// int32 func_start_line = 5;
if (this->func_start_line() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
this->_internal_func_start_line());
}
// int64 file_id = 6;
if (this->file_id() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_file_id());
}
// int64 function_id = 7;
if (this->function_id() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_function_id());
}
// int64 line_id = 8;
if (this->line_id() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_line_id());
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void CodeDef_Trace::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.CodeDef.Trace)
GOOGLE_DCHECK_NE(&from, this);
const CodeDef_Trace* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeDef_Trace>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.CodeDef.Trace)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.CodeDef.Trace)
MergeFrom(*source);
}
}
void CodeDef_Trace::MergeFrom(const CodeDef_Trace& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.CodeDef.Trace)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.file().size() > 0) {
file_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.file_);
}
if (from.function().size() > 0) {
function_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.function_);
}
if (from.line().size() > 0) {
line_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.line_);
}
if (from.lineno() != 0) {
_internal_set_lineno(from._internal_lineno());
}
if (from.func_start_line() != 0) {
_internal_set_func_start_line(from._internal_func_start_line());
}
if (from.file_id() != 0) {
_internal_set_file_id(from._internal_file_id());
}
if (from.function_id() != 0) {
_internal_set_function_id(from._internal_function_id());
}
if (from.line_id() != 0) {
_internal_set_line_id(from._internal_line_id());
}
}
void CodeDef_Trace::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.CodeDef.Trace)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CodeDef_Trace::CopyFrom(const CodeDef_Trace& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.CodeDef.Trace)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CodeDef_Trace::IsInitialized() const {
return true;
}
void CodeDef_Trace::InternalSwap(CodeDef_Trace* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
file_.Swap(&other->file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
function_.Swap(&other->function_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
line_.Swap(&other->line_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(lineno_, other->lineno_);
swap(func_start_line_, other->func_start_line_);
swap(file_id_, other->file_id_);
swap(function_id_, other->function_id_);
swap(line_id_, other->line_id_);
}
::PROTOBUF_NAMESPACE_ID::Metadata CodeDef_Trace::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
void CodeDef::InitAsDefaultInstance() {
}
class CodeDef::_Internal {
public:
};
CodeDef::CodeDef()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.CodeDef)
}
CodeDef::CodeDef(const CodeDef& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr),
traces_(from.traces_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.CodeDef)
}
void CodeDef::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
}
CodeDef::~CodeDef() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.CodeDef)
SharedDtor();
}
void CodeDef::SharedDtor() {
}
void CodeDef::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const CodeDef& CodeDef::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void CodeDef::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.CodeDef)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
traces_.Clear();
_internal_metadata_.Clear();
}
const char* CodeDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// repeated .tensorflow.tfprof.CodeDef.Trace traces = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_traces(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* CodeDef::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.CodeDef)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// repeated .tensorflow.tfprof.CodeDef.Trace traces = 1;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_traces_size()); i < n; i++) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessageToArray(1, this->_internal_traces(i), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.CodeDef)
return target;
}
size_t CodeDef::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.CodeDef)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .tensorflow.tfprof.CodeDef.Trace traces = 1;
total_size += 1UL * this->_internal_traces_size();
for (const auto& msg : this->traces_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void CodeDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.CodeDef)
GOOGLE_DCHECK_NE(&from, this);
const CodeDef* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeDef>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.CodeDef)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.CodeDef)
MergeFrom(*source);
}
}
void CodeDef::MergeFrom(const CodeDef& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.CodeDef)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
traces_.MergeFrom(from.traces_);
}
void CodeDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.CodeDef)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CodeDef::CopyFrom(const CodeDef& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.CodeDef)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CodeDef::IsInitialized() const {
return true;
}
void CodeDef::InternalSwap(CodeDef* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
traces_.InternalSwap(&other->traces_);
}
::PROTOBUF_NAMESPACE_ID::Metadata CodeDef::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
void OpLogEntry::InitAsDefaultInstance() {
::tensorflow::tfprof::_OpLogEntry_default_instance_._instance.get_mutable()->code_def_ = const_cast< ::tensorflow::tfprof::CodeDef*>(
::tensorflow::tfprof::CodeDef::internal_default_instance());
}
class OpLogEntry::_Internal {
public:
static const ::tensorflow::tfprof::CodeDef& code_def(const OpLogEntry* msg);
};
const ::tensorflow::tfprof::CodeDef&
OpLogEntry::_Internal::code_def(const OpLogEntry* msg) {
return *msg->code_def_;
}
OpLogEntry::OpLogEntry()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.OpLogEntry)
}
OpLogEntry::OpLogEntry(const OpLogEntry& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr),
types_(from.types_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_name().empty()) {
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from._internal_has_code_def()) {
code_def_ = new ::tensorflow::tfprof::CodeDef(*from.code_def_);
} else {
code_def_ = nullptr;
}
float_ops_ = from.float_ops_;
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.OpLogEntry)
}
void OpLogEntry::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OpLogEntry_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&code_def_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&float_ops_) -
reinterpret_cast<char*>(&code_def_)) + sizeof(float_ops_));
}
OpLogEntry::~OpLogEntry() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.OpLogEntry)
SharedDtor();
}
void OpLogEntry::SharedDtor() {
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete code_def_;
}
void OpLogEntry::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const OpLogEntry& OpLogEntry::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OpLogEntry_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void OpLogEntry::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.OpLogEntry)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
types_.Clear();
name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == nullptr && code_def_ != nullptr) {
delete code_def_;
}
code_def_ = nullptr;
float_ops_ = PROTOBUF_LONGLONG(0);
_internal_metadata_.Clear();
}
const char* OpLogEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// string name = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_name(), ptr, ctx, "tensorflow.tfprof.OpLogEntry.name");
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 float_ops = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
float_ops_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// repeated string types = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
ptr -= 1;
do {
ptr += 1;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_add_types(), ptr, ctx, "tensorflow.tfprof.OpLogEntry.types");
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
} else goto handle_unusual;
continue;
// .tensorflow.tfprof.CodeDef code_def = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
ptr = ctx->ParseMessage(_internal_mutable_code_def(), ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* OpLogEntry::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.OpLogEntry)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// string name = 1;
if (this->name().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.OpLogEntry.name");
target = stream->WriteStringMaybeAliased(
1, this->_internal_name(), target);
}
// int64 float_ops = 2;
if (this->float_ops() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_float_ops(), target);
}
// repeated string types = 3;
for (int i = 0, n = this->_internal_types_size(); i < n; i++) {
const auto& s = this->_internal_types(i);
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
s.data(), static_cast<int>(s.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.OpLogEntry.types");
target = stream->WriteString(3, s, target);
}
// .tensorflow.tfprof.CodeDef code_def = 4;
if (this->has_code_def()) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessageToArray(
4, _Internal::code_def(this), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.OpLogEntry)
return target;
}
size_t OpLogEntry::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.OpLogEntry)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated string types = 3;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(types_.size());
for (int i = 0, n = types_.size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
types_.Get(i));
}
// string name = 1;
if (this->name().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_name());
}
// .tensorflow.tfprof.CodeDef code_def = 4;
if (this->has_code_def()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*code_def_);
}
// int64 float_ops = 2;
if (this->float_ops() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_float_ops());
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void OpLogEntry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.OpLogEntry)
GOOGLE_DCHECK_NE(&from, this);
const OpLogEntry* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OpLogEntry>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.OpLogEntry)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.OpLogEntry)
MergeFrom(*source);
}
}
void OpLogEntry::MergeFrom(const OpLogEntry& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.OpLogEntry)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
types_.MergeFrom(from.types_);
if (from.name().size() > 0) {
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from.has_code_def()) {
_internal_mutable_code_def()->::tensorflow::tfprof::CodeDef::MergeFrom(from._internal_code_def());
}
if (from.float_ops() != 0) {
_internal_set_float_ops(from._internal_float_ops());
}
}
void OpLogEntry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.OpLogEntry)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void OpLogEntry::CopyFrom(const OpLogEntry& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.OpLogEntry)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool OpLogEntry::IsInitialized() const {
return true;
}
void OpLogEntry::InternalSwap(OpLogEntry* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
types_.InternalSwap(&other->types_);
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(code_def_, other->code_def_);
swap(float_ops_, other->float_ops_);
}
::PROTOBUF_NAMESPACE_ID::Metadata OpLogEntry::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
OpLogProto_IdToStringEntry_DoNotUse::OpLogProto_IdToStringEntry_DoNotUse() {}
OpLogProto_IdToStringEntry_DoNotUse::OpLogProto_IdToStringEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void OpLogProto_IdToStringEntry_DoNotUse::MergeFrom(const OpLogProto_IdToStringEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata OpLogProto_IdToStringEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void OpLogProto_IdToStringEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
void OpLogProto::InitAsDefaultInstance() {
}
class OpLogProto::_Internal {
public:
};
OpLogProto::OpLogProto()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.OpLogProto)
}
OpLogProto::OpLogProto(const OpLogProto& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr),
log_entries_(from.log_entries_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
id_to_string_.MergeFrom(from.id_to_string_);
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.OpLogProto)
}
void OpLogProto::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OpLogProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
}
OpLogProto::~OpLogProto() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.OpLogProto)
SharedDtor();
}
void OpLogProto::SharedDtor() {
}
void OpLogProto::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const OpLogProto& OpLogProto::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OpLogProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void OpLogProto::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.OpLogProto)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
log_entries_.Clear();
id_to_string_.Clear();
_internal_metadata_.Clear();
}
const char* OpLogProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// repeated .tensorflow.tfprof.OpLogEntry log_entries = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_log_entries(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else goto handle_unusual;
continue;
// map<int64, string> id_to_string = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&id_to_string_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* OpLogProto::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.OpLogProto)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// repeated .tensorflow.tfprof.OpLogEntry log_entries = 1;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_log_entries_size()); i < n; i++) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessageToArray(1, this->_internal_log_entries(i), target, stream);
}
// map<int64, string> id_to_string = 2;
if (!this->_internal_id_to_string().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int64, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
p->second.data(), static_cast<int>(p->second.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.OpLogProto.IdToStringEntry.value");
}
};
if (stream->IsSerializationDeterministic() &&
this->_internal_id_to_string().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_id_to_string().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
it = this->_internal_id_to_string().begin();
it != this->_internal_id_to_string().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = OpLogProto_IdToStringEntry_DoNotUse::Funcs::InternalSerialize(2, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)].second));
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
it = this->_internal_id_to_string().begin();
it != this->_internal_id_to_string().end(); ++it) {
target = OpLogProto_IdToStringEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream);
Utf8Check::Check(&(*it));
}
}
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.OpLogProto)
return target;
}
size_t OpLogProto::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.OpLogProto)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .tensorflow.tfprof.OpLogEntry log_entries = 1;
total_size += 1UL * this->_internal_log_entries_size();
for (const auto& msg : this->log_entries_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// map<int64, string> id_to_string = 2;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_id_to_string_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
it = this->_internal_id_to_string().begin();
it != this->_internal_id_to_string().end(); ++it) {
total_size += OpLogProto_IdToStringEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void OpLogProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.OpLogProto)
GOOGLE_DCHECK_NE(&from, this);
const OpLogProto* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OpLogProto>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.OpLogProto)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.OpLogProto)
MergeFrom(*source);
}
}
void OpLogProto::MergeFrom(const OpLogProto& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.OpLogProto)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
log_entries_.MergeFrom(from.log_entries_);
id_to_string_.MergeFrom(from.id_to_string_);
}
void OpLogProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.OpLogProto)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void OpLogProto::CopyFrom(const OpLogProto& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.OpLogProto)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool OpLogProto::IsInitialized() const {
return true;
}
void OpLogProto::InternalSwap(OpLogProto* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
log_entries_.InternalSwap(&other->log_entries_);
id_to_string_.Swap(&other->id_to_string_);
}
::PROTOBUF_NAMESPACE_ID::Metadata OpLogProto::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
ProfileProto_NodesEntry_DoNotUse::ProfileProto_NodesEntry_DoNotUse() {}
ProfileProto_NodesEntry_DoNotUse::ProfileProto_NodesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ProfileProto_NodesEntry_DoNotUse::MergeFrom(const ProfileProto_NodesEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileProto_NodesEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ProfileProto_NodesEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
ProfileProto_IdToStringEntry_DoNotUse::ProfileProto_IdToStringEntry_DoNotUse() {}
ProfileProto_IdToStringEntry_DoNotUse::ProfileProto_IdToStringEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ProfileProto_IdToStringEntry_DoNotUse::MergeFrom(const ProfileProto_IdToStringEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileProto_IdToStringEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ProfileProto_IdToStringEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
void ProfileProto::InitAsDefaultInstance() {
}
class ProfileProto::_Internal {
public:
};
ProfileProto::ProfileProto()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.ProfileProto)
}
ProfileProto::ProfileProto(const ProfileProto& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr),
steps_(from.steps_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
nodes_.MergeFrom(from.nodes_);
id_to_string_.MergeFrom(from.id_to_string_);
::memcpy(&has_trace_, &from.has_trace_,
static_cast<size_t>(reinterpret_cast<char*>(&miss_accelerator_stream_) -
reinterpret_cast<char*>(&has_trace_)) + sizeof(miss_accelerator_stream_));
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.ProfileProto)
}
void ProfileProto::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ProfileProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
::memset(&has_trace_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&miss_accelerator_stream_) -
reinterpret_cast<char*>(&has_trace_)) + sizeof(miss_accelerator_stream_));
}
ProfileProto::~ProfileProto() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.ProfileProto)
SharedDtor();
}
void ProfileProto::SharedDtor() {
}
void ProfileProto::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const ProfileProto& ProfileProto::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProfileProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void ProfileProto::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.ProfileProto)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
nodes_.Clear();
steps_.Clear();
id_to_string_.Clear();
::memset(&has_trace_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&miss_accelerator_stream_) -
reinterpret_cast<char*>(&has_trace_)) + sizeof(miss_accelerator_stream_));
_internal_metadata_.Clear();
}
const char* ProfileProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// map<int64, .tensorflow.tfprof.ProfileNode> nodes = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&nodes_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else goto handle_unusual;
continue;
// bool has_trace = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
has_trace_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// repeated int64 steps = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_steps(), ptr, ctx);
CHK_(ptr);
} else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
_internal_add_steps(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
CHK_(ptr);
} else goto handle_unusual;
continue;
// map<int64, string> id_to_string = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&id_to_string_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
} else goto handle_unusual;
continue;
// bool miss_accelerator_stream = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
miss_accelerator_stream_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* ProfileProto::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.ProfileProto)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// map<int64, .tensorflow.tfprof.ProfileNode> nodes = 1;
if (!this->_internal_nodes().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ProfileNode >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int64, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
if (stream->IsSerializationDeterministic() &&
this->_internal_nodes().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_nodes().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ProfileNode >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ProfileNode >::const_iterator
it = this->_internal_nodes().begin();
it != this->_internal_nodes().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ProfileProto_NodesEntry_DoNotUse::Funcs::InternalSerialize(1, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ProfileNode >::const_iterator
it = this->_internal_nodes().begin();
it != this->_internal_nodes().end(); ++it) {
target = ProfileProto_NodesEntry_DoNotUse::Funcs::InternalSerialize(1, it->first, it->second, target, stream);
}
}
}
// bool has_trace = 2;
if (this->has_trace() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_has_trace(), target);
}
// repeated int64 steps = 3;
{
int byte_size = _steps_cached_byte_size_.load(std::memory_order_relaxed);
if (byte_size > 0) {
target = stream->WriteInt64Packed(
3, _internal_steps(), byte_size, target);
}
}
// map<int64, string> id_to_string = 4;
if (!this->_internal_id_to_string().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int64, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
p->second.data(), static_cast<int>(p->second.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ProfileProto.IdToStringEntry.value");
}
};
if (stream->IsSerializationDeterministic() &&
this->_internal_id_to_string().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_id_to_string().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
it = this->_internal_id_to_string().begin();
it != this->_internal_id_to_string().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ProfileProto_IdToStringEntry_DoNotUse::Funcs::InternalSerialize(4, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)].second));
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
it = this->_internal_id_to_string().begin();
it != this->_internal_id_to_string().end(); ++it) {
target = ProfileProto_IdToStringEntry_DoNotUse::Funcs::InternalSerialize(4, it->first, it->second, target, stream);
Utf8Check::Check(&(*it));
}
}
}
// bool miss_accelerator_stream = 5;
if (this->miss_accelerator_stream() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_miss_accelerator_stream(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.ProfileProto)
return target;
}
size_t ProfileProto::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.ProfileProto)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// map<int64, .tensorflow.tfprof.ProfileNode> nodes = 1;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_nodes_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ProfileNode >::const_iterator
it = this->_internal_nodes().begin();
it != this->_internal_nodes().end(); ++it) {
total_size += ProfileProto_NodesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// repeated int64 steps = 3;
{
size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
Int64Size(this->steps_);
if (data_size > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
_steps_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// map<int64, string> id_to_string = 4;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_id_to_string_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
it = this->_internal_id_to_string().begin();
it != this->_internal_id_to_string().end(); ++it) {
total_size += ProfileProto_IdToStringEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// bool has_trace = 2;
if (this->has_trace() != 0) {
total_size += 1 + 1;
}
// bool miss_accelerator_stream = 5;
if (this->miss_accelerator_stream() != 0) {
total_size += 1 + 1;
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void ProfileProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.ProfileProto)
GOOGLE_DCHECK_NE(&from, this);
const ProfileProto* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ProfileProto>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.ProfileProto)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.ProfileProto)
MergeFrom(*source);
}
}
void ProfileProto::MergeFrom(const ProfileProto& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.ProfileProto)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
nodes_.MergeFrom(from.nodes_);
steps_.MergeFrom(from.steps_);
id_to_string_.MergeFrom(from.id_to_string_);
if (from.has_trace() != 0) {
_internal_set_has_trace(from._internal_has_trace());
}
if (from.miss_accelerator_stream() != 0) {
_internal_set_miss_accelerator_stream(from._internal_miss_accelerator_stream());
}
}
void ProfileProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.ProfileProto)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ProfileProto::CopyFrom(const ProfileProto& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.ProfileProto)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ProfileProto::IsInitialized() const {
return true;
}
void ProfileProto::InternalSwap(ProfileProto* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
nodes_.Swap(&other->nodes_);
steps_.InternalSwap(&other->steps_);
id_to_string_.Swap(&other->id_to_string_);
swap(has_trace_, other->has_trace_);
swap(miss_accelerator_stream_, other->miss_accelerator_stream_);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileProto::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
ProfileNode_InputsEntry_DoNotUse::ProfileNode_InputsEntry_DoNotUse() {}
ProfileNode_InputsEntry_DoNotUse::ProfileNode_InputsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ProfileNode_InputsEntry_DoNotUse::MergeFrom(const ProfileNode_InputsEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileNode_InputsEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ProfileNode_InputsEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
ProfileNode_InputShapesEntry_DoNotUse::ProfileNode_InputShapesEntry_DoNotUse() {}
ProfileNode_InputShapesEntry_DoNotUse::ProfileNode_InputShapesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ProfileNode_InputShapesEntry_DoNotUse::MergeFrom(const ProfileNode_InputShapesEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileNode_InputShapesEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ProfileNode_InputShapesEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
ProfileNode_OutputsEntry_DoNotUse::ProfileNode_OutputsEntry_DoNotUse() {}
ProfileNode_OutputsEntry_DoNotUse::ProfileNode_OutputsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ProfileNode_OutputsEntry_DoNotUse::MergeFrom(const ProfileNode_OutputsEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileNode_OutputsEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ProfileNode_OutputsEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
ProfileNode_OutputShapesEntry_DoNotUse::ProfileNode_OutputShapesEntry_DoNotUse() {}
ProfileNode_OutputShapesEntry_DoNotUse::ProfileNode_OutputShapesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ProfileNode_OutputShapesEntry_DoNotUse::MergeFrom(const ProfileNode_OutputShapesEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileNode_OutputShapesEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ProfileNode_OutputShapesEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
ProfileNode_SrcOutputIndexEntry_DoNotUse::ProfileNode_SrcOutputIndexEntry_DoNotUse() {}
ProfileNode_SrcOutputIndexEntry_DoNotUse::ProfileNode_SrcOutputIndexEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ProfileNode_SrcOutputIndexEntry_DoNotUse::MergeFrom(const ProfileNode_SrcOutputIndexEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileNode_SrcOutputIndexEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ProfileNode_SrcOutputIndexEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
ProfileNode_AttrsEntry_DoNotUse::ProfileNode_AttrsEntry_DoNotUse() {}
ProfileNode_AttrsEntry_DoNotUse::ProfileNode_AttrsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ProfileNode_AttrsEntry_DoNotUse::MergeFrom(const ProfileNode_AttrsEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileNode_AttrsEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ProfileNode_AttrsEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
ProfileNode_ExecsEntry_DoNotUse::ProfileNode_ExecsEntry_DoNotUse() {}
ProfileNode_ExecsEntry_DoNotUse::ProfileNode_ExecsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ProfileNode_ExecsEntry_DoNotUse::MergeFrom(const ProfileNode_ExecsEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileNode_ExecsEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ProfileNode_ExecsEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
void ProfileNode::InitAsDefaultInstance() {
::tensorflow::tfprof::_ProfileNode_default_instance_._instance.get_mutable()->trace_ = const_cast< ::tensorflow::tfprof::CodeDef*>(
::tensorflow::tfprof::CodeDef::internal_default_instance());
}
class ProfileNode::_Internal {
public:
static const ::tensorflow::tfprof::CodeDef& trace(const ProfileNode* msg);
};
const ::tensorflow::tfprof::CodeDef&
ProfileNode::_Internal::trace(const ProfileNode* msg) {
return *msg->trace_;
}
void ProfileNode::clear_attrs() {
attrs_.Clear();
}
ProfileNode::ProfileNode()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.ProfileNode)
}
ProfileNode::ProfileNode(const ProfileNode& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr),
shape_(from.shape_),
op_types_(from.op_types_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
inputs_.MergeFrom(from.inputs_);
outputs_.MergeFrom(from.outputs_);
attrs_.MergeFrom(from.attrs_);
execs_.MergeFrom(from.execs_);
src_output_index_.MergeFrom(from.src_output_index_);
output_shapes_.MergeFrom(from.output_shapes_);
input_shapes_.MergeFrom(from.input_shapes_);
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_name().empty()) {
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
}
canonical_device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_canonical_device().empty()) {
canonical_device_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.canonical_device_);
}
host_device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_host_device().empty()) {
host_device_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.host_device_);
}
op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_op().empty()) {
op_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.op_);
}
if (from._internal_has_trace()) {
trace_ = new ::tensorflow::tfprof::CodeDef(*from.trace_);
} else {
trace_ = nullptr;
}
::memcpy(&float_ops_, &from.float_ops_,
static_cast<size_t>(reinterpret_cast<char*>(&id_) -
reinterpret_cast<char*>(&float_ops_)) + sizeof(id_));
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.ProfileNode)
}
void ProfileNode::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ProfileNode_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
canonical_device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
host_device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&trace_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&id_) -
reinterpret_cast<char*>(&trace_)) + sizeof(id_));
}
ProfileNode::~ProfileNode() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.ProfileNode)
SharedDtor();
}
void ProfileNode::SharedDtor() {
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
canonical_device_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
host_device_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
op_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete trace_;
}
void ProfileNode::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const ProfileNode& ProfileNode::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProfileNode_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void ProfileNode::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.ProfileNode)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
inputs_.Clear();
outputs_.Clear();
shape_.Clear();
op_types_.Clear();
attrs_.Clear();
execs_.Clear();
src_output_index_.Clear();
output_shapes_.Clear();
input_shapes_.Clear();
name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
canonical_device_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
host_device_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
op_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == nullptr && trace_ != nullptr) {
delete trace_;
}
trace_ = nullptr;
::memset(&float_ops_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&id_) -
reinterpret_cast<char*>(&float_ops_)) + sizeof(id_));
_internal_metadata_.Clear();
}
const char* ProfileNode::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// string name = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_name(), ptr, ctx, "tensorflow.tfprof.ProfileNode.name");
CHK_(ptr);
} else goto handle_unusual;
continue;
// map<int32, int64> inputs = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&inputs_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
} else goto handle_unusual;
continue;
// map<int32, int64> outputs = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&outputs_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
} else goto handle_unusual;
continue;
// repeated int64 shape = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_shape(), ptr, ctx);
CHK_(ptr);
} else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) {
_internal_add_shape(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
CHK_(ptr);
} else goto handle_unusual;
continue;
// repeated string op_types = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
ptr -= 1;
do {
ptr += 1;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_add_op_types(), ptr, ctx, "tensorflow.tfprof.ProfileNode.op_types");
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
} else goto handle_unusual;
continue;
// string canonical_device = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_canonical_device(), ptr, ctx, "tensorflow.tfprof.ProfileNode.canonical_device");
CHK_(ptr);
} else goto handle_unusual;
continue;
// string host_device = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_host_device(), ptr, ctx, "tensorflow.tfprof.ProfileNode.host_device");
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 float_ops = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
float_ops_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// string op = 9;
case 9:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_op(), ptr, ctx, "tensorflow.tfprof.ProfileNode.op");
CHK_(ptr);
} else goto handle_unusual;
continue;
// .tensorflow.tfprof.CodeDef trace = 10;
case 10:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
ptr = ctx->ParseMessage(_internal_mutable_trace(), ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// map<string, .tensorflow.AttrValue> attrs = 11;
case 11:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&attrs_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr));
} else goto handle_unusual;
continue;
// map<int64, .tensorflow.tfprof.ExecProfile> execs = 12;
case 12:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&execs_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr));
} else goto handle_unusual;
continue;
// int64 id = 13;
case 13:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// map<int64, int32> src_output_index = 14;
case 14:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&src_output_index_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<114>(ptr));
} else goto handle_unusual;
continue;
// map<int32, .tensorflow.tfprof.Tuple> output_shapes = 15;
case 15:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&output_shapes_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr));
} else goto handle_unusual;
continue;
// map<int32, .tensorflow.tfprof.Tuple> input_shapes = 16;
case 16:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) {
ptr -= 2;
do {
ptr += 2;
ptr = ctx->ParseMessage(&input_shapes_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<130>(ptr));
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* ProfileNode::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.ProfileNode)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// string name = 1;
if (this->name().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ProfileNode.name");
target = stream->WriteStringMaybeAliased(
1, this->_internal_name(), target);
}
// map<int32, int64> inputs = 2;
if (!this->_internal_inputs().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int32, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
if (stream->IsSerializationDeterministic() &&
this->_internal_inputs().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_inputs().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator
it = this->_internal_inputs().begin();
it != this->_internal_inputs().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ProfileNode_InputsEntry_DoNotUse::Funcs::InternalSerialize(2, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator
it = this->_internal_inputs().begin();
it != this->_internal_inputs().end(); ++it) {
target = ProfileNode_InputsEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream);
}
}
}
// map<int32, int64> outputs = 3;
if (!this->_internal_outputs().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int32, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
if (stream->IsSerializationDeterministic() &&
this->_internal_outputs().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_outputs().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator
it = this->_internal_outputs().begin();
it != this->_internal_outputs().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ProfileNode_OutputsEntry_DoNotUse::Funcs::InternalSerialize(3, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator
it = this->_internal_outputs().begin();
it != this->_internal_outputs().end(); ++it) {
target = ProfileNode_OutputsEntry_DoNotUse::Funcs::InternalSerialize(3, it->first, it->second, target, stream);
}
}
}
// repeated int64 shape = 4;
{
int byte_size = _shape_cached_byte_size_.load(std::memory_order_relaxed);
if (byte_size > 0) {
target = stream->WriteInt64Packed(
4, _internal_shape(), byte_size, target);
}
}
// repeated string op_types = 5;
for (int i = 0, n = this->_internal_op_types_size(); i < n; i++) {
const auto& s = this->_internal_op_types(i);
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
s.data(), static_cast<int>(s.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ProfileNode.op_types");
target = stream->WriteString(5, s, target);
}
// string canonical_device = 6;
if (this->canonical_device().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_canonical_device().data(), static_cast<int>(this->_internal_canonical_device().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ProfileNode.canonical_device");
target = stream->WriteStringMaybeAliased(
6, this->_internal_canonical_device(), target);
}
// string host_device = 7;
if (this->host_device().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_host_device().data(), static_cast<int>(this->_internal_host_device().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ProfileNode.host_device");
target = stream->WriteStringMaybeAliased(
7, this->_internal_host_device(), target);
}
// int64 float_ops = 8;
if (this->float_ops() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->_internal_float_ops(), target);
}
// string op = 9;
if (this->op().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_op().data(), static_cast<int>(this->_internal_op().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ProfileNode.op");
target = stream->WriteStringMaybeAliased(
9, this->_internal_op(), target);
}
// .tensorflow.tfprof.CodeDef trace = 10;
if (this->has_trace()) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessageToArray(
10, _Internal::trace(this), target, stream);
}
// map<string, .tensorflow.AttrValue> attrs = 11;
if (!this->_internal_attrs().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_pointer
ConstPtr;
typedef ConstPtr SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), static_cast<int>(p->first.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ProfileNode.AttrsEntry.key");
}
};
if (stream->IsSerializationDeterministic() &&
this->_internal_attrs().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_attrs().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_iterator
it = this->_internal_attrs().begin();
it != this->_internal_attrs().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ProfileNode_AttrsEntry_DoNotUse::Funcs::InternalSerialize(11, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target, stream);
Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_iterator
it = this->_internal_attrs().begin();
it != this->_internal_attrs().end(); ++it) {
target = ProfileNode_AttrsEntry_DoNotUse::Funcs::InternalSerialize(11, it->first, it->second, target, stream);
Utf8Check::Check(&(*it));
}
}
}
// map<int64, .tensorflow.tfprof.ExecProfile> execs = 12;
if (!this->_internal_execs().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ExecProfile >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int64, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
if (stream->IsSerializationDeterministic() &&
this->_internal_execs().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_execs().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ExecProfile >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ExecProfile >::const_iterator
it = this->_internal_execs().begin();
it != this->_internal_execs().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ProfileNode_ExecsEntry_DoNotUse::Funcs::InternalSerialize(12, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ExecProfile >::const_iterator
it = this->_internal_execs().begin();
it != this->_internal_execs().end(); ++it) {
target = ProfileNode_ExecsEntry_DoNotUse::Funcs::InternalSerialize(12, it->first, it->second, target, stream);
}
}
}
// int64 id = 13;
if (this->id() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(13, this->_internal_id(), target);
}
// map<int64, int32> src_output_index = 14;
if (!this->_internal_src_output_index().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::int32 >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int64, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
if (stream->IsSerializationDeterministic() &&
this->_internal_src_output_index().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_src_output_index().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::int32 >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::int32 >::const_iterator
it = this->_internal_src_output_index().begin();
it != this->_internal_src_output_index().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ProfileNode_SrcOutputIndexEntry_DoNotUse::Funcs::InternalSerialize(14, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::int32 >::const_iterator
it = this->_internal_src_output_index().begin();
it != this->_internal_src_output_index().end(); ++it) {
target = ProfileNode_SrcOutputIndexEntry_DoNotUse::Funcs::InternalSerialize(14, it->first, it->second, target, stream);
}
}
}
// map<int32, .tensorflow.tfprof.Tuple> output_shapes = 15;
if (!this->_internal_output_shapes().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int32, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
if (stream->IsSerializationDeterministic() &&
this->_internal_output_shapes().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_output_shapes().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::const_iterator
it = this->_internal_output_shapes().begin();
it != this->_internal_output_shapes().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ProfileNode_OutputShapesEntry_DoNotUse::Funcs::InternalSerialize(15, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::const_iterator
it = this->_internal_output_shapes().begin();
it != this->_internal_output_shapes().end(); ++it) {
target = ProfileNode_OutputShapesEntry_DoNotUse::Funcs::InternalSerialize(15, it->first, it->second, target, stream);
}
}
}
// map<int32, .tensorflow.tfprof.Tuple> input_shapes = 16;
if (!this->_internal_input_shapes().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int32, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
if (stream->IsSerializationDeterministic() &&
this->_internal_input_shapes().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_input_shapes().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::const_iterator
it = this->_internal_input_shapes().begin();
it != this->_internal_input_shapes().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ProfileNode_InputShapesEntry_DoNotUse::Funcs::InternalSerialize(16, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::const_iterator
it = this->_internal_input_shapes().begin();
it != this->_internal_input_shapes().end(); ++it) {
target = ProfileNode_InputShapesEntry_DoNotUse::Funcs::InternalSerialize(16, it->first, it->second, target, stream);
}
}
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.ProfileNode)
return target;
}
size_t ProfileNode::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.ProfileNode)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// map<int32, int64> inputs = 2;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_inputs_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator
it = this->_internal_inputs().begin();
it != this->_internal_inputs().end(); ++it) {
total_size += ProfileNode_InputsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// map<int32, int64> outputs = 3;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_outputs_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator
it = this->_internal_outputs().begin();
it != this->_internal_outputs().end(); ++it) {
total_size += ProfileNode_OutputsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// repeated int64 shape = 4;
{
size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
Int64Size(this->shape_);
if (data_size > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
_shape_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// repeated string op_types = 5;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(op_types_.size());
for (int i = 0, n = op_types_.size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
op_types_.Get(i));
}
// map<string, .tensorflow.AttrValue> attrs = 11;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attrs_size());
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_iterator
it = this->_internal_attrs().begin();
it != this->_internal_attrs().end(); ++it) {
total_size += ProfileNode_AttrsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// map<int64, .tensorflow.tfprof.ExecProfile> execs = 12;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_execs_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::tfprof::ExecProfile >::const_iterator
it = this->_internal_execs().begin();
it != this->_internal_execs().end(); ++it) {
total_size += ProfileNode_ExecsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// map<int64, int32> src_output_index = 14;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_src_output_index_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::int32 >::const_iterator
it = this->_internal_src_output_index().begin();
it != this->_internal_src_output_index().end(); ++it) {
total_size += ProfileNode_SrcOutputIndexEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// map<int32, .tensorflow.tfprof.Tuple> output_shapes = 15;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_output_shapes_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::const_iterator
it = this->_internal_output_shapes().begin();
it != this->_internal_output_shapes().end(); ++it) {
total_size += ProfileNode_OutputShapesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// map<int32, .tensorflow.tfprof.Tuple> input_shapes = 16;
total_size += 2 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_input_shapes_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Tuple >::const_iterator
it = this->_internal_input_shapes().begin();
it != this->_internal_input_shapes().end(); ++it) {
total_size += ProfileNode_InputShapesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// string name = 1;
if (this->name().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_name());
}
// string canonical_device = 6;
if (this->canonical_device().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_canonical_device());
}
// string host_device = 7;
if (this->host_device().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_host_device());
}
// string op = 9;
if (this->op().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_op());
}
// .tensorflow.tfprof.CodeDef trace = 10;
if (this->has_trace()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*trace_);
}
// int64 float_ops = 8;
if (this->float_ops() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_float_ops());
}
// int64 id = 13;
if (this->id() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_id());
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void ProfileNode::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.ProfileNode)
GOOGLE_DCHECK_NE(&from, this);
const ProfileNode* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ProfileNode>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.ProfileNode)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.ProfileNode)
MergeFrom(*source);
}
}
void ProfileNode::MergeFrom(const ProfileNode& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.ProfileNode)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
inputs_.MergeFrom(from.inputs_);
outputs_.MergeFrom(from.outputs_);
shape_.MergeFrom(from.shape_);
op_types_.MergeFrom(from.op_types_);
attrs_.MergeFrom(from.attrs_);
execs_.MergeFrom(from.execs_);
src_output_index_.MergeFrom(from.src_output_index_);
output_shapes_.MergeFrom(from.output_shapes_);
input_shapes_.MergeFrom(from.input_shapes_);
if (from.name().size() > 0) {
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from.canonical_device().size() > 0) {
canonical_device_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.canonical_device_);
}
if (from.host_device().size() > 0) {
host_device_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.host_device_);
}
if (from.op().size() > 0) {
op_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.op_);
}
if (from.has_trace()) {
_internal_mutable_trace()->::tensorflow::tfprof::CodeDef::MergeFrom(from._internal_trace());
}
if (from.float_ops() != 0) {
_internal_set_float_ops(from._internal_float_ops());
}
if (from.id() != 0) {
_internal_set_id(from._internal_id());
}
}
void ProfileNode::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.ProfileNode)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ProfileNode::CopyFrom(const ProfileNode& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.ProfileNode)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ProfileNode::IsInitialized() const {
return true;
}
void ProfileNode::InternalSwap(ProfileNode* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
inputs_.Swap(&other->inputs_);
outputs_.Swap(&other->outputs_);
shape_.InternalSwap(&other->shape_);
op_types_.InternalSwap(&other->op_types_);
attrs_.Swap(&other->attrs_);
execs_.Swap(&other->execs_);
src_output_index_.Swap(&other->src_output_index_);
output_shapes_.Swap(&other->output_shapes_);
input_shapes_.Swap(&other->input_shapes_);
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
canonical_device_.Swap(&other->canonical_device_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
host_device_.Swap(&other->host_device_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
op_.Swap(&other->op_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(trace_, other->trace_);
swap(float_ops_, other->float_ops_);
swap(id_, other->id_);
}
::PROTOBUF_NAMESPACE_ID::Metadata ProfileNode::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
ExecProfile_AcceleratorExecsEntry_DoNotUse::ExecProfile_AcceleratorExecsEntry_DoNotUse() {}
ExecProfile_AcceleratorExecsEntry_DoNotUse::ExecProfile_AcceleratorExecsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ExecProfile_AcceleratorExecsEntry_DoNotUse::MergeFrom(const ExecProfile_AcceleratorExecsEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ExecProfile_AcceleratorExecsEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ExecProfile_AcceleratorExecsEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
ExecProfile_CpuExecsEntry_DoNotUse::ExecProfile_CpuExecsEntry_DoNotUse() {}
ExecProfile_CpuExecsEntry_DoNotUse::ExecProfile_CpuExecsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ExecProfile_CpuExecsEntry_DoNotUse::MergeFrom(const ExecProfile_CpuExecsEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ExecProfile_CpuExecsEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ExecProfile_CpuExecsEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
void ExecProfile::InitAsDefaultInstance() {
}
class ExecProfile::_Internal {
public:
};
void ExecProfile::clear_allocations() {
allocations_.Clear();
}
ExecProfile::ExecProfile()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.ExecProfile)
}
ExecProfile::ExecProfile(const ExecProfile& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr),
devices_(from.devices_),
memory_execs_(from.memory_execs_),
allocations_(from.allocations_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
accelerator_execs_.MergeFrom(from.accelerator_execs_);
cpu_execs_.MergeFrom(from.cpu_execs_);
::memcpy(&run_count_, &from.run_count_,
static_cast<size_t>(reinterpret_cast<char*>(&latest_end_micros_) -
reinterpret_cast<char*>(&run_count_)) + sizeof(latest_end_micros_));
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.ExecProfile)
}
void ExecProfile::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ExecProfile_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
::memset(&run_count_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&latest_end_micros_) -
reinterpret_cast<char*>(&run_count_)) + sizeof(latest_end_micros_));
}
ExecProfile::~ExecProfile() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.ExecProfile)
SharedDtor();
}
void ExecProfile::SharedDtor() {
}
void ExecProfile::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const ExecProfile& ExecProfile::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExecProfile_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void ExecProfile::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.ExecProfile)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
accelerator_execs_.Clear();
cpu_execs_.Clear();
devices_.Clear();
memory_execs_.Clear();
allocations_.Clear();
::memset(&run_count_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&latest_end_micros_) -
reinterpret_cast<char*>(&run_count_)) + sizeof(latest_end_micros_));
_internal_metadata_.Clear();
}
const char* ExecProfile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// int64 run_count = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
run_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 all_start_micros = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
all_start_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 latest_end_micros = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
latest_end_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// map<string, .tensorflow.tfprof.ExecTime> accelerator_execs = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&accelerator_execs_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
} else goto handle_unusual;
continue;
// map<string, .tensorflow.tfprof.ExecTime> cpu_execs = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&cpu_execs_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
} else goto handle_unusual;
continue;
// repeated string devices = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
ptr -= 1;
do {
ptr += 1;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_add_devices(), ptr, ctx, "tensorflow.tfprof.ExecProfile.devices");
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
} else goto handle_unusual;
continue;
// repeated .tensorflow.tfprof.ExecMemory memory_execs = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_memory_execs(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
} else goto handle_unusual;
continue;
// repeated .tensorflow.AllocationRecord allocations = 11;
case 11:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_allocations(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr));
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* ExecProfile::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.ExecProfile)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int64 run_count = 1;
if (this->run_count() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_run_count(), target);
}
// int64 all_start_micros = 2;
if (this->all_start_micros() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_all_start_micros(), target);
}
// int64 latest_end_micros = 3;
if (this->latest_end_micros() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_latest_end_micros(), target);
}
// map<string, .tensorflow.tfprof.ExecTime> accelerator_execs = 4;
if (!this->_internal_accelerator_execs().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::const_pointer
ConstPtr;
typedef ConstPtr SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), static_cast<int>(p->first.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ExecProfile.AcceleratorExecsEntry.key");
}
};
if (stream->IsSerializationDeterministic() &&
this->_internal_accelerator_execs().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_accelerator_execs().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::const_iterator
it = this->_internal_accelerator_execs().begin();
it != this->_internal_accelerator_execs().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ExecProfile_AcceleratorExecsEntry_DoNotUse::Funcs::InternalSerialize(4, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target, stream);
Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::const_iterator
it = this->_internal_accelerator_execs().begin();
it != this->_internal_accelerator_execs().end(); ++it) {
target = ExecProfile_AcceleratorExecsEntry_DoNotUse::Funcs::InternalSerialize(4, it->first, it->second, target, stream);
Utf8Check::Check(&(*it));
}
}
}
// map<string, .tensorflow.tfprof.ExecTime> cpu_execs = 5;
if (!this->_internal_cpu_execs().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::const_pointer
ConstPtr;
typedef ConstPtr SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), static_cast<int>(p->first.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ExecProfile.CpuExecsEntry.key");
}
};
if (stream->IsSerializationDeterministic() &&
this->_internal_cpu_execs().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_cpu_execs().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::const_iterator
it = this->_internal_cpu_execs().begin();
it != this->_internal_cpu_execs().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ExecProfile_CpuExecsEntry_DoNotUse::Funcs::InternalSerialize(5, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target, stream);
Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::const_iterator
it = this->_internal_cpu_execs().begin();
it != this->_internal_cpu_execs().end(); ++it) {
target = ExecProfile_CpuExecsEntry_DoNotUse::Funcs::InternalSerialize(5, it->first, it->second, target, stream);
Utf8Check::Check(&(*it));
}
}
}
// repeated string devices = 6;
for (int i = 0, n = this->_internal_devices_size(); i < n; i++) {
const auto& s = this->_internal_devices(i);
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
s.data(), static_cast<int>(s.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"tensorflow.tfprof.ExecProfile.devices");
target = stream->WriteString(6, s, target);
}
// repeated .tensorflow.tfprof.ExecMemory memory_execs = 7;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_memory_execs_size()); i < n; i++) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessageToArray(7, this->_internal_memory_execs(i), target, stream);
}
// repeated .tensorflow.AllocationRecord allocations = 11;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_allocations_size()); i < n; i++) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessageToArray(11, this->_internal_allocations(i), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.ExecProfile)
return target;
}
size_t ExecProfile::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.ExecProfile)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// map<string, .tensorflow.tfprof.ExecTime> accelerator_execs = 4;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_accelerator_execs_size());
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::const_iterator
it = this->_internal_accelerator_execs().begin();
it != this->_internal_accelerator_execs().end(); ++it) {
total_size += ExecProfile_AcceleratorExecsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// map<string, .tensorflow.tfprof.ExecTime> cpu_execs = 5;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_cpu_execs_size());
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::ExecTime >::const_iterator
it = this->_internal_cpu_execs().begin();
it != this->_internal_cpu_execs().end(); ++it) {
total_size += ExecProfile_CpuExecsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// repeated string devices = 6;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(devices_.size());
for (int i = 0, n = devices_.size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
devices_.Get(i));
}
// repeated .tensorflow.tfprof.ExecMemory memory_execs = 7;
total_size += 1UL * this->_internal_memory_execs_size();
for (const auto& msg : this->memory_execs_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// repeated .tensorflow.AllocationRecord allocations = 11;
total_size += 1UL * this->_internal_allocations_size();
for (const auto& msg : this->allocations_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// int64 run_count = 1;
if (this->run_count() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_run_count());
}
// int64 all_start_micros = 2;
if (this->all_start_micros() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_all_start_micros());
}
// int64 latest_end_micros = 3;
if (this->latest_end_micros() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_latest_end_micros());
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void ExecProfile::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.ExecProfile)
GOOGLE_DCHECK_NE(&from, this);
const ExecProfile* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ExecProfile>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.ExecProfile)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.ExecProfile)
MergeFrom(*source);
}
}
void ExecProfile::MergeFrom(const ExecProfile& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.ExecProfile)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
accelerator_execs_.MergeFrom(from.accelerator_execs_);
cpu_execs_.MergeFrom(from.cpu_execs_);
devices_.MergeFrom(from.devices_);
memory_execs_.MergeFrom(from.memory_execs_);
allocations_.MergeFrom(from.allocations_);
if (from.run_count() != 0) {
_internal_set_run_count(from._internal_run_count());
}
if (from.all_start_micros() != 0) {
_internal_set_all_start_micros(from._internal_all_start_micros());
}
if (from.latest_end_micros() != 0) {
_internal_set_latest_end_micros(from._internal_latest_end_micros());
}
}
void ExecProfile::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.ExecProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ExecProfile::CopyFrom(const ExecProfile& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.ExecProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ExecProfile::IsInitialized() const {
return true;
}
void ExecProfile::InternalSwap(ExecProfile* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
accelerator_execs_.Swap(&other->accelerator_execs_);
cpu_execs_.Swap(&other->cpu_execs_);
devices_.InternalSwap(&other->devices_);
memory_execs_.InternalSwap(&other->memory_execs_);
allocations_.InternalSwap(&other->allocations_);
swap(run_count_, other->run_count_);
swap(all_start_micros_, other->all_start_micros_);
swap(latest_end_micros_, other->latest_end_micros_);
}
::PROTOBUF_NAMESPACE_ID::Metadata ExecProfile::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
void ExecTime::InitAsDefaultInstance() {
}
class ExecTime::_Internal {
public:
};
ExecTime::ExecTime()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.ExecTime)
}
ExecTime::ExecTime(const ExecTime& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr),
times_(from.times_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.ExecTime)
}
void ExecTime::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ExecTime_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
}
ExecTime::~ExecTime() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.ExecTime)
SharedDtor();
}
void ExecTime::SharedDtor() {
}
void ExecTime::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const ExecTime& ExecTime::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExecTime_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void ExecTime::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.ExecTime)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
times_.Clear();
_internal_metadata_.Clear();
}
const char* ExecTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// repeated .tensorflow.tfprof.Tuple times = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_times(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* ExecTime::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.ExecTime)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// repeated .tensorflow.tfprof.Tuple times = 1;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_times_size()); i < n; i++) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessageToArray(1, this->_internal_times(i), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.ExecTime)
return target;
}
size_t ExecTime::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.ExecTime)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .tensorflow.tfprof.Tuple times = 1;
total_size += 1UL * this->_internal_times_size();
for (const auto& msg : this->times_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void ExecTime::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.ExecTime)
GOOGLE_DCHECK_NE(&from, this);
const ExecTime* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ExecTime>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.ExecTime)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.ExecTime)
MergeFrom(*source);
}
}
void ExecTime::MergeFrom(const ExecTime& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.ExecTime)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
times_.MergeFrom(from.times_);
}
void ExecTime::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.ExecTime)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ExecTime::CopyFrom(const ExecTime& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.ExecTime)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ExecTime::IsInitialized() const {
return true;
}
void ExecTime::InternalSwap(ExecTime* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
times_.InternalSwap(&other->times_);
}
::PROTOBUF_NAMESPACE_ID::Metadata ExecTime::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
ExecMemory_OutputMemoryEntry_DoNotUse::ExecMemory_OutputMemoryEntry_DoNotUse() {}
ExecMemory_OutputMemoryEntry_DoNotUse::ExecMemory_OutputMemoryEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void ExecMemory_OutputMemoryEntry_DoNotUse::MergeFrom(const ExecMemory_OutputMemoryEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata ExecMemory_OutputMemoryEntry_DoNotUse::GetMetadata() const {
return GetMetadataStatic();
}
void ExecMemory_OutputMemoryEntry_DoNotUse::MergeFrom(
const ::PROTOBUF_NAMESPACE_ID::Message& other) {
::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
}
// ===================================================================
void ExecMemory::InitAsDefaultInstance() {
}
class ExecMemory::_Internal {
public:
};
ExecMemory::ExecMemory()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.ExecMemory)
}
ExecMemory::ExecMemory(const ExecMemory& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
output_memory_.MergeFrom(from.output_memory_);
::memcpy(&memory_micros_, &from.memory_micros_,
static_cast<size_t>(reinterpret_cast<char*>(&allocator_bytes_in_use_) -
reinterpret_cast<char*>(&memory_micros_)) + sizeof(allocator_bytes_in_use_));
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.ExecMemory)
}
void ExecMemory::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ExecMemory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
::memset(&memory_micros_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&allocator_bytes_in_use_) -
reinterpret_cast<char*>(&memory_micros_)) + sizeof(allocator_bytes_in_use_));
}
ExecMemory::~ExecMemory() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.ExecMemory)
SharedDtor();
}
void ExecMemory::SharedDtor() {
}
void ExecMemory::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const ExecMemory& ExecMemory::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExecMemory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void ExecMemory::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.ExecMemory)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
output_memory_.Clear();
::memset(&memory_micros_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&allocator_bytes_in_use_) -
reinterpret_cast<char*>(&memory_micros_)) + sizeof(allocator_bytes_in_use_));
_internal_metadata_.Clear();
}
const char* ExecMemory::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// int64 memory_micros = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
memory_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 host_temp_bytes = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
host_temp_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 host_persistent_bytes = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
host_persistent_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 accelerator_temp_bytes = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
accelerator_temp_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 accelerator_persistent_bytes = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
accelerator_persistent_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 requested_bytes = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
requested_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 peak_bytes = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
peak_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 residual_bytes = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
residual_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 output_bytes = 9;
case 9:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
output_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// int64 allocator_bytes_in_use = 10;
case 10:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
allocator_bytes_in_use_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// map<int32, .tensorflow.tfprof.Memory> output_memory = 11;
case 11:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&output_memory_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr));
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* ExecMemory::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.ExecMemory)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int64 memory_micros = 1;
if (this->memory_micros() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_memory_micros(), target);
}
// int64 host_temp_bytes = 2;
if (this->host_temp_bytes() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_host_temp_bytes(), target);
}
// int64 host_persistent_bytes = 3;
if (this->host_persistent_bytes() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_host_persistent_bytes(), target);
}
// int64 accelerator_temp_bytes = 4;
if (this->accelerator_temp_bytes() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_accelerator_temp_bytes(), target);
}
// int64 accelerator_persistent_bytes = 5;
if (this->accelerator_persistent_bytes() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_accelerator_persistent_bytes(), target);
}
// int64 requested_bytes = 6;
if (this->requested_bytes() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_requested_bytes(), target);
}
// int64 peak_bytes = 7;
if (this->peak_bytes() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_peak_bytes(), target);
}
// int64 residual_bytes = 8;
if (this->residual_bytes() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->_internal_residual_bytes(), target);
}
// int64 output_bytes = 9;
if (this->output_bytes() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_output_bytes(), target);
}
// int64 allocator_bytes_in_use = 10;
if (this->allocator_bytes_in_use() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_allocator_bytes_in_use(), target);
}
// map<int32, .tensorflow.tfprof.Memory> output_memory = 11;
if (!this->_internal_output_memory().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Memory >::const_pointer
ConstPtr;
typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int32, ConstPtr > SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
if (stream->IsSerializationDeterministic() &&
this->_internal_output_memory().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_output_memory().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Memory >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Memory >::const_iterator
it = this->_internal_output_memory().begin();
it != this->_internal_output_memory().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = ExecMemory_OutputMemoryEntry_DoNotUse::Funcs::InternalSerialize(11, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target, stream);
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Memory >::const_iterator
it = this->_internal_output_memory().begin();
it != this->_internal_output_memory().end(); ++it) {
target = ExecMemory_OutputMemoryEntry_DoNotUse::Funcs::InternalSerialize(11, it->first, it->second, target, stream);
}
}
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.ExecMemory)
return target;
}
size_t ExecMemory::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.ExecMemory)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// map<int32, .tensorflow.tfprof.Memory> output_memory = 11;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_output_memory_size());
for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::tfprof::Memory >::const_iterator
it = this->_internal_output_memory().begin();
it != this->_internal_output_memory().end(); ++it) {
total_size += ExecMemory_OutputMemoryEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// int64 memory_micros = 1;
if (this->memory_micros() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_memory_micros());
}
// int64 host_temp_bytes = 2;
if (this->host_temp_bytes() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_host_temp_bytes());
}
// int64 host_persistent_bytes = 3;
if (this->host_persistent_bytes() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_host_persistent_bytes());
}
// int64 accelerator_temp_bytes = 4;
if (this->accelerator_temp_bytes() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_accelerator_temp_bytes());
}
// int64 accelerator_persistent_bytes = 5;
if (this->accelerator_persistent_bytes() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_accelerator_persistent_bytes());
}
// int64 requested_bytes = 6;
if (this->requested_bytes() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_requested_bytes());
}
// int64 peak_bytes = 7;
if (this->peak_bytes() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_peak_bytes());
}
// int64 residual_bytes = 8;
if (this->residual_bytes() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_residual_bytes());
}
// int64 output_bytes = 9;
if (this->output_bytes() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_output_bytes());
}
// int64 allocator_bytes_in_use = 10;
if (this->allocator_bytes_in_use() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_allocator_bytes_in_use());
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void ExecMemory::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.ExecMemory)
GOOGLE_DCHECK_NE(&from, this);
const ExecMemory* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ExecMemory>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.ExecMemory)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.ExecMemory)
MergeFrom(*source);
}
}
void ExecMemory::MergeFrom(const ExecMemory& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.ExecMemory)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
output_memory_.MergeFrom(from.output_memory_);
if (from.memory_micros() != 0) {
_internal_set_memory_micros(from._internal_memory_micros());
}
if (from.host_temp_bytes() != 0) {
_internal_set_host_temp_bytes(from._internal_host_temp_bytes());
}
if (from.host_persistent_bytes() != 0) {
_internal_set_host_persistent_bytes(from._internal_host_persistent_bytes());
}
if (from.accelerator_temp_bytes() != 0) {
_internal_set_accelerator_temp_bytes(from._internal_accelerator_temp_bytes());
}
if (from.accelerator_persistent_bytes() != 0) {
_internal_set_accelerator_persistent_bytes(from._internal_accelerator_persistent_bytes());
}
if (from.requested_bytes() != 0) {
_internal_set_requested_bytes(from._internal_requested_bytes());
}
if (from.peak_bytes() != 0) {
_internal_set_peak_bytes(from._internal_peak_bytes());
}
if (from.residual_bytes() != 0) {
_internal_set_residual_bytes(from._internal_residual_bytes());
}
if (from.output_bytes() != 0) {
_internal_set_output_bytes(from._internal_output_bytes());
}
if (from.allocator_bytes_in_use() != 0) {
_internal_set_allocator_bytes_in_use(from._internal_allocator_bytes_in_use());
}
}
void ExecMemory::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.ExecMemory)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ExecMemory::CopyFrom(const ExecMemory& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.ExecMemory)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ExecMemory::IsInitialized() const {
return true;
}
void ExecMemory::InternalSwap(ExecMemory* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
output_memory_.Swap(&other->output_memory_);
swap(memory_micros_, other->memory_micros_);
swap(host_temp_bytes_, other->host_temp_bytes_);
swap(host_persistent_bytes_, other->host_persistent_bytes_);
swap(accelerator_temp_bytes_, other->accelerator_temp_bytes_);
swap(accelerator_persistent_bytes_, other->accelerator_persistent_bytes_);
swap(requested_bytes_, other->requested_bytes_);
swap(peak_bytes_, other->peak_bytes_);
swap(residual_bytes_, other->residual_bytes_);
swap(output_bytes_, other->output_bytes_);
swap(allocator_bytes_in_use_, other->allocator_bytes_in_use_);
}
::PROTOBUF_NAMESPACE_ID::Metadata ExecMemory::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
void Tuple::InitAsDefaultInstance() {
}
class Tuple::_Internal {
public:
};
Tuple::Tuple()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.Tuple)
}
Tuple::Tuple(const Tuple& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr),
int64_values_(from.int64_values_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.Tuple)
}
void Tuple::SharedCtor() {
}
Tuple::~Tuple() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.Tuple)
SharedDtor();
}
void Tuple::SharedDtor() {
}
void Tuple::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Tuple& Tuple::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Tuple_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void Tuple::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.Tuple)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
int64_values_.Clear();
_internal_metadata_.Clear();
}
const char* Tuple::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// repeated int64 int64_values = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_int64_values(), ptr, ctx);
CHK_(ptr);
} else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
_internal_add_int64_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
CHK_(ptr);
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* Tuple::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.Tuple)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// repeated int64 int64_values = 1;
{
int byte_size = _int64_values_cached_byte_size_.load(std::memory_order_relaxed);
if (byte_size > 0) {
target = stream->WriteInt64Packed(
1, _internal_int64_values(), byte_size, target);
}
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.Tuple)
return target;
}
size_t Tuple::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.Tuple)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated int64 int64_values = 1;
{
size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
Int64Size(this->int64_values_);
if (data_size > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
_int64_values_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Tuple::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.Tuple)
GOOGLE_DCHECK_NE(&from, this);
const Tuple* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Tuple>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.Tuple)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.Tuple)
MergeFrom(*source);
}
}
void Tuple::MergeFrom(const Tuple& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.Tuple)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
int64_values_.MergeFrom(from.int64_values_);
}
void Tuple::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.Tuple)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Tuple::CopyFrom(const Tuple& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.Tuple)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Tuple::IsInitialized() const {
return true;
}
void Tuple::InternalSwap(Tuple* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
int64_values_.InternalSwap(&other->int64_values_);
}
::PROTOBUF_NAMESPACE_ID::Metadata Tuple::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
void Memory::InitAsDefaultInstance() {
}
class Memory::_Internal {
public:
};
Memory::Memory()
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.tfprof.Memory)
}
Memory::Memory(const Memory& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&bytes_, &from.bytes_,
static_cast<size_t>(reinterpret_cast<char*>(&ptr_) -
reinterpret_cast<char*>(&bytes_)) + sizeof(ptr_));
// @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.Memory)
}
void Memory::SharedCtor() {
::memset(&bytes_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&ptr_) -
reinterpret_cast<char*>(&bytes_)) + sizeof(ptr_));
}
Memory::~Memory() {
// @@protoc_insertion_point(destructor:tensorflow.tfprof.Memory)
SharedDtor();
}
void Memory::SharedDtor() {
}
void Memory::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Memory& Memory::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Memory_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base);
return *internal_default_instance();
}
void Memory::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.Memory)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&bytes_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&ptr_) -
reinterpret_cast<char*>(&bytes_)) + sizeof(ptr_));
_internal_metadata_.Clear();
}
const char* Memory::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// int64 bytes = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// uint64 ptr = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* Memory::InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.Memory)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int64 bytes = 1;
if (this->bytes() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_bytes(), target);
}
// uint64 ptr = 2;
if (this->ptr() != 0) {
stream->EnsureSpace(&target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_ptr(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.Memory)
return target;
}
size_t Memory::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.Memory)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int64 bytes = 1;
if (this->bytes() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->_internal_bytes());
}
// uint64 ptr = 2;
if (this->ptr() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
this->_internal_ptr());
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Memory::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.Memory)
GOOGLE_DCHECK_NE(&from, this);
const Memory* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Memory>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.Memory)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.Memory)
MergeFrom(*source);
}
}
void Memory::MergeFrom(const Memory& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.Memory)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.bytes() != 0) {
_internal_set_bytes(from._internal_bytes());
}
if (from.ptr() != 0) {
_internal_set_ptr(from._internal_ptr());
}
}
void Memory::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.Memory)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Memory::CopyFrom(const Memory& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.Memory)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Memory::IsInitialized() const {
return true;
}
void Memory::InternalSwap(Memory* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(bytes_, other->bytes_);
swap(ptr_, other->ptr_);
}
::PROTOBUF_NAMESPACE_ID::Metadata Memory::GetMetadata() const {
return GetMetadataStatic();
}
// @@protoc_insertion_point(namespace_scope)
} // namespace tfprof
} // namespace tensorflow
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::CodeDef_Trace* Arena::CreateMaybeMessage< ::tensorflow::tfprof::CodeDef_Trace >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::CodeDef_Trace >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::CodeDef* Arena::CreateMaybeMessage< ::tensorflow::tfprof::CodeDef >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::CodeDef >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::OpLogEntry* Arena::CreateMaybeMessage< ::tensorflow::tfprof::OpLogEntry >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::OpLogEntry >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::OpLogProto_IdToStringEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::OpLogProto* Arena::CreateMaybeMessage< ::tensorflow::tfprof::OpLogProto >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::OpLogProto >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileProto_NodesEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileProto_IdToStringEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileProto* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileProto >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileProto >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileNode_InputsEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileNode_InputShapesEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileNode_OutputsEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileNode_OutputShapesEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileNode_SrcOutputIndexEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileNode_AttrsEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileNode_ExecsEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ProfileNode* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ProfileNode >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ProfileNode >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ExecProfile_AcceleratorExecsEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ExecProfile_CpuExecsEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ExecProfile* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ExecProfile >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ExecProfile >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ExecTime* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ExecTime >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ExecTime >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ExecMemory_OutputMemoryEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::ExecMemory* Arena::CreateMaybeMessage< ::tensorflow::tfprof::ExecMemory >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::ExecMemory >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::Tuple* Arena::CreateMaybeMessage< ::tensorflow::tfprof::Tuple >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::Tuple >(arena);
}
template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::Memory* Arena::CreateMaybeMessage< ::tensorflow::tfprof::Memory >(Arena* arena) {
return Arena::CreateInternal< ::tensorflow::tfprof::Memory >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
| 44.611703
| 243
| 0.736398
|
1250281649
|
bb5e18cb03423ed0c63210d105648ad672af010c
| 1,933
|
cpp
|
C++
|
luogu/codes/P3367_test.cpp
|
Tony031218/OI
|
562f5f45d0448f4eab77643b99b825405a123d92
|
[
"MIT"
] | 1
|
2021-02-22T03:39:24.000Z
|
2021-02-22T03:39:24.000Z
|
luogu/codes/P3367_test.cpp
|
Tony031218/OI
|
562f5f45d0448f4eab77643b99b825405a123d92
|
[
"MIT"
] | null | null | null |
luogu/codes/P3367_test.cpp
|
Tony031218/OI
|
562f5f45d0448f4eab77643b99b825405a123d92
|
[
"MIT"
] | null | null | null |
/*************************************************************
* > File Name : P3367_test.cpp
* > Author : Tony
* > Created Time : 2019/09/21 17:57:40
* > Algorithm : ufs
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
inline int read() {
int x = 0; int f = 1; char ch = getchar();
while (!isdigit(ch)) {if (ch == '-') f = -1; ch = getchar();}
while (isdigit(ch)) {x = x * 10 + ch - 48; ch = getchar();}
return x * f;
}
const int maxn = 10010;
int ufs[maxn];
int n, m;
namespace Test1 {
int find(int x) {
return ufs[x] == x ? x : find(ufs[x]);
}
void merge(int x, int y) {
int fx = find(x);
int fy = find(y);
if (fx != fy) {
ufs[fx] = fy;
}
}
}
namespace Test2 {
int find(int x) {
return ufs[x] == x ? x : ufs[x] = find(ufs[x]);
}
void merge(int x, int y) {
int fx = find(x);
int fy = find(y);
if (fx != fy) {
ufs[fx] = fy;
}
}
}
namespace Test3 {
int dep[maxn];
int find(int x) {
return ufs[x] == x ? x : ufs[x] = find(ufs[x]);
}
void merge(int x, int y) {
int fx = find(x);
int fy = find(y);
if (dep[fx] <= dep[fy]) {
ufs[fx] = fy;
if (dep[fx] == dep[fy]) {
dep[fy]++;
}
} else {
ufs[fy] = fx;
}
}
}
int main() {
n = read(), m = read();
for (int i = 1; i <= n; ++i) {
ufs[i] = i;
}
for (int i = 1; i <= m; ++i) {
int opt = read(), x = read(), y = read();
if (opt == 1) {
Test1::merge(x, y);
} else {
if (Test1::find(x) == Test1::find(y)) {
printf("Y\n");
} else {
printf("N\n");
}
}
}
return 0;
}
| 22.476744
| 65
| 0.366787
|
Tony031218
|
bb62529e61fbb71d6159ef513dec02bdd9fb7f1d
| 1,155
|
hpp
|
C++
|
src/core/simulate/src/duneini.hpp
|
henryiii/spatial-model-editor
|
2138d03ae4c7cc353b40324dfd1a3e763d7085d9
|
[
"MIT"
] | 4
|
2019-07-18T15:05:09.000Z
|
2020-03-14T09:50:07.000Z
|
src/core/simulate/src/duneini.hpp
|
henryiii/spatial-model-editor
|
2138d03ae4c7cc353b40324dfd1a3e763d7085d9
|
[
"MIT"
] | 418
|
2020-10-08T07:42:27.000Z
|
2022-03-08T12:10:52.000Z
|
src/core/simulate/src/duneini.hpp
|
henryiii/spatial-model-editor
|
2138d03ae4c7cc353b40324dfd1a3e763d7085d9
|
[
"MIT"
] | 2
|
2021-09-02T11:20:38.000Z
|
2021-10-13T14:05:32.000Z
|
// DUNE-copasi ini file generation
// - iniFile class: simple ini file generation one line at a time
#pragma once
#include <QString>
namespace sme {
namespace simulate {
class IniFile {
private:
QString text;
public:
[[nodiscard]] const QString &getText() const;
void addSection(const QString &str);
void addSection(const QString &str1, const QString &str2);
void addSection(const QString &str1, const QString &str2,
const QString &str3);
void addSection(const QString &str1, const QString &str2, const QString &str3,
const QString &str4);
void addSection(const QString &str1, const QString &str2, const QString &str3,
const QString &str4, const QString &str5);
void addSection(const QString &str1, const QString &str2, const QString &str3,
const QString &str4, const QString &str5,
const QString &str6);
void addValue(const QString &var, const QString &value);
void addValue(const QString &var, int value);
void addValue(const QString &var, double value, int precision);
void clear();
};
} // namespace simulate
} // namespace sme
| 30.394737
| 80
| 0.678788
|
henryiii
|
bb69dbd249724d064cb803ab3e6389c54b515455
| 1,692
|
hpp
|
C++
|
src/SingleLayerOptics/src/BaseCell.hpp
|
bakonyidani/Windows-CalcEngine
|
afa4c4a9f88199c6206af8bc994a073931fc8b91
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
src/SingleLayerOptics/src/BaseCell.hpp
|
bakonyidani/Windows-CalcEngine
|
afa4c4a9f88199c6206af8bc994a073931fc8b91
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
src/SingleLayerOptics/src/BaseCell.hpp
|
bakonyidani/Windows-CalcEngine
|
afa4c4a9f88199c6206af8bc994a073931fc8b91
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
#ifndef BASECELL_H
#define BASECELL_H
#include <memory>
#include <vector>
namespace FenestrationCommon {
enum class Side;
class CSeries;
}
namespace SingleLayerOptics {
class CMaterial;
class ICellDescription;
class CBeamDirection;
// Handles optical layer "cell". Base behavior is to calculate specular (direct-direct) component of a light
// beam. Inherit from this class when want to create new shading type.
class CBaseCell {
public:
CBaseCell();
CBaseCell( const std::shared_ptr< CMaterial >& t_Material,
const std::shared_ptr< ICellDescription >& t_CellDescription );
virtual void setSourceData( std::shared_ptr< FenestrationCommon::CSeries > t_SourceData );
// Direct to direct component of transmitted ray
virtual double T_dir_dir( const FenestrationCommon::Side t_Side, const CBeamDirection& t_Direction );
virtual double R_dir_dir( const FenestrationCommon::Side t_Side, const CBeamDirection& t_Direction );
virtual std::vector< double > T_dir_dir_band( const FenestrationCommon::Side t_Side,
const CBeamDirection& t_Direction );
virtual std::vector< double > R_dir_dir_band( const FenestrationCommon::Side t_Side,
const CBeamDirection& t_Direction );
std::vector< double > getBandWavelengths() const;
void setBandWavelengths(const std::vector<double> & wavelengths);
int getBandIndex( double t_Wavelength );
size_t getBandSize() const;
double getMinLambda() const;
double getMaxLambda() const;
protected:
std::shared_ptr< CMaterial > m_Material;
std::shared_ptr< ICellDescription > m_CellDescription;
};
}
#endif
| 30.214286
| 109
| 0.72104
|
bakonyidani
|
bb6e6836a82cfab2293892d87697c52e711d0956
| 561
|
hpp
|
C++
|
src/xmesh.d/cramer3.hpp
|
naruto2/CodeFEM
|
eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90
|
[
"MIT"
] | 1
|
2020-09-27T07:28:04.000Z
|
2020-09-27T07:28:04.000Z
|
src/xmesh.d/cramer3.hpp
|
naruto2/CodeFEM
|
eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90
|
[
"MIT"
] | null | null | null |
src/xmesh.d/cramer3.hpp
|
naruto2/CodeFEM
|
eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90
|
[
"MIT"
] | null | null | null |
#ifndef CRAMER3_HPP_
#define CRAMER3_HPP_
#include "sarrus.hpp"
template<class Real>
void cramer3(Real *px,Real *py,Real *pz,
Real a11,Real a12,Real a13,
Real a21,Real a22,Real a23,
Real a31,Real a32,Real a33,
Real b1,Real b2, Real b3 )
{ Real det;
*px = sarrus(b1 ,a12,a13, b2 ,a22,a23, b3 ,a32,a33);
*py = sarrus(a11,b1 ,a13, a21,b2 ,a23, a31,b3 ,a33);
*pz = sarrus(a11,a12,b1 , a21,a22,b2 , a31,a32,b3 );
det = sarrus(a11,a12,a13, a21,a22,a23, a31,a32,a33);
if(det != 0.0){ *px/=det;*py/=det;*pz/=det;}
}
#endif
| 28.05
| 54
| 0.614973
|
naruto2
|
bb80df157fd5d29ec9fecf367f679530b3722441
| 3,649
|
cpp
|
C++
|
02-functions-and-libs/readerEx.02.09/main.cpp
|
heavy3/programming-abstractions
|
e10eab5fe7d9ca7d7d4cc96551524707214e43a8
|
[
"MIT"
] | 81
|
2018-11-15T21:23:19.000Z
|
2022-03-06T09:46:36.000Z
|
02-functions-and-libs/readerEx.02.09/main.cpp
|
heavy3/programming-abstractions
|
e10eab5fe7d9ca7d7d4cc96551524707214e43a8
|
[
"MIT"
] | null | null | null |
02-functions-and-libs/readerEx.02.09/main.cpp
|
heavy3/programming-abstractions
|
e10eab5fe7d9ca7d7d4cc96551524707214e43a8
|
[
"MIT"
] | 41
|
2018-11-15T21:23:24.000Z
|
2022-02-24T03:02:26.000Z
|
//
// main.cpp
//
// This program implements the classic permutation function from
// statistics:
//
// P(n, k) = n! / (n - k)!
//
// in such a way as to avoid overflow for potentially large factorials.
//
// --------------------------------------------------------------------------
// Attribution: "Programming Abstractions in C++" by Eric Roberts
// Chapter 2, Exercise 9
// Stanford University, Autumn Quarter 2012
// http://web.stanford.edu/class/archive/cs/cs106b/cs106b.1136/materials/CS106BX-Reader.pdf
// --------------------------------------------------------------------------
//
// Created by Glenn Streiff on 9/19/15.
// Copyright © 2015 Glenn Streiff. All rights reserved.
//
#include <iostream>
#include <string>
#include <cstdlib>
// Function prototypes
void error(std::string msg);
long permutations(unsigned n, unsigned k);
bool testPermutations(unsigned n, unsigned k, long expectedAnswer);
// Main program
int main(int argc, char * argv[]) {
unsigned nItems = 6;
unsigned chooseK = 2;
long expectedAnswer = 30;
testPermutations(nItems, chooseK, expectedAnswer);
nItems = 6;
chooseK = 0;
expectedAnswer = 1;
testPermutations(nItems, chooseK, expectedAnswer);
nItems = 0;
chooseK = 2;
expectedAnswer = 1;
testPermutations(nItems, chooseK, expectedAnswer);
return 0;
}
// Function definitions
//
// Function: error
// Usage: error("Goodbye, bitter sweet existence.");
// ----------------------
// Returns control to the operating system with EXIT_FAILURE,
// defined in <cstdlib>
//
void error(std::string msg) {
std::cerr << msg << std::endl;
exit(EXIT_FAILURE);
}
//
// Function: permutations
// Usage: int answer = permutations(nItems, chooseK);
// --------------------------------------------------
// This functions returns the number of permutations for
// for choosing n items k at a time with choice order
// considered significant as given in this formula:
//
// P(n, k) = n! / (n - k)!
//
// Implementation is optimized (and overflow avoided)
// by using the denominator as a guide to factoring out
// a clever form of one.
//
long permutations(unsigned nItems, unsigned chooseK) {
long numeratorProduct = 1;
//
// Given that P(6, 2) = 6 * 5 * 4 * 3 * 2 * 1 / 4 * 3 * 2 * 1
//
// we can avoid evaluation of the denominator and corresponding
// portions of the numerator by factoring out a clever form of
// one, leaving just a partial factorial in the numerator to evaluate:
//
// P(6, 2) = (4 * 3 * 2 * 1) * (6 * 5) = 6 * 5 = 30
// ------------------------- -----
// (4 * 3 * 2 * 1) * 1 1
//
for (int i = nItems; i > (nItems - chooseK); i--) {
numeratorProduct *= i;
}
return numeratorProduct;
}
//
// Function: testPermutations
// Usage: (testPermutations(6, 2, 30)) ? std::cout << "pass" : std::cout "fail";
// -----------------------------------------------------------------------------
// Tests the permutation primitive by comparing the actual answer against
// an expected answer passed in as the final argument.
//
bool testPermutations(unsigned n, unsigned k, long expectedAnswer) {
long actualAnswer = permutations(n, k);
if (actualAnswer == expectedAnswer ) {
std::cout << "[PASS] P(" << n << ", " << k << ") = " << expectedAnswer
<< std::endl;
return true;
} else {
std::cout << "[FAIL] P(" << n << ", " << k << ") = " << actualAnswer
<< " (expecting " << expectedAnswer << ")" << std::endl;
return false;
}
}
| 29.192
| 91
| 0.560702
|
heavy3
|
bb82786b464cb26a5ff7bbbce7c227c9daf1cccc
| 444
|
hpp
|
C++
|
xctest/xctest_process.hpp
|
daher-alfawares/xctest
|
70a38a54e8d8229bd51182cf518a4a5ea3d4257f
|
[
"Apache-2.0"
] | 1
|
2017-12-08T22:35:28.000Z
|
2017-12-08T22:35:28.000Z
|
xctest/xctest_process.hpp
|
daher-alfawares/xctest
|
70a38a54e8d8229bd51182cf518a4a5ea3d4257f
|
[
"Apache-2.0"
] | null | null | null |
xctest/xctest_process.hpp
|
daher-alfawares/xctest
|
70a38a54e8d8229bd51182cf518a4a5ea3d4257f
|
[
"Apache-2.0"
] | null | null | null |
//
// xctest_process.hpp
// xctest
//
// Created by Daher Alfawares on 8/29/17.
// Copyright © 2017 Daher Alfawares. All rights reserved.
//
#ifndef xctest_process_hpp
#define xctest_process_hpp
#include <string>
#include <sstream>
namespace xctest {
class process {
public:
process(std::string process);
std::string output();
private:
std::stringstream out;
};
}
#endif /* xctest_process_hpp */
| 17.076923
| 58
| 0.655405
|
daher-alfawares
|
bb844b3252df0c53e5516622c90cd5c446e4edd0
| 5,759
|
cpp
|
C++
|
jni/src/java-m3g-common.cpp
|
bryan10328/java-m3g
|
571baeae7be590b78a0f73a5d5e58506b5525446
|
[
"MIT"
] | 2
|
2017-03-19T09:00:45.000Z
|
2021-01-17T13:25:56.000Z
|
jni/src/java-m3g-common.cpp
|
bryan10328/java-m3g
|
571baeae7be590b78a0f73a5d5e58506b5525446
|
[
"MIT"
] | null | null | null |
jni/src/java-m3g-common.cpp
|
bryan10328/java-m3g
|
571baeae7be590b78a0f73a5d5e58506b5525446
|
[
"MIT"
] | 3
|
2017-01-31T17:25:06.000Z
|
2017-07-12T10:11:03.000Z
|
#include <jni.h>
#include <iostream>
#include <typeinfo>
#include "m3g/m3g.hpp"
#include "java-Loader.hpp"
#include "java-m3g-common.hpp"
using namespace m3g;
using namespace std;
void* getNativePointer (JNIEnv* env, jobject obj)
{
if (obj == 0) {
return NULL;
}
jclass clazz = env->GetObjectClass (obj);
jfieldID fid = env->GetFieldID (clazz, "nativePointer", "J");
void* pointer = (void*)env->GetLongField (obj, fid);
env->DeleteLocalRef (clazz);
return pointer;
}
void setNativePointer (JNIEnv* env, jobject obj, void* pointer)
{
jclass clazz = env->GetObjectClass (obj);
jfieldID fid = env->GetFieldID (clazz, "nativePointer", "J");
env->SetLongField (obj, fid, (long)pointer);
env->DeleteLocalRef (clazz);
}
jobject getJavaReference (JNIEnv* env, m3g::Object* obj)
{
if (obj == NULL) {
return 0;
}
jobject entity = (jobject)obj->getExportedEntity();
return env->NewLocalRef(entity);
}
void bindJavaReference (JNIEnv* env, jobject thiz, m3g::Object* obj)
{
jobject entity = env->NewWeakGlobalRef (thiz);
obj->setExportedEntity (entity);
}
void releaseJavaReference (JNIEnv* env, m3g::Object* obj)
{
jobject entity = (jobject)obj->getExportedEntity();
env->DeleteWeakGlobalRef (entity);
}
jobject allocJavaObject (JNIEnv* env, const char* class_name)
{
jclass clazz = env->FindClass (class_name);
jobject thiz = env->AllocObject (clazz);
env->DeleteLocalRef (clazz);
return thiz;
}
int getByteArrayLength (JNIEnv* env, jbyteArray array)
{
return env->GetArrayLength (array);
}
int getShortArrayLength (JNIEnv* env, jshortArray array)
{
return env->GetArrayLength (array);
}
int getintArrayLength (JNIEnv* env, jintArray array)
{
return env->GetArrayLength (array);
}
int getFloatArrayLength (JNIEnv* env, jfloatArray array)
{
return env->GetArrayLength (array);
}
char* getByteArrayPointer (JNIEnv* env, jbyteArray array)
{
char* pointer = NULL;
if (array) {
pointer = (char*)env->GetByteArrayElements (array, 0);
}
return pointer;
}
short* getShortArrayPointer (JNIEnv* env, jshortArray array)
{
short* pointer = NULL;
if (array) {
pointer = env->GetShortArrayElements (array, 0);
}
return pointer;
}
int* getIntArrayPointer (JNIEnv* env, jintArray array)
{
int* pointer = NULL;
if (array) {
pointer = env->GetIntArrayElements (array, 0);
}
return pointer;
}
float* getFloatArrayPointer (JNIEnv* env, jfloatArray array)
{
float* pointer = NULL;
if (array) {
pointer = env->GetFloatArrayElements (array, 0);
}
return pointer;
}
void releaseByteArrayPointer (JNIEnv* env, jbyteArray array, char* pointer)
{
if (array && pointer) {
env->ReleaseByteArrayElements (array, (jbyte*)pointer, 0);
}
}
void releaseShortArrayPointer (JNIEnv* env, jshortArray array, short* pointer)
{
if (array && pointer) {
env->ReleaseShortArrayElements (array, pointer, 0);
}
}
void releaseIntArrayPointer (JNIEnv* env, jintArray array, int* pointer)
{
if (array && pointer) {
env->ReleaseIntArrayElements (array, pointer, 0);
}
}
void releaseFloatArrayPointer (JNIEnv* env, jfloatArray array, float* pointer)
{
if (array && pointer) {
env->ReleaseFloatArrayElements (array, pointer, 0);
}
}
/**
* m3g::Objectに相当するJavaオブジェクトを作成する.
*/
void Java_new_JavaM3GObject (JNIEnv* env, m3g::Object3D* obj)
{
if (typeid(*obj) == typeid(AnimationController))
Java_new_AnimationController (env, obj);
else if (typeid(*obj) == typeid(AnimationTrack))
Java_new_AnimationTrack (env, obj);
else if (typeid(*obj) == typeid(Appearance))
Java_new_Appearance (env, obj);
else if (typeid(*obj) == typeid(Background))
Java_new_Background (env, obj);
else if (typeid(*obj) == typeid(Camera))
Java_new_Camera (env, obj);
else if (typeid(*obj) == typeid(CompositingMode))
Java_new_CompositingMode (env, obj);
else if (typeid(*obj) == typeid(Fog))
Java_new_Fog (env, obj);
else if (typeid(*obj) == typeid(Group))
Java_new_Group (env, obj);
else if (typeid(*obj) == typeid(Image2D))
Java_new_Image2D (env, obj);
else if (typeid(*obj) == typeid(KeyframeSequence))
Java_new_KeyframeSequence (env, obj);
else if (typeid(*obj) == typeid(Light))
Java_new_Light (env, obj);
else if (typeid(*obj) == typeid(Material))
Java_new_Material (env, obj);
else if (typeid(*obj) == typeid(Mesh))
Java_new_Mesh (env, obj);
else if (typeid(*obj) == typeid(MorphingMesh))
Java_new_MorphingMesh (env, obj);
else if (typeid(*obj) == typeid(PolygonMode))
Java_new_PolygonMode (env, obj);
else if (typeid(*obj) == typeid(SkinnedMesh))
Java_new_SkinnedMesh (env, obj);
else if (typeid(*obj) == typeid(Sprite3D))
Java_new_Sprite3D (env, obj);
else if (typeid(*obj) == typeid(Texture2D))
Java_new_Texture2D (env, obj);
else if (typeid(*obj) == typeid(TriangleStripArray))
Java_new_TriangleStripArray (env, obj);
else if (typeid(*obj) == typeid(VertexArray))
Java_new_VertexArray (env, obj);
else if (typeid(*obj) == typeid(VertexBuffer))
Java_new_VertexBuffer (env, obj);
else if (typeid(*obj) == typeid(World))
Java_new_World (env, obj);
else {
cout << "java-m3g-common: Unknwon object.\n";
}
}
| 28.369458
| 78
| 0.624761
|
bryan10328
|
bb9445bddc9e50bb7b8b0b482dd231dd0ce8bed0
| 611
|
cpp
|
C++
|
engine/calculators/source/unit_tests/SpellboundCalculator_test.cpp
|
sidav/shadow-of-the-wyrm
|
747afdeebed885b1a4f7ab42f04f9f756afd3e52
|
[
"MIT"
] | 60
|
2019-08-21T04:08:41.000Z
|
2022-03-10T13:48:04.000Z
|
engine/calculators/source/unit_tests/SpellboundCalculator_test.cpp
|
cleancoindev/shadow-of-the-wyrm
|
51b23e98285ecb8336324bfd41ebf00f67b30389
|
[
"MIT"
] | 3
|
2021-03-18T15:11:14.000Z
|
2021-10-20T12:13:07.000Z
|
engine/calculators/source/unit_tests/SpellboundCalculator_test.cpp
|
cleancoindev/shadow-of-the-wyrm
|
51b23e98285ecb8336324bfd41ebf00f67b30389
|
[
"MIT"
] | 8
|
2019-11-16T06:29:05.000Z
|
2022-01-23T17:33:43.000Z
|
#include "gtest/gtest.h"
TEST(SW_World_Calculator_SpellboundCalculator, calc_pct_chance_spellbound)
{
CreaturePtr creature = std::make_shared<Creature>();
creature->set_willpower(3);
creature->get_resistances().set_resistance_value(DamageType::DAMAGE_TYPE_ARCANE, 1.0);
SpellboundCalculator sc;
EXPECT_EQ(10, sc.calculate_pct_chance_effect(creature));
creature->set_willpower(51);
EXPECT_EQ(5, sc.calculate_pct_chance_effect(creature));
creature->get_resistances().set_resistance_value(DamageType::DAMAGE_TYPE_ARCANE, 0.8);
EXPECT_EQ(4, sc.calculate_pct_chance_effect(creature));
}
| 26.565217
| 88
| 0.792144
|
sidav
|
bb95d7ec8196807f1ca1519a45c555327be12565
| 1,605
|
hpp
|
C++
|
include/ecs/RigidBodyObjectComponent.hpp
|
icebreakersentertainment/ice_engine
|
52a8313bc266c053366bdf554b5dc27a54ddcb25
|
[
"MIT"
] | null | null | null |
include/ecs/RigidBodyObjectComponent.hpp
|
icebreakersentertainment/ice_engine
|
52a8313bc266c053366bdf554b5dc27a54ddcb25
|
[
"MIT"
] | null | null | null |
include/ecs/RigidBodyObjectComponent.hpp
|
icebreakersentertainment/ice_engine
|
52a8313bc266c053366bdf554b5dc27a54ddcb25
|
[
"MIT"
] | 1
|
2019-06-11T03:41:48.000Z
|
2019-06-11T03:41:48.000Z
|
#ifndef RIGIDBODYOBJECTCOMPONENT_H_
#define RIGIDBODYOBJECTCOMPONENT_H_
#include "physics/CollisionShapeHandle.hpp"
#include "physics/RigidBodyObjectHandle.hpp"
#include "serialization/Serialization.hpp"
namespace ice_engine
{
namespace ecs
{
struct RigidBodyObjectComponent
{
RigidBodyObjectComponent() = default;
RigidBodyObjectComponent(physics::CollisionShapeHandle collisionShapeHandle) : collisionShapeHandle(collisionShapeHandle)
{
};
RigidBodyObjectComponent(physics::CollisionShapeHandle collisionShapeHandle, float32 mass, float32 friction, float32 restitution)
:
collisionShapeHandle(collisionShapeHandle),
mass(mass),
friction(friction),
restitution(restitution)
{
};
RigidBodyObjectComponent(physics::CollisionShapeHandle collisionShapeHandle, float32 mass, float32 friction, float32 restitution, physics::RigidBodyObjectHandle rigidBodyObjectHandle)
:
collisionShapeHandle(collisionShapeHandle),
mass(mass),
friction(friction),
restitution(restitution),
rigidBodyObjectHandle(rigidBodyObjectHandle)
{
};
static uint8 id() { return 4; }
physics::CollisionShapeHandle collisionShapeHandle;
float32 mass = 1.0f;
float32 friction = 1.0f;
float32 restitution = 1.0f;
physics::RigidBodyObjectHandle rigidBodyObjectHandle;
};
}
}
namespace boost
{
namespace serialization
{
template<class Archive>
void serialize(Archive& ar, ice_engine::ecs::RigidBodyObjectComponent& c, const unsigned int version)
{
ar & c.collisionShapeHandle & c.mass & c.friction & c.restitution & c.rigidBodyObjectHandle;
}
}
}
#endif /* RIGIDBODYOBJECTCOMPONENT_H_ */
| 23.602941
| 184
| 0.8
|
icebreakersentertainment
|
bbb469bcc1e2ca6aa4d70e262070ee4eb862c92d
| 23,128
|
cpp
|
C++
|
library/Java/Util/Vector/VectorTest.cpp
|
foodtiny/native
|
9025d337c50951b2d31eb243d0b5414496171ea5
|
[
"Zlib"
] | 19
|
2017-06-10T11:32:06.000Z
|
2018-07-07T13:38:50.000Z
|
library/Java/Util/Vector/VectorTest.cpp
|
tinylife-io/native
|
9025d337c50951b2d31eb243d0b5414496171ea5
|
[
"Zlib"
] | 188
|
2017-06-10T19:45:18.000Z
|
2018-07-27T16:52:21.000Z
|
library/Java/Util/Vector/VectorTest.cpp
|
foodtiny/native
|
9025d337c50951b2d31eb243d0b5414496171ea5
|
[
"Zlib"
] | 8
|
2017-06-23T06:59:16.000Z
|
2018-07-19T11:38:24.000Z
|
/**
* Copyright (c) 2016 Tiny Express Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "../../../Test.hpp"
#include "Vector.hpp"
using namespace Java::Util;
TEST (JavaUtilVector, Constructor) {
Vector<int> vector;
assertEquals(10, vector.capacity());
// Checks initial capacity.
Vector<int> vector1(30);
assertEquals(30, vector1.capacity());
// Checks initial capacity and capacity increment.
Vector<int> vector2(3, 2);
assertEquals(0, vector2.size());
assertEquals(3, vector2.capacity());
vector2.add(1);
assertEquals(1, vector2.size());
assertEquals(3, vector2.capacity());
vector2.add(2);
assertEquals(2, vector2.size());
assertEquals(3, vector2.capacity());
vector2.add(3);
assertEquals(3, vector2.size());
assertEquals(3, vector2.capacity());
// new capacity = old capacity + capacity increment.
vector2.add(4);
assertEquals(4, vector2.size());
assertEquals(5, vector2.capacity());
}
TEST (JavaUtilVector, InitializerListConstructor) {
// Given a vector construct from a std::initializer_list.
Vector<int> vector{1, 2, 3, 4, 5};
// Checks size.
assertEquals(5, vector.size());
// Check the first-last elements.
assertEquals(1, vector.firstElement());
assertEquals(5, vector.lastElement());
}
TEST (JavaUtilVector, CopyConstructor) {
// Given a valid vector.
Vector<int> target;
target.add(1);
target.add(2);
target.add(3);
target.add(4);
target.add(5);
// Use copy-constructor.
Vector<int> vector(target);
assertEquals(target.size(), vector.size());
assertEquals(target.firstElement(), vector.firstElement());
assertEquals(target.lastElement(), vector.lastElement());
}
TEST (JavaUtilVector, Add) {
// Given a valid vector - check size and check the first - last element.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
assertEquals(5, vector.size());
assertEquals(1, vector.firstElement());
assertEquals(5, vector.lastElement());
// Add an element at specified index in vector
// return that element at that index.
vector.add(3, 100);
assertEquals(100, vector.get(3));
assertEquals(4, vector.get(4));
// Test exception
try {
vector.add(-1, 100);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
try {
vector.add(100, 100);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
}
TEST (JavaUtilVector, AddAll) {
// Given an empty vector.
Vector<int> vector1;
// Add all elements from initializer list.
assertTrue(vector1.addAll({1, 2, 3, 4, 5}));
// Checks size.
assertEquals(5, vector1.size());
// Check the first-last elements.
assertEquals(1, vector1.firstElement());
assertEquals(5, vector1.lastElement());
// Given a valid vector.
Vector<int> vector2;
vector2.add(1);
vector2.add(2);
vector2.add(3);
vector2.add(4);
vector2.add(5);
// Add initializer list at index 2.
assertTrue(vector2.addAll(2, {7, 8, 9}));
// Check the first-last element.
assertEquals(8, vector2.size());
assertEquals(1, vector2.firstElement());
assertEquals(5, vector2.lastElement());
// Check element at index 2.
assertEquals(7, vector2.get(2));
}
TEST (JavaUtilVector, AddElement) {
Vector<int> vector;
vector.addElement(1);
vector.addElement(2);
vector.addElement(3);
vector.addElement(4);
vector.addElement(5);
assertEquals(1, vector.firstElement());
assertEquals(5, vector.lastElement());
}
TEST (JavaUtilVector, Clear) {
// Given empty vector - return size of vector is 0.
Vector<String> vector;
assertEquals(0, vector.size());
// Add three elements into vector - return size of vector is 3.
vector.add("Hello");
vector.add("World");
vector.add("Vector");
assertEquals(3, vector.size());
// Clear all elements of vector - return size of vector is 0.
vector.clear();
assertEquals(0, vector.size());
}
TEST (JavaUtilVector, Clone) {
// Given an empty vector, check size of cloned vector.
Vector<int> vector;
Vector<int> clonedVector1 = vector.clone();
assertEquals(0, clonedVector1.size());
// Given a valid vector, check size of cloned vector;
// check first-last element.7
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
Vector<int> clonedVector2 = vector.clone();
assertEquals(5, clonedVector2.size());
assertEquals(1, clonedVector2.firstElement());
assertEquals(5, clonedVector2.lastElement());
}
TEST (JavaUtilVector, Contains) {
// Given a valid vector - checks element exists or not.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
assertFalse(vector.contains(0));
assertTrue(vector.contains(5));
}
TEST (JavaUtilVector, ContainsAll) {
// Given a valid vector.
Vector<int> vector{1, 2, 3, 4, 5};
// Checks vector for having all elements in a list.
assertFalse(vector.containsAll({1, 2, 3, 4, 6}));
assertTrue(vector.containsAll({1, 2, 3, 4, 5}));
}
TEST (JavaUtilVector, CopyInto) {
Vector<int> vector{1, 2, 3, 4, 5};
Array<int> anArray;
vector.copyInto(anArray);
assertEquals(vector.size(), anArray.length);
int index;
for (index = 0; index < vector.size(); index++) {
assertEquals(vector.get(index), anArray.get(index));
}
}
TEST (JavaUtilVector, ElementAt) {
// Given a valid vector.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
// Get element at the first and the last position.
assertEquals(vector.firstElement(), vector.elementAt(0));
assertEquals(vector.lastElement(), vector.elementAt(4));
}
TEST (JavaUtilVector, EnsureCapacity) {
// Given an empty vector with initial capacity is 10 and capacity increment is 5.
Vector<int> vector1(10, 5);
assertEquals(10, vector1.capacity());
// New capacity = old capacity + capacity increment.
vector1.ensureCapacity(12);
assertEquals(15, vector1.capacity());
// New capacity = min capacity (because old capacity + capacity increment < min capacity).
vector1.ensureCapacity(25);
assertEquals(25, vector1.capacity());
// Given an empty vector with initial capacity is 10 and capacity increment is 0.
Vector<int> vector2(10, 0);
// New capacity = old capacity * 2 (because capacity increment is zero).
vector2.ensureCapacity(15);
assertEquals(20, vector2.capacity());
// New capacity = min capacity (because old capacity * 2 < min capacity).
vector2.ensureCapacity(100);
assertEquals(100, vector2.capacity());
}
TEST (JavaUtilVector, Equals) {
// Given two valid vectors, check they are equals or not.
Vector<int> vector1{1, 2, 3, 4, 5};
Vector<int> target1{1, 2, 3, 5, 4};
assertFalse(vector1.equals(target1));
// Given two valid vector, check they are equals or not.
Vector<int> vector2{1, 2, 3, 4, 5, 6, 7};
Vector<int> target2{1, 2, 3, 4, 5, 6, 7};
assertTrue(vector2.equals(target2));
// Test different size
Vector<int> vector3;
Vector<int> target3;
vector3.setSize(5);
target3.setSize(10);
assertFalse(vector3.equals(target3));
}
TEST (JavaUtilVector, FirstElement) {
// Given a valid vector, contains three elements are string - return the first element.
Vector<String> vector;
vector.add("Hello");
vector.add("World");
vector.add("Vector");
assertEquals("Hello", vector.firstElement().toString());
// Test exception
Vector<String> emptyVector;
try {
emptyVector.firstElement();
} catch (Exception exception) {
assertEquals("vector is empty", exception.getMessage());
}
}
TEST (JavaUtilVector, Get) {
// Given an valid vector with elements are string.
Vector<String> vector;
vector.add("Hello");
vector.add("World");
vector.add("I'm");
vector.add("a");
vector.add("Vector");
// Get element at index 0, then index 4.
assertEquals("Hello", vector.get(0).toString());
assertEquals("Vector", vector.get(4).toString());
// Test exception
try {
vector.get(-1);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
try {
vector.remove(100);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
}
TEST (JavaUtilVector, IsEmpty) {
// Given an empty vector, vector is empty.
Vector<int> vector;
assertTrue(vector.isEmpty());
// Add an element into vector, vector is not empty.
vector.add(0);
assertFalse(vector.isEmpty());
}
TEST (JavaUtilVector, IndexOf) {
// Given a valid vector - return index of an element in vector.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
assertEquals(0, vector.indexOf(1));
assertEquals(2, vector.indexOf(3));
vector.clear();
vector.add(1);
vector.add(2);
vector.add(4);
vector.add(4);
vector.add(5);
assertEquals(-1, vector.indexOf(4, 4));
assertEquals(2, vector.indexOf(4, 0));
// Test exception
try {
vector.indexOf(4, -1);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
try {
vector.indexOf(4, 100);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
}
TEST (JavaUtilVector, InsertElementAt) {
// Given a valid vector.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
assertEquals(1, vector.firstElement());
assertEquals(5, vector.lastElement());
// Inserts an element.
vector.insertElementAt(0, 0);
// Checks that element after added.
assertEquals(0, vector.get(0));
}
TEST (JavaUtilVector, LastElement) {
// Given a valid vector, contains three elements are string - return the last element.
Vector<String> vector;
vector.add("Hello");
vector.add("World");
vector.add("Vector");
assertEquals("Vector", vector.lastElement().toString());
// Test exception
Vector<String> emptyVector;
try {
emptyVector.lastElement();
} catch (Exception exception) {
assertEquals("vector is empty", exception.getMessage());
}
}
TEST (JavaUtilVector, LastIndexOf) {
// Given an valid vector - check last index of some elements.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(2);
vector.add(2);
vector.add(5);
assertEquals(0, vector.lastIndexOf(1));
assertEquals(3, vector.lastIndexOf(2));
assertEquals(3, vector.lastIndexOf(2, 4));
assertEquals(1, vector.lastIndexOf(2, 1));
// Test exception
try {
vector.lastIndexOf(2, -1);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
try {
vector.lastIndexOf(2, 100);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
}
TEST (JavaUtilVector, Remove) {
// Given empty vector, add three elements, remove at index 1 twice times, then remove at index 0.
// Result is element that removed from vector.
Vector<int> vector1;
vector1.add(1);
vector1.add(2);
vector1.add(3);
assertEquals(2, vector1.remove(1));
assertEquals(3, vector1.remove(1));
assertEquals(1, vector1.remove(0));
// Check size of vector.
assertEquals(0, vector1.size());
// Given a valid vector, removes specified elements.
Vector<String> vector2;
vector2.add(String("1"));
vector2.add(String("2"));
vector2.add(String("3"));
vector2.add(String("4"));
vector2.add(String("5"));
// assertFalse(vector2.remove(String("10"))); // This element doesn't exists.
// assertTrue(vector2.remove(String("5")));
Vector<Integer> vector3;
vector3.add(Integer(1));
vector3.add(Integer(2));
vector3.add(Integer(3));
vector3.add(Integer(4));
vector3.add(Integer(5));
vector3.remove(Integer(3));
assertFalse(vector3.contains(Integer(3)));
assertFalse(vector3.remove(Integer(10)));
// Test execption
try {
vector1.remove(-1);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
try {
vector1.remove(100);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
}
TEST (JavaUtilVector, RemoveAll) {
// Given a valid vector.
Vector<int> vector({1, 2, 3, 4, 5});
// Removes element appearing in the specified list.
assertTrue(vector.removeAll({1, 2, 3}));
// Checks size and the first-last element.
assertEquals(2, vector.size());
assertEquals(4, vector.firstElement());
assertEquals(5, vector.lastElement());
}
TEST (JavaUtilVector, RemoveAllElements) {
// Given empty vector - return size of vector is 0.
Vector<String> vector;
assertEquals(0, vector.size());
// Add three elements into vector - return size of vector is 3.
vector.add("Hello");
vector.add("World");
vector.add("Vector");
assertEquals(3, vector.size());
// Remove all elements of vector - return size of vector is 0.
vector.clear();
assertEquals(0, vector.size());
}
TEST (JavaUtilVector, RemoveElement) {
Vector<Integer> vector;
vector.add(Integer(1));
vector.add(Integer(2));
vector.add(Integer(3));
vector.add(Integer(4));
vector.add(Integer(5));
vector.removeElement(Integer(3));
assertEquals(4, vector.size());
assertFalse(vector.contains(Integer(3)));
}
TEST (JavaUtilVector, RemoveElementAt) {
// Given a valid vector.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
// Removes element at index = 2.
vector.removeElementAt(2);
// Checks element value at index = 2.
assertEquals(4, vector.get(2));
}
// This class use to call some protected methods in Vector class to run in test cases.
template<typename E>
class VectorFriend : public Vector<E> {
public:
void removeRange(int fromIndex, int toIndex) {
Vector<E>::removeRange(fromIndex, toIndex);
}
};
TEST (JavaUtilVector, RemoveRange) {
// Given a valid vector.
VectorFriend<int> vector;
vector.add(1); // 0
vector.add(2); // 1
vector.add(3); // 2
vector.add(4); // 3
vector.add(5);
vector.add(6);
vector.add(7);
vector.add(8);
// index: 0 1 2 3 4 5 6 7
// value: 1 2 3 4 5 6 7 8
// Removes elements at index: {1, 2}
vector.removeRange(1, 3);
// index: 0 1 2 3 4 5
// value: 1 4 5 6 7 8
assertEquals(1, vector.get(0));
assertEquals(4, vector.get(1));
// index: 0 1 2 3 4 5
// value: 1 4 5 6 7 8
// Remove element at index : {1, 1}
vector.removeRange(1, 1);
// index: 0 1 2 3 4
// value: 1 5 6 7 8
assertEquals(1, vector.get(0));
assertEquals(5, vector.get(1));
// Test Exception
try {
vector.removeRange(3, 1);
} catch (IllegalArgumentException exception) {
assertEquals("start index greater than end index", exception.getMessage());
}
try {
vector.removeRange(-1, 5);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
try {
vector.removeRange(100, 3);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
try {
vector.removeRange(1, -1);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
try {
vector.removeRange(1, 100);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
}
TEST (JavaUtilVector, RetainAll) {
Vector<int> vector{1, 2, 3, 4, 5};
assertTrue(vector.retainAll({4, 5, 6}));
assertEquals(2, vector.size());
assertEquals(4, vector.firstElement());
assertEquals(5, vector.lastElement());
}
TEST (JavaUtilVector, Set) {
// Given a valid vector.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
// Change element at index 0.
assertEquals(1, vector.set(0, 10));
// Check element at index 0.
assertEquals(10, vector.get(0));
// Change element at index 4.
assertEquals(5, vector.set(4, 0));
// Check element at index 4.
assertEquals(0, vector.get(4));
// Test index out of range
try {
vector.set(-1, 1302);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
try {
vector.set(100, 1302);
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
}
TEST (JavaUtilVector, SetElementAt) {
// Given a valid vector.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
// Change element at index 0.
vector.setElementAt(10, 0);
// Check element at index 0.
assertEquals(10, vector.get(0));
// Change element at index 4.
vector.setElementAt(0, 4);
// Check element at index 4.
assertEquals(0, vector.get(4));
}
TEST (JavaUtilVector, SetSize) {
// Given a valid vector.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
vector.add(6);
vector.add(7);
vector.add(8);
vector.add(9);
// Set new size > original size
vector.setSize(20);
assertEquals(20, vector.size());
// Sets size and checks size.
vector.setSize(5);
assertEquals(5, vector.size());
// Set negative size
try {
vector.setSize(-1);
} catch (IllegalArgumentException exception) {
assertEquals("new size is negative", exception.getMessage());
}
}
TEST (JavaUtilVector, Size) {
// Given a empty vector, then add an element - return size.
Vector<int> vector;
vector.add(0);
assertEquals(1, vector.size());
// Remove the element at index 0 - return size.
vector.remove(0);
assertEquals(0, vector.size());
// Add five elements into vector - return size.
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
assertEquals(5, vector.size());
}
TEST (JavaUtilVector, ToArray) {
// Given a valid vector.
Vector<int> vector{1, 2, 3, 4, 5};
// Copies vector to an array.
Array<int> anArray = vector.toArray();
// Check elements of vector and array at same order.
int index;
for (index = 0; index < vector.size(); index++) {
assertEquals(vector[index], anArray[index]);
}
}
TEST (JavaUtilVector, TrimToSize) {
// Given a valid vector.
Vector<int> vector;
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
vector.add(5);
vector.add(6);
// Trims the capacity to be the current size.
vector.trimToSize();
assertEquals(vector.size(), vector.capacity());
// After removing an element, capacity is not equal with size.
vector.remove(0);
assertNotEquals(vector.size(), vector.capacity());
vector.trimToSize();
assertEquals(vector.size(), vector.capacity());
}
TEST (JavaUtilVector, RangeBasedForLoop) {
// Given a valid vector.
Vector<int> vector;
vector.add(0);
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
// Using range-base-for-loop and checks element value.
int index = 0;
for (int element : vector) {
assertEquals(index, element);
index++;
}
}
TEST (JavaUtilVector, ArrayOperator) {
// Given a valid vector.
Vector<int> vector;
vector.add(0);
vector.add(1);
vector.add(2);
vector.add(3);
vector.add(4);
// Accesses element value using array operator.
int index;
for (index = 0; index < vector.size(); index++) {
assertEquals(index, vector[index]);
}
vector[0] = -1;
assertEquals(-1, vector.get(0));
// Test IllegalArgumentException
try {
vector[-1] = 1302;
} catch (IllegalArgumentException exception) {
assertEquals("index is out of range", exception.getMessage());
}
}
TEST (JavaUtilVector, AssignmentOperator) {
// Given an empty vector and add an element to it.
Vector<int> vector;
vector.add(-1);
// Assigns with an initializer list.
vector = {1, 2, 3, 4, 5};
// Checks size and the first-last element.
assertEquals(5, vector.size());
assertEquals(1, vector.firstElement());
assertEquals(5, vector.lastElement());
// Given an target vector with some elements inside.
Vector<int> target{10, 11, 12};
// Assigns target to vector.
vector = target;
// Checks size and the first-last element.
assertEquals(3, vector.size());
assertEquals(10, vector.firstElement());
assertEquals(12, vector.lastElement());
}
| 27.698204
| 101
| 0.642987
|
foodtiny
|
bbb58ffceb8ecdb195da3b9189229bcc639e5b98
| 865
|
hpp
|
C++
|
src/lib/storage/proxy_chunk.hpp
|
nilsthamm/hyrise
|
75a701f281bb7dc1636832012c43005ec3c66384
|
[
"MIT"
] | 2
|
2019-01-22T19:44:32.000Z
|
2019-01-22T19:52:33.000Z
|
src/lib/storage/proxy_chunk.hpp
|
nilsthamm/hyrise
|
75a701f281bb7dc1636832012c43005ec3c66384
|
[
"MIT"
] | 33
|
2019-02-02T09:52:50.000Z
|
2019-03-07T13:14:40.000Z
|
src/lib/storage/proxy_chunk.hpp
|
nilsthamm/hyrise
|
75a701f281bb7dc1636832012c43005ec3c66384
|
[
"MIT"
] | 1
|
2020-11-30T13:11:04.000Z
|
2020-11-30T13:11:04.000Z
|
#pragma once
#include <algorithm>
#include <atomic>
#include <memory>
#include "chunk.hpp"
namespace opossum {
// The ProxyChunk class wraps chunk objects and implements the RAII pattern
// to track the time a particular chunk has been in scope. These times are
// measured using the RDTSC instructions and are stored in the Chunk's
// ChunkAccessCounter.
class ProxyChunk {
public:
explicit ProxyChunk(const std::shared_ptr<Chunk>& chunk);
~ProxyChunk();
const std::shared_ptr<Chunk> operator*() const { return _chunk; }
const std::shared_ptr<Chunk> operator->() const { return _chunk; }
operator const std::shared_ptr<Chunk>&() const { return _chunk; }
bool operator==(const ProxyChunk& rhs) const { return _chunk == rhs._chunk; }
protected:
const std::shared_ptr<Chunk> _chunk;
const uint64_t _begin_rdtsc;
};
} // namespace opossum
| 25.441176
| 79
| 0.730636
|
nilsthamm
|
c7e2b142c61337ac424a2697289efb0f88c05745
| 700
|
cpp
|
C++
|
Patterns/In-placeTraversalOfLinkedList/61_rotate_list.cpp
|
xtstc131/mall0x_Leetcode
|
db528f2a78808d4123785c35218cce00906166dd
|
[
"MIT"
] | 1
|
2019-12-25T16:19:21.000Z
|
2019-12-25T16:19:21.000Z
|
Patterns/In-placeTraversalOfLinkedList/61_rotate_list.cpp
|
xtstc131/mall0x_Leetcode
|
db528f2a78808d4123785c35218cce00906166dd
|
[
"MIT"
] | null | null | null |
Patterns/In-placeTraversalOfLinkedList/61_rotate_list.cpp
|
xtstc131/mall0x_Leetcode
|
db528f2a78808d4123785c35218cce00906166dd
|
[
"MIT"
] | null | null | null |
#include "header.hpp"
// Definition for singly-linked list.
struct ListNode
{
int val;
ListNode *next;
ListNode(int x) : val(x), next(nullptr) {}
};
class Solution {
public:
ListNode* rotateRight(ListNode* head, int k) {
if (!head || !head->next || k == 0) return head;
int len = 1;
auto node = head;
while(node->next)
{
node = node->next;
len++;
}
k = k % len;
int move = len - k;
node->next = head;
for(int i = 0; i < move; i++)
{
node = node->next;
}
head = node->next;
node->next = nullptr;
return head;
}
};
| 21.875
| 58
| 0.46
|
xtstc131
|
c7e997c0a28d55fdded483a918e29e51687e3406
| 4,202
|
cc
|
C++
|
permut/permut.cc
|
alex4747-pub/scratchpad
|
507c16adf50e0abe7abbbbc6cc093736b939b8d5
|
[
"MIT"
] | null | null | null |
permut/permut.cc
|
alex4747-pub/scratchpad
|
507c16adf50e0abe7abbbbc6cc093736b939b8d5
|
[
"MIT"
] | null | null | null |
permut/permut.cc
|
alex4747-pub/scratchpad
|
507c16adf50e0abe7abbbbc6cc093736b939b8d5
|
[
"MIT"
] | null | null | null |
#include <algorithm>
#include <cassert>
#include <functional>
#include <iostream>
#include <vector>
static void PrintVec(std::vector<int> const& vec) {
if (vec.empty()) {
return;
}
auto cit = vec.cbegin();
std::cout << (*cit++);
while(cit != vec.cend()) {
std::cout << " " << (*cit++);
}
}
// Dramatically simplified version of next_permutation
// just as a reference
template <class BidirectionalIterator>
bool my_next_permutation (BidirectionalIterator first,
BidirectionalIterator last) {
if (first == last) {
// Empty
return false;
}
BidirectionalIterator i = first;
++i;
if (i == last) {
// Single element
return false;
}
i = last;
--i;
// 1. Starting from the last element find the first element
// not in descending order (i) and its previous one (j).
// if all elements are in descending order reverse them
// and return false
//
// 2. Starting from the last element find the first element
// greater than the one just found (k). It should be always
// be one, in the worst case it is j.
//
// 3. Swap i and k. Note that it does change the main property:
// elements from [j,end) are in descending order
//
// 4. Reverse starting from j to the end, they will be in assendng
// order to get next lexicographical permutation
for(;;) {
BidirectionalIterator j = i;
--i;
if (*i < *j) {
BidirectionalIterator k = last;
while (!(*i < *(--k)));
iter_swap(i, k);
reverse(j, last);
return true;
}
if (i == first) {
reverse(first, last);
return false;
}
}
}
// Same with compare function
template <class BidirectionalIterator, typename Compare>
bool my_next_permutation (BidirectionalIterator first,
BidirectionalIterator last,
Compare comp) {
if (first == last) {
// Empty
return false;
}
BidirectionalIterator i = first;
++i;
if (i == last) {
// Single element
return false;
}
i = last;
--i;
// 1. Starting from the last element find the first element
// not in descending order (i) and its previous one (j).
// if all elements are in descending order reverse them
// and return false
//
// 2. Starting from the last element find the first element
// greater than the one just found (k). It should be always
// be one, in the worst case it is j.
//
// 3. Swap i and k. Note that it does change the main property:
// elements from [j,end) are in descending order
//
// 4. Reverse starting from j to the end, they will be in ascending
// order to get next lexicographical permutation
for(;;) {
BidirectionalIterator j = i;
--i;
if (comp(*i, *j)) {
BidirectionalIterator k = last;
while (!comp(*i,*(--k)));
iter_swap(i, k);
reverse(j, last);
return true;
}
if (i == first) {
reverse(first, last);
return false;
}
}
}
int
main(int, char**) {
std::vector<int> va{1,2,3,4,5};
std::vector<int> vb{1,2,3,4,5};
std::vector<int> vc{1,2,3,4,5};
int count = 0;
std::cout << count << ": ";
PrintVec(va);
std::cout << "\n";
for(;;) {
bool res = std::next_permutation(va.begin(), va.end());
bool my_res1 = my_next_permutation(vb.begin(), vb.end());
bool my_res2 = my_next_permutation(vc.begin(), vc.end(), std::less<int>());
assert(res == my_res1);
assert(va == vb);
assert(res == my_res2);
assert(va == vc);
if (!res) {
break;
}
count++;
std::cout << count << ": ";
PrintVec(va);
std::cout << "\n";
}
std::cout << "done: ";
PrintVec(va);
std::cout << "\n";
return 0;
}
| 24.289017
| 83
| 0.52237
|
alex4747-pub
|
c7e9d675a3c91d828b88549fb83a06912575a227
| 2,095
|
cpp
|
C++
|
example/rpc/rpc_client.cpp
|
gatsbyd/HPNL
|
8e95eef4cb076292b9cf4d88bbb59b37d7beb4eb
|
[
"MIT"
] | 38
|
2019-12-07T04:51:36.000Z
|
2022-03-04T03:17:46.000Z
|
example/rpc/rpc_client.cpp
|
gatsbyd/HPNL
|
8e95eef4cb076292b9cf4d88bbb59b37d7beb4eb
|
[
"MIT"
] | 1
|
2020-07-02T03:55:53.000Z
|
2020-07-02T03:55:53.000Z
|
example/rpc/rpc_client.cpp
|
gatsbyd/HPNL
|
8e95eef4cb076292b9cf4d88bbb59b37d7beb4eb
|
[
"MIT"
] | 10
|
2019-12-21T08:44:36.000Z
|
2022-02-14T14:09:14.000Z
|
#include "echo.pb.h"
#include "args.pb.h"
#include "Log.h"
#include "rpc/RpcClient.h"
#include <assert.h>
#include <stdio.h>
#include <memory>
using namespace melon;
using namespace melon::rpc;
using namespace cherry;
std::shared_ptr<RequestAppendArgs> constructAppendArgs() {
std::shared_ptr<RequestAppendArgs> append_args(new RequestAppendArgs);
append_args->set_term(3);
append_args->set_leader_id(100);
append_args->set_pre_log_index(1);
append_args->set_pre_log_term(1);
append_args->set_leader_commit(1);
//entries
LogEntry* entry = append_args->add_entries();
entry->set_term(1);
entry->set_index(1);
//cmd
std::string cmd_data;
KvCommnad cmd;
cmd.set_operation("GET");
cmd.set_key("key1");
cmd.set_value("value1");
cmd.set_cid(99);
cmd.set_seq(2);
cmd.SerializeToString(&cmd_data);
entry->set_command(cmd_data);
return append_args;
}
int main(int argc, char* argv[]) {
if (argc < 2) {
printf("Usage: %s ip\n", argv[0]);
return 0;
}
Logger::setLogLevel(LogLevel::INFO);
Singleton<Logger>::getInstance()->addAppender("console", LogAppender::ptr(new ConsoleAppender()));
IpAddress server_addr(argv[1], 5000);
Scheduler scheduler;
scheduler.startAsync();
RpcClient client(server_addr, &scheduler);
client.Call<RequestAppendReply>(constructAppendArgs(), [](std::shared_ptr<RequestAppendReply> append_reply) {
LOG_INFO << "append replay. term=" << append_reply->term() << ", success=" << append_reply->success();
});
/**
std::shared_ptr<echo::EchoRequest> request(new echo::EchoRequest);
request->set_msg("hello");
client.Call<echo::EchoResponse>(request, [](std::shared_ptr<echo::EchoResponse> response) {
LOG_INFO << "client receive response, message:" << response->msg();
});
std::shared_ptr<echo::UnregisterRequest> unregister_request(new echo::UnregisterRequest);
unregister_request->set_id(1);
client.Call<echo::EchoResponse>(unregister_request, [](std::shared_ptr<echo::EchoResponse> response) {
LOG_INFO << "client receive response, message:" << response->msg();
});
**/
getchar();
return 0;
}
| 27.565789
| 110
| 0.715513
|
gatsbyd
|
c7eaf987990ab215dffe455ff117a0ae72b4b4e4
| 583
|
cpp
|
C++
|
Online-Judge-Solution/Codeforces Solutions/91(A.Lucky Division).cpp
|
arifparvez14/Basic-and-competetive-programming
|
4cb9ee7fbed3c70307d0f63499fcede86ed3c732
|
[
"MIT"
] | null | null | null |
Online-Judge-Solution/Codeforces Solutions/91(A.Lucky Division).cpp
|
arifparvez14/Basic-and-competetive-programming
|
4cb9ee7fbed3c70307d0f63499fcede86ed3c732
|
[
"MIT"
] | null | null | null |
Online-Judge-Solution/Codeforces Solutions/91(A.Lucky Division).cpp
|
arifparvez14/Basic-and-competetive-programming
|
4cb9ee7fbed3c70307d0f63499fcede86ed3c732
|
[
"MIT"
] | null | null | null |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,r,k,i,count;
while(cin>>n)
{
k=count=0;
if(n%4==0 || n%7==0 || n%44==0 || n%47==0 || n%444==0 || n%447==0 || n%474==0)
cout<<"YES"<<endl;
else
{
while(n!=0)
{
r=n%10;
n=n/10;
if(r!=4 && r!=7)
count=1;
}
if(count==0)
cout<<"YES"<<endl;
else if(count==1)
cout<<"NO"<<endl;
}
}
return 0;
}
| 20.821429
| 86
| 0.324185
|
arifparvez14
|
c7ecaae102772a23104ab10cdbb4091186a1391e
| 4,212
|
cpp
|
C++
|
src/DefaultPropertyControl.cpp
|
TimoKunze/ExplorerListView
|
8bc0299b7d58def5393527f518fd857f5122b42d
|
[
"MIT"
] | 2
|
2019-12-12T08:12:28.000Z
|
2020-10-02T09:56:48.000Z
|
src/DefaultPropertyControl.cpp
|
TimoKunze/ExplorerListView
|
8bc0299b7d58def5393527f518fd857f5122b42d
|
[
"MIT"
] | null | null | null |
src/DefaultPropertyControl.cpp
|
TimoKunze/ExplorerListView
|
8bc0299b7d58def5393527f518fd857f5122b42d
|
[
"MIT"
] | 1
|
2021-12-09T18:20:14.000Z
|
2021-12-09T18:20:14.000Z
|
// DefaultPropertyControl.cpp: Default implementation of the IPropertyControl interface
#include "stdafx.h"
#include "DefaultPropertyControl.h"
#ifdef INCLUDESUBITEMCALLBACKCODE
DefaultPropertyControl::Properties::~Properties()
{
if(pOwnerExLvw) {
pOwnerExLvw->Release();
}
}
//////////////////////////////////////////////////////////////////////
// implementation of IPropertyControlBase
STDMETHODIMP DefaultPropertyControl::Initialize(LPUNKNOWN, PROPDESC_CONTROL_TYPE)
{
ATLASSERT(FALSE && "Initialize");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::GetSize(PROPCTL_RECT_TYPE /*unknown1*/, HDC /*hDC*/, SIZE const* /*pUnknown2*/, LPSIZE /*pUnknown3*/)
{
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::SetWindowTheme(LPCWSTR, LPCWSTR)
{
ATLASSERT(FALSE && "SetWindowTheme");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::SetFont(HFONT hFont)
{
if(properties.editControl.IsWindow()) {
properties.editControl.SetFont(hFont);
}
return S_OK;
}
STDMETHODIMP DefaultPropertyControl::SetTextColor(COLORREF /*color*/)
{
// must be implemented
return S_OK;
}
STDMETHODIMP DefaultPropertyControl::GetFlags(PINT)
{
ATLASSERT(FALSE && "GetFlags");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::SetFlags(int /*flags*/, int /*mask*/)
{
// must be implemented
return S_OK;
}
STDMETHODIMP DefaultPropertyControl::AdjustWindowRectPCB(HWND /*hWndListView*/, LPRECT /*pItemRectangle*/, RECT const* /*pUnknown1*/, int /*unknown2*/)
{
// must be implemented
return S_OK;
}
STDMETHODIMP DefaultPropertyControl::SetValue(LPUNKNOWN)
{
ATLASSERT(FALSE && "SetValue");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::InvokeDefaultAction(void)
{
ATLASSERT(FALSE && "InvokeDefaultAction");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::Destroy(void)
{
if(properties.editControl.IsWindow()) {
properties.editControl.DestroyWindow();
}
return S_OK;
}
STDMETHODIMP DefaultPropertyControl::SetFormatFlags(int)
{
ATLASSERT(FALSE && "SetFormatFlags");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::GetFormatFlags(PINT)
{
ATLASSERT(FALSE && "GetFormatFlags");
return E_NOTIMPL;
}
// implementation of IPropertyControlBase
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// implementation of IPropertyControl
STDMETHODIMP DefaultPropertyControl::GetValue(REFIID /*requiredInterface*/, LPVOID* /*ppObject*/)
{
ATLASSERT(FALSE && "GetValue");
return E_NOINTERFACE;
}
STDMETHODIMP DefaultPropertyControl::Create(HWND hWndParent, RECT const* pItemRectangle, RECT const* /*pUnknown1*/, int unknown2)
{
ATLASSERT(unknown2 == 0x02 || unknown2 == 0x0C);
if(IsWindow(hWndParent)) {
properties.editControl.Create(hWndParent, *const_cast<LPRECT>(pItemRectangle), NULL, WS_BORDER | WS_CHILDWINDOW | WS_VISIBLE | ES_AUTOHSCROLL | ES_WANTRETURN);
properties.editControl.SetFont(CWindow(hWndParent).GetFont());
properties.editControl.SetFocus();
return S_OK;
}
return E_INVALIDARG;
}
STDMETHODIMP DefaultPropertyControl::SetPosition(RECT const*, RECT const*)
{
ATLASSERT(FALSE && "SetPosition");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::IsModified(LPBOOL /*pModified*/)
{
ATLASSERT(FALSE && "IsModified");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::SetModified(BOOL /*modified*/)
{
ATLASSERT(FALSE && "SetModified");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::ValidationFailed(LPCWSTR)
{
ATLASSERT(FALSE && "ValidationFailed");
return E_NOTIMPL;
}
STDMETHODIMP DefaultPropertyControl::GetState(PINT /*pState*/)
{
ATLASSERT(FALSE && "GetState");
return E_NOTIMPL;
}
// implementation of IPropertyControl
//////////////////////////////////////////////////////////////////////
void DefaultPropertyControl::SetOwner(__in_opt ExplorerListView* pOwner)
{
if(properties.pOwnerExLvw) {
properties.pOwnerExLvw->Release();
}
properties.pOwnerExLvw = pOwner;
if(properties.pOwnerExLvw) {
properties.pOwnerExLvw->AddRef();
}
}
#endif
| 25.527273
| 162
| 0.695157
|
TimoKunze
|
c7ee8d62dd43437da0809c73ce16a9384628a35e
| 1,502
|
cpp
|
C++
|
1 sem/10 week/1 problem/1 problem/test.cpp
|
resueman/HW_Sem1
|
f096c7b026ce13ec4b7df5c9bea980a33697e60a
|
[
"Apache-2.0"
] | null | null | null |
1 sem/10 week/1 problem/1 problem/test.cpp
|
resueman/HW_Sem1
|
f096c7b026ce13ec4b7df5c9bea980a33697e60a
|
[
"Apache-2.0"
] | 1
|
2018-11-22T14:14:55.000Z
|
2018-11-22T14:14:55.000Z
|
1 sem/10 week/1 problem/1 problem/test.cpp
|
resueman/HW_Sem1
|
f096c7b026ce13ec4b7df5c9bea980a33697e60a
|
[
"Apache-2.0"
] | null | null | null |
#include "test.h"
#include "readFromFile.h"
#include <iostream>
using namespace std;
bool test()
{
set<int> noStateVertecies;
vector<int> states;
//Test1
Graph* graph1 = createGraph();
readFromFile("test1.txt", graph1, states, noStateVertecies);
distributeCities(graph1, states, noStateVertecies);
vector<int> result1 = getAnswer(graph1);
vector<int> desiredResult1 = {1, 1, 4, 6, 6, 4, 6, 4};
if (result1 != desiredResult1)
{
deleteGraph(graph1);
return false;
}
cout << "Test 1 passed!!!\n";
deleteGraph(graph1);
noStateVertecies.clear();
states.clear();
//Test2
Graph* graph2 = createGraph();
readFromFile("test2.txt", graph2, states, noStateVertecies);
distributeCities(graph2, states, noStateVertecies);
vector<int> result2 = getAnswer(graph2);
vector<int> desiredResult2 = {1, 2, 3};
if (result2 != desiredResult2)
{
deleteGraph(graph2);
return false;
}
cout << "Test 2 passed!!!\n";
deleteGraph(graph2);
noStateVertecies.clear();
states.clear();
//Test3
Graph* graph3 = createGraph();
readFromFile("test3.txt", graph3, states, noStateVertecies);
distributeCities(graph3, states, noStateVertecies);
vector<int> result3 = getAnswer(graph3);
vector<int> desiredResult3 = {9, 9, 9, 4, 4, 4, 4, 4, 9, 4, 9};
if (result3 != desiredResult3)
{
deleteGraph(graph3);
return false;
}
cout << "Test 3 passed!!!\n";
deleteGraph(graph3);
noStateVertecies.clear();
states.clear();
cout << "\nAll tests passed successfully ;)\n\n";
return true;
}
| 23.46875
| 64
| 0.693076
|
resueman
|
c7f1f5cfbfd989f07df8a6028962e794a27e539c
| 1,237
|
hpp
|
C++
|
src/include/framework/accessmode.hpp
|
achreto/fm-translation-framework
|
a46afcc43f94c8a224f32fcad988a830689a9256
|
[
"MIT"
] | null | null | null |
src/include/framework/accessmode.hpp
|
achreto/fm-translation-framework
|
a46afcc43f94c8a224f32fcad988a830689a9256
|
[
"MIT"
] | null | null | null |
src/include/framework/accessmode.hpp
|
achreto/fm-translation-framework
|
a46afcc43f94c8a224f32fcad988a830689a9256
|
[
"MIT"
] | null | null | null |
/**
* The Access Modes and Permissions
*
* SPDX-License-Identifier: MIT
*
* Copyright (C) 2022, Reto Achermann (The University of British Columbia)
*/
#ifndef _ACCESS_MODE_H_
#define _ACCESS_MODE_H_ 1
// access permissions
#define ACCESS_PERMISSION_USER_READ (1 << 0)
#define ACCESS_PERMISSION_USER_WRITE (1 << 1)
#define ACCESS_PERMISSION_NOSEC_READ (1 << 2)
#define ACCESS_PERMISSION_NOSEC_WRITE (1 << 3)
#define ACCESS_PERMISSION_SEC_READ (1 << 4)
#define ACCESS_PERMISSION_SEC_WRITE (1 << 5)
#define ACCESS_PERMISSION_ALL ((1 << 6) - 1)
#define ACCESS_PERMISSION_MASK ACCESS_PERMISSION_ALL
///< the type of register permissions
typedef unsigned int access_perms_t;
///< defines various register access modes
enum access_mode {
ACCESS_MODE_USER_READ = ACCESS_PERMISSION_USER_READ,
ACCESS_MODE_USER_WRITE = ACCESS_PERMISSION_USER_WRITE,
ACCESS_MODE_NOSEC_READ = ACCESS_PERMISSION_NOSEC_READ,
ACCESS_MODE_NOSEC_WRITE = ACCESS_PERMISSION_NOSEC_WRITE,
ACCESS_MODE_SEC_READ = ACCESS_PERMISSION_SEC_READ,
ACCESS_MODE_SEC_WRITE = ACCESS_PERMISSION_SEC_WRITE,
};
///< the type for register access modes
typedef enum access_mode access_mode_t;
#endif /* _ACCESS_MODE_H_ */
| 30.925
| 74
| 0.765562
|
achreto
|
c7f31c7004107a2509705e742e916f694f0ecde1
| 977
|
cpp
|
C++
|
suanfake/HanoiTower.cpp
|
Leon-Francis/AlgorithmPractice
|
bfff066da64ebbb00ecd33d94ebbe5bcc382867c
|
[
"MIT"
] | 1
|
2020-10-07T12:03:12.000Z
|
2020-10-07T12:03:12.000Z
|
suanfake/HanoiTower.cpp
|
Leon-Francis/AlgorithmPractice
|
bfff066da64ebbb00ecd33d94ebbe5bcc382867c
|
[
"MIT"
] | null | null | null |
suanfake/HanoiTower.cpp
|
Leon-Francis/AlgorithmPractice
|
bfff066da64ebbb00ecd33d94ebbe5bcc382867c
|
[
"MIT"
] | null | null | null |
#include <iostream>
using namespace std;
void MoveTowers(int n, int tower1[52], int tower2[52], int tower3[52])
{
if (n == 1)
{
int temp = tower1[--tower1[1]];
tower3[tower3[1]++] = temp;
cout << "move disk " << temp << " from tower " << tower1[0] << " to tower " << tower3[0] << endl;
;
return;
}
MoveTowers(n - 1, tower1, tower3, tower2);
int temp = tower1[--tower1[1]];
tower3[tower3[1]++] = temp;
cout << "move disk " << temp << " from tower " << tower1[0] << " to tower " << tower3[0] << endl;
MoveTowers(n - 1, tower2, tower1, tower3);
return;
}
int main(int argc, char const *argv[])
{
int n;
cout << "请输入塔的高度:";
cin >> n;
int tower1[52];
int tower2[52] = {2, 2};
int tower3[52] = {3, 2};
tower1[0] = 1;
tower1[1] = n + 2;
for (int i = n + 1; i > 1; i--)
{
tower1[i] = n - i + 2;
}
MoveTowers(n, tower1, tower2, tower3);
return 0;
}
| 25.710526
| 105
| 0.502559
|
Leon-Francis
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.