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 108 | 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 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d0d7e94d62019a219cc2d281bc21e5da19b6856 | 5,179 | cpp | C++ | VulkanEngine/src/internal_buffer.cpp | JorgeVirgos/FinalProject | 5c239f86b126f6eb9625b8d1b36125eb660c298d | [
"MIT"
] | null | null | null | VulkanEngine/src/internal_buffer.cpp | JorgeVirgos/FinalProject | 5c239f86b126f6eb9625b8d1b36125eb660c298d | [
"MIT"
] | null | null | null | VulkanEngine/src/internal_buffer.cpp | JorgeVirgos/FinalProject | 5c239f86b126f6eb9625b8d1b36125eb660c298d | [
"MIT"
] | null | null | null | #include "internal_buffer.h"
#include "render_context.h"
VKE::InternalBuffer& VKE::Buffer::getInternalRsc(VKE::RenderContext* render_ctx) {
return render_ctx->getInternalRsc<VKE::Buffer::internal_class>(*this);
}
VKE::InternalBuffer::InternalBuffer(){
has_been_initialised_ = false;
has_been_allocated_ = false;
render_ctx_ = nullptr;
buffer_ = VK_NULL_HANDLE;
buffer_memory_ = VK_NULL_HANDLE;
uniform_desc_set_ = VK_NULL_HANDLE;
element_count_ = 0;
element_size_ = 0;
buffer_type_ = BufferType_MAX;
}
VKE::InternalBuffer::~InternalBuffer() {
// Already done in the cleanup phase of the RenderContext destruction
//if (has_been_allocated_) {
// vkFreeMemory(render_ctx_->getDevice(), buffer_memory_, nullptr);
//}
//if (has_been_initialised_) {
// vkDestroyBuffer(render_ctx_->getDevice(), buffer_, nullptr);
//}
}
void VKE::InternalBuffer::reset(RenderContext* render_ctx) {
if (has_been_allocated_) {
vkFreeMemory(render_ctx->getDevice(), buffer_memory_, nullptr);
has_been_allocated_ = false;
}
if (has_been_initialised_) {
vkDestroyBuffer(render_ctx->getDevice(), buffer_, nullptr);
has_been_initialised_ = false;
}
in_use_ = false;
render_ctx_ = nullptr;
buffer_ = VK_NULL_HANDLE;
buffer_memory_ = VK_NULL_HANDLE;
uniform_desc_set_ = VK_NULL_HANDLE;
element_count_ = 0;
element_size_ = 0;
buffer_type_ = BufferType_MAX;
mem_properties_ = VkMemoryPropertyFlags();
has_been_initialised_ = false;
has_been_allocated_ = false;
}
void VKE::InternalBuffer::init(RenderContext* render_ctx, uint32 element_size, size_t element_count, BufferType buffer_type) {
if (render_ctx == nullptr) return; //ERROR
if (element_size == 0); //WARN ???
if (element_count == 0); //WARN ???
render_ctx_ = render_ctx;
element_size_ = element_size;
element_count_ = static_cast<uint32>(element_count);
buffer_type_ = buffer_type;
VkBufferUsageFlags buffer_usage;
switch (buffer_type_) {
case(VKE::BufferType_Staging):
mem_properties_ = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
buffer_usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT;
break;
case(VKE::BufferType_Vertex):
mem_properties_ = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
buffer_usage = VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USAGE_TRANSFER_SRC_BIT;
break;
case(VKE::BufferType_Index):
mem_properties_ = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
buffer_usage = VK_BUFFER_USAGE_INDEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USAGE_TRANSFER_SRC_BIT;
break;
case(VKE::BufferType_Uniform):
case(VKE::BufferType_ExternalUniform):
mem_properties_ = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
buffer_usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT;
break;
default:
throw std::runtime_error("VKE::InternalBuffer::init - Invalid / Unsupported BufferType");
}
VkBufferCreateInfo bufferInfo = {};
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
bufferInfo.size = element_size_ * element_count_;
bufferInfo.usage = buffer_usage;
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
if (vkCreateBuffer(render_ctx_->getDevice(), &bufferInfo, nullptr, &buffer_) != VK_SUCCESS) {
throw std::runtime_error("failed to create vertex buffer!");
}
has_been_initialised_ = true;
}
void VKE::InternalBuffer::uploadData(void* data) {
if (render_ctx_->getDevice() == VK_NULL_HANDLE) return; //ERROR
if (!has_been_initialised_) return; //ERROR
if (!has_been_allocated_) {
VkMemoryRequirements memRequirements = {};
vkGetBufferMemoryRequirements(render_ctx_->getDevice(), buffer_, &memRequirements);
VkMemoryAllocateInfo allocInfo = {};
allocInfo.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO;
allocInfo.allocationSize = memRequirements.size;
allocInfo.memoryTypeIndex = render_ctx_->findMemoryType(
memRequirements.memoryTypeBits,
mem_properties_);
if (vkAllocateMemory(render_ctx_->getDevice(), &allocInfo, nullptr, &buffer_memory_) != VK_SUCCESS) {
throw std::runtime_error("failed to allocate vertex buffer memory!");
}
vkBindBufferMemory(render_ctx_->getDevice(), buffer_, buffer_memory_, 0);
if (buffer_type_ == VKE::BufferType_Uniform) {
VkDescriptorSetAllocateInfo alloc_info = render_ctx_->getDescriptorAllocationInfo(VKE::DescriptorType_Matrices);
vkAllocateDescriptorSets(render_ctx_->getDevice(), &alloc_info, &uniform_desc_set_);
render_ctx_->UpdateDescriptor(uniform_desc_set_, VKE::DescriptorType_Matrices, (void*)&buffer_);
}
has_been_allocated_ = true;
}
if (data == nullptr || buffer_type_ == BufferType_Staging) return; // Data to be uploaded later
if (buffer_type_ == BufferType_Uniform || buffer_type_ == BufferType_ExternalUniform) {
void* mapped_data = nullptr;
vkMapMemory(render_ctx_->getDevice(), buffer_memory_, 0, VK_WHOLE_SIZE, 0, &mapped_data);
memcpy(mapped_data, data, element_size_ * element_count_);
vkUnmapMemory(render_ctx_->getDevice(), buffer_memory_);
} else {
render_ctx_->uploadToStaging(data, element_size_ * element_count_);
render_ctx_->copyBuffer(render_ctx_->getStagingBuffer(), *this, element_count_ * element_size_);
render_ctx_->clearStaging();
}
} | 32.36875 | 126 | 0.777949 | JorgeVirgos |
9d0fbd5e941c1d6dbd063972b8c56d822ef1f118 | 18,668 | cpp | C++ | coast/wdbase/Context.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/wdbase/Context.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/wdbase/Context.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.
*/
#include "Context.h"
#include "Session.h"
#include "Server.h"
#include "Role.h"
#include "Page.h"
#include "LocalizationUtils.h"
#include "LocalizedStrings.h"
#include "Socket.h"
#include <typeinfo>
#include <cstring>
const String Context::DebugStoreSeparator("<!-- separator 54353021345321784456 -->");
Context::Context() :
fSession(0), fSessionStoreGlobal(Anything::ArrayMarker(), coast::storage::Global()), fSessionStoreCurrent(Anything::ArrayMarker(),
coast::storage::Current()), fStackSz(0), fStoreSz(0), fStore(Anything::ArrayMarker()), fRequest(Anything::ArrayMarker()), fSocket(0),
fCopySessionStore(false) {
InitTmpStore();
}
Context::Context(Anything &request) :
fSession(0), fSessionStoreGlobal(Anything::ArrayMarker(), coast::storage::Global()), fSessionStoreCurrent(Anything::ArrayMarker(),
coast::storage::Current()), fStackSz(0), fStoreSz(0), fStore(Anything::ArrayMarker()), fRequest(request), fSocket(0),
fCopySessionStore(false) {
InitTmpStore();
fLanguage = LocalizationUtils::FindLanguageKey(*this, Lookup("Language", "E"));
}
Context::Context(Socket *socket) :
fSession(0), fSessionStoreGlobal(Anything::ArrayMarker(), coast::storage::Global()), fSessionStoreCurrent(Anything::ArrayMarker(),
coast::storage::Current()), fStackSz(0), fStoreSz(0), fStore(Anything::ArrayMarker()), fRequest(Anything::ArrayMarker()), fSocket(
socket), fCopySessionStore(false) {
// the arguments we get for this request
if (fSocket) {
fRequest["ClientInfo"] = fSocket->ClientInfo();
}
InitTmpStore();
fLanguage = LocalizationUtils::FindLanguageKey(*this, Lookup("Language", "E"));
}
Context::Context(const Anything &env, const Anything &query, Server *server, Session *s, Role *role, Page *page) :
fSession(0), // don't initialize because InitSession would interpret it as same session and not increment
// session's ref count while the destructor decrements it. Init(s) does the needed intitialization
// while InitSession handles the refcounting correctly.
fSessionStoreGlobal(Anything::ArrayMarker(), coast::storage::Global()), fSessionStoreCurrent(Anything::ArrayMarker(),
coast::storage::Current()), fStackSz(0), fStoreSz(0), fStore(Anything::ArrayMarker()), fSocket(0),
fCopySessionStore(false) {
InitSession(s);
InitTmpStore();
fRequest["env"] = env;
fRequest["query"] = query;
Push("Server", server);
Push("Role", role);
Push("Page", page);
fLanguage = LocalizationUtils::FindLanguageKey(*this, Lookup("Language", "E"));
}
Context::~Context() {
if (fSession) {
LockSession();
// SOP: should we resynch store again, or should PutInStore take care?
fSession->UnRef();
fSession->fMutex.Unlock();
}
}
void Context::InitSession(Session *s) {
// Make a copy of the session store if fCopySessionStore is on. Reference the session to
// inhibit premature destruction of session object.
StartTrace1(Context.InitSession, String() << (long)(void *)this);
bool sessionIsDifferent = (s != fSession);
ROAnything contextAny;
if (Lookup("Context", contextAny)) {
fCopySessionStore = contextAny["CopySessionStore"].AsBool(false);
}
Trace("CopySessionStore: " << (fCopySessionStore ? "true" : "false"));
Trace("s = " << (long)(void *)s << " fSession = " << (long)(void *)fSession );
Trace("session is " << (sessionIsDifferent ? "" : "not ") << "different");
Session *saveSession = fSession;
if (sessionIsDifferent || fCopySessionStore) {
// first handle pushed session because it might get deleted underway
fSession = s;
if (fSession) {
Trace("new s: About to lock <" << fSession->GetId() << ">");
fSession->fMutex.Lock();
if (sessionIsDifferent) {
fSession->Ref();
Trace("After fSession->Ref() id: [" << fSession->GetId() <<
"] refCount: [" << fSession->GetRefCount() << "]");
}
if (fCopySessionStore) {
fSessionStoreCurrent = fSession->GetStoreGlobal().DeepClone(fSessionStoreCurrent.GetAllocator());
Trace("new s: About to unlock <" << fSession->GetId() << ">");
} else {
fSessionStoreGlobal = fSession->GetStoreGlobal();
}
UnlockSession();
} else {
if (fCopySessionStore) {
fSessionStoreCurrent = Anything(Anything::ArrayMarker(),fSessionStoreCurrent.GetAllocator());
} else {
fSessionStoreGlobal = Anything(Anything::ArrayMarker(),fSessionStoreGlobal.GetAllocator());
}
}
if (saveSession) {
if (sessionIsDifferent) {
// in case the session was used in UnlockSession 'mode', we need to protect the call to UnRef
if (fCopySessionStore) {
Trace("old s: About to lock <" << saveSession->GetId() << ">");
saveSession->fMutex.Lock();
}
saveSession->UnRef();
Trace("After saveSession->UnRef() id: [" << saveSession->GetId() << "] refCount: [" << saveSession->GetRefCount() << "]");
// we need to unlock independently of fUnlockSession value
Trace("old s: About to unlock <" << saveSession->GetId() << ">");
saveSession->fMutex.Unlock();
}
}
// for test cases with no session given, the session store does not survive
}
}
void Context::InitTmpStore() {
Anything tmp = Anything(Anything::ArrayMarker());
Push("tmp", tmp);
}
Session *Context::GetSession() const {
return fSession;
}
const char *Context::GetSessionId() const {
return (fSession) ? fSession->GetId() : 0;
}
void Context::SetServer(Server *server) {
Replace("Server", server);
}
Server *Context::GetServer() const {
return SafeCast(Find("Server"), Server);
}
void Context::SetRole(Role *role) {
Replace("Role", role);
}
Role *Context::GetRole() const {
return SafeCast(Find("Role"), Role);
}
void Context::SetPage(Page *p) {
StatTrace(Context.SetPage, "New Page [" << (p?p->GetName():"null") << "]", coast::storage::Current());
Replace("Page", p);
}
Page *Context::GetPage() const {
return SafeCast(Find("Page"), Page);
}
void Context::SetQuery(const Anything &query) {
fRequest["query"] = query;
}
Anything &Context::GetQuery() {
return fRequest["query"];
}
Anything &Context::GetEnvStore() {
return fRequest["env"];
}
Anything &Context::GetRoleStoreGlobal() {
return GetSessionStore()["RoleStore"];
}
Anything &Context::GetSessionStore() {
StartTrace1(Context.GetSessionStore, "fCopySessionStore: " << ( fCopySessionStore ? "true" : "false") );
return fCopySessionStore ? fSessionStoreCurrent : fSessionStoreGlobal;
}
Anything &Context::GetTmpStore() {
StartTrace(Context.GetTmpStore);
const char *key = "tmp";
long index = -1L;
return IntGetStore(key, index);
}
void Context::CollectLinkState(Anything &a) {
Role *r = GetRole();
if (r) {
r->CollectLinkState(a, *this);
}
}
void Context::DebugStores(const char *msg, std::ostream &reply, bool printAny) {
if (msg) {
reply << "+++++++++++++++++++" << NotNull(msg) << "+++++++++++++++++++++++++\n";
}
Session *s = fSession;
if (s) {
reply << "Session-Nummer: " << s->GetId() << '\n';
reply << "Access-Counter: " << s->GetAccessCounter() << '\n';
reply << "Access-Time: " << s->GetAccessTime() << '\n';
reply << "Ref-Count: " << s->GetRefCount() << '\n';
}
Page *page = GetPage();
if (page) {
String pName;
page->GetName(pName);
reply << "Page: " << pName << '\n';
}
String rName("None");
Role *r = GetRole();
if (r) {
r->GetName(rName);
}
reply << "Role: " << rName << "\n\n";
// show Lookup stack on html page
if (TriggerEnabled(Context.HTMLWDDebug.LookupStack) || printAny) {
reply << "Lookup stack #refs:" << fLookupStack.RefCount() << '\n' << fLookupStack << '\n';
}
// show tmp store on html page
if (TriggerEnabled(Context.HTMLWDDebug.TmpStore) || printAny) {
reply << "Tmp store #refs:" << fStore.RefCount() << '\n' << fStore << '\n';
}
// show session store on html page
if (fSession) {
fSession->HTMLDebugStore(reply);
}
// show request store on html page
if (TriggerEnabled(Context.HTMLWDDebug.EnvStore) || printAny) {
reply << "Request #refs:" << fRequest.RefCount() << '\n' << fRequest << '\n';
}
if (msg) {
reply << "-------------------" << NotNull(msg) << "-------------------------\n";
}
reply.flush();
}
void Context::HTMLDebugStores(std::ostream &reply) {
if (TriggerEnabled(Context.HTMLWDDebug)) {
reply << DebugStoreSeparator;
reply << "<hr>\n<pre>\n";
DebugStores(0, reply);
reply << "</pre>\n";
}
}
Anything &Context::IntGetStore(const char *key, long &index) {
StartTrace1(Context.IntGetStore, "key:<" << NotNull(key) << ">");
TraceAny(fStore, "fStore and size:" << fStoreSz);
index = fStoreSz;
while (index >= 0) {
index = FindIndex(fStore, key, index);
if (index >= 0) {
// matching entry found, check if it is of correct type
if (fStore["Stack"][index].GetType() != AnyObjectType) {
TraceAny(fStore["Stack"][index], "found top element of key [" << key << "] at index:" << index);
return fStore["Stack"][index];
} else {
SYSWARNING("IntGetStore entry at [" << key << "] is not of expected Anything-type!");
}
}
--index;
}
return fEmpty;
}
bool Context::GetStore(const char *key, Anything &result) {
StartTrace1(Context.GetStore, "key:<" << NotNull(key) << ">");
if (key) {
long index = -1;
result = IntGetStore(key, index);
if (index >= 0) {
return true;
}
if (strcmp(key, "Session") == 0) {
result = GetSessionStore();
return true;
}
if (strcmp(key, "Role") == 0) {
result = GetRoleStoreGlobal();
return true;
}
}
Trace("failed");
return false;
}
bool Context::Push(const char *key, LookupInterface *li) {
StartTrace1(Context.Push, "key:<" << NotNull(key) << "> li:&" << (long)li);
if (key && li) {
Trace( "TypeId of given LookupInterface:" << typeid(*li).name());
bool bIsLookupAdapter = ((typeid(*li) == typeid(AnyLookupInterfaceAdapter<Anything> )) || (typeid(*li)
== typeid(AnyLookupInterfaceAdapter<ROAnything> )));
if (bIsLookupAdapter) {
fStore["Keys"].Append(key);
fStore["Stack"].Append((IFAObject *) li);
++fStoreSz;
TraceAny(fStore, "fStore and size:" << fStoreSz);
} else {
fLookupStack["Keys"].Append(key);
fLookupStack["Stack"].Append((IFAObject *) li);
++fStackSz;
TraceAny(fLookupStack, "fLookupStack and size:" << fStackSz);
}
return true;
}
return false;
}
bool Context::Pop(String &key) {
StartTrace(Context.Pop);
if (fStackSz > 0) {
--fStackSz;
key = fLookupStack["Keys"][fStackSz].AsString();
fLookupStack["Stack"].Remove(fStackSz);
fLookupStack["Keys"].Remove(fStackSz);
TraceAny(fLookupStack, "fLookupStack and size:" << fStackSz);
return true;
}
return false;
}
bool Context::Push(const char *key, Anything &store) {
StartTrace1(Context.Push, "key:<" << NotNull(key) << ">");
TraceAny(store, "Store to put:");
if (key && (store.GetType() != AnyNullType)) {
// EnsureArrayImpl is needed to be able to extend existing stack entries by reference
// without this conversion, a problem would arise when a simple value was pushed which got extended by other values
// -> only the simple value would persist
Anything::EnsureArrayImpl(store);
fStore["Keys"].Append(key);
fStore["Stack"].Append(store);
++fStoreSz;
TraceAny(fStore, "fStore and size:" << fStoreSz);
return true;
}
return false;
}
bool Context::PopStore(String &key) {
StartTrace(Context.PopStore);
if (fStoreSz > 1) { // never pop the tmp store at "fStore.tmp:0"
--fStoreSz;
key = fStore["Keys"][fStoreSz].AsString();
fStore["Stack"].Remove(fStoreSz);
fStore["Keys"].Remove(fStoreSz);
TraceAny(fStore, "fStore and size:" << fStoreSz);
return true;
}
return false;
}
void Context::Push(Session *s) {
StartTrace1(Context.Push, "session");
InitSession(s);
}
void Context::PushRequest(const Anything &request) {
StartTrace1(Context.PushRequest, "request");
fRequest = request;
TraceAny(fRequest, "Request: ");
}
LookupInterface *Context::Find(const char *key) const {
StartTrace1(Context.Find, "key:<" << NotNull(key) << ">");
TraceAny(fLookupStack, "fLookupStack and size:" << fStackSz);
long index = FindIndex(fLookupStack, key);
if (index >= 0) {
Trace("found at fLookupStack[Stack][" << index << "]<" << NotNull(key) << ">");
// no Safecast here, because a LookupInterface is not an IFAObject
LookupInterface *li = (LookupInterface *) fLookupStack["Stack"][index].AsIFAObject(0);
return li;
}
Trace("<" << NotNull(key) << "> not found");
return 0;
}
long Context::FindIndex(const Anything &anyStack, const char *key, long lStartIdx) const {
StartTrace1(Context.FindIndex, "key:<" << NotNull(key) << ">");
long result = -1;
if (key) {
long sz = anyStack["Keys"].GetSize();
if (lStartIdx < 0 || lStartIdx > sz) {
lStartIdx = sz;
}
for (long i = lStartIdx; --i >= 0;) {
// if ( anyStack["Keys"][i].AsString().IsEqual(key) )
// another unnice workaround to find some microseconds...
if (strcmp(anyStack["Keys"][i].AsCharPtr(), key) == 0) {
result = i;
break;
}
}
}
return result;
}
long Context::Remove(const char *key) {
StartTrace(Context.Remove);
if (!key) {
return -1;
}
TraceAny(fLookupStack, "fLookupStack and size before:" << fStackSz);
long index = FindIndex(fLookupStack, key);
if (index >= 0) {
fLookupStack["Stack"].Remove(index);
fLookupStack["Keys"].Remove(index);
--fStackSz;
}
TraceAny(fLookupStack, "fLookupStack and size after:" << fStackSz);
return index;
}
void Context::Replace(const char *key, LookupInterface *li) {
StartTrace(Context.Replace);
if (!key || !li) {
return;
}
TraceAny(fLookupStack, "fLookupStack and size before:" << fStackSz);
long index = FindIndex(fLookupStack, key);
if (index >= 0) {
fLookupStack["Stack"][index] = (IFAObject *) li;
} else {
Push(key, li);
}
TraceAny(fLookupStack, "fLookupStack and size after:" << fStackSz);
}
bool Context::DoLookup(const char *key, ROAnything &result, char delim, char indexdelim) const {
StartTrace1(Context.DoLookup, "key:<" << NotNull(key) << ">");
if (LookupStack(key, result, delim, indexdelim) || LookupStores(key, result, delim, indexdelim) || LookupLocalized(key, result, delim,
indexdelim) || LookupObjects(key, result, delim, indexdelim) || LookupRequest(key, result, delim, indexdelim)) {
Trace("found");
return true;
}
Trace("failed");
return false;
}
bool Context::LookupStack(const char *key, ROAnything &result, char delim, char indexdelim) const {
StartTrace1(Context.LookupStack, "key:<" << NotNull(key) << ">");
TraceAny(fStore, "fStore and size:" << fStoreSz);
for (long i = ((ROAnything) fStore)["Stack"].GetSize(); --i >= 0;) {
if (fStore["Stack"][i].GetType() == AnyObjectType) {
LookupInterface *li = (LookupInterface *) fStore["Stack"][i].AsIFAObject(0);
if (li && li->Lookup(key, result, delim, indexdelim)) {
TraceAny(result, "found through LookupInterface at " << fStore["Keys"][i].AsString() << ':' << i << '.' << key );
return true;
}
} else {
if (((ROAnything) fStore)["Stack"][i].LookupPath(result, key, delim, indexdelim)) {
TraceAny(result, "found at " << fStore["Keys"][i].AsString() << ':' << i << '.' << key );
return true;
}
}
}
return false;
}
bool Context::LookupStores(const char *key, ROAnything &result, char delim, char indexdelim) const {
StartTrace1(Context.LookupStores, "key:<" << NotNull(key) << ">");
if (fCopySessionStore) {
if (ROAnything(fSessionStoreCurrent)["RoleStore"].LookupPath(result, key, delim, indexdelim)) {
Trace("found in RoleStore [Current]");
return true;
}
if (ROAnything(fSessionStoreCurrent).LookupPath(result, key, delim, indexdelim)) {
Trace("found in SessionStore [Current]");
return true;
}
} else {
if (ROAnything(fSessionStoreGlobal)["RoleStore"].LookupPath(result, key, delim, indexdelim)) {
Trace("found in RoleStore [Global]");
return true;
}
if (ROAnything(fSessionStoreGlobal).LookupPath(result, key, delim, indexdelim)) {
Trace("found in SessionStore [Global]");
return true;
}
}
Trace("failed");
return false;
}
bool Context::LookupObjects(const char *key, ROAnything &result, char delim, char indexdelim) const {
StartTrace1(Context.LookupObjects, "key:<" << NotNull(key) << ">");
TraceAny(fLookupStack, "fLookupStack and size:" << fStackSz);
for (long i = ((ROAnything) fLookupStack)["Stack"].GetSize(); --i >= 0;) {
if (fLookupStack["Stack"][i].GetType() == AnyObjectType) {
Trace("checking LookupInterface (&" << (long)fLookupStack["Stack"][i].AsIFAObject(0) << ") at " <<
fLookupStack["Keys"][i].AsString() << ':' << i);
LookupInterface *li = (LookupInterface *) fLookupStack["Stack"][i].AsIFAObject(0);
if (li->Lookup(key, result, delim, indexdelim)) {
Trace("value found");
return true;
}
Trace("value not found");
}
}
return false;
}
bool Context::LookupRequest(const char *key, ROAnything &result, char delim, char indexdelim) const {
bool bRet(false);
if (!(bRet = ROAnything(fRequest)["env"].LookupPath(result, key, delim, indexdelim))) {
if (!(bRet = ROAnything(fRequest)["query"].LookupPath(result, key, delim, indexdelim))) {
bRet = ROAnything(fRequest).LookupPath(result, key, delim, indexdelim);
}
} StatTrace(Context.LookupRequest, "key:<" << NotNull(key) << "> " << (bRet ? "" : "not ") << "found", coast::storage::Current());
return bRet;
}
bool Context::LookupLocalized(const char *key, ROAnything &result, char delim, char indexdelim) const {
StartTrace1(Context.LookupLocalized, "key:<" << NotNull(key) << ">");
LocalizedStrings *ls = LocalizedStrings::LocStr();
if (ls && ls->Lookup(key, result, delim, indexdelim)) {
Trace(key << " found in LocalizedStrings");
return true;
}
Trace("failed");
return false;
}
Anything &Context::GetRequest() {
return fRequest;
}
Socket *Context::GetSocket() {
return fSocket;
}
std::iostream *Context::GetStream() {
return fSocket ? fSocket->GetStream() : 0;
}
long Context::GetReadCount() {
return (fSocket) ? fSocket->GetReadCount() : 0;
}
long Context::GetWriteCount() {
return (fSocket) ? fSocket->GetWriteCount() : 0;
}
bool Context::Process(String &token) {
return Action::ExecAction(token, *this, Lookup(token));
}
bool Context::UnlockSession() {
if (fSession && fCopySessionStore && fSession->IsLockedByMe()) {
fSession->fMutex.Unlock();
return true;
}
return false;
}
void Context::LockSession() {
if (fSession && fCopySessionStore) {
fSession->fMutex.Lock();
}
}
| 31.694397 | 136 | 0.662953 | zer0infinity |
9d0fc075e3ff8ae0e68b9d134029148bbde81c92 | 157 | cpp | C++ | 4rth_Sem_c++_backup/SHIT/fre.cpp | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 16 | 2018-11-26T08:39:42.000Z | 2019-05-08T10:09:52.000Z | 4rth_Sem_c++_backup/SHIT/fre.cpp | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 8 | 2020-05-04T06:29:26.000Z | 2022-02-12T05:33:16.000Z | 4rth_Sem_c++_backup/SHIT/fre.cpp | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 5 | 2020-02-11T16:02:21.000Z | 2021-02-05T07:48:30.000Z | #include"iostream.h"
void main()
{
int a,b;
cout<<"input values"<<endl;
cin>>a;
cin>>b;
if(a>b)
cout<<a<<endl;
else
cout<<b<<endl;
}
| 11.214286 | 29 | 0.522293 | SayanGhoshBDA |
9d11c7129658aaf50641bd59e68aa5240983cb0f | 2,819 | cpp | C++ | src/tests/sys/test_fdm_lead.cpp | fe5084/mscsim | 2b0025a9e4bda69b0d83147b1e701375fef437f8 | [
"MIT"
] | 1 | 2020-02-11T08:17:23.000Z | 2020-02-11T08:17:23.000Z | src/tests/sys/test_fdm_lead.cpp | fe5084/mscsim | 2b0025a9e4bda69b0d83147b1e701375fef437f8 | [
"MIT"
] | null | null | null | src/tests/sys/test_fdm_lead.cpp | fe5084/mscsim | 2b0025a9e4bda69b0d83147b1e701375fef437f8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <QString>
#include <QtTest>
#include <fdm/sys/fdm_Lead.h>
////////////////////////////////////////////////////////////////////////////////
#define TIME_STEP 0.1
#define TIME_CONSTANT 0.3
////////////////////////////////////////////////////////////////////////////////
using namespace std;
////////////////////////////////////////////////////////////////////////////////
class LeadTest : public QObject
{
Q_OBJECT
public:
LeadTest();
private:
std::vector< double > _y;
fdm::Lead *_lead;
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
void testUpdate();
};
////////////////////////////////////////////////////////////////////////////////
LeadTest::LeadTest() {}
////////////////////////////////////////////////////////////////////////////////
void LeadTest::initTestCase()
{
_lead = new fdm::Lead( TIME_CONSTANT );
FILE *file = fopen( "../sys/data/test_fdm_lead.bin", "r" );
if ( file )
{
char buffer[4];
while ( fread( buffer, 1, 4, file ) == 4 )
{
float *y = (float*)(buffer);
_y.push_back( *y );
}
fclose( file );
}
else
{
QFAIL( "Cannot open file" );
}
}
////////////////////////////////////////////////////////////////////////////////
void LeadTest::cleanupTestCase()
{
if ( _lead ) delete _lead;
_lead = 0;
}
////////////////////////////////////////////////////////////////////////////////
void LeadTest::testUpdate()
{
double t = 0.0;
double y = 0.0;
double u_prev = 0.0;
double y_prev = 0.0;
for ( unsigned int i = 0; i < _y.size(); i++ )
{
//double u = sin( t );
int steps = 10;
for ( int j = 0; j < steps; j++ )
{
double dt = TIME_STEP / (double)steps;
double tt = t + (double)j * dt;
double u = sin( tt );
_lead->update( u, dt );
y = _lead->getValue();
//std::cout << sin( t ) << " " << sin( tt ) << " y= " << y << std::endl;
if ( 0 )
{
double c1 = 1.0 / TIME_CONSTANT;
double denom = 2.0 + dt * c1;
double ca = dt * c1 / denom;
double cb = ( 2.0 - dt * c1 ) / denom;
y = ( u + u_prev ) * ca + y_prev * cb;
u_prev = u;
y_prev = y;
}
}
cout << y << " " << _y.at( i ) << endl;
QVERIFY2( fabs( y - _y.at( i ) ) < 2.0e-2, "Failure" );
t += TIME_STEP;
}
}
////////////////////////////////////////////////////////////////////////////////
QTEST_APPLESS_MAIN(LeadTest)
////////////////////////////////////////////////////////////////////////////////
#include "test_fdm_lead.moc"
| 21.037313 | 84 | 0.346222 | fe5084 |
9d12c26c9dd7a6697c812fa6a6b0019a8217616a | 824 | cpp | C++ | code/data_structures/src/array/1d/operation/firstDuplicate.cpp | baesparza/dataStructuresAndAlgorithms | 3d6e5938f8c25e8e51e845a6e2e87df723e3fa2b | [
"MIT"
] | 1 | 2020-03-15T05:39:45.000Z | 2020-03-15T05:39:45.000Z | code/data_structures/src/array/1d/operation/firstDuplicate.cpp | baesparza/dataStructuresAndAlgorithms | 3d6e5938f8c25e8e51e845a6e2e87df723e3fa2b | [
"MIT"
] | null | null | null | code/data_structures/src/array/1d/operation/firstDuplicate.cpp | baesparza/dataStructuresAndAlgorithms | 3d6e5938f8c25e8e51e845a6e2e87df723e3fa2b | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
void print(std::vector<int> &arr) {
std::cout << "Array: {";
for (int j = 0; j < arr.size(); j++) std::cout << arr[j] << ",";
std::cout << "}" << std::endl;
}
int firstDupicate(std::vector<int> a) {
// we create an unordered_map, to check for items with a key "values"; and increase it.
std::unordered_map<int, int> visited ;
// we iterate through the array from 0
for (int i=0; i < a.size(); i++) {
visited[a[i]]++;
// if the value is >= 2 is because it is repeated
if (visited[a[i]] >= 2) {
return a[i];
}
}
return -1;
}
int main() {
std::vector<int> vecA {1776,7,4};
print(vecA);
std::cout << "Result: " << firstDupicate(vecA) << std::endl;
return 0;
}
| 22.27027 | 91 | 0.540049 | baesparza |
9d1593e244d99917a52f7d753a6430ad85377934 | 3,123 | cpp | C++ | src/scheme.cpp | ajacocks/browservice | a4568c8af57d174131290402a248abfea9778109 | [
"MIT"
] | 742 | 2020-06-20T15:01:06.000Z | 2022-03-28T11:23:39.000Z | src/scheme.cpp | ajacocks/browservice | a4568c8af57d174131290402a248abfea9778109 | [
"MIT"
] | 70 | 2020-06-23T00:41:22.000Z | 2022-03-28T04:26:12.000Z | src/scheme.cpp | ajacocks/browservice | a4568c8af57d174131290402a248abfea9778109 | [
"MIT"
] | 25 | 2020-06-21T22:54:00.000Z | 2022-03-12T06:12:01.000Z | #include "scheme.hpp"
#include "bookmarks.hpp"
namespace browservice {
namespace {
class StaticResponseResourceHandler : public CefResourceHandler {
public:
StaticResponseResourceHandler(int status, string statusText, string response) {
status_ = status;
statusText_ = move(statusText);
response_ = move(response);
pos_ = 0;
}
virtual bool Open(
CefRefPtr<CefRequest> request,
bool& handleRequest,
CefRefPtr<CefCallback> callback
) override{
handleRequest = true;
return true;
}
virtual void GetResponseHeaders(
CefRefPtr<CefResponse> response,
int64_t& responseLength,
CefString& redirectUrl
) override{
responseLength = (int64_t)response_.size();
response->SetStatus(status_);
response->SetStatusText(statusText_);
response->SetMimeType("text/html");
response->SetCharset("UTF-8");
}
virtual bool Skip(
int64_t bytesToSkip,
int64_t& bytesSkipped,
CefRefPtr<CefResourceSkipCallback> callback
) override {
int64_t maxSkip = (int64_t)(response_.size() - pos_);
int64_t skipCount = min(bytesToSkip, maxSkip);
REQUIRE(skipCount >= (int64_t)0);
if(skipCount > (int64_t)0) {
bytesSkipped = skipCount;
pos_ += (size_t)skipCount;
return true;
} else {
bytesSkipped = -2;
return false;
}
}
virtual bool Read(
void* dataOut,
int bytesToRead,
int& bytesRead,
CefRefPtr<CefResourceReadCallback> callback
) override {
int64_t maxRead = (int64_t)(response_.size() - pos_);
int readCount = (int)min((int64_t)bytesToRead, maxRead);
REQUIRE(readCount >= 0);
if(readCount > 0) {
bytesRead = readCount;
memcpy(dataOut, response_.data() + pos_, (size_t)readCount);
pos_ += (size_t)readCount;
return true;
} else {
bytesRead = 0;
return false;
}
}
virtual void Cancel() override {
response_.clear();
pos_ = 0;
}
private:
int status_;
string statusText_;
string response_;
size_t pos_;
IMPLEMENT_REFCOUNTING(StaticResponseResourceHandler);
};
}
CefRefPtr<CefResourceHandler> BrowserviceSchemeHandlerFactory::Create(
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
const CefString& scheme_name,
CefRefPtr<CefRequest> request
) {
CEF_REQUIRE_IO_THREAD();
REQUIRE(request);
int status = 404;
string statusText = "Not Found";
string response =
"<!DOCTYPE html>\n<html lang=\"en\"><head><meta charset=\"UTF-8\">"
"<title>404 Not Found</title></head><body><h1>404 Not Found</h1></body></html>\n";
if(request->GetURL() == "browservice:bookmarks") {
status = 200;
statusText = "OK";
response = handleBookmarksRequest(request);
}
return new StaticResponseResourceHandler(status, move(statusText), move(response));
}
}
| 26.466102 | 90 | 0.610631 | ajacocks |
1dd76dd0a4ed3f1b9bdbd966798bdc6157eff3dc | 788 | cpp | C++ | coding-challenges/books/cracking-the-coding-interview/chapter-1/c++/1-1-all-unique-character.cpp | mcqueenjordan/learning_sandbox | ffe739ba3ad7b62938daaa271e9f738c305f4499 | [
"MIT"
] | 1 | 2018-05-12T04:52:21.000Z | 2018-05-12T04:52:21.000Z | coding-challenges/books/cracking-the-coding-interview/chapter-1/c++/1-1-all-unique-character.cpp | mcqueenjordan/learning | ffe739ba3ad7b62938daaa271e9f738c305f4499 | [
"MIT"
] | 1 | 2016-06-03T00:42:17.000Z | 2016-06-07T01:55:33.000Z | coding-challenges/books/cracking-the-coding-interview/chapter-1/c++/1-1-all-unique-character.cpp | mcqueenjordan/learning_sandbox | ffe739ba3ad7b62938daaa271e9f738c305f4499 | [
"MIT"
] | null | null | null | /*
1. Implement an algorithm to determine if a string has all unique characters.
*/
#include <iostream>
#include <map>
#include <string>
bool check_if_unique(std::string& string)
{
std::map<char, bool> checked;
for (char& c : string)
{
if (checked.find(c) != checked.end())
{
return false;
}
checked[c] = true;
}
return true;
}
int main()
{
std::string string;
std::cout << "Enter a string to check its uniqueness: ";
std::getline(std::cin, string);
bool is_unique = check_if_unique(string);
if (is_unique)
{
std::cout << "All chars in string are unique!" << std::endl;;
}
if (!is_unique)
{
std::cout << "String's chars are not all unique!" << std::endl;
}
}
| 17.909091 | 77 | 0.56599 | mcqueenjordan |
1dd88c1c8dfbda9bddbe54970685fccdad9db6e7 | 1,583 | cpp | C++ | src/parser/transform/expression/transform_constant.cpp | Longi94/duckdb | 2debf14528e408841a4bc6f43eb114275a096d4e | [
"MIT"
] | null | null | null | src/parser/transform/expression/transform_constant.cpp | Longi94/duckdb | 2debf14528e408841a4bc6f43eb114275a096d4e | [
"MIT"
] | null | null | null | src/parser/transform/expression/transform_constant.cpp | Longi94/duckdb | 2debf14528e408841a4bc6f43eb114275a096d4e | [
"MIT"
] | null | null | null | #include "duckdb/parser/expression/constant_expression.hpp"
#include "duckdb/parser/transformer.hpp"
#include "duckdb/common/operator/cast_operators.hpp"
using namespace duckdb;
using namespace std;
unique_ptr<ParsedExpression> Transformer::TransformValue(PGValue val) {
switch (val.type) {
case T_PGInteger:
assert(val.val.ival <= numeric_limits<int32_t>::max());
return make_unique<ConstantExpression>(SQLType::INTEGER, Value::INTEGER((int32_t)val.val.ival));
case T_PGBitString: // FIXME: this should actually convert to BLOB
case T_PGString:
return make_unique<ConstantExpression>(SQLType::VARCHAR, Value(string(val.val.str)));
case T_PGFloat: {
bool cast_as_double = false;
for (auto ptr = val.val.str; *ptr; ptr++) {
if (*ptr == '.') {
// found decimal point, cast as double
cast_as_double = true;
break;
}
}
int64_t value;
if (!cast_as_double && TryCast::Operation<const char *, int64_t>(val.val.str, value)) {
// successfully cast to bigint: bigint value
return make_unique<ConstantExpression>(SQLType::BIGINT, Value::BIGINT(value));
} else {
// could not cast to bigint: cast to double
double dbl_value = Cast::Operation<const char *, double>(val.val.str);
return make_unique<ConstantExpression>(SQLType::DOUBLE, Value::DOUBLE(dbl_value));
}
}
case T_PGNull:
return make_unique<ConstantExpression>(SQLType::SQLNULL, Value());
default:
throw NotImplementedException("Value not implemented!");
}
}
unique_ptr<ParsedExpression> Transformer::TransformConstant(PGAConst *c) {
return TransformValue(c->val);
}
| 35.177778 | 98 | 0.734049 | Longi94 |
1dd9ac91774a3a9b97470b2ae50168a1e75a4c8a | 1,844 | cc | C++ | testing/variable_storage/OutputTrial.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | testing/variable_storage/OutputTrial.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | testing/variable_storage/OutputTrial.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include "Input_Reader.h"
#include "Cell_Data.h"
#include "Fem_Quadrature.h"
#include "Angular_Quadrature.h"
#include "Quadrule_New.h"
#include "Materials.h"
#include "Intensity_Data.h"
#include "Temperature_Data.h"
#include "Intensity_Moment_Data.h"
#include "Output_Generator.h"
#include "Dark_Arts_Exception.h"
int main(int argc, char** argv)
{
int val = 0;
Input_Reader input_reader;
try
{
input_reader.read_xml(argv[1]);
}
catch(const Dark_Arts_Exception& da_exception )
{
da_exception.message() ;
}
std::cout << "Input File Read" << std::endl;
Quadrule_New quad_fun;
Fem_Quadrature fem_quadrature( input_reader , quad_fun);
Cell_Data cell_data( input_reader );
Angular_Quadrature angular_quadrature( input_reader , quad_fun );
Materials materials( input_reader, fem_quadrature , cell_data, angular_quadrature);
Intensity_Data intensity_old( cell_data, angular_quadrature, fem_quadrature, materials, input_reader);
Temperature_Data temperature_old( fem_quadrature, input_reader, cell_data);
Intensity_Moment_Data phi_ic(cell_data,angular_quadrature, fem_quadrature, intensity_old);
Output_Generator output(angular_quadrature, fem_quadrature, cell_data, input_reader);
try{
output.write_xml( false, 1, temperature_old);
output.write_xml( false, 1, phi_ic);
output.write_xml( false, 1, intensity_old);
output.write_txt( false, 1, phi_ic);
output.write_txt( false, 1, temperature_old);
output.write_txt( false, 1, intensity_old);
}
catch(const Dark_Arts_Exception& da)
{
val = -1;
da.testing_message();
}
// Return 0 if tests passed, somethnig else if failing
return val;
}
| 29.269841 | 105 | 0.707701 | pgmaginot |
1ddcbfb26479e38b4b32149d302543f4415c393b | 8,890 | cpp | C++ | Nacro/SDK/FN_StatsListItemWIdget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_StatsListItemWIdget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_StatsListItemWIdget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function StatsListItemWIdget.StatsListItemWIdget_C.SetTextAndBorderHighlight
// (Public, BlueprintCallable, BlueprintEvent)
// Parameters:
// bool bHightlight (Parm, ZeroConstructor, IsPlainOldData)
void UStatsListItemWIdget_C::SetTextAndBorderHighlight(bool bHightlight)
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.SetTextAndBorderHighlight");
UStatsListItemWIdget_C_SetTextAndBorderHighlight_Params params;
params.bHightlight = bHightlight;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.GetListItemTooltipWidget
// (Public, HasOutParms, HasDefaults, BlueprintCallable, BlueprintEvent, BlueprintPure)
// Parameters:
// class UWidget* ReturnValue (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData)
class UWidget* UStatsListItemWIdget_C::GetListItemTooltipWidget()
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.GetListItemTooltipWidget");
UStatsListItemWIdget_C_GetListItemTooltipWidget_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
return params.ReturnValue;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.SetStatIcon
// (Public, BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FSlateBrush NewParam (Parm)
void UStatsListItemWIdget_C::SetStatIcon(const struct FSlateBrush& NewParam)
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.SetStatIcon");
UStatsListItemWIdget_C_SetStatIcon_Params params;
params.NewParam = NewParam;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateBuffArrows
// (Public, HasDefaults, BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FFortDisplayAttribute CurrentAttribute (Parm)
void UStatsListItemWIdget_C::UpdateBuffArrows(const struct FFortDisplayAttribute& CurrentAttribute)
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateBuffArrows");
UStatsListItemWIdget_C_UpdateBuffArrows_Params params;
params.CurrentAttribute = CurrentAttribute;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateBasicPairLabel
// (Public, HasDefaults, BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FFortDisplayAttribute CurrentAttribute (Parm)
void UStatsListItemWIdget_C::UpdateBasicPairLabel(const struct FFortDisplayAttribute& CurrentAttribute)
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateBasicPairLabel");
UStatsListItemWIdget_C_UpdateBasicPairLabel_Params params;
params.CurrentAttribute = CurrentAttribute;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateValueText
// (Public, BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FFortDisplayAttribute CurrentAttribute (Parm)
void UStatsListItemWIdget_C::UpdateValueText(const struct FFortDisplayAttribute& CurrentAttribute)
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateValueText");
UStatsListItemWIdget_C_UpdateValueText_Params params;
params.CurrentAttribute = CurrentAttribute;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateType
// (Public, BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FFortDisplayAttribute CurrentAttribute (Parm)
void UStatsListItemWIdget_C::UpdateType(const struct FFortDisplayAttribute& CurrentAttribute)
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateType");
UStatsListItemWIdget_C_UpdateType_Params params;
params.CurrentAttribute = CurrentAttribute;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateColors
// (Public, HasDefaults, BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FFortDisplayAttribute CurrentAttribute (Parm)
void UStatsListItemWIdget_C::UpdateColors(const struct FFortDisplayAttribute& CurrentAttribute)
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.UpdateColors");
UStatsListItemWIdget_C_UpdateColors_Params params;
params.CurrentAttribute = CurrentAttribute;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.Update
// (Public, HasDefaults, BlueprintCallable, BlueprintEvent)
void UStatsListItemWIdget_C::Update()
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.Update");
UStatsListItemWIdget_C_Update_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.ValueChanged
// (Event, Public, BlueprintEvent)
// Parameters:
// float* Delta (Parm, ZeroConstructor, IsPlainOldData)
void UStatsListItemWIdget_C::ValueChanged(float* Delta)
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.ValueChanged");
UStatsListItemWIdget_C_ValueChanged_Params params;
params.Delta = Delta;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.Construct
// (BlueprintCosmetic, Event, Public, BlueprintEvent)
void UStatsListItemWIdget_C::Construct()
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.Construct");
UStatsListItemWIdget_C_Construct_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.PreviewEnded
// (Event, Public, BlueprintEvent)
void UStatsListItemWIdget_C::PreviewEnded()
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.PreviewEnded");
UStatsListItemWIdget_C_PreviewEnded_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.PreviewStarted
// (Event, Public, BlueprintEvent)
void UStatsListItemWIdget_C::PreviewStarted()
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.PreviewStarted");
UStatsListItemWIdget_C_PreviewStarted_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.DisplayAttributeChanged
// (Event, Public, BlueprintEvent)
void UStatsListItemWIdget_C::DisplayAttributeChanged()
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.DisplayAttributeChanged");
UStatsListItemWIdget_C_DisplayAttributeChanged_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function StatsListItemWIdget.StatsListItemWIdget_C.ExecuteUbergraph_StatsListItemWIdget
// (HasDefaults)
// Parameters:
// int EntryPoint (Parm, ZeroConstructor, IsPlainOldData)
void UStatsListItemWIdget_C::ExecuteUbergraph_StatsListItemWIdget(int EntryPoint)
{
static auto fn = UObject::FindObject<UFunction>("Function StatsListItemWIdget.StatsListItemWIdget_C.ExecuteUbergraph_StatsListItemWIdget");
UStatsListItemWIdget_C_ExecuteUbergraph_StatsListItemWIdget_Params params;
params.EntryPoint = EntryPoint;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| 29.052288 | 140 | 0.771429 | Milxnor |
1ddd60ca8996bfd403ac0bf57c761000b75f66c7 | 1,034 | cpp | C++ | source/WinSimu/SimDrawer.cpp | Borrk/Enzyme-labeled-instrument | a7c8f4459511c774f7e0c4fee1fe05baf1ae2a5f | [
"MIT"
] | null | null | null | source/WinSimu/SimDrawer.cpp | Borrk/Enzyme-labeled-instrument | a7c8f4459511c774f7e0c4fee1fe05baf1ae2a5f | [
"MIT"
] | null | null | null | source/WinSimu/SimDrawer.cpp | Borrk/Enzyme-labeled-instrument | a7c8f4459511c774f7e0c4fee1fe05baf1ae2a5f | [
"MIT"
] | null | null | null | // SimDrawer.cpp: implementation of the SimDrawer class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "enmark.h"
#include "SimDrawer.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
SimDrawer& SimDrawer::Instance()
{
static SimDrawer aInst;
return aInst;
}
SimDrawer::SimDrawer()
{
mHDC = 0;
}
SimDrawer::~SimDrawer()
{
}
void SimDrawer::IBegineDraw()
{
/// do nothing
}
void SimDrawer::IEndDraw()
{
S32 i, j, wpln;
COLORREF clr;
wpln = GetFrameWidth() / 32;
for ( i = 0; i < GetFrameHeight(); i++ )
{
for ( j = 0; j < GetFrameWidth(); j++ )
{
clr = (*(mpVScreen + (i * wpln) + j/32 ) & 0x01 << (32-1-j%32)) ? RGB(255,255,255): RGB(0,0,0);
::SetPixel( mHDC, j, i, clr );
}
}
}
void SimDrawer::SetDC(HDC hDC)
{
mHDC = hDC;
}
| 17.233333 | 98 | 0.499033 | Borrk |
1de0dcbdd721f66a6062de0b20b3b655f3adae9e | 1,417 | hpp | C++ | cu-smallpt/cu-smallpt/src/cuda_tools.hpp | matt77hias/cu-smallpt | 797d785b4112203b97bac1a112c70b5c94377bd6 | [
"MIT"
] | 8 | 2016-12-15T16:22:32.000Z | 2022-03-16T11:59:14.000Z | cu-smallpt/cu-smallpt/src/cuda_tools.hpp | matt77hias/cu-smallpt | 797d785b4112203b97bac1a112c70b5c94377bd6 | [
"MIT"
] | null | null | null | cu-smallpt/cu-smallpt/src/cuda_tools.hpp | matt77hias/cu-smallpt | 797d785b4112203b97bac1a112c70b5c94377bd6 | [
"MIT"
] | 3 | 2019-04-09T18:38:41.000Z | 2021-06-24T17:00:38.000Z | #pragma once
//-----------------------------------------------------------------------------
// CUDA Includes
//-----------------------------------------------------------------------------
#pragma region
#include "cuda_runtime.h"
#pragma endregion
//-----------------------------------------------------------------------------
// System Includes
//-----------------------------------------------------------------------------
#pragma region
#include <cstdio>
#include <cstdlib>
#pragma endregion
//-----------------------------------------------------------------------------
// Declarations and Definitions
//-----------------------------------------------------------------------------
namespace smallpt {
inline void HandleError(cudaError_t err, const char* file, int line) {
if (cudaSuccess != err) {
std::printf("%s in %s at line %d\n",
cudaGetErrorString(err), file, line);
std::exit(EXIT_FAILURE);
}
}
}
//-----------------------------------------------------------------------------
// Defines
//-----------------------------------------------------------------------------
#pragma region
#define HANDLE_ERROR(err) (HandleError( err, __FILE__, __LINE__ ))
#define HANDLE_NULL(a) {if (a == NULL) { \
std::printf( "Host memory failed in %s at line %d\n", __FILE__, __LINE__ ); \
std::exit( EXIT_FAILURE );}}
#pragma endregion | 29.520833 | 80 | 0.352858 | matt77hias |
1de45f91923163182ae96433fab67a0f11027076 | 1,039 | cpp | C++ | spruce/src/system/assets.cpp | gergoszaszvaradi/spruce-engine | 8c6a3d38bc5f120cdfa6dfea0dc2d3b9edd65fcb | [
"MIT"
] | null | null | null | spruce/src/system/assets.cpp | gergoszaszvaradi/spruce-engine | 8c6a3d38bc5f120cdfa6dfea0dc2d3b9edd65fcb | [
"MIT"
] | null | null | null | spruce/src/system/assets.cpp | gergoszaszvaradi/spruce-engine | 8c6a3d38bc5f120cdfa6dfea0dc2d3b9edd65fcb | [
"MIT"
] | null | null | null | #include "sprpch.h"
#include "assets.h"
#include "graphics/texture.h"
#include "graphics/shader.h"
namespace spr {
template<>
std::unordered_map<std::string, Ref<Shader>> AssetManager<Shader>::assets;
std::unordered_map<std::string, Ref<Texture>> AssetManager<Texture>::assets;
template<>
SPR_API static Ref<Shader>& AssetManager<Shader>::Get(const std::string& path)
{
auto it = assets.find(path);
if (it == assets.end()) {
Ref<Shader> shader = Shader::Create();
shader->Bind();
shader->LoadFromFile(path);
return assets.emplace(path, shader).first->second;
}
return it->second;
}
template<>
SPR_API static Ref<Texture>& AssetManager<Texture>::Get(const std::string& path)
{
auto it = assets.find(path);
if (it == assets.end()) {
Ref<Texture> texture = Texture::Create(path);
return assets.emplace(path, texture).first->second;
}
return it->second;
}
} | 28.081081 | 84 | 0.595765 | gergoszaszvaradi |
1de70bc3f4fa01c8da0408e0b97caf8479d3fa09 | 8,894 | cpp | C++ | src/VLightCurveWriter.cpp | GernotMaier/Eventdisplay | b244d65856ddc26ea8ef88af53d2b247e8d5936c | [
"BSD-3-Clause"
] | 11 | 2019-12-10T13:34:46.000Z | 2021-08-24T15:39:35.000Z | src/VLightCurveWriter.cpp | Eventdisplay/Eventdisplay | 01ef380cf53a44f95351960a297a2d4f271a4160 | [
"BSD-3-Clause"
] | 53 | 2019-11-19T13:14:36.000Z | 2022-02-16T14:22:27.000Z | src/VLightCurveWriter.cpp | pivosb/Eventdisplay | 6b299a1d3f77ddb641f98a511a37a5045ddd6b47 | [
"BSD-3-Clause"
] | 3 | 2020-05-07T13:52:46.000Z | 2021-06-25T09:49:21.000Z | /* \class VLightCurveWriter
\brief write / print light curves in different formats
*/
#include "VLightCurveWriter.h"
VLightCurveWriter::VLightCurveWriter()
{
fDebug = false;
}
VLightCurveWriter::VLightCurveWriter( vector< VFluxDataPoint > iDataVector )
{
fDebug = false;
setDataVector( iDataVector );
}
void VLightCurveWriter::setDataVector( vector< VFluxDataPoint > iDataVector )
{
fFluxDataVector = iDataVector;
}
/*
write results (fluxes and upper flux limits per run) into a root file
** very simple function, expand it if needed **
*/
bool VLightCurveWriter::writeDataVectorToRootFile( string i_root_file )
{
TFile fOFILE( i_root_file.c_str(), "RECREATE" );
if( fOFILE.IsZombie() )
{
cout << "VLightCurveWriter::writeResultsToRootFile error opening root file: " << i_root_file << endl;
return false;
}
if( fDebug )
{
cout << "writing data vector to to " << fOFILE.GetName() << endl;
}
int iRun = 0;
double iMJD = 0.;
double iFlux = 0.;
double iFluxE = 0.;
double iSigni = 0.;
double iZe = 0.;
TTree t( "fluxes", "flux calculation results" );
t.Branch( "Run", &iRun, "Run/I" );
t.Branch( "MJD", &iMJD, "MJD/D" );
t.Branch( "Flux", &iFlux, "Flux/D" );
t.Branch( "FluxE", &iFluxE, "FluxE/D" );
t.Branch( "Signi", &iSigni, "Signi/D" );
t.Branch( "Ze", &iZe, "Ze/D" );
for( unsigned int i = 0; i < fFluxDataVector.size(); i++ )
{
iRun = fFluxDataVector[i].fRunNumber;
iMJD = fFluxDataVector[i].fMJD;
iFlux = fFluxDataVector[i].fFlux;
iFluxE = fFluxDataVector[i].fFluxE;
iSigni = fFluxDataVector[i].fSignificance;
iZe = fFluxDataVector[i].fZe;
t.Fill();
}
t.Write();
fOFILE.Close();
return true;
}
/*
write fluxes to a simple ascii file
*/
bool VLightCurveWriter::writeASCIIt_SimpleLongTable( string ASCIIFile, double iMultiplier )
{
ofstream is;
is.open( ASCIIFile.c_str() );
if( !is )
{
cout << "error opening " << ASCIIFile << endl;
return false;
}
cout << "writing flux data vector to ascii file: " << ASCIIFile << endl;
cout << endl;
for( unsigned int i = 0; i < fFluxDataVector.size(); i++ )
{
is << setprecision( 3 ) << fixed << setw( 9 ) << fFluxDataVector[i].fMJD << "\t";
is << setprecision( 3 ) << scientific << fFluxDataVector[i].fFlux* iMultiplier << "\t";
is << setprecision( 3 ) << scientific << fFluxDataVector[i].fFluxCI_lo_1sigma* iMultiplier << "\t";
is << setprecision( 3 ) << scientific << fFluxDataVector[i].fFluxCI_up_1sigma* iMultiplier << endl;
}
is.close();
return true;
}
/*
write results as a simple latex long table
*/
bool VLightCurveWriter::writeTexFormat_SimpleLongTable( string iTexFile, double iMultiplier )
{
ofstream is;
is.open( iTexFile.c_str() );
if( !is )
{
cout << "error opening " << iTexFile << endl;
return false;
}
cout << "writing flux data vector to tex file: " << iTexFile << endl;
cout << endl;
is << "\\documentclass[a4paper]{article}" << endl;
is << "\\usepackage{longtable}" << endl;
is << "\\usepackage{lscape}" << endl;
is << "\\begin{document}" << endl;
is << endl;
is << "\\begin{longtable}{c|c}" << endl;
is << "MJD \\\\" << endl;
is << "Flux \\\\" << endl;
is << "\\hline" << endl;
is << "\\hline" << endl;
for( unsigned int i = 0; i < fFluxDataVector.size(); i++ )
{
is << fixed << setw( 11 ) << fFluxDataVector[i].fMJD << " & ";
is << setprecision( 3 ) << scientific << fFluxDataVector[i].fFlux* iMultiplier;
is << "$\\pm$" << setprecision( 3 ) << fFluxDataVector[i].fFluxCI_1sigma* iMultiplier << "\\\\" << endl;
}
is << "\\end{longtable}" << endl;
is << "\\end{document}" << endl;
is.close();
return true;
}
/*
print a row for a typical latex table
*/
void VLightCurveWriter::writeTexFormat_TexTableRow( double iSigmaMinFluxLimits, double iFluxMultiplicator, bool iPrintPhaseValues )
{
for( unsigned int i = 0; i < fFluxDataVector.size(); i++ )
{
cout << ( int )fFluxDataVector[i].fMJD_Start << " - " << ( int )fFluxDataVector[i].fMJD_Stop << " & ";
if( fFluxDataVector[i].hasOrbitalPhases() && iPrintPhaseValues )
{
cout << setprecision( 2 ) << fFluxDataVector[i].fOrbitalPhase << " & ";
}
cout << "VERITAS & ";
// observing time in minutes
cout << ( int )( fFluxDataVector[i].fExposure_deadTimeCorrected / 60. ) << " & ";
// mean elevation
cout << setprecision( 1 ) << fixed << 90. - fFluxDataVector[i].fZe << " & ";
// on and off events
cout << ( int )fFluxDataVector[i].fNon << " & ";
cout << ( int )fFluxDataVector[i].fNoff << " & ";
// alpha
cout << setprecision( 2 ) << fixed << fFluxDataVector[i].fAlpha << " & ";
// significance
cout << setprecision( 1 ) << fFluxDataVector[i].fSignificance << " & ";
// flux (with error) or upper flux limit)
if( iSigmaMinFluxLimits != 1 )
{
cout << fixed;
}
else
{
cout << scientific;
}
if( fFluxDataVector[i].fSignificance > iSigmaMinFluxLimits && iSigmaMinFluxLimits > -1.e3 )
{
cout << setprecision( 1 ) << fFluxDataVector[i].fFlux* iFluxMultiplicator << " $\\pm$ (";
cout << fFluxDataVector[i].fFluxCI_up_1sigma* iFluxMultiplicator << ",";
cout << fFluxDataVector[i].fFluxCI_lo_1sigma* iFluxMultiplicator << ")";
}
else if( iSigmaMinFluxLimits < -1.e3 )
{
cout << setprecision( 1 ) << fFluxDataVector[i].fFlux* iFluxMultiplicator << " $\\pm$ (";
cout << fFluxDataVector[i].fFluxCI_up_1sigma* iFluxMultiplicator << ",";
cout << fFluxDataVector[i].fFluxCI_lo_1sigma* iFluxMultiplicator << ")";
cout << " $(< " << fFluxDataVector[i].fUL* iFluxMultiplicator << ")";
}
else
{
cout << " $<$ " << fFluxDataVector[i].fUL* iFluxMultiplicator;
}
cout << " \\\\";
cout << endl;
}
}
/*
write a table for the VERITAS wiki
*/
void VLightCurveWriter::writeWikiFormat()
{
double iMinEnergy_TeV = 0.;
bool iHasOrbitalPhases = false;
if( fFluxDataVector.size() > 0 )
{
iMinEnergy_TeV = fFluxDataVector[0].fMinEnergy_TeV;
iHasOrbitalPhases = fFluxDataVector[0].hasOrbitalPhases();
}
cout << "{| border=\"1\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\"" << endl;
cout << "!MJD" << endl;
if( iHasOrbitalPhases )
{
cout << "!Phase" << endl;
}
cout << "!Observation Time [min]" << endl;
cout << "!Significance <math>\\sigma</math>" << endl;
cout << "!Non" << endl;
cout << "!Noff" << endl;
cout << "!Alpha" << endl;
cout << "!Flux (>" << setprecision( 2 ) << iMinEnergy_TeV << " TeV) [cm^-2 s^-1]" << endl;
for( unsigned int i = 0; i < fFluxDataVector.size(); i++ )
{
cout << "|- align=\"center\"" << endl;
cout << "| " << fixed << setprecision( 1 ) << fFluxDataVector[i].fMJD << endl;
if( iHasOrbitalPhases )
{
cout << "| " << setprecision( 2 ) << fFluxDataVector[i].fOrbitalPhase << endl;
}
cout << "| " << setprecision( 1 ) << fFluxDataVector[i].fExposure_deadTimeCorrected / 60. << endl;
cout << "| " << setprecision( 1 ) << fFluxDataVector[i].fSignificance << endl;
cout << "| " << ( int )fFluxDataVector[i].fNon << endl;
cout << "| " << ( int )fFluxDataVector[i].fNoff << endl;
cout << "| " << setprecision( 2 ) << fFluxDataVector[i].fAlpha << endl;
if( fFluxDataVector[i].isSignificantDataPoint() )
{
cout << "| " << setprecision( 1 ) << scientific << fFluxDataVector[i].fFlux;
cout << " (+" << fFluxDataVector[i].fRate_up_1sigma;
cout << " ,-" << fFluxDataVector[i].fRate_lo_1sigma << ")" << endl;
}
else
{
cout << "| " << setprecision( 1 ) << scientific << fFluxDataVector[i].fFluxUL << endl;
}
}
cout << "|}" << fixed << endl;
}
/*
write ligth curve for discrete correlation function (DCF and ZDCF) analysis
*/
void VLightCurveWriter::writeDCFFormat()
{
for( unsigned int i = 0; i < fFluxDataVector.size(); i++ )
{
cout << "DCF\t";
cout << fixed << setprecision( 4 ) << fFluxDataVector[i].fMJD << "\t";
cout << scientific << setprecision( 4 ) << fFluxDataVector[i].fFlux << "\t";
cout << fFluxDataVector[i].fFluxCI_1sigma;
cout << fixed << endl;
}
}
| 31.878136 | 131 | 0.557342 | GernotMaier |
1de7382e867adc85d280d0fe15b2b3b2e6badd67 | 3,447 | hpp | C++ | include/lug/Graphics/Node.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 275 | 2016-10-08T15:33:17.000Z | 2022-03-30T06:11:56.000Z | include/lug/Graphics/Node.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 24 | 2016-09-29T20:51:20.000Z | 2018-05-09T21:41:36.000Z | include/lug/Graphics/Node.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 37 | 2017-02-25T05:03:48.000Z | 2021-05-10T19:06:29.000Z | #pragma once
#include <memory>
#include <vector>
#include <lug/Graphics/Export.hpp>
#include <lug/Math/Matrix.hpp>
#include <lug/Math/Quaternion.hpp>
#include <lug/Math/Vector.hpp>
namespace lug {
namespace Graphics {
class LUG_GRAPHICS_API Node {
public:
enum class TransformSpace : uint8_t {
Local,
Parent,
World
};
public:
Node(const std::string& name);
Node(const Node&) = delete;
Node(Node&&) = delete;
Node& operator=(const Node&) = delete;
Node& operator=(Node&&) = delete;
virtual ~Node() = default;
void setParent(Node *parent);
Node* getParent() const;
const std::string& getName() const;
Node* getNode(const std::string& name);
const Node* getNode(const std::string& name) const;
const Math::Vec3f& getAbsolutePosition();
const Math::Quatf& getAbsoluteRotation();
const Math::Vec3f& getAbsoluteScale();
const Math::Mat4x4f& getTransform();
const std::vector<Node*>& getChildren() const;
void attachChild(Node& child);
void translate(const Math::Vec3f& direction, TransformSpace space = TransformSpace::Local);
void rotate(float angle, const Math::Vec3f& axis, TransformSpace space = TransformSpace::Local);
void rotate(const Math::Quatf& quat, TransformSpace space = TransformSpace::Local);
void scale(const Math::Vec3f& scale);
void setPosition(const Math::Vec3f& position, TransformSpace space = TransformSpace::Local);
void setRotation(float angle, const Math::Vec3f& axis, TransformSpace space = TransformSpace::Local);
void setRotation(const Math::Quatf& rotation, TransformSpace space = TransformSpace::Local);
/**
* @brief Rotates the node according to the direction given in parameter
*
* @param[in] spaceTargetDirection The direction we want the local direction point to (will be normalized), in local space
* @param[in] localDirectionVector The local direction vector
* @param[in] localUpVector The local up vector
* @param[in] space The space, defaults to local
*/
void setDirection(const Math::Vec3f& spaceTargetDirection, const Math::Vec3f& localDirectionVector, const Math::Vec3f& localUpVector, TransformSpace space = TransformSpace::Local);
/**
* @brief Rotates the node in order to look at the target position
*
* @param[in] targetPosition The target position
* @param[in] localDirectionVector The local direction vector
* @param[in] localUpVector The local up vector
* @param[in] space The space, defaults to local
*/
void lookAt(const Math::Vec3f& targetPosition, const Math::Vec3f& localDirectionVector, const Math::Vec3f& localUpVector, TransformSpace space = TransformSpace::Local);
virtual void needUpdate();
private:
void update();
protected:
Node* _parent{nullptr};
std::string _name;
std::vector<Node*> _children;
private:
Math::Vec3f _position{Math::Vec3f(0.0f)};
Math::Quatf _rotation{Math::Quatf::identity()};
Math::Vec3f _scale{Math::Vec3f(1.0f)};
Math::Vec3f _absolutePosition{Math::Vec3f(0.0f)};
Math::Quatf _absoluteRotation{Math::Quatf::identity()};
Math::Vec3f _absoluteScale{Math::Vec3f(1.0f)};
Math::Mat4x4f _transform{Math::Mat4x4f::identity()};
bool _needUpdate{true};
};
#include <lug/Graphics/Node.inl>
} // Graphics
} // lug
| 32.214953 | 184 | 0.680302 | Lugdunum3D |
1de74e897b773597531a34711f074e03be9ab494 | 1,258 | cpp | C++ | aslam_offline_calibration/kalibr_cpp/src/EuclideanError.cpp | chengfzy/kalibr | fe9705b380b160dc939607135f7d30efa64ea2e9 | [
"BSD-4-Clause"
] | null | null | null | aslam_offline_calibration/kalibr_cpp/src/EuclideanError.cpp | chengfzy/kalibr | fe9705b380b160dc939607135f7d30efa64ea2e9 | [
"BSD-4-Clause"
] | null | null | null | aslam_offline_calibration/kalibr_cpp/src/EuclideanError.cpp | chengfzy/kalibr | fe9705b380b160dc939607135f7d30efa64ea2e9 | [
"BSD-4-Clause"
] | null | null | null | #include <kalibr_errorterms/EuclideanError.hpp>
namespace kalibr_errorterms {
EuclideanError::EuclideanError(const Eigen::Vector3d& measurement, const Eigen::Matrix3d invR,
const aslam::backend::EuclideanExpression& predicted_measurement)
: _measurement(measurement), _predictedMeasurement(predicted_measurement) {
setInvR(invR);
aslam::backend::DesignVariable::set_t dvs;
_predictedMeasurement.getDesignVariables(dvs);
setDesignVariablesIterator(dvs.begin(), dvs.end());
}
/// \brief evaluate the error term and return the weighted squared error e^T invR e
double EuclideanError::evaluateErrorImplementation() {
setError(_predictedMeasurement.toEuclidean() - _measurement);
return evaluateChiSquaredError();
}
/// \brief evaluate the jacobian
void EuclideanError::evaluateJacobiansImplementation(aslam::backend::JacobianContainer& _jacobians) const {
_predictedMeasurement.evaluateJacobians(_jacobians);
}
/// \brief return predicted measurement
Eigen::Vector3d EuclideanError::getPredictedMeasurement() { return _predictedMeasurement.evaluate(); }
/// \brief return measurement
Eigen::Vector3d EuclideanError::getMeasurement() { return _measurement; }
} // namespace kalibr_errorterms
| 39.3125 | 107 | 0.77504 | chengfzy |
1de79bcf0ec523a4440cdd50b2845e0cd454843e | 546,113 | cpp | C++ | src/main_4100.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | src/main_4100.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | src/main_4100.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.CAPI/Oculus.Platform.ovrKeyValuePair
#include "Oculus/Platform/CAPI.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.String key_
::StringW& Oculus::Platform::CAPI::ovrKeyValuePair::dyn_key_() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrKeyValuePair::dyn_key_");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "key_"))->offset;
return *reinterpret_cast<::StringW*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private Oculus.Platform.KeyValuePairType valueType_
::Oculus::Platform::KeyValuePairType& Oculus::Platform::CAPI::ovrKeyValuePair::dyn_valueType_() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrKeyValuePair::dyn_valueType_");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "valueType_"))->offset;
return *reinterpret_cast<::Oculus::Platform::KeyValuePairType*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.String stringValue_
::StringW& Oculus::Platform::CAPI::ovrKeyValuePair::dyn_stringValue_() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrKeyValuePair::dyn_stringValue_");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "stringValue_"))->offset;
return *reinterpret_cast<::StringW*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 intValue_
int& Oculus::Platform::CAPI::ovrKeyValuePair::dyn_intValue_() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrKeyValuePair::dyn_intValue_");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "intValue_"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Double doubleValue_
double& Oculus::Platform::CAPI::ovrKeyValuePair::dyn_doubleValue_() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrKeyValuePair::dyn_doubleValue_");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "doubleValue_"))->offset;
return *reinterpret_cast<double*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: Oculus.Platform.CAPI/Oculus.Platform.ovrKeyValuePair..ctor
Oculus::Platform::CAPI::ovrKeyValuePair::ovrKeyValuePair(::StringW key, ::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrKeyValuePair::.ctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, ".ctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(key), ::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, key, value);
}
// Autogenerated method: Oculus.Platform.CAPI/Oculus.Platform.ovrKeyValuePair..ctor
Oculus::Platform::CAPI::ovrKeyValuePair::ovrKeyValuePair(::StringW key, int value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrKeyValuePair::.ctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, ".ctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(key), ::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, key, value);
}
// Autogenerated method: Oculus.Platform.CAPI/Oculus.Platform.ovrKeyValuePair..ctor
Oculus::Platform::CAPI::ovrKeyValuePair::ovrKeyValuePair(::StringW key, double value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrKeyValuePair::.ctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, ".ctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(key), ::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, key, value);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.CAPI/Oculus.Platform.ovrMatchmakingCriterion
#include "Oculus/Platform/CAPI_ovrMatchmakingCriterion.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.String key_
::StringW& Oculus::Platform::CAPI::ovrMatchmakingCriterion::dyn_key_() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrMatchmakingCriterion::dyn_key_");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "key_"))->offset;
return *reinterpret_cast<::StringW*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public Oculus.Platform.MatchmakingCriterionImportance importance_
::Oculus::Platform::MatchmakingCriterionImportance& Oculus::Platform::CAPI::ovrMatchmakingCriterion::dyn_importance_() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrMatchmakingCriterion::dyn_importance_");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "importance_"))->offset;
return *reinterpret_cast<::Oculus::Platform::MatchmakingCriterionImportance*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.IntPtr parameterArray
::System::IntPtr& Oculus::Platform::CAPI::ovrMatchmakingCriterion::dyn_parameterArray() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrMatchmakingCriterion::dyn_parameterArray");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "parameterArray"))->offset;
return *reinterpret_cast<::System::IntPtr*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.UInt32 parameterArrayCount
uint& Oculus::Platform::CAPI::ovrMatchmakingCriterion::dyn_parameterArrayCount() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrMatchmakingCriterion::dyn_parameterArrayCount");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "parameterArrayCount"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: Oculus.Platform.CAPI/Oculus.Platform.ovrMatchmakingCriterion..ctor
Oculus::Platform::CAPI::ovrMatchmakingCriterion::ovrMatchmakingCriterion(::StringW key, ::Oculus::Platform::MatchmakingCriterionImportance importance) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::ovrMatchmakingCriterion::.ctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, ".ctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(key), ::il2cpp_utils::ExtractType(importance)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, key, importance);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
// Including type: Oculus.Platform.CAPI/Oculus.Platform.FilterCallback
#include "Oculus/Platform/CAPI_FilterCallback.hpp"
// Including type: System.UIntPtr
#include "System/UIntPtr.hpp"
// Including type: System.IAsyncResult
#include "System/IAsyncResult.hpp"
// Including type: System.AsyncCallback
#include "System/AsyncCallback.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.CAPI/Oculus.Platform.FilterCallback.Invoke
void Oculus::Platform::CAPI::FilterCallback::Invoke(ByRef<::ArrayW<int16_t>> pcmData, ::System::UIntPtr pcmDataLength, int frequency, int numChannels) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::FilterCallback::Invoke");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Invoke", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(pcmData), ::il2cpp_utils::ExtractType(pcmDataLength), ::il2cpp_utils::ExtractType(frequency), ::il2cpp_utils::ExtractType(numChannels)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, byref(pcmData), pcmDataLength, frequency, numChannels);
}
// Autogenerated method: Oculus.Platform.CAPI/Oculus.Platform.FilterCallback.BeginInvoke
::System::IAsyncResult* Oculus::Platform::CAPI::FilterCallback::BeginInvoke(ByRef<::ArrayW<int16_t>> pcmData, ::System::UIntPtr pcmDataLength, int frequency, int numChannels, ::System::AsyncCallback* callback, ::Il2CppObject* object) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::FilterCallback::BeginInvoke");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "BeginInvoke", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(pcmData), ::il2cpp_utils::ExtractType(pcmDataLength), ::il2cpp_utils::ExtractType(frequency), ::il2cpp_utils::ExtractType(numChannels), ::il2cpp_utils::ExtractType(callback), ::il2cpp_utils::ExtractType(object)})));
return ::il2cpp_utils::RunMethodRethrow<::System::IAsyncResult*, false>(this, ___internal__method, byref(pcmData), pcmDataLength, frequency, numChannels, callback, object);
}
// Autogenerated method: Oculus.Platform.CAPI/Oculus.Platform.FilterCallback.EndInvoke
void Oculus::Platform::CAPI::FilterCallback::EndInvoke(::System::IAsyncResult* result) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CAPI::FilterCallback::EndInvoke");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "EndInvoke", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(result)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, result);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.Callback
#include "Oculus/Platform/Callback.hpp"
// Including type: Oculus.Platform.Callback/Oculus.Platform.RequestCallback
#include "Oculus/Platform/Callback_RequestCallback.hpp"
// Including type: Oculus.Platform.Callback/Oculus.Platform.RequestCallback`1
#include "Oculus/Platform/Callback_RequestCallback_1.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
// Including type: Oculus.Platform.Request
#include "Oculus/Platform/Request.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: Oculus.Platform.Message/Oculus.Platform.Callback
#include "Oculus/Platform/Message_Callback.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private System.Collections.Generic.Dictionary`2<System.UInt64,Oculus.Platform.Request> requestIDsToRequests
::System::Collections::Generic::Dictionary_2<uint64_t, ::Oculus::Platform::Request*>* Oculus::Platform::Callback::_get_requestIDsToRequests() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_get_requestIDsToRequests");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<::System::Collections::Generic::Dictionary_2<uint64_t, ::Oculus::Platform::Request*>*>("Oculus.Platform", "Callback", "requestIDsToRequests")));
}
// Autogenerated static field setter
// Set static field: static private System.Collections.Generic.Dictionary`2<System.UInt64,Oculus.Platform.Request> requestIDsToRequests
void Oculus::Platform::Callback::_set_requestIDsToRequests(::System::Collections::Generic::Dictionary_2<uint64_t, ::Oculus::Platform::Request*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_set_requestIDsToRequests");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Callback", "requestIDsToRequests", value));
}
// Autogenerated static field getter
// Get static field: static private System.Collections.Generic.Dictionary`2<Oculus.Platform.Message/Oculus.Platform.MessageType,Oculus.Platform.Callback/Oculus.Platform.RequestCallback> notificationCallbacks
::System::Collections::Generic::Dictionary_2<::Oculus::Platform::Message::MessageType, ::Oculus::Platform::Callback::RequestCallback*>* Oculus::Platform::Callback::_get_notificationCallbacks() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_get_notificationCallbacks");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<::System::Collections::Generic::Dictionary_2<::Oculus::Platform::Message::MessageType, ::Oculus::Platform::Callback::RequestCallback*>*>("Oculus.Platform", "Callback", "notificationCallbacks")));
}
// Autogenerated static field setter
// Set static field: static private System.Collections.Generic.Dictionary`2<Oculus.Platform.Message/Oculus.Platform.MessageType,Oculus.Platform.Callback/Oculus.Platform.RequestCallback> notificationCallbacks
void Oculus::Platform::Callback::_set_notificationCallbacks(::System::Collections::Generic::Dictionary_2<::Oculus::Platform::Message::MessageType, ::Oculus::Platform::Callback::RequestCallback*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_set_notificationCallbacks");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Callback", "notificationCallbacks", value));
}
// Autogenerated static field getter
// Get static field: static private System.Boolean hasRegisteredRoomInviteNotificationHandler
bool Oculus::Platform::Callback::_get_hasRegisteredRoomInviteNotificationHandler() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_get_hasRegisteredRoomInviteNotificationHandler");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<bool>("Oculus.Platform", "Callback", "hasRegisteredRoomInviteNotificationHandler"));
}
// Autogenerated static field setter
// Set static field: static private System.Boolean hasRegisteredRoomInviteNotificationHandler
void Oculus::Platform::Callback::_set_hasRegisteredRoomInviteNotificationHandler(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_set_hasRegisteredRoomInviteNotificationHandler");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Callback", "hasRegisteredRoomInviteNotificationHandler", value));
}
// Autogenerated static field getter
// Get static field: static private System.Collections.Generic.List`1<Oculus.Platform.Message> pendingRoomInviteNotifications
::System::Collections::Generic::List_1<::Oculus::Platform::Message*>* Oculus::Platform::Callback::_get_pendingRoomInviteNotifications() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_get_pendingRoomInviteNotifications");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::System::Collections::Generic::List_1<::Oculus::Platform::Message*>*>("Oculus.Platform", "Callback", "pendingRoomInviteNotifications"));
}
// Autogenerated static field setter
// Set static field: static private System.Collections.Generic.List`1<Oculus.Platform.Message> pendingRoomInviteNotifications
void Oculus::Platform::Callback::_set_pendingRoomInviteNotifications(::System::Collections::Generic::List_1<::Oculus::Platform::Message*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_set_pendingRoomInviteNotifications");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Callback", "pendingRoomInviteNotifications", value));
}
// Autogenerated static field getter
// Get static field: static private System.Boolean hasRegisteredJoinIntentNotificationHandler
bool Oculus::Platform::Callback::_get_hasRegisteredJoinIntentNotificationHandler() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_get_hasRegisteredJoinIntentNotificationHandler");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<bool>("Oculus.Platform", "Callback", "hasRegisteredJoinIntentNotificationHandler"));
}
// Autogenerated static field setter
// Set static field: static private System.Boolean hasRegisteredJoinIntentNotificationHandler
void Oculus::Platform::Callback::_set_hasRegisteredJoinIntentNotificationHandler(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_set_hasRegisteredJoinIntentNotificationHandler");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Callback", "hasRegisteredJoinIntentNotificationHandler", value));
}
// Autogenerated static field getter
// Get static field: static private Oculus.Platform.Message latestPendingJoinIntentNotifications
::Oculus::Platform::Message* Oculus::Platform::Callback::_get_latestPendingJoinIntentNotifications() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_get_latestPendingJoinIntentNotifications");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message*>("Oculus.Platform", "Callback", "latestPendingJoinIntentNotifications"));
}
// Autogenerated static field setter
// Set static field: static private Oculus.Platform.Message latestPendingJoinIntentNotifications
void Oculus::Platform::Callback::_set_latestPendingJoinIntentNotifications(::Oculus::Platform::Message* value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::_set_latestPendingJoinIntentNotifications");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Callback", "latestPendingJoinIntentNotifications", value));
}
// Autogenerated method: Oculus.Platform.Callback..cctor
void Oculus::Platform::Callback::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Callback", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method);
}
// Autogenerated method: Oculus.Platform.Callback.SetNotificationCallback
void Oculus::Platform::Callback::SetNotificationCallback(::Oculus::Platform::Message::MessageType type, ::Oculus::Platform::Message::Callback* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::SetNotificationCallback");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Callback", "SetNotificationCallback", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(type), ::il2cpp_utils::ExtractType(callback)})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method, type, callback);
}
// Autogenerated method: Oculus.Platform.Callback.AddRequest
void Oculus::Platform::Callback::AddRequest(::Oculus::Platform::Request* request) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::AddRequest");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Callback", "AddRequest", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(request)})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method, request);
}
// Autogenerated method: Oculus.Platform.Callback.RunCallbacks
void Oculus::Platform::Callback::RunCallbacks() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::RunCallbacks");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Callback", "RunCallbacks", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method);
}
// Autogenerated method: Oculus.Platform.Callback.RunLimitedCallbacks
void Oculus::Platform::Callback::RunLimitedCallbacks(uint limit) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::RunLimitedCallbacks");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Callback", "RunLimitedCallbacks", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(limit)})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method, limit);
}
// Autogenerated method: Oculus.Platform.Callback.OnApplicationQuit
void Oculus::Platform::Callback::OnApplicationQuit() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::OnApplicationQuit");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Callback", "OnApplicationQuit", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method);
}
// Autogenerated method: Oculus.Platform.Callback.FlushRoomInviteNotificationQueue
void Oculus::Platform::Callback::FlushRoomInviteNotificationQueue() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::FlushRoomInviteNotificationQueue");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Callback", "FlushRoomInviteNotificationQueue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method);
}
// Autogenerated method: Oculus.Platform.Callback.FlushJoinIntentNotificationQueue
void Oculus::Platform::Callback::FlushJoinIntentNotificationQueue() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::FlushJoinIntentNotificationQueue");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Callback", "FlushJoinIntentNotificationQueue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method);
}
// Autogenerated method: Oculus.Platform.Callback.HandleMessage
void Oculus::Platform::Callback::HandleMessage(::Oculus::Platform::Message* msg) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::HandleMessage");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Callback", "HandleMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(msg)})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method, msg);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.Callback/Oculus.Platform.RequestCallback
#include "Oculus/Platform/Callback_RequestCallback.hpp"
// Including type: Oculus.Platform.Message/Oculus.Platform.Callback
#include "Oculus/Platform/Message_Callback.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private Oculus.Platform.Message/Oculus.Platform.Callback messageCallback
::Oculus::Platform::Message::Callback*& Oculus::Platform::Callback::RequestCallback::dyn_messageCallback() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::RequestCallback::dyn_messageCallback");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "messageCallback"))->offset;
return *reinterpret_cast<::Oculus::Platform::Message::Callback**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: Oculus.Platform.Callback/Oculus.Platform.RequestCallback.HandleMessage
void Oculus::Platform::Callback::RequestCallback::HandleMessage(::Oculus::Platform::Message* msg) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Callback::RequestCallback::HandleMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "HandleMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(msg)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, msg);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.CallbackRunner
#include "Oculus/Platform/CallbackRunner.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.Boolean IsPersistantBetweenSceneLoads
bool& Oculus::Platform::CallbackRunner::dyn_IsPersistantBetweenSceneLoads() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CallbackRunner::dyn_IsPersistantBetweenSceneLoads");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "IsPersistantBetweenSceneLoads"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: Oculus.Platform.CallbackRunner.ovr_UnityResetTestPlatform
void Oculus::Platform::CallbackRunner::ovr_UnityResetTestPlatform() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CallbackRunner::ovr_UnityResetTestPlatform");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "CallbackRunner", "ovr_UnityResetTestPlatform", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method);
}
// Autogenerated method: Oculus.Platform.CallbackRunner.Awake
void Oculus::Platform::CallbackRunner::Awake() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CallbackRunner::Awake");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Awake", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.CallbackRunner.Update
void Oculus::Platform::CallbackRunner::Update() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CallbackRunner::Update");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Update", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.CallbackRunner.OnDestroy
void Oculus::Platform::CallbackRunner::OnDestroy() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CallbackRunner::OnDestroy");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnDestroy", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.CallbackRunner.OnApplicationQuit
void Oculus::Platform::CallbackRunner::OnApplicationQuit() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CallbackRunner::OnApplicationQuit");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnApplicationQuit", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.ChallengeCreationType
#include "Oculus/Platform/ChallengeCreationType.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A24FC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeCreationType Unknown
::Oculus::Platform::ChallengeCreationType Oculus::Platform::ChallengeCreationType::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeCreationType::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeCreationType>("Oculus.Platform", "ChallengeCreationType", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeCreationType Unknown
void Oculus::Platform::ChallengeCreationType::_set_Unknown(::Oculus::Platform::ChallengeCreationType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeCreationType::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeCreationType", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A2534
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeCreationType UserCreated
::Oculus::Platform::ChallengeCreationType Oculus::Platform::ChallengeCreationType::_get_UserCreated() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeCreationType::_get_UserCreated");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeCreationType>("Oculus.Platform", "ChallengeCreationType", "UserCreated"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeCreationType UserCreated
void Oculus::Platform::ChallengeCreationType::_set_UserCreated(::Oculus::Platform::ChallengeCreationType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeCreationType::_set_UserCreated");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeCreationType", "UserCreated", value));
}
// [DescriptionAttribute] Offset: 0x5A256C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeCreationType DeveloperCreated
::Oculus::Platform::ChallengeCreationType Oculus::Platform::ChallengeCreationType::_get_DeveloperCreated() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeCreationType::_get_DeveloperCreated");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeCreationType>("Oculus.Platform", "ChallengeCreationType", "DeveloperCreated"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeCreationType DeveloperCreated
void Oculus::Platform::ChallengeCreationType::_set_DeveloperCreated(::Oculus::Platform::ChallengeCreationType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeCreationType::_set_DeveloperCreated");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeCreationType", "DeveloperCreated", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::ChallengeCreationType::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeCreationType::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.ChallengeOptions
#include "Oculus/Platform/ChallengeOptions.hpp"
// Including type: System.DateTime
#include "System/DateTime.hpp"
// Including type: Oculus.Platform.ChallengeViewerFilter
#include "Oculus/Platform/ChallengeViewerFilter.hpp"
// Including type: Oculus.Platform.ChallengeVisibility
#include "Oculus/Platform/ChallengeVisibility.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.IntPtr Handle
::System::IntPtr& Oculus::Platform::ChallengeOptions::dyn_Handle() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::dyn_Handle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Handle"))->offset;
return *reinterpret_cast<::System::IntPtr*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetDescription
void Oculus::Platform::ChallengeOptions::SetDescription(::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetDescription");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetDescription", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetEndDate
void Oculus::Platform::ChallengeOptions::SetEndDate(::System::DateTime value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetEndDate");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetEndDate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetIncludeActiveChallenges
void Oculus::Platform::ChallengeOptions::SetIncludeActiveChallenges(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetIncludeActiveChallenges");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetIncludeActiveChallenges", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetIncludeFutureChallenges
void Oculus::Platform::ChallengeOptions::SetIncludeFutureChallenges(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetIncludeFutureChallenges");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetIncludeFutureChallenges", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetIncludePastChallenges
void Oculus::Platform::ChallengeOptions::SetIncludePastChallenges(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetIncludePastChallenges");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetIncludePastChallenges", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetLeaderboardName
void Oculus::Platform::ChallengeOptions::SetLeaderboardName(::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetLeaderboardName");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetLeaderboardName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetStartDate
void Oculus::Platform::ChallengeOptions::SetStartDate(::System::DateTime value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetStartDate");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetStartDate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetTitle
void Oculus::Platform::ChallengeOptions::SetTitle(::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetTitle");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetTitle", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetViewerFilter
void Oculus::Platform::ChallengeOptions::SetViewerFilter(::Oculus::Platform::ChallengeViewerFilter value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetViewerFilter");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetViewerFilter", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.SetVisibility
void Oculus::Platform::ChallengeOptions::SetVisibility(::Oculus::Platform::ChallengeVisibility value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::SetVisibility");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetVisibility", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.ChallengeOptions.op_Explicit
// ABORTED elsewhere. Oculus::Platform::ChallengeOptions::operator ::System::IntPtr()
// Autogenerated method: Oculus.Platform.ChallengeOptions.Finalize
void Oculus::Platform::ChallengeOptions::Finalize() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeOptions::Finalize");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Finalize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.ChallengeViewerFilter
#include "Oculus/Platform/ChallengeViewerFilter.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A25A4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeViewerFilter Unknown
::Oculus::Platform::ChallengeViewerFilter Oculus::Platform::ChallengeViewerFilter::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeViewerFilter>("Oculus.Platform", "ChallengeViewerFilter", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeViewerFilter Unknown
void Oculus::Platform::ChallengeViewerFilter::_set_Unknown(::Oculus::Platform::ChallengeViewerFilter value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeViewerFilter", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A25DC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeViewerFilter AllVisible
::Oculus::Platform::ChallengeViewerFilter Oculus::Platform::ChallengeViewerFilter::_get_AllVisible() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_get_AllVisible");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeViewerFilter>("Oculus.Platform", "ChallengeViewerFilter", "AllVisible"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeViewerFilter AllVisible
void Oculus::Platform::ChallengeViewerFilter::_set_AllVisible(::Oculus::Platform::ChallengeViewerFilter value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_set_AllVisible");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeViewerFilter", "AllVisible", value));
}
// [DescriptionAttribute] Offset: 0x5A2614
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeViewerFilter Participating
::Oculus::Platform::ChallengeViewerFilter Oculus::Platform::ChallengeViewerFilter::_get_Participating() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_get_Participating");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeViewerFilter>("Oculus.Platform", "ChallengeViewerFilter", "Participating"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeViewerFilter Participating
void Oculus::Platform::ChallengeViewerFilter::_set_Participating(::Oculus::Platform::ChallengeViewerFilter value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_set_Participating");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeViewerFilter", "Participating", value));
}
// [DescriptionAttribute] Offset: 0x5A264C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeViewerFilter Invited
::Oculus::Platform::ChallengeViewerFilter Oculus::Platform::ChallengeViewerFilter::_get_Invited() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_get_Invited");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeViewerFilter>("Oculus.Platform", "ChallengeViewerFilter", "Invited"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeViewerFilter Invited
void Oculus::Platform::ChallengeViewerFilter::_set_Invited(::Oculus::Platform::ChallengeViewerFilter value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_set_Invited");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeViewerFilter", "Invited", value));
}
// [DescriptionAttribute] Offset: 0x5A2684
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeViewerFilter ParticipatingOrInvited
::Oculus::Platform::ChallengeViewerFilter Oculus::Platform::ChallengeViewerFilter::_get_ParticipatingOrInvited() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_get_ParticipatingOrInvited");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeViewerFilter>("Oculus.Platform", "ChallengeViewerFilter", "ParticipatingOrInvited"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeViewerFilter ParticipatingOrInvited
void Oculus::Platform::ChallengeViewerFilter::_set_ParticipatingOrInvited(::Oculus::Platform::ChallengeViewerFilter value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::_set_ParticipatingOrInvited");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeViewerFilter", "ParticipatingOrInvited", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::ChallengeViewerFilter::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeViewerFilter::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.ChallengeVisibility
#include "Oculus/Platform/ChallengeVisibility.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A26BC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeVisibility Unknown
::Oculus::Platform::ChallengeVisibility Oculus::Platform::ChallengeVisibility::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeVisibility::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeVisibility>("Oculus.Platform", "ChallengeVisibility", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeVisibility Unknown
void Oculus::Platform::ChallengeVisibility::_set_Unknown(::Oculus::Platform::ChallengeVisibility value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeVisibility::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeVisibility", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A26F4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeVisibility InviteOnly
::Oculus::Platform::ChallengeVisibility Oculus::Platform::ChallengeVisibility::_get_InviteOnly() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeVisibility::_get_InviteOnly");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeVisibility>("Oculus.Platform", "ChallengeVisibility", "InviteOnly"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeVisibility InviteOnly
void Oculus::Platform::ChallengeVisibility::_set_InviteOnly(::Oculus::Platform::ChallengeVisibility value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeVisibility::_set_InviteOnly");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeVisibility", "InviteOnly", value));
}
// [DescriptionAttribute] Offset: 0x5A272C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeVisibility Public
::Oculus::Platform::ChallengeVisibility Oculus::Platform::ChallengeVisibility::_get_Public() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeVisibility::_get_Public");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeVisibility>("Oculus.Platform", "ChallengeVisibility", "Public"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeVisibility Public
void Oculus::Platform::ChallengeVisibility::_set_Public(::Oculus::Platform::ChallengeVisibility value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeVisibility::_set_Public");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeVisibility", "Public", value));
}
// [DescriptionAttribute] Offset: 0x5A2764
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.ChallengeVisibility Private
::Oculus::Platform::ChallengeVisibility Oculus::Platform::ChallengeVisibility::_get_Private() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeVisibility::_get_Private");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::ChallengeVisibility>("Oculus.Platform", "ChallengeVisibility", "Private"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.ChallengeVisibility Private
void Oculus::Platform::ChallengeVisibility::_set_Private(::Oculus::Platform::ChallengeVisibility value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeVisibility::_set_Private");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "ChallengeVisibility", "Private", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::ChallengeVisibility::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::ChallengeVisibility::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.CloudStorageDataStatus
#include "Oculus/Platform/CloudStorageDataStatus.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A279C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageDataStatus Unknown
::Oculus::Platform::CloudStorageDataStatus Oculus::Platform::CloudStorageDataStatus::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageDataStatus>("Oculus.Platform", "CloudStorageDataStatus", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageDataStatus Unknown
void Oculus::Platform::CloudStorageDataStatus::_set_Unknown(::Oculus::Platform::CloudStorageDataStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageDataStatus", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A27D4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageDataStatus InSync
::Oculus::Platform::CloudStorageDataStatus Oculus::Platform::CloudStorageDataStatus::_get_InSync() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_get_InSync");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageDataStatus>("Oculus.Platform", "CloudStorageDataStatus", "InSync"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageDataStatus InSync
void Oculus::Platform::CloudStorageDataStatus::_set_InSync(::Oculus::Platform::CloudStorageDataStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_set_InSync");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageDataStatus", "InSync", value));
}
// [DescriptionAttribute] Offset: 0x5A280C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageDataStatus NeedsDownload
::Oculus::Platform::CloudStorageDataStatus Oculus::Platform::CloudStorageDataStatus::_get_NeedsDownload() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_get_NeedsDownload");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageDataStatus>("Oculus.Platform", "CloudStorageDataStatus", "NeedsDownload"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageDataStatus NeedsDownload
void Oculus::Platform::CloudStorageDataStatus::_set_NeedsDownload(::Oculus::Platform::CloudStorageDataStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_set_NeedsDownload");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageDataStatus", "NeedsDownload", value));
}
// [DescriptionAttribute] Offset: 0x5A2844
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageDataStatus RemoteDownloading
::Oculus::Platform::CloudStorageDataStatus Oculus::Platform::CloudStorageDataStatus::_get_RemoteDownloading() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_get_RemoteDownloading");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageDataStatus>("Oculus.Platform", "CloudStorageDataStatus", "RemoteDownloading"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageDataStatus RemoteDownloading
void Oculus::Platform::CloudStorageDataStatus::_set_RemoteDownloading(::Oculus::Platform::CloudStorageDataStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_set_RemoteDownloading");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageDataStatus", "RemoteDownloading", value));
}
// [DescriptionAttribute] Offset: 0x5A287C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageDataStatus NeedsUpload
::Oculus::Platform::CloudStorageDataStatus Oculus::Platform::CloudStorageDataStatus::_get_NeedsUpload() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_get_NeedsUpload");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageDataStatus>("Oculus.Platform", "CloudStorageDataStatus", "NeedsUpload"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageDataStatus NeedsUpload
void Oculus::Platform::CloudStorageDataStatus::_set_NeedsUpload(::Oculus::Platform::CloudStorageDataStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_set_NeedsUpload");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageDataStatus", "NeedsUpload", value));
}
// [DescriptionAttribute] Offset: 0x5A28B4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageDataStatus LocalUploading
::Oculus::Platform::CloudStorageDataStatus Oculus::Platform::CloudStorageDataStatus::_get_LocalUploading() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_get_LocalUploading");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageDataStatus>("Oculus.Platform", "CloudStorageDataStatus", "LocalUploading"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageDataStatus LocalUploading
void Oculus::Platform::CloudStorageDataStatus::_set_LocalUploading(::Oculus::Platform::CloudStorageDataStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_set_LocalUploading");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageDataStatus", "LocalUploading", value));
}
// [DescriptionAttribute] Offset: 0x5A28EC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageDataStatus InConflict
::Oculus::Platform::CloudStorageDataStatus Oculus::Platform::CloudStorageDataStatus::_get_InConflict() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_get_InConflict");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageDataStatus>("Oculus.Platform", "CloudStorageDataStatus", "InConflict"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageDataStatus InConflict
void Oculus::Platform::CloudStorageDataStatus::_set_InConflict(::Oculus::Platform::CloudStorageDataStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::_set_InConflict");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageDataStatus", "InConflict", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::CloudStorageDataStatus::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageDataStatus::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.CloudStorageUpdateStatus
#include "Oculus/Platform/CloudStorageUpdateStatus.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A2924
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageUpdateStatus Unknown
::Oculus::Platform::CloudStorageUpdateStatus Oculus::Platform::CloudStorageUpdateStatus::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageUpdateStatus::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageUpdateStatus>("Oculus.Platform", "CloudStorageUpdateStatus", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageUpdateStatus Unknown
void Oculus::Platform::CloudStorageUpdateStatus::_set_Unknown(::Oculus::Platform::CloudStorageUpdateStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageUpdateStatus::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageUpdateStatus", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A295C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageUpdateStatus Ok
::Oculus::Platform::CloudStorageUpdateStatus Oculus::Platform::CloudStorageUpdateStatus::_get_Ok() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageUpdateStatus::_get_Ok");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageUpdateStatus>("Oculus.Platform", "CloudStorageUpdateStatus", "Ok"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageUpdateStatus Ok
void Oculus::Platform::CloudStorageUpdateStatus::_set_Ok(::Oculus::Platform::CloudStorageUpdateStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageUpdateStatus::_set_Ok");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageUpdateStatus", "Ok", value));
}
// [DescriptionAttribute] Offset: 0x5A2994
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageUpdateStatus BetterVersionStored
::Oculus::Platform::CloudStorageUpdateStatus Oculus::Platform::CloudStorageUpdateStatus::_get_BetterVersionStored() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageUpdateStatus::_get_BetterVersionStored");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageUpdateStatus>("Oculus.Platform", "CloudStorageUpdateStatus", "BetterVersionStored"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageUpdateStatus BetterVersionStored
void Oculus::Platform::CloudStorageUpdateStatus::_set_BetterVersionStored(::Oculus::Platform::CloudStorageUpdateStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageUpdateStatus::_set_BetterVersionStored");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageUpdateStatus", "BetterVersionStored", value));
}
// [DescriptionAttribute] Offset: 0x5A29CC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.CloudStorageUpdateStatus ManualMergeRequired
::Oculus::Platform::CloudStorageUpdateStatus Oculus::Platform::CloudStorageUpdateStatus::_get_ManualMergeRequired() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageUpdateStatus::_get_ManualMergeRequired");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::CloudStorageUpdateStatus>("Oculus.Platform", "CloudStorageUpdateStatus", "ManualMergeRequired"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.CloudStorageUpdateStatus ManualMergeRequired
void Oculus::Platform::CloudStorageUpdateStatus::_set_ManualMergeRequired(::Oculus::Platform::CloudStorageUpdateStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageUpdateStatus::_set_ManualMergeRequired");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "CloudStorageUpdateStatus", "ManualMergeRequired", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::CloudStorageUpdateStatus::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::CloudStorageUpdateStatus::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.GroupPresenceOptions
#include "Oculus/Platform/GroupPresenceOptions.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.IntPtr Handle
::System::IntPtr& Oculus::Platform::GroupPresenceOptions::dyn_Handle() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::GroupPresenceOptions::dyn_Handle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Handle"))->offset;
return *reinterpret_cast<::System::IntPtr*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: Oculus.Platform.GroupPresenceOptions.SetDestinationApiName
void Oculus::Platform::GroupPresenceOptions::SetDestinationApiName(::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::GroupPresenceOptions::SetDestinationApiName");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetDestinationApiName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.GroupPresenceOptions.SetIsJoinable
void Oculus::Platform::GroupPresenceOptions::SetIsJoinable(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::GroupPresenceOptions::SetIsJoinable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetIsJoinable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.GroupPresenceOptions.SetLobbySessionId
void Oculus::Platform::GroupPresenceOptions::SetLobbySessionId(::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::GroupPresenceOptions::SetLobbySessionId");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetLobbySessionId", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.GroupPresenceOptions.SetMatchSessionId
void Oculus::Platform::GroupPresenceOptions::SetMatchSessionId(::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::GroupPresenceOptions::SetMatchSessionId");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetMatchSessionId", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.GroupPresenceOptions.op_Explicit
// ABORTED elsewhere. Oculus::Platform::GroupPresenceOptions::operator ::System::IntPtr()
// Autogenerated method: Oculus.Platform.GroupPresenceOptions.Finalize
void Oculus::Platform::GroupPresenceOptions::Finalize() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::GroupPresenceOptions::Finalize");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Finalize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.IMicrophone
#include "Oculus/Platform/IMicrophone.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.IMicrophone.Start
void Oculus::Platform::IMicrophone::Start() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::IMicrophone::Start");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Start", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.IMicrophone.Stop
void Oculus::Platform::IMicrophone::Stop() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::IMicrophone::Stop");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Stop", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.IMicrophone.Update
::ArrayW<float> Oculus::Platform::IMicrophone::Update() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::IMicrophone::Update");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Update", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::ArrayW<float>, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.IVoipPCMSource
#include "Oculus/Platform/IVoipPCMSource.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.IVoipPCMSource.GetPCM
int Oculus::Platform::IVoipPCMSource::GetPCM(::ArrayW<float> dest, int length) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::IVoipPCMSource::GetPCM");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPCM", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(dest), ::il2cpp_utils::ExtractType(length)})));
return ::il2cpp_utils::RunMethodRethrow<int, false>(this, ___internal__method, dest, length);
}
// Autogenerated method: Oculus.Platform.IVoipPCMSource.SetSenderID
void Oculus::Platform::IVoipPCMSource::SetSenderID(uint64_t senderID) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::IVoipPCMSource::SetSenderID");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetSenderID", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(senderID)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, senderID);
}
// Autogenerated method: Oculus.Platform.IVoipPCMSource.Update
void Oculus::Platform::IVoipPCMSource::Update() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::IVoipPCMSource::Update");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Update", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.IVoipPCMSource.PeekSizeElements
int Oculus::Platform::IVoipPCMSource::PeekSizeElements() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::IVoipPCMSource::PeekSizeElements");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "PeekSizeElements", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<int, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.InviteOptions
#include "Oculus/Platform/InviteOptions.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.IntPtr Handle
::System::IntPtr& Oculus::Platform::InviteOptions::dyn_Handle() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::InviteOptions::dyn_Handle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Handle"))->offset;
return *reinterpret_cast<::System::IntPtr*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: Oculus.Platform.InviteOptions.AddSuggestedUser
void Oculus::Platform::InviteOptions::AddSuggestedUser(uint64_t userID) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::InviteOptions::AddSuggestedUser");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddSuggestedUser", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(userID)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, userID);
}
// Autogenerated method: Oculus.Platform.InviteOptions.ClearSuggestedUsers
void Oculus::Platform::InviteOptions::ClearSuggestedUsers() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::InviteOptions::ClearSuggestedUsers");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ClearSuggestedUsers", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.InviteOptions.op_Explicit
// ABORTED elsewhere. Oculus::Platform::InviteOptions::operator ::System::IntPtr()
// Autogenerated method: Oculus.Platform.InviteOptions.Finalize
void Oculus::Platform::InviteOptions::Finalize() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::InviteOptions::Finalize");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Finalize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.KeyValuePairType
#include "Oculus/Platform/KeyValuePairType.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A2A04
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.KeyValuePairType String
::Oculus::Platform::KeyValuePairType Oculus::Platform::KeyValuePairType::_get_String() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::KeyValuePairType::_get_String");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::KeyValuePairType>("Oculus.Platform", "KeyValuePairType", "String"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.KeyValuePairType String
void Oculus::Platform::KeyValuePairType::_set_String(::Oculus::Platform::KeyValuePairType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::KeyValuePairType::_set_String");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "KeyValuePairType", "String", value));
}
// [DescriptionAttribute] Offset: 0x5A2A3C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.KeyValuePairType Int
::Oculus::Platform::KeyValuePairType Oculus::Platform::KeyValuePairType::_get_Int() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::KeyValuePairType::_get_Int");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::KeyValuePairType>("Oculus.Platform", "KeyValuePairType", "Int"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.KeyValuePairType Int
void Oculus::Platform::KeyValuePairType::_set_Int(::Oculus::Platform::KeyValuePairType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::KeyValuePairType::_set_Int");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "KeyValuePairType", "Int", value));
}
// [DescriptionAttribute] Offset: 0x5A2A74
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.KeyValuePairType Double
::Oculus::Platform::KeyValuePairType Oculus::Platform::KeyValuePairType::_get_Double() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::KeyValuePairType::_get_Double");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::KeyValuePairType>("Oculus.Platform", "KeyValuePairType", "Double"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.KeyValuePairType Double
void Oculus::Platform::KeyValuePairType::_set_Double(::Oculus::Platform::KeyValuePairType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::KeyValuePairType::_set_Double");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "KeyValuePairType", "Double", value));
}
// [DescriptionAttribute] Offset: 0x5A2AAC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.KeyValuePairType Unknown
::Oculus::Platform::KeyValuePairType Oculus::Platform::KeyValuePairType::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::KeyValuePairType::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::KeyValuePairType>("Oculus.Platform", "KeyValuePairType", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.KeyValuePairType Unknown
void Oculus::Platform::KeyValuePairType::_set_Unknown(::Oculus::Platform::KeyValuePairType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::KeyValuePairType::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "KeyValuePairType", "Unknown", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::KeyValuePairType::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::KeyValuePairType::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.LaunchResult
#include "Oculus/Platform/LaunchResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A2AE4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchResult Unknown
::Oculus::Platform::LaunchResult Oculus::Platform::LaunchResult::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchResult>("Oculus.Platform", "LaunchResult", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchResult Unknown
void Oculus::Platform::LaunchResult::_set_Unknown(::Oculus::Platform::LaunchResult value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchResult", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A2B1C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchResult Success
::Oculus::Platform::LaunchResult Oculus::Platform::LaunchResult::_get_Success() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_get_Success");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchResult>("Oculus.Platform", "LaunchResult", "Success"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchResult Success
void Oculus::Platform::LaunchResult::_set_Success(::Oculus::Platform::LaunchResult value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_set_Success");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchResult", "Success", value));
}
// [DescriptionAttribute] Offset: 0x5A2B54
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchResult FailedRoomFull
::Oculus::Platform::LaunchResult Oculus::Platform::LaunchResult::_get_FailedRoomFull() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_get_FailedRoomFull");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchResult>("Oculus.Platform", "LaunchResult", "FailedRoomFull"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchResult FailedRoomFull
void Oculus::Platform::LaunchResult::_set_FailedRoomFull(::Oculus::Platform::LaunchResult value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_set_FailedRoomFull");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchResult", "FailedRoomFull", value));
}
// [DescriptionAttribute] Offset: 0x5A2B8C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchResult FailedGameAlreadyStarted
::Oculus::Platform::LaunchResult Oculus::Platform::LaunchResult::_get_FailedGameAlreadyStarted() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_get_FailedGameAlreadyStarted");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchResult>("Oculus.Platform", "LaunchResult", "FailedGameAlreadyStarted"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchResult FailedGameAlreadyStarted
void Oculus::Platform::LaunchResult::_set_FailedGameAlreadyStarted(::Oculus::Platform::LaunchResult value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_set_FailedGameAlreadyStarted");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchResult", "FailedGameAlreadyStarted", value));
}
// [DescriptionAttribute] Offset: 0x5A2BC4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchResult FailedRoomNotFound
::Oculus::Platform::LaunchResult Oculus::Platform::LaunchResult::_get_FailedRoomNotFound() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_get_FailedRoomNotFound");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchResult>("Oculus.Platform", "LaunchResult", "FailedRoomNotFound"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchResult FailedRoomNotFound
void Oculus::Platform::LaunchResult::_set_FailedRoomNotFound(::Oculus::Platform::LaunchResult value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_set_FailedRoomNotFound");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchResult", "FailedRoomNotFound", value));
}
// [DescriptionAttribute] Offset: 0x5A2BFC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchResult FailedUserDeclined
::Oculus::Platform::LaunchResult Oculus::Platform::LaunchResult::_get_FailedUserDeclined() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_get_FailedUserDeclined");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchResult>("Oculus.Platform", "LaunchResult", "FailedUserDeclined"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchResult FailedUserDeclined
void Oculus::Platform::LaunchResult::_set_FailedUserDeclined(::Oculus::Platform::LaunchResult value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_set_FailedUserDeclined");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchResult", "FailedUserDeclined", value));
}
// [DescriptionAttribute] Offset: 0x5A2C34
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchResult FailedOtherReason
::Oculus::Platform::LaunchResult Oculus::Platform::LaunchResult::_get_FailedOtherReason() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_get_FailedOtherReason");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchResult>("Oculus.Platform", "LaunchResult", "FailedOtherReason"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchResult FailedOtherReason
void Oculus::Platform::LaunchResult::_set_FailedOtherReason(::Oculus::Platform::LaunchResult value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::_set_FailedOtherReason");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchResult", "FailedOtherReason", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::LaunchResult::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchResult::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.LaunchType
#include "Oculus/Platform/LaunchType.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A2C6C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchType Unknown
::Oculus::Platform::LaunchType Oculus::Platform::LaunchType::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchType>("Oculus.Platform", "LaunchType", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchType Unknown
void Oculus::Platform::LaunchType::_set_Unknown(::Oculus::Platform::LaunchType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchType", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A2CA4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchType Normal
::Oculus::Platform::LaunchType Oculus::Platform::LaunchType::_get_Normal() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_get_Normal");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchType>("Oculus.Platform", "LaunchType", "Normal"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchType Normal
void Oculus::Platform::LaunchType::_set_Normal(::Oculus::Platform::LaunchType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_set_Normal");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchType", "Normal", value));
}
// [DescriptionAttribute] Offset: 0x5A2CDC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchType Invite
::Oculus::Platform::LaunchType Oculus::Platform::LaunchType::_get_Invite() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_get_Invite");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchType>("Oculus.Platform", "LaunchType", "Invite"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchType Invite
void Oculus::Platform::LaunchType::_set_Invite(::Oculus::Platform::LaunchType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_set_Invite");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchType", "Invite", value));
}
// [DescriptionAttribute] Offset: 0x5A2D14
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchType Coordinated
::Oculus::Platform::LaunchType Oculus::Platform::LaunchType::_get_Coordinated() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_get_Coordinated");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchType>("Oculus.Platform", "LaunchType", "Coordinated"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchType Coordinated
void Oculus::Platform::LaunchType::_set_Coordinated(::Oculus::Platform::LaunchType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_set_Coordinated");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchType", "Coordinated", value));
}
// [DescriptionAttribute] Offset: 0x5A2D4C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LaunchType Deeplink
::Oculus::Platform::LaunchType Oculus::Platform::LaunchType::_get_Deeplink() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_get_Deeplink");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LaunchType>("Oculus.Platform", "LaunchType", "Deeplink"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LaunchType Deeplink
void Oculus::Platform::LaunchType::_set_Deeplink(::Oculus::Platform::LaunchType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::_set_Deeplink");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LaunchType", "Deeplink", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::LaunchType::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LaunchType::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.LeaderboardFilterType
#include "Oculus/Platform/LeaderboardFilterType.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A2D84
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LeaderboardFilterType None
::Oculus::Platform::LeaderboardFilterType Oculus::Platform::LeaderboardFilterType::_get_None() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardFilterType::_get_None");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LeaderboardFilterType>("Oculus.Platform", "LeaderboardFilterType", "None"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LeaderboardFilterType None
void Oculus::Platform::LeaderboardFilterType::_set_None(::Oculus::Platform::LeaderboardFilterType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardFilterType::_set_None");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LeaderboardFilterType", "None", value));
}
// [DescriptionAttribute] Offset: 0x5A2DBC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LeaderboardFilterType Friends
::Oculus::Platform::LeaderboardFilterType Oculus::Platform::LeaderboardFilterType::_get_Friends() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardFilterType::_get_Friends");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LeaderboardFilterType>("Oculus.Platform", "LeaderboardFilterType", "Friends"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LeaderboardFilterType Friends
void Oculus::Platform::LeaderboardFilterType::_set_Friends(::Oculus::Platform::LeaderboardFilterType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardFilterType::_set_Friends");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LeaderboardFilterType", "Friends", value));
}
// [DescriptionAttribute] Offset: 0x5A2DF4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LeaderboardFilterType Unknown
::Oculus::Platform::LeaderboardFilterType Oculus::Platform::LeaderboardFilterType::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardFilterType::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LeaderboardFilterType>("Oculus.Platform", "LeaderboardFilterType", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LeaderboardFilterType Unknown
void Oculus::Platform::LeaderboardFilterType::_set_Unknown(::Oculus::Platform::LeaderboardFilterType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardFilterType::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LeaderboardFilterType", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A2E2C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LeaderboardFilterType UserIds
::Oculus::Platform::LeaderboardFilterType Oculus::Platform::LeaderboardFilterType::_get_UserIds() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardFilterType::_get_UserIds");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LeaderboardFilterType>("Oculus.Platform", "LeaderboardFilterType", "UserIds"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LeaderboardFilterType UserIds
void Oculus::Platform::LeaderboardFilterType::_set_UserIds(::Oculus::Platform::LeaderboardFilterType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardFilterType::_set_UserIds");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LeaderboardFilterType", "UserIds", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::LeaderboardFilterType::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardFilterType::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.LeaderboardStartAt
#include "Oculus/Platform/LeaderboardStartAt.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A2E64
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LeaderboardStartAt Top
::Oculus::Platform::LeaderboardStartAt Oculus::Platform::LeaderboardStartAt::_get_Top() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardStartAt::_get_Top");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LeaderboardStartAt>("Oculus.Platform", "LeaderboardStartAt", "Top"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LeaderboardStartAt Top
void Oculus::Platform::LeaderboardStartAt::_set_Top(::Oculus::Platform::LeaderboardStartAt value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardStartAt::_set_Top");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LeaderboardStartAt", "Top", value));
}
// [DescriptionAttribute] Offset: 0x5A2E9C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LeaderboardStartAt CenteredOnViewer
::Oculus::Platform::LeaderboardStartAt Oculus::Platform::LeaderboardStartAt::_get_CenteredOnViewer() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardStartAt::_get_CenteredOnViewer");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LeaderboardStartAt>("Oculus.Platform", "LeaderboardStartAt", "CenteredOnViewer"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LeaderboardStartAt CenteredOnViewer
void Oculus::Platform::LeaderboardStartAt::_set_CenteredOnViewer(::Oculus::Platform::LeaderboardStartAt value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardStartAt::_set_CenteredOnViewer");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LeaderboardStartAt", "CenteredOnViewer", value));
}
// [DescriptionAttribute] Offset: 0x5A2ED4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LeaderboardStartAt CenteredOnViewerOrTop
::Oculus::Platform::LeaderboardStartAt Oculus::Platform::LeaderboardStartAt::_get_CenteredOnViewerOrTop() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardStartAt::_get_CenteredOnViewerOrTop");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LeaderboardStartAt>("Oculus.Platform", "LeaderboardStartAt", "CenteredOnViewerOrTop"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LeaderboardStartAt CenteredOnViewerOrTop
void Oculus::Platform::LeaderboardStartAt::_set_CenteredOnViewerOrTop(::Oculus::Platform::LeaderboardStartAt value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardStartAt::_set_CenteredOnViewerOrTop");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LeaderboardStartAt", "CenteredOnViewerOrTop", value));
}
// [DescriptionAttribute] Offset: 0x5A2F0C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LeaderboardStartAt Unknown
::Oculus::Platform::LeaderboardStartAt Oculus::Platform::LeaderboardStartAt::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardStartAt::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LeaderboardStartAt>("Oculus.Platform", "LeaderboardStartAt", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LeaderboardStartAt Unknown
void Oculus::Platform::LeaderboardStartAt::_set_Unknown(::Oculus::Platform::LeaderboardStartAt value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardStartAt::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LeaderboardStartAt", "Unknown", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::LeaderboardStartAt::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LeaderboardStartAt::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.LivestreamingAudience
#include "Oculus/Platform/LivestreamingAudience.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A2F44
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingAudience Unknown
::Oculus::Platform::LivestreamingAudience Oculus::Platform::LivestreamingAudience::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingAudience::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingAudience>("Oculus.Platform", "LivestreamingAudience", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingAudience Unknown
void Oculus::Platform::LivestreamingAudience::_set_Unknown(::Oculus::Platform::LivestreamingAudience value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingAudience::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingAudience", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A2F7C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingAudience Public
::Oculus::Platform::LivestreamingAudience Oculus::Platform::LivestreamingAudience::_get_Public() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingAudience::_get_Public");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingAudience>("Oculus.Platform", "LivestreamingAudience", "Public"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingAudience Public
void Oculus::Platform::LivestreamingAudience::_set_Public(::Oculus::Platform::LivestreamingAudience value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingAudience::_set_Public");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingAudience", "Public", value));
}
// [DescriptionAttribute] Offset: 0x5A2FB4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingAudience Friends
::Oculus::Platform::LivestreamingAudience Oculus::Platform::LivestreamingAudience::_get_Friends() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingAudience::_get_Friends");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingAudience>("Oculus.Platform", "LivestreamingAudience", "Friends"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingAudience Friends
void Oculus::Platform::LivestreamingAudience::_set_Friends(::Oculus::Platform::LivestreamingAudience value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingAudience::_set_Friends");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingAudience", "Friends", value));
}
// [DescriptionAttribute] Offset: 0x5A2FEC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingAudience OnlyMe
::Oculus::Platform::LivestreamingAudience Oculus::Platform::LivestreamingAudience::_get_OnlyMe() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingAudience::_get_OnlyMe");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingAudience>("Oculus.Platform", "LivestreamingAudience", "OnlyMe"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingAudience OnlyMe
void Oculus::Platform::LivestreamingAudience::_set_OnlyMe(::Oculus::Platform::LivestreamingAudience value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingAudience::_set_OnlyMe");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingAudience", "OnlyMe", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::LivestreamingAudience::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingAudience::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.LivestreamingMicrophoneStatus
#include "Oculus/Platform/LivestreamingMicrophoneStatus.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A3024
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingMicrophoneStatus Unknown
::Oculus::Platform::LivestreamingMicrophoneStatus Oculus::Platform::LivestreamingMicrophoneStatus::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingMicrophoneStatus::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingMicrophoneStatus>("Oculus.Platform", "LivestreamingMicrophoneStatus", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingMicrophoneStatus Unknown
void Oculus::Platform::LivestreamingMicrophoneStatus::_set_Unknown(::Oculus::Platform::LivestreamingMicrophoneStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingMicrophoneStatus::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingMicrophoneStatus", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A305C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingMicrophoneStatus MicrophoneOn
::Oculus::Platform::LivestreamingMicrophoneStatus Oculus::Platform::LivestreamingMicrophoneStatus::_get_MicrophoneOn() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingMicrophoneStatus::_get_MicrophoneOn");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingMicrophoneStatus>("Oculus.Platform", "LivestreamingMicrophoneStatus", "MicrophoneOn"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingMicrophoneStatus MicrophoneOn
void Oculus::Platform::LivestreamingMicrophoneStatus::_set_MicrophoneOn(::Oculus::Platform::LivestreamingMicrophoneStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingMicrophoneStatus::_set_MicrophoneOn");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingMicrophoneStatus", "MicrophoneOn", value));
}
// [DescriptionAttribute] Offset: 0x5A3094
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingMicrophoneStatus MicrophoneOff
::Oculus::Platform::LivestreamingMicrophoneStatus Oculus::Platform::LivestreamingMicrophoneStatus::_get_MicrophoneOff() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingMicrophoneStatus::_get_MicrophoneOff");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingMicrophoneStatus>("Oculus.Platform", "LivestreamingMicrophoneStatus", "MicrophoneOff"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingMicrophoneStatus MicrophoneOff
void Oculus::Platform::LivestreamingMicrophoneStatus::_set_MicrophoneOff(::Oculus::Platform::LivestreamingMicrophoneStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingMicrophoneStatus::_set_MicrophoneOff");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingMicrophoneStatus", "MicrophoneOff", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::LivestreamingMicrophoneStatus::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingMicrophoneStatus::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.LivestreamingStartStatus
#include "Oculus/Platform/LivestreamingStartStatus.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A30CC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingStartStatus Success
::Oculus::Platform::LivestreamingStartStatus Oculus::Platform::LivestreamingStartStatus::_get_Success() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_get_Success");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingStartStatus>("Oculus.Platform", "LivestreamingStartStatus", "Success"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingStartStatus Success
void Oculus::Platform::LivestreamingStartStatus::_set_Success(::Oculus::Platform::LivestreamingStartStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_set_Success");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingStartStatus", "Success", value));
}
// [DescriptionAttribute] Offset: 0x5A3104
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingStartStatus Unknown
::Oculus::Platform::LivestreamingStartStatus Oculus::Platform::LivestreamingStartStatus::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingStartStatus>("Oculus.Platform", "LivestreamingStartStatus", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingStartStatus Unknown
void Oculus::Platform::LivestreamingStartStatus::_set_Unknown(::Oculus::Platform::LivestreamingStartStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingStartStatus", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A313C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingStartStatus NoPackageSet
::Oculus::Platform::LivestreamingStartStatus Oculus::Platform::LivestreamingStartStatus::_get_NoPackageSet() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_get_NoPackageSet");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingStartStatus>("Oculus.Platform", "LivestreamingStartStatus", "NoPackageSet"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingStartStatus NoPackageSet
void Oculus::Platform::LivestreamingStartStatus::_set_NoPackageSet(::Oculus::Platform::LivestreamingStartStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_set_NoPackageSet");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingStartStatus", "NoPackageSet", value));
}
// [DescriptionAttribute] Offset: 0x5A3174
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingStartStatus NoFbConnect
::Oculus::Platform::LivestreamingStartStatus Oculus::Platform::LivestreamingStartStatus::_get_NoFbConnect() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_get_NoFbConnect");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingStartStatus>("Oculus.Platform", "LivestreamingStartStatus", "NoFbConnect"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingStartStatus NoFbConnect
void Oculus::Platform::LivestreamingStartStatus::_set_NoFbConnect(::Oculus::Platform::LivestreamingStartStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_set_NoFbConnect");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingStartStatus", "NoFbConnect", value));
}
// [DescriptionAttribute] Offset: 0x5A31AC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingStartStatus NoSessionId
::Oculus::Platform::LivestreamingStartStatus Oculus::Platform::LivestreamingStartStatus::_get_NoSessionId() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_get_NoSessionId");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingStartStatus>("Oculus.Platform", "LivestreamingStartStatus", "NoSessionId"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingStartStatus NoSessionId
void Oculus::Platform::LivestreamingStartStatus::_set_NoSessionId(::Oculus::Platform::LivestreamingStartStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_set_NoSessionId");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingStartStatus", "NoSessionId", value));
}
// [DescriptionAttribute] Offset: 0x5A31E4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.LivestreamingStartStatus MissingParameters
::Oculus::Platform::LivestreamingStartStatus Oculus::Platform::LivestreamingStartStatus::_get_MissingParameters() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_get_MissingParameters");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::LivestreamingStartStatus>("Oculus.Platform", "LivestreamingStartStatus", "MissingParameters"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.LivestreamingStartStatus MissingParameters
void Oculus::Platform::LivestreamingStartStatus::_set_MissingParameters(::Oculus::Platform::LivestreamingStartStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::_set_MissingParameters");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "LivestreamingStartStatus", "MissingParameters", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::LivestreamingStartStatus::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::LivestreamingStartStatus::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MatchmakingCriterionImportance
#include "Oculus/Platform/MatchmakingCriterionImportance.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A321C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MatchmakingCriterionImportance Required
::Oculus::Platform::MatchmakingCriterionImportance Oculus::Platform::MatchmakingCriterionImportance::_get_Required() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_get_Required");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MatchmakingCriterionImportance>("Oculus.Platform", "MatchmakingCriterionImportance", "Required"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MatchmakingCriterionImportance Required
void Oculus::Platform::MatchmakingCriterionImportance::_set_Required(::Oculus::Platform::MatchmakingCriterionImportance value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_set_Required");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MatchmakingCriterionImportance", "Required", value));
}
// [DescriptionAttribute] Offset: 0x5A3254
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MatchmakingCriterionImportance High
::Oculus::Platform::MatchmakingCriterionImportance Oculus::Platform::MatchmakingCriterionImportance::_get_High() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_get_High");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MatchmakingCriterionImportance>("Oculus.Platform", "MatchmakingCriterionImportance", "High"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MatchmakingCriterionImportance High
void Oculus::Platform::MatchmakingCriterionImportance::_set_High(::Oculus::Platform::MatchmakingCriterionImportance value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_set_High");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MatchmakingCriterionImportance", "High", value));
}
// [DescriptionAttribute] Offset: 0x5A328C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MatchmakingCriterionImportance Medium
::Oculus::Platform::MatchmakingCriterionImportance Oculus::Platform::MatchmakingCriterionImportance::_get_Medium() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_get_Medium");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MatchmakingCriterionImportance>("Oculus.Platform", "MatchmakingCriterionImportance", "Medium"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MatchmakingCriterionImportance Medium
void Oculus::Platform::MatchmakingCriterionImportance::_set_Medium(::Oculus::Platform::MatchmakingCriterionImportance value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_set_Medium");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MatchmakingCriterionImportance", "Medium", value));
}
// [DescriptionAttribute] Offset: 0x5A32C4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MatchmakingCriterionImportance Low
::Oculus::Platform::MatchmakingCriterionImportance Oculus::Platform::MatchmakingCriterionImportance::_get_Low() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_get_Low");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MatchmakingCriterionImportance>("Oculus.Platform", "MatchmakingCriterionImportance", "Low"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MatchmakingCriterionImportance Low
void Oculus::Platform::MatchmakingCriterionImportance::_set_Low(::Oculus::Platform::MatchmakingCriterionImportance value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_set_Low");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MatchmakingCriterionImportance", "Low", value));
}
// [DescriptionAttribute] Offset: 0x5A32FC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MatchmakingCriterionImportance Unknown
::Oculus::Platform::MatchmakingCriterionImportance Oculus::Platform::MatchmakingCriterionImportance::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MatchmakingCriterionImportance>("Oculus.Platform", "MatchmakingCriterionImportance", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MatchmakingCriterionImportance Unknown
void Oculus::Platform::MatchmakingCriterionImportance::_set_Unknown(::Oculus::Platform::MatchmakingCriterionImportance value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MatchmakingCriterionImportance", "Unknown", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::MatchmakingCriterionImportance::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingCriterionImportance::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MatchmakingOptions
#include "Oculus/Platform/MatchmakingOptions.hpp"
// Including type: Oculus.Platform.RoomJoinPolicy
#include "Oculus/Platform/RoomJoinPolicy.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.IntPtr Handle
::System::IntPtr& Oculus::Platform::MatchmakingOptions::dyn_Handle() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::dyn_Handle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Handle"))->offset;
return *reinterpret_cast<::System::IntPtr*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.SetCreateRoomDataStore
void Oculus::Platform::MatchmakingOptions::SetCreateRoomDataStore(::StringW key, ::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::SetCreateRoomDataStore");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetCreateRoomDataStore", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(key), ::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, key, value);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.ClearCreateRoomDataStore
void Oculus::Platform::MatchmakingOptions::ClearCreateRoomDataStore() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::ClearCreateRoomDataStore");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ClearCreateRoomDataStore", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.SetCreateRoomJoinPolicy
void Oculus::Platform::MatchmakingOptions::SetCreateRoomJoinPolicy(::Oculus::Platform::RoomJoinPolicy value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::SetCreateRoomJoinPolicy");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetCreateRoomJoinPolicy", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.SetCreateRoomMaxUsers
void Oculus::Platform::MatchmakingOptions::SetCreateRoomMaxUsers(uint value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::SetCreateRoomMaxUsers");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetCreateRoomMaxUsers", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.AddEnqueueAdditionalUser
void Oculus::Platform::MatchmakingOptions::AddEnqueueAdditionalUser(uint64_t userID) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::AddEnqueueAdditionalUser");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddEnqueueAdditionalUser", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(userID)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, userID);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.ClearEnqueueAdditionalUsers
void Oculus::Platform::MatchmakingOptions::ClearEnqueueAdditionalUsers() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::ClearEnqueueAdditionalUsers");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ClearEnqueueAdditionalUsers", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.SetEnqueueDataSettings
void Oculus::Platform::MatchmakingOptions::SetEnqueueDataSettings(::StringW key, int value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::SetEnqueueDataSettings");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetEnqueueDataSettings", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(key), ::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, key, value);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.SetEnqueueDataSettings
void Oculus::Platform::MatchmakingOptions::SetEnqueueDataSettings(::StringW key, double value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::SetEnqueueDataSettings");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetEnqueueDataSettings", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(key), ::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, key, value);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.SetEnqueueDataSettings
void Oculus::Platform::MatchmakingOptions::SetEnqueueDataSettings(::StringW key, ::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::SetEnqueueDataSettings");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetEnqueueDataSettings", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(key), ::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, key, value);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.ClearEnqueueDataSettings
void Oculus::Platform::MatchmakingOptions::ClearEnqueueDataSettings() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::ClearEnqueueDataSettings");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ClearEnqueueDataSettings", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.SetEnqueueIsDebug
void Oculus::Platform::MatchmakingOptions::SetEnqueueIsDebug(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::SetEnqueueIsDebug");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetEnqueueIsDebug", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.SetEnqueueQueryKey
void Oculus::Platform::MatchmakingOptions::SetEnqueueQueryKey(::StringW value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::SetEnqueueQueryKey");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetEnqueueQueryKey", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.MatchmakingOptions.op_Explicit
// ABORTED elsewhere. Oculus::Platform::MatchmakingOptions::operator ::System::IntPtr()
// Autogenerated method: Oculus.Platform.MatchmakingOptions.Finalize
void Oculus::Platform::MatchmakingOptions::Finalize() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingOptions::Finalize");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Finalize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MatchmakingStatApproach
#include "Oculus/Platform/MatchmakingStatApproach.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A3334
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MatchmakingStatApproach Unknown
::Oculus::Platform::MatchmakingStatApproach Oculus::Platform::MatchmakingStatApproach::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingStatApproach::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MatchmakingStatApproach>("Oculus.Platform", "MatchmakingStatApproach", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MatchmakingStatApproach Unknown
void Oculus::Platform::MatchmakingStatApproach::_set_Unknown(::Oculus::Platform::MatchmakingStatApproach value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingStatApproach::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MatchmakingStatApproach", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A336C
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MatchmakingStatApproach Trailing
::Oculus::Platform::MatchmakingStatApproach Oculus::Platform::MatchmakingStatApproach::_get_Trailing() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingStatApproach::_get_Trailing");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MatchmakingStatApproach>("Oculus.Platform", "MatchmakingStatApproach", "Trailing"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MatchmakingStatApproach Trailing
void Oculus::Platform::MatchmakingStatApproach::_set_Trailing(::Oculus::Platform::MatchmakingStatApproach value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingStatApproach::_set_Trailing");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MatchmakingStatApproach", "Trailing", value));
}
// [DescriptionAttribute] Offset: 0x5A33A4
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MatchmakingStatApproach Swingy
::Oculus::Platform::MatchmakingStatApproach Oculus::Platform::MatchmakingStatApproach::_get_Swingy() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingStatApproach::_get_Swingy");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MatchmakingStatApproach>("Oculus.Platform", "MatchmakingStatApproach", "Swingy"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MatchmakingStatApproach Swingy
void Oculus::Platform::MatchmakingStatApproach::_set_Swingy(::Oculus::Platform::MatchmakingStatApproach value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingStatApproach::_set_Swingy");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MatchmakingStatApproach", "Swingy", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::MatchmakingStatApproach::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MatchmakingStatApproach::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MediaContentType
#include "Oculus/Platform/MediaContentType.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// [DescriptionAttribute] Offset: 0x5A33DC
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MediaContentType Unknown
::Oculus::Platform::MediaContentType Oculus::Platform::MediaContentType::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MediaContentType::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MediaContentType>("Oculus.Platform", "MediaContentType", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MediaContentType Unknown
void Oculus::Platform::MediaContentType::_set_Unknown(::Oculus::Platform::MediaContentType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MediaContentType::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MediaContentType", "Unknown", value));
}
// [DescriptionAttribute] Offset: 0x5A3414
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.MediaContentType Photo
::Oculus::Platform::MediaContentType Oculus::Platform::MediaContentType::_get_Photo() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MediaContentType::_get_Photo");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::MediaContentType>("Oculus.Platform", "MediaContentType", "Photo"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.MediaContentType Photo
void Oculus::Platform::MediaContentType::_set_Photo(::Oculus::Platform::MediaContentType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MediaContentType::_set_Photo");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "MediaContentType", "Photo", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& Oculus::Platform::MediaContentType::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MediaContentType::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.Message
#include "Oculus/Platform/Message.hpp"
// Including type: Oculus.Platform.Message/Oculus.Platform.Callback
#include "Oculus/Platform/Message_Callback.hpp"
// Including type: Oculus.Platform.Models.Error
#include "Oculus/Platform/Models/Error.hpp"
// Including type: Oculus.Platform.Message/Oculus.Platform.ExtraMessageTypesHandler
#include "Oculus/Platform/Message_ExtraMessageTypesHandler.hpp"
// Including type: Oculus.Platform.Models.PingResult
#include "Oculus/Platform/Models/PingResult.hpp"
// Including type: Oculus.Platform.Models.NetworkingPeer
#include "Oculus/Platform/Models/NetworkingPeer.hpp"
// Including type: Oculus.Platform.Models.HttpTransferUpdate
#include "Oculus/Platform/Models/HttpTransferUpdate.hpp"
// Including type: Oculus.Platform.Models.PlatformInitialize
#include "Oculus/Platform/Models/PlatformInitialize.hpp"
// Including type: Oculus.Platform.Models.AbuseReportRecording
#include "Oculus/Platform/Models/AbuseReportRecording.hpp"
// Including type: Oculus.Platform.Models.AchievementDefinitionList
#include "Oculus/Platform/Models/AchievementDefinitionList.hpp"
// Including type: Oculus.Platform.Models.AchievementProgressList
#include "Oculus/Platform/Models/AchievementProgressList.hpp"
// Including type: Oculus.Platform.Models.AchievementUpdate
#include "Oculus/Platform/Models/AchievementUpdate.hpp"
// Including type: Oculus.Platform.Models.ApplicationInviteList
#include "Oculus/Platform/Models/ApplicationInviteList.hpp"
// Including type: Oculus.Platform.Models.ApplicationVersion
#include "Oculus/Platform/Models/ApplicationVersion.hpp"
// Including type: Oculus.Platform.Models.AssetDetails
#include "Oculus/Platform/Models/AssetDetails.hpp"
// Including type: Oculus.Platform.Models.AssetDetailsList
#include "Oculus/Platform/Models/AssetDetailsList.hpp"
// Including type: Oculus.Platform.Models.AssetFileDeleteResult
#include "Oculus/Platform/Models/AssetFileDeleteResult.hpp"
// Including type: Oculus.Platform.Models.AssetFileDownloadCancelResult
#include "Oculus/Platform/Models/AssetFileDownloadCancelResult.hpp"
// Including type: Oculus.Platform.Models.AssetFileDownloadResult
#include "Oculus/Platform/Models/AssetFileDownloadResult.hpp"
// Including type: Oculus.Platform.Models.AssetFileDownloadUpdate
#include "Oculus/Platform/Models/AssetFileDownloadUpdate.hpp"
// Including type: Oculus.Platform.Models.CalApplicationFinalized
#include "Oculus/Platform/Models/CalApplicationFinalized.hpp"
// Including type: Oculus.Platform.Models.CalApplicationProposed
#include "Oculus/Platform/Models/CalApplicationProposed.hpp"
// Including type: Oculus.Platform.Models.CalApplicationSuggestionList
#include "Oculus/Platform/Models/CalApplicationSuggestionList.hpp"
// Including type: Oculus.Platform.Models.Challenge
#include "Oculus/Platform/Models/Challenge.hpp"
// Including type: Oculus.Platform.Models.ChallengeEntryList
#include "Oculus/Platform/Models/ChallengeEntryList.hpp"
// Including type: Oculus.Platform.Models.ChallengeList
#include "Oculus/Platform/Models/ChallengeList.hpp"
// Including type: Oculus.Platform.Models.CloudStorageConflictMetadata
#include "Oculus/Platform/Models/CloudStorageConflictMetadata.hpp"
// Including type: Oculus.Platform.Models.CloudStorageData
#include "Oculus/Platform/Models/CloudStorageData.hpp"
// Including type: Oculus.Platform.Models.CloudStorageMetadata
#include "Oculus/Platform/Models/CloudStorageMetadata.hpp"
// Including type: Oculus.Platform.Models.CloudStorageMetadataList
#include "Oculus/Platform/Models/CloudStorageMetadataList.hpp"
// Including type: Oculus.Platform.Models.CloudStorageUpdateResponse
#include "Oculus/Platform/Models/CloudStorageUpdateResponse.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
// Including type: Oculus.Platform.Models.DestinationList
#include "Oculus/Platform/Models/DestinationList.hpp"
// Including type: Oculus.Platform.Models.GroupPresenceJoinIntent
#include "Oculus/Platform/Models/GroupPresenceJoinIntent.hpp"
// Including type: Oculus.Platform.Models.GroupPresenceLeaveIntent
#include "Oculus/Platform/Models/GroupPresenceLeaveIntent.hpp"
// Including type: Oculus.Platform.Models.InstalledApplicationList
#include "Oculus/Platform/Models/InstalledApplicationList.hpp"
// Including type: Oculus.Platform.Models.InvitePanelResultInfo
#include "Oculus/Platform/Models/InvitePanelResultInfo.hpp"
// Including type: Oculus.Platform.Models.LaunchBlockFlowResult
#include "Oculus/Platform/Models/LaunchBlockFlowResult.hpp"
// Including type: Oculus.Platform.Models.LaunchFriendRequestFlowResult
#include "Oculus/Platform/Models/LaunchFriendRequestFlowResult.hpp"
// Including type: Oculus.Platform.Models.LaunchInvitePanelFlowResult
#include "Oculus/Platform/Models/LaunchInvitePanelFlowResult.hpp"
// Including type: Oculus.Platform.Models.LaunchReportFlowResult
#include "Oculus/Platform/Models/LaunchReportFlowResult.hpp"
// Including type: Oculus.Platform.Models.LaunchUnblockFlowResult
#include "Oculus/Platform/Models/LaunchUnblockFlowResult.hpp"
// Including type: Oculus.Platform.Models.LeaderboardEntryList
#include "Oculus/Platform/Models/LeaderboardEntryList.hpp"
// Including type: Oculus.Platform.Models.LeaderboardList
#include "Oculus/Platform/Models/LeaderboardList.hpp"
// Including type: Oculus.Platform.Models.LinkedAccountList
#include "Oculus/Platform/Models/LinkedAccountList.hpp"
// Including type: Oculus.Platform.Models.LivestreamingApplicationStatus
#include "Oculus/Platform/Models/LivestreamingApplicationStatus.hpp"
// Including type: Oculus.Platform.Models.LivestreamingStartResult
#include "Oculus/Platform/Models/LivestreamingStartResult.hpp"
// Including type: Oculus.Platform.Models.LivestreamingStatus
#include "Oculus/Platform/Models/LivestreamingStatus.hpp"
// Including type: Oculus.Platform.Models.LivestreamingVideoStats
#include "Oculus/Platform/Models/LivestreamingVideoStats.hpp"
// Including type: Oculus.Platform.Models.MatchmakingAdminSnapshot
#include "Oculus/Platform/Models/MatchmakingAdminSnapshot.hpp"
// Including type: Oculus.Platform.Models.MatchmakingBrowseResult
#include "Oculus/Platform/Models/MatchmakingBrowseResult.hpp"
// Including type: Oculus.Platform.Models.MatchmakingEnqueueResult
#include "Oculus/Platform/Models/MatchmakingEnqueueResult.hpp"
// Including type: Oculus.Platform.Models.MatchmakingEnqueueResultAndRoom
#include "Oculus/Platform/Models/MatchmakingEnqueueResultAndRoom.hpp"
// Including type: Oculus.Platform.Models.MatchmakingStats
#include "Oculus/Platform/Models/MatchmakingStats.hpp"
// Including type: Oculus.Platform.Models.MicrophoneAvailabilityState
#include "Oculus/Platform/Models/MicrophoneAvailabilityState.hpp"
// Including type: Oculus.Platform.Models.NetSyncConnection
#include "Oculus/Platform/Models/NetSyncConnection.hpp"
// Including type: Oculus.Platform.Models.NetSyncSessionList
#include "Oculus/Platform/Models/NetSyncSessionList.hpp"
// Including type: Oculus.Platform.Models.NetSyncSessionsChangedNotification
#include "Oculus/Platform/Models/NetSyncSessionsChangedNotification.hpp"
// Including type: Oculus.Platform.Models.NetSyncSetSessionPropertyResult
#include "Oculus/Platform/Models/NetSyncSetSessionPropertyResult.hpp"
// Including type: Oculus.Platform.Models.NetSyncVoipAttenuationValueList
#include "Oculus/Platform/Models/NetSyncVoipAttenuationValueList.hpp"
// Including type: Oculus.Platform.Models.OrgScopedID
#include "Oculus/Platform/Models/OrgScopedID.hpp"
// Including type: Oculus.Platform.Models.Party
#include "Oculus/Platform/Models/Party.hpp"
// Including type: Oculus.Platform.Models.PartyID
#include "Oculus/Platform/Models/PartyID.hpp"
// Including type: Oculus.Platform.Models.PartyUpdateNotification
#include "Oculus/Platform/Models/PartyUpdateNotification.hpp"
// Including type: Oculus.Platform.Models.PidList
#include "Oculus/Platform/Models/PidList.hpp"
// Including type: Oculus.Platform.Models.ProductList
#include "Oculus/Platform/Models/ProductList.hpp"
// Including type: Oculus.Platform.Models.Purchase
#include "Oculus/Platform/Models/Purchase.hpp"
// Including type: Oculus.Platform.Models.PurchaseList
#include "Oculus/Platform/Models/PurchaseList.hpp"
// Including type: Oculus.Platform.Models.RejoinDialogResult
#include "Oculus/Platform/Models/RejoinDialogResult.hpp"
// Including type: Oculus.Platform.Models.Room
#include "Oculus/Platform/Models/Room.hpp"
// Including type: Oculus.Platform.Models.RoomInviteNotification
#include "Oculus/Platform/Models/RoomInviteNotification.hpp"
// Including type: Oculus.Platform.Models.RoomInviteNotificationList
#include "Oculus/Platform/Models/RoomInviteNotificationList.hpp"
// Including type: Oculus.Platform.Models.RoomList
#include "Oculus/Platform/Models/RoomList.hpp"
// Including type: Oculus.Platform.Models.SdkAccountList
#include "Oculus/Platform/Models/SdkAccountList.hpp"
// Including type: Oculus.Platform.Models.SendInvitesResult
#include "Oculus/Platform/Models/SendInvitesResult.hpp"
// Including type: Oculus.Platform.Models.ShareMediaResult
#include "Oculus/Platform/Models/ShareMediaResult.hpp"
// Including type: Oculus.Platform.Models.SystemVoipState
#include "Oculus/Platform/Models/SystemVoipState.hpp"
// Including type: Oculus.Platform.Models.User
#include "Oculus/Platform/Models/User.hpp"
// Including type: Oculus.Platform.Models.UserAndRoomList
#include "Oculus/Platform/Models/UserAndRoomList.hpp"
// Including type: Oculus.Platform.Models.UserDataStoreUpdateResponse
#include "Oculus/Platform/Models/UserDataStoreUpdateResponse.hpp"
// Including type: Oculus.Platform.Models.UserList
#include "Oculus/Platform/Models/UserList.hpp"
// Including type: Oculus.Platform.Models.UserProof
#include "Oculus/Platform/Models/UserProof.hpp"
// Including type: Oculus.Platform.Models.UserReportID
#include "Oculus/Platform/Models/UserReportID.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private Oculus.Platform.Message/Oculus.Platform.ExtraMessageTypesHandler <HandleExtraMessageTypes>k__BackingField
::Oculus::Platform::Message::ExtraMessageTypesHandler* Oculus::Platform::Message::_get_$HandleExtraMessageTypes$k__BackingField() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::_get_$HandleExtraMessageTypes$k__BackingField");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::ExtraMessageTypesHandler*>("Oculus.Platform", "Message", "<HandleExtraMessageTypes>k__BackingField")));
}
// Autogenerated static field setter
// Set static field: static private Oculus.Platform.Message/Oculus.Platform.ExtraMessageTypesHandler <HandleExtraMessageTypes>k__BackingField
void Oculus::Platform::Message::_set_$HandleExtraMessageTypes$k__BackingField(::Oculus::Platform::Message::ExtraMessageTypesHandler* value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::_set_$HandleExtraMessageTypes$k__BackingField");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message", "<HandleExtraMessageTypes>k__BackingField", value));
}
// Autogenerated instance field getter
// Get instance field: private Oculus.Platform.Message/Oculus.Platform.MessageType type
::Oculus::Platform::Message::MessageType& Oculus::Platform::Message::dyn_type() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::dyn_type");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "type"))->offset;
return *reinterpret_cast<::Oculus::Platform::Message::MessageType*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.UInt64 requestID
uint64_t& Oculus::Platform::Message::dyn_requestID() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::dyn_requestID");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "requestID"))->offset;
return *reinterpret_cast<uint64_t*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private Oculus.Platform.Models.Error error
::Oculus::Platform::Models::Error*& Oculus::Platform::Message::dyn_error() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::dyn_error");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "error"))->offset;
return *reinterpret_cast<::Oculus::Platform::Models::Error**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: Oculus.Platform.Message.get_Type
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::get_Type() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::get_Type");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Type", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Message::MessageType, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.get_IsError
bool Oculus::Platform::Message::get_IsError() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::get_IsError");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_IsError", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<bool, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.get_RequestID
uint64_t Oculus::Platform::Message::get_RequestID() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::get_RequestID");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_RequestID", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<uint64_t, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.get_HandleExtraMessageTypes
::Oculus::Platform::Message::ExtraMessageTypesHandler* Oculus::Platform::Message::get_HandleExtraMessageTypes() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::get_HandleExtraMessageTypes");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Message", "get_HandleExtraMessageTypes", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Message::ExtraMessageTypesHandler*, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.set_HandleExtraMessageTypes
void Oculus::Platform::Message::set_HandleExtraMessageTypes(::Oculus::Platform::Message::ExtraMessageTypesHandler* value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::set_HandleExtraMessageTypes");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Message", "set_HandleExtraMessageTypes", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodRethrow<void, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method, value);
}
// Autogenerated method: Oculus.Platform.Message.GetError
::Oculus::Platform::Models::Error* Oculus::Platform::Message::GetError() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetError");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetError", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Error*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetPingResult
::Oculus::Platform::Models::PingResult* Oculus::Platform::Message::GetPingResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetPingResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPingResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PingResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetNetworkingPeer
::Oculus::Platform::Models::NetworkingPeer* Oculus::Platform::Message::GetNetworkingPeer() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetNetworkingPeer");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetworkingPeer", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetworkingPeer*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetHttpTransferUpdate
::Oculus::Platform::Models::HttpTransferUpdate* Oculus::Platform::Message::GetHttpTransferUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetHttpTransferUpdate");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetHttpTransferUpdate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::HttpTransferUpdate*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetPlatformInitialize
::Oculus::Platform::Models::PlatformInitialize* Oculus::Platform::Message::GetPlatformInitialize() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetPlatformInitialize");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPlatformInitialize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PlatformInitialize*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAbuseReportRecording
::Oculus::Platform::Models::AbuseReportRecording* Oculus::Platform::Message::GetAbuseReportRecording() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAbuseReportRecording");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAbuseReportRecording", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AbuseReportRecording*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAchievementDefinitions
::Oculus::Platform::Models::AchievementDefinitionList* Oculus::Platform::Message::GetAchievementDefinitions() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAchievementDefinitions");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAchievementDefinitions", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AchievementDefinitionList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAchievementProgressList
::Oculus::Platform::Models::AchievementProgressList* Oculus::Platform::Message::GetAchievementProgressList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAchievementProgressList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAchievementProgressList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AchievementProgressList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAchievementUpdate
::Oculus::Platform::Models::AchievementUpdate* Oculus::Platform::Message::GetAchievementUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAchievementUpdate");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAchievementUpdate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AchievementUpdate*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetApplicationInviteList
::Oculus::Platform::Models::ApplicationInviteList* Oculus::Platform::Message::GetApplicationInviteList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetApplicationInviteList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetApplicationInviteList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ApplicationInviteList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetApplicationVersion
::Oculus::Platform::Models::ApplicationVersion* Oculus::Platform::Message::GetApplicationVersion() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetApplicationVersion");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetApplicationVersion", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ApplicationVersion*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAssetDetails
::Oculus::Platform::Models::AssetDetails* Oculus::Platform::Message::GetAssetDetails() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAssetDetails");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetDetails", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetDetails*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAssetDetailsList
::Oculus::Platform::Models::AssetDetailsList* Oculus::Platform::Message::GetAssetDetailsList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAssetDetailsList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetDetailsList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetDetailsList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAssetFileDeleteResult
::Oculus::Platform::Models::AssetFileDeleteResult* Oculus::Platform::Message::GetAssetFileDeleteResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAssetFileDeleteResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetFileDeleteResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDeleteResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAssetFileDownloadCancelResult
::Oculus::Platform::Models::AssetFileDownloadCancelResult* Oculus::Platform::Message::GetAssetFileDownloadCancelResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAssetFileDownloadCancelResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetFileDownloadCancelResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDownloadCancelResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAssetFileDownloadResult
::Oculus::Platform::Models::AssetFileDownloadResult* Oculus::Platform::Message::GetAssetFileDownloadResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAssetFileDownloadResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetFileDownloadResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDownloadResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetAssetFileDownloadUpdate
::Oculus::Platform::Models::AssetFileDownloadUpdate* Oculus::Platform::Message::GetAssetFileDownloadUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetAssetFileDownloadUpdate");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetFileDownloadUpdate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDownloadUpdate*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetCalApplicationFinalized
::Oculus::Platform::Models::CalApplicationFinalized* Oculus::Platform::Message::GetCalApplicationFinalized() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetCalApplicationFinalized");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCalApplicationFinalized", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CalApplicationFinalized*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetCalApplicationProposed
::Oculus::Platform::Models::CalApplicationProposed* Oculus::Platform::Message::GetCalApplicationProposed() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetCalApplicationProposed");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCalApplicationProposed", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CalApplicationProposed*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetCalApplicationSuggestionList
::Oculus::Platform::Models::CalApplicationSuggestionList* Oculus::Platform::Message::GetCalApplicationSuggestionList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetCalApplicationSuggestionList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCalApplicationSuggestionList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CalApplicationSuggestionList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetChallenge
::Oculus::Platform::Models::Challenge* Oculus::Platform::Message::GetChallenge() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetChallenge");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetChallenge", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Challenge*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetChallengeEntryList
::Oculus::Platform::Models::ChallengeEntryList* Oculus::Platform::Message::GetChallengeEntryList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetChallengeEntryList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetChallengeEntryList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ChallengeEntryList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetChallengeList
::Oculus::Platform::Models::ChallengeList* Oculus::Platform::Message::GetChallengeList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetChallengeList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetChallengeList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ChallengeList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetCloudStorageConflictMetadata
::Oculus::Platform::Models::CloudStorageConflictMetadata* Oculus::Platform::Message::GetCloudStorageConflictMetadata() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetCloudStorageConflictMetadata");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageConflictMetadata", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageConflictMetadata*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetCloudStorageData
::Oculus::Platform::Models::CloudStorageData* Oculus::Platform::Message::GetCloudStorageData() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetCloudStorageData");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageData", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageData*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetCloudStorageMetadata
::Oculus::Platform::Models::CloudStorageMetadata* Oculus::Platform::Message::GetCloudStorageMetadata() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetCloudStorageMetadata");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageMetadata", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageMetadata*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetCloudStorageMetadataList
::Oculus::Platform::Models::CloudStorageMetadataList* Oculus::Platform::Message::GetCloudStorageMetadataList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetCloudStorageMetadataList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageMetadataList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageMetadataList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetCloudStorageUpdateResponse
::Oculus::Platform::Models::CloudStorageUpdateResponse* Oculus::Platform::Message::GetCloudStorageUpdateResponse() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetCloudStorageUpdateResponse");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageUpdateResponse", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageUpdateResponse*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetDataStore
::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>* Oculus::Platform::Message::GetDataStore() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetDataStore");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataStore", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetDestinationList
::Oculus::Platform::Models::DestinationList* Oculus::Platform::Message::GetDestinationList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetDestinationList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDestinationList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::DestinationList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetGroupPresenceJoinIntent
::Oculus::Platform::Models::GroupPresenceJoinIntent* Oculus::Platform::Message::GetGroupPresenceJoinIntent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetGroupPresenceJoinIntent");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetGroupPresenceJoinIntent", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::GroupPresenceJoinIntent*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetGroupPresenceLeaveIntent
::Oculus::Platform::Models::GroupPresenceLeaveIntent* Oculus::Platform::Message::GetGroupPresenceLeaveIntent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetGroupPresenceLeaveIntent");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetGroupPresenceLeaveIntent", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::GroupPresenceLeaveIntent*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetInstalledApplicationList
::Oculus::Platform::Models::InstalledApplicationList* Oculus::Platform::Message::GetInstalledApplicationList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetInstalledApplicationList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetInstalledApplicationList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::InstalledApplicationList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetInvitePanelResultInfo
::Oculus::Platform::Models::InvitePanelResultInfo* Oculus::Platform::Message::GetInvitePanelResultInfo() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetInvitePanelResultInfo");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetInvitePanelResultInfo", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::InvitePanelResultInfo*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLaunchBlockFlowResult
::Oculus::Platform::Models::LaunchBlockFlowResult* Oculus::Platform::Message::GetLaunchBlockFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLaunchBlockFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchBlockFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchBlockFlowResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLaunchFriendRequestFlowResult
::Oculus::Platform::Models::LaunchFriendRequestFlowResult* Oculus::Platform::Message::GetLaunchFriendRequestFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLaunchFriendRequestFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchFriendRequestFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchFriendRequestFlowResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLaunchInvitePanelFlowResult
::Oculus::Platform::Models::LaunchInvitePanelFlowResult* Oculus::Platform::Message::GetLaunchInvitePanelFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLaunchInvitePanelFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchInvitePanelFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchInvitePanelFlowResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLaunchReportFlowResult
::Oculus::Platform::Models::LaunchReportFlowResult* Oculus::Platform::Message::GetLaunchReportFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLaunchReportFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchReportFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchReportFlowResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLaunchUnblockFlowResult
::Oculus::Platform::Models::LaunchUnblockFlowResult* Oculus::Platform::Message::GetLaunchUnblockFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLaunchUnblockFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchUnblockFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchUnblockFlowResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLeaderboardDidUpdate
bool Oculus::Platform::Message::GetLeaderboardDidUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLeaderboardDidUpdate");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLeaderboardDidUpdate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<bool, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLeaderboardEntryList
::Oculus::Platform::Models::LeaderboardEntryList* Oculus::Platform::Message::GetLeaderboardEntryList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLeaderboardEntryList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLeaderboardEntryList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LeaderboardEntryList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLeaderboardList
::Oculus::Platform::Models::LeaderboardList* Oculus::Platform::Message::GetLeaderboardList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLeaderboardList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLeaderboardList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LeaderboardList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLinkedAccountList
::Oculus::Platform::Models::LinkedAccountList* Oculus::Platform::Message::GetLinkedAccountList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLinkedAccountList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLinkedAccountList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LinkedAccountList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLivestreamingApplicationStatus
::Oculus::Platform::Models::LivestreamingApplicationStatus* Oculus::Platform::Message::GetLivestreamingApplicationStatus() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLivestreamingApplicationStatus");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLivestreamingApplicationStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingApplicationStatus*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLivestreamingStartResult
::Oculus::Platform::Models::LivestreamingStartResult* Oculus::Platform::Message::GetLivestreamingStartResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLivestreamingStartResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLivestreamingStartResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingStartResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLivestreamingStatus
::Oculus::Platform::Models::LivestreamingStatus* Oculus::Platform::Message::GetLivestreamingStatus() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLivestreamingStatus");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLivestreamingStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingStatus*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetLivestreamingVideoStats
::Oculus::Platform::Models::LivestreamingVideoStats* Oculus::Platform::Message::GetLivestreamingVideoStats() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetLivestreamingVideoStats");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLivestreamingVideoStats", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingVideoStats*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetMatchmakingAdminSnapshot
::Oculus::Platform::Models::MatchmakingAdminSnapshot* Oculus::Platform::Message::GetMatchmakingAdminSnapshot() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetMatchmakingAdminSnapshot");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMatchmakingAdminSnapshot", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingAdminSnapshot*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetMatchmakingBrowseResult
::Oculus::Platform::Models::MatchmakingBrowseResult* Oculus::Platform::Message::GetMatchmakingBrowseResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetMatchmakingBrowseResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMatchmakingBrowseResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingBrowseResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetMatchmakingEnqueueResult
::Oculus::Platform::Models::MatchmakingEnqueueResult* Oculus::Platform::Message::GetMatchmakingEnqueueResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetMatchmakingEnqueueResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMatchmakingEnqueueResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingEnqueueResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetMatchmakingEnqueueResultAndRoom
::Oculus::Platform::Models::MatchmakingEnqueueResultAndRoom* Oculus::Platform::Message::GetMatchmakingEnqueueResultAndRoom() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetMatchmakingEnqueueResultAndRoom");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMatchmakingEnqueueResultAndRoom", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingEnqueueResultAndRoom*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetMatchmakingStats
::Oculus::Platform::Models::MatchmakingStats* Oculus::Platform::Message::GetMatchmakingStats() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetMatchmakingStats");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMatchmakingStats", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingStats*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetMicrophoneAvailabilityState
::Oculus::Platform::Models::MicrophoneAvailabilityState* Oculus::Platform::Message::GetMicrophoneAvailabilityState() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetMicrophoneAvailabilityState");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMicrophoneAvailabilityState", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MicrophoneAvailabilityState*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetNetSyncConnection
::Oculus::Platform::Models::NetSyncConnection* Oculus::Platform::Message::GetNetSyncConnection() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetNetSyncConnection");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncConnection", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncConnection*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetNetSyncSessionList
::Oculus::Platform::Models::NetSyncSessionList* Oculus::Platform::Message::GetNetSyncSessionList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetNetSyncSessionList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncSessionList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncSessionList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetNetSyncSessionsChangedNotification
::Oculus::Platform::Models::NetSyncSessionsChangedNotification* Oculus::Platform::Message::GetNetSyncSessionsChangedNotification() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetNetSyncSessionsChangedNotification");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncSessionsChangedNotification", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncSessionsChangedNotification*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetNetSyncSetSessionPropertyResult
::Oculus::Platform::Models::NetSyncSetSessionPropertyResult* Oculus::Platform::Message::GetNetSyncSetSessionPropertyResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetNetSyncSetSessionPropertyResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncSetSessionPropertyResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncSetSessionPropertyResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetNetSyncVoipAttenuationValueList
::Oculus::Platform::Models::NetSyncVoipAttenuationValueList* Oculus::Platform::Message::GetNetSyncVoipAttenuationValueList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetNetSyncVoipAttenuationValueList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncVoipAttenuationValueList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncVoipAttenuationValueList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetOrgScopedID
::Oculus::Platform::Models::OrgScopedID* Oculus::Platform::Message::GetOrgScopedID() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetOrgScopedID");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetOrgScopedID", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::OrgScopedID*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetParty
::Oculus::Platform::Models::Party* Oculus::Platform::Message::GetParty() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetParty");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetParty", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Party*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetPartyID
::Oculus::Platform::Models::PartyID* Oculus::Platform::Message::GetPartyID() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetPartyID");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPartyID", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PartyID*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetPartyUpdateNotification
::Oculus::Platform::Models::PartyUpdateNotification* Oculus::Platform::Message::GetPartyUpdateNotification() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetPartyUpdateNotification");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPartyUpdateNotification", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PartyUpdateNotification*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetPidList
::Oculus::Platform::Models::PidList* Oculus::Platform::Message::GetPidList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetPidList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPidList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PidList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetProductList
::Oculus::Platform::Models::ProductList* Oculus::Platform::Message::GetProductList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetProductList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetProductList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ProductList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetPurchase
::Oculus::Platform::Models::Purchase* Oculus::Platform::Message::GetPurchase() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetPurchase");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPurchase", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Purchase*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetPurchaseList
::Oculus::Platform::Models::PurchaseList* Oculus::Platform::Message::GetPurchaseList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetPurchaseList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPurchaseList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PurchaseList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetRejoinDialogResult
::Oculus::Platform::Models::RejoinDialogResult* Oculus::Platform::Message::GetRejoinDialogResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetRejoinDialogResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetRejoinDialogResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::RejoinDialogResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetRoom
::Oculus::Platform::Models::Room* Oculus::Platform::Message::GetRoom() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetRoom");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetRoom", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Room*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetRoomInviteNotification
::Oculus::Platform::Models::RoomInviteNotification* Oculus::Platform::Message::GetRoomInviteNotification() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetRoomInviteNotification");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetRoomInviteNotification", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::RoomInviteNotification*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetRoomInviteNotificationList
::Oculus::Platform::Models::RoomInviteNotificationList* Oculus::Platform::Message::GetRoomInviteNotificationList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetRoomInviteNotificationList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetRoomInviteNotificationList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::RoomInviteNotificationList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetRoomList
::Oculus::Platform::Models::RoomList* Oculus::Platform::Message::GetRoomList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetRoomList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetRoomList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::RoomList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetSdkAccountList
::Oculus::Platform::Models::SdkAccountList* Oculus::Platform::Message::GetSdkAccountList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetSdkAccountList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetSdkAccountList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::SdkAccountList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetSendInvitesResult
::Oculus::Platform::Models::SendInvitesResult* Oculus::Platform::Message::GetSendInvitesResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetSendInvitesResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetSendInvitesResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::SendInvitesResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetShareMediaResult
::Oculus::Platform::Models::ShareMediaResult* Oculus::Platform::Message::GetShareMediaResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetShareMediaResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetShareMediaResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ShareMediaResult*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetString
::StringW Oculus::Platform::Message::GetString() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetString");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetString", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::StringW, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetSystemVoipState
::Oculus::Platform::Models::SystemVoipState* Oculus::Platform::Message::GetSystemVoipState() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetSystemVoipState");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetSystemVoipState", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::SystemVoipState*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetUser
::Oculus::Platform::Models::User* Oculus::Platform::Message::GetUser() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetUser");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetUser", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::User*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetUserAndRoomList
::Oculus::Platform::Models::UserAndRoomList* Oculus::Platform::Message::GetUserAndRoomList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetUserAndRoomList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetUserAndRoomList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::UserAndRoomList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetUserDataStoreUpdateResponse
::Oculus::Platform::Models::UserDataStoreUpdateResponse* Oculus::Platform::Message::GetUserDataStoreUpdateResponse() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetUserDataStoreUpdateResponse");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetUserDataStoreUpdateResponse", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::UserDataStoreUpdateResponse*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetUserList
::Oculus::Platform::Models::UserList* Oculus::Platform::Message::GetUserList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetUserList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetUserList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::UserList*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetUserProof
::Oculus::Platform::Models::UserProof* Oculus::Platform::Message::GetUserProof() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetUserProof");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetUserProof", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::UserProof*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.GetUserReportID
::Oculus::Platform::Models::UserReportID* Oculus::Platform::Message::GetUserReportID() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::GetUserReportID");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetUserReportID", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::UserReportID*, false>(this, ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.ParseMessageHandle
::Oculus::Platform::Message* Oculus::Platform::Message::ParseMessageHandle(::System::IntPtr messageHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::ParseMessageHandle");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Message", "ParseMessageHandle", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(messageHandle)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Message*, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method, messageHandle);
}
// Autogenerated method: Oculus.Platform.Message.PopMessage
::Oculus::Platform::Message* Oculus::Platform::Message::PopMessage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::PopMessage");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("Oculus.Platform", "Message", "PopMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Message*, false>(static_cast<Il2CppObject*>(nullptr), ___internal__method);
}
// Autogenerated method: Oculus.Platform.Message.Finalize
void Oculus::Platform::Message::Finalize() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::Finalize");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Finalize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
// Including type: Oculus.Platform.Message/Oculus.Platform.Callback
#include "Oculus/Platform/Message_Callback.hpp"
// Including type: System.IAsyncResult
#include "System/IAsyncResult.hpp"
// Including type: System.AsyncCallback
#include "System/AsyncCallback.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.Message/Oculus.Platform.Callback.Invoke
void Oculus::Platform::Message::Callback::Invoke(::Oculus::Platform::Message* message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::Callback::Invoke");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Invoke", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(message)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, message);
}
// Autogenerated method: Oculus.Platform.Message/Oculus.Platform.Callback.BeginInvoke
::System::IAsyncResult* Oculus::Platform::Message::Callback::BeginInvoke(::Oculus::Platform::Message* message, ::System::AsyncCallback* callback, ::Il2CppObject* object) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::Callback::BeginInvoke");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "BeginInvoke", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(message), ::il2cpp_utils::ExtractType(callback), ::il2cpp_utils::ExtractType(object)})));
return ::il2cpp_utils::RunMethodRethrow<::System::IAsyncResult*, false>(this, ___internal__method, message, callback, object);
}
// Autogenerated method: Oculus.Platform.Message/Oculus.Platform.Callback.EndInvoke
void Oculus::Platform::Message::Callback::EndInvoke(::System::IAsyncResult* result) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::Callback::EndInvoke");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "EndInvoke", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(result)})));
::il2cpp_utils::RunMethodRethrow<void, false>(this, ___internal__method, result);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.Message/Oculus.Platform.MessageType
#include "Oculus/Platform/Message.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Unknown
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Unknown() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Unknown");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Unknown"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Unknown
void Oculus::Platform::Message::MessageType::_set_Unknown(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Unknown");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Unknown", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_AddCount
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Achievements_AddCount() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Achievements_AddCount");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Achievements_AddCount"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_AddCount
void Oculus::Platform::Message::MessageType::_set_Achievements_AddCount(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Achievements_AddCount");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Achievements_AddCount", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_AddFields
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Achievements_AddFields() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Achievements_AddFields");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Achievements_AddFields"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_AddFields
void Oculus::Platform::Message::MessageType::_set_Achievements_AddFields(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Achievements_AddFields");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Achievements_AddFields", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetAllDefinitions
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Achievements_GetAllDefinitions() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Achievements_GetAllDefinitions");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Achievements_GetAllDefinitions"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetAllDefinitions
void Oculus::Platform::Message::MessageType::_set_Achievements_GetAllDefinitions(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Achievements_GetAllDefinitions");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Achievements_GetAllDefinitions", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetAllProgress
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Achievements_GetAllProgress() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Achievements_GetAllProgress");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Achievements_GetAllProgress"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetAllProgress
void Oculus::Platform::Message::MessageType::_set_Achievements_GetAllProgress(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Achievements_GetAllProgress");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Achievements_GetAllProgress", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetDefinitionsByName
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Achievements_GetDefinitionsByName() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Achievements_GetDefinitionsByName");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Achievements_GetDefinitionsByName"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetDefinitionsByName
void Oculus::Platform::Message::MessageType::_set_Achievements_GetDefinitionsByName(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Achievements_GetDefinitionsByName");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Achievements_GetDefinitionsByName", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetNextAchievementDefinitionArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Achievements_GetNextAchievementDefinitionArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Achievements_GetNextAchievementDefinitionArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Achievements_GetNextAchievementDefinitionArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetNextAchievementDefinitionArrayPage
void Oculus::Platform::Message::MessageType::_set_Achievements_GetNextAchievementDefinitionArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Achievements_GetNextAchievementDefinitionArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Achievements_GetNextAchievementDefinitionArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetNextAchievementProgressArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Achievements_GetNextAchievementProgressArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Achievements_GetNextAchievementProgressArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Achievements_GetNextAchievementProgressArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetNextAchievementProgressArrayPage
void Oculus::Platform::Message::MessageType::_set_Achievements_GetNextAchievementProgressArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Achievements_GetNextAchievementProgressArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Achievements_GetNextAchievementProgressArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetProgressByName
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Achievements_GetProgressByName() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Achievements_GetProgressByName");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Achievements_GetProgressByName"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_GetProgressByName
void Oculus::Platform::Message::MessageType::_set_Achievements_GetProgressByName(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Achievements_GetProgressByName");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Achievements_GetProgressByName", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_Unlock
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Achievements_Unlock() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Achievements_Unlock");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Achievements_Unlock"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Achievements_Unlock
void Oculus::Platform::Message::MessageType::_set_Achievements_Unlock(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Achievements_Unlock");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Achievements_Unlock", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType ApplicationLifecycle_GetRegisteredPIDs
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_ApplicationLifecycle_GetRegisteredPIDs() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_ApplicationLifecycle_GetRegisteredPIDs");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "ApplicationLifecycle_GetRegisteredPIDs"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType ApplicationLifecycle_GetRegisteredPIDs
void Oculus::Platform::Message::MessageType::_set_ApplicationLifecycle_GetRegisteredPIDs(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_ApplicationLifecycle_GetRegisteredPIDs");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "ApplicationLifecycle_GetRegisteredPIDs", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType ApplicationLifecycle_GetSessionKey
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_ApplicationLifecycle_GetSessionKey() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_ApplicationLifecycle_GetSessionKey");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "ApplicationLifecycle_GetSessionKey"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType ApplicationLifecycle_GetSessionKey
void Oculus::Platform::Message::MessageType::_set_ApplicationLifecycle_GetSessionKey(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_ApplicationLifecycle_GetSessionKey");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "ApplicationLifecycle_GetSessionKey", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType ApplicationLifecycle_RegisterSessionKey
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_ApplicationLifecycle_RegisterSessionKey() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_ApplicationLifecycle_RegisterSessionKey");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "ApplicationLifecycle_RegisterSessionKey"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType ApplicationLifecycle_RegisterSessionKey
void Oculus::Platform::Message::MessageType::_set_ApplicationLifecycle_RegisterSessionKey(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_ApplicationLifecycle_RegisterSessionKey");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "ApplicationLifecycle_RegisterSessionKey", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Application_GetVersion
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Application_GetVersion() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Application_GetVersion");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Application_GetVersion"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Application_GetVersion
void Oculus::Platform::Message::MessageType::_set_Application_GetVersion(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Application_GetVersion");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Application_GetVersion", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Application_LaunchOtherApp
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Application_LaunchOtherApp() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Application_LaunchOtherApp");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Application_LaunchOtherApp"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Application_LaunchOtherApp
void Oculus::Platform::Message::MessageType::_set_Application_LaunchOtherApp(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Application_LaunchOtherApp");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Application_LaunchOtherApp", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_Delete
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_Delete() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_Delete");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_Delete"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_Delete
void Oculus::Platform::Message::MessageType::_set_AssetFile_Delete(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_Delete");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_Delete", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DeleteById
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_DeleteById() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_DeleteById");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_DeleteById"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DeleteById
void Oculus::Platform::Message::MessageType::_set_AssetFile_DeleteById(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_DeleteById");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_DeleteById", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DeleteByName
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_DeleteByName() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_DeleteByName");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_DeleteByName"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DeleteByName
void Oculus::Platform::Message::MessageType::_set_AssetFile_DeleteByName(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_DeleteByName");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_DeleteByName", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_Download
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_Download() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_Download");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_Download"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_Download
void Oculus::Platform::Message::MessageType::_set_AssetFile_Download(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_Download");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_Download", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadById
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadById() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadById");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadById"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadById
void Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadById(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadById");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadById", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadByName
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadByName() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadByName");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadByName"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadByName
void Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadByName(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadByName");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadByName", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadCancel
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadCancel() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadCancel");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadCancel"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadCancel
void Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadCancel(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadCancel");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadCancel", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadCancelById
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadCancelById() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadCancelById");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadCancelById"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadCancelById
void Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadCancelById(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadCancelById");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadCancelById", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadCancelByName
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadCancelByName() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_DownloadCancelByName");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadCancelByName"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_DownloadCancelByName
void Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadCancelByName(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_DownloadCancelByName");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_DownloadCancelByName", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_GetList
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_GetList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_GetList");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_GetList"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_GetList
void Oculus::Platform::Message::MessageType::_set_AssetFile_GetList(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_GetList");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_GetList", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_Status
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_Status() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_Status");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_Status"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_Status
void Oculus::Platform::Message::MessageType::_set_AssetFile_Status(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_Status");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_Status", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_StatusById
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_StatusById() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_StatusById");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_StatusById"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_StatusById
void Oculus::Platform::Message::MessageType::_set_AssetFile_StatusById(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_StatusById");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_StatusById", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_StatusByName
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_AssetFile_StatusByName() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_AssetFile_StatusByName");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "AssetFile_StatusByName"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType AssetFile_StatusByName
void Oculus::Platform::Message::MessageType::_set_AssetFile_StatusByName(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_AssetFile_StatusByName");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "AssetFile_StatusByName", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Create
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_Create() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_Create");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_Create"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Create
void Oculus::Platform::Message::MessageType::_set_Challenges_Create(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_Create");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_Create", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_DeclineInvite
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_DeclineInvite() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_DeclineInvite");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_DeclineInvite"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_DeclineInvite
void Oculus::Platform::Message::MessageType::_set_Challenges_DeclineInvite(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_DeclineInvite");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_DeclineInvite", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Delete
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_Delete() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_Delete");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_Delete"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Delete
void Oculus::Platform::Message::MessageType::_set_Challenges_Delete(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_Delete");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_Delete", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Get
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_Get() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_Get");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_Get"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Get
void Oculus::Platform::Message::MessageType::_set_Challenges_Get(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_Get");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_Get", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetEntries
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_GetEntries() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_GetEntries");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_GetEntries"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetEntries
void Oculus::Platform::Message::MessageType::_set_Challenges_GetEntries(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_GetEntries");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_GetEntries", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetEntriesAfterRank
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_GetEntriesAfterRank() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_GetEntriesAfterRank");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_GetEntriesAfterRank"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetEntriesAfterRank
void Oculus::Platform::Message::MessageType::_set_Challenges_GetEntriesAfterRank(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_GetEntriesAfterRank");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_GetEntriesAfterRank", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetEntriesByIds
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_GetEntriesByIds() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_GetEntriesByIds");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_GetEntriesByIds"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetEntriesByIds
void Oculus::Platform::Message::MessageType::_set_Challenges_GetEntriesByIds(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_GetEntriesByIds");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_GetEntriesByIds", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetList
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_GetList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_GetList");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_GetList"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetList
void Oculus::Platform::Message::MessageType::_set_Challenges_GetList(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_GetList");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_GetList", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetNextChallenges
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_GetNextChallenges() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_GetNextChallenges");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_GetNextChallenges"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetNextChallenges
void Oculus::Platform::Message::MessageType::_set_Challenges_GetNextChallenges(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_GetNextChallenges");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_GetNextChallenges", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetNextEntries
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_GetNextEntries() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_GetNextEntries");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_GetNextEntries"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetNextEntries
void Oculus::Platform::Message::MessageType::_set_Challenges_GetNextEntries(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_GetNextEntries");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_GetNextEntries", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetPreviousChallenges
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_GetPreviousChallenges() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_GetPreviousChallenges");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_GetPreviousChallenges"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetPreviousChallenges
void Oculus::Platform::Message::MessageType::_set_Challenges_GetPreviousChallenges(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_GetPreviousChallenges");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_GetPreviousChallenges", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetPreviousEntries
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_GetPreviousEntries() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_GetPreviousEntries");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_GetPreviousEntries"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_GetPreviousEntries
void Oculus::Platform::Message::MessageType::_set_Challenges_GetPreviousEntries(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_GetPreviousEntries");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_GetPreviousEntries", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Join
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_Join() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_Join");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_Join"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Join
void Oculus::Platform::Message::MessageType::_set_Challenges_Join(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_Join");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_Join", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Leave
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_Leave() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_Leave");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_Leave"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_Leave
void Oculus::Platform::Message::MessageType::_set_Challenges_Leave(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_Leave");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_Leave", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_UpdateInfo
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Challenges_UpdateInfo() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Challenges_UpdateInfo");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Challenges_UpdateInfo"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Challenges_UpdateInfo
void Oculus::Platform::Message::MessageType::_set_Challenges_UpdateInfo(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Challenges_UpdateInfo");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Challenges_UpdateInfo", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage2_GetUserDirectoryPath
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage2_GetUserDirectoryPath() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage2_GetUserDirectoryPath");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage2_GetUserDirectoryPath"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage2_GetUserDirectoryPath
void Oculus::Platform::Message::MessageType::_set_CloudStorage2_GetUserDirectoryPath(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage2_GetUserDirectoryPath");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage2_GetUserDirectoryPath", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_Delete
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_Delete() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_Delete");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_Delete"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_Delete
void Oculus::Platform::Message::MessageType::_set_CloudStorage_Delete(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_Delete");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_Delete", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_GetNextCloudStorageMetadataArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_GetNextCloudStorageMetadataArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_GetNextCloudStorageMetadataArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_GetNextCloudStorageMetadataArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_GetNextCloudStorageMetadataArrayPage
void Oculus::Platform::Message::MessageType::_set_CloudStorage_GetNextCloudStorageMetadataArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_GetNextCloudStorageMetadataArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_GetNextCloudStorageMetadataArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_Load
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_Load() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_Load");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_Load"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_Load
void Oculus::Platform::Message::MessageType::_set_CloudStorage_Load(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_Load");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_Load", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_LoadBucketMetadata
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_LoadBucketMetadata() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_LoadBucketMetadata");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_LoadBucketMetadata"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_LoadBucketMetadata
void Oculus::Platform::Message::MessageType::_set_CloudStorage_LoadBucketMetadata(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_LoadBucketMetadata");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_LoadBucketMetadata", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_LoadConflictMetadata
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_LoadConflictMetadata() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_LoadConflictMetadata");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_LoadConflictMetadata"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_LoadConflictMetadata
void Oculus::Platform::Message::MessageType::_set_CloudStorage_LoadConflictMetadata(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_LoadConflictMetadata");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_LoadConflictMetadata", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_LoadHandle
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_LoadHandle() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_LoadHandle");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_LoadHandle"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_LoadHandle
void Oculus::Platform::Message::MessageType::_set_CloudStorage_LoadHandle(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_LoadHandle");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_LoadHandle", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_LoadMetadata
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_LoadMetadata() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_LoadMetadata");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_LoadMetadata"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_LoadMetadata
void Oculus::Platform::Message::MessageType::_set_CloudStorage_LoadMetadata(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_LoadMetadata");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_LoadMetadata", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_ResolveKeepLocal
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_ResolveKeepLocal() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_ResolveKeepLocal");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_ResolveKeepLocal"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_ResolveKeepLocal
void Oculus::Platform::Message::MessageType::_set_CloudStorage_ResolveKeepLocal(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_ResolveKeepLocal");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_ResolveKeepLocal", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_ResolveKeepRemote
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_ResolveKeepRemote() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_ResolveKeepRemote");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_ResolveKeepRemote"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_ResolveKeepRemote
void Oculus::Platform::Message::MessageType::_set_CloudStorage_ResolveKeepRemote(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_ResolveKeepRemote");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_ResolveKeepRemote", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_Save
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_CloudStorage_Save() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_CloudStorage_Save");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "CloudStorage_Save"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType CloudStorage_Save
void Oculus::Platform::Message::MessageType::_set_CloudStorage_Save(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_CloudStorage_Save");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "CloudStorage_Save", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Entitlement_GetIsViewerEntitled
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Entitlement_GetIsViewerEntitled() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Entitlement_GetIsViewerEntitled");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Entitlement_GetIsViewerEntitled"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Entitlement_GetIsViewerEntitled
void Oculus::Platform::Message::MessageType::_set_Entitlement_GetIsViewerEntitled(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Entitlement_GetIsViewerEntitled");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Entitlement_GetIsViewerEntitled", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_Clear
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_Clear() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_Clear");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_Clear"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_Clear
void Oculus::Platform::Message::MessageType::_set_GroupPresence_Clear(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_Clear");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_Clear", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_GetInvitableUsers
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_GetInvitableUsers() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_GetInvitableUsers");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_GetInvitableUsers"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_GetInvitableUsers
void Oculus::Platform::Message::MessageType::_set_GroupPresence_GetInvitableUsers(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_GetInvitableUsers");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_GetInvitableUsers", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_GetNextApplicationInviteArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_GetNextApplicationInviteArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_GetNextApplicationInviteArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_GetNextApplicationInviteArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_GetNextApplicationInviteArrayPage
void Oculus::Platform::Message::MessageType::_set_GroupPresence_GetNextApplicationInviteArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_GetNextApplicationInviteArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_GetNextApplicationInviteArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_GetSentInvites
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_GetSentInvites() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_GetSentInvites");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_GetSentInvites"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_GetSentInvites
void Oculus::Platform::Message::MessageType::_set_GroupPresence_GetSentInvites(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_GetSentInvites");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_GetSentInvites", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_LaunchInvitePanel
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_LaunchInvitePanel() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_LaunchInvitePanel");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_LaunchInvitePanel"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_LaunchInvitePanel
void Oculus::Platform::Message::MessageType::_set_GroupPresence_LaunchInvitePanel(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_LaunchInvitePanel");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_LaunchInvitePanel", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_LaunchMultiplayerErrorDialog
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_LaunchMultiplayerErrorDialog() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_LaunchMultiplayerErrorDialog");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_LaunchMultiplayerErrorDialog"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_LaunchMultiplayerErrorDialog
void Oculus::Platform::Message::MessageType::_set_GroupPresence_LaunchMultiplayerErrorDialog(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_LaunchMultiplayerErrorDialog");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_LaunchMultiplayerErrorDialog", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_LaunchRejoinDialog
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_LaunchRejoinDialog() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_LaunchRejoinDialog");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_LaunchRejoinDialog"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_LaunchRejoinDialog
void Oculus::Platform::Message::MessageType::_set_GroupPresence_LaunchRejoinDialog(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_LaunchRejoinDialog");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_LaunchRejoinDialog", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_LaunchRosterPanel
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_LaunchRosterPanel() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_LaunchRosterPanel");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_LaunchRosterPanel"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_LaunchRosterPanel
void Oculus::Platform::Message::MessageType::_set_GroupPresence_LaunchRosterPanel(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_LaunchRosterPanel");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_LaunchRosterPanel", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SendInvites
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_SendInvites() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_SendInvites");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_SendInvites"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SendInvites
void Oculus::Platform::Message::MessageType::_set_GroupPresence_SendInvites(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_SendInvites");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_SendInvites", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_Set
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_Set() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_Set");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_Set"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_Set
void Oculus::Platform::Message::MessageType::_set_GroupPresence_Set(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_Set");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_Set", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SetDestination
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_SetDestination() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_SetDestination");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_SetDestination"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SetDestination
void Oculus::Platform::Message::MessageType::_set_GroupPresence_SetDestination(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_SetDestination");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_SetDestination", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SetIsJoinable
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_SetIsJoinable() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_SetIsJoinable");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_SetIsJoinable"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SetIsJoinable
void Oculus::Platform::Message::MessageType::_set_GroupPresence_SetIsJoinable(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_SetIsJoinable");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_SetIsJoinable", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SetLobbySession
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_SetLobbySession() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_SetLobbySession");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_SetLobbySession"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SetLobbySession
void Oculus::Platform::Message::MessageType::_set_GroupPresence_SetLobbySession(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_SetLobbySession");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_SetLobbySession", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SetMatchSession
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_GroupPresence_SetMatchSession() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_GroupPresence_SetMatchSession");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "GroupPresence_SetMatchSession"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType GroupPresence_SetMatchSession
void Oculus::Platform::Message::MessageType::_set_GroupPresence_SetMatchSession(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_GroupPresence_SetMatchSession");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "GroupPresence_SetMatchSession", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_ConsumePurchase
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_IAP_ConsumePurchase() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_IAP_ConsumePurchase");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "IAP_ConsumePurchase"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_ConsumePurchase
void Oculus::Platform::Message::MessageType::_set_IAP_ConsumePurchase(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_IAP_ConsumePurchase");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "IAP_ConsumePurchase", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetNextProductArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_IAP_GetNextProductArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_IAP_GetNextProductArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "IAP_GetNextProductArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetNextProductArrayPage
void Oculus::Platform::Message::MessageType::_set_IAP_GetNextProductArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_IAP_GetNextProductArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "IAP_GetNextProductArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetNextPurchaseArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_IAP_GetNextPurchaseArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_IAP_GetNextPurchaseArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "IAP_GetNextPurchaseArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetNextPurchaseArrayPage
void Oculus::Platform::Message::MessageType::_set_IAP_GetNextPurchaseArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_IAP_GetNextPurchaseArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "IAP_GetNextPurchaseArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetProductsBySKU
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_IAP_GetProductsBySKU() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_IAP_GetProductsBySKU");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "IAP_GetProductsBySKU"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetProductsBySKU
void Oculus::Platform::Message::MessageType::_set_IAP_GetProductsBySKU(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_IAP_GetProductsBySKU");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "IAP_GetProductsBySKU", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetViewerPurchases
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_IAP_GetViewerPurchases() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_IAP_GetViewerPurchases");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "IAP_GetViewerPurchases"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetViewerPurchases
void Oculus::Platform::Message::MessageType::_set_IAP_GetViewerPurchases(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_IAP_GetViewerPurchases");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "IAP_GetViewerPurchases", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetViewerPurchasesDurableCache
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_IAP_GetViewerPurchasesDurableCache() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_IAP_GetViewerPurchasesDurableCache");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "IAP_GetViewerPurchasesDurableCache"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_GetViewerPurchasesDurableCache
void Oculus::Platform::Message::MessageType::_set_IAP_GetViewerPurchasesDurableCache(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_IAP_GetViewerPurchasesDurableCache");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "IAP_GetViewerPurchasesDurableCache", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_LaunchCheckoutFlow
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_IAP_LaunchCheckoutFlow() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_IAP_LaunchCheckoutFlow");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "IAP_LaunchCheckoutFlow"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType IAP_LaunchCheckoutFlow
void Oculus::Platform::Message::MessageType::_set_IAP_LaunchCheckoutFlow(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_IAP_LaunchCheckoutFlow");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "IAP_LaunchCheckoutFlow", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType LanguagePack_GetCurrent
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_LanguagePack_GetCurrent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_LanguagePack_GetCurrent");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "LanguagePack_GetCurrent"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType LanguagePack_GetCurrent
void Oculus::Platform::Message::MessageType::_set_LanguagePack_GetCurrent(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_LanguagePack_GetCurrent");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "LanguagePack_GetCurrent", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType LanguagePack_SetCurrent
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_LanguagePack_SetCurrent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_LanguagePack_SetCurrent");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "LanguagePack_SetCurrent"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType LanguagePack_SetCurrent
void Oculus::Platform::Message::MessageType::_set_LanguagePack_SetCurrent(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_LanguagePack_SetCurrent");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "LanguagePack_SetCurrent", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_Get
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Leaderboard_Get() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Leaderboard_Get");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Leaderboard_Get"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_Get
void Oculus::Platform::Message::MessageType::_set_Leaderboard_Get(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Leaderboard_Get");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Leaderboard_Get", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetEntries
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Leaderboard_GetEntries() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Leaderboard_GetEntries");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Leaderboard_GetEntries"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetEntries
void Oculus::Platform::Message::MessageType::_set_Leaderboard_GetEntries(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Leaderboard_GetEntries");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Leaderboard_GetEntries", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetEntriesAfterRank
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Leaderboard_GetEntriesAfterRank() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Leaderboard_GetEntriesAfterRank");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Leaderboard_GetEntriesAfterRank"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetEntriesAfterRank
void Oculus::Platform::Message::MessageType::_set_Leaderboard_GetEntriesAfterRank(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Leaderboard_GetEntriesAfterRank");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Leaderboard_GetEntriesAfterRank", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetEntriesByIds
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Leaderboard_GetEntriesByIds() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Leaderboard_GetEntriesByIds");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Leaderboard_GetEntriesByIds"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetEntriesByIds
void Oculus::Platform::Message::MessageType::_set_Leaderboard_GetEntriesByIds(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Leaderboard_GetEntriesByIds");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Leaderboard_GetEntriesByIds", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetNextEntries
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Leaderboard_GetNextEntries() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Leaderboard_GetNextEntries");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Leaderboard_GetNextEntries"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetNextEntries
void Oculus::Platform::Message::MessageType::_set_Leaderboard_GetNextEntries(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Leaderboard_GetNextEntries");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Leaderboard_GetNextEntries", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetNextLeaderboardArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Leaderboard_GetNextLeaderboardArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Leaderboard_GetNextLeaderboardArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Leaderboard_GetNextLeaderboardArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetNextLeaderboardArrayPage
void Oculus::Platform::Message::MessageType::_set_Leaderboard_GetNextLeaderboardArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Leaderboard_GetNextLeaderboardArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Leaderboard_GetNextLeaderboardArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetPreviousEntries
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Leaderboard_GetPreviousEntries() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Leaderboard_GetPreviousEntries");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Leaderboard_GetPreviousEntries"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_GetPreviousEntries
void Oculus::Platform::Message::MessageType::_set_Leaderboard_GetPreviousEntries(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Leaderboard_GetPreviousEntries");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Leaderboard_GetPreviousEntries", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_WriteEntry
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Leaderboard_WriteEntry() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Leaderboard_WriteEntry");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Leaderboard_WriteEntry"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_WriteEntry
void Oculus::Platform::Message::MessageType::_set_Leaderboard_WriteEntry(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Leaderboard_WriteEntry");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Leaderboard_WriteEntry", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_WriteEntryWithSupplementaryMetric
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Leaderboard_WriteEntryWithSupplementaryMetric() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Leaderboard_WriteEntryWithSupplementaryMetric");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Leaderboard_WriteEntryWithSupplementaryMetric"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Leaderboard_WriteEntryWithSupplementaryMetric
void Oculus::Platform::Message::MessageType::_set_Leaderboard_WriteEntryWithSupplementaryMetric(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Leaderboard_WriteEntryWithSupplementaryMetric");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Leaderboard_WriteEntryWithSupplementaryMetric", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Browse
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_Browse() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_Browse");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_Browse"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Browse
void Oculus::Platform::Message::MessageType::_set_Matchmaking_Browse(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_Browse");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_Browse", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Browse2
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_Browse2() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_Browse2");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_Browse2"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Browse2
void Oculus::Platform::Message::MessageType::_set_Matchmaking_Browse2(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_Browse2");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_Browse2", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Cancel
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_Cancel() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_Cancel");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_Cancel"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Cancel
void Oculus::Platform::Message::MessageType::_set_Matchmaking_Cancel(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_Cancel");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_Cancel", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Cancel2
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_Cancel2() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_Cancel2");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_Cancel2"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Cancel2
void Oculus::Platform::Message::MessageType::_set_Matchmaking_Cancel2(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_Cancel2");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_Cancel2", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_CreateAndEnqueueRoom
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_CreateAndEnqueueRoom() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_CreateAndEnqueueRoom");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_CreateAndEnqueueRoom"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_CreateAndEnqueueRoom
void Oculus::Platform::Message::MessageType::_set_Matchmaking_CreateAndEnqueueRoom(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_CreateAndEnqueueRoom");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_CreateAndEnqueueRoom", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_CreateAndEnqueueRoom2
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_CreateAndEnqueueRoom2() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_CreateAndEnqueueRoom2");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_CreateAndEnqueueRoom2"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_CreateAndEnqueueRoom2
void Oculus::Platform::Message::MessageType::_set_Matchmaking_CreateAndEnqueueRoom2(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_CreateAndEnqueueRoom2");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_CreateAndEnqueueRoom2", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_CreateRoom
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_CreateRoom() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_CreateRoom");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_CreateRoom"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_CreateRoom
void Oculus::Platform::Message::MessageType::_set_Matchmaking_CreateRoom(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_CreateRoom");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_CreateRoom", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_CreateRoom2
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_CreateRoom2() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_CreateRoom2");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_CreateRoom2"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_CreateRoom2
void Oculus::Platform::Message::MessageType::_set_Matchmaking_CreateRoom2(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_CreateRoom2");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_CreateRoom2", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Enqueue
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_Enqueue() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_Enqueue");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_Enqueue"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Enqueue
void Oculus::Platform::Message::MessageType::_set_Matchmaking_Enqueue(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_Enqueue");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_Enqueue", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Enqueue2
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_Enqueue2() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_Enqueue2");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_Enqueue2"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_Enqueue2
void Oculus::Platform::Message::MessageType::_set_Matchmaking_Enqueue2(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_Enqueue2");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_Enqueue2", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_EnqueueRoom
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_EnqueueRoom() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_EnqueueRoom");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_EnqueueRoom"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_EnqueueRoom
void Oculus::Platform::Message::MessageType::_set_Matchmaking_EnqueueRoom(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_EnqueueRoom");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_EnqueueRoom", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_EnqueueRoom2
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_EnqueueRoom2() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_EnqueueRoom2");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_EnqueueRoom2"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_EnqueueRoom2
void Oculus::Platform::Message::MessageType::_set_Matchmaking_EnqueueRoom2(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_EnqueueRoom2");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_EnqueueRoom2", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_GetAdminSnapshot
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_GetAdminSnapshot() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_GetAdminSnapshot");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_GetAdminSnapshot"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_GetAdminSnapshot
void Oculus::Platform::Message::MessageType::_set_Matchmaking_GetAdminSnapshot(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_GetAdminSnapshot");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_GetAdminSnapshot", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_GetStats
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_GetStats() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_GetStats");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_GetStats"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_GetStats
void Oculus::Platform::Message::MessageType::_set_Matchmaking_GetStats(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_GetStats");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_GetStats", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_JoinRoom
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_JoinRoom() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_JoinRoom");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_JoinRoom"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_JoinRoom
void Oculus::Platform::Message::MessageType::_set_Matchmaking_JoinRoom(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_JoinRoom");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_JoinRoom", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_ReportResultInsecure
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_ReportResultInsecure() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_ReportResultInsecure");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_ReportResultInsecure"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_ReportResultInsecure
void Oculus::Platform::Message::MessageType::_set_Matchmaking_ReportResultInsecure(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_ReportResultInsecure");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_ReportResultInsecure", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_StartMatch
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Matchmaking_StartMatch() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Matchmaking_StartMatch");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Matchmaking_StartMatch"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Matchmaking_StartMatch
void Oculus::Platform::Message::MessageType::_set_Matchmaking_StartMatch(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Matchmaking_StartMatch");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Matchmaking_StartMatch", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Media_ShareToFacebook
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Media_ShareToFacebook() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Media_ShareToFacebook");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Media_ShareToFacebook"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Media_ShareToFacebook
void Oculus::Platform::Message::MessageType::_set_Media_ShareToFacebook(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Media_ShareToFacebook");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Media_ShareToFacebook", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GetNextRoomInviteNotificationArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_GetNextRoomInviteNotificationArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_GetNextRoomInviteNotificationArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_GetNextRoomInviteNotificationArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GetNextRoomInviteNotificationArrayPage
void Oculus::Platform::Message::MessageType::_set_Notification_GetNextRoomInviteNotificationArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_GetNextRoomInviteNotificationArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_GetNextRoomInviteNotificationArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GetRoomInvites
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_GetRoomInvites() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_GetRoomInvites");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_GetRoomInvites"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GetRoomInvites
void Oculus::Platform::Message::MessageType::_set_Notification_GetRoomInvites(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_GetRoomInvites");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_GetRoomInvites", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_MarkAsRead
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_MarkAsRead() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_MarkAsRead");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_MarkAsRead"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_MarkAsRead
void Oculus::Platform::Message::MessageType::_set_Notification_MarkAsRead(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_MarkAsRead");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_MarkAsRead", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Party_GetCurrent
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Party_GetCurrent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Party_GetCurrent");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Party_GetCurrent"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Party_GetCurrent
void Oculus::Platform::Message::MessageType::_set_Party_GetCurrent(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Party_GetCurrent");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Party_GetCurrent", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType RichPresence_Clear
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_RichPresence_Clear() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_RichPresence_Clear");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "RichPresence_Clear"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType RichPresence_Clear
void Oculus::Platform::Message::MessageType::_set_RichPresence_Clear(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_RichPresence_Clear");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "RichPresence_Clear", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType RichPresence_GetDestinations
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_RichPresence_GetDestinations() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_RichPresence_GetDestinations");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "RichPresence_GetDestinations"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType RichPresence_GetDestinations
void Oculus::Platform::Message::MessageType::_set_RichPresence_GetDestinations(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_RichPresence_GetDestinations");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "RichPresence_GetDestinations", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType RichPresence_GetNextDestinationArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_RichPresence_GetNextDestinationArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_RichPresence_GetNextDestinationArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "RichPresence_GetNextDestinationArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType RichPresence_GetNextDestinationArrayPage
void Oculus::Platform::Message::MessageType::_set_RichPresence_GetNextDestinationArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_RichPresence_GetNextDestinationArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "RichPresence_GetNextDestinationArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType RichPresence_Set
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_RichPresence_Set() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_RichPresence_Set");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "RichPresence_Set"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType RichPresence_Set
void Oculus::Platform::Message::MessageType::_set_RichPresence_Set(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_RichPresence_Set");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "RichPresence_Set", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_CreateAndJoinPrivate
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_CreateAndJoinPrivate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_CreateAndJoinPrivate");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_CreateAndJoinPrivate"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_CreateAndJoinPrivate
void Oculus::Platform::Message::MessageType::_set_Room_CreateAndJoinPrivate(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_CreateAndJoinPrivate");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_CreateAndJoinPrivate", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_CreateAndJoinPrivate2
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_CreateAndJoinPrivate2() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_CreateAndJoinPrivate2");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_CreateAndJoinPrivate2"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_CreateAndJoinPrivate2
void Oculus::Platform::Message::MessageType::_set_Room_CreateAndJoinPrivate2(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_CreateAndJoinPrivate2");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_CreateAndJoinPrivate2", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_Get
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_Get() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_Get");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_Get"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_Get
void Oculus::Platform::Message::MessageType::_set_Room_Get(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_Get");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_Get", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetCurrent
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_GetCurrent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_GetCurrent");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_GetCurrent"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetCurrent
void Oculus::Platform::Message::MessageType::_set_Room_GetCurrent(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_GetCurrent");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_GetCurrent", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetCurrentForUser
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_GetCurrentForUser() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_GetCurrentForUser");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_GetCurrentForUser"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetCurrentForUser
void Oculus::Platform::Message::MessageType::_set_Room_GetCurrentForUser(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_GetCurrentForUser");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_GetCurrentForUser", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetInvitableUsers
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_GetInvitableUsers() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_GetInvitableUsers");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_GetInvitableUsers"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetInvitableUsers
void Oculus::Platform::Message::MessageType::_set_Room_GetInvitableUsers(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_GetInvitableUsers");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_GetInvitableUsers", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetInvitableUsers2
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_GetInvitableUsers2() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_GetInvitableUsers2");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_GetInvitableUsers2"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetInvitableUsers2
void Oculus::Platform::Message::MessageType::_set_Room_GetInvitableUsers2(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_GetInvitableUsers2");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_GetInvitableUsers2", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetModeratedRooms
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_GetModeratedRooms() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_GetModeratedRooms");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_GetModeratedRooms"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetModeratedRooms
void Oculus::Platform::Message::MessageType::_set_Room_GetModeratedRooms(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_GetModeratedRooms");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_GetModeratedRooms", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetNextRoomArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_GetNextRoomArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_GetNextRoomArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_GetNextRoomArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_GetNextRoomArrayPage
void Oculus::Platform::Message::MessageType::_set_Room_GetNextRoomArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_GetNextRoomArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_GetNextRoomArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_InviteUser
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_InviteUser() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_InviteUser");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_InviteUser"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_InviteUser
void Oculus::Platform::Message::MessageType::_set_Room_InviteUser(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_InviteUser");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_InviteUser", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_Join
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_Join() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_Join");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_Join"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_Join
void Oculus::Platform::Message::MessageType::_set_Room_Join(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_Join");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_Join", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_Join2
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_Join2() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_Join2");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_Join2"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_Join2
void Oculus::Platform::Message::MessageType::_set_Room_Join2(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_Join2");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_Join2", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_KickUser
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_KickUser() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_KickUser");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_KickUser"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_KickUser
void Oculus::Platform::Message::MessageType::_set_Room_KickUser(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_KickUser");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_KickUser", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_LaunchInvitableUserFlow
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_LaunchInvitableUserFlow() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_LaunchInvitableUserFlow");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_LaunchInvitableUserFlow"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_LaunchInvitableUserFlow
void Oculus::Platform::Message::MessageType::_set_Room_LaunchInvitableUserFlow(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_LaunchInvitableUserFlow");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_LaunchInvitableUserFlow", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_Leave
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_Leave() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_Leave");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_Leave"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_Leave
void Oculus::Platform::Message::MessageType::_set_Room_Leave(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_Leave");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_Leave", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_SetDescription
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_SetDescription() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_SetDescription");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_SetDescription"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_SetDescription
void Oculus::Platform::Message::MessageType::_set_Room_SetDescription(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_SetDescription");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_SetDescription", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_UpdateDataStore
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_UpdateDataStore() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_UpdateDataStore");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_UpdateDataStore"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_UpdateDataStore
void Oculus::Platform::Message::MessageType::_set_Room_UpdateDataStore(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_UpdateDataStore");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_UpdateDataStore", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_UpdateMembershipLockStatus
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_UpdateMembershipLockStatus() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_UpdateMembershipLockStatus");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_UpdateMembershipLockStatus"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_UpdateMembershipLockStatus
void Oculus::Platform::Message::MessageType::_set_Room_UpdateMembershipLockStatus(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_UpdateMembershipLockStatus");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_UpdateMembershipLockStatus", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_UpdateOwner
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_UpdateOwner() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_UpdateOwner");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_UpdateOwner"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_UpdateOwner
void Oculus::Platform::Message::MessageType::_set_Room_UpdateOwner(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_UpdateOwner");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_UpdateOwner", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_UpdatePrivateRoomJoinPolicy
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Room_UpdatePrivateRoomJoinPolicy() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Room_UpdatePrivateRoomJoinPolicy");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Room_UpdatePrivateRoomJoinPolicy"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Room_UpdatePrivateRoomJoinPolicy
void Oculus::Platform::Message::MessageType::_set_Room_UpdatePrivateRoomJoinPolicy(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Room_UpdatePrivateRoomJoinPolicy");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Room_UpdatePrivateRoomJoinPolicy", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PrivateDeleteEntryByKey
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_UserDataStore_PrivateDeleteEntryByKey() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_UserDataStore_PrivateDeleteEntryByKey");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "UserDataStore_PrivateDeleteEntryByKey"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PrivateDeleteEntryByKey
void Oculus::Platform::Message::MessageType::_set_UserDataStore_PrivateDeleteEntryByKey(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_UserDataStore_PrivateDeleteEntryByKey");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "UserDataStore_PrivateDeleteEntryByKey", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PrivateGetEntries
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_UserDataStore_PrivateGetEntries() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_UserDataStore_PrivateGetEntries");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "UserDataStore_PrivateGetEntries"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PrivateGetEntries
void Oculus::Platform::Message::MessageType::_set_UserDataStore_PrivateGetEntries(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_UserDataStore_PrivateGetEntries");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "UserDataStore_PrivateGetEntries", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PrivateGetEntryByKey
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_UserDataStore_PrivateGetEntryByKey() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_UserDataStore_PrivateGetEntryByKey");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "UserDataStore_PrivateGetEntryByKey"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PrivateGetEntryByKey
void Oculus::Platform::Message::MessageType::_set_UserDataStore_PrivateGetEntryByKey(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_UserDataStore_PrivateGetEntryByKey");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "UserDataStore_PrivateGetEntryByKey", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PrivateWriteEntry
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_UserDataStore_PrivateWriteEntry() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_UserDataStore_PrivateWriteEntry");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "UserDataStore_PrivateWriteEntry"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PrivateWriteEntry
void Oculus::Platform::Message::MessageType::_set_UserDataStore_PrivateWriteEntry(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_UserDataStore_PrivateWriteEntry");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "UserDataStore_PrivateWriteEntry", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PublicDeleteEntryByKey
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_UserDataStore_PublicDeleteEntryByKey() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_UserDataStore_PublicDeleteEntryByKey");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "UserDataStore_PublicDeleteEntryByKey"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PublicDeleteEntryByKey
void Oculus::Platform::Message::MessageType::_set_UserDataStore_PublicDeleteEntryByKey(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_UserDataStore_PublicDeleteEntryByKey");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "UserDataStore_PublicDeleteEntryByKey", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PublicGetEntries
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_UserDataStore_PublicGetEntries() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_UserDataStore_PublicGetEntries");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "UserDataStore_PublicGetEntries"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PublicGetEntries
void Oculus::Platform::Message::MessageType::_set_UserDataStore_PublicGetEntries(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_UserDataStore_PublicGetEntries");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "UserDataStore_PublicGetEntries", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PublicGetEntryByKey
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_UserDataStore_PublicGetEntryByKey() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_UserDataStore_PublicGetEntryByKey");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "UserDataStore_PublicGetEntryByKey"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PublicGetEntryByKey
void Oculus::Platform::Message::MessageType::_set_UserDataStore_PublicGetEntryByKey(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_UserDataStore_PublicGetEntryByKey");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "UserDataStore_PublicGetEntryByKey", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PublicWriteEntry
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_UserDataStore_PublicWriteEntry() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_UserDataStore_PublicWriteEntry");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "UserDataStore_PublicWriteEntry"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType UserDataStore_PublicWriteEntry
void Oculus::Platform::Message::MessageType::_set_UserDataStore_PublicWriteEntry(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_UserDataStore_PublicWriteEntry");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "UserDataStore_PublicWriteEntry", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_Get
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_Get() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_Get");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_Get"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_Get
void Oculus::Platform::Message::MessageType::_set_User_Get(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_Get");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_Get", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetAccessToken
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetAccessToken() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetAccessToken");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetAccessToken"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetAccessToken
void Oculus::Platform::Message::MessageType::_set_User_GetAccessToken(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetAccessToken");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetAccessToken", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetLoggedInUser
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetLoggedInUser() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetLoggedInUser");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetLoggedInUser"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetLoggedInUser
void Oculus::Platform::Message::MessageType::_set_User_GetLoggedInUser(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetLoggedInUser");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetLoggedInUser", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetLoggedInUserFriends
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetLoggedInUserFriends() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetLoggedInUserFriends");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetLoggedInUserFriends"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetLoggedInUserFriends
void Oculus::Platform::Message::MessageType::_set_User_GetLoggedInUserFriends(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetLoggedInUserFriends");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetLoggedInUserFriends", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetLoggedInUserFriendsAndRooms
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetLoggedInUserFriendsAndRooms() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetLoggedInUserFriendsAndRooms");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetLoggedInUserFriendsAndRooms"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetLoggedInUserFriendsAndRooms
void Oculus::Platform::Message::MessageType::_set_User_GetLoggedInUserFriendsAndRooms(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetLoggedInUserFriendsAndRooms");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetLoggedInUserFriendsAndRooms", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetLoggedInUserRecentlyMetUsersAndRooms
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetLoggedInUserRecentlyMetUsersAndRooms() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetLoggedInUserRecentlyMetUsersAndRooms");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetLoggedInUserRecentlyMetUsersAndRooms"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetLoggedInUserRecentlyMetUsersAndRooms
void Oculus::Platform::Message::MessageType::_set_User_GetLoggedInUserRecentlyMetUsersAndRooms(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetLoggedInUserRecentlyMetUsersAndRooms");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetLoggedInUserRecentlyMetUsersAndRooms", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetNextUserAndRoomArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetNextUserAndRoomArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetNextUserAndRoomArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetNextUserAndRoomArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetNextUserAndRoomArrayPage
void Oculus::Platform::Message::MessageType::_set_User_GetNextUserAndRoomArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetNextUserAndRoomArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetNextUserAndRoomArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetNextUserArrayPage
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetNextUserArrayPage() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetNextUserArrayPage");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetNextUserArrayPage"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetNextUserArrayPage
void Oculus::Platform::Message::MessageType::_set_User_GetNextUserArrayPage(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetNextUserArrayPage");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetNextUserArrayPage", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetOrgScopedID
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetOrgScopedID() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetOrgScopedID");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetOrgScopedID"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetOrgScopedID
void Oculus::Platform::Message::MessageType::_set_User_GetOrgScopedID(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetOrgScopedID");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetOrgScopedID", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetSdkAccounts
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetSdkAccounts() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetSdkAccounts");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetSdkAccounts"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetSdkAccounts
void Oculus::Platform::Message::MessageType::_set_User_GetSdkAccounts(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetSdkAccounts");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetSdkAccounts", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetUserProof
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_GetUserProof() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_GetUserProof");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_GetUserProof"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_GetUserProof
void Oculus::Platform::Message::MessageType::_set_User_GetUserProof(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_GetUserProof");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_GetUserProof", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_LaunchFriendRequestFlow
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_User_LaunchFriendRequestFlow() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_User_LaunchFriendRequestFlow");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "User_LaunchFriendRequestFlow"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType User_LaunchFriendRequestFlow
void Oculus::Platform::Message::MessageType::_set_User_LaunchFriendRequestFlow(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_User_LaunchFriendRequestFlow");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "User_LaunchFriendRequestFlow", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Voip_GetMicrophoneAvailability
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Voip_GetMicrophoneAvailability() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Voip_GetMicrophoneAvailability");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Voip_GetMicrophoneAvailability"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Voip_GetMicrophoneAvailability
void Oculus::Platform::Message::MessageType::_set_Voip_GetMicrophoneAvailability(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Voip_GetMicrophoneAvailability");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Voip_GetMicrophoneAvailability", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Voip_SetSystemVoipSuppressed
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Voip_SetSystemVoipSuppressed() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Voip_SetSystemVoipSuppressed");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Voip_SetSystemVoipSuppressed"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Voip_SetSystemVoipSuppressed
void Oculus::Platform::Message::MessageType::_set_Voip_SetSystemVoipSuppressed(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Voip_SetSystemVoipSuppressed");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Voip_SetSystemVoipSuppressed", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_ApplicationLifecycle_LaunchIntentChanged
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_ApplicationLifecycle_LaunchIntentChanged() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_ApplicationLifecycle_LaunchIntentChanged");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_ApplicationLifecycle_LaunchIntentChanged"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_ApplicationLifecycle_LaunchIntentChanged
void Oculus::Platform::Message::MessageType::_set_Notification_ApplicationLifecycle_LaunchIntentChanged(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_ApplicationLifecycle_LaunchIntentChanged");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_ApplicationLifecycle_LaunchIntentChanged", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_AssetFile_DownloadUpdate
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_AssetFile_DownloadUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_AssetFile_DownloadUpdate");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_AssetFile_DownloadUpdate"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_AssetFile_DownloadUpdate
void Oculus::Platform::Message::MessageType::_set_Notification_AssetFile_DownloadUpdate(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_AssetFile_DownloadUpdate");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_AssetFile_DownloadUpdate", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Cal_FinalizeApplication
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Cal_FinalizeApplication() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Cal_FinalizeApplication");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Cal_FinalizeApplication"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Cal_FinalizeApplication
void Oculus::Platform::Message::MessageType::_set_Notification_Cal_FinalizeApplication(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Cal_FinalizeApplication");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Cal_FinalizeApplication", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Cal_ProposeApplication
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Cal_ProposeApplication() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Cal_ProposeApplication");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Cal_ProposeApplication"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Cal_ProposeApplication
void Oculus::Platform::Message::MessageType::_set_Notification_Cal_ProposeApplication(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Cal_ProposeApplication");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Cal_ProposeApplication", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GroupPresence_InvitationsSent
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_GroupPresence_InvitationsSent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_GroupPresence_InvitationsSent");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_GroupPresence_InvitationsSent"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GroupPresence_InvitationsSent
void Oculus::Platform::Message::MessageType::_set_Notification_GroupPresence_InvitationsSent(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_GroupPresence_InvitationsSent");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_GroupPresence_InvitationsSent", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GroupPresence_JoinIntentReceived
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_GroupPresence_JoinIntentReceived() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_GroupPresence_JoinIntentReceived");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_GroupPresence_JoinIntentReceived"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GroupPresence_JoinIntentReceived
void Oculus::Platform::Message::MessageType::_set_Notification_GroupPresence_JoinIntentReceived(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_GroupPresence_JoinIntentReceived");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_GroupPresence_JoinIntentReceived", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GroupPresence_LeaveIntentReceived
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_GroupPresence_LeaveIntentReceived() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_GroupPresence_LeaveIntentReceived");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_GroupPresence_LeaveIntentReceived"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_GroupPresence_LeaveIntentReceived
void Oculus::Platform::Message::MessageType::_set_Notification_GroupPresence_LeaveIntentReceived(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_GroupPresence_LeaveIntentReceived");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_GroupPresence_LeaveIntentReceived", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_HTTP_Transfer
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_HTTP_Transfer() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_HTTP_Transfer");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_HTTP_Transfer"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_HTTP_Transfer
void Oculus::Platform::Message::MessageType::_set_Notification_HTTP_Transfer(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_HTTP_Transfer");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_HTTP_Transfer", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Livestreaming_StatusChange
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Livestreaming_StatusChange() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Livestreaming_StatusChange");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Livestreaming_StatusChange"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Livestreaming_StatusChange
void Oculus::Platform::Message::MessageType::_set_Notification_Livestreaming_StatusChange(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Livestreaming_StatusChange");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Livestreaming_StatusChange", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Matchmaking_MatchFound
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Matchmaking_MatchFound() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Matchmaking_MatchFound");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Matchmaking_MatchFound"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Matchmaking_MatchFound
void Oculus::Platform::Message::MessageType::_set_Notification_Matchmaking_MatchFound(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Matchmaking_MatchFound");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Matchmaking_MatchFound", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_NetSync_ConnectionStatusChanged
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_NetSync_ConnectionStatusChanged() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_NetSync_ConnectionStatusChanged");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_NetSync_ConnectionStatusChanged"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_NetSync_ConnectionStatusChanged
void Oculus::Platform::Message::MessageType::_set_Notification_NetSync_ConnectionStatusChanged(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_NetSync_ConnectionStatusChanged");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_NetSync_ConnectionStatusChanged", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_NetSync_SessionsChanged
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_NetSync_SessionsChanged() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_NetSync_SessionsChanged");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_NetSync_SessionsChanged"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_NetSync_SessionsChanged
void Oculus::Platform::Message::MessageType::_set_Notification_NetSync_SessionsChanged(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_NetSync_SessionsChanged");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_NetSync_SessionsChanged", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Networking_ConnectionStateChange
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Networking_ConnectionStateChange() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Networking_ConnectionStateChange");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Networking_ConnectionStateChange"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Networking_ConnectionStateChange
void Oculus::Platform::Message::MessageType::_set_Notification_Networking_ConnectionStateChange(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Networking_ConnectionStateChange");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Networking_ConnectionStateChange", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Networking_PeerConnectRequest
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Networking_PeerConnectRequest() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Networking_PeerConnectRequest");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Networking_PeerConnectRequest"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Networking_PeerConnectRequest
void Oculus::Platform::Message::MessageType::_set_Notification_Networking_PeerConnectRequest(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Networking_PeerConnectRequest");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Networking_PeerConnectRequest", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Networking_PingResult
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Networking_PingResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Networking_PingResult");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Networking_PingResult"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Networking_PingResult
void Oculus::Platform::Message::MessageType::_set_Notification_Networking_PingResult(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Networking_PingResult");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Networking_PingResult", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Party_PartyUpdate
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Party_PartyUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Party_PartyUpdate");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Party_PartyUpdate"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Party_PartyUpdate
void Oculus::Platform::Message::MessageType::_set_Notification_Party_PartyUpdate(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Party_PartyUpdate");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Party_PartyUpdate", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Room_InviteAccepted
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Room_InviteAccepted() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Room_InviteAccepted");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Room_InviteAccepted"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Room_InviteAccepted
void Oculus::Platform::Message::MessageType::_set_Notification_Room_InviteAccepted(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Room_InviteAccepted");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Room_InviteAccepted", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Room_InviteReceived
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Room_InviteReceived() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Room_InviteReceived");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Room_InviteReceived"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Room_InviteReceived
void Oculus::Platform::Message::MessageType::_set_Notification_Room_InviteReceived(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Room_InviteReceived");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Room_InviteReceived", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Room_RoomUpdate
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Room_RoomUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Room_RoomUpdate");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Room_RoomUpdate"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Room_RoomUpdate
void Oculus::Platform::Message::MessageType::_set_Notification_Room_RoomUpdate(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Room_RoomUpdate");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Room_RoomUpdate", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Session_InvitationsSent
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Session_InvitationsSent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Session_InvitationsSent");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Session_InvitationsSent"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Session_InvitationsSent
void Oculus::Platform::Message::MessageType::_set_Notification_Session_InvitationsSent(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Session_InvitationsSent");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Session_InvitationsSent", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Voip_ConnectRequest
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Voip_ConnectRequest() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Voip_ConnectRequest");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Voip_ConnectRequest"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Voip_ConnectRequest
void Oculus::Platform::Message::MessageType::_set_Notification_Voip_ConnectRequest(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Voip_ConnectRequest");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Voip_ConnectRequest", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Voip_MicrophoneAvailabilityStateUpdate
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Voip_MicrophoneAvailabilityStateUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Voip_MicrophoneAvailabilityStateUpdate");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Voip_MicrophoneAvailabilityStateUpdate"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Voip_MicrophoneAvailabilityStateUpdate
void Oculus::Platform::Message::MessageType::_set_Notification_Voip_MicrophoneAvailabilityStateUpdate(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Voip_MicrophoneAvailabilityStateUpdate");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Voip_MicrophoneAvailabilityStateUpdate", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Voip_StateChange
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Voip_StateChange() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Voip_StateChange");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Voip_StateChange"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Voip_StateChange
void Oculus::Platform::Message::MessageType::_set_Notification_Voip_StateChange(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Voip_StateChange");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Voip_StateChange", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Voip_SystemVoipState
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Voip_SystemVoipState() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Voip_SystemVoipState");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Voip_SystemVoipState"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Voip_SystemVoipState
void Oculus::Platform::Message::MessageType::_set_Notification_Voip_SystemVoipState(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Voip_SystemVoipState");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Voip_SystemVoipState", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Vrcamera_GetDataChannelMessageUpdate
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Vrcamera_GetDataChannelMessageUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Vrcamera_GetDataChannelMessageUpdate");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Vrcamera_GetDataChannelMessageUpdate"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Vrcamera_GetDataChannelMessageUpdate
void Oculus::Platform::Message::MessageType::_set_Notification_Vrcamera_GetDataChannelMessageUpdate(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Vrcamera_GetDataChannelMessageUpdate");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Vrcamera_GetDataChannelMessageUpdate", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Vrcamera_GetSurfaceUpdate
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Notification_Vrcamera_GetSurfaceUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Notification_Vrcamera_GetSurfaceUpdate");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Notification_Vrcamera_GetSurfaceUpdate"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Notification_Vrcamera_GetSurfaceUpdate
void Oculus::Platform::Message::MessageType::_set_Notification_Vrcamera_GetSurfaceUpdate(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Notification_Vrcamera_GetSurfaceUpdate");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Notification_Vrcamera_GetSurfaceUpdate", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Platform_InitializeWithAccessToken
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Platform_InitializeWithAccessToken() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Platform_InitializeWithAccessToken");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Platform_InitializeWithAccessToken"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Platform_InitializeWithAccessToken
void Oculus::Platform::Message::MessageType::_set_Platform_InitializeWithAccessToken(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Platform_InitializeWithAccessToken");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Platform_InitializeWithAccessToken", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Platform_InitializeStandaloneOculus
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Platform_InitializeStandaloneOculus() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Platform_InitializeStandaloneOculus");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Platform_InitializeStandaloneOculus"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Platform_InitializeStandaloneOculus
void Oculus::Platform::Message::MessageType::_set_Platform_InitializeStandaloneOculus(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Platform_InitializeStandaloneOculus");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Platform_InitializeStandaloneOculus", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Platform_InitializeAndroidAsynchronous
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Platform_InitializeAndroidAsynchronous() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Platform_InitializeAndroidAsynchronous");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Platform_InitializeAndroidAsynchronous"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Platform_InitializeAndroidAsynchronous
void Oculus::Platform::Message::MessageType::_set_Platform_InitializeAndroidAsynchronous(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Platform_InitializeAndroidAsynchronous");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Platform_InitializeAndroidAsynchronous", value));
}
// Autogenerated static field getter
// Get static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Platform_InitializeWindowsAsynchronous
::Oculus::Platform::Message::MessageType Oculus::Platform::Message::MessageType::_get_Platform_InitializeWindowsAsynchronous() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_get_Platform_InitializeWindowsAsynchronous");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Oculus::Platform::Message::MessageType>("Oculus.Platform", "Message/MessageType", "Platform_InitializeWindowsAsynchronous"));
}
// Autogenerated static field setter
// Set static field: static public Oculus.Platform.Message/Oculus.Platform.MessageType Platform_InitializeWindowsAsynchronous
void Oculus::Platform::Message::MessageType::_set_Platform_InitializeWindowsAsynchronous(::Oculus::Platform::Message::MessageType value) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::_set_Platform_InitializeWindowsAsynchronous");
THROW_UNLESS(il2cpp_utils::SetFieldValue("Oculus.Platform", "Message/MessageType", "Platform_InitializeWindowsAsynchronous", value));
}
// Autogenerated instance field getter
// Get instance field: public System.UInt32 value__
uint& Oculus::Platform::Message::MessageType::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::MessageType::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
// Including type: Oculus.Platform.Message/Oculus.Platform.ExtraMessageTypesHandler
#include "Oculus/Platform/Message_ExtraMessageTypesHandler.hpp"
// Including type: System.IAsyncResult
#include "System/IAsyncResult.hpp"
// Including type: System.AsyncCallback
#include "System/AsyncCallback.hpp"
// Including type: Oculus.Platform.Message/Oculus.Platform.MessageType
#include "Oculus/Platform/Message.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.Message/Oculus.Platform.ExtraMessageTypesHandler.Invoke
::Oculus::Platform::Message* Oculus::Platform::Message::ExtraMessageTypesHandler::Invoke(::System::IntPtr messageHandle, ::Oculus::Platform::Message::MessageType message_type) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::ExtraMessageTypesHandler::Invoke");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Invoke", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(messageHandle), ::il2cpp_utils::ExtractType(message_type)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Message*, false>(this, ___internal__method, messageHandle, message_type);
}
// Autogenerated method: Oculus.Platform.Message/Oculus.Platform.ExtraMessageTypesHandler.BeginInvoke
::System::IAsyncResult* Oculus::Platform::Message::ExtraMessageTypesHandler::BeginInvoke(::System::IntPtr messageHandle, ::Oculus::Platform::Message::MessageType message_type, ::System::AsyncCallback* callback, ::Il2CppObject* object) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::ExtraMessageTypesHandler::BeginInvoke");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "BeginInvoke", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(messageHandle), ::il2cpp_utils::ExtractType(message_type), ::il2cpp_utils::ExtractType(callback), ::il2cpp_utils::ExtractType(object)})));
return ::il2cpp_utils::RunMethodRethrow<::System::IAsyncResult*, false>(this, ___internal__method, messageHandle, message_type, callback, object);
}
// Autogenerated method: Oculus.Platform.Message/Oculus.Platform.ExtraMessageTypesHandler.EndInvoke
::Oculus::Platform::Message* Oculus::Platform::Message::ExtraMessageTypesHandler::EndInvoke(::System::IAsyncResult* result) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::Message::ExtraMessageTypesHandler::EndInvoke");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "EndInvoke", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(result)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Message*, false>(this, ___internal__method, result);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAbuseReportRecording
#include "Oculus/Platform/MessageWithAbuseReportRecording.hpp"
// Including type: Oculus.Platform.Models.AbuseReportRecording
#include "Oculus/Platform/Models/AbuseReportRecording.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAbuseReportRecording.GetDataFromMessage
::Oculus::Platform::Models::AbuseReportRecording* Oculus::Platform::MessageWithAbuseReportRecording::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAbuseReportRecording::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AbuseReportRecording*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAbuseReportRecording.GetAbuseReportRecording
::Oculus::Platform::Models::AbuseReportRecording* Oculus::Platform::MessageWithAbuseReportRecording::GetAbuseReportRecording() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAbuseReportRecording::GetAbuseReportRecording");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAbuseReportRecording", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AbuseReportRecording*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAchievementDefinitions
#include "Oculus/Platform/MessageWithAchievementDefinitions.hpp"
// Including type: Oculus.Platform.Models.AchievementDefinitionList
#include "Oculus/Platform/Models/AchievementDefinitionList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAchievementDefinitions.GetDataFromMessage
::Oculus::Platform::Models::AchievementDefinitionList* Oculus::Platform::MessageWithAchievementDefinitions::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAchievementDefinitions::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AchievementDefinitionList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAchievementDefinitions.GetAchievementDefinitions
::Oculus::Platform::Models::AchievementDefinitionList* Oculus::Platform::MessageWithAchievementDefinitions::GetAchievementDefinitions() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAchievementDefinitions::GetAchievementDefinitions");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAchievementDefinitions", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AchievementDefinitionList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAchievementProgressList
#include "Oculus/Platform/MessageWithAchievementProgressList.hpp"
// Including type: Oculus.Platform.Models.AchievementProgressList
#include "Oculus/Platform/Models/AchievementProgressList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAchievementProgressList.GetDataFromMessage
::Oculus::Platform::Models::AchievementProgressList* Oculus::Platform::MessageWithAchievementProgressList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAchievementProgressList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AchievementProgressList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAchievementProgressList.GetAchievementProgressList
::Oculus::Platform::Models::AchievementProgressList* Oculus::Platform::MessageWithAchievementProgressList::GetAchievementProgressList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAchievementProgressList::GetAchievementProgressList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAchievementProgressList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AchievementProgressList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAchievementUpdate
#include "Oculus/Platform/MessageWithAchievementUpdate.hpp"
// Including type: Oculus.Platform.Models.AchievementUpdate
#include "Oculus/Platform/Models/AchievementUpdate.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAchievementUpdate.GetDataFromMessage
::Oculus::Platform::Models::AchievementUpdate* Oculus::Platform::MessageWithAchievementUpdate::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAchievementUpdate::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AchievementUpdate*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAchievementUpdate.GetAchievementUpdate
::Oculus::Platform::Models::AchievementUpdate* Oculus::Platform::MessageWithAchievementUpdate::GetAchievementUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAchievementUpdate::GetAchievementUpdate");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAchievementUpdate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AchievementUpdate*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithApplicationInviteList
#include "Oculus/Platform/MessageWithApplicationInviteList.hpp"
// Including type: Oculus.Platform.Models.ApplicationInviteList
#include "Oculus/Platform/Models/ApplicationInviteList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithApplicationInviteList.GetDataFromMessage
::Oculus::Platform::Models::ApplicationInviteList* Oculus::Platform::MessageWithApplicationInviteList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithApplicationInviteList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ApplicationInviteList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithApplicationInviteList.GetApplicationInviteList
::Oculus::Platform::Models::ApplicationInviteList* Oculus::Platform::MessageWithApplicationInviteList::GetApplicationInviteList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithApplicationInviteList::GetApplicationInviteList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetApplicationInviteList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ApplicationInviteList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithApplicationVersion
#include "Oculus/Platform/MessageWithApplicationVersion.hpp"
// Including type: Oculus.Platform.Models.ApplicationVersion
#include "Oculus/Platform/Models/ApplicationVersion.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithApplicationVersion.GetDataFromMessage
::Oculus::Platform::Models::ApplicationVersion* Oculus::Platform::MessageWithApplicationVersion::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithApplicationVersion::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ApplicationVersion*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithApplicationVersion.GetApplicationVersion
::Oculus::Platform::Models::ApplicationVersion* Oculus::Platform::MessageWithApplicationVersion::GetApplicationVersion() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithApplicationVersion::GetApplicationVersion");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetApplicationVersion", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ApplicationVersion*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAssetDetails
#include "Oculus/Platform/MessageWithAssetDetails.hpp"
// Including type: Oculus.Platform.Models.AssetDetails
#include "Oculus/Platform/Models/AssetDetails.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAssetDetails.GetDataFromMessage
::Oculus::Platform::Models::AssetDetails* Oculus::Platform::MessageWithAssetDetails::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetDetails::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetDetails*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAssetDetails.GetAssetDetails
::Oculus::Platform::Models::AssetDetails* Oculus::Platform::MessageWithAssetDetails::GetAssetDetails() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetDetails::GetAssetDetails");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetDetails", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetDetails*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAssetDetailsList
#include "Oculus/Platform/MessageWithAssetDetailsList.hpp"
// Including type: Oculus.Platform.Models.AssetDetailsList
#include "Oculus/Platform/Models/AssetDetailsList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAssetDetailsList.GetDataFromMessage
::Oculus::Platform::Models::AssetDetailsList* Oculus::Platform::MessageWithAssetDetailsList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetDetailsList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetDetailsList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAssetDetailsList.GetAssetDetailsList
::Oculus::Platform::Models::AssetDetailsList* Oculus::Platform::MessageWithAssetDetailsList::GetAssetDetailsList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetDetailsList::GetAssetDetailsList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetDetailsList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetDetailsList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAssetFileDeleteResult
#include "Oculus/Platform/MessageWithAssetFileDeleteResult.hpp"
// Including type: Oculus.Platform.Models.AssetFileDeleteResult
#include "Oculus/Platform/Models/AssetFileDeleteResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAssetFileDeleteResult.GetDataFromMessage
::Oculus::Platform::Models::AssetFileDeleteResult* Oculus::Platform::MessageWithAssetFileDeleteResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetFileDeleteResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDeleteResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAssetFileDeleteResult.GetAssetFileDeleteResult
::Oculus::Platform::Models::AssetFileDeleteResult* Oculus::Platform::MessageWithAssetFileDeleteResult::GetAssetFileDeleteResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetFileDeleteResult::GetAssetFileDeleteResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetFileDeleteResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDeleteResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAssetFileDownloadCancelResult
#include "Oculus/Platform/MessageWithAssetFileDownloadCancelResult.hpp"
// Including type: Oculus.Platform.Models.AssetFileDownloadCancelResult
#include "Oculus/Platform/Models/AssetFileDownloadCancelResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAssetFileDownloadCancelResult.GetDataFromMessage
::Oculus::Platform::Models::AssetFileDownloadCancelResult* Oculus::Platform::MessageWithAssetFileDownloadCancelResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetFileDownloadCancelResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDownloadCancelResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAssetFileDownloadCancelResult.GetAssetFileDownloadCancelResult
::Oculus::Platform::Models::AssetFileDownloadCancelResult* Oculus::Platform::MessageWithAssetFileDownloadCancelResult::GetAssetFileDownloadCancelResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetFileDownloadCancelResult::GetAssetFileDownloadCancelResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetFileDownloadCancelResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDownloadCancelResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAssetFileDownloadResult
#include "Oculus/Platform/MessageWithAssetFileDownloadResult.hpp"
// Including type: Oculus.Platform.Models.AssetFileDownloadResult
#include "Oculus/Platform/Models/AssetFileDownloadResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAssetFileDownloadResult.GetDataFromMessage
::Oculus::Platform::Models::AssetFileDownloadResult* Oculus::Platform::MessageWithAssetFileDownloadResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetFileDownloadResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDownloadResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAssetFileDownloadResult.GetAssetFileDownloadResult
::Oculus::Platform::Models::AssetFileDownloadResult* Oculus::Platform::MessageWithAssetFileDownloadResult::GetAssetFileDownloadResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetFileDownloadResult::GetAssetFileDownloadResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetFileDownloadResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDownloadResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithAssetFileDownloadUpdate
#include "Oculus/Platform/MessageWithAssetFileDownloadUpdate.hpp"
// Including type: Oculus.Platform.Models.AssetFileDownloadUpdate
#include "Oculus/Platform/Models/AssetFileDownloadUpdate.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithAssetFileDownloadUpdate.GetDataFromMessage
::Oculus::Platform::Models::AssetFileDownloadUpdate* Oculus::Platform::MessageWithAssetFileDownloadUpdate::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetFileDownloadUpdate::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDownloadUpdate*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithAssetFileDownloadUpdate.GetAssetFileDownloadUpdate
::Oculus::Platform::Models::AssetFileDownloadUpdate* Oculus::Platform::MessageWithAssetFileDownloadUpdate::GetAssetFileDownloadUpdate() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithAssetFileDownloadUpdate::GetAssetFileDownloadUpdate");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetFileDownloadUpdate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::AssetFileDownloadUpdate*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithCalApplicationFinalized
#include "Oculus/Platform/MessageWithCalApplicationFinalized.hpp"
// Including type: Oculus.Platform.Models.CalApplicationFinalized
#include "Oculus/Platform/Models/CalApplicationFinalized.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithCalApplicationFinalized.GetDataFromMessage
::Oculus::Platform::Models::CalApplicationFinalized* Oculus::Platform::MessageWithCalApplicationFinalized::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCalApplicationFinalized::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CalApplicationFinalized*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithCalApplicationFinalized.GetCalApplicationFinalized
::Oculus::Platform::Models::CalApplicationFinalized* Oculus::Platform::MessageWithCalApplicationFinalized::GetCalApplicationFinalized() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCalApplicationFinalized::GetCalApplicationFinalized");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCalApplicationFinalized", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CalApplicationFinalized*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithCalApplicationProposed
#include "Oculus/Platform/MessageWithCalApplicationProposed.hpp"
// Including type: Oculus.Platform.Models.CalApplicationProposed
#include "Oculus/Platform/Models/CalApplicationProposed.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithCalApplicationProposed.GetDataFromMessage
::Oculus::Platform::Models::CalApplicationProposed* Oculus::Platform::MessageWithCalApplicationProposed::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCalApplicationProposed::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CalApplicationProposed*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithCalApplicationProposed.GetCalApplicationProposed
::Oculus::Platform::Models::CalApplicationProposed* Oculus::Platform::MessageWithCalApplicationProposed::GetCalApplicationProposed() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCalApplicationProposed::GetCalApplicationProposed");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCalApplicationProposed", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CalApplicationProposed*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithCalApplicationSuggestionList
#include "Oculus/Platform/MessageWithCalApplicationSuggestionList.hpp"
// Including type: Oculus.Platform.Models.CalApplicationSuggestionList
#include "Oculus/Platform/Models/CalApplicationSuggestionList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithCalApplicationSuggestionList.GetDataFromMessage
::Oculus::Platform::Models::CalApplicationSuggestionList* Oculus::Platform::MessageWithCalApplicationSuggestionList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCalApplicationSuggestionList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CalApplicationSuggestionList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithCalApplicationSuggestionList.GetCalApplicationSuggestionList
::Oculus::Platform::Models::CalApplicationSuggestionList* Oculus::Platform::MessageWithCalApplicationSuggestionList::GetCalApplicationSuggestionList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCalApplicationSuggestionList::GetCalApplicationSuggestionList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCalApplicationSuggestionList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CalApplicationSuggestionList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithChallenge
#include "Oculus/Platform/MessageWithChallenge.hpp"
// Including type: Oculus.Platform.Models.Challenge
#include "Oculus/Platform/Models/Challenge.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithChallenge.GetDataFromMessage
::Oculus::Platform::Models::Challenge* Oculus::Platform::MessageWithChallenge::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithChallenge::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Challenge*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithChallenge.GetChallenge
::Oculus::Platform::Models::Challenge* Oculus::Platform::MessageWithChallenge::GetChallenge() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithChallenge::GetChallenge");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetChallenge", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Challenge*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithChallengeList
#include "Oculus/Platform/MessageWithChallengeList.hpp"
// Including type: Oculus.Platform.Models.ChallengeList
#include "Oculus/Platform/Models/ChallengeList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithChallengeList.GetDataFromMessage
::Oculus::Platform::Models::ChallengeList* Oculus::Platform::MessageWithChallengeList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithChallengeList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ChallengeList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithChallengeList.GetChallengeList
::Oculus::Platform::Models::ChallengeList* Oculus::Platform::MessageWithChallengeList::GetChallengeList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithChallengeList::GetChallengeList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetChallengeList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ChallengeList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithChallengeEntryList
#include "Oculus/Platform/MessageWithChallengeEntryList.hpp"
// Including type: Oculus.Platform.Models.ChallengeEntryList
#include "Oculus/Platform/Models/ChallengeEntryList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithChallengeEntryList.GetDataFromMessage
::Oculus::Platform::Models::ChallengeEntryList* Oculus::Platform::MessageWithChallengeEntryList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithChallengeEntryList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ChallengeEntryList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithChallengeEntryList.GetChallengeEntryList
::Oculus::Platform::Models::ChallengeEntryList* Oculus::Platform::MessageWithChallengeEntryList::GetChallengeEntryList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithChallengeEntryList::GetChallengeEntryList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetChallengeEntryList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ChallengeEntryList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithCloudStorageConflictMetadata
#include "Oculus/Platform/MessageWithCloudStorageConflictMetadata.hpp"
// Including type: Oculus.Platform.Models.CloudStorageConflictMetadata
#include "Oculus/Platform/Models/CloudStorageConflictMetadata.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageConflictMetadata.GetDataFromMessage
::Oculus::Platform::Models::CloudStorageConflictMetadata* Oculus::Platform::MessageWithCloudStorageConflictMetadata::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageConflictMetadata::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageConflictMetadata*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageConflictMetadata.GetCloudStorageConflictMetadata
::Oculus::Platform::Models::CloudStorageConflictMetadata* Oculus::Platform::MessageWithCloudStorageConflictMetadata::GetCloudStorageConflictMetadata() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageConflictMetadata::GetCloudStorageConflictMetadata");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageConflictMetadata", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageConflictMetadata*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithCloudStorageData
#include "Oculus/Platform/MessageWithCloudStorageData.hpp"
// Including type: Oculus.Platform.Models.CloudStorageData
#include "Oculus/Platform/Models/CloudStorageData.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageData.GetDataFromMessage
::Oculus::Platform::Models::CloudStorageData* Oculus::Platform::MessageWithCloudStorageData::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageData::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageData*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageData.GetCloudStorageData
::Oculus::Platform::Models::CloudStorageData* Oculus::Platform::MessageWithCloudStorageData::GetCloudStorageData() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageData::GetCloudStorageData");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageData", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageData*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithCloudStorageMetadataUnderLocal
#include "Oculus/Platform/MessageWithCloudStorageMetadataUnderLocal.hpp"
// Including type: Oculus.Platform.Models.CloudStorageMetadata
#include "Oculus/Platform/Models/CloudStorageMetadata.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageMetadataUnderLocal.GetDataFromMessage
::Oculus::Platform::Models::CloudStorageMetadata* Oculus::Platform::MessageWithCloudStorageMetadataUnderLocal::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageMetadataUnderLocal::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageMetadata*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageMetadataUnderLocal.GetCloudStorageMetadata
::Oculus::Platform::Models::CloudStorageMetadata* Oculus::Platform::MessageWithCloudStorageMetadataUnderLocal::GetCloudStorageMetadata() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageMetadataUnderLocal::GetCloudStorageMetadata");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageMetadata", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageMetadata*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithCloudStorageMetadataList
#include "Oculus/Platform/MessageWithCloudStorageMetadataList.hpp"
// Including type: Oculus.Platform.Models.CloudStorageMetadataList
#include "Oculus/Platform/Models/CloudStorageMetadataList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageMetadataList.GetDataFromMessage
::Oculus::Platform::Models::CloudStorageMetadataList* Oculus::Platform::MessageWithCloudStorageMetadataList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageMetadataList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageMetadataList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageMetadataList.GetCloudStorageMetadataList
::Oculus::Platform::Models::CloudStorageMetadataList* Oculus::Platform::MessageWithCloudStorageMetadataList::GetCloudStorageMetadataList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageMetadataList::GetCloudStorageMetadataList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageMetadataList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageMetadataList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithCloudStorageUpdateResponse
#include "Oculus/Platform/MessageWithCloudStorageUpdateResponse.hpp"
// Including type: Oculus.Platform.Models.CloudStorageUpdateResponse
#include "Oculus/Platform/Models/CloudStorageUpdateResponse.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageUpdateResponse.GetDataFromMessage
::Oculus::Platform::Models::CloudStorageUpdateResponse* Oculus::Platform::MessageWithCloudStorageUpdateResponse::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageUpdateResponse::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageUpdateResponse*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithCloudStorageUpdateResponse.GetCloudStorageUpdateResponse
::Oculus::Platform::Models::CloudStorageUpdateResponse* Oculus::Platform::MessageWithCloudStorageUpdateResponse::GetCloudStorageUpdateResponse() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithCloudStorageUpdateResponse::GetCloudStorageUpdateResponse");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetCloudStorageUpdateResponse", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::CloudStorageUpdateResponse*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithDataStoreUnderPrivateUserDataStore
#include "Oculus/Platform/MessageWithDataStoreUnderPrivateUserDataStore.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithDataStoreUnderPrivateUserDataStore.GetDataFromMessage
::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>* Oculus::Platform::MessageWithDataStoreUnderPrivateUserDataStore::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithDataStoreUnderPrivateUserDataStore::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithDataStoreUnderPrivateUserDataStore.GetDataStore
::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>* Oculus::Platform::MessageWithDataStoreUnderPrivateUserDataStore::GetDataStore() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithDataStoreUnderPrivateUserDataStore::GetDataStore");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataStore", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithDataStoreUnderPublicUserDataStore
#include "Oculus/Platform/MessageWithDataStoreUnderPublicUserDataStore.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithDataStoreUnderPublicUserDataStore.GetDataFromMessage
::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>* Oculus::Platform::MessageWithDataStoreUnderPublicUserDataStore::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithDataStoreUnderPublicUserDataStore::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithDataStoreUnderPublicUserDataStore.GetDataStore
::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>* Oculus::Platform::MessageWithDataStoreUnderPublicUserDataStore::GetDataStore() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithDataStoreUnderPublicUserDataStore::GetDataStore");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataStore", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::System::Collections::Generic::Dictionary_2<::StringW, ::StringW>*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithDestinationList
#include "Oculus/Platform/MessageWithDestinationList.hpp"
// Including type: Oculus.Platform.Models.DestinationList
#include "Oculus/Platform/Models/DestinationList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithDestinationList.GetDataFromMessage
::Oculus::Platform::Models::DestinationList* Oculus::Platform::MessageWithDestinationList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithDestinationList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::DestinationList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithDestinationList.GetDestinationList
::Oculus::Platform::Models::DestinationList* Oculus::Platform::MessageWithDestinationList::GetDestinationList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithDestinationList::GetDestinationList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDestinationList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::DestinationList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithGroupPresenceJoinIntent
#include "Oculus/Platform/MessageWithGroupPresenceJoinIntent.hpp"
// Including type: Oculus.Platform.Models.GroupPresenceJoinIntent
#include "Oculus/Platform/Models/GroupPresenceJoinIntent.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithGroupPresenceJoinIntent.GetDataFromMessage
::Oculus::Platform::Models::GroupPresenceJoinIntent* Oculus::Platform::MessageWithGroupPresenceJoinIntent::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithGroupPresenceJoinIntent::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::GroupPresenceJoinIntent*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithGroupPresenceJoinIntent.GetGroupPresenceJoinIntent
::Oculus::Platform::Models::GroupPresenceJoinIntent* Oculus::Platform::MessageWithGroupPresenceJoinIntent::GetGroupPresenceJoinIntent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithGroupPresenceJoinIntent::GetGroupPresenceJoinIntent");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetGroupPresenceJoinIntent", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::GroupPresenceJoinIntent*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithGroupPresenceLeaveIntent
#include "Oculus/Platform/MessageWithGroupPresenceLeaveIntent.hpp"
// Including type: Oculus.Platform.Models.GroupPresenceLeaveIntent
#include "Oculus/Platform/Models/GroupPresenceLeaveIntent.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithGroupPresenceLeaveIntent.GetDataFromMessage
::Oculus::Platform::Models::GroupPresenceLeaveIntent* Oculus::Platform::MessageWithGroupPresenceLeaveIntent::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithGroupPresenceLeaveIntent::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::GroupPresenceLeaveIntent*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithGroupPresenceLeaveIntent.GetGroupPresenceLeaveIntent
::Oculus::Platform::Models::GroupPresenceLeaveIntent* Oculus::Platform::MessageWithGroupPresenceLeaveIntent::GetGroupPresenceLeaveIntent() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithGroupPresenceLeaveIntent::GetGroupPresenceLeaveIntent");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetGroupPresenceLeaveIntent", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::GroupPresenceLeaveIntent*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithInstalledApplicationList
#include "Oculus/Platform/MessageWithInstalledApplicationList.hpp"
// Including type: Oculus.Platform.Models.InstalledApplicationList
#include "Oculus/Platform/Models/InstalledApplicationList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithInstalledApplicationList.GetDataFromMessage
::Oculus::Platform::Models::InstalledApplicationList* Oculus::Platform::MessageWithInstalledApplicationList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithInstalledApplicationList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::InstalledApplicationList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithInstalledApplicationList.GetInstalledApplicationList
::Oculus::Platform::Models::InstalledApplicationList* Oculus::Platform::MessageWithInstalledApplicationList::GetInstalledApplicationList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithInstalledApplicationList::GetInstalledApplicationList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetInstalledApplicationList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::InstalledApplicationList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithInvitePanelResultInfo
#include "Oculus/Platform/MessageWithInvitePanelResultInfo.hpp"
// Including type: Oculus.Platform.Models.InvitePanelResultInfo
#include "Oculus/Platform/Models/InvitePanelResultInfo.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithInvitePanelResultInfo.GetDataFromMessage
::Oculus::Platform::Models::InvitePanelResultInfo* Oculus::Platform::MessageWithInvitePanelResultInfo::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithInvitePanelResultInfo::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::InvitePanelResultInfo*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithInvitePanelResultInfo.GetInvitePanelResultInfo
::Oculus::Platform::Models::InvitePanelResultInfo* Oculus::Platform::MessageWithInvitePanelResultInfo::GetInvitePanelResultInfo() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithInvitePanelResultInfo::GetInvitePanelResultInfo");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetInvitePanelResultInfo", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::InvitePanelResultInfo*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLaunchBlockFlowResult
#include "Oculus/Platform/MessageWithLaunchBlockFlowResult.hpp"
// Including type: Oculus.Platform.Models.LaunchBlockFlowResult
#include "Oculus/Platform/Models/LaunchBlockFlowResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLaunchBlockFlowResult.GetDataFromMessage
::Oculus::Platform::Models::LaunchBlockFlowResult* Oculus::Platform::MessageWithLaunchBlockFlowResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchBlockFlowResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchBlockFlowResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLaunchBlockFlowResult.GetLaunchBlockFlowResult
::Oculus::Platform::Models::LaunchBlockFlowResult* Oculus::Platform::MessageWithLaunchBlockFlowResult::GetLaunchBlockFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchBlockFlowResult::GetLaunchBlockFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchBlockFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchBlockFlowResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLaunchFriendRequestFlowResult
#include "Oculus/Platform/MessageWithLaunchFriendRequestFlowResult.hpp"
// Including type: Oculus.Platform.Models.LaunchFriendRequestFlowResult
#include "Oculus/Platform/Models/LaunchFriendRequestFlowResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLaunchFriendRequestFlowResult.GetDataFromMessage
::Oculus::Platform::Models::LaunchFriendRequestFlowResult* Oculus::Platform::MessageWithLaunchFriendRequestFlowResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchFriendRequestFlowResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchFriendRequestFlowResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLaunchFriendRequestFlowResult.GetLaunchFriendRequestFlowResult
::Oculus::Platform::Models::LaunchFriendRequestFlowResult* Oculus::Platform::MessageWithLaunchFriendRequestFlowResult::GetLaunchFriendRequestFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchFriendRequestFlowResult::GetLaunchFriendRequestFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchFriendRequestFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchFriendRequestFlowResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLaunchInvitePanelFlowResult
#include "Oculus/Platform/MessageWithLaunchInvitePanelFlowResult.hpp"
// Including type: Oculus.Platform.Models.LaunchInvitePanelFlowResult
#include "Oculus/Platform/Models/LaunchInvitePanelFlowResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLaunchInvitePanelFlowResult.GetDataFromMessage
::Oculus::Platform::Models::LaunchInvitePanelFlowResult* Oculus::Platform::MessageWithLaunchInvitePanelFlowResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchInvitePanelFlowResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchInvitePanelFlowResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLaunchInvitePanelFlowResult.GetLaunchInvitePanelFlowResult
::Oculus::Platform::Models::LaunchInvitePanelFlowResult* Oculus::Platform::MessageWithLaunchInvitePanelFlowResult::GetLaunchInvitePanelFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchInvitePanelFlowResult::GetLaunchInvitePanelFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchInvitePanelFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchInvitePanelFlowResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLaunchReportFlowResult
#include "Oculus/Platform/MessageWithLaunchReportFlowResult.hpp"
// Including type: Oculus.Platform.Models.LaunchReportFlowResult
#include "Oculus/Platform/Models/LaunchReportFlowResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLaunchReportFlowResult.GetDataFromMessage
::Oculus::Platform::Models::LaunchReportFlowResult* Oculus::Platform::MessageWithLaunchReportFlowResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchReportFlowResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchReportFlowResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLaunchReportFlowResult.GetLaunchReportFlowResult
::Oculus::Platform::Models::LaunchReportFlowResult* Oculus::Platform::MessageWithLaunchReportFlowResult::GetLaunchReportFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchReportFlowResult::GetLaunchReportFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchReportFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchReportFlowResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLaunchUnblockFlowResult
#include "Oculus/Platform/MessageWithLaunchUnblockFlowResult.hpp"
// Including type: Oculus.Platform.Models.LaunchUnblockFlowResult
#include "Oculus/Platform/Models/LaunchUnblockFlowResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLaunchUnblockFlowResult.GetDataFromMessage
::Oculus::Platform::Models::LaunchUnblockFlowResult* Oculus::Platform::MessageWithLaunchUnblockFlowResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchUnblockFlowResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchUnblockFlowResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLaunchUnblockFlowResult.GetLaunchUnblockFlowResult
::Oculus::Platform::Models::LaunchUnblockFlowResult* Oculus::Platform::MessageWithLaunchUnblockFlowResult::GetLaunchUnblockFlowResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLaunchUnblockFlowResult::GetLaunchUnblockFlowResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLaunchUnblockFlowResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LaunchUnblockFlowResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLeaderboardList
#include "Oculus/Platform/MessageWithLeaderboardList.hpp"
// Including type: Oculus.Platform.Models.LeaderboardList
#include "Oculus/Platform/Models/LeaderboardList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLeaderboardList.GetDataFromMessage
::Oculus::Platform::Models::LeaderboardList* Oculus::Platform::MessageWithLeaderboardList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLeaderboardList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LeaderboardList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLeaderboardList.GetLeaderboardList
::Oculus::Platform::Models::LeaderboardList* Oculus::Platform::MessageWithLeaderboardList::GetLeaderboardList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLeaderboardList::GetLeaderboardList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLeaderboardList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LeaderboardList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLeaderboardEntryList
#include "Oculus/Platform/MessageWithLeaderboardEntryList.hpp"
// Including type: Oculus.Platform.Models.LeaderboardEntryList
#include "Oculus/Platform/Models/LeaderboardEntryList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLeaderboardEntryList.GetDataFromMessage
::Oculus::Platform::Models::LeaderboardEntryList* Oculus::Platform::MessageWithLeaderboardEntryList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLeaderboardEntryList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LeaderboardEntryList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLeaderboardEntryList.GetLeaderboardEntryList
::Oculus::Platform::Models::LeaderboardEntryList* Oculus::Platform::MessageWithLeaderboardEntryList::GetLeaderboardEntryList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLeaderboardEntryList::GetLeaderboardEntryList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLeaderboardEntryList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LeaderboardEntryList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLinkedAccountList
#include "Oculus/Platform/MessageWithLinkedAccountList.hpp"
// Including type: Oculus.Platform.Models.LinkedAccountList
#include "Oculus/Platform/Models/LinkedAccountList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLinkedAccountList.GetDataFromMessage
::Oculus::Platform::Models::LinkedAccountList* Oculus::Platform::MessageWithLinkedAccountList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLinkedAccountList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LinkedAccountList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLinkedAccountList.GetLinkedAccountList
::Oculus::Platform::Models::LinkedAccountList* Oculus::Platform::MessageWithLinkedAccountList::GetLinkedAccountList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLinkedAccountList::GetLinkedAccountList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLinkedAccountList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LinkedAccountList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLivestreamingApplicationStatus
#include "Oculus/Platform/MessageWithLivestreamingApplicationStatus.hpp"
// Including type: Oculus.Platform.Models.LivestreamingApplicationStatus
#include "Oculus/Platform/Models/LivestreamingApplicationStatus.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLivestreamingApplicationStatus.GetDataFromMessage
::Oculus::Platform::Models::LivestreamingApplicationStatus* Oculus::Platform::MessageWithLivestreamingApplicationStatus::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLivestreamingApplicationStatus::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingApplicationStatus*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLivestreamingApplicationStatus.GetLivestreamingApplicationStatus
::Oculus::Platform::Models::LivestreamingApplicationStatus* Oculus::Platform::MessageWithLivestreamingApplicationStatus::GetLivestreamingApplicationStatus() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLivestreamingApplicationStatus::GetLivestreamingApplicationStatus");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLivestreamingApplicationStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingApplicationStatus*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLivestreamingStartResult
#include "Oculus/Platform/MessageWithLivestreamingStartResult.hpp"
// Including type: Oculus.Platform.Models.LivestreamingStartResult
#include "Oculus/Platform/Models/LivestreamingStartResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLivestreamingStartResult.GetDataFromMessage
::Oculus::Platform::Models::LivestreamingStartResult* Oculus::Platform::MessageWithLivestreamingStartResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLivestreamingStartResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingStartResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLivestreamingStartResult.GetLivestreamingStartResult
::Oculus::Platform::Models::LivestreamingStartResult* Oculus::Platform::MessageWithLivestreamingStartResult::GetLivestreamingStartResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLivestreamingStartResult::GetLivestreamingStartResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLivestreamingStartResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingStartResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLivestreamingStatus
#include "Oculus/Platform/MessageWithLivestreamingStatus.hpp"
// Including type: Oculus.Platform.Models.LivestreamingStatus
#include "Oculus/Platform/Models/LivestreamingStatus.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLivestreamingStatus.GetDataFromMessage
::Oculus::Platform::Models::LivestreamingStatus* Oculus::Platform::MessageWithLivestreamingStatus::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLivestreamingStatus::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingStatus*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLivestreamingStatus.GetLivestreamingStatus
::Oculus::Platform::Models::LivestreamingStatus* Oculus::Platform::MessageWithLivestreamingStatus::GetLivestreamingStatus() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLivestreamingStatus::GetLivestreamingStatus");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLivestreamingStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingStatus*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithLivestreamingVideoStats
#include "Oculus/Platform/MessageWithLivestreamingVideoStats.hpp"
// Including type: Oculus.Platform.Models.LivestreamingVideoStats
#include "Oculus/Platform/Models/LivestreamingVideoStats.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithLivestreamingVideoStats.GetDataFromMessage
::Oculus::Platform::Models::LivestreamingVideoStats* Oculus::Platform::MessageWithLivestreamingVideoStats::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLivestreamingVideoStats::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingVideoStats*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithLivestreamingVideoStats.GetLivestreamingVideoStats
::Oculus::Platform::Models::LivestreamingVideoStats* Oculus::Platform::MessageWithLivestreamingVideoStats::GetLivestreamingVideoStats() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithLivestreamingVideoStats::GetLivestreamingVideoStats");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetLivestreamingVideoStats", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::LivestreamingVideoStats*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithMatchmakingAdminSnapshot
#include "Oculus/Platform/MessageWithMatchmakingAdminSnapshot.hpp"
// Including type: Oculus.Platform.Models.MatchmakingAdminSnapshot
#include "Oculus/Platform/Models/MatchmakingAdminSnapshot.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithMatchmakingAdminSnapshot.GetDataFromMessage
::Oculus::Platform::Models::MatchmakingAdminSnapshot* Oculus::Platform::MessageWithMatchmakingAdminSnapshot::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMatchmakingAdminSnapshot::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingAdminSnapshot*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithMatchmakingAdminSnapshot.GetMatchmakingAdminSnapshot
::Oculus::Platform::Models::MatchmakingAdminSnapshot* Oculus::Platform::MessageWithMatchmakingAdminSnapshot::GetMatchmakingAdminSnapshot() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMatchmakingAdminSnapshot::GetMatchmakingAdminSnapshot");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMatchmakingAdminSnapshot", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingAdminSnapshot*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithMatchmakingEnqueueResult
#include "Oculus/Platform/MessageWithMatchmakingEnqueueResult.hpp"
// Including type: Oculus.Platform.Models.MatchmakingEnqueueResult
#include "Oculus/Platform/Models/MatchmakingEnqueueResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithMatchmakingEnqueueResult.GetDataFromMessage
::Oculus::Platform::Models::MatchmakingEnqueueResult* Oculus::Platform::MessageWithMatchmakingEnqueueResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMatchmakingEnqueueResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingEnqueueResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithMatchmakingEnqueueResult.GetMatchmakingEnqueueResult
::Oculus::Platform::Models::MatchmakingEnqueueResult* Oculus::Platform::MessageWithMatchmakingEnqueueResult::GetMatchmakingEnqueueResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMatchmakingEnqueueResult::GetMatchmakingEnqueueResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMatchmakingEnqueueResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingEnqueueResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithMatchmakingEnqueueResultAndRoom
#include "Oculus/Platform/MessageWithMatchmakingEnqueueResultAndRoom.hpp"
// Including type: Oculus.Platform.Models.MatchmakingEnqueueResultAndRoom
#include "Oculus/Platform/Models/MatchmakingEnqueueResultAndRoom.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithMatchmakingEnqueueResultAndRoom.GetDataFromMessage
::Oculus::Platform::Models::MatchmakingEnqueueResultAndRoom* Oculus::Platform::MessageWithMatchmakingEnqueueResultAndRoom::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMatchmakingEnqueueResultAndRoom::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingEnqueueResultAndRoom*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithMatchmakingEnqueueResultAndRoom.GetMatchmakingEnqueueResultAndRoom
::Oculus::Platform::Models::MatchmakingEnqueueResultAndRoom* Oculus::Platform::MessageWithMatchmakingEnqueueResultAndRoom::GetMatchmakingEnqueueResultAndRoom() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMatchmakingEnqueueResultAndRoom::GetMatchmakingEnqueueResultAndRoom");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMatchmakingEnqueueResultAndRoom", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingEnqueueResultAndRoom*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithMatchmakingStatsUnderMatchmakingStats
#include "Oculus/Platform/MessageWithMatchmakingStatsUnderMatchmakingStats.hpp"
// Including type: Oculus.Platform.Models.MatchmakingStats
#include "Oculus/Platform/Models/MatchmakingStats.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithMatchmakingStatsUnderMatchmakingStats.GetDataFromMessage
::Oculus::Platform::Models::MatchmakingStats* Oculus::Platform::MessageWithMatchmakingStatsUnderMatchmakingStats::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMatchmakingStatsUnderMatchmakingStats::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingStats*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithMatchmakingStatsUnderMatchmakingStats.GetMatchmakingStats
::Oculus::Platform::Models::MatchmakingStats* Oculus::Platform::MessageWithMatchmakingStatsUnderMatchmakingStats::GetMatchmakingStats() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMatchmakingStatsUnderMatchmakingStats::GetMatchmakingStats");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMatchmakingStats", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MatchmakingStats*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithMicrophoneAvailabilityState
#include "Oculus/Platform/MessageWithMicrophoneAvailabilityState.hpp"
// Including type: Oculus.Platform.Models.MicrophoneAvailabilityState
#include "Oculus/Platform/Models/MicrophoneAvailabilityState.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithMicrophoneAvailabilityState.GetDataFromMessage
::Oculus::Platform::Models::MicrophoneAvailabilityState* Oculus::Platform::MessageWithMicrophoneAvailabilityState::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMicrophoneAvailabilityState::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MicrophoneAvailabilityState*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithMicrophoneAvailabilityState.GetMicrophoneAvailabilityState
::Oculus::Platform::Models::MicrophoneAvailabilityState* Oculus::Platform::MessageWithMicrophoneAvailabilityState::GetMicrophoneAvailabilityState() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithMicrophoneAvailabilityState::GetMicrophoneAvailabilityState");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetMicrophoneAvailabilityState", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::MicrophoneAvailabilityState*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithNetSyncConnection
#include "Oculus/Platform/MessageWithNetSyncConnection.hpp"
// Including type: Oculus.Platform.Models.NetSyncConnection
#include "Oculus/Platform/Models/NetSyncConnection.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithNetSyncConnection.GetDataFromMessage
::Oculus::Platform::Models::NetSyncConnection* Oculus::Platform::MessageWithNetSyncConnection::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncConnection::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncConnection*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithNetSyncConnection.GetNetSyncConnection
::Oculus::Platform::Models::NetSyncConnection* Oculus::Platform::MessageWithNetSyncConnection::GetNetSyncConnection() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncConnection::GetNetSyncConnection");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncConnection", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncConnection*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithNetSyncSessionList
#include "Oculus/Platform/MessageWithNetSyncSessionList.hpp"
// Including type: Oculus.Platform.Models.NetSyncSessionList
#include "Oculus/Platform/Models/NetSyncSessionList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithNetSyncSessionList.GetDataFromMessage
::Oculus::Platform::Models::NetSyncSessionList* Oculus::Platform::MessageWithNetSyncSessionList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncSessionList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncSessionList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithNetSyncSessionList.GetNetSyncSessionList
::Oculus::Platform::Models::NetSyncSessionList* Oculus::Platform::MessageWithNetSyncSessionList::GetNetSyncSessionList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncSessionList::GetNetSyncSessionList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncSessionList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncSessionList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithNetSyncSessionsChangedNotification
#include "Oculus/Platform/MessageWithNetSyncSessionsChangedNotification.hpp"
// Including type: Oculus.Platform.Models.NetSyncSessionsChangedNotification
#include "Oculus/Platform/Models/NetSyncSessionsChangedNotification.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithNetSyncSessionsChangedNotification.GetDataFromMessage
::Oculus::Platform::Models::NetSyncSessionsChangedNotification* Oculus::Platform::MessageWithNetSyncSessionsChangedNotification::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncSessionsChangedNotification::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncSessionsChangedNotification*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithNetSyncSessionsChangedNotification.GetNetSyncSessionsChangedNotification
::Oculus::Platform::Models::NetSyncSessionsChangedNotification* Oculus::Platform::MessageWithNetSyncSessionsChangedNotification::GetNetSyncSessionsChangedNotification() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncSessionsChangedNotification::GetNetSyncSessionsChangedNotification");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncSessionsChangedNotification", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncSessionsChangedNotification*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithNetSyncSetSessionPropertyResult
#include "Oculus/Platform/MessageWithNetSyncSetSessionPropertyResult.hpp"
// Including type: Oculus.Platform.Models.NetSyncSetSessionPropertyResult
#include "Oculus/Platform/Models/NetSyncSetSessionPropertyResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithNetSyncSetSessionPropertyResult.GetDataFromMessage
::Oculus::Platform::Models::NetSyncSetSessionPropertyResult* Oculus::Platform::MessageWithNetSyncSetSessionPropertyResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncSetSessionPropertyResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncSetSessionPropertyResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithNetSyncSetSessionPropertyResult.GetNetSyncSetSessionPropertyResult
::Oculus::Platform::Models::NetSyncSetSessionPropertyResult* Oculus::Platform::MessageWithNetSyncSetSessionPropertyResult::GetNetSyncSetSessionPropertyResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncSetSessionPropertyResult::GetNetSyncSetSessionPropertyResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncSetSessionPropertyResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncSetSessionPropertyResult*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithNetSyncVoipAttenuationValueList
#include "Oculus/Platform/MessageWithNetSyncVoipAttenuationValueList.hpp"
// Including type: Oculus.Platform.Models.NetSyncVoipAttenuationValueList
#include "Oculus/Platform/Models/NetSyncVoipAttenuationValueList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithNetSyncVoipAttenuationValueList.GetDataFromMessage
::Oculus::Platform::Models::NetSyncVoipAttenuationValueList* Oculus::Platform::MessageWithNetSyncVoipAttenuationValueList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncVoipAttenuationValueList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncVoipAttenuationValueList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithNetSyncVoipAttenuationValueList.GetNetSyncVoipAttenuationValueList
::Oculus::Platform::Models::NetSyncVoipAttenuationValueList* Oculus::Platform::MessageWithNetSyncVoipAttenuationValueList::GetNetSyncVoipAttenuationValueList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithNetSyncVoipAttenuationValueList::GetNetSyncVoipAttenuationValueList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetNetSyncVoipAttenuationValueList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::NetSyncVoipAttenuationValueList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithOrgScopedID
#include "Oculus/Platform/MessageWithOrgScopedID.hpp"
// Including type: Oculus.Platform.Models.OrgScopedID
#include "Oculus/Platform/Models/OrgScopedID.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithOrgScopedID.GetDataFromMessage
::Oculus::Platform::Models::OrgScopedID* Oculus::Platform::MessageWithOrgScopedID::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithOrgScopedID::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::OrgScopedID*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithOrgScopedID.GetOrgScopedID
::Oculus::Platform::Models::OrgScopedID* Oculus::Platform::MessageWithOrgScopedID::GetOrgScopedID() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithOrgScopedID::GetOrgScopedID");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetOrgScopedID", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::OrgScopedID*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithParty
#include "Oculus/Platform/MessageWithParty.hpp"
// Including type: Oculus.Platform.Models.Party
#include "Oculus/Platform/Models/Party.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithParty.GetDataFromMessage
::Oculus::Platform::Models::Party* Oculus::Platform::MessageWithParty::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithParty::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Party*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithParty.GetParty
::Oculus::Platform::Models::Party* Oculus::Platform::MessageWithParty::GetParty() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithParty::GetParty");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetParty", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Party*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithPartyUnderCurrentParty
#include "Oculus/Platform/MessageWithPartyUnderCurrentParty.hpp"
// Including type: Oculus.Platform.Models.Party
#include "Oculus/Platform/Models/Party.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithPartyUnderCurrentParty.GetDataFromMessage
::Oculus::Platform::Models::Party* Oculus::Platform::MessageWithPartyUnderCurrentParty::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPartyUnderCurrentParty::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Party*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithPartyUnderCurrentParty.GetParty
::Oculus::Platform::Models::Party* Oculus::Platform::MessageWithPartyUnderCurrentParty::GetParty() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPartyUnderCurrentParty::GetParty");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetParty", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Party*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithPartyID
#include "Oculus/Platform/MessageWithPartyID.hpp"
// Including type: Oculus.Platform.Models.PartyID
#include "Oculus/Platform/Models/PartyID.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithPartyID.GetDataFromMessage
::Oculus::Platform::Models::PartyID* Oculus::Platform::MessageWithPartyID::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPartyID::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PartyID*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithPartyID.GetPartyID
::Oculus::Platform::Models::PartyID* Oculus::Platform::MessageWithPartyID::GetPartyID() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPartyID::GetPartyID");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPartyID", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PartyID*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithPartyUpdateNotification
#include "Oculus/Platform/MessageWithPartyUpdateNotification.hpp"
// Including type: Oculus.Platform.Models.PartyUpdateNotification
#include "Oculus/Platform/Models/PartyUpdateNotification.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithPartyUpdateNotification.GetDataFromMessage
::Oculus::Platform::Models::PartyUpdateNotification* Oculus::Platform::MessageWithPartyUpdateNotification::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPartyUpdateNotification::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PartyUpdateNotification*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithPartyUpdateNotification.GetPartyUpdateNotification
::Oculus::Platform::Models::PartyUpdateNotification* Oculus::Platform::MessageWithPartyUpdateNotification::GetPartyUpdateNotification() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPartyUpdateNotification::GetPartyUpdateNotification");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPartyUpdateNotification", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PartyUpdateNotification*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithPidList
#include "Oculus/Platform/MessageWithPidList.hpp"
// Including type: Oculus.Platform.Models.PidList
#include "Oculus/Platform/Models/PidList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithPidList.GetDataFromMessage
::Oculus::Platform::Models::PidList* Oculus::Platform::MessageWithPidList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPidList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PidList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithPidList.GetPidList
::Oculus::Platform::Models::PidList* Oculus::Platform::MessageWithPidList::GetPidList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPidList::GetPidList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPidList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PidList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithProductList
#include "Oculus/Platform/MessageWithProductList.hpp"
// Including type: Oculus.Platform.Models.ProductList
#include "Oculus/Platform/Models/ProductList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithProductList.GetDataFromMessage
::Oculus::Platform::Models::ProductList* Oculus::Platform::MessageWithProductList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithProductList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ProductList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithProductList.GetProductList
::Oculus::Platform::Models::ProductList* Oculus::Platform::MessageWithProductList::GetProductList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithProductList::GetProductList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetProductList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::ProductList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithPurchase
#include "Oculus/Platform/MessageWithPurchase.hpp"
// Including type: Oculus.Platform.Models.Purchase
#include "Oculus/Platform/Models/Purchase.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithPurchase.GetDataFromMessage
::Oculus::Platform::Models::Purchase* Oculus::Platform::MessageWithPurchase::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPurchase::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Purchase*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithPurchase.GetPurchase
::Oculus::Platform::Models::Purchase* Oculus::Platform::MessageWithPurchase::GetPurchase() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPurchase::GetPurchase");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPurchase", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::Purchase*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithPurchaseList
#include "Oculus/Platform/MessageWithPurchaseList.hpp"
// Including type: Oculus.Platform.Models.PurchaseList
#include "Oculus/Platform/Models/PurchaseList.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithPurchaseList.GetDataFromMessage
::Oculus::Platform::Models::PurchaseList* Oculus::Platform::MessageWithPurchaseList::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPurchaseList::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PurchaseList*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithPurchaseList.GetPurchaseList
::Oculus::Platform::Models::PurchaseList* Oculus::Platform::MessageWithPurchaseList::GetPurchaseList() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithPurchaseList::GetPurchaseList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPurchaseList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::PurchaseList*, false>(this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.MessageWithRejoinDialogResult
#include "Oculus/Platform/MessageWithRejoinDialogResult.hpp"
// Including type: Oculus.Platform.Models.RejoinDialogResult
#include "Oculus/Platform/Models/RejoinDialogResult.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: Oculus.Platform.MessageWithRejoinDialogResult.GetDataFromMessage
::Oculus::Platform::Models::RejoinDialogResult* Oculus::Platform::MessageWithRejoinDialogResult::GetDataFromMessage(::System::IntPtr c_message) {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithRejoinDialogResult::GetDataFromMessage");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDataFromMessage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c_message)})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::RejoinDialogResult*, false>(this, ___internal__method, c_message);
}
// Autogenerated method: Oculus.Platform.MessageWithRejoinDialogResult.GetRejoinDialogResult
::Oculus::Platform::Models::RejoinDialogResult* Oculus::Platform::MessageWithRejoinDialogResult::GetRejoinDialogResult() {
static auto ___internal__logger = ::Logger::get().WithContext("::Oculus::Platform::MessageWithRejoinDialogResult::GetRejoinDialogResult");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetRejoinDialogResult", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodRethrow<::Oculus::Platform::Models::RejoinDialogResult*, false>(this, ___internal__method);
}
| 85.812854 | 397 | 0.793995 | RedBrumbler |
1de9dd987a17339e6f578ef51e50b69b9fcaae31 | 529 | hpp | C++ | include/jln/mp/smp/functional/eval.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | include/jln/mp/smp/functional/eval.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | include/jln/mp/smp/functional/eval.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #pragma once
#include <jln/mp/smp/contract.hpp>
#include <jln/mp/functional/eval.hpp>
#ifdef __cpp_nontype_template_parameter_class
#if __cpp_nontype_template_parameter_class >= 201806L
namespace jln::mp::smp
{
template <auto F, class C = identity>
using eval = try_contract<mp::eval<F, assume_unary<C>>>;
}
/// \cond
namespace jln::mp::detail
{
template<template<class> class sfinae, auto F, class C>
struct _sfinae<sfinae, eval<F, C>>
{
using type = smp::eval<F, sfinae<C>>;
};
}
/// \endcond
#endif
#endif
| 19.592593 | 58 | 0.705104 | jonathanpoelen |
1de9e7aad58c391fbbe3ed91f99ca089063c818d | 3,640 | cpp | C++ | apps/Sync/main.cpp | scivis-exhibitions/OpenSpace | 5b69cf45f110354ecf3bdbcee8cf9d2c75b07e9e | [
"MIT"
] | 489 | 2015-07-14T22:23:10.000Z | 2022-03-30T07:59:47.000Z | apps/Sync/main.cpp | scivis-exhibitions/OpenSpace | 5b69cf45f110354ecf3bdbcee8cf9d2c75b07e9e | [
"MIT"
] | 1,575 | 2016-07-12T18:10:22.000Z | 2022-03-31T20:12:55.000Z | apps/Sync/main.cpp | scivis-exhibitions/OpenSpace | 5b69cf45f110354ecf3bdbcee8cf9d2c75b07e9e | [
"MIT"
] | 101 | 2016-03-01T02:22:01.000Z | 2022-02-25T15:36:27.000Z | /*****************************************************************************************
* *
* OpenSpace *
* *
* Copyright (c) 2014-2021 *
* *
* 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 <openspace/engine/openspaceengine.h>
#include <openspace/engine/moduleengine.h>
#include <openspace/engine/windowdelegate.h>
#include <openspace/engine/configuration.h>
#include <openspace/util/factorymanager.h>
#include <openspace/engine/globals.h>
#include <openspace/util/progressbar.h>
#include <openspace/util/resourcesynchronization.h>
#include <openspace/util/task.h>
#include <openspace/util/taskloader.h>
#include <ghoul/fmt.h>
#include <ghoul/ghoul.h>
#include <ghoul/filesystem/filesystem.h>
#include <ghoul/logging/logmanager.h>
#include <ghoul/logging/consolelog.h>
int main(int, char**) {
using namespace openspace;
ghoul::initialize();
std::string configFile = configuration::findConfiguration();
global::configuration = configuration::loadConfigurationFromFile(configFile);
global::openSpaceEngine.initialize();
TaskLoader taskLoader;
std::vector<std::unique_ptr<Task>> tasks = taskLoader.tasksFromFile(
absPath("${TASKS}/full_sync.task")
);
for (size_t i = 0; i < tasks.size(); i++) {
Task& task = *tasks[i].get();
LINFOC(
"Sync",
fmt::format(
"Synchronizing scene {} out of {}: {}",
i + 1, tasks.size(), task.description()
)
);
ProgressBar progressBar(100);
task.perform([&progressBar](float progress) {
progressBar.print(static_cast<int>(progress * 100.f));
});
}
std::cout << "Done synchronizing." << std::endl;
return 0;
};
| 48.533333 | 90 | 0.513187 | scivis-exhibitions |
1deb7cae452e6fd0b8f53771c9c0147ffae65d09 | 2,223 | cpp | C++ | remote/rtRemoteAsyncHandle.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | remote/rtRemoteAsyncHandle.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | remote/rtRemoteAsyncHandle.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | #include "rtRemoteAsyncHandle.h"
#include "rtRemoteEnvironment.h"
#include "rtRemoteMessage.h"
#include "rtRemoteConfig.h"
rtRemoteAsyncHandle::rtRemoteAsyncHandle(rtRemoteEnvironment* env, rtRemoteCorrelationKey k)
: m_env(env)
, m_key(k)
, m_error(RT_ERROR_IN_PROGRESS)
{
RT_ASSERT(m_key != rtGuid::null());
m_env->registerResponseHandler(&rtRemoteAsyncHandle::onResponseHandler_Dispatch,
this, m_key);
}
rtRemoteAsyncHandle::~rtRemoteAsyncHandle()
{
if (m_key != kInvalidCorrelationKey)
m_env->removeResponseHandler(m_key);
}
rtError
rtRemoteAsyncHandle::onResponseHandler(std::shared_ptr<rtRemoteClient>& /*client*/,
rtRemoteMessagePtr const& doc)
{
complete(doc, RT_OK);
return RT_OK;
}
rtError
rtRemoteAsyncHandle::wait(uint32_t timeoutInMilliseconds)
{
if (m_error != RT_ERROR_IN_PROGRESS)
return m_error;
if (timeoutInMilliseconds == 0)
timeoutInMilliseconds = m_env->Config->environment_request_timeout();
rtError e = RT_OK;
if (!m_env->Config->server_use_dispatch_thread())
{
time_t timeout = time(nullptr) + ((timeoutInMilliseconds+500) / 1000);
e = m_error = RT_ERROR_TIMEOUT;
while (timeout > time(nullptr))
{
rtRemoteCorrelationKey k = kInvalidCorrelationKey;
rtLogDebug("Waiting for item with key = %s", m_key.toString().c_str());
e = m_env->processSingleWorkItem(std::chrono::milliseconds(timeoutInMilliseconds), true, &k);
rtLogDebug("Got response with key = %s, m_error = %d, error = %d", k.toString().c_str(), m_error, e);
if ( (e == RT_OK) && ((m_error == RT_OK) || (k == m_key)) )
{
rtLogDebug("Got successful response: m_key = %s, key = %s, m_error = %d",
m_key.toString().c_str(), k.toString().c_str(), m_error);
m_env->removeResponseHandler(m_key);
m_key = kInvalidCorrelationKey;
e = m_error = RT_OK;
break;
}
}
}
else
{
e = m_env->waitForResponse(std::chrono::milliseconds(timeoutInMilliseconds), m_key);
}
return e;
}
void
rtRemoteAsyncHandle::complete(rtRemoteMessagePtr const& doc, rtError e)
{
m_doc = doc;
m_error = e;
}
rtRemoteMessagePtr
rtRemoteAsyncHandle::response() const
{
return m_doc;
}
| 25.848837 | 107 | 0.690958 | madanwork |
1dec21c348f5c571b964a0725e6893a54028da0a | 3,549 | cpp | C++ | Viewports/ImageViewportWidget.cpp | FabricExile/FabricUI | 91593eb7ee85ef096dc8b6cede81ae432f33fde9 | [
"BSD-3-Clause"
] | 3 | 2017-12-01T21:39:27.000Z | 2017-12-04T16:50:54.000Z | Viewports/ImageViewportWidget.cpp | FabricExile/FabricUI | 91593eb7ee85ef096dc8b6cede81ae432f33fde9 | [
"BSD-3-Clause"
] | null | null | null | Viewports/ImageViewportWidget.cpp | FabricExile/FabricUI | 91593eb7ee85ef096dc8b6cede81ae432f33fde9 | [
"BSD-3-Clause"
] | 2 | 2017-12-02T00:21:42.000Z | 2018-07-10T09:50:23.000Z | #include "ImageViewportWidget.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <iterator>
#include <cmath>
#include <ostream>
#include <fstream>
#include <streambuf>
#include <memory>
using namespace FabricUI::Viewports;
ImageViewportWidget::ImageViewportWidget(FabricCore::Client * client, QString argumentName, QWidget *parent)
: QGLWidget(parent)
{
// setAutoBufferSwap(false);
m_client = client;
m_argumentName = argumentName;
setFocusPolicy(Qt::StrongFocus);
m_fps = 0.0;
for(int i=0;i<16;i++)
m_fpsStack[i] = 0.0;
m_fpsTimer.start();
}
ImageViewportWidget::~ImageViewportWidget()
{
}
void ImageViewportWidget::setBinding(FabricCore::DFGBinding binding)
{
m_binding = binding;
m_imageSeq = FabricCore::RTVal();
m_workData = FabricCore::RTVal();
}
void ImageViewportWidget::initializeGL()
{
glClearColor(0.34f, 0.34f, 0.34f, 1.0f);
glDisable(GL_DEPTH_TEST);
glDisable(GL_CULL_FACE);
glDisable(GL_LIGHTING);
glShadeModel(GL_SMOOTH);
glEnable(GL_TEXTURE_2D);
}
void ImageViewportWidget::resizeGL(int width, int height)
{
glViewport(0, 0, width, height);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, width, height, 0, -1, 1);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
m_width = width;
m_height = height;
try
{
if(!m_workData.isValid())
m_workData = FabricCore::RTVal::Create(*m_client, "ImageSeqWorkData", 0, 0);
m_workData.setMember("width", FabricCore::RTVal::ConstructSInt32(*m_client, m_width));
m_workData.setMember("height", FabricCore::RTVal::ConstructSInt32(*m_client, m_height));
}
catch(FabricCore::Exception e)
{
printf("Exception: %s\n", e.getDesc_cstr());
return;
}
}
void ImageViewportWidget::paintGL()
{
// compute the fps
double ms = m_fpsTimer.elapsed();
if(ms == 0.0)
m_fps = 0.0;
else
m_fps = 1000.0 / ms;
double averageFps = 0.0;
for(int i=0;i<15;i++) {
m_fpsStack[i+1] = m_fpsStack[i];
averageFps += m_fpsStack[i];
}
m_fpsStack[0] = m_fps;
averageFps += m_fps;
averageFps /= 16.0;
m_fps = averageFps;
m_fpsTimer.start();
glClear(GL_COLOR_BUFFER_BIT);
if(!m_binding.isValid())
return;
if(!m_imageSeq.isValid())
{
try
{
m_imageSeq = m_binding.getArgValue(m_argumentName.toUtf8().constData());
if(m_imageSeq.isValid())
{
if(m_imageSeq.isNullObject())
{
m_imageSeq = FabricCore::RTVal();
return;
}
}
}
catch(FabricCore::Exception e)
{
printf("Exception: %s\n", e.getDesc_cstr());
return;
}
}
try
{
if(!m_workData.isValid())
{
m_workData = FabricCore::RTVal::Create(*m_client, "ImageSeqWorkData", 0, 0);
m_workData.setMember("width", FabricCore::RTVal::ConstructSInt32(*m_client, width()));
m_workData.setMember("height", FabricCore::RTVal::ConstructSInt32(*m_client, height()));
}
m_imageSeq.callMethod("", "draw", 1, &m_workData);
}
catch(FabricCore::Exception e)
{
printf("Exception: %s\n", e.getDesc_cstr());
return;
}
}
void ImageViewportWidget::mousePressEvent(QMouseEvent *event)
{
QGLWidget::mousePressEvent(event);
}
void ImageViewportWidget::mouseMoveEvent(QMouseEvent *event)
{
QGLWidget::mouseMoveEvent(event);
}
void ImageViewportWidget::mouseReleaseEvent(QMouseEvent *event)
{
QGLWidget::mouseReleaseEvent(event);
}
void ImageViewportWidget::wheelEvent(QWheelEvent *event)
{
QGLWidget::wheelEvent(event);
}
| 21.773006 | 108 | 0.678783 | FabricExile |
1df36b2d5345df944f888feee0ae3776e1764d7e | 3,576 | cpp | C++ | blades/xbmc/xbmc/guilib/GUIListLabel.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | blades/xbmc/xbmc/guilib/GUIListLabel.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | blades/xbmc/xbmc/guilib/GUIListLabel.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | /*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This Program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XBMC; see the file COPYING. If not, see
* <http://www.gnu.org/licenses/>.
*
*/
#include "GUIListLabel.h"
#include <limits>
#include "addons/Skin.h"
CGUIListLabel::CGUIListLabel(int parentID, int controlID, float posX, float posY, float width, float height, const CLabelInfo& labelInfo, const CGUIInfoLabel &info, CGUIControl::GUISCROLLVALUE scroll)
: CGUIControl(parentID, controlID, posX, posY, width, height)
, m_label(posX, posY, width, height, labelInfo, (scroll == CGUIControl::ALWAYS) ? CGUILabel::OVER_FLOW_SCROLL : CGUILabel::OVER_FLOW_TRUNCATE)
, m_info(info)
{
m_scroll = scroll;
if (g_SkinInfo && g_SkinInfo->APIVersion() < ADDON::AddonVersion("5.1.0"))
{
if (labelInfo.align & XBFONT_RIGHT)
m_label.SetMaxRect(m_posX - m_width, m_posY, m_width, m_height);
else if (labelInfo.align & XBFONT_CENTER_X)
m_label.SetMaxRect(m_posX - m_width*0.5f, m_posY, m_width, m_height);
}
if (m_info.IsConstant())
SetLabel(m_info.GetLabel(m_parentID, true));
ControlType = GUICONTROL_LISTLABEL;
}
CGUIListLabel::~CGUIListLabel(void)
{
}
void CGUIListLabel::SetScrolling(bool scrolling)
{
if (m_scroll == CGUIControl::FOCUS)
m_label.SetScrolling(scrolling);
else
m_label.SetScrolling((m_scroll == CGUIControl::ALWAYS) ? true : false);
}
void CGUIListLabel::SetSelected(bool selected)
{
if(m_label.SetColor(selected ? CGUILabel::COLOR_SELECTED : CGUILabel::COLOR_TEXT))
SetInvalid();
}
void CGUIListLabel::SetFocus(bool focus)
{
CGUIControl::SetFocus(focus);
if (!focus)
SetScrolling(false);
}
CRect CGUIListLabel::CalcRenderRegion() const
{
return m_label.GetRenderRect();
}
bool CGUIListLabel::UpdateColors()
{
bool changed = CGUIControl::UpdateColors();
changed |= m_label.UpdateColors();
return changed;
}
void CGUIListLabel::Process(unsigned int currentTime, CDirtyRegionList &dirtyregions)
{
if (m_label.Process(currentTime))
MarkDirtyRegion();
CGUIControl::Process(currentTime, dirtyregions);
}
void CGUIListLabel::Render()
{
m_label.Render();
CGUIControl::Render();
}
void CGUIListLabel::UpdateInfo(const CGUIListItem *item)
{
if (m_info.IsConstant() && !m_bInvalidated)
return; // nothing to do
if (item)
SetLabel(m_info.GetItemLabel(item));
else
SetLabel(m_info.GetLabel(m_parentID, true));
}
void CGUIListLabel::SetInvalid()
{
m_label.SetInvalid();
CGUIControl::SetInvalid();
}
void CGUIListLabel::SetWidth(float width)
{
m_width = width;
if (m_label.GetLabelInfo().align & XBFONT_RIGHT)
m_label.SetMaxRect(m_posX - m_width, m_posY, m_width, m_height);
else if (m_label.GetLabelInfo().align & XBFONT_CENTER_X)
m_label.SetMaxRect(m_posX - m_width*0.5f, m_posY, m_width, m_height);
else
m_label.SetMaxRect(m_posX, m_posY, m_width, m_height);
CGUIControl::SetWidth(m_width);
}
void CGUIListLabel::SetLabel(const std::string &label)
{
m_label.SetText(label);
}
| 27.9375 | 200 | 0.724832 | krattai |
1df515b9eaed81ac759569276fa08a03c7f2a7ec | 5,682 | cpp | C++ | RegNRecon/jly_main.cpp | MrJia1997/RenderKinect | 6cc6d6a56ce6a925920e155db5aa6f5239c563e8 | [
"MIT"
] | null | null | null | RegNRecon/jly_main.cpp | MrJia1997/RenderKinect | 6cc6d6a56ce6a925920e155db5aa6f5239c563e8 | [
"MIT"
] | null | null | null | RegNRecon/jly_main.cpp | MrJia1997/RenderKinect | 6cc6d6a56ce6a925920e155db5aa6f5239c563e8 | [
"MIT"
] | null | null | null | /********************************************************************
Main Function for point cloud registration with Go-ICP Algorithm
Last modified: Feb 13, 2014
"Go-ICP: Solving 3D Registration Efficiently and Globally Optimally"
Jiaolong Yang, Hongdong Li, Yunde Jia
International Conference on Computer Vision (ICCV), 2013
Copyright (C) 2013 Jiaolong Yang (BIT and ANU)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include <time.h>
#include <iostream>
#include <fstream>
using namespace std;
#include "jly_goicp.h"
#include "ConfigMap.hpp"
#define DEFAULT_OUTPUT_FNAME "output.txt"
#define DEFAULT_CONFIG_FNAME "config.txt"
#define DEFAULT_MODEL_FNAME "model.txt"
#define DEFAULT_DATA_FNAME "data.txt"
void parseInput(int argc, char **argv, string & modelFName, string & dataFName, int & NdDownsampled, string & configFName, string & outputFName);
void readConfig(string FName, GoICP & goicp);
int loadPointCloud(string FName, int & N, POINT3D ** p);
int main(int argc, char** argv)
{
int Nm, Nd, NdDownsampled;
clock_t clockBegin, clockEnd;
string modelFName, dataFName, configFName, outputFname;
POINT3D * pModel, * pData;
GoICP goicp;
parseInput(argc, argv, modelFName, dataFName, NdDownsampled, configFName, outputFname);
readConfig(configFName, goicp);
// Load model and data point clouds
loadPointCloud(modelFName, Nm, pModel);
loadPointCloud(dataFName, Nd, pData);
goicp.pModel = pModel;
goicp.Nm = Nm;
goicp.pData = pData;
goicp.Nd = Nd;
// Build Distance Transform
cout << "Building Distance Transform..." << flush;
clockBegin = clock();
goicp.BuildDT();
clockEnd = clock();
cout << (double)(clockEnd - clockBegin)/CLOCKS_PER_SEC << "s (CPU)" << endl;
// Run GO-ICP
if(NdDownsampled > 0)
{
goicp.Nd = NdDownsampled; // Only use first NdDownsampled data points (assumes data points are randomly ordered)
}
cout << "Model ID: " << modelFName << " (" << goicp.Nm << "), Data ID: " << dataFName << " (" << goicp.Nd << ")" << endl;
cout << "Registering..." << endl;
clockBegin = clock();
goicp.Register();
clockEnd = clock();
double time = (double)(clockEnd - clockBegin)/CLOCKS_PER_SEC;
cout << "Optimal Rotation Matrix:" << endl;
cout << goicp.optR << endl;
cout << "Optimal Translation Vector:" << endl;
cout << goicp.optT << endl;
cout << "Finished in " << time << endl;
ofstream ofile;
ofile.open(outputFname.c_str(), ofstream::out);
ofile << time << endl;
ofile << goicp.optR << endl;
ofile << goicp.optT << endl;
ofile.close();
delete(pModel);
delete(pData);
return 0;
}
void parseInput(int argc, char **argv, string & modelFName, string & dataFName, int & NdDownsampled, string & configFName, string & outputFName)
{
// Set default values
modelFName = DEFAULT_MODEL_FNAME;
dataFName = DEFAULT_DATA_FNAME;
configFName = DEFAULT_CONFIG_FNAME;
outputFName = DEFAULT_OUTPUT_FNAME;
NdDownsampled = 0; // No downsampling
//cout << endl;
//cout << "USAGE:" << "./GOICP <MODEL FILENAME> <DATA FILENAME> <NUM DOWNSAMPLED DATA POINTS> <CONFIG FILENAME> <OUTPUT FILENAME>" << endl;
//cout << endl;
if(argc > 5)
{
outputFName = argv[5];
}
if(argc > 4)
{
configFName = argv[4];
}
if(argc > 3)
{
NdDownsampled = atoi(argv[3]);
}
if(argc > 2)
{
dataFName = argv[2];
}
if(argc > 1)
{
modelFName = argv[1];
}
cout << "INPUT:" << endl;
cout << "(modelFName)->(" << modelFName << ")" << endl;
cout << "(dataFName)->(" << dataFName << ")" << endl;
cout << "(NdDownsampled)->(" << NdDownsampled << ")" << endl;
cout << "(configFName)->(" << configFName << ")" << endl;
cout << "(outputFName)->(" << outputFName << ")" << endl;
cout << endl;
}
void readConfig(string FName, GoICP & goicp)
{
// Open and parse the associated config file
ConfigMap config(FName.c_str());
goicp.MSEThresh = config.getF("MSEThresh");
goicp.initNodeRot.a = config.getF("rotMinX");
goicp.initNodeRot.b = config.getF("rotMinY");
goicp.initNodeRot.c = config.getF("rotMinZ");
goicp.initNodeRot.w = config.getF("rotWidth");
goicp.initNodeTrans.x = config.getF("transMinX");
goicp.initNodeTrans.y = config.getF("transMinY");
goicp.initNodeTrans.z = config.getF("transMinZ");
goicp.initNodeTrans.w = config.getF("transWidth");
goicp.trimFraction = config.getF("trimFraction");
// If < 0.1% trimming specified, do no trimming
if(goicp.trimFraction < 0.001)
{
goicp.doTrim = false;
}
goicp.dt.SIZE = config.getI("distTransSize");
goicp.dt.expandFactor = config.getF("distTransExpandFactor");
cout << "CONFIG:" << endl;
config.print();
//cout << "(doTrim)->(" << goicp.doTrim << ")" << endl;
cout << endl;
}
int loadPointCloud(string FName, int & N, POINT3D * &p)
{
int i;
ifstream ifile;
ifile.open(FName.c_str(), ifstream::in);
if(!ifile.is_open())
{
cout << "Unable to open point file '" << FName << "'" << endl;
exit(-1);
}
ifile >> N; // First line has number of points to follow
p = (POINT3D *)malloc(sizeof(POINT3D) * N);
for(i = 0; i < N; i++)
{
ifile >> p[i].x >> p[i].y >> p[i].z;
}
ifile.close();
return 0;
}
| 29.440415 | 145 | 0.666491 | MrJia1997 |
1df714549c028f535dae6614b37f8018cef9829f | 10,288 | cpp | C++ | die-tk/linux/ConvertersX11.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | 11 | 2015-11-06T01:35:35.000Z | 2021-05-01T18:34:50.000Z | die-tk/linux/ConvertersX11.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | null | null | null | die-tk/linux/ConvertersX11.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | 2 | 2017-07-06T16:05:51.000Z | 2019-07-04T01:17:15.000Z | #include "ConvertersX11.h"
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include "ResourceManager.h"
#define XES(et) case et: return #et
namespace tk {
std::string xEventToStr(int eventType)
{
switch(eventType) {
case 0: return "error?";
case 1: return "reply?";
XES(KeyPress);
XES(KeyRelease);
XES(ButtonPress);
XES(ButtonRelease);
XES(MotionNotify);
XES(EnterNotify);
XES(LeaveNotify);
XES(FocusIn);
XES(FocusOut);
XES(KeymapNotify);
XES(Expose);
XES(GraphicsExpose);
XES(NoExpose);
XES(VisibilityNotify);
XES(CreateNotify);
XES(DestroyNotify);
XES(UnmapNotify);
XES(MapNotify);
XES(MapRequest);
XES(ReparentNotify);
XES(ConfigureNotify);
XES(ConfigureRequest);
XES(GravityNotify);
XES(ResizeRequest);
XES(CirculateNotify);
XES(CirculateRequest);
XES(PropertyNotify);
XES(SelectionClear);
XES(SelectionRequest);
XES(SelectionNotify);
XES(ColormapNotify);
XES(ClientMessage);
XES(MappingNotify);
XES(GenericEvent);
}
return "unknown event " + std::to_string(eventType);
}
MouseEvent toMouseEvent(XButtonEvent event)
{
MouseEvent result;
switch(event.button) {
case Button1:
result.button = MouseButton::left;
break;
case Button2:
result.button = MouseButton::middle;
break;
case Button3:
result.button = MouseButton::right;
break;
case Button4:
result.button = MouseButton::extra1;
break;
case Button5:
result.button = MouseButton::extra2;
break;
default:
result.button = {};
}
result.controlPressed = event.state & ControlMask;
result.shiftPressed = event.state & ShiftMask;
return result;
}
unsigned int toShape(Cursor cursor)
{
switch(cursor) {
case Cursor::defaultCursor: return None;
case Cursor::arrow: return XC_left_ptr;
case Cursor::wait: return XC_watch;
case Cursor::smallwait: return XC_clock; // argh
case Cursor::hand: return XC_hand2;
case Cursor::edit: return XC_xterm;
case Cursor::help: return XC_question_arrow;
case Cursor::cross: return XC_crosshair;
}
return None;
}
unsigned long rgb32(RGBColor const & color)
{
return (0xFFU << 24) | (color.r << 16) | (color.g << 8) | color.b;
}
WindowKey fromKeySym(KeySym keySym)
{
switch(keySym) {
case XK_Escape: return k_ESCAPE;
case XK_space: return k_SPACE;
case XK_BackSpace: return k_BACKSPACE;
case XK_Tab: return k_TAB;
case XK_Return: return k_RETURN_BIG;
case XK_KP_Enter: return k_RETURN_SMALL;
case XK_Insert: return k_INSERT;
case XK_Delete: return k_DELETE;
case XK_Home: return k_HOME;
case XK_End: return k_END;
case XK_Prior: return k_PAGEUP;
case XK_Next: return k_PAGEDOWN;
case XK_Up: return k_UP;
case XK_Down: return k_DOWN;
case XK_Left: return k_LEFT;
case XK_Right: return k_RIGHT;
case XK_Shift_L: return k_SHIFT_L;
case XK_Shift_R: return k_SHIFT_R;
case XK_Control_L: return k_CONTROL_L;
case XK_Control_R: return k_CONTROL_R;
case XK_Alt_L: return k_ALT_L;
case XK_Alt_R: return k_ALT_R;
case XK_Pause: return k_PAUSE;
case XK_Sys_Req: return k_PRINT;
case XK_Caps_Lock: return k_CAPSLOCK;
case XK_Num_Lock: return k_NUMLOCK;
case XK_Scroll_Lock: return k_SCROLLLOCK;
case XK_KP_Insert:
case XK_KP_0: return k_NUM0;
case XK_KP_End:
case XK_KP_1: return k_NUM1;
case XK_KP_Down:
case XK_KP_2: return k_NUM2;
case XK_KP_Page_Down:
case XK_KP_3: return k_NUM3;
case XK_KP_Left:
case XK_KP_4: return k_NUM4;
case XK_KP_5: return k_NUM5;
case XK_KP_Right:
case XK_KP_6: return k_NUM6;
case XK_KP_Home:
case XK_KP_7: return k_NUM7;
case XK_KP_Up:
case XK_KP_8: return k_NUM8;
case XK_KP_Page_Up:
case XK_KP_9: return k_NUM9;
case XK_KP_Delete:
case XK_KP_Decimal: return k_DECIMAL;
case XK_KP_Add: return k_ADD;
case XK_KP_Subtract: return k_SUBTRACT;
case XK_KP_Multiply: return k_MULT;
case XK_KP_Divide: return k_DIVIDE;
case XK_colon:
case XK_semicolon: return k_SEMICOLON;
case XK_less:
case XK_comma: return k_COMMA;
case XK_underscore:
case XK_minus: return k_DASH;
case XK_greater:
case XK_period: return k_DOT;
case XK_plus:
case XK_equal: return k_EQUALS;
case XK_question:
case XK_slash: return k_SLASH;
case XK_quotedbl:
case XK_apostrophe: return k_ACUTE;
case XK_asciitilde:
case XK_grave: return k_BACUTE;
case XK_braceleft:
case XK_bracketleft: return k_LBRACKET;
case XK_braceright:
case XK_bracketright: return k_RBRACKET;
case XK_bar:
case XK_backslash: return k_BACKSLASH;
case XK_F1: return k_F1;
case XK_F2: return k_F2;
case XK_F3: return k_F3;
case XK_F4: return k_F4;
case XK_F5: return k_F5;
case XK_F6: return k_F6;
case XK_F7: return k_F7;
case XK_F8: return k_F8;
case XK_F9: return k_F9;
case XK_F10: return k_F10;
case XK_F11: return k_F11;
case XK_F12: return k_F12;
case XK_A:
case XK_a: return k_A;
case XK_B:
case XK_b: return k_B;
case XK_C:
case XK_c: return k_C;
case XK_D:
case XK_d: return k_D;
case XK_E:
case XK_e: return k_E;
case XK_F:
case XK_f: return k_F;
case XK_G:
case XK_g: return k_G;
case XK_H:
case XK_h: return k_H;
case XK_I:
case XK_i: return k_I;
case XK_J:
case XK_j: return k_J;
case XK_K:
case XK_k: return k_K;
case XK_L:
case XK_l: return k_L;
case XK_M:
case XK_m: return k_M;
case XK_N:
case XK_n: return k_N;
case XK_O:
case XK_o: return k_O;
case XK_P:
case XK_p: return k_P;
case XK_Q:
case XK_q: return k_Q;
case XK_R:
case XK_r: return k_R;
case XK_S:
case XK_s: return k_S;
case XK_T:
case XK_t: return k_T;
case XK_U:
case XK_u: return k_U;
case XK_V:
case XK_v: return k_V;
case XK_W:
case XK_w: return k_W;
case XK_X:
case XK_x: return k_X;
case XK_Y:
case XK_y: return k_Y;
case XK_Z:
case XK_z: return k_Z;
case XK_exclam:
case XK_1: return k_1;
case XK_at:
case XK_2: return k_2;
case XK_numbersign:
case XK_3: return k_3;
case XK_dollar:
case XK_4: return k_4;
case XK_percent:
case XK_5: return k_5;
case XK_asciicircum:
case XK_6: return k_6;
case XK_ampersand:
case XK_7: return k_7;
case XK_asterisk:
case XK_8: return k_8;
case XK_parenleft:
case XK_9: return k_9;
case XK_parenright:
case XK_0: return k_0;
default: return k_NONE;
}
}
KeySym toKeySym(WindowKey key)
{
switch(key) {
case k_ESCAPE: return XK_Escape;
case k_SPACE: return XK_space;
case k_BACKSPACE: return XK_BackSpace;
case k_RETURN_BIG: return XK_Return;
case k_RETURN_SMALL: return XK_KP_Enter;
case k_INSERT: return XK_Insert;
case k_DELETE: return XK_Delete;
case k_HOME: return XK_Home;
case k_END: return XK_End;
case k_PAGEUP: return XK_Prior;
case k_PAGEDOWN: return XK_Next;
case k_UP: return XK_Up;
case k_DOWN: return XK_Down;
case k_LEFT: return XK_Left;
case k_RIGHT: return XK_Right;
case k_SHIFT_L: return XK_Shift_L;
case k_SHIFT_R: return XK_Shift_R;
case k_CONTROL_L: return XK_Control_L;
case k_CONTROL_R: return XK_Control_R;
case k_ALT_L: return XK_Alt_L;
case k_ALT_R: return XK_Alt_R;
case k_PAUSE: return XK_Pause;
case k_PRINT: return XK_Sys_Req;
case k_CAPSLOCK: return XK_Caps_Lock;
case k_NUMLOCK: return XK_Num_Lock;
case k_SCROLLLOCK: return XK_Scroll_Lock;
case k_NUM0: return XK_KP_0;
case k_NUM1: return XK_KP_1;
case k_NUM2: return XK_KP_2;
case k_NUM3: return XK_KP_3;
case k_NUM4: return XK_KP_4;
case k_NUM5: return XK_KP_5;
case k_NUM6: return XK_KP_6;
case k_NUM7: return XK_KP_7;
case k_NUM8: return XK_KP_8;
case k_NUM9: return XK_KP_9;
case k_DECIMAL: return XK_KP_Decimal;
case k_ADD: return XK_KP_Add;
case k_SUBTRACT: return XK_KP_Subtract;
case k_MULT: return XK_KP_Multiply;
case k_DIVIDE: return XK_KP_Divide;
case k_SEMICOLON: return XK_semicolon;
case k_COMMA: return XK_comma;
case k_DASH: return XK_minus;
case k_DOT: return XK_period;
case k_EQUALS: return XK_equal;
case k_SLASH: return XK_slash;
case k_ACUTE: return XK_apostrophe;
case k_BACUTE: return XK_grave;
case k_LBRACKET: return XK_bracketleft;
case k_RBRACKET: return XK_bracketright;
case k_BACKSLASH: return XK_backslash;
case k_F1: return XK_F1;
case k_F2: return XK_F2;
case k_F3: return XK_F3;
case k_F4: return XK_F4;
case k_F5: return XK_F5;
case k_F6: return XK_F6;
case k_F7: return XK_F7;
case k_F8: return XK_F8;
case k_F9: return XK_F9;
case k_F10: return XK_F10;
case k_F11: return XK_F11;
case k_F12: return XK_F12;
case k_A: return XK_A;
case k_B: return XK_B;
case k_C: return XK_C;
case k_D: return XK_D;
case k_E: return XK_E;
case k_F: return XK_F;
case k_G: return XK_G;
case k_H: return XK_H;
case k_I: return XK_I;
case k_J: return XK_J;
case k_K: return XK_K;
case k_L: return XK_L;
case k_M: return XK_M;
case k_N: return XK_N;
case k_O: return XK_O;
case k_P: return XK_P;
case k_Q: return XK_Q;
case k_R: return XK_R;
case k_S: return XK_S;
case k_T: return XK_T;
case k_U: return XK_U;
case k_V: return XK_V;
case k_W: return XK_W;
case k_X: return XK_X;
case k_Y: return XK_Y;
case k_Z: return XK_Z;
case k_1: return XK_1;
case k_2: return XK_2;
case k_3: return XK_3;
case k_4: return XK_4;
case k_5: return XK_5;
case k_6: return XK_6;
case k_7: return XK_7;
case k_8: return XK_8;
case k_9: return XK_9;
case k_0: return XK_0;
default: return 0;
}
}
unsigned int toKeyCode(WindowKey key)
{
auto keySym = toKeySym(key);
ResourceManagerSingleton resourceManager;
return XKeysymToKeycode(resourceManager->dpy,keySym);
}
}
| 25.849246 | 67 | 0.679724 | thinlizzy |
1dffe6ef8b8b801df99225f2fb776e66a44daf9c | 1,362 | hpp | C++ | src/gameworld/gameworld/other/bigchatface/bigchatfaceconfig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/other/bigchatface/bigchatfaceconfig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/other/bigchatface/bigchatfaceconfig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #ifndef __BIG_CHATFACE_CONFIG_HPP__
#define __BIG_CHATFACE_CONFIG_HPP__
#include "common/tinyxml/tinyxml.h"
#include "servercommon/serverdef.h"
#include "servercommon/bigchatfacedef.hpp"
#include "servercommon/struct/itemlistparam.h"
#include "servercommon/configbase.h"
#include "servercommon/pugixml/pugixml_adapter.hpp"
static const int BIG_FACE_MAX_LEVEL = 200;
struct BigFaceLevelConfig
{
BigFaceLevelConfig(): big_face_level(0), big_face_id(0), maxhp(0), gongji(0), fangyu(0), mingzhong(0), shanbi(0), baoji(0), jianren(0), is_notice(0){}
short big_face_level;
short big_face_id;
Attribute maxhp;
Attribute gongji;
Attribute fangyu;
Attribute mingzhong;
Attribute shanbi;
Attribute baoji;
Attribute jianren;
int is_notice;
ItemConfigData common_item;
ItemConfigData prof_one_item;
ItemConfigData prof_two_item;
ItemConfigData prof_three_item;
ItemConfigData prof_four_item;
};
class BigChatFaceConfig : public ConfigBase
{
public:
BigChatFaceConfig();
~BigChatFaceConfig();
bool Init(const std::string &configname, std::string *err);
const BigFaceLevelConfig * GetBigFaceLevelCfg(short level);
const int GetBigFaceMaxLevel(){return max_big_face_level;}
protected:
int InitLevelConfig(PugiXmlNode RootElement);
private:
int max_big_face_level;
BigFaceLevelConfig m_big_face_level_cfg[BIG_FACE_MAX_LEVEL + 1];
};
#endif
| 23.894737 | 151 | 0.799559 | mage-game |
38002cf05f7fff1c6541e2eb60e84a38ae085e2d | 9,732 | cpp | C++ | src/SuperCardPro.cpp | simonowen/samdisk | 9b1391dd233015db633cb83b43d62c15a98f4e3a | [
"MIT"
] | 52 | 2016-05-26T19:24:37.000Z | 2022-03-24T16:13:48.000Z | src/SuperCardPro.cpp | simonowen/samdisk | 9b1391dd233015db633cb83b43d62c15a98f4e3a | [
"MIT"
] | 17 | 2017-02-04T00:10:50.000Z | 2022-01-19T09:56:18.000Z | src/SuperCardPro.cpp | simonowen/samdisk | 9b1391dd233015db633cb83b43d62c15a98f4e3a | [
"MIT"
] | 9 | 2016-05-13T02:16:05.000Z | 2020-08-30T11:34:34.000Z | // SuperCard Pro device base class
#include "SAMdisk.h"
#include "SuperCardPro.h"
#ifdef HAVE_FTD2XX
#include "SCP_FTD2XX.h"
#endif
#ifdef HAVE_FTDI
#include "SCP_FTDI.h"
#endif
#include "SCP_USB.h"
#ifdef _WIN32
#include "SCP_Win32.h"
#endif
// Storage for class statics.
const int SuperCardPro::MAX_FLUX_REVS; // SCP firmware hard limit
std::unique_ptr<SuperCardPro> SuperCardPro::Open()
{
std::unique_ptr<SuperCardPro> p;
#ifdef HAVE_FTD2XX
if (!p)
p = SuperCardProFTD2XX::Open();
#endif
#ifdef HAVE_FTDI
if (!p)
p = SuperCardProFTDI::Open();
#endif
if (!p)
p = SuperCardProUSB::Open();
#ifdef _WIN32
if (!p)
p = SuperCardProWin32::Open();
#endif
return p;
}
bool SuperCardPro::ReadExact(void* buf, int len)
{
uint8_t* p = reinterpret_cast<uint8_t*>(buf);
auto bytes_read = 0;
while (len > 0)
{
if (!Read(p, len, &bytes_read))
return false;
p += bytes_read;
len -= bytes_read;
}
return true;
}
bool SuperCardPro::WriteExact(const void* buf, int len)
{
auto p = reinterpret_cast<const uint8_t*>(buf);
auto bytes_written = 0;
while (len > 0)
{
if (!Write(p, len, &bytes_written))
return false;
len -= bytes_written;
p += bytes_written;
}
#ifndef _WIN32
// ToDo: find why the Raspberry Pi needs this.
usleep(5000);
#endif
return true;
}
bool SuperCardPro::SendCmd(uint8_t cmd, void* buf, int len, void* bulkbuf, int bulklen)
{
auto p = reinterpret_cast<uint8_t*>(buf);
uint8_t datasum = CHECKSUM_INIT;
for (auto i = 0; i < len; ++i)
datasum += p[i];
Data data(2 + len + 1);
data[0] = cmd;
data[1] = static_cast<uint8_t>(len);
if (len) memcpy(&data[2], buf, len);
data[2 + len] = data[0] + data[1] + datasum;
if (!WriteExact(&data[0], data.size()))
return false;
if (cmd == CMD_LOADRAM_USB && !WriteExact(bulkbuf, bulklen))
return false;
else if (cmd == CMD_SENDRAM_USB && !ReadExact(bulkbuf, bulklen))
return false;
uint8_t result[2];
if (!ReadExact(result, sizeof(result)))
return false;
if (result[0] != cmd)
throw util::exception("SCP result command mismatch");
if (result[1] != pr_Ok)
{
m_error = result[1];
return false;
}
m_error = result[1]; // pr_Ok
return true;
}
bool SuperCardPro::SelectDrive(int drive)
{
return SendCmd(CMD_SELA + (drive ? 1 : 0));
}
bool SuperCardPro::DeselectDrive(int drive)
{
return SendCmd(CMD_DSELA + (drive ? 1 : 0));
}
bool SuperCardPro::EnableMotor(int drive)
{
return SendCmd(CMD_MTRAON + (drive ? 1 : 0));
}
bool SuperCardPro::DisableMotor(int drive)
{
return SendCmd(CMD_MTRAOFF + (drive ? 1 : 0));
}
bool SuperCardPro::Seek0()
{
return SendCmd(CMD_SEEK0);
}
bool SuperCardPro::StepTo(int cyl)
{
auto track = static_cast<uint8_t>(cyl);
return track ? SendCmd(CMD_STEPTO, &track, sizeof(track)) : Seek0();
}
bool SuperCardPro::StepIn()
{
return SendCmd(CMD_STEPIN);
}
bool SuperCardPro::StepOut()
{
return SendCmd(CMD_STEPOUT);
}
bool SuperCardPro::SelectDensity(bool high)
{
uint8_t density = high ? 1 : 0;
return SendCmd(CMD_SELDENS, &density, sizeof(density));
}
bool SuperCardPro::SelectSide(int head)
{
uint8_t side = head ? 1 : 0;
return SendCmd(CMD_SIDE, &side, sizeof(side));
}
bool SuperCardPro::GetDriveStatus(int& status)
{
uint16_t drv_status;
if (!SendCmd(CMD_STATUS))
return false;
if (!ReadExact(&drv_status, sizeof(drv_status)))
return false;
status = util::betoh(drv_status);
return true;
}
bool SuperCardPro::GetParameters(int& drive_select_delay, int& step_delay, int& motor_on_delay, int& seek_0_delay, int& motor_off_delay)
{
if (!SendCmd(CMD_GETPARAMS))
return false;
uint16_t params[5] = {};
if (!ReadExact(params, sizeof(params)))
return false;
drive_select_delay = util::betoh(params[0]);
step_delay = util::betoh(params[1]);
motor_on_delay = util::betoh(params[2]);
seek_0_delay = util::betoh(params[3]);
motor_off_delay = util::betoh(params[4]);
return true;
}
bool SuperCardPro::SetParameters(int drive_select_delay_us, int step_delay_us, int motor_on_delay_ms, int seek_0_delay_ms, int motor_off_delay_ms)
{
uint16_t params[5] = {};
params[0] = util::betoh(static_cast<uint16_t>(drive_select_delay_us));
params[1] = util::betoh(static_cast<uint16_t>(step_delay_us));
params[2] = util::betoh(static_cast<uint16_t>(motor_on_delay_ms));
params[3] = util::betoh(static_cast<uint16_t>(seek_0_delay_ms));
params[4] = util::betoh(static_cast<uint16_t>(motor_off_delay_ms));
return SendCmd(CMD_SETPARAMS, params, sizeof(params));
}
bool SuperCardPro::RamTest()
{
return SendCmd(CMD_RAMTEST);
}
bool SuperCardPro::SetPin33(bool high)
{
uint8_t value = high ? 1 : 0;
return SendCmd(CMD_SETPIN33, &value, sizeof(value));
}
bool SuperCardPro::ReadFlux(int revs, FluxData& flux_revs)
{
// Read at least 2 revolutions, as a sector data may span index position
revs = std::max(2, std::min(revs, MAX_FLUX_REVS));
uint8_t info[2] = { static_cast<uint8_t>(revs), ff_Index };
if (!SendCmd(CMD_READFLUX, info, sizeof(info)))
return false;
if (!SendCmd(CMD_GETFLUXINFO, nullptr, 0))
return false;
uint32_t rev_index[MAX_FLUX_REVS * 2];
if (!ReadExact(rev_index, sizeof(rev_index)))
return false;
uint32_t flux_offset = 0;
flux_revs.clear();
for (auto i = 0; i < revs; ++i)
{
// auto index_time = util::betoh(rev_index[i*2 + 0]);
auto flux_count = util::betoh(rev_index[i * 2 + 1]);
auto flux_bytes = static_cast<uint32_t>(flux_count * sizeof(uint16_t));
std::vector<uint16_t> flux_data(flux_count); // NB: time values are big-endian
uint32_t start_len[2]{ util::htobe(flux_offset), util::htobe(flux_bytes) };
if (!SendCmd(CMD_SENDRAM_USB, &start_len, sizeof(start_len), flux_data.data(), flux_bytes))
return false;
flux_offset += flux_bytes;
std::vector<uint32_t> flux_times;
flux_times.reserve(flux_count);
uint32_t total_time = 0;
for (auto time : flux_data)
{
if (!time)
total_time += 0x10000;
else
{
total_time += util::betoh<uint16_t>(time);
flux_times.push_back(total_time * NS_PER_TICK);
total_time = 0;
}
}
flux_revs.push_back(std::move(flux_times));
}
return true;
}
bool SuperCardPro::WriteFlux(const std::vector<uint32_t>& flux_times)
{
std::vector<uint16_t> flux_data;
flux_data.reserve(flux_times.size());
for (auto time_ns : flux_times)
{
auto time_ticks{ (time_ns + (NS_PER_TICK / 2)) / NS_PER_TICK };
time_ticks = time_ticks * opt.scale / 100;
time_ticks |= 1;
while (time_ticks >= 0x10000)
{
flux_data.push_back(0);
time_ticks -= 0x10000;
}
flux_data.push_back(util::htobe(static_cast<uint16_t>(time_ticks)));
}
if (flux_data.empty())
flux_data.push_back(4'000 / NS_PER_TICK);
auto flux_count{ flux_data.size() };
auto flux_bytes{ flux_count * sizeof(flux_data[0]) };
uint32_t start_len[2];
start_len[0] = 0;
start_len[1] = util::htobe(static_cast<uint32_t>(flux_bytes));
if (!SendCmd(CMD_LOADRAM_USB, &start_len, static_cast<int>(sizeof(start_len)), flux_data.data(), static_cast<int>(flux_bytes)))
return false;
uint8_t params[5] = {};
params[0] = static_cast<uint8_t>(flux_count >> 24); // big endian
params[1] = static_cast<uint8_t>(flux_count >> 16);
params[2] = static_cast<uint8_t>(flux_count >> 8);
params[3] = static_cast<uint8_t>(flux_count);
params[4] = ff_Wipe | ff_Index;
if (!SendCmd(CMD_WRITEFLUX, ¶ms, sizeof(params)))
return false;
return true;
}
bool SuperCardPro::GetInfo(int& hwversion, int& fwversion)
{
uint8_t version[2] = {};
if (!SendCmd(CMD_SCPINFO))
return false;
if (!ReadExact(&version, sizeof(version)))
return false;
hwversion = version[0];
fwversion = version[1];
return true;
}
std::string SuperCardPro::GetErrorStatusText() const
{
switch (m_error)
{
case pr_Unused: return "null response";
case pr_BadCommand: return "bad command";
case pr_CommandErr: return "command error";
case pr_Checksum: return "packet checksum failed";
case pr_Timeout: return "USB timeout";
case pr_NoTrk0: return "track 0 not found";
case pr_NoDriveSel: return "no drive selected";
case pr_NoMotorSel: return "motor not enabled";
case pr_NotReady: return "drive not ready";
case pr_NoIndex: return "no index pulse detected";
case pr_ZeroRevs: return "zero revolutions chosen";
case pr_ReadTooLong: return "read data too big";
case pr_BadLength: return "invalid length";
case pr_BadData: return "bit cell time is invalid";
case pr_BoundaryOdd: return "location boundary is odd";
case pr_WPEnabled: return "disk is write protected";
case pr_BadRAM: return "RAM test failed";
case pr_NoDisk: return "no disk in drive";
case pr_BadBaud: return "bad baud rate selected";
case pr_BadCmdOnPort: return "bad command for port type";
case pr_Ok: return "OK";
}
return util::fmt("unknown (%02X)", m_error);
}
| 25.6781 | 146 | 0.633785 | simonowen |
380060f81bee45d7e224bac9560a8caf169abdcd | 1,161 | cpp | C++ | Contests/_Archived/Old-Dell/Luogu/lg1233.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | Contests/_Archived/Old-Dell/Luogu/lg1233.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | Contests/_Archived/Old-Dell/Luogu/lg1233.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 5e3 + 5;
class Wood
{
public:
Wood(){}
Wood(int l, int w)
{
this->l = l;
this->w = w;
}
int l, w;
bool operator>(const Wood& other) const
{
return this->l == other.l? this->w > other.w: this->l > other.l;
}
};
int n, vis[MAXN], viscont = 0, ans = 0;
vector<Wood> woods;
int main(int argc, char const *argv[])
{
//initialization
memset(vis, 0, sizeof(vis));
//input
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
int l, w; scanf("%d%d", &l, &w);
woods.push_back(Wood(l, w));
}
//sort
sort(woods.begin(), woods.end(), [](Wood a, Wood b) -> bool {return a > b;});
#ifdef TEWILOCAL
for (int i = 0; i < n; i++)
{
printf("%d,%d\n", woods[i].l, woods[i].w);
}
#endif
//check if !vis[]
while (viscont < n)
{
ans++;//preparing time cost ++
int maxl= 0x3fffffff, maxw = 0x3fffffff;//now max w, l
for (int i = 0; i < n; i++)//check whole
{
if (!vis[i] && woods[i].l <= maxl && woods[i].w <= maxw)//if !vis[] && could be in
{
vis[i] = 1; viscont++;
maxw = woods[i].w;
maxl = woods[i].l;
}
}
}
printf("%d\n", ans);
return 0;
}
| 17.590909 | 85 | 0.534022 | DCTewi |
3804fa96b4f3f98ebcc7b9ea2b975c0103353172 | 1,997 | cpp | C++ | src/openloco/windows/constructionwnd.cpp | SmallJoker/OpenLoco | f42ed80be8fac5c1c5d122352a212585d54aa71f | [
"MIT"
] | 1 | 2018-02-22T06:03:32.000Z | 2018-02-22T06:03:32.000Z | src/openloco/windows/constructionwnd.cpp | SmallJoker/OpenLoco | f42ed80be8fac5c1c5d122352a212585d54aa71f | [
"MIT"
] | null | null | null | src/openloco/windows/constructionwnd.cpp | SmallJoker/OpenLoco | f42ed80be8fac5c1c5d122352a212585d54aa71f | [
"MIT"
] | 1 | 2022-03-22T01:46:13.000Z | 2022-03-22T01:46:13.000Z | #include "../input.h"
#include "../interop/interop.hpp"
#include "../ui/WindowManager.h"
using namespace openloco::interop;
namespace openloco::ui::windows::construction
{
namespace widget_idx
{
constexpr uint16_t close = 2;
constexpr uint16_t tab_0 = 4;
constexpr uint16_t tab_1 = 5;
constexpr uint16_t tab_2 = 6;
constexpr uint16_t tab_3 = 7;
constexpr uint16_t construct = 28;
constexpr uint16_t remove = 29;
constexpr uint16_t place = 30;
}
// 0x004A3B0D
window* open_with_flags(uint32_t flags)
{
registers regs;
regs.ecx = flags;
call(0x004A3B0D, regs);
return (window*)regs.esi;
}
// 0x0049D3F6
void on_mouse_up(window& w, uint16_t widgetIndex)
{
// Allow shift key to repeat the action multiple times
// This is useful for building very long tracks.
int multiplier = 1;
if (input::has_key_modifier(input::key_modifier::shift))
{
multiplier = 10;
}
registers regs;
regs.edx = widgetIndex;
regs.esi = (int32_t)&w;
switch (widgetIndex)
{
case widget_idx::close:
WindowManager::close(&w);
break;
case widget_idx::tab_0:
case widget_idx::tab_1:
case widget_idx::tab_2:
case widget_idx::tab_3:
call(0x0049D93A, regs);
break;
case widget_idx::construct:
for (int i = 0; i < multiplier; i++)
{
call(0x0049F92D, regs);
}
break;
case widget_idx::remove:
for (int i = 0; i < multiplier; i++)
{
call(0x004A0121, regs);
}
break;
case widget_idx::place:
call(0x0049D7DC, regs);
break;
}
}
}
| 27.356164 | 64 | 0.511768 | SmallJoker |
38053a3602e71fb4898d825d90df9ea1aeec6279 | 8,552 | cpp | C++ | src/platform/x86_pc/idt.cpp | KristianJerpetjon/IncludeOS | 367a1dcefafd6f9618e5373c9133839f9ee2d675 | [
"Apache-2.0"
] | 1 | 2019-09-14T09:58:20.000Z | 2019-09-14T09:58:20.000Z | src/platform/x86_pc/idt.cpp | KristianJerpetjon/IncludeOS | 367a1dcefafd6f9618e5373c9133839f9ee2d675 | [
"Apache-2.0"
] | 1 | 2016-06-28T13:30:26.000Z | 2016-06-28T13:30:26.000Z | src/platform/x86_pc/idt.cpp | KristianJerpetjon/IncludeOS | 367a1dcefafd6f9618e5373c9133839f9ee2d675 | [
"Apache-2.0"
] | 1 | 2019-09-14T09:58:31.000Z | 2019-09-14T09:58:31.000Z | #include "idt.hpp"
#include <kernel/events.hpp>
#include <kernel/syscalls.hpp>
#include <kprint>
#include <info>
#define RING0_CODE_SEG 0x8
extern "C" {
extern void unused_interrupt_handler();
extern void modern_interrupt_handler();
extern void spurious_intr();
extern void cpu_enable_panicking();
}
#define IRQ_LINES Events::NUM_EVENTS
#define INTR_LINES (IRQ_BASE + IRQ_LINES)
namespace x86
{
typedef void (*intr_handler_t)();
typedef void (*except_handler_t)();
struct x86_IDT
{
IDTDescr entry[INTR_LINES] __attribute__((aligned(16)));
intr_handler_t get_handler(uint8_t vec);
void set_handler(uint8_t, intr_handler_t);
void set_exception_handler(uint8_t, except_handler_t);
void init();
};
static std::array<x86_IDT, SMP_MAX_CORES> idt;
void idt_initialize_for_cpu(int cpu) {
idt.at(cpu).init();
}
// A union to be able to extract the lower and upper part of an address
union addr_union {
uintptr_t whole;
struct {
uint16_t lo16;
uint16_t hi16;
#ifdef ARCH_x86_64
uint32_t top32;
#endif
};
};
static void set_intr_entry(
IDTDescr* idt_entry,
intr_handler_t func,
uint8_t ist,
uint16_t segment_sel,
char attributes)
{
addr_union addr;
addr.whole = (uintptr_t) func;
idt_entry->offset_1 = addr.lo16;
idt_entry->offset_2 = addr.hi16;
#ifdef ARCH_x86_64
idt_entry->offset_3 = addr.top32;
#endif
idt_entry->selector = segment_sel;
idt_entry->type_attr = attributes;
#ifdef ARCH_x86_64
idt_entry->ist = ist;
idt_entry->zero2 = 0;
#else
(void) ist;
idt_entry->zero = 0;
#endif
}
intr_handler_t x86_IDT::get_handler(uint8_t vec)
{
addr_union addr;
addr.lo16 = entry[vec].offset_1;
addr.hi16 = entry[vec].offset_2;
#ifdef ARCH_x86_64
addr.top32 = entry[vec].offset_3;
#endif
return (intr_handler_t) addr.whole;
}
void x86_IDT::set_handler(uint8_t vec, intr_handler_t func) {
set_intr_entry(&entry[vec], func, 1, RING0_CODE_SEG, 0x8e);
}
void x86_IDT::set_exception_handler(uint8_t vec, except_handler_t func) {
set_intr_entry(&entry[vec], (intr_handler_t) func, 2, RING0_CODE_SEG, 0x8e);
}
extern "C" {
void __cpu_except_0();
void __cpu_except_1();
void __cpu_except_2();
void __cpu_except_3();
void __cpu_except_4();
void __cpu_except_5();
void __cpu_except_6();
void __cpu_except_7();
void __cpu_except_8();
void __cpu_except_9();
void __cpu_except_10();
void __cpu_except_11();
void __cpu_except_12();
void __cpu_except_13();
void __cpu_except_14();
void __cpu_except_15();
void __cpu_except_16();
void __cpu_except_17();
void __cpu_except_18();
void __cpu_except_19();
void __cpu_except_20();
void __cpu_except_30();
}
void x86_IDT::init()
{
// make sure its all zeroes
memset(&PER_CPU(idt).entry, 0, sizeof(x86_IDT::entry));
set_exception_handler(0, __cpu_except_0);
set_exception_handler(1, __cpu_except_1);
set_exception_handler(2, __cpu_except_2);
set_exception_handler(3, __cpu_except_3);
set_exception_handler(4, __cpu_except_4);
set_exception_handler(5, __cpu_except_5);
set_exception_handler(6, __cpu_except_6);
set_exception_handler(7, __cpu_except_7);
set_exception_handler(8, __cpu_except_8);
set_exception_handler(9, __cpu_except_9);
set_exception_handler(10, __cpu_except_10);
set_exception_handler(11, __cpu_except_11);
set_exception_handler(12, __cpu_except_12);
set_exception_handler(13, __cpu_except_13);
set_exception_handler(14, __cpu_except_14);
set_exception_handler(15, __cpu_except_15);
set_exception_handler(16, __cpu_except_16);
set_exception_handler(17, __cpu_except_17);
set_exception_handler(18, __cpu_except_18);
set_exception_handler(19, __cpu_except_19);
set_exception_handler(20, __cpu_except_20);
set_exception_handler(30, __cpu_except_30);
for (size_t i = 32; i < INTR_LINES - 2; i++) {
set_handler(i, unused_interrupt_handler);
}
// spurious interrupt handler
set_handler(INTR_LINES - 1, spurious_intr);
// Load IDT
IDTR idt_reg;
idt_reg.limit = INTR_LINES * sizeof(IDTDescr) - 1;
idt_reg.base = (uintptr_t) &entry[0];
asm volatile ("lidt %0" : : "m"(idt_reg));
}
} // x86
void __arch_subscribe_irq(uint8_t irq)
{
assert(irq < IRQ_LINES);
PER_CPU(x86::idt).set_handler(IRQ_BASE + irq, modern_interrupt_handler);
}
void __arch_install_irq(uint8_t irq, x86::intr_handler_t handler)
{
assert(irq < IRQ_LINES);
PER_CPU(x86::idt).set_handler(IRQ_BASE + irq, handler);
}
void __arch_unsubscribe_irq(uint8_t irq)
{
assert(irq < IRQ_LINES);
PER_CPU(x86::idt).set_handler(IRQ_BASE + irq, unused_interrupt_handler);
}
/// CPU EXCEPTIONS ///
#define PAGE_FAULT 14
static const char* exception_names[] =
{
"Divide-by-zero Error",
"Debug",
"Non-maskable Interrupt",
"Breakpoint",
"Overflow",
"Bound Range Exceeded",
"Invalid Opcode",
"Device Not Available",
"Double Fault",
"Reserved",
"Invalid TSS",
"Segment Not Present",
"Stack-Segment Fault",
"General Protection Fault",
"Page Fault",
"Reserved",
"x87 Floating-point Exception",
"Alignment Check",
"Machine Check",
"SIMD Floating-point Exception",
"Virtualization Exception",
"Reserved",
"Reserved",
"Reserved",
"Reserved",
"Reserved",
"Reserved",
"Reserved",
"Reserved",
"Reserved",
"Security Exception",
"Reserved"
};
void __cpu_dump_regs(uintptr_t* regs)
{
#if defined(ARCH_x86_64)
# define RIP_REG 16
// AMD64 CPU registers
struct desc_table_t {
uint16_t limit;
uintptr_t location;
} __attribute__((packed)) gdt, idt;
asm ("sgdtq %0" : : "m" (* &gdt));
asm ("sidtq %0" : : "m" (* &idt));
fprintf(stderr, "\n");
printf(" RAX: %016lx R 8: %016lx\n", regs[0], regs[5]);
printf(" RBX: %016lx R 9: %016lx\n", regs[1], regs[6]);
printf(" RCX: %016lx R10: %016lx\n", regs[2], regs[7]);
printf(" RDX: %016lx R11: %016lx\n", regs[3], regs[8]);
fprintf(stderr, "\n");
printf(" RBP: %016lx R12: %016lx\n", regs[4], regs[9]);
printf(" RSP: %016lx R13: %016lx\n", regs[13], regs[10]);
printf(" RSI: %016lx R14: %016lx\n", regs[14], regs[11]);
printf(" RDI: %016lx R15: %016lx\n", regs[15], regs[12]);
printf(" RIP: %016lx FLA: %016lx\n", regs[16], regs[17]);
fprintf(stderr, "\n");
printf(" CR0: %016lx CR4: %016lx\n", regs[18], regs[22]);
printf(" CR1: %016lx CR8: %016lx\n", regs[19], regs[23]);
printf(" CR2: %016lx GDT: %016lx (%u)\n", regs[20], gdt.location, gdt.limit);
printf(" CR3: %016lx IDT: %016lx (%u)\n", regs[21], idt.location, idt.limit);
#elif defined(ARCH_i686)
# define RIP_REG 8
// i386 CPU registers
fprintf(stderr, "\n");
printf(" EAX: %08x EBP: %08x\n", regs[0], regs[4]);
printf(" EBX: %08x ESP: %08x\n", regs[1], regs[5]);
printf(" ECX: %08x ESI: %08x\n", regs[2], regs[6]);
printf(" EDX: %08x EDI: %08x\n", regs[3], regs[7]);
fprintf(stderr, "\n");
printf(" EIP: %08x EFL: %08x\n", regs[8], regs[9]);
#else
#error "Unknown architecture"
#endif
fprintf(stderr, "\n");
}
extern "C" void double_fault(const char*);
void __page_fault(uintptr_t* regs, uint32_t code) {
const char* reason = "Protection violation";
if (not(code & 1))
reason = "Page not present";
kprintf("%s, trying to access 0x%lx\n", reason, regs[20]);
if (code & 2)
kprintf("Page write failed.\n");
else
kprintf("Page read failed.\n");
if (code & 4)
kprintf("Privileged page access from user space.\n");
if (code & 8)
kprintf("Found bit set in reserved field.\n");
if (code & 16)
kprintf("Instruction fetch. XD\n");
if (code & 32)
kprintf("Protection key violation.\n");
if (code & 0x8000)
kprintf("SGX access violation.\n");
}
extern "C"
__attribute__((noreturn optnone, weak))
void __cpu_exception(uintptr_t* regs, int error, uint32_t code)
{
cpu_enable_panicking();
SMP::global_lock();
kprintf("\n>>>> !!! CPU %u EXCEPTION !!! <<<<\n", SMP::cpu_id());
kprintf("%s (%d) EIP %p CODE %#x\n",
exception_names[error], error, (void*) regs[RIP_REG], code);
if (error == PAGE_FAULT) {
__page_fault(regs, code);
}
__cpu_dump_regs(regs);
SMP::global_unlock();
// error message:
char buffer[64];
snprintf(buffer, sizeof(buffer), "%s (%d)", exception_names[error], error);
// normal CPU exception
if (error != 0x8) {
// call panic, which will decide what to do next
panic(buffer);
}
else {
// handle double faults differently
double_fault(buffer);
}
__builtin_unreachable();
}
| 25.759036 | 83 | 0.677268 | KristianJerpetjon |
3806eb36a37235df76883397348393cb0ce83aae | 215 | hh | C++ | include/AudioClip.hh | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | include/AudioClip.hh | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | include/AudioClip.hh | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | #pragma once
#include<SFML/Audio.hpp>
class AudioClip
{
private:
sf::SoundBuffer* soundBuffer{};
sf::Sound* sound{};
public:
AudioClip(const char* audioUrl, float volume);
~AudioClip();
void Play();
}; | 13.4375 | 48 | 0.67907 | carolinavillam |
3806f273b7d1a6b41b6ad0f4834e75f61e23ac44 | 616 | hpp | C++ | Phoenix3D/PX2Launcher/PX2L_MainFrame.hpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 36 | 2016-04-24T01:40:38.000Z | 2022-01-18T07:32:26.000Z | Phoenix3D/PX2Launcher/PX2L_MainFrame.hpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | null | null | null | Phoenix3D/PX2Launcher/PX2L_MainFrame.hpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 16 | 2016-06-13T08:43:51.000Z | 2020-09-15T13:25:58.000Z | // PX2L_MainFrame.hpp
#ifndef PX2L_MAINFRAME_HPP
#define PX2L_MAINFRAME_HPP
#include "PX2LauncherPre.hpp"
#include "PX2EventHandler.hpp"
#include "PX2Singleton_NeedNew.hpp"
#include "PX2L_MainView.hpp"
namespace PX2Launcher
{
class L_MainFrame : public wxFrame, public PX2::EventHandler, public PX2::Singleton <L_MainFrame>
{
public:
L_MainFrame(const std::string &title, int xPos, int yPos, int width, int height);
virtual ~L_MainFrame();
void OnTimer(wxTimerEvent& e);
bool Initlize();
protected:
DECLARE_EVENT_TABLE()
protected:
bool mIsInitlized;
L_MainView *mMainView;
};
}
#endif | 17.6 | 98 | 0.753247 | PheonixFoundation |
3807451cc62a5a2a55b6f82d8600fd851a4af2ae | 150 | cpp | C++ | Tests/UnitTests/SImpleTest.cpp | wocks1123/cpp_osp_test | 8a8859344ee07d07018393651282fc56aee18557 | [
"MIT"
] | null | null | null | Tests/UnitTests/SImpleTest.cpp | wocks1123/cpp_osp_test | 8a8859344ee07d07018393651282fc56aee18557 | [
"MIT"
] | null | null | null | Tests/UnitTests/SImpleTest.cpp | wocks1123/cpp_osp_test | 8a8859344ee07d07018393651282fc56aee18557 | [
"MIT"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include "Project1/Test.hpp"
TEST_CASE("Simple test")
{
CHECK(Add(2, 3) == 5);
} | 16.666667 | 42 | 0.713333 | wocks1123 |
38083435387161276260f1d0dbfda67030234d40 | 712 | cpp | C++ | clang/test/Refactor/Rename/DeclRefExpr.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 793 | 2015-12-03T16:45:26.000Z | 2022-02-12T20:14:20.000Z | clang/test/Refactor/Rename/DeclRefExpr.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,180 | 2019-10-18T01:21:21.000Z | 2022-03-31T23:25:41.000Z | clang/test/Refactor/Rename/DeclRefExpr.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 275 | 2019-10-18T05:27:22.000Z | 2022-03-30T09:04:21.000Z | class C {
public:
static int Foo; /* Test 1 */ // CHECK: rename [[@LINE]]:14 -> [[@LINE]]:17
};
int foo(int x) { return 0; }
#define MACRO(a) foo(a)
int main() {
C::Foo = 1; /* Test 2 */ // CHECK: rename [[@LINE]]:6 -> [[@LINE]]:9
MACRO(C::Foo); // CHECK: rename [[@LINE]]:12 -> [[@LINE]]:15
int y = C::Foo; /* Test 3 */ // CHECK: rename [[@LINE]]:14 -> [[@LINE]]:17
return 0;
}
// Test 1.
// RUN: clang-refactor-test rename-initiate -at=%s:3:14 -new-name=Bar %s | FileCheck %s
// Test 2.
// RUN: clang-refactor-test rename-initiate -at=%s:10:6 -new-name=Bar %s | FileCheck %s
// Test 3.
// RUN: clang-refactor-test rename-initiate -at=%s:12:14 -new-name=Bar %s | FileCheck %s
| 32.363636 | 88 | 0.557584 | medismailben |
380aee56336f825f1d0cfeb98929beff4bbfb39f | 5,238 | cpp | C++ | engine/generators/settlements/source/WalledSettlementGenerator.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 1 | 2020-05-24T22:44:03.000Z | 2020-05-24T22:44:03.000Z | engine/generators/settlements/source/WalledSettlementGenerator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | engine/generators/settlements/source/WalledSettlementGenerator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | #include "BuildingConfigFactory.hpp"
#include "WalledSettlementGenerator.hpp"
#include "FeatureGenerator.hpp"
#include "RNG.hpp"
#include "SettlementGeneratorUtils.hpp"
#include "TileGenerator.hpp"
using namespace std;
WalledSettlementGenerator::WalledSettlementGenerator(MapPtr new_base_map)
: BaseSettlementGenerator(new_base_map)
{
initialize();
}
WalledSettlementGenerator::WalledSettlementGenerator(MapPtr new_base_map, const int new_growth_rate)
: BaseSettlementGenerator(new_base_map, new_growth_rate)
{
initialize();
}
void WalledSettlementGenerator::initialize()
{
north_wall = 0;
south_wall = 0;
east_wall = 0;
west_wall = 0;
gate_row = 0;
gate_col = 0;
}
MapPtr WalledSettlementGenerator::generate(const Dimensions& dim)
{
return generate();
}
MapPtr WalledSettlementGenerator::generate()
{
MapPtr map = std::make_shared<Map>(*base_map);
generate_walled_settlement(map);
generate_wells(map);
return map;
}
// Generate the walls of the settlement, and then generate the buildings
// and other things within the walls.
void WalledSettlementGenerator::generate_walled_settlement(MapPtr map)
{
generate_walls(map);
generate_gate(map);
generate_inner_settlement(map);
}
// Generate the walls around the settlement
void WalledSettlementGenerator::generate_walls(MapPtr map)
{
TileGenerator tg;
Dimensions d = map->size();
int rows = d.get_y();
int cols = d.get_x();
int wall_offset = RNG::range(2,3);
north_wall = 0 + wall_offset;
south_wall = rows - wall_offset;
west_wall = 0 + wall_offset;
east_wall = cols - wall_offset;
// North, south wall
TilePtr wall_tile;
for (int col = west_wall; col <= east_wall; col++)
{
wall_tile = tg.generate(TileType::TILE_TYPE_ROCK);
map->insert(north_wall, col, wall_tile);
wall_tile = tg.generate(TileType::TILE_TYPE_ROCK);
map->insert(south_wall, col, wall_tile);
}
// East, west wall
for (int row = north_wall; row < south_wall; row++)
{
wall_tile = tg.generate(TileType::TILE_TYPE_ROCK);
map->insert(row, east_wall, wall_tile);
wall_tile = tg.generate(TileType::TILE_TYPE_ROCK);
map->insert(row, west_wall, wall_tile);
}
}
void WalledSettlementGenerator::generate_gate(MapPtr map)
{
TileGenerator tg;
CardinalDirection rand = static_cast<CardinalDirection>(RNG::range(static_cast<int>(CardinalDirection::CARDINAL_DIRECTION_NORTH), static_cast<int>(CardinalDirection::CARDINAL_DIRECTION_SOUTH)));
switch(rand)
{
case CardinalDirection::CARDINAL_DIRECTION_WEST:
case CardinalDirection::CARDINAL_DIRECTION_NORTH:
gate_wall = CardinalDirection::CARDINAL_DIRECTION_NORTH;
gate_row = north_wall;
gate_col = (east_wall + west_wall) / 2;
break;
case CardinalDirection::CARDINAL_DIRECTION_EAST:
case CardinalDirection::CARDINAL_DIRECTION_SOUTH:
gate_wall = CardinalDirection::CARDINAL_DIRECTION_SOUTH;
gate_row = south_wall;
gate_col = (east_wall + west_wall) / 2;
break;
default:
break;
}
TilePtr tile = tg.generate(TileType::TILE_TYPE_DUNGEON);
FeaturePtr gate = FeatureGenerator::generate_gate();
tile->set_feature(gate);
map->insert(gate_row, gate_col, tile);
}
void WalledSettlementGenerator::generate_inner_settlement(MapPtr map)
{
switch(gate_wall)
{
case CardinalDirection::CARDINAL_DIRECTION_WEST:
case CardinalDirection::CARDINAL_DIRECTION_NORTH:
generate_road_south(map, gate_row+1, gate_col, south_wall - north_wall - 1, growth_rate, 0, false);
break;
case CardinalDirection::CARDINAL_DIRECTION_EAST:
case CardinalDirection::CARDINAL_DIRECTION_SOUTH:
generate_road_north(map, gate_row-1, gate_col, south_wall - north_wall - 1, growth_rate, 0, false);
break;
default:
break;
}
int gap_height = (south_wall - north_wall) / 2;
int gap_width = (east_wall - west_wall) / 2;
int cur_attempts = 0;
int cur_buildings_generated = 0;
int num_attempts = 200;
int num_buildings = RNG::range(6, 9);
int row, col;
int height, width;
CardinalDirection dir;
int offset_extra = 1;
BuildingConfigFactory bcf;
while ((cur_buildings_generated < num_buildings) && (cur_attempts < num_attempts))
{
row = RNG::range(north_wall+2, south_wall-2);
col = RNG::range(west_wall+2, east_wall-2);
height = RNG::range(std::min(5, gap_height), std::min(7, gap_height));
width = RNG::range(std::min(5, gap_width), std::min(9, gap_width));
dir = static_cast<CardinalDirection>(RNG::range(static_cast<int>(CardinalDirection::CARDINAL_DIRECTION_NORTH), static_cast<int>(CardinalDirection::CARDINAL_DIRECTION_WEST)));
if (!SettlementGeneratorUtils::does_building_overlap(map, row, row+height+1, col, col+width+1, offset_extra))
{
vector<ClassIdentifier> cl_ids = bcf.create_house_or_workshop_features(WORKSHOP_PROBABILITY);
BuildingGenerationParameters bgp(row, row + height, col, col + width, dir, false, cl_ids, bcf.create_creature_ids(cl_ids), bcf.create_item_ids(cl_ids));
SettlementGeneratorUtils::generate_building_if_possible(map, bgp, buildings, growth_rate);
cur_buildings_generated++;
}
cur_attempts++;
}
}
| 30.811765 | 196 | 0.729477 | sidav |
380b371ae97928e13357dcc72565b96bfccc2c1f | 224 | cpp | C++ | solutions/Medium/137. Single Number II/solution4.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | solutions/Medium/137. Single Number II/solution4.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | solutions/Medium/137. Single Number II/solution4.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | class Solution {
public:
int singleNumber(vector<int>& nums) {
int a = 0, b = 0;
for (int num: nums) {
b = ~a & (b ^ num);
a = ~b & (a ^ num);
}
return b;
}
};
| 18.666667 | 41 | 0.383929 | BASARANOMO |
380d949247a4e4cc47110a19087af3b7fa4fea5b | 663 | cpp | C++ | src/vt/util/StringBuilder.cpp | Pikaju/Veletrix | 9572f37542e0a14198de6aa8ba4d6a4fddafd433 | [
"MIT"
] | null | null | null | src/vt/util/StringBuilder.cpp | Pikaju/Veletrix | 9572f37542e0a14198de6aa8ba4d6a4fddafd433 | [
"MIT"
] | null | null | null | src/vt/util/StringBuilder.cpp | Pikaju/Veletrix | 9572f37542e0a14198de6aa8ba4d6a4fddafd433 | [
"MIT"
] | null | null | null | #include "StringBuilder.h"
namespace vt {
StringBuilder::StringBuilder() : m_main(), m_buffer(), m_bufferSize(1024)
{
}
StringBuilder::~StringBuilder()
{
}
StringBuilder& StringBuilder::append(const String& string)
{
m_buffer += string;
// Append buffer to main, if the maximum buffer size is exceeded.
if (m_buffer.size() > m_bufferSize) {
m_main += m_buffer;
m_buffer.resize(0);
}
return *this;
}
const String& StringBuilder::getString()
{
// Append buffer to main, if the buffer isn't empty.
if (m_buffer.size() > 0) {
m_main += m_buffer;
m_buffer.resize(0);
}
return m_main;
}
} | 19.5 | 75 | 0.631976 | Pikaju |
380eee22a33fb82fa355036c7325f8e4ecbea6a1 | 6,170 | cpp | C++ | src/rho.cpp | romz-pl/kohn-sham-atom | f8d87850469097ed39ba855b50df46787b1c3114 | [
"MIT"
] | 1 | 2022-02-24T03:48:19.000Z | 2022-02-24T03:48:19.000Z | src/rho.cpp | romz-pl/kohn-sham-atom | f8d87850469097ed39ba855b50df46787b1c3114 | [
"MIT"
] | null | null | null | src/rho.cpp | romz-pl/kohn-sham-atom | f8d87850469097ed39ba855b50df46787b1c3114 | [
"MIT"
] | null | null | null | #include <fstream>
#include <sstream>
#include "rho.h"
#include "rhoinit.h"
#include "constants.h"
#include "approxsolver.h"
#include "gauss.h"
#include "paramdb.h"
//
// Initialization of electron density.
// Proper initialization of electron density could have large impact on the
// convergence of Self Consisten Field (SCF) procedure implemented in class NonLinKs.
//
// The algorithm implemented in this function is based on heuristic!
// I have never tried other incitialization functions, since I was satisfied with
// the current speed of convergence.
//
// 1. For default initialization the following function is used
//
// \rho_0(r) = M^4 / 16 * r^2 * \exp( -M * r / 2 )
//
// where M is the number of electrons (equal to the number of protons for the nutral atom).
//
// 2. For user defined initialization the following function is used
//
// \rho_0(r) = c * r^2 * \exp( -\alpha * r );
//
// See the class RhoInit.
//
//
void Rho::Init()
{
const bool def = ParamDb::GetBool( "Rho0_Default" );
const double M = ParamDb::GetDouble( "Atom_Proton" );
const double midM = 50; // This is heuristic!
double c, alpha;
if( def ) // Default initialization
{
double w;
if( M < midM )
w = M;
else
w = midM;
// Default inicjalization
c = w * w * w * w / 16.;
c *= ( M / w );
alpha = 0.5 * w;
}
else // User defined initialization
{
c = ParamDb::GetDouble( "Rho0_c" );
alpha = ParamDb::GetDouble( "Rho0_Alpha" );
}
RhoInit f( c, alpha );
Calc( f );
const double elecNo = Integ();
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++\n");
printf("+ Number of protons (electrons) = %.2lf\n", M );
printf("+ Applied 'Rho0' gives %.6lf electrons\n", elecNo );
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++\n\n");
// After initialization integral of electron densities shuld be equal to number of protons
const double eps = 1E-4;
if( fabs( M - elecNo ) > eps )
{
if( def )
{
throw std::runtime_error( "Something strange in function Rho::Init" );
}
else
{
std::stringstream ss;
ss << "Invalid arguments for user defined initialization of electron density." << std::endl;
ss << "Applied parameter Rho0_c = " << ParamDb::GetDouble( "Rho0_c" ) << std::endl;
ss << "and parameter Rho0_Alpha = " << ParamDb::GetDouble( "Rho0_Alpha" ) << std::endl;
ss << "give wrong number of electrons! It must be: " << M << std::endl;
ss << "Applied parameters gave: " << elecNo << std::endl;
ss << "Adjust parameters Rho0_c, Rho0_Alpha and try again." << std::endl;
throw std::runtime_error( ss.str() );
}
}
}
//
// returns integral
//
// \int \rho(r) d \vec{r} = \int_0^{\infty} \rho(r) dr
//
double Rho::Integ() const
{
const std::vector< double > node = GetNode();
assert( node.size() > 1 );
double val = 0;
for( size_t i = 0; i < node.size() - 1; ++i )
val += Gauss::Calc( *this, node[ i ], node[ i + 1 ] );
return val;
}
//
// Calculates approximation of electron density based on function "f"
//
void Rho::Calc( const Fun1D& f )
{
const double rc = ParamDb::GetDouble( "Atom_Rc" );
const size_t rhoDeg = ParamDb::GetSize_t( "Rho_Deg" );
const double rhoDelta = ParamDb::GetDouble( "Rho_Delta" );
ApproxSolver approxSolver( rhoDeg, f );
m_approx = approxSolver.Run( 0, rc, rhoDelta );
}
//
// Returns electron density for radius "r"
//
double Rho::Get( double r ) const
{
assert( r <= ParamDb::GetDouble( "Atom_Rc" ) );
const double v = m_approx.Get( r );
// Sometimes, because of approximation, the approximated value is less than zero,
// what has no phisical meaning. Then zero is returned.
if( v < 0. )
return 0;
return v;
}
//
// Returns value of helper function $\tilde{\rho}(r)$
//
double Rho::GetRhoTilde( double r ) const
{
const double rho = Get( r );
if( r > 0 )
return rho / ( RATOM_4PI * r * r );
// Linear extrapolation for (r == 0)
const double eps = 1E-6;
const double v1 = GetRhoTilde( eps );
const double v2 = GetRhoTilde( 2 * eps );
return 2 * v1 - v2;
}
//
// Returns nodes used for perfoming the approximation
//
std::vector< double > Rho::GetNode() const
{
return m_approx.GetNode();
}
//
// Writes calculated total radial electron density.
//
void Rho::Write() const
{
const std::string outRhoPath = ParamDb::GetString( "Out_RhoPath" );
std::ofstream out( outRhoPath, std::ios::out );
if( !out )
{
throw std::invalid_argument( "Cannot open file. Path = " + outRhoPath );
}
out << std::scientific;
const size_t outRhoNode = ParamDb::GetSize_t( "Out_RhoNode" );
if( outRhoNode < 1 )
{
throw std::runtime_error( "Out_RhoNode must be greater then zero." );
}
out << "# \n";
out << "# Output from RAtom program.\n";
out << "# \n";
out << "# Total radial electron density.\n";
out << "# The first column contains radius $r$ in bohr units.\n";
out << "# The second column holds $\\rho(r)$.\n";
out << "# The third column holds $\\tilde{\\rho}(r) = \\rho(r) / (\\pi * r * r)$\n";
out << "# \n";
out << "# Use this file with gnuplot to create the plot.\n";
out << "# \n";
out << "# R Rho RhoTilde\n";
out << "#\n";
const std::vector< double > node = GetNode( );
if( node.empty() )
{
throw std::runtime_error( "No data in Rho::Write function." );
}
double r;
for( size_t i = 0; i < node.size() - 1; ++i )
{
const double dr = ( node[ i + 1 ] - node[ i ]) / outRhoNode;
r = node[ i ];
for( size_t k = 0; k < outRhoNode; ++k )
{
out << r << " " << Get( r ) << " " << GetRhoTilde( r ) << std::endl;
r += dr;
}
}
// The last node
r = node.back();
out << r << " " << Get( r ) << " " << GetRhoTilde( r ) << std::endl;
}
| 27.918552 | 104 | 0.557536 | romz-pl |
38129f7e8c551cf615552eb79e0bed0a50fbd57c | 983 | cpp | C++ | source/vector/Sort/912sortArray.cpp | Tridu33/myclionarch | d4e41b3465a62a83cbf6c7119401c05009f4b636 | [
"MIT"
] | null | null | null | source/vector/Sort/912sortArray.cpp | Tridu33/myclionarch | d4e41b3465a62a83cbf6c7119401c05009f4b636 | [
"MIT"
] | null | null | null | source/vector/Sort/912sortArray.cpp | Tridu33/myclionarch | d4e41b3465a62a83cbf6c7119401c05009f4b636 | [
"MIT"
] | null | null | null | //quick sort
class Solution {
int partition(vector<int> &nums,int l ,int r){
int pivot = nums[r];
int i = l - 1;
for (int j = l;j<r;j++){
if(nums[j] <= pivot){
i++;
swap(nums[i], nums[j]);
}
}
swap(nums[i + 1], nums[r]);
return i + 1;
}
int randomized_partition(vector<int> & nums,int l,int r){
int i = rand() % (r - l + 1) + l;//[l,r]
swap(nums[r], nums[i]);
return partition(nums, l, r);
}
void randomized_quicksort(vector<int> & nums,int l,int r){
if(l < r){
int pos = randomized_partition(nums, l, r);
randomized_quicksort(nums, l, pos - 1);
randomized_quicksort(nums, pos + 1, r);
}
}
public:
vector<int> sortArray(vector<int>& nums) {
srand((unsigned) time(NULL));
randomized_quicksort(nums, 0, (int)nums.size() - 1);
return nums;
}
}; | 28.085714 | 62 | 0.480163 | Tridu33 |
38147bb11cea0eaf2abd45c5b6e06ad67607a18c | 508 | cpp | C++ | src/telegram/types/pollanswer.cpp | AlexTeos/CustomsForgeBot | 7ac473ea88ded526c9edbc9486967a8a839b6fe2 | [
"MIT"
] | null | null | null | src/telegram/types/pollanswer.cpp | AlexTeos/CustomsForgeBot | 7ac473ea88ded526c9edbc9486967a8a839b6fe2 | [
"MIT"
] | null | null | null | src/telegram/types/pollanswer.cpp | AlexTeos/CustomsForgeBot | 7ac473ea88ded526c9edbc9486967a8a839b6fe2 | [
"MIT"
] | null | null | null | #include "pollanswer.h"
namespace Telegram
{
void readJsonObject(PollAnswer::Ptr& value, const QJsonObject& json, const QString& valueName)
{
if (json.contains(valueName) && json[valueName].isObject())
{
value = PollAnswer::Ptr::create();
QJsonObject object = json[valueName].toObject();
readJsonObject(value->m_poll_id, object, "poll_id");
readJsonObject(value->m_user, object, "user");
readJsonObject(value->m_option_ids, object, "option_ids");
}
}
}
| 26.736842 | 94 | 0.67126 | AlexTeos |
381498f8076837853e3fccea2eb37d434e91be42 | 144 | cpp | C++ | ProgramStudy/Source/Component/Animation/AnimatorController.cpp | trinhlehainam/ASO_3rd_year_StudyProject | 89c54e42e97cc47af175f61b26a5871bc2a718a0 | [
"MIT"
] | null | null | null | ProgramStudy/Source/Component/Animation/AnimatorController.cpp | trinhlehainam/ASO_3rd_year_StudyProject | 89c54e42e97cc47af175f61b26a5871bc2a718a0 | [
"MIT"
] | null | null | null | ProgramStudy/Source/Component/Animation/AnimatorController.cpp | trinhlehainam/ASO_3rd_year_StudyProject | 89c54e42e97cc47af175f61b26a5871bc2a718a0 | [
"MIT"
] | null | null | null | #include "AnimatorController.h"
bool AnimatorController::HasParameter(const std::string& paramKey) const
{
return paramMap.count(paramKey);
}
| 20.571429 | 72 | 0.791667 | trinhlehainam |
381683a50c346f0b08a894db50593b675c4b1d38 | 8,568 | cpp | C++ | src/fractal/fractalnft.cpp | cryptostiltskin/Espers | 8e5f098f8da47fbf2e207dc0b2ecf0d9b6c3fc13 | [
"MIT"
] | 74 | 2016-09-22T02:53:07.000Z | 2022-01-12T09:08:39.000Z | src/fractal/fractalnft.cpp | BirduIDO/Espers | f287ed5e2e187653b132142d6e66cbe68e8ad9c7 | [
"MIT"
] | 32 | 2016-05-05T12:27:19.000Z | 2021-11-07T21:31:23.000Z | src/fractal/fractalnft.cpp | BirduIDO/Espers | f287ed5e2e187653b132142d6e66cbe68e8ad9c7 | [
"MIT"
] | 56 | 2016-04-13T01:11:20.000Z | 2022-01-03T20:46:01.000Z | // Copyright (c) 2020-2021 The Espers Project/CryptoCoderz Team
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// NOTICE!
//
// This is a completely experimental NFT data storage and retrieval written by
// CryptoCoderz (Jonathan Dan Zaretsky - cryptocoderz@gmail.com)
// and
// SaltineChips (Jeremiah Cook - jeremiahwcook@gmail.com)
// dmEgc2xhdnUgZ29zcG9kZSBib2dlIGUgbmFzaCBzcGFzZXRhbCBlc3VzIGhyaXN0b3M=
//
//
// PLEASE USE AT YOUR OWN RISK!!!
//
#include "fractalnft.h"
// For Logprintf
#include "util/util.h"
// For image read
#include "fractalnftbase.h"
// For threadsafe messages
#include "ui/ui_interface.h"
#include <string>
#include <cstring>
using namespace std;
std::string nft_data = "CeyQ1FkJc4gwqLvRzCJv5CG8TW1Y2s1H"; // PubKey Example
std::string NFTparserdata = ""; // Set and used for parser
// Logging of each character count (hard limit of 1 line per encoding)
std::string Pixel_Cache[1] = {};
// Logging of succesfull run
bool NFT_run = false;
void NFTrender(std::string input_nft_data, std::string input_alias, string render_alias, int contract_type) {
//
// Returns first word
std::string pixel_count = input_nft_data.substr(0, input_nft_data.find(" "));
// Set found count
int log_found = 0;
// Set starting loop position
int start_position = 0;
//
int channels = 3;
//
int w, h;
// Print for debugging
LogPrintf("deob - INFO - Set base values... \n");
// Set size
size_t position = 0;
// Clear previously set data
nft_data = "";
NFTparserdata = "";
// Loop through all words in input
while((position = input_nft_data.find(" ")) != std::string::npos) {
// Set array data
NFTparserdata += pixel_count;
// Log word count found
log_found ++;
// Break loop if maximum render pixel line count is reached
if(log_found > 400)
{
break;
}
// Move to next word
input_nft_data.erase(0, input_nft_data.find(" ") + std::string(" ").length());
pixel_count = input_nft_data.substr(0, input_nft_data.find(" "));
}
// Print for debugging
LogPrintf("NFT Render - INFO - Found %u pixel lines!\n", log_found);
// Set dimensions
w = log_found;
h = w;
// Print for debugging
//LogPrintf("NFT Render - INFO - Set the following Pixel data for printing: %s\n", NFTparserdata);
// Encoded data to write
unsigned char data[w * h * channels];
// Set rgb parse values
// Set subvalues of pixel value
std::string parse_count = NFTparserdata.substr(0, NFTparserdata.find("C"));
// Set array position
int dataPosition = 0;
// Write pixel data
while (start_position < (w * h))
{
// Set and Move to next data sets
int parse_cache = int(std::stoi(parse_count));
data[dataPosition++] = parse_cache;
NFTparserdata.erase(0, NFTparserdata.find("C") + std::string("C").length());
parse_count = NFTparserdata.substr(0, NFTparserdata.find("C"));
parse_cache = int(std::stoi(parse_count));
data[dataPosition++] = parse_cache;
NFTparserdata.erase(0, NFTparserdata.find("C") + std::string("C").length());
parse_count = NFTparserdata.substr(0, NFTparserdata.find("C"));
parse_cache = int(std::stoi(parse_count));
data[dataPosition++] = parse_cache;
// Print for debugging
//LogPrintf("NFT Render - INFO - Writing Rendered RGB: %s, %s, %s\n", data[(dataPosition - 2)], data[(dataPosition - 1)], data[dataPosition]);
// Move up in start position
start_position ++;
// Move to next word
NFTparserdata.erase(0, NFTparserdata.find("C") + std::string("C").length());
parse_count = NFTparserdata.substr(0, NFTparserdata.find("C"));
}
// Print for debugging
LogPrintf("NFT Render - INFO - Rendering to file: %s!\n", render_alias);
// Print for debugging
LogPrintf("NFT Render - INFO - Rendered NFT: %s!\n", input_alias);
NFTprintRENDER(data, w, h, channels, render_alias, contract_type);
}
void NFTprintRENDER(unsigned char NFTdata[], int w, int h, int channels, std::string passed_alias, int contract_type) {
// Inform user of image generation
uiInterface.ThreadSafeMessageBox("Your NFT image has been rendered!", "", CClientUIInterface::MSG_INFORMATION);
// Print image
int PNGdata = (w * channels);
write_image(passed_alias.c_str(), w, h, channels, NFTdata, contract_type, PNGdata);
}
void NFTparse(std::string image_to_deCode) {
// Clear possible left over data
NFTparserdata = "";
// Set values
NFT_run = false;
NFTBASE_run = NFT_run;
int width, height;
int r, g, b;//, a;
std::vector<unsigned char> image;
std::string str_x, str_y, str_r, str_g, str_b, str_a;
std::string nftBUF = "C";
std::string nftPAD = " ";
// Set image data
bool success = load_image(image, image_to_deCode, width, height);
// Report failure
if (!success)
{
// Print for debugging
LogPrintf("NFT Parser - ERROR - could not open or load image!\n");
// Reset RGB(A) index value for next attempt
n = 0;
return;
}
// Hard limit maximum NFT pixel size
// Limit set to 400x400 for testing
// This can be removed later
// as NFT only cares about amount of data
// to decode and not really how many pixels are there
else if ((width * height) > 160000 || width != height)
{
// Print for debugging
LogPrintf("NFT Parser - ERROR - Image is either too large or invalid aspect ratio!\n");
// Reset RGB(A) index value for next attempt
n = 0;
// Inform user of error
uiInterface.ThreadSafeMessageBox("Image either larger than 400x400 pixels or not a square image!", "", CClientUIInterface::MSG_ERROR);
return;
}
// Print for debugging
LogPrintf("NFT Decode - Image dimensions (width x height): %u %u\n", width, height);
// Define pixel position
int x = 1;
int y = 1;
int p = 1;
int positionLOOP = 0;
int yLOOP = 1;
// Either 3 or 4
size_t RGBA = n;
size_t index = 0;
if (RGBA > 3)
{
// Print for debugging
LogPrintf("NFT Parser - WARNING - Invalid RGB type: expected RGB, parsed RGBA\n");
// Inform user of error
uiInterface.ThreadSafeMessageBox("Image has transparency which degrades when parsed! Use JPG for now!", "", CClientUIInterface::MSG_WARNING);
} else if (RGBA < 3)
{
// Throw error
NFT_run = false;
// Print for debugging
LogPrintf("NFT Parser - ERROR - Invalid RGB type: expected RGB, parsed INVALID FORMAT\n");
// Reset RGB(A) index value for next attempt
n = 0;
return;
}
// Loop handling for a maximum 400x400 image
while (positionLOOP < (width * height))
{
// Handle RGB parsing
r = static_cast<int>(image[index + 0]);
g = static_cast<int>(image[index + 1]);
b = static_cast<int>(image[index + 2]);
// Move to get next pixel of RGB
index += RGBA;
str_x = std::to_string(x);
str_y = std::to_string(y);
str_r = std::to_string(r);
str_g = std::to_string(g);
str_b = std::to_string(b);
//str_a = std::to_string(a);
// Print for debugging
//LogPrintf("NFT Parser - Pixel |%u| Position x=%s y=%s - RGB data parsed: %s, %s, %s\n", p, str_x, str_y, str_r, str_g, str_b);
// Write data to array
Pixel_Cache[0] = str_r + nftBUF + str_g + nftBUF + str_b + nftBUF;// + str_a + nftBUF;
NFTparserdata += Pixel_Cache[0];
// Move up in loop logic and pixel position
if (yLOOP == width)
{
NFTparserdata += nftPAD;
y = 0;
yLOOP = 0;
x++;
}
y++;
p++;
yLOOP++;
positionLOOP++;
}
// Reset RGB(A) index value for next attempt
n = 0;
// Match data and get ready for use
NFTenCode(NFTparserdata);
}
void NFTenCode(std::string input_pixeldata) {
nftBASEOut_String = input_pixeldata;
NFT_run = true;
NFTBASE_run = NFT_run;
// Inform user of image generation
uiInterface.ThreadSafeMessageBox("Image was successfully parsed into a NFT!", "", CClientUIInterface::MSG_INFORMATION);
// Clear data
NFTparserdata = "";
}
| 32.210526 | 150 | 0.622549 | cryptostiltskin |
38190debf42bb9830f46082df81089f50e1a1c00 | 1,118 | cpp | C++ | LinearList/1/main.cpp | Xavi1erW/BUPT_DataStructure | c024bbfcae223f74b75712eb7b7f3a95a75e9484 | [
"MIT"
] | null | null | null | LinearList/1/main.cpp | Xavi1erW/BUPT_DataStructure | c024bbfcae223f74b75712eb7b7f3a95a75e9484 | [
"MIT"
] | null | null | null | LinearList/1/main.cpp | Xavi1erW/BUPT_DataStructure | c024bbfcae223f74b75712eb7b7f3a95a75e9484 | [
"MIT"
] | null | null | null | #include "doubleList.h"
#include "doubleList.cpp"
int main()
{
int test[5] = {1,2,3,4,5};
doubleList<int> list (test, 5);
list.show();
list.insert(3);
cout << "Length:" << list.getLength() << endl;
list.show();
list.insert(10);
list.show();
try{
list.Delete(10);
cout << "Length:" << list.getLength() << endl;
}catch(const char* msg){
cout << msg;
}
try{
list.Delete(2);
cout << "Length:" << list.getLength() << endl;
}catch(const char* msg){
cout << msg;
}
try{
list.show();
list.Delete(6);
cout << "Length:" << list.getLength() << endl;
}catch(const char* msg){
cout << msg;
}
try{
vector<int> result = list.Find(2);
for(int idx : result)
{
cout << idx << ' ';
}
cout << endl;
result.clear();
result = list.Find(9);
for(int idx : result)
{
cout << idx << ' ';
}
cout << endl;
}catch(const char* msg){
cout << msg;
}
return 0;
} | 20.327273 | 54 | 0.449016 | Xavi1erW |
381b0755b8bfe7c8be2046ffe593a2457b083ad1 | 6,456 | cc | C++ | onnxruntime/core/graph/contrib_ops/shape_inference_functions.cc | SiriusKY/onnxruntime | 3c5853dcbc9d5dda2476afa8c6105802d2b8e53d | [
"MIT"
] | 669 | 2018-12-03T22:00:31.000Z | 2019-05-06T19:42:49.000Z | onnxruntime/core/graph/contrib_ops/shape_inference_functions.cc | SiriusKY/onnxruntime | 3c5853dcbc9d5dda2476afa8c6105802d2b8e53d | [
"MIT"
] | 440 | 2018-12-03T21:09:56.000Z | 2019-05-06T20:47:23.000Z | onnxruntime/core/graph/contrib_ops/shape_inference_functions.cc | SiriusKY/onnxruntime | 3c5853dcbc9d5dda2476afa8c6105802d2b8e53d | [
"MIT"
] | 140 | 2018-12-03T21:15:28.000Z | 2019-05-06T18:02:36.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/graph/contrib_ops/shape_inference_functions.h"
#include <onnx/defs/shape_inference.h>
namespace onnxruntime {
namespace contrib {
void EmbedLayerNormalizationShapeInference(::ONNX_NAMESPACE::InferenceContext& ctx) {
propagateElemTypeFromInputToOutput(ctx, 2, 0);
propagateElemTypeFromInputToOutput(ctx, 0, 1);
if (!hasInputShape(ctx, 0)) {
// TODO(kreeger): In this case update the output to (?, ?, hidden_size).
return;
}
auto& input_ids_shape = getInputShape(ctx, 0);
auto& input_ids_dims = input_ids_shape.dim();
// Note that both batch size and sequence length could be symbolic.
// So we only check dimension size here.
if (input_ids_dims.size() != 2) {
fail_shape_inference("input_ids shall be 2 dimensions");
}
bool has_segment = hasInputShape(ctx, 1);
if (has_segment) {
// Ensure that segment_ids has the same shape.
auto& segment_ids_shape = getInputShape(ctx, 1);
auto& segment_ids_dims = segment_ids_shape.dim();
if (segment_ids_dims.size() != 2) {
fail_shape_inference("segment_ids input shall be 2 dimensions");
}
}
// get hidden_size from the last dimension of embedding
auto& word_embedding_shape = getInputShape(ctx, 2);
auto& word_embedding_dims = word_embedding_shape.dim();
if (word_embedding_dims.size() != 2 ||
!word_embedding_dims[1].has_dim_value() ||
word_embedding_shape.dim(1).dim_value() <= 0) {
fail_shape_inference("word_embedding should have 2 dimensions and dimension size is known.");
}
int64_t hidden_size = word_embedding_shape.dim(1).dim_value();
// Ensure that all embeddings + the gamma/beta tensors have the same hidden_size:
auto& position_embedding_shape = getInputShape(ctx, 3);
auto& position_embedding_dims = position_embedding_shape.dim();
if (position_embedding_dims.size() != 2 ||
!position_embedding_dims[1].has_dim_value() ||
position_embedding_shape.dim(1).dim_value() != hidden_size) {
fail_shape_inference(
"position_embedding should have 2 dimensions, dimension size known, "
"and same hidden size as word_embedding.");
}
if (has_segment) {
auto& segment_embedding_shape = getInputShape(ctx, 4);
auto& segment_embedding_dims = segment_embedding_shape.dim();
if (segment_embedding_dims.size() != 2 ||
!segment_embedding_dims[1].has_dim_value() ||
segment_embedding_shape.dim(1).dim_value() != hidden_size) {
fail_shape_inference(
"segment_embedding should have 2 dimensions, dimension size known, "
"and same hidden size as word_embedding.");
}
}
auto& gamma_shape = getInputShape(ctx, 5);
auto& gamma_dims = gamma_shape.dim();
if (gamma_dims.size() != 1 ||
!gamma_dims[0].has_dim_value() ||
gamma_shape.dim(0).dim_value() != hidden_size) {
fail_shape_inference(
"gamma should have 2 dimension, dimension size known, "
"and same hidden size as word_embedding.");
}
auto& beta_shape = getInputShape(ctx, 6);
auto& beta_dims = gamma_shape.dim();
if (beta_dims.size() != 1 ||
!beta_dims[0].has_dim_value() ||
beta_shape.dim(0).dim_value() != hidden_size) {
fail_shape_inference(
"beta should have 1 dimension, dimension size known, "
"and same hidden size as word_embedding.");
}
// input shape is (batch_size, sequence_length), output shape is (batch_size, sequence_length, hidden_size)
ONNX_NAMESPACE::TensorShapeProto output_shape;
*output_shape.add_dim() = input_ids_dims[0];
*output_shape.add_dim() = input_ids_dims[1];
output_shape.add_dim();
output_shape.mutable_dim(2)->set_dim_value(hidden_size);
updateOutputShape(ctx, 0, output_shape);
// mask_index shape is (batch_size)
ONNX_NAMESPACE::TensorShapeProto mask_index_shape;
*mask_index_shape.add_dim() = input_ids_dims[0];
updateOutputShape(ctx, 1, mask_index_shape);
if (ctx.getNumOutputs() > 2) {
updateOutputShape(ctx, 2, output_shape);
propagateElemTypeFromInputToOutput(ctx, 0, 2);
}
}
void AttentionTypeAndShapeInference(ONNX_NAMESPACE::InferenceContext& ctx, int past_input_index) {
// Type inference
ONNX_NAMESPACE::propagateElemTypeFromInputToOutput(ctx, 2, 0);
if (ctx.getNumOutputs() > 1) {
ONNX_NAMESPACE::propagateElemTypeFromInputToOutput(ctx, 2, 1);
}
// Shape inference
if (hasInputShape(ctx, 0) && hasInputShape(ctx, 2)) {
auto& input_shape = getInputShape(ctx, 0);
auto& input_dims = input_shape.dim();
if (input_dims.size() != 3) {
fail_shape_inference("Inputs 0 shall be 3 dimensions");
}
auto& bias_shape = getInputShape(ctx, 2);
auto& bias_dims = bias_shape.dim();
if (bias_dims.size() != 1) {
fail_shape_inference("Invalid bias shape");
}
std::vector<int64_t> qkv_hidden_sizes;
getRepeatedAttribute(ctx, "qkv_hidden_sizes", qkv_hidden_sizes);
int64_t output_hidden_size;
if (qkv_hidden_sizes.size() != 0) {
if (qkv_hidden_sizes.size() != 3) {
fail_shape_inference("qkv_hidden_sizes should have 3 elements")
}
output_hidden_size = qkv_hidden_sizes[2];
} else {
output_hidden_size = bias_shape.dim(0).dim_value() / 3;
}
ONNX_NAMESPACE::TensorShapeProto output_shape;
for (auto& dim : input_dims) {
*output_shape.add_dim() = dim;
}
output_shape.mutable_dim(2)->set_dim_value(output_hidden_size);
updateOutputShape(ctx, 0, output_shape);
// TODO does the extra output need any changes?
if (ctx.getNumOutputs() > 1) {
if (hasInputShape(ctx, past_input_index)) {
auto& past_shape = getInputShape(ctx, past_input_index);
auto& past_dims = past_shape.dim();
if (past_dims.size() != 5) {
fail_shape_inference("Inputs 4 shall be 5 dimensions");
}
if (past_dims[3].has_dim_value() && input_dims[1].has_dim_value()) {
auto all_sequence_length = past_shape.dim(3).dim_value() + input_shape.dim(1).dim_value();
ONNX_NAMESPACE::TensorShapeProto present_shape;
for (auto& dim : past_dims) {
*present_shape.add_dim() = dim;
}
present_shape.mutable_dim(3)->set_dim_value(all_sequence_length);
updateOutputShape(ctx, 1, present_shape);
}
}
}
}
}
} // namespace contrib
} // namespace onnxruntime | 36.269663 | 109 | 0.691914 | SiriusKY |
381c79ee10ac97e1ba0916c8cf98d9dd5dc4fb9c | 2,611 | cpp | C++ | test-MonitoringAndTypewiseAlert.cpp | clean-code-craft-tcq-2/coverage-in-c-Nivedhithya-Sundarasamy | e76cf07dfd450b617ce74b9aca285151173516f5 | [
"MIT"
] | null | null | null | test-MonitoringAndTypewiseAlert.cpp | clean-code-craft-tcq-2/coverage-in-c-Nivedhithya-Sundarasamy | e76cf07dfd450b617ce74b9aca285151173516f5 | [
"MIT"
] | 1 | 2022-02-24T11:21:20.000Z | 2022-02-24T11:21:20.000Z | test-MonitoringAndTypewiseAlert.cpp | clean-code-craft-tcq-2/coverage-in-c-Nivedhithya-Sundarasamy | e76cf07dfd450b617ce74b9aca285151173516f5 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "test/catch.hpp"
#include "MonitoringAndTypewiseAlert.h"
int printCallCount = 0;
void fakePrint(const char* printStatement) {
printf("%s \n", printStatement);
printCallCount++;
}
TEST_CASE("Checks if the value is below given limit") {
REQUIRE(checkIfValueIsBelowLimit(12,30) == true);
REQUIRE(checkIfValueIsBelowLimit(42,30) == false);
}
TEST_CASE("Checks if the value is above given limit") {
REQUIRE(checkIfValueIsAboveLimit(12,30) == false);
REQUIRE(checkIfValueIsAboveLimit(42,30) == true);
}
TEST_CASE("Checks if the values is within given limits") {
REQUIRE(checkIfValueIsWithinLimits(12,0,30) == true);
REQUIRE(checkIfValueIsWithinLimits(42,0,30) == false);
}
TEST_CASE("Infers the breach type according to limits") {
REQUIRE(inferBreach(12, 20, 30) == TOO_LOW);
REQUIRE(inferBreach(22, 20, 30) == NORMAL);
REQUIRE(inferBreach(32, 20, 30) == TOO_HIGH);
}
TEST_CASE("Checks if the given index matches with the given cooling type") {
REQUIRE(checkIfCoolingTypeMatches(PASSIVE_COOLING, 0) == true);
REQUIRE(checkIfCoolingTypeMatches(HI_ACTIVE_COOLING, 2) == false);
}
TEST_CASE("Classifies the temperature type and infers the breach type") {
REQUIRE(classifyTemperatureBreach(PASSIVE_COOLING, -10) == TOO_LOW);
}
TEST_CASE("Checks if the given index matches with the given alert type") {
REQUIRE(checkIfAlertTargetMatches(TO_CONTROLLER, 0) == true);
REQUIRE(checkIfAlertTargetMatches(TO_CONTROLLER, 1) == false);
}
TEST_CASE("check if the given index matches with given breach type") {
REQUIRE(checkIfBreachTypeMatches(TOO_HIGH,1) == true);
REQUIRE(checkIfBreachTypeMatches(TOO_HIGH,2) == false);
}
TEST_CASE("Send alert to controller") {
printCallCount = 0;
sendToController(TOO_HIGH, print);
sendToController(TOO_HIGH, fakePrint);
REQUIRE(printCallCount == 1);
}
TEST_CASE("Send alert to EMAIL") {
printCallCount = 0;
sendToEmail(TOO_LOW, fakePrint);
REQUIRE(printCallCount == 2);
}
TEST_CASE("Send Email") {
printCallCount = 0;
sendAlertEmail(true,1,fakePrint,"a.b@c.com");
REQUIRE(printCallCount == 2);
}
TEST_CASE("Check the value and alert for Passive Cooling") {
BatteryCharacter batteryCharacter;
batteryCharacter.coolingType = PASSIVE_COOLING;
printCallCount = 0;
checkAndAlert(TO_CONTROLLER, batteryCharacter, -10, print);
checkAndAlert(TO_EMAIL, batteryCharacter, -10, fakePrint);
checkAndAlert(TO_EMAIL, batteryCharacter, 10, fakePrint);
checkAndAlert(TO_CONTROLLER, batteryCharacter, 40, fakePrint);
REQUIRE(printCallCount == 3);
}
| 31.457831 | 97 | 0.756032 | clean-code-craft-tcq-2 |
381e58d0d92f9edf2d1b0632f7bfa42666fd1522 | 2,647 | cpp | C++ | src/engine/gui/widgets/checkbox.cpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 13 | 2020-01-10T16:36:46.000Z | 2021-08-09T09:24:47.000Z | src/engine/gui/widgets/checkbox.cpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 1 | 2020-01-16T11:03:49.000Z | 2020-01-16T11:11:15.000Z | src/engine/gui/widgets/checkbox.cpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 1 | 2020-02-06T21:22:47.000Z | 2020-02-06T21:22:47.000Z | #include "checkbox.hpp"
#include "engine/gui/gui_manager.hpp"
#include "engine/graphics/renderer.hpp"
#include "engine/utility/connect_guard_additions.hpp"
#include "button.hpp"
namespace oe::gui
{
Checkbox::Checkbox(Widget* parent, GUI& gui_manager, const info_t& _checkbox_info, value_t& value_ref)
: Widget(parent, gui_manager, _checkbox_info.widget_info)
, m_checkbox_info(_checkbox_info)
, m_value(value_ref)
{
Button::info_t button_info;
button_info.pixel_size = { 0, 0 };
button_info.fract_size = { 1.0f, 1.0f };
m_button = create(button_info);
m_button->connect_listener<ButtonUseEvent, &Checkbox::on_button_use>(this);
m_button->connect_listener<ButtonHoverEvent, &Checkbox::on_button_hover>(this);
}
Checkbox::~Checkbox()
{
m_button->disconnect_listener<ButtonUseEvent, &Checkbox::on_button_use>(this);
m_button->disconnect_listener<ButtonHoverEvent, &Checkbox::on_button_hover>(this);
}
void Checkbox::virtual_toggle(bool enabled)
{
if(enabled)
{
quad_check = m_gui_manager.getRenderer()->create();
quad_box = m_gui_manager.getRenderer()->create(); // check - box, hehe
// event listeners
m_cg_render.connect<GUIRenderEvent, &Checkbox::on_render, Checkbox>(m_gui_manager.m_dispatcher, this);
}
else
{
quad_check.reset();
quad_box.reset();
// event listeners
m_cg_render.disconnect();
}
}
void Checkbox::on_render(const GUIRenderEvent& /* event */)
{
if(!m_cg_render)
return;
quad_box->setPosition(m_render_position);
quad_box->setSize(m_render_size);
quad_box->setZ(m_z);
quad_box->setColor(m_checkbox_info.color_back);
quad_box->setSprite(m_checkbox_info.sprite);
quad_check->setPosition(static_cast<glm::vec2>(m_render_position + m_render_size / 2));
quad_check->setSize(m_value ? static_cast<glm::vec2>(m_render_size) * 0.7f : glm::vec2{ 0.0f, 0.0f });
quad_check->setZ(m_z + 0.05f);
quad_check->setColor(m_checkbox_info.color_mark);
quad_check->setSprite(m_checkbox_info.sprite);
quad_check->setRotationAlignment(oe::alignments::center_center);
}
void Checkbox::on_button_use(const ButtonUseEvent& e)
{
if (e.button == oe::mouse_buttons::button_left && e.action == oe::actions::release)
m_value = !m_value;
event_use_latest.action = e.action;
event_use_latest.button = e.button;
event_use_latest.modifier = e.modifier;
event_use_latest.value = m_value;
m_dispatcher.trigger(event_use_latest);
}
void Checkbox::on_button_hover(const ButtonHoverEvent& /* e */)
{
m_dispatcher.trigger(event_hover_latest);
}
} | 30.079545 | 106 | 0.715527 | Overpeek |
381f157dae543206090ef93f5aaf2e887102be75 | 1,562 | hpp | C++ | boost/range/algorithm/reverse_copy.hpp | jonstewart/boost-svn | 7f6dc0c0cb807b28072c7bdd3d77bb01ab290c59 | [
"BSL-1.0"
] | 1 | 2017-04-08T10:44:28.000Z | 2017-04-08T10:44:28.000Z | boost/range/algorithm/reverse_copy.hpp | jonstewart/boost-svn | 7f6dc0c0cb807b28072c7bdd3d77bb01ab290c59 | [
"BSL-1.0"
] | null | null | null | boost/range/algorithm/reverse_copy.hpp | jonstewart/boost-svn | 7f6dc0c0cb807b28072c7bdd3d77bb01ab290c59 | [
"BSL-1.0"
] | null | null | null | // Copyright Neil Groves 2009. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
//
// For more information, see http://www.boost.org/libs/range/
//
#ifndef BOOST_RANGE_ALGORITHM_REVERSE_COPY_HPP_INCLUDED
#define BOOST_RANGE_ALGORITHM_REVERSE_COPY_HPP_INCLUDED
#include <boost/concept_check.hpp>
#include <boost/range/begin.hpp>
#include <boost/range/end.hpp>
#include <boost/range/concepts.hpp>
#include <boost/iterator/iterator_concepts.hpp>
#include <algorithm>
namespace boost
{
namespace range
{
/// \brief template function reverse_copy
///
/// range-based version of the reverse_copy std algorithm
///
/// \pre BidirectionalRange is a model of the BidirectionalRangeConcept
template<typename BidirectionalRange, typename OutputIterator>
inline OutputIterator reverse_copy(BidirectionalRange& rng, OutputIterator out)
{
BOOST_RANGE_CONCEPT_ASSERT(( BidirectionalRangeConcept<BidirectionalRange> ));
return std::reverse_copy(boost::begin(rng), boost::end(rng), out);
}
/// \overload
template<typename BidirectionalRange, typename OutputIterator>
inline OutputIterator reverse_copy(const BidirectionalRange& rng, OutputIterator out)
{
BOOST_RANGE_CONCEPT_ASSERT(( BidirectionalRangeConcept<BidirectionalRange> ));
return std::reverse_copy(boost::begin(rng), boost::end(rng), out);
}
} // namespace range
using range::reverse_copy;
} // namespace boost
#endif // include guard
| 31.877551 | 85 | 0.774008 | jonstewart |
381f4de1388171bcb62e533b3749d6cb17ba9525 | 760 | cpp | C++ | libs/renderer/src/renderer/lock_flags/from_mode.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/src/renderer/lock_flags/from_mode.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/src/renderer/lock_flags/from_mode.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/renderer/lock_mode.hpp>
#include <sge/renderer/lock_flags/from_mode.hpp>
#include <sge/renderer/lock_flags/method.hpp>
#include <fcppt/assert/unreachable.hpp>
sge::renderer::lock_flags::method
sge::renderer::lock_flags::from_mode(sge::renderer::lock_mode const _mode)
{
switch (_mode)
{
case sge::renderer::lock_mode::writeonly:
return sge::renderer::lock_flags::method::write;
case sge::renderer::lock_mode::readwrite:
return sge::renderer::lock_flags::method::readwrite;
}
FCPPT_ASSERT_UNREACHABLE;
}
| 31.666667 | 74 | 0.731579 | cpreh |
3822b1537b3766e69ccaeef0c718774ff40aafef | 819 | cpp | C++ | GameEngine_Prototype/GameEngine_Prototype/AudioListener.cpp | Michaelwolf95/CECS_491_GameEngine_Prototype | d134fa376484d1115bf5af75f062ef44c8e70263 | [
"MIT"
] | 2 | 2019-10-14T03:45:55.000Z | 2020-07-12T08:08:54.000Z | GameEngine_Prototype/GameEngine_Prototype/AudioListener.cpp | Michaelwolf95/CECS_491_GameEngine_Prototype | d134fa376484d1115bf5af75f062ef44c8e70263 | [
"MIT"
] | null | null | null | GameEngine_Prototype/GameEngine_Prototype/AudioListener.cpp | Michaelwolf95/CECS_491_GameEngine_Prototype | d134fa376484d1115bf5af75f062ef44c8e70263 | [
"MIT"
] | 1 | 2019-09-02T03:34:28.000Z | 2019-09-02T03:34:28.000Z | #include "AudioListener.h"
#include "AudioManager.h"
#include "AudioEngine.h"
REGISTER_COMPONENT(AudioListener, "AudioListener")
void AudioListener::Start()
{
AudioManager::getInstance().sound.Set3dListenerAndOrientation(pos, velocity, forward, up);
}
void AudioListener::Update()
{
glm::vec3 p = this->gameObject->transform->getPosition();
pos.x = p.x;
pos.y = p.y;
pos.z = p.z;
glm::vec3 f = - (this->gameObject->transform->getForwardDirection()); // Flips the facing of the forward.
forward.x = f.x;
forward.y = f.y;
forward.z = f.z;
glm::vec3 u = this->gameObject->transform->getUpDirection();
up.x = u.x;
up.y = u.y;
up.z = u.z;
AudioManager::getInstance().sound.Set3dListenerAndOrientation(pos, velocity, forward, up);
}
AudioListener::AudioListener()
{
}
AudioListener::~AudioListener()
{
}
| 21.552632 | 106 | 0.704518 | Michaelwolf95 |
3823abb31c692d3de500c55478e548dbad00d8b1 | 2,142 | cc | C++ | 3rdparty/libSDL2pp/examples/audio_wav.cc | TerrySoba/NewGame | 015b765fd3686a0501ff254df4cbca5df0e02279 | [
"MIT"
] | 447 | 2015-12-29T09:56:33.000Z | 2022-03-25T12:43:33.000Z | 3rdparty/libSDL2pp/examples/audio_wav.cc | TerrySoba/NewGame | 015b765fd3686a0501ff254df4cbca5df0e02279 | [
"MIT"
] | 68 | 2015-12-29T12:06:12.000Z | 2022-02-02T15:51:19.000Z | 3rdparty/libSDL2pp/examples/audio_wav.cc | TerrySoba/NewGame | 015b765fd3686a0501ff254df4cbca5df0e02279 | [
"MIT"
] | 96 | 2015-12-21T12:01:48.000Z | 2022-01-27T13:12:36.000Z | /*
libSDL2pp - C++11 bindings/wrapper for SDL2
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include <iostream>
#include <stdexcept>
#include <algorithm>
#include <SDL.h>
#include <SDL2pp/SDL.hh>
#include <SDL2pp/AudioDevice.hh>
#include <SDL2pp/AudioSpec.hh>
#include <SDL2pp/Wav.hh>
using namespace SDL2pp;
int main(int, char*[]) try {
SDL sdl(SDL_INIT_AUDIO);
Wav wav(TESTDATA_DIR "/test.wav");
Uint8* wav_pos = wav.GetBuffer();
// Open audio device
AudioDevice dev(NullOpt, 0, wav.GetSpec(), [&wav, &wav_pos](Uint8* stream, int len) {
// Fill provided buffer with wave contents
Uint8* stream_pos = stream;
Uint8* stream_end = stream + len;
while (stream_pos < stream_end) {
Uint8* wav_end = wav.GetBuffer() + wav.GetLength();
size_t copylen = std::min(wav_end - wav_pos, stream_end - stream_pos);
std::copy(wav_pos, wav_pos + copylen, stream_pos);
stream_pos += copylen;
wav_pos += copylen;
if (wav_pos >= wav_end)
wav_pos = wav.GetBuffer();
}
}
);
// Sound plays after this call
dev.Pause(false);
// Play for 5 seconds, after which everything is stopped and closed
SDL_Delay(5000);
return 0;
} catch (std::exception& e) {
std::cerr << "Error: " << e.what() << std::endl;
return 1;
}
| 29.75 | 86 | 0.705882 | TerrySoba |
3824b7a673d8cd60d403a493bb9cb39611da51fe | 679 | cpp | C++ | util.cpp | MattKD/vector_vs_list | 72e10ab5ea092c76d5176aa37f6a2c2b4064385c | [
"MIT"
] | null | null | null | util.cpp | MattKD/vector_vs_list | 72e10ab5ea092c76d5176aa37f6a2c2b4064385c | [
"MIT"
] | null | null | null | util.cpp | MattKD/vector_vs_list | 72e10ab5ea092c76d5176aa37f6a2c2b4064385c | [
"MIT"
] | null | null | null | #include <random>
#include <vector>
#include <algorithm>
#include <numeric>
#include "util.h"
TimeResult::TimeResult(const std::vector<double> ×)
{
min = *std::min_element(times.begin(), times.end());
max = *std::max_element(times.begin(), times.end());
double total = std::accumulate(times.begin(), times.end(), 0.0);
avg = total / (double) times.size();
}
std::mt19937& getRandomGen()
{
static std::random_device rd;
static std::mt19937 gen(rd());
return gen;
}
unsigned int getRandomInt()
{
auto &g = getRandomGen();
return g();
}
int getRandomInt(int min, int max)
{
std::uniform_int_distribution<> dis(min, max);
return dis(getRandomGen());
}
| 20.575758 | 66 | 0.673049 | MattKD |
3825586ede12ab41659bf3fae2238b5c2d010030 | 4,710 | cpp | C++ | ml/bordeaux/learning/multiclass_pa/jni/jni_multiclass_pa.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | ml/bordeaux/learning/multiclass_pa/jni/jni_multiclass_pa.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | ml/bordeaux/learning/multiclass_pa/jni/jni_multiclass_pa.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | /*
* Copyright (C) 2011 The Android Open Source Project
*
* 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 "jni/jni_multiclass_pa.h"
#include "native/multiclass_pa.h"
#include <vector>
using learningfw::MulticlassPA;
using std::vector;
using std::pair;
void CreateIndexValuePairs(const int* indices, const float* values,
const int length, vector<pair<int, float> >* pairs) {
pairs->clear();
for (int i = 0; i < length; ++i) {
pair<int, float> new_pair(indices[i], values[i]);
pairs->push_back(new_pair);
}
}
jlong Java_android_bordeaux_learning_MulticlassPA_initNativeClassifier(JNIEnv* /* env */,
jobject /* thiz */,
jint num_classes,
jint num_dims,
jfloat aggressiveness) {
MulticlassPA* classifier = new MulticlassPA(num_classes,
num_dims,
aggressiveness);
return ((jlong) classifier);
}
jboolean Java_android_bordeaux_learning_MulticlassPA_deleteNativeClassifier(JNIEnv* /* env */,
jobject /* thiz */,
jlong paPtr) {
MulticlassPA* classifier = (MulticlassPA*) paPtr;
delete classifier;
return JNI_TRUE;
}
jboolean Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample(JNIEnv* env,
jobject /* thiz */,
jintArray index_array,
jfloatArray value_array,
jint target,
jlong paPtr) {
MulticlassPA* classifier = (MulticlassPA*) paPtr;
if (classifier && index_array && value_array) {
jfloat* values = env->GetFloatArrayElements(value_array, NULL);
jint* indices = env->GetIntArrayElements(index_array, NULL);
const int value_len = env->GetArrayLength(value_array);
const int index_len = env->GetArrayLength(index_array);
if (values && indices && value_len == index_len) {
vector<pair<int, float> > inputs;
CreateIndexValuePairs(indices, values, value_len, &inputs);
classifier->SparseTrainOneExample(inputs, target);
env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT);
env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT);
return JNI_TRUE;
}
env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT);
env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT);
}
return JNI_FALSE;
}
jint Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass(JNIEnv* env,
jobject /* thiz */,
jintArray index_array,
jfloatArray value_array,
jlong paPtr) {
MulticlassPA* classifier = (MulticlassPA*) paPtr;
if (classifier && index_array && value_array) {
jfloat* values = env->GetFloatArrayElements(value_array, NULL);
jint* indices = env->GetIntArrayElements(index_array, NULL);
const int value_len = env->GetArrayLength(value_array);
const int index_len = env->GetArrayLength(index_array);
if (values && indices && value_len == index_len) {
vector<pair<int, float> > inputs;
CreateIndexValuePairs(indices, values, value_len, &inputs);
env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT);
env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT);
return classifier->SparseGetClass(inputs);
}
env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT);
env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT);
}
return -1;
}
| 40.25641 | 94 | 0.580467 | Keneral |
38275942cbb79019ccb677484ae260bd1fe4b887 | 2,955 | cpp | C++ | src/ShortestDistanceFromAllBuildings.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | src/ShortestDistanceFromAllBuildings.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | src/ShortestDistanceFromAllBuildings.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "ShortestDistanceFromAllBuildings.hpp"
#include <queue>
#include <climits>
using namespace std;
int ShortestDistanceFromAllBuildings::shortestDistance(vector<vector<int>> &grid) {
if (grid.empty()) return -1;
int m = grid.size();
int n = grid[0].size();
if (n == 0) return -1;
// accumulate distances from all buildings
vector<vector<int>> distance(m, vector<int>(n, 0));
// record how many buildings can be reached
vector<vector<int>> reach(m, vector<int>(n, 0));
// count how many buildings
int buildings = 0;
int ret = INT_MAX;
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
if (grid[i][j] == 1) {
buildings++;
bfs(grid, i, j, m, n, distance, reach);
}
}
}
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
if (grid[i][j] == 0 && reach[i][j] == buildings) {
ret = min(ret, distance[i][j]);
}
}
}
return ret == INT_MAX ? -1 : ret;
}
void ShortestDistanceFromAllBuildings::bfs(vector<vector<int>> &grid, int i, int j, int m, int n,
vector<vector<int>> &distance, vector<vector<int>> &reach) {
typedef pair<int, int> state_t;
vector<vector<bool>> visited(m, vector<bool>(n, false));
auto valid = [&](const state_t &s) {
const int x = s.first;
const int y = s.second;
if (x < 0 || x >= m || y < 0 || y >= n)
return false;
return grid[x][y] == 0 && !visited[x][y];
};
auto neighbors = [&](const state_t &s) {
const int x = s.first;
const int y = s.second;
vector<state_t> ret;
state_t up{x - 1, y};
if (valid(up)) ret.push_back(up);
state_t down{x + 1, y};
if (valid(down)) ret.push_back(down);
state_t left{x, y - 1};
if (valid(left)) ret.push_back(left);
state_t right{x, y + 1};
if (valid(right)) ret.push_back(right);
return ret;
};
auto mark = [&](const state_t &s) {
const int x = s.first;
const int y = s.second;
visited[x][y] = true;
};
auto empty = [&](const state_t &s) {
const int x = s.first;
const int y = s.second;
return grid[x][y] == 0;
};
queue<state_t> q;
state_t init{i, j};
mark(init);
q.push(init);
int dist = 0;
while (!q.empty()) {
int nums = q.size();
for (int c = 0; c < nums; c++) {
state_t t = q.front();
q.pop();
if (empty(t)) {
const int x = t.first;
const int y = t.second;
distance[x][y] += dist;
reach[x][y]++;
}
for (auto nb : neighbors(t)) {
mark(nb);
q.push(nb);
}
}
dist++;
}
} | 26.150442 | 103 | 0.472081 | yanzhe-chen |
382a435f6606a3ba290dbe9a017cac91767d9403 | 1,712 | cpp | C++ | artifact/storm/src/storm/abstraction/ExplicitQualitativeResultMinMax.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/abstraction/ExplicitQualitativeResultMinMax.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/abstraction/ExplicitQualitativeResultMinMax.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include "storm/abstraction/ExplicitQualitativeResultMinMax.h"
#include "storm/abstraction/ExplicitQualitativeResult.h"
namespace storm {
namespace abstraction {
bool ExplicitQualitativeResultMinMax::isExplicit() const {
return true;
}
ExplicitQualitativeResult const& ExplicitQualitativeResultMinMax::getProb0Min() const {
return getProb0(storm::OptimizationDirection::Minimize);
}
ExplicitQualitativeResult const& ExplicitQualitativeResultMinMax::getProb1Min() const {
return getProb1(storm::OptimizationDirection::Minimize);
}
ExplicitQualitativeResult const& ExplicitQualitativeResultMinMax::getProb0Max() const {
return getProb0(storm::OptimizationDirection::Maximize);
}
ExplicitQualitativeResult const& ExplicitQualitativeResultMinMax::getProb1Max() const {
return getProb1(storm::OptimizationDirection::Maximize);
}
ExplicitQualitativeResult& ExplicitQualitativeResultMinMax::getProb0Min() {
return getProb0(storm::OptimizationDirection::Minimize);
}
ExplicitQualitativeResult& ExplicitQualitativeResultMinMax::getProb1Min() {
return getProb1(storm::OptimizationDirection::Minimize);
}
ExplicitQualitativeResult& ExplicitQualitativeResultMinMax::getProb0Max() {
return getProb0(storm::OptimizationDirection::Maximize);
}
ExplicitQualitativeResult& ExplicitQualitativeResultMinMax::getProb1Max() {
return getProb1(storm::OptimizationDirection::Maximize);
}
}
}
| 37.217391 | 95 | 0.676402 | glatteis |
382a4d6954af1e86e2094a0b5a43ac7364587dd5 | 6,007 | cpp | C++ | src/tokenizer.cpp | mihaizh/configparser | 27bc989388b341f967e1fcd5bea90b5ca9ecc3d9 | [
"MIT"
] | null | null | null | src/tokenizer.cpp | mihaizh/configparser | 27bc989388b341f967e1fcd5bea90b5ca9ecc3d9 | [
"MIT"
] | 2 | 2019-04-20T06:28:28.000Z | 2019-04-20T07:32:14.000Z | src/tokenizer.cpp | mihaizh/configparser | 27bc989388b341f967e1fcd5bea90b5ca9ecc3d9 | [
"MIT"
] | null | null | null | #include "tokenizer.h"
#include <cctype> // isalpha, isdigit
namespace configparser
{
namespace detail
{
char tokenizer::peek() const
{
return *m_text_ptr;
}
char tokenizer::peekNext() const
{
if (eof())
{
return 0;
}
return *(m_text_ptr + 1);
}
void tokenizer::consume()
{
++m_text_ptr;
++m_column;
}
bool tokenizer::eof() const
{
return peek() == 0;
}
bool tokenizer::eol() const
{
return peek() == '\n';
}
bool tokenizer::empty() const
{
return (peek() == ' ') ||
(peek() == '\t');
}
void tokenizer::comment()
{
while (peek() != '\n')
{
consume();
}
}
bool tokenizer::is_identifier_start()
{
const bool escaped_start =
(peek() == '\\') &&
(peekNext() == ' ');
return escaped_start ||
isalpha(peek()) ||
(peek() == '.') ||
(peek() == '$') ||
(peek() == ':');
}
bool tokenizer::is_identifier_char()
{
return is_identifier_start() ||
isdigit(peek()) ||
(peek() == '_') ||
(peek() == '~') ||
(peek() == '-') ||
(peek() == '.') ||
(peek() == ':') ||
(peek() == ' ');
}
bool tokenizer::priority_value_separator(char val)
{
return val == ',';
}
bool tokenizer::value_separator(char val)
{
return (val == ':') ||
(val == ',');
}
void tokenizer::identifier()
{
const char* begin_ptr = m_text_ptr;
while (is_identifier_char())
{
consume();
}
const char* end_ptr = m_text_ptr - 1;
// strip whitespace at the end of identifier
while (*end_ptr == ' ')
{
--end_ptr;
}
m_tokens.emplace_back();
m_tokens.back().type = TokenType::TOKEN_IDENTIFIER;
m_tokens.back().begin_ptr = begin_ptr;
m_tokens.back().length = end_ptr - begin_ptr + 1;
m_tokens.back().line = m_line;
m_tokens.back().column = m_column - 1;
}
void tokenizer::section()
{
consume(); // '['
const char* begin_ptr = m_text_ptr;
while (is_identifier_char())
{
consume();
}
// check for bracket at the end of
// section define
if (peek() != ']')
{
m_error_code = ErrorCode::EXPECTED_CLOSING_BRACKET;
--m_column;
}
else
{
m_tokens.emplace_back();
m_tokens.back().type = TokenType::TOKEN_SECTION;
m_tokens.back().begin_ptr = begin_ptr;
m_tokens.back().length = m_text_ptr - begin_ptr;
m_tokens.back().line = m_line;
m_tokens.back().column = m_column - (int)m_tokens.back().length;
consume(); // ']'
}
}
void tokenizer::value()
{
consume(); // '='
// strip whitespace at the beginning
// of a value
while (empty())
{
consume();
}
const char* begin_ptr = m_text_ptr;
char sep = 0; // save items separator, if exists
while (!eof() && !eol() && (peek() != ';'))
{
// save the items separator, with higher priority
// to one of them
if (!priority_value_separator(sep) &&
value_separator(peek()))
{
sep = peek();
}
consume();
}
const TokenType token_type = (sep == 0) ?
TokenType::TOKEN_VALUE :
TokenType::TOKEN_VECTOR_VALUE;
const char* current_ptr = begin_ptr;
while (current_ptr < m_text_ptr)
{
// consume everything until items separator
while ((current_ptr < m_text_ptr) && (*current_ptr != sep))
{
++current_ptr;
}
const char* end_ptr = current_ptr - 1;
// if there's a comment at the end of the line
// then strip the comment and any unescaped whitespace
if (*current_ptr == ';')
{
while ((*end_ptr == ' ') || (*end_ptr == '\t'))
{
--end_ptr;
if (*end_ptr == '\\')
{
++end_ptr;
break;
}
}
}
m_tokens.emplace_back();
m_tokens.back().type = token_type;
m_tokens.back().begin_ptr = begin_ptr;
m_tokens.back().length = end_ptr - begin_ptr + 1;
m_tokens.back().line = m_line;
m_tokens.back().column = m_column - (int)(m_text_ptr - begin_ptr);
// if a comment follows the value, then
// no more parsing is needed
if (*current_ptr == ';')
{
break;
}
// skip the items separator and strip
// any unescaped whitespace before the next value
if (*current_ptr == sep)
{
++current_ptr;
while ((*current_ptr == ' ') || (*current_ptr == '\t'))
{
++current_ptr;
}
}
begin_ptr = current_ptr;
++current_ptr;
}
}
ErrorCode tokenizer::parse(const char* text)
{
m_tokens.clear();
m_text_ptr = text;
m_error_code = ErrorCode::NO_ERROR;
m_line = 1;
m_column = 1;
while (!eof() && (m_error_code == ErrorCode::NO_ERROR))
{
if (is_identifier_start())
{
identifier();
}
switch (peek())
{
case ' ':
case '\t':
case '\r':
consume();
break;
case '\n':
++m_line;
m_column = 1;
consume();
break;
case ';':
comment();
break;
case '[':
section();
break;
case '=':
value();
break;
default: // error
m_error_code = ErrorCode::UNEXPECTED_CHARACTER;
break;
}
}
return m_error_code;
}
const std::vector<token>& tokenizer::tokens() const
{
return m_tokens;
}
int tokenizer::current_line() const
{
return m_line;
}
int tokenizer::current_column() const
{
return m_column;
}
} // detail
} // configparser
| 20.571918 | 74 | 0.493258 | mihaizh |
382d272b6759ddffa178bcdbdcca478211ac18c4 | 566 | cpp | C++ | leetcode/270. Closest Binary Search Tree Value/s2.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/270. Closest Binary Search Tree Value/s2.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/270. Closest Binary Search Tree Value/s2.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/closest-binary-search-tree-value/
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(logN)
// Ref: https://leetcode.com/problems/closest-binary-search-tree-value/discuss/70331/Clean-and-concise-java-solution
class Solution {
public:
int closestValue(TreeNode* root, double target) {
int ans = root->val;
while (root) {
if (abs(target - root->val) < abs(target - ans)) ans = root->val;
root = root->val > target ? root->left : root->right;
}
return ans;
}
}; | 35.375 | 116 | 0.621908 | zhuohuwu0603 |
382dc7dfb1f5621c2f6f1cb1b08ba5b95220b209 | 1,660 | hxx | C++ | src/interfaces/python/opengm/export_typedes.hxx | amueller/opengm | bf2d0c611ade9bbf1d2ae537fee0df4cb6553777 | [
"Unlicense"
] | 1 | 2020-03-13T20:56:48.000Z | 2020-03-13T20:56:48.000Z | src/interfaces/python/opengm/export_typedes.hxx | amueller/opengm | bf2d0c611ade9bbf1d2ae537fee0df4cb6553777 | [
"Unlicense"
] | null | null | null | src/interfaces/python/opengm/export_typedes.hxx | amueller/opengm | bf2d0c611ade9bbf1d2ae537fee0df4cb6553777 | [
"Unlicense"
] | null | null | null | #ifndef EXPORT_TYPEDES_HXX
#define EXPORT_TYPEDES_HXX
#include <opengm/graphicalmodel/graphicalmodel.hxx>
#include <opengm/functions/potts.hxx>
#include <opengm/utilities/tribool.hxx>
template<class V,class I,class O,class F>
struct GmGen{
typedef opengm::DiscreteSpace<I,I> SpaceType;
typedef opengm::GraphicalModel<V,O,F,SpaceType,false> type;
};
template<class V,class I>
struct ETLGen{
typedef opengm::ExplicitFunction<V ,I,I> type;
};
template<class V,class I>
struct FTLGen{
typedef typename opengm::meta::TypeListGenerator<
opengm::ExplicitFunction<V,I,I>,
opengm::PottsFunction<V,I,I>
>::type type;
};
typedef float GmValueType;
typedef opengm::UInt64Type GmIndexType;
typedef GmGen<
GmValueType,
GmIndexType,
opengm::Adder ,
FTLGen<GmValueType,GmIndexType>::type
>::type GmAdder;
typedef GmAdder::FactorType FactorGmAdder;
typedef GmGen<
GmValueType,
GmIndexType,
opengm::Multiplier ,
FTLGen<GmValueType,GmIndexType>::type
>::type GmMultiplier;
typedef GmMultiplier::FactorType FactorGmMultiplier;
typedef opengm::IndependentFactor<GmValueType,GmIndexType,GmIndexType> GmIndependentFactor;
namespace pyenums{
enum AStarHeuristic{
DEFAULT_HEURISTIC=0,
FAST_HEURISTIC=1,
STANDARD_HEURISTIC=2
};
enum IcmMoveType{
SINGLE_VARIABLE=0,
FACTOR=1
};
enum GibbsVariableProposal{
RANDOM=0,
CYCLIC=1
};
namespace libdai{
#ifdef WITH_LIBDAI
enum UpdateRule{
PARALL=0,
SEQFIX=1,
SEQRND=2,
SEQMAX=3
};
#endif
}
}
#endif /* EXPORT_TYPEDES_HXX */
| 21.558442 | 91 | 0.693976 | amueller |
382fe8b502da6b673688e80e4f4fa6accf9e9fa2 | 14,158 | cc | C++ | onnxruntime/core/graph/signal_ops/signal_defs.cc | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 18 | 2020-05-19T12:48:07.000Z | 2021-04-28T06:41:57.000Z | onnxruntime/core/graph/signal_ops/signal_defs.cc | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 61 | 2021-05-31T05:15:41.000Z | 2022-03-29T22:34:33.000Z | onnxruntime/core/graph/signal_ops/signal_defs.cc | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 9 | 2021-05-14T20:17:26.000Z | 2022-03-20T11:44:29.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifdef BUILD_MS_EXPERIMENTAL_OPS
#include "core/framework/tensorprotoutils.h"
#include "core/providers/common.h"
#include "core/graph/constants.h"
#include "core/graph/signal_ops/signal_defs.h"
#include "core/graph/op.h"
#include "onnx/defs/schema.h"
#include "onnx/defs/shape_inference.h"
#include "onnx/defs/tensor_proto_util.h"
namespace onnxruntime {
namespace signal {
using ONNX_NAMESPACE::AttributeProto;
using ONNX_NAMESPACE::OpSchema;
using ONNX_NAMESPACE::OPTIONAL_VALUE;
template <typename T>
static T get_scalar_value_from_tensor(const ONNX_NAMESPACE::TensorProto* t) {
if (t == nullptr) {
return T{};
}
auto data_type = t->data_type();
switch (data_type) {
case ONNX_NAMESPACE::TensorProto::FLOAT:
return static_cast<T>(ONNX_NAMESPACE::ParseData<float>(t).at(0));
case ONNX_NAMESPACE::TensorProto::DOUBLE:
return static_cast<T>(ONNX_NAMESPACE::ParseData<double>(t).at(0));
case ONNX_NAMESPACE::TensorProto::INT32:
return static_cast<T>(ONNX_NAMESPACE::ParseData<int32_t>(t).at(0));
case ONNX_NAMESPACE::TensorProto::INT64:
return static_cast<T>(ONNX_NAMESPACE::ParseData<int64_t>(t).at(0));
default:
ORT_THROW("Unsupported input data type of ", data_type);
}
}
void RegisterSignalSchemas() {
MS_SIGNAL_OPERATOR_SCHEMA(DFT)
.SetDomain(kMSExperimentalDomain)
.SinceVersion(1)
.SetDoc(R"DOC(DFT)DOC")
.Attr("onesided",
"If True (default), only values for half of the fft size are returned because the real-to-complex Fourier transform satisfies the conjugate symmetry."
"The output tensor will return the first floor(n_fft/2) + 1 values from the DFT."
"Values can be 0 or 1.",
AttributeProto::AttributeType::AttributeProto_AttributeType_INT,
static_cast<int64_t>(0))
.Input(0,
"input",
"For complex input, the following shape is expected: [batch_idx][n_fft][2]"
"The final dimension represents the real and imaginary parts of the value."
"For real input, the following shape is expected: [batch_idx][n_fft]"
"The first dimension is the batch dimension.",
"T")
.Output(0,
"output",
"The Fourier Transform of the input vector."
"If onesided is 1, [batch_idx][floor(n_fft/2)+1][2]"
"If onesided is 0, [batch_idx][n_fft][2]",
"T")
.TypeConstraint("T", {"tensor(float16)", "tensor(float)", "tensor(double)"}, "")
.TypeAndShapeInferenceFunction([](ONNX_NAMESPACE::InferenceContext& ctx) {
propagateElemTypeFromInputToOutput(ctx, 0, 0);
int64_t ndim = 1;
bool is_onesided = true;
auto attr_proto = ctx.getAttribute("onesided");
if (attr_proto && attr_proto->has_i()) {
is_onesided = static_cast<bool>(attr_proto->i());
}
if (ctx.getInputType(0)->tensor_type().has_shape()) {
auto& input_shape = getInputShape(ctx, 0);
ONNX_NAMESPACE::TensorShapeProto result_shape = input_shape;
if (is_onesided) {
auto n_fft = input_shape.dim(1).dim_value();
result_shape.mutable_dim(1)->set_dim_value((n_fft >> 1) + 1);
}
auto dim_size = static_cast<int64_t>(input_shape.dim_size());
if (dim_size == ndim + 1) { // real input
result_shape.add_dim()->set_dim_value(2); // output is same shape, but with extra dim for 2 values (real/imaginary)
} else if (dim_size == ndim + 2) { // complex input, do nothing
} else {
fail_shape_inference(
"the input_shape must [batch_idx][n_fft] for real values or [batch_idx][n_fft][2] for complex values.")
}
updateOutputShape(ctx, 0, result_shape);
}
});
;
MS_SIGNAL_OPERATOR_SCHEMA(IDFT)
.SetDomain(kMSExperimentalDomain)
.SinceVersion(1)
.SetDoc(R"DOC(IDFT)DOC")
.Input(0,
"input",
"A complex signal of dimension signal_ndim."
"The last dimension of the tensor should be 2,"
"representing the real and imaginary components of complex numbers,"
"and should have at least signal_ndim + 2 dimensions."
"The first dimension is the batch dimension.",
"T")
.Output(0,
"output",
"The inverse fourier transform of the input vector,"
"using the same format as the input.",
"T")
.TypeConstraint("T", {"tensor(float16)", "tensor(float)", "tensor(double)"}, "")
.TypeAndShapeInferenceFunction([](ONNX_NAMESPACE::InferenceContext& ctx) {
propagateElemTypeFromInputToOutput(ctx, 0, 0);
int64_t ndim = 1;
auto attr_proto = ctx.getAttribute("signal_ndim");
if (attr_proto && attr_proto->has_i()) {
ndim = static_cast<size_t>(attr_proto->i());
}
auto& input_shape = getInputShape(ctx, 0);
ONNX_NAMESPACE::TensorShapeProto result_shape = input_shape;
auto dim_size = static_cast<int64_t>(input_shape.dim_size());
if (dim_size == ndim + 1) { // real input
result_shape.add_dim()->set_dim_value(2); // output is same shape, but with extra dim for 2 values (real/imaginary)
} else if (dim_size == ndim + 2) { // complex input, do nothing
} else {
fail_shape_inference(
"the input_shape must have 1 + signal_ndim dimensions for real inputs, or 2 + signal_ndim dimensions for complex input.")
}
updateOutputShape(ctx, 0, result_shape);
});
MS_SIGNAL_OPERATOR_SCHEMA(STFT)
.SetDomain(kMSExperimentalDomain)
.SinceVersion(1)
.SetDoc(R"DOC(STFT)DOC")
.Attr("onesided",
"If True (default), only values for half of the fft size are returned because the real-to-complex Fourier transform satisfies the conjugate symmetry."
"The output tensor will return the first floor(n_fft/2) + 1 values from the DFT."
"Values can be 0 or 1.",
AttributeProto::AttributeType::AttributeProto_AttributeType_INT,
static_cast<int64_t>(1))
.Input(0,
"signal",
"A complex signal of dimension signal_ndim."
"The last dimension of the tensor should be 2,"
"representing the real and imaginary components of complex numbers,"
"and should have at least signal_ndim + 2 dimensions."
"The first dimension is the batch dimension.",
"T1")
.Input(1,
"window",
"A tensor representing the window that will be slid over the input signal.",
"T1",
OpSchema::FormalParameterOption::Optional)
.Input(2,
"frame_length", // frame_length, fft_length, pad_mode
"Size of the fft.",
"T2",
OpSchema::FormalParameterOption::Optional)
.Input(3,
"frame_step",
"The number of samples to step between successive DFTs.",
"T2")
.Output(0,
"output",
"The inverse fourier transform of the input vector,"
"using the same format as the input.",
"T1")
.TypeConstraint("T1", {"tensor(float16)", "tensor(float)", "tensor(double)"}, "")
.TypeConstraint("T2", {"tensor(int64)"}, "");
// Window Functions
MS_SIGNAL_OPERATOR_SCHEMA(HannWindow)
.SetDomain(kMSExperimentalDomain)
.SinceVersion(1)
.SetDoc(R"DOC(HannWindow)DOC")
.Attr("output_datatype",
"The data type of the output tensor. "
"Strictly must be one of the types from DataType enum in TensorProto.",
AttributeProto::AttributeType::AttributeProto_AttributeType_INT,
static_cast<int64_t>(onnx::TensorProto_DataType::TensorProto_DataType_FLOAT))
.Input(0,
"size",
"A scalar value indicating the length of the Hann Window.",
"T1")
.Output(0,
"output",
"A Hann Window with length: size.",
"T2")
.TypeConstraint("T1", {"tensor(int64)"}, "")
.TypeConstraint("T2", {"tensor(float)", "tensor(float16)", "tensor(double)", "tensor(uint8)", "tensor(uint16)", "tensor(uint32)", "tensor(uint64)", "tensor(int8)", "tensor(int16)", "tensor(int32)", "tensor(int64)"}, "")
.TypeAndShapeInferenceFunction([](ONNX_NAMESPACE::InferenceContext& ctx) {
auto size = get_scalar_value_from_tensor<int64_t>(ctx.getInputData(0));
if (size > 0) {
ONNX_NAMESPACE::TensorShapeProto result_shape;
result_shape.add_dim()->set_dim_value(size);
updateOutputShape(ctx, 0, result_shape);
}
propagateElemTypeFromAttributeToOutput(ctx, "output_datatype", 0);
});
MS_SIGNAL_OPERATOR_SCHEMA(HammingWindow)
.SetDomain(kMSExperimentalDomain)
.SinceVersion(1)
.SetDoc(R"DOC(HammingWindow)DOC")
.Attr("output_datatype",
"The data type of the output tensor. "
"Strictly must be one of the types from DataType enum in TensorProto.",
AttributeProto::AttributeType::AttributeProto_AttributeType_INT,
static_cast<int64_t>(onnx::TensorProto_DataType::TensorProto_DataType_FLOAT))
.Input(0,
"size",
"A scalar value indicating the length of the Hamming Window.",
"T1")
.Output(0,
"output",
"A Hamming Window with length: size.",
"T2")
.TypeConstraint("T1", {"tensor(int64)"}, "")
.TypeConstraint("T2", {"tensor(float)", "tensor(float16)", "tensor(double)", "tensor(uint8)", "tensor(uint16)", "tensor(uint32)", "tensor(uint64)", "tensor(int8)", "tensor(int16)", "tensor(int32)", "tensor(int64)"}, "")
.TypeAndShapeInferenceFunction([](ONNX_NAMESPACE::InferenceContext& ctx) {
auto size = get_scalar_value_from_tensor<int64_t>(ctx.getInputData(0));
if (size > 0) {
ONNX_NAMESPACE::TensorShapeProto result_shape;
result_shape.add_dim()->set_dim_value(size);
updateOutputShape(ctx, 0, result_shape);
}
propagateElemTypeFromAttributeToOutput(ctx, "output_datatype", 0);
});
MS_SIGNAL_OPERATOR_SCHEMA(BlackmanWindow)
.SetDomain(kMSExperimentalDomain)
.SinceVersion(1)
.SetDoc(R"DOC(BlackmanWindow)DOC")
.Attr("output_datatype",
"The data type of the output tensor. "
"Strictly must be one of the types from DataType enum in TensorProto.",
AttributeProto::AttributeType::AttributeProto_AttributeType_INT,
static_cast<int64_t>(onnx::TensorProto_DataType::TensorProto_DataType_FLOAT))
.Input(0,
"size",
"A scalar value indicating the length of the Blackman Window.",
"T1")
.Output(0,
"output",
"A Blackman Window with length: size.",
"T2")
.TypeConstraint("T1", {"tensor(int64)"}, "")
.TypeConstraint("T2", {"tensor(float)", "tensor(float16)", "tensor(double)", "tensor(uint8)", "tensor(uint16)", "tensor(uint32)", "tensor(uint64)", "tensor(int8)", "tensor(int16)", "tensor(int32)", "tensor(int64)"}, "")
.TypeAndShapeInferenceFunction([](ONNX_NAMESPACE::InferenceContext& ctx) {
auto size = get_scalar_value_from_tensor<int64_t>(ctx.getInputData(0));
if (size > 0) {
ONNX_NAMESPACE::TensorShapeProto result_shape;
result_shape.add_dim()->set_dim_value(size);
updateOutputShape(ctx, 0, result_shape);
}
propagateElemTypeFromAttributeToOutput(ctx, "output_datatype", 0);
});
MS_SIGNAL_OPERATOR_SCHEMA(MelWeightMatrix)
.SetDomain(kMSExperimentalDomain)
.SinceVersion(1)
.SetDoc(R"DOC(MelWeightMatrix)DOC")
.Attr("output_datatype",
"The data type of the output tensor. "
"Strictly must be one of the types from DataType enum in TensorProto.",
AttributeProto::AttributeType::AttributeProto_AttributeType_INT,
static_cast<int64_t>(onnx::TensorProto_DataType::TensorProto_DataType_FLOAT))
.Input(0,
"num_mel_bins",
"The number of bands in the mel spectrum.",
"T1")
.Input(1,
"dft_length",
"The size of the FFT.",
"T1")
.Input(2,
"sample_rate",
"",
"T1")
.Input(3,
"lower_edge_hertz",
"",
"T2")
.Input(4,
"upper_edge_hertz",
"",
"T2")
.Output(0,
"output",
"The MEL Matrix",
"T3")
.TypeConstraint("T1", {"tensor(int64)"}, "")
.TypeConstraint("T2", {"tensor(float)", "tensor(float16)", "tensor(double)"}, "")
.TypeConstraint("T3", {"tensor(float)", "tensor(float16)", "tensor(double)", "tensor(uint8)", "tensor(uint16)", "tensor(uint32)", "tensor(uint64)", "tensor(int8)", "tensor(int16)", "tensor(int32)", "tensor(int64)"}, "")
.TypeAndShapeInferenceFunction([](ONNX_NAMESPACE::InferenceContext& ctx) {
auto num_mel_bins = get_scalar_value_from_tensor<int64_t>(ctx.getInputData(0));
auto dft_length = get_scalar_value_from_tensor<int64_t>(ctx.getInputData(1));
if (num_mel_bins > 0 && dft_length > 0) {
ONNX_NAMESPACE::TensorShapeProto result_shape;
// Figure out how to specify one-sided???
result_shape.add_dim()->set_dim_value(static_cast<int64_t>(std::floor(dft_length / 2.f + 1)));
result_shape.add_dim()->set_dim_value(num_mel_bins);
updateOutputShape(ctx, 0, result_shape);
}
propagateElemTypeFromAttributeToOutput(ctx, "output_datatype", 0);
});
}
} // namespace audio
} // namespace onnxruntime
#endif | 43.697531 | 225 | 0.613575 | dennyac |
38301ba828a5fc8c151945c7e49464435f482813 | 3,842 | cpp | C++ | src/planner/plannodes/create_index_plan_node.cpp | AndiLynn/terrier | 6002f8a902d3d0d19bc67998514098f8b41ca264 | [
"MIT"
] | null | null | null | src/planner/plannodes/create_index_plan_node.cpp | AndiLynn/terrier | 6002f8a902d3d0d19bc67998514098f8b41ca264 | [
"MIT"
] | 5 | 2019-04-08T20:47:46.000Z | 2019-04-24T22:11:28.000Z | src/planner/plannodes/create_index_plan_node.cpp | AndiLynn/terrier | 6002f8a902d3d0d19bc67998514098f8b41ca264 | [
"MIT"
] | 1 | 2021-10-08T01:22:25.000Z | 2021-10-08T01:22:25.000Z | #include "planner/plannodes/create_index_plan_node.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
namespace terrier::planner {
common::hash_t CreateIndexPlanNode::Hash() const {
auto type = GetPlanNodeType();
common::hash_t hash = common::HashUtil::Hash(&type);
// Hash database_oid
auto database_oid = GetDatabaseOid();
hash = common::HashUtil::CombineHashes(hash, common::HashUtil::Hash(&database_oid));
// Hash namespace oid
auto namespace_oid = GetNamespaceOid();
hash = common::HashUtil::CombineHashes(hash, common::HashUtil::Hash(&namespace_oid));
// Hash table_oid
auto table_oid = GetTableOid();
hash = common::HashUtil::CombineHashes(hash, common::HashUtil::Hash(&table_oid));
// Hash index_type
auto index_type = GetIndexType();
hash = common::HashUtil::CombineHashes(hash, common::HashUtil::Hash(&index_type));
// Hash index_attrs
hash = common::HashUtil::CombineHashInRange(hash, index_attrs_.begin(), index_attrs_.end());
// Hash key_attrs
hash = common::HashUtil::CombineHashInRange(hash, key_attrs_.begin(), key_attrs_.end());
// Hash unique_index
auto unique_index = IsUniqueIndex();
hash = common::HashUtil::CombineHashes(hash, common::HashUtil::Hash(&unique_index));
// Hash index_name
hash = common::HashUtil::CombineHashes(hash, common::HashUtil::Hash(GetIndexName()));
return common::HashUtil::CombineHashes(hash, AbstractPlanNode::Hash());
}
bool CreateIndexPlanNode::operator==(const AbstractPlanNode &rhs) const {
if (GetPlanNodeType() != rhs.GetPlanNodeType()) return false;
auto &other = dynamic_cast<const CreateIndexPlanNode &>(rhs);
// Database OID
if (GetDatabaseOid() != other.GetDatabaseOid()) return false;
// Namespace OID
if (GetNamespaceOid() != other.GetNamespaceOid()) return false;
// Table OID
if (GetTableOid() != other.GetTableOid()) return false;
// Index type
if (GetIndexType() != other.GetIndexType()) return false;
// Index attrs
const auto &index_attrs = GetIndexAttributes();
const auto &other_index_attrs = other.GetIndexAttributes();
if (index_attrs.size() != other_index_attrs.size()) return false;
for (size_t i = 0; i < index_attrs.size(); i++) {
if (index_attrs[i] != other_index_attrs[i]) {
return false;
}
}
// Key attrs
const auto &key_attrs = GetKeyAttrs();
const auto &other_key_attrs = other.GetKeyAttrs();
if (key_attrs.size() != other_key_attrs.size()) return false;
for (size_t i = 0; i < key_attrs.size(); i++) {
if (key_attrs[i] != other_key_attrs[i]) {
return false;
}
}
// Unique index
if (IsUniqueIndex() != other.IsUniqueIndex()) return false;
// Index name
if (GetIndexName() != other.GetIndexName()) return false;
return AbstractPlanNode::operator==(rhs);
}
nlohmann::json CreateIndexPlanNode::ToJson() const {
nlohmann::json j = AbstractPlanNode::ToJson();
j["database_oid"] = database_oid_;
j["namespace_oid"] = namespace_oid_;
j["table_oid"] = table_oid_;
j["index_type"] = index_type_;
j["unique_index"] = unique_index_;
j["index_name"] = index_name_;
j["index_attrs"] = index_attrs_;
j["key_attrs"] = key_attrs_;
return j;
}
void CreateIndexPlanNode::FromJson(const nlohmann::json &j) {
AbstractPlanNode::FromJson(j);
database_oid_ = j.at("database_oid").get<catalog::db_oid_t>();
namespace_oid_ = j.at("namespace_oid").get<catalog::namespace_oid_t>();
table_oid_ = j.at("table_oid").get<catalog::table_oid_t>();
index_type_ = j.at("index_type").get<parser::IndexType>();
unique_index_ = j.at("unique_index").get<bool>();
index_name_ = j.at("index_name").get<std::string>();
index_attrs_ = j.at("index_attrs").get<std::vector<std::string>>();
key_attrs_ = j.at("key_attrs").get<std::vector<std::string>>();
}
} // namespace terrier::planner
| 32.559322 | 94 | 0.700937 | AndiLynn |
38307f0eb8004b1809fbda1c4d40b1d840d175fe | 671 | cpp | C++ | AtCoder/AtcoderBiginnersSelection/ABC087B.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/AtcoderBiginnersSelection/ABC087B.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/AtcoderBiginnersSelection/ABC087B.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | #include <cstdio>
int solve(int a, int b, int c, int x);
int main(void){
int a, b, c, x;
scanf("%d\n", &a);
scanf("%d\n", &b);
scanf("%d\n", &c);
scanf("%d\n", &x);
printf("%d\n", solve(a, b, c, x));
return 0;
}
int solve(int a, int b, int c, int x){
int result = 0;
if (x < 0){
return 0;
}
if (!x){
return 1;
}
if (a){
for (int i = 0; i <= a; i++){
result += solve(0, b, c, x - 500 * i);
}
return result;
}
if (b){
for (int i = 0; i <= b; i++){
result += solve(0, 0, c, x - 100 * i);
}
return result;
}
if (c){
for (int i = 0; i <= c; i++){
result += solve(0, 0, 0, x - 50 * i);
}
return result;
}
return 0;
} | 13.42 | 41 | 0.457526 | arlechann |
38323cb7aff88511800a35a4502e0478b7649173 | 60 | cpp | C++ | msvc/modules/objdetect/opencv_test_objdetect_pch.cpp | gajgeospatial/opencv-4.1.0 | 4b6cf76e12e846bc7fb5dbdce0054faca6963229 | [
"BSD-3-Clause"
] | null | null | null | msvc/modules/objdetect/opencv_test_objdetect_pch.cpp | gajgeospatial/opencv-4.1.0 | 4b6cf76e12e846bc7fb5dbdce0054faca6963229 | [
"BSD-3-Clause"
] | null | null | null | msvc/modules/objdetect/opencv_test_objdetect_pch.cpp | gajgeospatial/opencv-4.1.0 | 4b6cf76e12e846bc7fb5dbdce0054faca6963229 | [
"BSD-3-Clause"
] | null | null | null | #include "../../../modules/objdetect/test/test_precomp.hpp"
| 30 | 59 | 0.7 | gajgeospatial |
38339843c19c44f58e60be5bdeba906a068dd3fc | 4,341 | cpp | C++ | core/log/convergence.cpp | kliegeois/ginkgo | 4defcc07f77828393cc5b4a735a00e50da2cbab0 | [
"BSD-3-Clause"
] | null | null | null | core/log/convergence.cpp | kliegeois/ginkgo | 4defcc07f77828393cc5b4a735a00e50da2cbab0 | [
"BSD-3-Clause"
] | null | null | null | core/log/convergence.cpp | kliegeois/ginkgo | 4defcc07f77828393cc5b4a735a00e50da2cbab0 | [
"BSD-3-Clause"
] | null | null | null | /*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2022, the Ginkgo authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder 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.
******************************<GINKGO LICENSE>*******************************/
#include <ginkgo/core/log/convergence.hpp>
#include <ginkgo/core/base/array.hpp>
#include <ginkgo/core/base/math.hpp>
#include <ginkgo/core/stop/criterion.hpp>
#include <ginkgo/core/stop/stopping_status.hpp>
namespace gko {
namespace log {
template <typename ValueType>
void Convergence<ValueType>::on_criterion_check_completed(
const stop::Criterion* criterion, const size_type& num_iterations,
const LinOp* residual, const LinOp* residual_norm,
const LinOp* implicit_sq_resnorm, const LinOp* solution,
const uint8& stopping_id, const bool& set_finalized,
const Array<stopping_status>* status, const bool& one_changed,
const bool& stopped) const
{
if (stopped) {
Array<stopping_status> tmp(status->get_executor()->get_master(),
*status);
this->convergence_status_ = true;
for (int i = 0; i < status->get_num_elems(); i++) {
if (!tmp.get_data()[i].has_converged()) {
this->convergence_status_ = false;
break;
}
}
this->num_iterations_ = num_iterations;
if (residual != nullptr) {
this->residual_.reset(residual->clone().release());
}
if (implicit_sq_resnorm != nullptr) {
this->implicit_sq_resnorm_.reset(
implicit_sq_resnorm->clone().release());
}
if (residual_norm != nullptr) {
this->residual_norm_.reset(residual_norm->clone().release());
} else if (residual != nullptr) {
using Vector = matrix::Dense<ValueType>;
using NormVector = matrix::Dense<remove_complex<ValueType>>;
this->residual_norm_ = NormVector::create(
residual->get_executor(), dim<2>{1, residual->get_size()[1]});
auto dense_r = as<Vector>(residual);
dense_r->compute_norm2(this->residual_norm_.get());
}
}
}
template <typename ValueType>
void Convergence<ValueType>::on_criterion_check_completed(
const stop::Criterion* criterion, const size_type& num_iterations,
const LinOp* residual, const LinOp* residual_norm, const LinOp* solution,
const uint8& stopping_id, const bool& set_finalized,
const Array<stopping_status>* status, const bool& one_changed,
const bool& stopped) const
{
this->on_criterion_check_completed(
criterion, num_iterations, residual, residual_norm, nullptr, solution,
stopping_id, set_finalized, status, one_changed, stopped);
}
#define GKO_DECLARE_CONVERGENCE(_type) class Convergence<_type>
GKO_INSTANTIATE_FOR_EACH_VALUE_TYPE(GKO_DECLARE_CONVERGENCE);
} // namespace log
} // namespace gko
| 40.570093 | 78 | 0.696614 | kliegeois |
3833c750cb0b87ae5d590fe255e6f3d8cf3d8b56 | 4,054 | hpp | C++ | include/henson/chai-serialization.hpp | player1537-forks/henson | e6584dd2275b1ab208a5dd759148513f741e8bef | [
"BSD-3-Clause-LBNL"
] | 4 | 2016-12-21T07:45:09.000Z | 2021-04-30T18:20:41.000Z | include/henson/chai-serialization.hpp | player1537-forks/henson | e6584dd2275b1ab208a5dd759148513f741e8bef | [
"BSD-3-Clause-LBNL"
] | 1 | 2016-11-01T19:00:39.000Z | 2017-03-08T17:24:33.000Z | include/henson/chai-serialization.hpp | mrzv/henson | 7b429183d61b2f65f58e1760e0532ef2cda368ee | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifndef HENSON_CHAI_SERIALIZATION_HPP
#define HENSON_CHAI_SERIALIZATION_HPP
#include <chaiscript/dispatchkit/boxed_cast.hpp>
#include <chaiscript/dispatchkit/boxed_value.hpp>
#include <henson/serialization.hpp>
#include <henson/data.hpp>
namespace henson
{
namespace detail
{
template<class T>
bool is_boxed(const chaiscript::Boxed_Value& bv)
{
try
{
chaiscript::boxed_cast<T>(bv);
return true;
} catch (...)
{
return false;
}
}
}
template<>
struct Serialization<chaiscript::Boxed_Value>
{
struct tags
{
enum
{
int_, float_, double_, size_t_, string_, array_, vector_, undef_
};
};
static void save(BinaryBuffer& bb, const chaiscript::Boxed_Value& bv)
{
if (detail::is_boxed<int>(bv))
{
henson::save(bb, tags::int_);
henson::save(bb, chaiscript::boxed_cast<int>(bv));
} else if (detail::is_boxed<float>(bv))
{
henson::save(bb, tags::float_);
henson::save(bb, chaiscript::boxed_cast<float>(bv));
} else if (detail::is_boxed<double>(bv))
{
henson::save(bb, tags::double_);
henson::save(bb, chaiscript::boxed_cast<double>(bv));
} else if (detail::is_boxed<size_t>(bv))
{
henson::save(bb, tags::size_t_);
henson::save(bb, chaiscript::boxed_cast<size_t>(bv));
} else if (detail::is_boxed<std::string>(bv))
{
henson::save(bb, tags::string_);
henson::save(bb, chaiscript::boxed_cast<std::string>(bv));
} else if (detail::is_boxed<std::vector<chaiscript::Boxed_Value>>(bv))
{
henson::save(bb, tags::vector_);
henson::save(bb, chaiscript::boxed_cast<std::vector<chaiscript::Boxed_Value>>(bv));
} else if (detail::is_boxed<Array>(bv))
{
henson::save(bb, tags::array_);
henson::save(bb, chaiscript::boxed_cast<Array>(bv));
} else if (bv.get_type_info().is_undef())
henson::save(bb, tags::undef_);
else
throw std::runtime_error("Cannot serialize a boxed value");
}
static void load(BinaryBuffer& bb, chaiscript::Boxed_Value& bv)
{
int tag;
henson::load(bb, tag);
if (tag == tags::int_)
{
int i;
henson::load(bb, i);
bv = chaiscript::Boxed_Value(i);
} else if (tag == tags::float_)
{
float f;
henson::load(bb, f);
bv = chaiscript::Boxed_Value(f);
} else if (tag == tags::double_)
{
double d;
henson::load(bb, d);
bv = chaiscript::Boxed_Value(d);
} else if (tag == tags::size_t_)
{
size_t s;
henson::load(bb, s);
bv = chaiscript::Boxed_Value(s);
} else if (tag == tags::string_)
{
std::string s;
henson::load(bb, s);
bv = chaiscript::Boxed_Value(s);
} else if (tag == tags::vector_)
{
std::vector<chaiscript::Boxed_Value> v;
henson::load(bb, v);
bv = chaiscript::Boxed_Value(v);
} else if (tag == tags::array_)
{
Array a;
henson::load(bb, a);
bv = chaiscript::Boxed_Value(a);
} else if (tag == tags::undef_)
bv = chaiscript::Boxed_Value();
else
throw std::runtime_error("Cannot deserialize a boxed value");
}
};
}
#endif
| 32.95935 | 99 | 0.47188 | player1537-forks |
3833e4a77938757999c2520d714c90fabbb70fbf | 1,535 | cpp | C++ | modelo/serializables/Arma.cpp | seblaz/Final-Fight | b79677191a4d4239e8793fa0b6e8a8b69870a14d | [
"MIT"
] | 1 | 2020-02-23T21:15:59.000Z | 2020-02-23T21:15:59.000Z | modelo/serializables/Arma.cpp | seblaz/Final-Fight | b79677191a4d4239e8793fa0b6e8a8b69870a14d | [
"MIT"
] | 1 | 2020-03-06T21:31:10.000Z | 2020-03-06T21:31:10.000Z | modelo/serializables/Arma.cpp | seblaz/Final-Fight | b79677191a4d4239e8793fa0b6e8a8b69870a14d | [
"MIT"
] | 1 | 2020-02-23T21:28:28.000Z | 2020-02-23T21:28:28.000Z | // Created by leo on 12/11/19.
//
#include "Arma.h"
#include "../../servicios/Locator.h"
string Arma::armaACadena(ARMA arma) {
switch (arma){
case ARMA::PUNIOS:
return "punios";
case ARMA::CUCHILLO:
return "cuchillo";
case ARMA::TUBO:
return "tubo";
case ARMA::PATADA:
return "patada";
};
}
Arma::Arma() : Arma(ARMA::PUNIOS){}
Arma::Arma(ARMA arma) {
inicializar(arma);
}
void Arma::inicializar(ARMA arma_) {
arma = arma_;
string base = "/armas/" + Arma::armaACadena(arma);
danio = Locator::configuracion()->getIntValue(base + "/danio");
usosRestantes = Locator::configuracion()->getIntValue(base + "/usos");
ancho = Locator::configuracion()->getIntValue(base + "/ancho");
}
int Arma::getPuntosDeDanio() {
return danio;
}
void Arma::serializar(ostream &stream) {
serializarEntero(stream, int(arma));
serializarBoolean(stream, enSuelo);
}
void Arma::deserializar(istream &stream) {
arma = static_cast<ARMA>(deserializarEntero(stream));
enSuelo = deserializarBoolean(stream);
}
void Arma::inicioUso() {
enUso = true;
}
void Arma::finUso() {
if(enUso) {
enUso = false;
if(--usosRestantes == 0) inicializar(ARMA::PUNIOS);
}
}
void Arma::tomar() {
enSuelo = false;
}
ARMA Arma::getArma() {
return arma;
}
bool Arma::enElSuelo() {
return enSuelo;
}
void Arma::cambiarPor(ARMA arma_) {
inicializar(arma_);
}
int Arma::getAncho() {
return ancho;
}
| 19.679487 | 74 | 0.612378 | seblaz |
3833e828006f13f696f60ab37d854b796e78d1c7 | 1,559 | cpp | C++ | src/pixel_reader.cpp | ufcg-lsd/fast-sebal | 93cccb498edf4e25e2b4570c652d61338e66ef60 | [
"MIT"
] | 2 | 2019-02-26T23:05:42.000Z | 2019-04-15T23:59:35.000Z | src/pixel_reader.cpp | ufcg-lsd/fast-sebal | 93cccb498edf4e25e2b4570c652d61338e66ef60 | [
"MIT"
] | null | null | null | src/pixel_reader.cpp | ufcg-lsd/fast-sebal | 93cccb498edf4e25e2b4570c652d61338e66ef60 | [
"MIT"
] | 1 | 2019-07-03T20:37:08.000Z | 2019-07-03T20:37:08.000Z | #include "pixel_reader.h"
/**
* @brief Empty constructor.
*/
PixelReader::PixelReader() {
sampleFormat = 0;
byteSize = 0;
buffer = NULL;
};
/**
* @brief Constructor
* @param _sampleFormat: Sample format.
* @param _byteSize: Byte size.
* @param _buffer: Buffer.
*/
PixelReader::PixelReader(uint16 _sampleFormat, uint8 _byteSize, tdata_t _buffer){
sampleFormat = _sampleFormat;
byteSize = _byteSize;
buffer = _buffer;
};
/**
* @brief Read the value of pixel in a TIFF.
* @param column: Number of column of the pixel.
* @retval Value of the pixel.
*/
double PixelReader::read_pixel(uint32 column){
double ret = 0;
switch(sampleFormat){
case 1:
{
uint64 value = 0;
memcpy(&value, buffer + (column * byteSize), byteSize);
ret = value;
}
break;
case 2:
{
int64 value = 0;
memcpy(&value, buffer + (column * byteSize), byteSize);
ret = value;
}
break;
case 3:
switch(byteSize){
case 4:
{
float value = 0;
memcpy(&value, buffer + (column * byteSize), byteSize);
ret = value;
}
break;
case 8:
{
double value = 0;
memcpy(&value, buffer + (column * byteSize), byteSize);
ret = value;
}
break;
case 16:
{
long double value = 0;
memcpy(&value, buffer + (column * byteSize), byteSize);
ret = value;
}
break;
default:
cerr << "Unsupported operation!" << endl;
exit(7);
}
break;
default:
cerr << "Unsupported operation!" << endl;
exit(7);
}
return ret;
}; | 19.734177 | 81 | 0.590122 | ufcg-lsd |
3834ba098f673976f81f3c06666b7b1adfeb3655 | 38,951 | cpp | C++ | vmca/certool/certool.cpp | slachiewicz/lightwave | 3784a3b14363bcb01dc94848ec3355cc6cffbe4c | [
"BSL-1.0",
"Apache-2.0"
] | 1 | 2019-06-27T07:40:49.000Z | 2019-06-27T07:40:49.000Z | vmca/certool/certool.cpp | slachiewicz/lightwave | 3784a3b14363bcb01dc94848ec3355cc6cffbe4c | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | vmca/certool/certool.cpp | slachiewicz/lightwave | 3784a3b14363bcb01dc94848ec3355cc6cffbe4c | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | #ifdef _WIN32
#include <windows.h>
#include <conio.h>
#include <io.h>
#endif
#include <boost/program_options.hpp>
#include <string>
#include <vmcatypes.h>
#include <vmca.h>
#include <vmca_error.h>
#include <iostream>
#include <fstream>
#ifndef _WIN32
#include <termios.h>
#endif
#include "certool.h"
#ifdef _WIN32
#ifndef snprintf
#define snprintf _snprintf
#endif
#endif
namespace po = boost::program_options;
po::variables_map argsMap;
//
// Command Arguments
//
std::string argServerName;
std::string argSrpUpn;
std::string argSrpPwd;
std::string argCert;
std::string argConfig;
std::string argPrivateKey;
std::string argPublicKey;
std::string argCsr;
std::string argConfModule;
std::string argFilter;
std::string argHelpModule;
std::string argFQDN;
std::string argCrl;
std::string argCurrCrl;
bool argPKCS12 = false;
bool argStorePrivate;
bool argStoreTrusted;
bool argStoreRevoked;
bool argStoreAll;
std::string argOutPrivateKey;
std::string argOutCert;
int argPredates = VMCA_DEFAULT_CA_CERT_START_PREDATE;
std::string argPassword;
std::string argUserName;
std::string argDomainName;
int argWait;
int argPort;
int argErr;
//
// Config Values
//
std::string cfgName;
std::string cfgDomainComponent;
std::string cfgCountry;
std::string cfgOrganization;
std::string cfgOrgUnit;
std::string cfgState;
std::string cfgLocality;
std::string cfgIPAddress;
std::string cfgEmail;
std::string cfgHostName;
time_t now;
time_t expire;
PSTR
ErrorCodeToName(int code)
{
int i = 0;
VMCA_ERROR_CODE_NAME_MAP VMCA_ERROR_Table[] =
VMCA_ERROR_TABLE_INITIALIZER;
if (code == 0) return "Success";
for (i=0; i<sizeof(VMCA_ERROR_Table)/sizeof(VMCA_ERROR_Table[0]); i++)
{
if ( code == VMCA_ERROR_Table[i].code)
{
return (PSTR) VMCA_ERROR_Table[i].name;
}
}
return (PSTR) UNKNOWN_STRING;
}
VMCA_FILE_ENCODING GetFileEncoding(std::ifstream& ifs, bool bSkipHeader)
{
VMCA_FILE_ENCODING fEncoding = VMCA_FILE_ENCODING_UTF8;
char bom[3] = { 0 };
size_t headerSize = 0;
ifs.read(bom, sizeof(bom));
if (bom[0] == '\xff' &&
bom[1] == '\xfe')
{
fEncoding = VMCA_FILE_ENCODING_UTF16LE;
headerSize = 2;
}
else if (bom[0] == '\xfe' &&
bom[1] == '\xff')
{
fEncoding = VMCA_FILE_ENCODING_UTF16BE;
headerSize = 2;
}
else if (bom[0] == '\xef' &&
bom[1] == '\xbb' &&
bom[2] == '\xbf' )
{
fEncoding = VMCA_FILE_ENCODING_UTF8;
headerSize = 3;
}
if (bSkipHeader)
{
ifs.seekg(headerSize);
}
else
{
ifs.seekg(0);
}
return fEncoding;
}
#ifdef _WIN32
std::wstring
string_to_w(const std::string& str)
{
DWORD dwError = ERROR_SUCCESS;
PWSTR pwszStr = NULL;
std::wstring wstr;
dwError = VMCAAllocateStringWFromA(str.c_str(), &pwszStr);
BAIL_ON_ERROR(dwError);
wstr = pwszStr;
cleanup:
if (pwszStr)
{
VMCAFreeStringW((RP_PWSTR)pwszStr);
}
return wstr;
error:
throw std::bad_alloc();
goto cleanup;
}
#endif
DWORD
ParserConfigFile(po::options_description& config, const std::string& configFile)
{
DWORD dwError = ERROR_SUCCESS;
#ifdef WIN32
std::ifstream ifs(string_to_w(configFile).c_str(), std::ifstream::binary);
#else
std::ifstream ifs(configFile.c_str(), std::ifstream::binary);
#endif
if(!ifs)
{
std::cout << "Failed to open config file: " << configFile << "\n"
<< "Exiting ...";
#ifdef WIN32
dwError = GetLastError();
#else
dwError = VMCAGetWin32ErrorCode(errno);
#endif
}
else
{
VMCA_FILE_ENCODING encoding = GetFileEncoding(ifs, true);
if (encoding != VMCA_FILE_ENCODING_UTF8)
{
std::cout << "Config file: " << configFile
<< "uses UTF16 encoding, certool supports only UTF8 or ASCII encoding for config files" << std::endl
<< "Exiting ...";
return VMCA_ARGUMENT_ERROR;
}
std::cout << "Using config file : " << configFile << std::endl;
store(parse_config_file(ifs, config), argsMap);
notify(argsMap);
}
return dwError;
}
#ifndef _WIN32
static
DWORD
VMCAReadPassword(
PCSTR pszUser,
PCSTR pszPrompt,
PSTR* ppszPassword
)
{
DWORD dwError = 0;
struct termios orig, nonecho;
CHAR szPassword[33] = "";
PSTR pszPassword = NULL;
DWORD iChar = 0;
memset(szPassword, 0, sizeof(szPassword));
if (IsNullOrEmptyString(pszPrompt))
{
fprintf(stdout, "Enter password for %s: ", pszUser);
}
else
{
fprintf(stdout, "%s:", pszPrompt);
}
fflush(stdout);
tcgetattr(0, &orig); // get current settings
memcpy(&nonecho, &orig, sizeof(struct termios)); // copy settings
nonecho.c_lflag &= ~(ECHO); // don't echo password characters
tcsetattr(0, TCSANOW, &nonecho); // set current settings to not echo
// Read up to 32 characters of password
for (; iChar < sizeof(szPassword); iChar++)
{
ssize_t nRead = 0;
CHAR ch;
if ((nRead = read(STDIN_FILENO, &ch, 1)) < 0)
{
dwError = LwErrnoToWin32Error(errno);
BAIL_ON_VMCA_ERROR(dwError);
}
if (nRead == 0 || ch == '\n')
{
fprintf(stdout, "\n");
fflush(stdout);
break;
}
else if (ch == '\b') /* backspace */
{
if (iChar > 0)
{
iChar--;
szPassword[iChar] = '\0';
}
}
else
{
szPassword[iChar] = ch;
}
}
if (IsNullOrEmptyString(szPassword))
{
dwError = ERROR_PASSWORD_RESTRICTION;
BAIL_ON_VMCA_ERROR(dwError);
}
dwError = VMCAAllocateStringA(szPassword, &pszPassword);
BAIL_ON_VMCA_ERROR(dwError);
*ppszPassword = pszPassword;
cleanup:
tcsetattr(0, TCSANOW, &orig);
return dwError;
error:
*ppszPassword = NULL;
goto cleanup;
}
#else
static
DWORD
VMCAReadPassword(
PCSTR pszUser,
PCSTR pszPrompt,
PSTR* ppszPassword
)
{
DWORD dwError = 0;
CHAR szPassword[33] = "";
PSTR pszPassword = NULL;
DWORD iChar = 0;
BOOLEAN bConsole = FALSE;
memset(szPassword, 0, sizeof(szPassword));
if (IsNullOrEmptyString(pszPrompt))
{
fprintf(stdout, "Enter password for %s: ", pszUser);
}
else
{
fprintf(stdout, "%s:", pszPrompt);
}
fflush(stdout);
bConsole = _isatty(0); // Is stdin console?
// Read up to 32 characters of password
for (; iChar < sizeof(szPassword); iChar++)
{
CHAR ch = bConsole ? _getch() : getchar();
if (ch == EOF || ch == '\r' || ch == '\n')
{
fprintf(stdout, "\r\n");
fflush(stdout);
break;
}
else if (ch == '\b') /* backspace */
{
if (iChar > 0)
{
iChar--;
szPassword[iChar] = '\0';
}
}
else
{
szPassword[iChar] = ch;
}
}
if (IsNullOrEmptyString(szPassword))
{
dwError = ERROR_PASSWORD_RESTRICTION;
BAIL_ON_VMCA_ERROR(dwError);
}
dwError = VMCAAllocateStringA(szPassword, &pszPassword);
BAIL_ON_VMCA_ERROR(dwError);
*ppszPassword = pszPassword;
cleanup:
return dwError;
error:
*ppszPassword = NULL;
goto cleanup;
}
#endif
void
AddGeneralOptions(po::options_description& desc)
{
desc.add_options()
("help", po::value<std::string>(&argHelpModule)->implicit_value(""),
"help <command> for help with each command\n"
"Commands are :\n"
"certool --help init - shows help for all initialization relevant functions \n"
"certool --help functions - shows help for all other functions \n"
"certool --help config - shows help for the parameters of the config file \n"
)
("server",po::value<std::string>(&argServerName)->default_value("localhost"),
"The name of the Vmware Certficate Server.")
("srp-upn", po::value<std::string>(&argSrpUpn),
"SRP logon UPN authentication identity.")
("srp-pwd", po::value<std::string>(&argSrpPwd),
"SRP logon password.")
("version", "print version string")
("viewerror", po::value<int>(&argErr)->default_value(0),
"Prints out the Error String for the specific error code.");
}
void
AddConfigOptions( po::options_description& config)
{
config.add_options()
("Country", po::value<std::string>(&cfgCountry),"\tdefault: Country = US ")
("Name", po::value<std::string>(&cfgName),"\tdefault: Name = Acme")
("DomainComponent", po::value<std::string>(&cfgDomainComponent),"\tdefault: DomainComponent = acme.local")
("Organization", po::value<std::string>(&cfgOrganization), "\tdefault: Organization = AcmeOrg")
("OrgUnit", po::value<std::string>(&cfgOrgUnit), "\tdefault:. OrgUnit = AcmeOrg Engineering")
("State", po::value<std::string>(&cfgState),"\tdefault: State = California")
("Locality", po::value<std::string>(&cfgLocality),"\tdefault: Locality = Palo Alto")
("IPAddress", po::value<std::string>(&cfgIPAddress),"\tdefault: IPAddress = 127.0.0.1")
("Email", po::value<std::string>(&cfgEmail),"\tdefault: Email = email@acme.com")
("Hostname", po::value<std::string>(&cfgHostName),"\tdefault: Hostname = server.acme.com");
}
void
AddInitOptions( po::options_description& init)
{
init.add_options()
("initcsr","\tThis is deprecated. Use gencsr instead.\n"
"Generates a Certificate Signing Request\n"
"A PKCS10 file and a key pair is generated in this mode.\n"
"Different flags used for this command are :\n"
"--initcsr - required, the command flag\n"
"--privkey - required, file name for private key\n"
"--pubkey - required, file name for public key\n"
"--csrfile - required, file name for the CSR\n"
"--config - optional, default value \"certool.cfg\" will be used.\n\n"
"Example : certool --initcsr --privkey=<filename> --pubkey=<filename> --csrfile=<filename>\n\n"
)
("gencsr","\tGenerate Certificate Request\n"
"Generates a Certificate Signing Request\n"
"A PKCS10 file and a key pair is generated in this mode.\n"
"Different flags used for this command are :\n"
"--gencsr - required, the command flag\n"
"--privkey - required, file name for private key\n"
"--pubkey - required, file name for public key\n"
"--csrfile - required, file name for the CSR\n"
"--config - optional, default value \"certool.cfg\" will be used.\n\n"
"Example : certool --gencsr --privkey=<filename> --pubkey=<filename> --csrfile=<filename>\n\n"
)
("selfca","\tCreates Self Signed CA\n"
"Provisions the VMCA Server with a Self"
"Signed Root CA Certificate.\n"
"This is one of the simplest way to\n"
"provision the VMware Certificate Server.\n"
"However it is not a recommended way to provision.\n"
"Different flags used for this command are :\n"
"--selfca - required, the command flag\n"
"--predate - optional, set valid not before field of root cert n minutes before current time\n"
"--config - optional, default value \"certool.cfg\" will be used.\n"
"--server - optional, default value of \"localhost\" will be used.\n\n"
"Example : certool --selfca \n\n"
)
("rootca","\tProvisions VMware Certificate Server with\n"
"user supplied certificate and private key.\n"
"Different flags used for this command are :\n"
"--rootca - required, the command flag\n"
"--cert - required, file name for cert file\n"
"--privkey - required, file name for private key\n"
"--server - optional, default value of \"localhost\" will be used.\n"
"it is assumed that both of these files are in PEM encoded format.\n\n"
"Example :certool --rootca --cert=root.cert --privkey=privatekey.pem\n\n"
)
("getdc","\tGet Default Domain Name\n"
"Returns the default domain name used by Lotus.\n"
"Different flags used for this command are :\n"
"--server - optional, if left empty will connect to localhost\n"
"--port - optional, if left empty will use port 389 ( in future LDAP_PORT)\n\n"
"Example: certool --getdc\n\n"
)
("WaitVMDIR","\tWait until VMDir is running or specified time out happens.\n"
"--wait - optional, Number of Minutes to wait, Defaults to 3 mins.\n"
"--server - optional, defaults to local host.\n"
"--port - optional, defaults to port 389.\n\n"
"Example : certool --WaitVMdir\n\n"
)
("WaitVMCA","\tWait until VMCA is running or specified time out happens.\n"
"--wait - optional, Number of Minutes to wait, Defaults to 3 mins.\n"
"--server - optional, defaults to local host.\n\n"
"Example : certool --WaitVMCA --wait=5\n\n"
)
("publish-roots","\t Notifies the VMCA Service to publish its CA root certificates to the Directory Service\n"
"Arguments for this commands are : \n"
"--server - , optional, defaults to localhost\n"
"Note : This command requires administrative privileges"
);
}
void
AddFunctionsOptions( po::options_description& functions)
{
functions.add_options()
("genkey","\tGenerates a private and public key pair\n"
"Different flags used for this command are :\n"
"--genkey - required, the command flag\n"
"--privkey - required, file name for private key\n"
"--pubkey - required, file name for public key\n\n"
"Example: certool --genkey --privkey=<filename> --pubkey=<filename>\n"
)
("gencert", "\tGenerates a new certificate\n"
"based on values in the config file.\n"
"Different flags used for this command are :\n"
"--gencert - required, the command flag\n"
"--cert - required, file name for cert file\n"
"--privkey - required, file name for private key\n"
"--config - optional, default value \"certool.cfg\" will be used.\n"
"--server - optional, default value of \"localhost\" will be used.\n\n"
"Example: certool --gencert --privkey=<filename> --cert=<filename>\n\n"
)
("getrootca","\tPrints the Root CA certificate\n"
"in human readable form\n"
"Different flags used for this command are :\n"
"--getrootca - required, the command flag\n"
"--server - optional, default value of \"localhost\" will be used.\n\n"
"Example: certool --getrootca --server=remoteserver\n"
)
("revokecert","\tRevokes a certificate\n"
"Different flags used for this command are :\n"
"--revokecert - required, the command flag\n"
"--cert - required ,file name for the cert\n"
"--server - optional, default value of \"localhost\" will be used.\n\n"
"Example: certool --revokecert --cert=<filename>\n"
)
("viewcert","\tPrints out all the fields in a Certificate\n"
"in human readbale form\n"
"Different flags used for this command are :\n"
"--viewcert - required, the command flag\n"
"--cert - required ,file name for the cert\n\n"
"Example: certool --viewcert --cert=<filename>\n"
)
("enumcert","\tList all the certs in the server\n"
"Different flags used for this command are :\n"
"--enumcert - required, the command flag\n"
"--filter - required ,values are [all,revoked,active]\n\n"
"Example: certool --enumcert --filter=revoked\n"
)
("genCIScert", "\tUse 'gencert' instead. 'genCIScert' is going to be deprecated.\n"
"'genCISCert' is equivalent to 'gencert',\n"
"except the certificate CN is generated using the scheme\n"
"CN=<Name>, DC=<domain>, OU=mID-<MachineID> and the certificate with its key is pushed to VECS store.\n"
"PKCS12 file (pfx) is not generated anymore. And the cert, key are not added to VECS. \n"
"based on values in the config file.\n"
"Different flags used for this command are :\n"
"--genCIScert - required, the command flag\n"
"--cert - required, file name for cert file\n"
"--privkey - required, file name for private key\n"
"--Name - required, Name of the Solution User Account\n"
"--server - optional, default value of \"localhost\" will be used.\n\n"
"Example: certool --genCIScert --privkey=<filename> --cert=<filename> --Name=sso\n"
)
("status","\tTakes a certificate and sends it server to \n"
"check if the certificate has been revoked.\n"
"Different flags used for this command are :\n"
"--status - required, the command flag\n"
"--cert - required ,file name for the cert\n"
"--server - optional, default value of \"localhost\" will be used.\n\n"
"Example: certool --status --cert=<filename>\n"
)
("gencrl","\t Causes VMCA to re-generate CRLs\n"
"This command should NOT be used, unless you are an\n"
"Admin of VMCA and really wants to overwrite the current\n"
"CRL List.\n"
)
("getcrl","\t Allows users to download current CRL from VMCA\n"
"Different flags used for this command are :\n"
"--crl=<fileName> - CRL file Name \n\n"
"Example: certool --getcrl --crl=<filename>\n"
)
("viewcrl", "\t Prints out the CRL in human readable format\n"
"Different flags used for this commands are : \n"
"--crl=<fileName>\n"
)
("genselfcacert", "\tGenerate a self signed CA certificate\n"
"based on values in the config file.\n"
"Different flags used for this command are :\n"
"--genselfcacert - required, the command flag\n"
"--outcert - required, file name for cert file\n"
"--outprivkey - required, file name for private key\n"
"--config - optional, default value \"certool.cfg\" will be used.\n\n"
"Example: certool --genselfcert --privkey=<filename> --cert=<filename>\n\n"
)
("gencsrfromcert", "\tGenerate a CSR from a certificate\n"
"Different flags used for this command are :\n"
"--gencsrfromcert - required, the command flag\n"
"--cert - required, file name of certificate\n"
"--privkey - required, file name of private key\n"
"--csrfile - required, file name for the csr\n"
"Example: certool --gencsrfromcert --privkey=<filename> --cert=<filename> --csrfile=<csrfilename>\n\n"
);
}
void
AddFilesOptions( po::options_description& files)
{
files.add_options()
("config", po::value<std::string>(&argConfig)->default_value("certool.cfg"),
"configration file used in creation of certificates and CSRs. Default is certool.cfg")
("privkey",po::value<std::string>(&argPrivateKey),"private key file" )
("cert",po::value<std::string>(&argCert),"private key file" )
("pubkey",po::value<std::string>(&argPublicKey),"private key file" )
("csrfile", po::value<std::string>(&argCsr),"PKCS10 (CSR) is written to this file")
("port", po::value<int>(&argPort)->default_value(389), "Port for the LDAP Server")
("wait", po::value<int>(&argWait)->default_value(3), "Wait in Minutes")
("InitVMCA", po::value<int>(&argWait)->default_value(3), "Initial VMCA bootup")
("FQDN" , po::value<std::string>(&argFQDN), "Adds the FQDN into the Subject Alt Name" )
("PKCS12", po::value(&argPKCS12)->zero_tokens(), "Generates a PKCS12 File, Containing Cert and Private Key")
("password", po::value<std::string>(&argPassword), "Password for Lotus User")
("user", po::value<std::string>(&argUserName), "user name for Lotus Domain")
("domain", po::value<std::string>(&argDomainName)->default_value("VSPHERE.LOCAL"),"Domain name, Default is VSPHERE.LOCAL")
("prv", po::value(&argStorePrivate)->zero_tokens(),"Private certificate Store")
("trs", po::value(&argStoreTrusted)->zero_tokens(),"Trusted certificate Store")
("rvk", po::value(&argStoreRevoked)->zero_tokens(),"Revoked certificate Store")
("all", po::value(&argStoreAll)->zero_tokens(),"All certificate Store")
("crl",po::value<std::string>(&argCrl),"File Name for the New CRL" )
("currcrl",po::value<std::string>(&argCurrCrl),"Existing CRL, if you have one" )
("outprivkey",po::value<std::string>(&argOutPrivateKey),"Privatekey File to be generated" )
("outcert",po::value<std::string>(&argOutCert),"Certificate to be generated" )
("predate",po::value<int>(&argPredates),"Certificate Valid from predated in minutes" );
}
void
AddParamOptions( po::options_description& params)
{
params.add_options()
("filter",po::value<std::string>(&argFilter),"\tPossible values for filter are\n"
"active - all certificates which are active\n"
"revoked - lists all revoked certificates\n"
//"expired - all certificates which are expired\n"
"all - lists all certificates\n"
);
}
DWORD
SetSrpAuthenticationInfo()
{
DWORD dwError = ERROR_SUCCESS;
PSTR pszAccount = NULL;
PSTR pszPassword = NULL;
PSTR pszUpn = NULL;
if (!argSrpUpn.empty() &&
argSrpPwd.empty())
{
PSTR pszTempPassword = NULL;
dwError = VMCAReadPassword(
argSrpUpn.c_str(),
NULL,
&pszTempPassword
);
if (dwError == ERROR_SUCCESS)
{
argSrpPwd = pszTempPassword;
VMCA_SAFE_FREE_MEMORY(pszTempPassword);
}
else
{
std::cout << "Error : Invalid password\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
}
if (argSrpUpn.empty())
{
// TEMP hack untill every one started using command line options
dwError = VMCAGetMachineAccountInfoA(
&pszAccount,
&pszPassword);
if (dwError == ERROR_SUCCESS)
{
dwError = VMCAAccountDnToUpn(pszAccount, &pszUpn);
if (dwError != ERROR_SUCCESS)
{
/* Don't use registry entries if UPN conversion fails */
VMCA_SAFE_FREE_MEMORY(pszAccount);
VMCA_SAFE_FREE_MEMORY(pszUpn);
}
}
/* Command line upn/pwd has precedence */
if (pszUpn && argSrpUpn.length() == 0)
{
argSrpUpn = pszUpn;
argSrpPwd = pszPassword;
}
else
{
// Try with no authentication
dwError = ERROR_SUCCESS;
}
}
error:
VMCA_SAFE_FREE_MEMORY(pszAccount);
VMCA_SAFE_FREE_MEMORY(pszUpn);
VMCA_SAFE_FREE_MEMORY(pszPassword);
return dwError;
}
DWORD
DispatchInitFunctions(po::variables_map argsMap,po::options_description& config)
{
DWORD dwError = ERROR_SUCCESS;
dwError = SetSrpAuthenticationInfo();
BAIL_ON_ERROR(dwError);
if (argsMap.count("selfca")) {
if ( ParserConfigFile(config, argConfig) != 0 ) {
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
if (argPredates > VMCA_MAX_PREDATE_PERMITED || argPredates < 0)
{
std::cout << "Invalid start time predate specified it should be between "
<< VMCA_MAX_PREDATE_PERMITED << " and 0 "<<std::endl;
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleCreateSelfSignedCA();
BAIL_ON_ERROR(dwError);
}
if (argsMap.count("rootca")) {
if(!argsMap.count("privkey") ||
!argsMap.count("cert")) {
std::cout << "To upload a Root CA Cert, we need both Cert and Private Key.\n\n"
<< "Example: certool --rootca --cert=root.cert --privkey=privatekey.pem\n"
<< std::endl;
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleRootCACertificate();
BAIL_ON_ERROR(dwError);
}
if (argsMap.count("gencsr") || argsMap.count("initcsr")) {
if (argsMap.count("initcsr")) {
std::cout << "This is deprecated. Use gencsr instead.\n";
}
if(!argsMap.count("privkey") ||
!argsMap.count("pubkey") ||
!argsMap.count("csrfile")) {
std::cout << "To create a CSR we need a private key path.\n\n"
<< "Example : certool --gencsr --privkey=<filename> --pubkey=<filename>"
<< " --csrfile=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
if ( ParserConfigFile(config, argConfig) != 0 ) {
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleInitCSR();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("getdc")) {
dwError = HandleGetDC();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("WaitVMCA")) {
dwError = HandleWaitVMCA();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("WaitVMDIR")) {
dwError = HandleWaitVMDIR();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("login")){
if(!argsMap.count("user") ||
!argsMap.count("password") ||
!argsMap.count("domain")) {
std::cout << "To login we need a user name and password.\n"
<< "Example : certool --login --user=administrator"
<< " --domain=VSPHERE.LOCAL"
<< " --password=<password>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleLogin();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("logout")) {
dwError = HandleLogout();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("publish-roots")){
dwError = HandlePublishRoots();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("updateschema")) {
dwError = HandleUpdateSchema();
BAIL_ON_ERROR(dwError);
}
error:
return dwError;
}
DWORD
DispatchFunctions(po::variables_map argsMap,po::options_description& config)
{
DWORD dwError = ERROR_SUCCESS;
if (argsMap.count("version")) {
dwError = HandleVersionRequest();
BAIL_ON_ERROR(dwError);
}
if (argsMap.count("gencert")) {
if(!argsMap.count("privkey") ||
!argsMap.count("cert") ||
!argsMap.count("config") ) {
std::cout << "Error : To generate a certificate we need access to a private key."
<< "Example : certool --gencert --privkey=<filename> --cert=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
if ( ParserConfigFile(config, argConfig) != 0 ) {
std::cout << "Unable to read the config file";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleGenCert();
BAIL_ON_ERROR(dwError);
}
if (argsMap.count("genkey")) {
if(!argsMap.count("privkey") ||
!argsMap.count("pubkey")) {
std::cout << "Error : To generate a key pair we need public and private key files names to write to."
<< "Example : certool --genkey --privkey=<filename> --pubkey=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleGenKey();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("revokecert")) {
if(!argsMap.count("cert")) {
std::cout << "Error : To revoke a cert, you need a path to the certificate"
<< "Example : certool --revokecert --cert=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleRevokeCert();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("viewcert")) {
if(!argsMap.count("cert")) {
std::cout << "Error : To view a cert, you need a path to the certificate"
<< "Example : certool --viewcert --cert=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleViewCert();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("getrootca")) {
dwError = HandleGetRootCA();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("enumcert")) {
if(!argsMap.count("filter")) {
std::cout << "Error : To enum certs, you need to specify certificate status"
<< "Example: certool --enumcert --filter=revoked\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleEnumCerts();
BAIL_ON_ERROR(dwError);
}
if (argsMap.count("genCIScert")) {
if(!argsMap.count("privkey") ||
!argsMap.count("cert") ||
!argsMap.count("config") ) {
std::cout << "Error : To generate a certificate we need access to a private key."
<< "Example : certool --genCIScert --privkey=<filename> --cert=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleGenCISCert();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("status")) {
if(!argsMap.count("cert")) {
std::cout << "Error : To check the status of a cert, you need a path to the certificate"
<< "Example : certool --status --cert=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleStatusCert();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("vxls")){
if (!argsMap.count("prv") ||
!argsMap.count("trs") ||
!argsMap.count("rvk") ||
!argsMap.count("all")){
std::cout << "No Store Argument found, Enumerating Private Store:\n";
argStorePrivate = true;
}
dwError = HandleVecsEnum();
BAIL_ON_ERROR(dwError);
}
if ( argsMap.count("getcrl")){
if(!argsMap.count("crl")) {
std::cout << "Error : to download a CRL file, you need a path to the CRL file"
<< "Example : certool --getcrl --crl=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleGetCRL();
BAIL_ON_ERROR(dwError);
}
if ( argsMap.count("gencrl")){
dwError = HandleGenCRL();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("crlinfo")){
if(!argsMap.count("crl")) {
std::cout << "Error : CRL file Path is missing"
<< "Example : certool --crlinfo --crl=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleCRLInfo();
BAIL_ON_ERROR(dwError);
}
if(argsMap.count("viewcrl")) {
if(!argsMap.count("crl")) {
std::cout << "Error : CRL file Path is missing"
<< "Example : certool --viewcrl --crl=<filename> \n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandlePrintCRL();
BAIL_ON_ERROR(dwError);
}
if (argsMap.count("genselfcacert"))
{
if(!argsMap.count("outprivkey"))
{
std::cout << "Error : No private key file specified.\n"
<< "Example : certool --genselfcacert --outprivkey=<filename> --outcert=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
else if(!argsMap.count("outcert"))
{
std::cout << "Error : No certficate file specified.\n"
<< "Example : certool --genselfcacert --outprivkey=<filename> --outcert=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
else if(!argsMap.count("config"))
{
std::cout << "Error : No configuration file specified.\n"
<< "Example : certool --genselfcacert --outprivkey=<filename> --outcert=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
if ( ParserConfigFile(config, argConfig) != 0 ) {
std::cout << "Unable to read the config file";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleGenSelfCert();
BAIL_ON_ERROR(dwError);
}
if (argsMap.count("gencsrfromcert"))
{
if(!argsMap.count("privkey"))
{
std::cout << "Error : No private key file specified.\n"
<< "Example : certool --gencsrfromcert --privkey=<filename> --cert=<filename> --csrfile=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
else if(!argsMap.count("csrfile"))
{
std::cout << "Error : No output csr file specified.\n"
<< "Example : certool --gencsrfromcert --privkey=<filename> --cert=<filename> --csrfile=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
else if(!argsMap.count("cert"))
{
std::cout << "Error : No certficate file specified.\n"
<< "Example : certool --gencsrfromcert --privkey=<filename> --cert=<filename> --csrfile=<filename>\n";
dwError = VMCA_ARGUMENT_ERROR;
BAIL_ON_ERROR(dwError);
}
dwError = HandleGenCSRFromCert();
BAIL_ON_ERROR(dwError);
}
//if(argsMap.count("viewerror")){
// dwError = HandlePrintError();
// BAIL_ON_ERROR(dwError);
//}
error :
return dwError;
}
DWORD
DispatchCmd(po::variables_map argsMap, po::options_description& config)
{
DWORD dwError = ERROR_SUCCESS;
dwError = DispatchInitFunctions(argsMap, config);
BAIL_ON_ERROR(dwError);
dwError = DispatchFunctions(argsMap, config);
if( dwError == VMCA_ENUM_END)
{
dwError = ERROR_SUCCESS; // this is the Standard Success
}
BAIL_ON_ERROR(dwError);
error :
std::cout << "Status : " << ((dwError == 0) ? "Success" : "Failed") << std::endl;
if(dwError != 0)
{
PSTR szErrorMessage = NULL;
DWORD dwErrTemp = 0;
std::cout << "Error Code : " << dwError << std::endl;
dwErrTemp = VMCAGetErrorString(dwError, &szErrorMessage);
if (dwErrTemp == ERROR_SUCCESS &&
szErrorMessage)
{
std::cout << "Error Message : " << szErrorMessage << std::endl;
VMCA_SAFE_FREE_STRINGA(szErrorMessage);
}
else
{
std::cout << "Error Message : " << ErrorCodeToName(dwError) << std::endl;
}
}
return dwError;
}
DWORD
ParseArgs(int argc, char* argv[])
// This function parses arguments given to the client application
//
// argc : The number of arguments
// argv : The array pointing to the arguments
{
try {
po::options_description certtoolArgs("");
po::options_description desc("certool general command options");
po::options_description config("configuration file format ( for example see : certool.cfg )");
po::options_description init("CA server initialization functions");
po::options_description functions("14 managment functions");
po::options_description files("certificate data files");
po::options_description params("additional params");
AddGeneralOptions(desc);
AddConfigOptions(config);
AddInitOptions(init);
AddFunctionsOptions(functions);
AddFilesOptions(files);
AddParamOptions(params);
certtoolArgs.
add(desc).
add(config).
add(init).
add(functions).
add(files).
add(params);
po::store(po::parse_command_line(argc, argv, certtoolArgs), argsMap);
po::notify(argsMap);
if (argsMap.count("help") || argc == 1) {
if (argHelpModule.compare("init") == 0) {
std::cout << init << "\n";
return ERROR_SUCCESS;
}
if (argHelpModule.compare("functions") == 0) {
std::cout << functions << "\n";
return ERROR_SUCCESS;
}
if (argHelpModule.compare("config") == 0) {
std::cout << config << "\n";
return ERROR_SUCCESS;
}
if (argHelpModule.compare("files") == 0) {
std::cout << files << "\n";
return ERROR_SUCCESS;
}
std::cout << desc << "\n";
return ERROR_SUCCESS;
}
return DispatchCmd(argsMap, config);
}
catch (std::bad_alloc& e)
{
std::cerr << "error - Allocation failed -" << e.what() << std::endl;
return VMCA_OUT_MEMORY_ERR;
}
catch (std::exception& e)
{
std::cerr << "error: " << e.what() << "\n";
return VMCA_UNKNOW_ERROR;
} catch(...)
{
std::cerr << "Exception of unknown type!\n";
return VMCA_UNKNOW_ERROR;
}
}
VOID
VMCAFreeCommandLineA(
int argc,
PSTR* pUtf8Args
)
{
if (pUtf8Args)
{
for (int i = 0; i < argc; ++i)
{
VMCA_SAFE_FREE_STRINGA(pUtf8Args[i]);
}
VMCA_SAFE_FREE_MEMORY(pUtf8Args);
}
}
DWORD
VMCAAllocateComandLineAFromW(int argc, WCHAR** argv, PSTR** ppUtf8Args)
{
DWORD dwError = ERROR_SUCCESS;
PSTR* pUtf8Args = NULL;
dwError = VMCAAllocateMemory( argc * sizeof(PSTR), (PVOID*)&pUtf8Args);
BAIL_ON_ERROR(dwError);
for(int i = 0; i < argc; ++i)
{
PSTR utf8Arg = NULL;
dwError = VMCAAllocateStringAFromW(argv[i], &utf8Arg);
BAIL_ON_ERROR(dwError);
pUtf8Args[i] = utf8Arg;
}
*ppUtf8Args = pUtf8Args;
pUtf8Args = NULL;
cleanup:
return dwError;
error:
VMCAFreeCommandLineA(argc, pUtf8Args);
goto cleanup;
}
#ifdef WIN32
int wmain(int argc, WCHAR* argv[])
#else
int main(int argc, char* argv[])
#endif
{
DWORD dwError = ERROR_SUCCESS;
#ifdef WIN32
PSTR* utf8Args = NULL;
dwError = VMCAAllocateComandLineAFromW(argc, argv, &utf8Args);
BAIL_ON_ERROR(dwError);
#else
PSTR* utf8Args = argv;
#endif
dwError = ParseArgs(argc, utf8Args);
cleanup:
#ifdef WIN32
VMCAFreeCommandLineA(argc, utf8Args);
#endif
return (int)dwError;
error:
goto cleanup;
}
| 30.987271 | 126 | 0.590896 | slachiewicz |
38361bc7f6ef0d252245256363ab9c9b0ed244d5 | 1,607 | cpp | C++ | src/perf_watcher.cpp | Foomf/Blyss-Server | f6942f740e74a2bc03f305372486aa62d94fb074 | [
"Zlib"
] | null | null | null | src/perf_watcher.cpp | Foomf/Blyss-Server | f6942f740e74a2bc03f305372486aa62d94fb074 | [
"Zlib"
] | null | null | null | src/perf_watcher.cpp | Foomf/Blyss-Server | f6942f740e74a2bc03f305372486aa62d94fb074 | [
"Zlib"
] | null | null | null | #include "perf_watcher.hpp"
#include <spdlog/spdlog.h>
#include "uv_utils.hpp"
namespace blyss::server
{
const uint64_t frame_leeway = 10;
void perf_watcher_timer_callback(uv_timer_t* handle)
{
const auto self = static_cast<perf_watcher*>(handle->data);
self->reset();
}
perf_watcher::perf_watcher(uv_loop_t* loop, std::uint64_t ms_per_frame, std::uint64_t slow_warning_reset_ms)
: ms_per_frame_{ ms_per_frame }
, slow_warning_reset_ms_{ slow_warning_reset_ms }
, loop_{loop}
, previous_time_{uv_now(loop_)}
{
uv_checked(uv_timer_init(loop_, &show_warning_timer_));
}
perf_watcher::~perf_watcher()
{
uv_warned(uv_timer_stop(&show_warning_timer_));
}
void perf_watcher::start()
{
show_warning_timer_.data = this;
reset();
}
void perf_watcher::update()
{
const auto current_time = uv_now(loop_);
const auto diff = current_time - previous_time_;
previous_time_ = current_time;
if (show_slow_warning_ && diff > ms_per_frame_ + frame_leeway)
{
show_message(diff - ms_per_frame_);
}
}
void perf_watcher::reset()
{
show_slow_warning_ = true;
}
void perf_watcher::show_message(const std::uint64_t missed_ms)
{
spdlog::warn("Server is running {0:d} ms behind! Consider getting a faster cpu...", missed_ms);
show_slow_warning_ = false;
uv_checked(uv_timer_start(&show_warning_timer_, perf_watcher_timer_callback, slow_warning_reset_ms_, 0));
}
} | 26.344262 | 113 | 0.650902 | Foomf |
38376fdc1ab51c2d64bd45bbdb89bfa4655b85c3 | 3,774 | cpp | C++ | tests/test-suite/callbackTest.cpp | anupam19/mididuino | 27c30f586a8d61381309434ed05b4958c7727402 | [
"BSD-3-Clause"
] | null | null | null | tests/test-suite/callbackTest.cpp | anupam19/mididuino | 27c30f586a8d61381309434ed05b4958c7727402 | [
"BSD-3-Clause"
] | null | null | null | tests/test-suite/callbackTest.cpp | anupam19/mididuino | 27c30f586a8d61381309434ed05b4958c7727402 | [
"BSD-3-Clause"
] | null | null | null | #include <CppUnitLite2.h>
#include <TestResultStdErr.h>
#include <Callback.hh>
class Foobar {
public:
bool callbackNoneCalled;
bool callbackNone2Called;
bool callbackIntCalled;
int callbackIntValue;
bool callbackInt2Called;
int callbackInt2Value1;
int callbackInt2Value2;
Foobar() {
reset();
}
void reset() {
callbackNoneCalled = false;
callbackNone2Called = false;
callbackIntCalled = false;
callbackInt2Called = false;
callbackIntValue = 0;
callbackInt2Value1 = 0;
callbackInt2Value2 = 0;
}
void callbackNone() {
// printf("call none\n");
callbackNoneCalled = true;
}
void callbackNone2() {
// printf("call none2 \n");
callbackNone2Called = true;
}
void callbackInt(int i) {
callbackIntCalled = true;
callbackIntValue = i;
}
void callbackInt2(int i1, int i2) {
callbackInt2Called = true;
callbackInt2Value1 = i1;
callbackInt2Value2 = i2;
}
};
struct CallbackFixture {
CallbackVector<Foobar, 4> callbackNoneList;
CallbackVector1<Foobar, 4, int> callbackIntList;
CallbackVector2<Foobar, 4, int, int> callbackInt2List;
Foobar foobar;
};
TEST_F (CallbackFixture, CallbackTestAdd) {
CHECK_EQUAL(0, (int)callbackNoneList.size);
callbackNoneList.add(&foobar, &Foobar::callbackNone);
CHECK_EQUAL(1, (int)callbackNoneList.size);
callbackNoneList.add(&foobar, &Foobar::callbackNone);
CHECK_EQUAL(1, (int)callbackNoneList.size);
callbackNoneList.add(&foobar, &Foobar::callbackNone2);
CHECK_EQUAL(2, (int)callbackNoneList.size);
callbackNoneList.remove(&foobar, &Foobar::callbackNone);
CHECK_EQUAL(1, (int)callbackNoneList.size);
callbackNoneList.add(&foobar, &Foobar::callbackNone);
CHECK_EQUAL(2, (int)callbackNoneList.size);
callbackNoneList.remove(&foobar, &Foobar::callbackNone2);
CHECK_EQUAL(1, (int)callbackNoneList.size);
callbackNoneList.add(&foobar, &Foobar::callbackNone2);
CHECK_EQUAL(2, (int)callbackNoneList.size);
callbackNoneList.remove(&foobar);
CHECK_EQUAL(0, (int)callbackNoneList.size);
CHECK_EQUAL(0, (int)callbackIntList.size);
callbackIntList.add(&foobar, &Foobar::callbackInt);
CHECK_EQUAL(1, (int)callbackIntList.size);
callbackIntList.add(&foobar, &Foobar::callbackInt);
CHECK_EQUAL(1, (int)callbackIntList.size);
CHECK_EQUAL(0, (int)callbackInt2List.size);
callbackInt2List.add(&foobar, &Foobar::callbackInt2);
CHECK_EQUAL(1, (int)callbackInt2List.size);
callbackInt2List.add(&foobar, &Foobar::callbackInt2);
CHECK_EQUAL(1, (int)callbackInt2List.size);
}
TEST_F (CallbackFixture, CallbackTestCall) {
foobar.reset();
callbackNoneList.add(&foobar, &Foobar::callbackNone);
CHECK(!foobar.callbackNoneCalled);
CHECK(!foobar.callbackNone2Called);
callbackNoneList.call();
CHECK(foobar.callbackNoneCalled);
CHECK(!foobar.callbackNone2Called);
foobar.reset();
callbackNoneList.add(&foobar, &Foobar::callbackNone2);
CHECK(!foobar.callbackNoneCalled);
CHECK(!foobar.callbackNone2Called);
callbackNoneList.call();
CHECK(foobar.callbackNoneCalled);
CHECK(foobar.callbackNone2Called);
foobar.reset();
callbackNoneList.remove(&foobar, &Foobar::callbackNone);
CHECK(!foobar.callbackNoneCalled);
CHECK(!foobar.callbackNone2Called);
callbackNoneList.call();
CHECK(!foobar.callbackNoneCalled);
CHECK(foobar.callbackNone2Called);
foobar.reset();
callbackIntList.add(&foobar, &Foobar::callbackInt);
CHECK(!foobar.callbackIntCalled);
callbackIntList.call(1);
CHECK(foobar.callbackIntCalled);
CHECK_EQUAL(1, foobar.callbackIntValue);
foobar.reset();
CHECK(!foobar.callbackIntCalled);
callbackIntList.call(2);
CHECK(foobar.callbackIntCalled);
CHECK_EQUAL(2, foobar.callbackIntValue);
}
| 28.164179 | 63 | 0.732909 | anupam19 |
3838a484192901c76ee8f5239c4041ff703c4be6 | 7,104 | cxx | C++ | PWGLF/FORWARD/analysis2/AliFMDMCCorrector.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWGLF/FORWARD/analysis2/AliFMDMCCorrector.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWGLF/FORWARD/analysis2/AliFMDMCCorrector.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | //
// This class calculates the exclusive charged particle density
// in each for the 5 FMD rings.
//
// Input:
// - 5 RingHistos objects - each with a number of vertex dependent
// 2D histograms of the inclusive charge particle density
//
// Output:
// - 5 RingHistos objects - each with a number of vertex dependent
// 2D histograms of the exclusive charge particle density
//
// Corrections used:
// - AliFMDCorrSecondaryMap;
// - AliFMDCorrVertexBias
// - AliFMDCorrMergingEfficiency
//
#include "AliFMDMCCorrector.h"
#include <AliESDFMD.h>
#include <TAxis.h>
#include <TList.h>
#include <TMath.h>
#include "AliForwardCorrectionManager.h"
#include "AliFMDCorrSecondaryMap.h"
#include "AliFMDCorrVertexBias.h"
#include "AliLog.h"
#include <TH2D.h>
#include <TROOT.h>
#include <TProfile2D.h>
#include <iostream>
ClassImp(AliFMDMCCorrector)
#if 0
; // For Emacs
#endif
//____________________________________________________________________
AliFMDMCCorrector::~AliFMDMCCorrector()
{
//
// Destructor
//
// if (fComps) fComps->Clear();
// if (fFMD1i) delete fFMD1i;
// if (fFMD2i) delete fFMD2i;
// if (fFMD2o) delete fFMD2o;
// if (fFMD3i) delete fFMD3i;
// if (fFMD3o) delete fFMD3o;
}
//____________________________________________________________________
AliFMDMCCorrector&
AliFMDMCCorrector::operator=(const AliFMDMCCorrector& o)
{
//
// Assignement operator
//
// Parameters:
// o Object to assign from
//
// Return:
// Reference to this object
//
if (&o == this) return *this;
AliFMDCorrector::operator=(o);
fSecondaryForMC = o.fSecondaryForMC;
return *this;
}
//____________________________________________________________________
Bool_t
AliFMDMCCorrector::CorrectMC(AliForwardUtil::Histos& hists,
UShort_t vtxbin)
{
//
// Do the calculations
//
// Parameters:
// hists Cache of histograms
// vtxBin Vertex bin
//
// Return:
// true on successs
//
if ((!fUseSecondaryMap || !fSecondaryForMC) && fUseVertexBias)
return kTRUE;
AliForwardCorrectionManager& fcm = AliForwardCorrectionManager::Instance();
UShort_t uvb = vtxbin;
for (UShort_t d=1; d<=3; d++) {
UShort_t nr = (d == 1 ? 1 : 2);
for (UShort_t q=0; q<nr; q++) {
Char_t r = (q == 0 ? 'I' : 'O');
TH2D* h = hists.Get(d,r);
if (fUseSecondaryMap && fSecondaryForMC) {
TH2D* bg = fcm.GetSecondaryMap()->GetCorrection(d,r,uvb);
if (!bg) {
AliWarning(Form("No secondary correction for FMDM%d%c in vertex bin %d",
d, r, uvb));
continue;
}
// Divide by primary/total ratio
h->Divide(bg);
}
if (fUseVertexBias) {
TH2D* ef = fcm.GetVertexBias()->GetCorrection(r, uvb);
if (!ef) {
AliWarning(Form("No event vertex bias correction in vertex bin %d",
uvb));
continue;
}
// Divide by the event selection efficiency
h->Divide(ef);
}
}
}
return kTRUE;
}
//____________________________________________________________________
void
AliFMDMCCorrector::SetupForData(const TAxis& eAxis)
{
//
// Initialize this object
//
// Parameters:
// etaAxis Eta axis to use
//
AliFMDCorrector::SetupForData(eAxis);
fFMD1i = Make(1,'I',eAxis);
fFMD2i = Make(2,'I',eAxis);
fFMD2o = Make(2,'O',eAxis);
fFMD3i = Make(3,'I',eAxis);
fFMD3o = Make(3,'O',eAxis);
fComps->Add(fFMD1i);
fComps->Add(fFMD2i);
fComps->Add(fFMD2o);
fComps->Add(fFMD3i);
fComps->Add(fFMD3o);
}
//____________________________________________________________________
TProfile2D*
AliFMDMCCorrector::Make(UShort_t d, Char_t r,
const TAxis& axis) const
{
//
// MAke comparison profiles
//
// Parameters:
// d Detector
// r Ring
// axis Eta axis
//
// Return:
// Newly allocated profile object
//
TProfile2D* ret = new TProfile2D(Form("FMD%d%c_esd_vs_mc", d, r),
Form("ESD/MC signal for FMD%d%c", d, r),
axis.GetNbins(),
axis.GetXmin(),
axis.GetXmax(),
(r == 'I' || r == 'i') ? 20 : 40,
0, 2*TMath::Pi());
ret->GetXaxis()->SetTitle("#eta");
ret->GetYaxis()->SetTitle("#varphi [degrees]");
ret->GetZaxis()->SetTitle("#LT primary density ESD/MC#GT");
ret->SetDirectory(0);
return ret;
}
//____________________________________________________________________
void
AliFMDMCCorrector::Fill(UShort_t d, Char_t r, TH2* esd, TH2* mc)
{
//
// Fill comparison profiles
//
// Parameters:
// d Detector
// r Ring
// esd ESD histogram
// mc MC histogram
//
if (!esd || !mc) return;
TProfile2D* p = 0;
switch (d) {
case 1: p = fFMD1i; break;
case 2: p = (r == 'I' || r == 'i' ? fFMD2i : fFMD2o); break;
case 3: p = (r == 'I' || r == 'i' ? fFMD3i : fFMD3o); break;
}
if (!p) return;
for (Int_t iEta = 1; iEta <= esd->GetNbinsX(); iEta++) {
Double_t eta = esd->GetXaxis()->GetBinCenter(iEta);
for (Int_t iPhi = 1; iPhi <= esd->GetNbinsY(); iPhi++) {
Double_t phi = esd->GetYaxis()->GetBinCenter(iPhi);
Double_t mEsd = esd->GetBinContent(iEta,iPhi);
Double_t mMc = mc->GetBinContent(iEta,iPhi);
p->Fill(eta, phi, (mMc > 0 ? mEsd / mMc : 0));
}
}
}
//____________________________________________________________________
Bool_t
AliFMDMCCorrector::CompareResults(AliForwardUtil::Histos& esd,
AliForwardUtil::Histos& mc)
{
//
// Compare the result of analysing the ESD for
// the inclusive charged particle density to analysing
// MC truth
//
// Parameters:
// esd
// mc
//
// Return:
// true
//
Fill(1, 'I', esd.Get(1,'I'), mc.Get(1,'I'));
Fill(2, 'I', esd.Get(2,'I'), mc.Get(2,'I'));
Fill(2, 'O', esd.Get(2,'O'), mc.Get(2,'O'));
Fill(3, 'I', esd.Get(3,'I'), mc.Get(3,'I'));
Fill(3, 'O', esd.Get(3,'O'), mc.Get(3,'O'));
return kTRUE;
}
//____________________________________________________________________
void
AliFMDMCCorrector::CreateOutputObjects(TList* dir)
{
//
// Output diagnostic histograms to directory
//
// Parameters:
// dir List to write in
//
AliFMDCorrector::CreateOutputObjects(dir);
TList* d = static_cast<TList*>(dir->FindObject(GetName()));
fComps = new TList;
fComps->SetName("esd_mc_comparison");
d->Add(fComps);
}
#define PFB(N,FLAG) \
do { \
AliForwardUtil::PrintName(N); \
std::cout << std::boolalpha << (FLAG) << std::noboolalpha << std::endl; \
} while(false)
//____________________________________________________________________
void
AliFMDMCCorrector::Print(Option_t* option) const
{
//
// Print information
// Parameters:
// option Not used
//
AliFMDCorrector::Print(option);
gROOT->IncreaseDirLevel();
PFB("Use sec. map on MC", fSecondaryForMC);
gROOT->DecreaseDirLevel();
}
//____________________________________________________________________
//
// EOF
//
| 25.102473 | 82 | 0.625 | maroozm |
3838da6d708019732df1662610cf9872ba0db48d | 4,474 | hpp | C++ | include/mmf/optimizationSO3.hpp | jstraub/dpMM | 538c432d5f98c040d5c1adb072e545e38f97fc69 | [
"MIT-feh"
] | 11 | 2015-04-27T15:14:01.000Z | 2021-11-18T00:19:18.000Z | include/mmf/optimizationSO3.hpp | jstraub/dpMM | 538c432d5f98c040d5c1adb072e545e38f97fc69 | [
"MIT-feh"
] | null | null | null | include/mmf/optimizationSO3.hpp | jstraub/dpMM | 538c432d5f98c040d5c1adb072e545e38f97fc69 | [
"MIT-feh"
] | 6 | 2015-07-02T12:46:20.000Z | 2022-03-30T04:39:30.000Z | /* Copyright (c) 2015, Julian Straub <jstraub@csail.mit.edu> Licensed
* under the MIT license. See the license file LICENSE.
*/
#pragma once
#include <stdint.h>
#include <string>
#include <vector>
#include <iostream>
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/QR>
#include <unsupported/Eigen/MatrixFunctions>
// CUDA runtime
#include <cuda_runtime.h>
// Utilities and system includes
//#include <mmf/defines.h>
#include <nvidia/helper_cuda.h>
#include <jsCore/clDataGpu.hpp>
#include <jsCore/timer.hpp>
using namespace Eigen;
using namespace std;
extern void robustSquaredAngleCostFctGPU(float *h_cost, float *d_cost,
float *d_x, float* d_weights, uint32_t *d_z, float *d_mu, float sigma_sq,
int N);
extern void robustSquaredAngleCostFctAssignmentGPU(float *h_cost, float *d_cost,
uint32_t *h_W, uint32_t *d_W, float *d_x, float* d_weights,
uint32_t *d_z, float *d_mu, float sigma_sq, int N);
extern void robustSquaredAngleCostFctJacobianGPU(float *h_J, float *d_J,
float *d_x, float *d_weights, uint32_t *d_z, float *d_mu, float sigma_sq,
int N);
extern void meanInTpS2GPU(float *h_p, float *d_p, float *h_mu_karch,
float *d_mu_karch, float *d_q, uint32_t *d_z, float* d_weights,int N);
extern void sufficientStatisticsOnTpS2GPU(float *h_p, float *d_p, float
*h_Rnorths, float *d_Rnorths, float *d_q, uint32_t *d_z ,int N, float
*h_SSs, float *d_SSs);
extern void loadRGBvaluesForMFaxes();
namespace mmf{
class OptSO3
{
protected:
float *d_cost, *d_J, *d_mu_;
// float *h_errs_;
uint32_t *d_N_;
float t_max_, dt_;
jsc::ClDataGpu<float> cld_;
public:
// float *d_errs_;
// float *d_q_
float *d_weights_;
const float sigma_sq_;
// uint32_t *d_z, *h_z;
float dtPrep_; // time for preparation (here assignemnts)
float dtCG_; // time for cunjugate gradient
uint32_t t_; // timestep
Matrix3f Rprev_; // previous rotation
// t_max and dt define the number linesearch steps, and how fine
// grained to search
OptSO3(float sigma, float t_max = 1.0f, float dt = 0.1f,
float *d_weights =NULL)
: d_cost(NULL), d_J(NULL), d_mu_(NULL), d_N_(NULL),
t_max_(t_max),dt_(dt), cld_(3,6),
// d_q_(d_q),
d_weights_(d_weights),
sigma_sq_(sigma*sigma), dtPrep_(0.0f), dtCG_(0.0f),
t_(0), Rprev_(Matrix3f::Identity())
{init();};
virtual ~OptSO3();
double D_KL_axisUnif();
float *getErrs(int N);
// uses uncompressed normals
virtual void updateExternalGpuNormals(float* d_q, uint32_t N,
uint32_t step, uint32_t offset = 0) {
cld_.updateData(d_q,N,step,offset); };
virtual double conjugateGradientCUDA(Matrix3f& R, uint32_t maxIter=100);
/* return a skew symmetric matrix from A */
Matrix3f enforceSkewSymmetry(const Matrix3f &A) const
{return 0.5*(A-A.transpose());};
float dtPrep(void) const { return dtPrep_;};
float dtCG(void) const { return dtCG_;};
const VectorXf& counts() {return this->cld_.counts();};
const VectorXu& z() {return this->cld_.z();};
const spMatrixXf& x() {return this->cld_.x();};
uint32_t N() const {return this->cld_.N();};
protected:
virtual float conjugateGradientPreparation_impl(Matrix3f& R, uint32_t& N);
virtual float conjugateGradientCUDA_impl(Matrix3f& R, float res0, uint32_t N, uint32_t maxIter=100);
virtual void conjugateGradientPostparation_impl(Matrix3f& R){;};
/* evaluate cost function for a given assignment of npormals to axes */
virtual float evalCostFunction(Matrix3f& R);
/* compute Jacobian */
virtual void computeJacobian(Matrix3f&J, Matrix3f& R, float N);
/* recompute assignment based on rotation R and return residual as well */
virtual float computeAssignment(Matrix3f& R, uint32_t& N);
/* updates G and H from rotation R and jacobian J
*/
virtual void updateGandH(Matrix3f& G, Matrix3f& G_prev, Matrix3f& H,
const Matrix3f& R, const Matrix3f& J, const Matrix3f& M_t_min,
bool resetH);
/* performs line search starting at R in direction of H
* returns min of cost function and updates R, and M_t_min
*/
virtual float linesearch(Matrix3f& R, Matrix3f& M_t_min, const
Matrix3f& H, float N, float t_max=1.0f, float dt=0.1f);
/* mainly init GPU arrays */
virtual void init();
/* copy rotation to device */
void Rot2Device(Matrix3f& R);
/* convert a Rotation matrix R to a MF representaiton of the axes */
void Rot2M(Matrix3f& R, float *mu);
//deprecated
void rectifyRotation(Matrix3f& R);
};
}
| 32.42029 | 102 | 0.709879 | jstraub |
3838ff40388d37125044f329045675cd245ee7bf | 8,243 | cpp | C++ | lib-ltc/src/h3/ltcreader.cpp | vanvught/rpidmx512 | b56bb2db406247b4fd4c56aa372952939f4a3290 | [
"MIT"
] | 328 | 2015-02-26T09:54:16.000Z | 2022-03-31T11:04:00.000Z | lib-ltc/src/h3/ltcreader.cpp | vanvught/rpidmx512 | b56bb2db406247b4fd4c56aa372952939f4a3290 | [
"MIT"
] | 195 | 2016-07-13T10:43:37.000Z | 2022-03-20T19:14:55.000Z | lib-ltc/src/h3/ltcreader.cpp | vanvught/rpidmx512 | b56bb2db406247b4fd4c56aa372952939f4a3290 | [
"MIT"
] | 113 | 2015-06-08T04:54:23.000Z | 2022-02-15T09:06:10.000Z | /**
* @file ltcreader.cpp
*
*/
/* Copyright (C) 2019-2021 by Arjan van Vught mailto:info@orangepi-dmx.nl
*
* 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 <cstdint>
#include <cstring>
#ifndef NDEBUG
# include <cstdio>
#endif
#include <cassert>
#include "h3/ltcreader.h"
#include "ltc.h"
#include "timecodeconst.h"
#include "h3.h"
#include "h3_board.h"
#include "h3_gpio.h"
#include "h3_timer.h"
#include "h3_hs_timer.h"
#include "irq_timer.h"
#include "arm/arm.h"
#include "arm/synchronize.h"
#include "arm/gic.h"
// Output
#include "artnetnode.h"
#include "rtpmidi.h"
#include "midi.h"
//
#include "h3/ltcoutputs.h"
#ifndef ALIGNED
# define ALIGNED __attribute__ ((aligned (4)))
#endif
#define ONE_TIME_MIN 150 ///< 417us/2 = 208us
#define ONE_TIME_MAX 300 ///< 521us/2 = 260us
#define ZERO_TIME_MIN 380 ///< 30 FPS * 80 bits = 2400Hz, 1E6/2400Hz = 417us
#define ZERO_TIME_MAX 600 ///< 24 FPS * 80 bits = 1920Hz, 1E6/1920Hz = 521us
#define END_DATA_POSITION 63
#define END_SYNC_POSITION 77
#define END_SMPTE_POSITION 80
static volatile bool IsMidiQuarterFrameMessage;
static uint32_t nMidiQuarterFramePiece = 0;
static volatile uint32_t nFiqUsPrevious = 0;
static volatile uint32_t nFiqUsCurrent = 0;
static volatile uint32_t nBitTime = 0;
static volatile uint32_t nTotalBits = 0;
static volatile bool bOnesBitCount = false;
static volatile uint32_t nCurrentBit = 0;
static volatile uint32_t nSyncCount = 0;
static volatile bool bTimeCodeSync = false;
static volatile bool bTimeCodeValid = false;
static volatile uint8_t aTimeCodeBits[8] ALIGNED;
static volatile bool bIsDropFrameFlagSet = false;
static volatile bool bTimeCodeAvailable;
static volatile struct midi::Timecode s_tMidiTimeCode = { 0, 0, 0, 0, static_cast<uint8_t>(midi::TimecodeType::EBU) };
// ARM Generic Timer
static volatile uint32_t nUpdatesPerSecond = 0;
static volatile uint32_t nUpdatesPrevious = 0;
static volatile uint32_t nUpdates = 0;
static void __attribute__((interrupt("FIQ"))) fiq_handler() {
dmb();
nFiqUsCurrent = h3_hs_timer_lo_us();
H3_PIO_PA_INT->STA = static_cast<uint32_t>(~0x0);
if (nFiqUsPrevious >= nFiqUsCurrent) {
nBitTime = nFiqUsPrevious - nFiqUsCurrent;
nBitTime = 42949672 - nBitTime;
} else {
nBitTime = nFiqUsCurrent - nFiqUsPrevious;
}
nFiqUsPrevious = nFiqUsCurrent;
if ((nBitTime < ONE_TIME_MIN) || (nBitTime > ZERO_TIME_MAX)) {
nTotalBits = 0;
} else {
if (bOnesBitCount) {
bOnesBitCount = false;
} else {
if (nBitTime > ZERO_TIME_MIN) {
nCurrentBit = 0;
nSyncCount = 0;
} else {
nCurrentBit = 1;
bOnesBitCount = true;
nSyncCount++;
if (nSyncCount == 12) {
nSyncCount = 0;
bTimeCodeSync = true;
nTotalBits = END_SYNC_POSITION;
}
}
if (nTotalBits <= END_DATA_POSITION) {
aTimeCodeBits[0] = static_cast<uint8_t>(aTimeCodeBits[0] >> 1);
for (uint32_t n = 1; n < 8; n++) {
if (aTimeCodeBits[n] & 1) {
aTimeCodeBits[n - 1] |= 0x80;
}
aTimeCodeBits[n] = static_cast<uint8_t>(aTimeCodeBits[n] >> 1);
}
if (nCurrentBit == 1) {
aTimeCodeBits[7] |= 0x80;
}
}
nTotalBits++;
}
if (nTotalBits == END_SMPTE_POSITION) {
nTotalBits = 0;
if (bTimeCodeSync) {
bTimeCodeSync = false;
bTimeCodeValid = true;
}
}
if (bTimeCodeValid) {
nUpdates++;
bTimeCodeValid = false;
s_tMidiTimeCode.nFrames = static_cast<uint8_t>((10 * (aTimeCodeBits[1] & 0x03)) + (aTimeCodeBits[0] & 0x0F));
s_tMidiTimeCode.nSeconds = static_cast<uint8_t>((10 * (aTimeCodeBits[3] & 0x07)) + (aTimeCodeBits[2] & 0x0F));
s_tMidiTimeCode.nMinutes = static_cast<uint8_t>((10 * (aTimeCodeBits[5] & 0x07)) + (aTimeCodeBits[4] & 0x0F));
s_tMidiTimeCode.nHours = static_cast<uint8_t>((10 * (aTimeCodeBits[7] & 0x03)) + (aTimeCodeBits[6] & 0x0F));
bIsDropFrameFlagSet = (aTimeCodeBits[1] & (1 << 2));
bTimeCodeAvailable = true;
dmb();
}
}
dmb();
}
static void arm_timer_handler(void) {
nUpdatesPerSecond = nUpdates - nUpdatesPrevious;
nUpdatesPrevious = nUpdates;
}
static void irq_timer1_midi_handler(__attribute__((unused)) uint32_t clo) {
IsMidiQuarterFrameMessage = true;
}
LtcReader::LtcReader(struct TLtcDisabledOutputs *pLtcDisabledOutputs): m_ptLtcDisabledOutputs(pLtcDisabledOutputs), m_tTimeCodeTypePrevious(ltc::type::INVALID) {
}
void LtcReader::Start() {
bTimeCodeAvailable = false;
IsMidiQuarterFrameMessage = false;
/**
* IRQ
*/
irq_timer_arm_physical_set(static_cast<thunk_irq_timer_arm_t>(arm_timer_handler));
irq_timer_set(IRQ_TIMER_1, static_cast<thunk_irq_timer_t>(irq_timer1_midi_handler));
H3_TIMER->TMR1_CTRL &= ~TIMER_CTRL_SINGLE_MODE;
irq_timer_init();
/**
* FIQ
*/
h3_gpio_fsel(GPIO_EXT_26, GPIO_FSEL_EINT);
arm_install_handler(reinterpret_cast<unsigned>(fiq_handler), ARM_VECTOR(ARM_VECTOR_FIQ));
gic_fiq_config(H3_PA_EINT_IRQn, GIC_CORE0);
H3_PIO_PA_INT->CFG1 = (GPIO_INT_CFG_DOUBLE_EDGE << 8);
H3_PIO_PA_INT->CTL |= (1 << GPIO_EXT_26);
H3_PIO_PA_INT->STA = (1 << GPIO_EXT_26);
H3_PIO_PA_INT->DEB = 1;
__enable_fiq();
}
void LtcReader::Run() {
uint8_t TimeCodeType;
dmb();
if (bTimeCodeAvailable) {
dmb();
bTimeCodeAvailable = false;
TimeCodeType = ltc::type::UNKNOWN;
dmb();
if (bIsDropFrameFlagSet) {
TimeCodeType = ltc::type::DF;
} else {
if (nUpdatesPerSecond <= 24) {
TimeCodeType = ltc::type::FILM;
} else if (nUpdatesPerSecond <= 26) {
TimeCodeType = ltc::type::EBU;
} else if (nUpdatesPerSecond >= 28) {
TimeCodeType = ltc::type::SMPTE;
} else {
}
}
s_tMidiTimeCode.nType = TimeCodeType;
struct TLtcTimeCode tLtcTimeCode;
tLtcTimeCode.nFrames = s_tMidiTimeCode.nFrames;
tLtcTimeCode.nSeconds = s_tMidiTimeCode.nSeconds;
tLtcTimeCode.nMinutes = s_tMidiTimeCode.nMinutes;
tLtcTimeCode.nHours = s_tMidiTimeCode.nHours;
tLtcTimeCode.nType = s_tMidiTimeCode.nType;
if (!m_ptLtcDisabledOutputs->bArtNet) {
ArtNetNode::Get()->SendTimeCode(reinterpret_cast<const struct TArtNetTimeCode*>(&tLtcTimeCode));
}
if (!m_ptLtcDisabledOutputs->bRtpMidi) {
RtpMidi::Get()->SendTimeCode(reinterpret_cast<const struct midi::Timecode *>(const_cast<struct midi::Timecode *>(&s_tMidiTimeCode)));
}
if (m_tTimeCodeTypePrevious != TimeCodeType) {
m_tTimeCodeTypePrevious = TimeCodeType;
Midi::Get()->SendTimeCode(reinterpret_cast<const struct midi::Timecode *>(const_cast<struct midi::Timecode *>(&s_tMidiTimeCode)));
H3_TIMER->TMR1_INTV = TimeCodeConst::TMR_INTV[TimeCodeType] / 4;
H3_TIMER->TMR1_CTRL |= (TIMER_CTRL_EN_START | TIMER_CTRL_RELOAD);
nMidiQuarterFramePiece = 0;
}
LtcOutputs::Get()->Update(reinterpret_cast<const struct TLtcTimeCode*>(&tLtcTimeCode));
}
dmb();
if ((nUpdatesPerSecond >= 24) && (nUpdatesPerSecond <= 30)) {
dmb();
if (__builtin_expect((IsMidiQuarterFrameMessage), 0)) {
dmb();
IsMidiQuarterFrameMessage = false;
Midi::Get()->SendQf(reinterpret_cast<const struct midi::Timecode *>(const_cast<struct midi::Timecode *>(&s_tMidiTimeCode)), nMidiQuarterFramePiece);
}
LedBlink::Get()->SetFrequency(ltc::led_frequency::DATA);
} else {
LedBlink::Get()->SetFrequency(ltc::led_frequency::NO_DATA);
}
}
| 28.522491 | 161 | 0.7177 | vanvught |
3839069263d48f72c2c2355071087f6e8086dbf7 | 3,103 | hpp | C++ | RX600/crca.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 56 | 2015-06-04T14:15:38.000Z | 2022-03-01T22:58:49.000Z | RX600/crca.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 30 | 2019-07-27T11:03:14.000Z | 2021-12-14T09:59:57.000Z | RX600/crca.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 15 | 2017-06-24T11:33:39.000Z | 2021-12-07T07:26:58.000Z | #pragma once
//=====================================================================//
/*! @file
@brief RX600 グループ・CRCA 定義
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2020 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//=====================================================================//
#include "common/io_utils.hpp"
namespace device {
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief CRCA 演算器クラス
@param[in] base ベース・アドレス
@param[in] per ペリフェラル
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t base, peripheral per>
struct crca_t {
static const auto PERIPHERAL = per; ///< ペリフェラル型
//-----------------------------------------------------------------//
/*!
@brief CRC コントロールレジスタ(CRCCR)
@param[in] ofs オフセット
*/
//-----------------------------------------------------------------//
template <uint32_t ofs>
struct crccr_t : public rw8_t<ofs> {
typedef rw8_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B0, 3> GPS;
bit_rw_t <io_, bitpos::B6> LMS;
bit_rw_t <io_, bitpos::B7> DORCLR;
};
typedef crccr_t<base + 0x00> CRCCR_;
static CRCCR_ CRCCR;
//-----------------------------------------------------------------//
/*!
@brief CRC データ入力レジスタ(CRCDIRxx)
*/
//-----------------------------------------------------------------//
typedef rw32_t<base + 0x04> CRCDIR32_;
static CRCDIR32_ CRCDIR32;
typedef rw16_t<base + 0x04> CRCDIR16_;
static CRCDIR16_ CRCDIR16;
typedef rw8_t<base + 0x04> CRCDIR8_;
static CRCDIR8_ CRCDIR8;
//-----------------------------------------------------------------//
/*!
@brief CRC データ出力レジスタ(CRCDORxx)
*/
//-----------------------------------------------------------------//
typedef rw32_t<base + 0x08> CRCDOR32_;
static CRCDOR32_ CRCDOR32;
typedef rw16_t<base + 0x08> CRCDOR16_;
static CRCDOR16_ CRCDOR16;
typedef rw8_t<base + 0x08> CRCDOR8_;
static CRCDOR8_ CRCDOR8;
};
template <uint32_t base, peripheral per>
typename crca_t<base, per>::CRCCR_ crca_t<base, per>::CRCCR;
template <uint32_t base, peripheral per>
typename crca_t<base, per>::CRCDIR32_ crca_t<base, per>::CRCDIR32;
template <uint32_t base, peripheral per>
typename crca_t<base, per>::CRCDIR16_ crca_t<base, per>::CRCDIR16;
template <uint32_t base, peripheral per>
typename crca_t<base, per>::CRCDIR8_ crca_t<base, per>::CRCDIR8;
template <uint32_t base, peripheral per>
typename crca_t<base, per>::CRCDOR32_ crca_t<base, per>::CRCDOR32;
template <uint32_t base, peripheral per>
typename crca_t<base, per>::CRCDOR16_ crca_t<base, per>::CRCDOR16;
template <uint32_t base, peripheral per>
typename crca_t<base, per>::CRCDOR8_ crca_t<base, per>::CRCDOR8;
typedef crca_t<0x00088280, peripheral::CRC> CRCA;
}
| 33.365591 | 75 | 0.514663 | hirakuni45 |
384156e73e2b6b3d85cdb4a2645adbc76e1f0504 | 1,550 | cpp | C++ | Ch05_Sort/215_Kth_Largest_Element_In_An_Array.cpp | Frodocz/LeetCode101 | 2dfa3c2749e59d44df892300a720fbe070625351 | [
"MIT"
] | null | null | null | Ch05_Sort/215_Kth_Largest_Element_In_An_Array.cpp | Frodocz/LeetCode101 | 2dfa3c2749e59d44df892300a720fbe070625351 | [
"MIT"
] | null | null | null | Ch05_Sort/215_Kth_Largest_Element_In_An_Array.cpp | Frodocz/LeetCode101 | 2dfa3c2749e59d44df892300a720fbe070625351 | [
"MIT"
] | null | null | null | /**
* 5.2 Quick Selection
* 215. Kth Largest Element in an Array(Medium)
*
* Given an integer array nums and an integer k, return the kth largest element in the array.
*
* Note that it is the kth largest element in the sorted order, not the kth distinct element.
*
* Input: nums = [3,2,1,5,6,4], k = 2, Output: 5
*
* Input: nums = [3,2,3,1,2,4,5,5,6], k = 4, Output: 4
*
* Input: s = "a", t = "aa", Output: ""
* Explanation: Both 'a's from t must be included in the window.
* Since the largest window of s only has one 'a', return empty string.
*
* Constraints:
* * 1 <= k <= nums.length <= 10^4
* * -10^4 <= nums[i] <= 10^4
*
*/
int findKthLargest(vector<int>& nums, int k) {
sort(nums.rbegin(), nums.rend());
return nums[k - 1];
}
// 主函数
int findKthLargest(vector<int>& nums, int k) {
int l = 0, r = nums.size() - 1, target = nums.size() - k;
while (l < r) {
int mid = quickSelection(nums, l, r);
if (mid == target) {
return nums[mid];
}
if (mid < target) {
l = mid + 1;
} else {
r = mid - 1;
}
}
return nums[l];
}
// 辅函数 - 快速选择
int quickSelection(vector<int>& nums, int l, int r) {
int i = l + 1, j = r;
while (true) {
while (i < r && nums[i] <= nums[l]) {
++i;
}
while (l < j && nums[j] >= nums[l]) {
--j;
}
if (i >= j) {
break;
}
swap(nums[i], nums[j]);
}
swap(nums[l], nums[j]);
return j;
} | 25 | 93 | 0.495484 | Frodocz |
38423a5734fffc41c486656ddc1339db4ba63e9b | 7,827 | hpp | C++ | Source/CCZ4/CCZ4RHS.impl.hpp | hfinkel/GRChombo | f3f0f0dbcd3368f721eef5d5cea7808f2550d5cf | [
"BSD-3-Clause"
] | null | null | null | Source/CCZ4/CCZ4RHS.impl.hpp | hfinkel/GRChombo | f3f0f0dbcd3368f721eef5d5cea7808f2550d5cf | [
"BSD-3-Clause"
] | null | null | null | Source/CCZ4/CCZ4RHS.impl.hpp | hfinkel/GRChombo | f3f0f0dbcd3368f721eef5d5cea7808f2550d5cf | [
"BSD-3-Clause"
] | null | null | null | /* GRChombo
* Copyright 2012 The GRChombo collaboration.
* Please refer to LICENSE in GRChombo's root directory.
*/
#if !defined(CCZ4RHS_HPP_)
#error "This file should only be included through CCZ4RHS.hpp"
#endif
#ifndef CCZ4RHS_IMPL_HPP_
#define CCZ4RHS_IMPL_HPP_
#include "DimensionDefinitions.hpp"
#include "GRInterval.hpp"
#include "VarsTools.hpp"
template <class gauge_t, class deriv_t>
inline CCZ4RHS<gauge_t, deriv_t>::CCZ4RHS(
CCZ4_params_t<typename gauge_t::params_t> a_params, double a_dx,
double a_sigma, int a_formulation, double a_cosmological_constant)
: m_params(a_params), m_gauge(a_params), m_sigma(a_sigma),
m_formulation(a_formulation),
m_cosmological_constant(a_cosmological_constant), m_deriv(a_dx)
{
// A user who wants to use BSSN should also have damping paramters = 0
if (m_formulation == USE_BSSN)
{
if ((m_params.kappa1 != 0.) || (m_params.kappa2 != 0.) ||
(m_params.kappa3 != 0.))
{
MayDay::Error("BSSN formulation is selected - CCZ4 kappa values "
"should be set to zero in params");
}
}
if (m_formulation > USE_BSSN)
MayDay::Error("The requested formulation is not supported");
}
template <class gauge_t, class deriv_t>
template <class data_t>
void CCZ4RHS<gauge_t, deriv_t>::compute(Cell<data_t> current_cell) const
{
const auto vars = current_cell.template load_vars<Vars>();
const auto d1 = m_deriv.template diff1<Vars>(current_cell);
const auto d2 = m_deriv.template diff2<Diff2Vars>(current_cell);
const auto advec =
m_deriv.template advection<Vars>(current_cell, vars.shift);
Vars<data_t> rhs;
rhs_equation(rhs, vars, d1, d2, advec);
m_deriv.add_dissipation(rhs, current_cell, m_sigma);
current_cell.store_vars(rhs); // Write the rhs into the output FArrayBox
}
template <class gauge_t, class deriv_t>
template <class data_t, template <typename> class vars_t,
template <typename> class diff2_vars_t>
void CCZ4RHS<gauge_t, deriv_t>::rhs_equation(
vars_t<data_t> &rhs, const vars_t<data_t> &vars,
const vars_t<Tensor<1, data_t>> &d1,
const diff2_vars_t<Tensor<2, data_t>> &d2,
const vars_t<data_t> &advec) const
{
using namespace TensorAlgebra;
auto h_UU = compute_inverse_sym(vars.h);
auto chris = compute_christoffel(d1.h, h_UU);
Tensor<1, data_t> Z_over_chi;
Tensor<1, data_t> Z;
if (m_formulation == USE_BSSN)
{
FOR1(i) Z_over_chi[i] = 0.0;
}
else
{
FOR1(i) Z_over_chi[i] = 0.5 * (vars.Gamma[i] - chris.contracted[i]);
}
FOR1(i) Z[i] = vars.chi * Z_over_chi[i];
auto ricci =
CCZ4Geometry::compute_ricci_Z(vars, d1, d2, h_UU, chris, Z_over_chi);
data_t divshift = compute_trace(d1.shift);
data_t Z_dot_d1lapse = compute_dot_product(Z, d1.lapse);
data_t dlapse_dot_dchi = compute_dot_product(d1.lapse, d1.chi, h_UU);
Tensor<2, data_t> covdtilde2lapse;
Tensor<2, data_t> covd2lapse;
FOR2(k, l)
{
covdtilde2lapse[k][l] = d2.lapse[k][l];
FOR1(m) { covdtilde2lapse[k][l] -= chris.ULL[m][k][l] * d1.lapse[m]; }
covd2lapse[k][l] =
vars.chi * covdtilde2lapse[k][l] +
0.5 * (d1.lapse[k] * d1.chi[l] + d1.chi[k] * d1.lapse[l] -
vars.h[k][l] * dlapse_dot_dchi);
}
data_t tr_covd2lapse = -(GR_SPACEDIM / 2.0) * dlapse_dot_dchi;
FOR1(i)
{
tr_covd2lapse -= vars.chi * chris.contracted[i] * d1.lapse[i];
FOR1(j)
{
tr_covd2lapse += h_UU[i][j] * (vars.chi * d2.lapse[i][j] +
d1.lapse[i] * d1.chi[j]);
}
}
Tensor<2, data_t> A_UU = raise_all(vars.A, h_UU);
// A^{ij} A_{ij}. - Note the abuse of the compute trace function.
data_t tr_A2 = compute_trace(vars.A, A_UU);
rhs.chi = advec.chi +
(2.0 / GR_SPACEDIM) * vars.chi * (vars.lapse * vars.K - divshift);
FOR2(i, j)
{
rhs.h[i][j] = advec.h[i][j] - 2.0 * vars.lapse * vars.A[i][j] -
(2.0 / GR_SPACEDIM) * vars.h[i][j] * divshift;
FOR1(k)
{
rhs.h[i][j] +=
vars.h[k][i] * d1.shift[k][j] + vars.h[k][j] * d1.shift[k][i];
}
}
Tensor<2, data_t> Adot_TF;
FOR2(i, j)
{
Adot_TF[i][j] =
-covd2lapse[i][j] + vars.chi * vars.lapse * ricci.LL[i][j];
}
make_trace_free(Adot_TF, vars.h, h_UU);
FOR2(i, j)
{
rhs.A[i][j] = advec.A[i][j] + Adot_TF[i][j] +
vars.A[i][j] * (vars.lapse * (vars.K - 2 * vars.Theta) -
(2.0 / GR_SPACEDIM) * divshift);
FOR1(k)
{
rhs.A[i][j] +=
vars.A[k][i] * d1.shift[k][j] + vars.A[k][j] * d1.shift[k][i];
FOR1(l)
{
rhs.A[i][j] -=
2 * vars.lapse * h_UU[k][l] * vars.A[i][k] * vars.A[l][j];
}
}
}
data_t kappa1_times_lapse;
if (m_params.covariantZ4)
kappa1_times_lapse = m_params.kappa1;
else
kappa1_times_lapse = m_params.kappa1 * vars.lapse;
if (m_formulation == USE_BSSN)
{
rhs.Theta = 0; // ensure the Theta of CCZ4 remains at zero
// Use hamiltonian constraint to remove ricci.scalar for BSSN update
rhs.K = advec.K + vars.lapse * (tr_A2 + vars.K * vars.K / GR_SPACEDIM) -
tr_covd2lapse;
rhs.K += -2 * vars.lapse * m_cosmological_constant / (GR_SPACEDIM - 1.);
}
else
{
rhs.Theta =
advec.Theta +
0.5 * vars.lapse *
(ricci.scalar - tr_A2 +
((GR_SPACEDIM - 1.0) / (double)GR_SPACEDIM) * vars.K * vars.K -
2 * vars.Theta * vars.K) -
0.5 * vars.Theta * kappa1_times_lapse *
((GR_SPACEDIM + 1) + m_params.kappa2 * (GR_SPACEDIM - 1)) -
Z_dot_d1lapse;
rhs.Theta += -vars.lapse * m_cosmological_constant;
rhs.K =
advec.K +
vars.lapse * (ricci.scalar + vars.K * (vars.K - 2 * vars.Theta)) -
kappa1_times_lapse * GR_SPACEDIM * (1 + m_params.kappa2) *
vars.Theta -
tr_covd2lapse;
rhs.K += -2 * vars.lapse * GR_SPACEDIM / (GR_SPACEDIM - 1.) *
m_cosmological_constant;
}
Tensor<1, data_t> Gammadot;
FOR1(i)
{
Gammadot[i] = (2.0 / GR_SPACEDIM) *
(divshift * (chris.contracted[i] +
2 * m_params.kappa3 * Z_over_chi[i]) -
2 * vars.lapse * vars.K * Z_over_chi[i]) -
2 * kappa1_times_lapse * Z_over_chi[i];
FOR1(j)
{
Gammadot[i] +=
2 * h_UU[i][j] *
(vars.lapse * d1.Theta[j] - vars.Theta * d1.lapse[j]) -
2 * A_UU[i][j] * d1.lapse[j] -
vars.lapse * ((2 * (GR_SPACEDIM - 1.0) / (double)GR_SPACEDIM) *
h_UU[i][j] * d1.K[j] +
GR_SPACEDIM * A_UU[i][j] * d1.chi[j] / vars.chi) -
(chris.contracted[j] + 2 * m_params.kappa3 * Z_over_chi[j]) *
d1.shift[i][j];
FOR1(k)
{
Gammadot[i] +=
2 * vars.lapse * chris.ULL[i][j][k] * A_UU[j][k] +
h_UU[j][k] * d2.shift[i][j][k] +
((GR_SPACEDIM - 2.0) / (double)GR_SPACEDIM) * h_UU[i][j] *
d2.shift[k][j][k];
}
}
}
FOR1(i) { rhs.Gamma[i] = advec.Gamma[i] + Gammadot[i]; }
m_gauge.rhs_gauge(rhs, vars, d1, d2, advec);
}
#endif /* CCZ4RHS_IMPL_HPP_ */
| 34.030435 | 80 | 0.54082 | hfinkel |
3845043e7ea7fe041a3f285d61eed2c25469e5bd | 782 | cpp | C++ | code/c++.cpp | zrz1996/ACM-Template | 5bd2999480275ad7e1cffc7c1f2c85fa727f0620 | [
"MIT"
] | 1 | 2017-05-22T02:51:30.000Z | 2017-05-22T02:51:30.000Z | code/c++.cpp | zrz1996/ACM-Template | 5bd2999480275ad7e1cffc7c1f2c85fa727f0620 | [
"MIT"
] | null | null | null | code/c++.cpp | zrz1996/ACM-Template | 5bd2999480275ad7e1cffc7c1f2c85fa727f0620 | [
"MIT"
] | null | null | null | C(n,m)奇偶 如果(n & m) == m,那么为奇数,否则为偶数
欧拉线上的四点中,九点圆圆心到垂心和外心的距离相等,而且重心到外心的距离是重心到垂心距离的一半。
定比分点:P, O, M, PM/MO = t; M = (P + t*O) / (1+t)
求因子和
\sum_{t_1=1}^{n_1} \sum_{t_2=1}^{n_2} \cdots \sum_{t_k=1}^{n_k} d(t_1 t_2 \cdots t_k) = \sum_{\substack{1 \leq t_i \leq n_i \ \textbf{for} \ 1 \leq i \leq k \\ (t_i,t_j)=1 \ \textbf{for} \ 1 \leq i < j \leq k}}[\frac{n_1}{t_1}][\frac{n_2}{t_2}]\cdots [\frac{n_k}{t_k}]
.vimrc
set smartindent
set cindent
set number
set st=4
set ts=4
set sw=4
map <F9> :w<cr>:!g++ % -o %< -g -Wall<cr>
map <C-F9> :!time ./%<<cr>
map <F4> :w<cr>:!gedit %<cr>
set smarttab
set nowrap
#include <iomanip>
cout <<setprecision()
char buf[];
string x = buf;
bool strcmp(buf,"")
vector<> v;
sort(v.begin(), v.end(), cmp);
priority_queue<int, vector<int>, cmp> P;
| 25.225806 | 268 | 0.611253 | zrz1996 |
3845c5d9039d58e1bb2995ba5d29922cb8e09ff1 | 1,109 | hpp | C++ | cpp/include/gecko/node.hpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | 2 | 2020-03-11T03:53:19.000Z | 2020-10-06T03:18:32.000Z | cpp/include/gecko/node.hpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | null | null | null | cpp/include/gecko/node.hpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | null | null | null | /**************************************************\
* The MIT License (MIT)
* Copyright (c) 2014 Kevin Walchko
* see LICENSE for full details
\**************************************************/
#pragma once
#include <thread>
// #include <mutex>
#include <string>
// #include <sys/types.h> // pid (type int)
// #include <unistd.h> // getpid
#include <gecko/signals.hpp> // SigCapture
// #include "transport.hpp" // pub/sub
// #include "network.hpp" // hostinfo
// #include "helpers.hpp" // zmqtTCP
// #include "ascii.hpp"
// #include "msocket.hpp"
// #include "time.hpp"
// class Process {
// public:
// Process(): sid(0) {}
// void go_daemon();
// void savepid(const std::string& fname);
// pid_t sid;
// };
// thread class member
// https://rafalcieslak.wordpress.com/2014/05/16/c11-
// stdthreads-managed-by-a-designated-class/
class Node: public SigCapture {
public:
~Node();
void run(void(*f)(void*), void* p=nullptr);
std::thread::id getId();
static void wait();
static void wait(uint16_t sec);
protected:
std::thread the_thread;
};
| 24.644444 | 53 | 0.568079 | MomsFriendlyRobotCompany |
38472c1cdb73cc6fe2bbfd471f11a69feb1d967b | 675 | cpp | C++ | semana-i/D5/A.cpp | moyfdzz/competitive-programming | 80861763921e171d1ee557e739bbaf756605798d | [
"MIT"
] | 1 | 2019-11-05T17:02:07.000Z | 2019-11-05T17:02:07.000Z | semana-i/D5/A.cpp | moyfdzz/competitive-programming | 80861763921e171d1ee557e739bbaf756605798d | [
"MIT"
] | null | null | null | semana-i/D5/A.cpp | moyfdzz/competitive-programming | 80861763921e171d1ee557e739bbaf756605798d | [
"MIT"
] | null | null | null | #include <iostream>
#include <unordered_set>
using namespace std;
int l, r, ans = -1;
unordered_set<int> numbers;
bool checkIfAllUnique(int n) {
int unique = true;
while (n / 10 > 0) {
if (numbers.count(n % 10)) {
unique = false;
}
else {
numbers.insert(n % 10);
}
n /= 10;
}
if (numbers.count(n % 10)) {
unique = false;
}
numbers.clear();
return unique;
}
int main () {
cin >> l >> r;
for (int i = l; i <= r; i++) {
if (checkIfAllUnique(i)) {
ans = i;
break;
}
}
cout << ans << endl;
return 0;
} | 15.340909 | 36 | 0.447407 | moyfdzz |
384d8d3c7d44bba5453d7eb64e8bfad9455cde5c | 3,206 | hpp | C++ | stan/math/prim/fun/exp.hpp | detcitty/math | fe99d5f31171edb24bc841a9fa2f082982771d35 | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/fun/exp.hpp | detcitty/math | fe99d5f31171edb24bc841a9fa2f082982771d35 | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/fun/exp.hpp | detcitty/math | fe99d5f31171edb24bc841a9fa2f082982771d35 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_FUN_EXP_HPP
#define STAN_MATH_PRIM_FUN_EXP_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/functor/apply_scalar_unary.hpp>
#include <stan/math/prim/functor/apply_vector_unary.hpp>
#include <cmath>
#include <complex>
#include <limits>
namespace stan {
namespace math {
/**
* Structure to wrap `exp()` so that it can be
* vectorized.
*/
struct exp_fun {
/**
* Return the exponential of the specified scalar argument.
*
* @tparam T type of argument
* @param[in] x argument
* @return Exponential of argument.
*/
template <typename T>
static inline T fun(const T& x) {
using std::exp;
return exp(x);
}
};
/**
* Return the elementwise `exp()` of the specified argument,
* which may be a scalar or any Stan container of numeric scalars.
* The return type is the same as the argument type.
*
* @tparam Container type of container
* @param[in] x container
* @return Elementwise application of exponentiation to the argument.
*/
template <
typename Container,
require_not_container_st<std::is_arithmetic, Container>* = nullptr,
require_not_nonscalar_prim_or_rev_kernel_expression_t<Container>* = nullptr,
require_not_var_matrix_t<Container>* = nullptr>
inline auto exp(const Container& x) {
return apply_scalar_unary<exp_fun, Container>::apply(x);
}
/**
* Version of `exp()` that accepts std::vectors, Eigen Matrix/Array objects
* or expressions, and containers of these.
*
* @tparam Container Type of x
* @param x Container
* @return Elementwise application of exponentiation to the argument.
*/
template <typename Container,
require_container_st<std::is_arithmetic, Container>* = nullptr>
inline auto exp(const Container& x) {
return apply_vector_unary<Container>::apply(
x, [](const auto& v) { return v.array().exp(); });
}
namespace internal {
/**
* Return the natural (base e) complex exponentiation of the specified
* complex argument.
*
* @tparam V value type (must be Stan autodiff type)
* @param z complex number
* @return natural exponentiation of specified complex number
* @see documentation for `std::complex` for boundary condition and
* branch cut details
*/
template <typename V>
inline std::complex<V> complex_exp(const std::complex<V>& z) {
if (is_inf(z.real()) && z.real() > 0) {
if (is_nan(z.imag()) || z.imag() == 0) {
// (+inf, nan), (+inf, 0)
return z;
} else if (is_inf(z.imag()) && z.imag() > 0) {
// (+inf, +inf)
return {z.real(), std::numeric_limits<double>::quiet_NaN()};
} else if (is_inf(z.imag()) && z.imag() < 0) {
// (+inf, -inf)
return {std::numeric_limits<double>::quiet_NaN(),
std::numeric_limits<double>::quiet_NaN()};
}
}
if (is_inf(z.real()) && z.real() < 0
&& (is_nan(z.imag()) || is_inf(z.imag()))) {
// (-inf, nan), (-inf, -inf), (-inf, inf)
return {0, 0};
}
if (is_nan(z.real()) && z.imag() == -0.0) {
// (nan, -0)
return z;
}
V exp_re = exp(z.real());
return {exp_re * cos(z.imag()), exp_re * sin(z.imag())};
}
} // namespace internal
} // namespace math
} // namespace stan
#endif
| 29.412844 | 80 | 0.657517 | detcitty |
384eb3c472d9864c226eb226b654839263c7abef | 1,660 | cpp | C++ | academic/Advanced Technical Programming/Source Code/HW2/HW2-6.cpp | zzApotheosis/Personal-Projects | 1b6144079430d623501dacd7d11d4a28f3e3f343 | [
"Apache-2.0"
] | 3 | 2020-08-30T23:14:22.000Z | 2020-11-16T05:10:04.000Z | academic/Advanced Technical Programming/Source Code/HW2/HW2-6.cpp | zzApotheosis/Personal-Projects | 1b6144079430d623501dacd7d11d4a28f3e3f343 | [
"Apache-2.0"
] | 3 | 2021-08-23T04:31:18.000Z | 2021-08-24T03:38:41.000Z | academic/Advanced Technical Programming/Source Code/HW2/HW2-6.cpp | zzApotheosis/Personal-Projects | 1b6144079430d623501dacd7d11d4a28f3e3f343 | [
"Apache-2.0"
] | null | null | null | // Created by Steven Jennings
// Date: 16 June 2016
//
// Write a program that fills an array with random integers and then
// find the position of the smallest element in the array.
// It should also print the value of the smallest number.
//
// Assuming only positive integers.
//
// Also, I contacted JetBrains and they told me they offer all of their IDEs free of charge for students.
// So as a result, this is the first C++ program I've written on JetBrains' CLion IDE. Good stuff.
// Although it did take a little bit of hassle to set up Cygwin for the compiler.
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
#include "limits.h"
void findSmallest(int a[], int size);
int main() {
printf("This program fills an array with random [positive] integers and then\n");
printf("finds the index of the smallest element in the array.\n");
printf("Then it outputs the smallest integer in the array.\n\n");
int arraySize;
srand (time(NULL));
printf("Enter the size of your array.\n");
scanf("%d", &arraySize);
int array[arraySize];
for (int i = 0; i < arraySize; ++i) {
array[i] = rand();
printf("Array Index: %d --- Index Value: %d\n", i, array[i]);
}
printf("\n");
findSmallest(array, arraySize);
getchar();
getchar();
}
void findSmallest(int a[], int size) {
int smallestIndex;
int smallestValue = INT_MAX;
for (int i = 0; i < size; ++i) {
if (a[i] < smallestValue) {
smallestValue = a[i];
smallestIndex = i;
}
}
printf("The smallest value in the array is %d at Index %d.\n", smallestValue, smallestIndex);
} | 29.122807 | 105 | 0.642771 | zzApotheosis |
3853db83326e61731bef128a87042e71cfdfee7b | 442 | cc | C++ | tests/fuzzer/flexbuffers_verifier_fuzzer.cc | Apotell/flatbuffers | b92bb0584d056cd237fa7059702e49617ee156b7 | [
"Apache-2.0"
] | null | null | null | tests/fuzzer/flexbuffers_verifier_fuzzer.cc | Apotell/flatbuffers | b92bb0584d056cd237fa7059702e49617ee156b7 | [
"Apache-2.0"
] | null | null | null | tests/fuzzer/flexbuffers_verifier_fuzzer.cc | Apotell/flatbuffers | b92bb0584d056cd237fa7059702e49617ee156b7 | [
"Apache-2.0"
] | null | null | null | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <stdint.h>
#include <string>
#include "flatbuffers/flexbuffers.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
std::vector<bool> reuse_tracker;
flexbuffers::VerifyBuffer(data, size, &reuse_tracker);
return 0;
}
| 29.466667 | 73 | 0.748869 | Apotell |
3854a9198c4cbaa63b78c894a6463a96241d0242 | 7,426 | hh | C++ | src/systemc/ext/dt/int/sc_nbdefs.hh | mandaltj/gem5_chips | b9c0c602241ffda7851c1afb32fa01f295bb98fd | [
"BSD-3-Clause"
] | 135 | 2016-10-21T03:31:49.000Z | 2022-03-25T01:22:20.000Z | src/systemc/ext/dt/int/sc_nbdefs.hh | mandaltj/gem5_chips | b9c0c602241ffda7851c1afb32fa01f295bb98fd | [
"BSD-3-Clause"
] | 35 | 2017-03-10T17:57:46.000Z | 2022-02-18T17:34:16.000Z | src/systemc/ext/dt/int/sc_nbdefs.hh | mandaltj/gem5_chips | b9c0c602241ffda7851c1afb32fa01f295bb98fd | [
"BSD-3-Clause"
] | 48 | 2016-12-08T12:03:13.000Z | 2022-02-16T09:16:13.000Z | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with the
License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License.
*****************************************************************************/
/*****************************************************************************
sc_nbdefs.h -- Top level header file for arbitrary precision signed/unsigned
arithmetic. This file defines all the constants needed.
Original Author: Ali Dasdan, Synopsys, Inc.
*****************************************************************************/
/*****************************************************************************
MODIFICATION LOG - modifiers, enter your name, affiliation, date and
changes you are making here.
Name, Affiliation, Date: Torsten Maehne, Berner Fachhochschule,
2016-09-24
Description of Modification: Move constant definitions to the header so that
that their value is known at compile time.
*****************************************************************************/
// $Log: sc_nbdefs.h,v $
// Revision 1.7 2011/02/18 20:19:15 acg
// Andy Goodrich: updating Copyright notice.
//
// Revision 1.6 2011/02/18 20:09:34 acg
// Philipp A. Hartmann: added alternative #define for Windows to guard.
//
// Revision 1.5 2011/01/20 16:52:20 acg
// Andy Goodrich: changes for IEEE 1666 2011.
//
// Revision 1.4 2010/02/08 18:35:55 acg
// Andy Goodrich: Philipp Hartmann's changes for Solaris and Linux 64.
//
// Revision 1.2 2009/05/22 16:06:29 acg
// Andy Goodrich: process control updates.
//
// Revision 1.1.1.1 2006/12/15 20:20:05 acg
// SystemC 2.3
//
// Revision 1.3 2006/01/13 18:49:32 acg
// Added $Log command so that CVS check in comments are reproduced in the
// source.
//
#ifndef __SYSTEMC_EXT_DT_INT_SC_NBDEFS_HH__
#define __SYSTEMC_EXT_DT_INT_SC_NBDEFS_HH__
#include <stdint.h>
#include <climits>
namespace sc_dt
{
// ----------------------------------------------------------------------------
// ENUM : sc_numrep
//
// Enumeration of number representations for character string conversion.
// ----------------------------------------------------------------------------
enum sc_numrep
{
SC_NOBASE = 0,
SC_BIN = 2,
SC_OCT = 8,
SC_DEC = 10,
SC_HEX = 16,
SC_BIN_US,
SC_BIN_SM,
SC_OCT_US,
SC_OCT_SM,
SC_HEX_US,
SC_HEX_SM,
SC_CSD
};
// Sign of a number:
#define SC_NEG -1 // Negative number
#define SC_ZERO 0 // Zero
#define SC_POS 1 // Positive number
#define SC_NOSIGN 2 // Uninitialized sc_signed number
typedef unsigned char uchar;
// A small_type number is at least a char. Defining an int is probably
// better for alignment.
typedef int small_type;
// Attributes of a byte.
#define BITS_PER_BYTE 8
#define BYTE_RADIX 256
#define BYTE_MASK 255
// LOG2_BITS_PER_BYTE = log2(BITS_PER_BYTE), assuming that
// BITS_PER_BYTE is a power of 2.
#define LOG2_BITS_PER_BYTE 3
// Attributes of the unsigned long. These definitions are used mainly in
// the functions that are aware of the internal representation of
// digits, e.g., get/set_packed_rep().
#define BYTES_PER_DIGIT_TYPE 4
#define BITS_PER_DIGIT_TYPE 32
// Attributes of a digit, i.e., unsigned long less the overflow bits.
#define BYTES_PER_DIGIT 4
#define BITS_PER_DIGIT 30
#define DIGIT_RADIX (1ul << BITS_PER_DIGIT)
#define DIGIT_MASK (DIGIT_RADIX - 1)
// Make sure that BYTES_PER_DIGIT = ceil(BITS_PER_DIGIT / BITS_PER_BYTE).
// Similar attributes for the half of a digit. Note that
// HALF_DIGIT_RADIX is equal to the square root of DIGIT_RADIX. These
// definitions are used mainly in the multiplication routines.
#define BITS_PER_HALF_DIGIT (BITS_PER_DIGIT / 2)
#define HALF_DIGIT_RADIX (1ul << BITS_PER_HALF_DIGIT)
#define HALF_DIGIT_MASK (HALF_DIGIT_RADIX - 1)
// DIV_CEIL2(x, y) = ceil(x / y). x and y are positive numbers.
#define DIV_CEIL2(x, y) (((x) - 1) / (y) + 1)
// DIV_CEIL(x) = ceil(x / BITS_PER_DIGIT) = the number of digits to
// store x bits. x is a positive number.
#define DIV_CEIL(x) DIV_CEIL2(x, BITS_PER_DIGIT)
#ifdef SC_MAX_NBITS
static const int MAX_NDIGITS = DIV_CEIL(SC_MAX_NBITS) + 2;
// Consider a number with x bits another with y bits. The maximum
// number of bits happens when we multiply them. The result will have
// (x + y) bits. Assume that x + y <= SC_MAX_NBITS. Then, DIV_CEIL(x) +
// DIV_CEIL(y) <= DIV_CEIL(SC_MAX_NBITS) + 2. This is the reason for +2
// above. With this change, MAX_NDIGITS must be enough to hold the
// result of any operation.
#endif
// Support for "digit" vectors used to hold the values of sc_signed,
// sc_unsigned, sc_bv_base, and sc_lv_base data types. This type is also used
// in the concatenation support. An sc_digit is currently an unsigned 32-bit
// quantity. The typedef used is an unsigned int, rather than an unsigned long,
// since the unsigned long data type varies in size between 32-bit and 64-bit
// machines.
typedef unsigned int sc_digit; // 32-bit unsigned integer
// Support for the long long type. This type is not in the standard
// but is usually supported by compilers.
#if defined(__x86_64__) || defined(__aarch64__)
typedef long long int64;
typedef unsigned long long uint64;
#else
typedef int64_t int64;
typedef uint64_t uint64;
#endif
static const uint64 UINT64_ZERO = 0ULL;
static const uint64 UINT64_ONE = 1ULL;
static const uint64 UINT64_32ONES = 0x00000000ffffffffULL;
// Bits per ...
// will be deleted in the future. Use numeric_limits instead
#define BITS_PER_CHAR 8
#define BITS_PER_INT (sizeof(int) * BITS_PER_CHAR)
#define BITS_PER_LONG (sizeof(long) * BITS_PER_CHAR)
#define BITS_PER_INT64 (sizeof(::sc_dt::int64) * BITS_PER_CHAR)
#define BITS_PER_UINT (sizeof(unsigned int) * BITS_PER_CHAR)
#define BITS_PER_ULONG (sizeof(unsigned long) * BITS_PER_CHAR)
#define BITS_PER_UINT64 (sizeof(::sc_dt::uint64) * BITS_PER_CHAR)
// Digits per ...
#define DIGITS_PER_CHAR 1
#define DIGITS_PER_INT ((BITS_PER_INT + 29) / 30)
#define DIGITS_PER_LONG ((BITS_PER_LONG + 29) / 30)
#define DIGITS_PER_INT64 ((BITS_PER_INT64 + 29) / 30)
#define DIGITS_PER_UINT ((BITS_PER_UINT + 29) / 30)
#define DIGITS_PER_ULONG ((BITS_PER_ULONG + 29) / 30)
#define DIGITS_PER_UINT64 ((BITS_PER_UINT64 + 29) / 30)
// Above, BITS_PER_X is mainly used for sc_signed, and BITS_PER_UX is
// mainly used for sc_unsigned.
static const small_type NB_DEFAULT_BASE = SC_DEC;
// For sc_int code:
typedef int64 int_type;
typedef uint64 uint_type;
#define SC_INTWIDTH 64
static const uint64 UINT_ZERO = UINT64_ZERO;
static const uint64 UINT_ONE = UINT64_ONE;
} // namespace sc_dt
#endif // __SYSTEMC_EXT_DT_INT_SC_NBDEFS_HH__
| 34.539535 | 79 | 0.676677 | mandaltj |
3856fef9c4accc0591b791dca122fb6b163ac890 | 10,647 | cpp | C++ | argCheck/argCheck.cpp | ambiesoft/argCheck | 7726c13491dce8ad440690169eb8aa99a08d8486 | [
"BSD-2-Clause"
] | null | null | null | argCheck/argCheck.cpp | ambiesoft/argCheck | 7726c13491dce8ad440690169eb8aa99a08d8486 | [
"BSD-2-Clause"
] | null | null | null | argCheck/argCheck.cpp | ambiesoft/argCheck | 7726c13491dce8ad440690169eb8aa99a08d8486 | [
"BSD-2-Clause"
] | null | null | null | //BSD 2-Clause License
//
//Copyright (c) 2017, Ambiesoft
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
//
//* Redistributions of source code must retain the above copyright notice, this
// list of conditions and the following disclaimer.
//
//* Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
//THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
//DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
//FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
//DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
//SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
//CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
//OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
//OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "stdafx.h"
#include "../../lsMisc/CommandLineString.h"
#include "../../lsMisc/HighDPI.h"
#include "../../lsMisc/OpenCommon.h"
#include "../../lsMisc/EnableTextTripleClickSelectAll.h"
#include "../../lsMisc/I18N.h"
#include "../../lsMisc/GetVersionString.h"
#include "argCheck.h"
using namespace std;
using namespace Ambiesoft;
using namespace Ambiesoft::stdosd;
#define MAX_LOADSTRING 100
#define APPNAME L"argCheck"
#define KAIGYO L"\r\n"
#define HORIZLINE L"----------------------------------"
HINSTANCE ghInst;
WCHAR szTitle[MAX_LOADSTRING];
WCHAR szWindowClass[MAX_LOADSTRING];
wstring gIni;
struct MainDialogData {
wstring title_;
wstring message_;
wstring commnadline_;
bool again_;
bool bWW_;
};
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
switch (message)
{
case WM_INITDIALOG:
{
wstring version = GetVersionString(stdGetModuleFileName().c_str(), 3);
SetDlgItemText(hDlg, IDC_STATIC_TITLEANDVERSION,
stdFormat(L"%s v%s", APPNAME, version.c_str()).c_str());
return (INT_PTR)TRUE;
}
break;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return (INT_PTR)TRUE;
}
else if (LOWORD(wParam) == IDC_BUTTON_GOTOWEB)
{
OpenCommon(hDlg, L"https://ambiesoft.github.io/webjumper/?target=argCheck");
}
break;
}
return (INT_PTR)FALSE;
}
wstring ParseCommandLine(LPCWSTR pCommnadLine = nullptr)
{
bool bUserInput = pCommnadLine != nullptr;
if (!pCommnadLine)
{
pCommnadLine = GetCommandLine();
}
wstring message;
message += I18N(L"Current Directory");
message += L":";
message += KAIGYO;
message += stdGetCurrentDirectory();
message += KAIGYO;
message += KAIGYO;
message += I18N(L"Command Line");
message += L":";
message += KAIGYO;
message += pCommnadLine;
message += KAIGYO;
message += KAIGYO;
message += I18N(L"Length");
message += L":";
message += KAIGYO;
message += std::to_wstring(lstrlen(pCommnadLine));
message += KAIGYO;
message += KAIGYO;
// CRT
if (bUserInput)
{
message += L"CRT is not available.";
message += KAIGYO;
message += HORIZLINE;
message += KAIGYO;
message += KAIGYO;
}
else
{
message += L"CRT";
message += KAIGYO;
message += HORIZLINE;
message += KAIGYO;
{
message += I18N(L"CRT argc");
message += L":";
message += KAIGYO;
message += to_wstring(__argc);
message += KAIGYO;
message += KAIGYO;
for (int i = 0; i < __argc; ++i)
{
message += I18N(L"CRT Argument");
message += L" ";
message += to_wstring(i);
message += L":";
message += KAIGYO;
message += __wargv[i];
message += KAIGYO;
message += KAIGYO;
}
}
}
// CommandLineToArgvW
message += L"CommandLineToArgvW";
message += KAIGYO;
message += HORIZLINE;
message += KAIGYO;
{
int nNumArgs = 0;
LPWSTR* pArgv = CommandLineToArgvW(pCommnadLine, &nNumArgs);
message += I18N(L"Shell argc");
message += L":";
message += KAIGYO;
message += to_wstring(nNumArgs);
message += KAIGYO;
message += KAIGYO;
for (int i = 0; i < nNumArgs; ++i)
{
message += I18N(L"Shell Argument");
message += L" ";
message += to_wstring(i);
message += L":";
message += KAIGYO;
message += pArgv[i];
message += KAIGYO;
message += KAIGYO;
}
LocalFree(pArgv);
}
// CCommandLineString
message += L"CCommandLineString";
message += KAIGYO;
message += HORIZLINE;
message += KAIGYO;
{
int nNumArgs = 0;
LPWSTR* pArgv = CCommandLineString::getCommandLineArg(pCommnadLine, &nNumArgs);
message += I18N(L"CCommandLineString argc");
message += L":";
message += KAIGYO;
message += to_wstring(nNumArgs);
message += KAIGYO;
message += KAIGYO;
for (int i = 0; i < nNumArgs; ++i)
{
message += I18N(L"CCommandLineString Argument");
message += L" ";
message += to_wstring(i);
message += L":";
message += KAIGYO;
message += pArgv[i];
message += KAIGYO;
message += KAIGYO;
}
CCommandLineString::freeCommandLineArg(pArgv);
}
return message;
}
//// http://rarara.cafe.coocan.jp/cgi-bin/lng/vc/vclng.cgi?print+200807/08070047.txt
//BOOL GetRightTurn(HWND hEdit)
//{
// LONG lStyle = GetWindowLong(hEdit, GWL_STYLE);
//
// return (lStyle & ES_AUTOHSCROLL) ? FALSE : TRUE;
//}
//BOOL SetRightTurn(HWND hEdit, BOOL bRightTurn)
//{
// BOOL bRight = GetRightTurn(hEdit);
// LONG lStyle = GetWindowLong(hEdit, GWL_STYLE);
//
// if (bRightTurn){
// lStyle &= ~(WS_HSCROLL | ES_AUTOHSCROLL);
// }
// else{
// lStyle |= (WS_HSCROLL | ES_AUTOHSCROLL);
// }
// SetWindowLong(hEdit, GWL_STYLE, lStyle);
// SetWindowPos(hEdit, NULL, 0, 0, 0, 0,
// (SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED));
// return bRight;
//}
void setWW(HWND hDlg, BOOL bOn)
{
if (bOn)
{
// WW on
ShowWindow(GetDlgItem(hDlg, IDC_EDIT_MAINWW), SW_SHOW);
ShowWindow(GetDlgItem(hDlg, IDC_EDIT_MAIN), SW_HIDE);
}
else
{
ShowWindow(GetDlgItem(hDlg, IDC_EDIT_MAINWW), SW_HIDE);
ShowWindow(GetDlgItem(hDlg, IDC_EDIT_MAIN), SW_SHOW);
}
}
wstring GetDialogText(HWND hDlg, UINT id)
{
int len = GetWindowTextLength(GetDlgItem(hDlg, id));
std::vector<wchar_t> buff(len + 1);
GetDlgItemText(hDlg, id, &buff[0], len + 1);
buff[len] = 0;
return &buff[0];
}
INT_PTR CALLBACK MainDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
static MainDialogData* spData;
switch (uMsg)
{
case WM_INITDIALOG:
{
spData = (MainDialogData*)lParam;
HWND i18nExcepts[] = {
GetDlgItem(hDlg,IDOK),
};
i18nChangeDialogText(hDlg, i18nExcepts, _countof(i18nExcepts));
i18nChangeMenuText(GetMenu(hDlg));
SetWindowText(hDlg, spData->title_.c_str());
SetDlgItemText(hDlg, IDC_EDIT_COMMANDLINE, spData->commnadline_.c_str());
EnableTextTripleClickSelectAll(GetDlgItem(hDlg, IDC_EDIT_COMMANDLINE));
SetDlgItemText(hDlg, IDC_EDIT_MAIN, spData->message_.c_str());
SetDlgItemText(hDlg, IDC_EDIT_MAINWW, spData->message_.c_str());
int intval = GetPrivateProfileInt(L"Option", L"WordWrap", 0, gIni.c_str()) !=0;
setWW(hDlg,intval);
SendDlgItemMessage(hDlg, IDC_CHECK_WORDWRAP, BM_SETCHECK, intval, 0);
HICON hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ARGCHECK));
SendMessage(hDlg, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
CenterWindow(hDlg);
return TRUE;
}
break;
case WM_COMMAND:
{
switch (LOWORD(wParam))
{
case IDOK:
if(GetFocus()==GetDlgItem(hDlg, IDC_EDIT_COMMANDLINE))
{
PostMessage(hDlg, WM_COMMAND, IDC_BUTTON_REPARSE, 0);
break;
}
// through
case IDM_EXIT:
{
LRESULT ww = SendDlgItemMessage(hDlg, IDC_CHECK_WORDWRAP, BM_GETCHECK, 0, 0);
if (!WritePrivateProfileString(L"Option", L"WordWrap", ww ? L"1" : L"0", gIni.c_str()))
{
MessageBox(hDlg, L"Save failed", APPNAME, MB_ICONERROR);
}
EndDialog(hDlg, IDOK);
return 0;
}
break;
case IDCANCEL:
{
EndDialog(hDlg, IDCANCEL);
return 0;
}
break;
case IDC_BUTTON_REPARSE:
{
wstring text = GetDialogText(hDlg, IDC_EDIT_COMMANDLINE);
wstring message = ParseCommandLine(text.c_str());
SetDlgItemText(hDlg, IDC_EDIT_MAIN, message.c_str());
SetDlgItemText(hDlg, IDC_EDIT_MAINWW, message.c_str());
}
break;
case IDC_BUTTON_NEWINSTANCE:
{
wstring exe = stdGetModuleFileName();
wstring text = GetDialogText(hDlg, IDC_EDIT_COMMANDLINE);
OpenCommon(hDlg,
exe.c_str(),
text.c_str());
}
break;
case IDC_CHECK_WORDWRAP:
{
//SetRightTurn(GetDlgItem(hDlg, IDC_EDIT_MAIN),
// 0 != SendDlgItemMessage(hDlg, IDC_CHECK_WORDWRAP, BM_GETCHECK, 0, 0));
setWW(hDlg,0 != SendDlgItemMessage(hDlg, IDC_CHECK_WORDWRAP, BM_GETCHECK, 0, 0));
}
break;
case IDM_ABOUT:
{
DialogBox(ghInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hDlg, About);
}
break;
}
}
break;
}
return FALSE;
}
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
i18nInitLangmap(NULL, NULL, APPNAME);
ghInst = hInstance;
InitHighDPISupport();
gIni = stdCombinePath(stdGetParentDirectory(stdGetModuleFileName()),
stdGetFileNameWitoutExtension(APPNAME) + L".ini");
LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
LoadStringW(hInstance, IDC_ARGCHECK, szWindowClass, MAX_LOADSTRING);
wstring message = ParseCommandLine();
//MessageBox(NULL,
// message.c_str(),
// szTitle,
// MB_ICONINFORMATION);
MainDialogData data;
do
{
data.title_ = szTitle;
data.message_ = message;
data.commnadline_ = GetCommandLine();
data.again_ = false;
if (IDOK != DialogBoxParam(hInstance,
MAKEINTRESOURCE(IDD_DIALOG_MAIN),
NULL,
MainDlgProc,
(LPARAM)&data))
{
return 100;
}
} while (data.again_);
return 0;
}
| 24.645833 | 91 | 0.6646 | ambiesoft |
ee2da4a15c7d17cb69f9740fc5387bbf027943ff | 13,649 | cpp | C++ | code/engine.vc2008/xrGame/ui/UIInventoryUpgradeWnd.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/engine.vc2008/xrGame/ui/UIInventoryUpgradeWnd.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/engine.vc2008/xrGame/ui/UIInventoryUpgradeWnd.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 3 | 2021-11-01T06:21:26.000Z | 2022-01-08T16:13:23.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : UIInventoryUpgradeWnd.cpp
// Created : 06.10.2007
// Modified : 13.03.2009
// Author : Evgeniy Sokolov, Prishchepa Sergey
// Description : inventory upgrade UI window class implementation
////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "object_broker.h"
#include "UIInventoryUpgradeWnd.h"
#include "../xrUICore/xrUIXmlParser.h"
#include "../xrUICore/UIXmlInit.h"
#include "../xrEngine/string_table.h"
#include "../actor.h"
#include "../../xrServerEntities/script_process.h"
#include "../inventory.h"
#include "ai_space.h"
#include "alife_simulator.h"
#include "inventory_upgrade_manager.h"
#include "inventory_upgrade.h"
#include "inventory_upgrade_property.h"
#include "UIInventoryUtilities.h"
#include "UIActorMenu.h"
#include "UIItemInfo.h"
#include "../xrUICore/UIFrameLineWnd.h"
#include "../xrUICore/UI3tButton.h"
#include "../xrUICore/UIHelper.h"
#include "../../xrUICore/ui_defs.h"
#include "../items/Weapon.h"
#include "../items/WeaponRPG7.h"
#include "../items/CustomOutfit.h"
#include "../items/Helmet.h"
// -----
const char* const g_inventory_upgrade_xml = "inventory_upgrade.xml";
CUIInventoryUpgradeWnd::Scheme::Scheme()
{
}
CUIInventoryUpgradeWnd::Scheme::~Scheme()
{
delete_data( cells );
}
// =============================================================================================
CUIInventoryUpgradeWnd::CUIInventoryUpgradeWnd()
{
m_inv_item = NULL;
m_cur_upgrade_id = NULL;
m_current_scheme = NULL;
m_btn_repair = NULL;
}
CUIInventoryUpgradeWnd::~CUIInventoryUpgradeWnd()
{
delete_data( m_schemes );
}
void CUIInventoryUpgradeWnd::Init()
{
CUIXml uiXml;
uiXml.Load( CONFIG_PATH, UI_PATH, g_inventory_upgrade_xml );
CUIXmlInit xml_init;
xml_init.InitWindow( uiXml, "main", 0, this );
m_item = xr_new<CUIStatic>();
m_item->SetAutoDelete( true );
AttachChild( m_item );
xml_init.InitStatic( uiXml, "item_static", 0, m_item );
m_back = xr_new<CUIWindow>();
m_back->SetAutoDelete( true );
xml_init.InitWindow( uiXml, "back", 0, m_back );
AttachChild(m_back);
m_scheme_wnd = xr_new<CUIWindow>();
m_scheme_wnd->SetAutoDelete( true );
AttachChild( m_scheme_wnd );
xml_init.InitWindow( uiXml, "scheme", 0, m_scheme_wnd );
m_btn_repair = UIHelper::Create3tButton( uiXml, "repair_button", this );
LoadCellsBacks( uiXml );
LoadSchemes( uiXml );
}
void CUIInventoryUpgradeWnd::InitInventory( CInventoryItem* item, bool can_upgrade )
{
m_inv_item = item;
bool is_shader = false;
// Загружаем картинку
if (m_item)
{
if (smart_cast<CWeapon*>(item))
{
is_shader = true;
m_item->SetShader(InventoryUtilities::GetWeaponUpgradeIconsShader());
}
else if (smart_cast<CCustomOutfit*>(item) || smart_cast<CHelmet*>(item))
{
is_shader = true;
m_item->SetShader(InventoryUtilities::GetOutfitUpgradeIconsShader());
}
if (is_shader)
{
Irect item_upgrade_grid_rect = item->GetUpgrIconRect();
Frect texture_rect;
texture_rect.lt.set(item_upgrade_grid_rect.x1, item_upgrade_grid_rect.y1);
texture_rect.rb.set(item_upgrade_grid_rect.x2, item_upgrade_grid_rect.y2);
texture_rect.rb.add(texture_rect.lt);
m_item->GetUIStaticItem().SetTextureRect(texture_rect);
m_item->TextureOn();
m_item->SetStretchTexture(true);
Fvector2 v_r = Fvector2().set(item_upgrade_grid_rect.x2, item_upgrade_grid_rect.y2);
if (UI().is_widescreen())
v_r.x *= 0.8f;
m_item->GetUIStaticItem().SetSize(v_r);
m_item->SetWidth(v_r.x);
m_item->SetHeight(v_r.y);
m_item->Show(true);
}
}
else m_item->Show(false);
m_scheme_wnd->DetachAll();
m_scheme_wnd->Show( false );
m_back->DetachAll();
m_back->Show(false);
m_btn_repair->Enable( false );
if ( ai().get_alife() && m_inv_item )
{
if ( install_item( *m_inv_item, can_upgrade ) )
{
UpdateAllUpgrades();
}
}
}
// ------------------------------------------------------------------------------------------
void CUIInventoryUpgradeWnd::Show( bool status )
{
inherited::Show( status );
UpdateAllUpgrades();
}
void CUIInventoryUpgradeWnd::Update()
{
inherited::Update();
}
void CUIInventoryUpgradeWnd::Reset()
{
SCHEMES::iterator ibw = m_schemes.begin();
SCHEMES::iterator iew = m_schemes.end();
for ( ; ibw != iew; ++ibw )
{
UI_Upgrades_type::iterator ib = (*ibw)->cells.begin();
UI_Upgrades_type::iterator ie = (*ibw)->cells.end();
for ( ; ib != ie; ++ib )
{
(*ib)->Reset();
(*ib)->m_point->Reset();
}
}
inherited::Reset();
inherited::ResetAll();
}
void CUIInventoryUpgradeWnd::UpdateAllUpgrades()
{
if ( !m_current_scheme || !m_inv_item )
{
return;
}
UI_Upgrades_type::iterator ib = m_current_scheme->cells.begin();
UI_Upgrades_type::iterator ie = m_current_scheme->cells.end();
for ( ; ib != ie; ++ib )
{
(*ib)->update_item( m_inv_item );
}
}
void CUIInventoryUpgradeWnd::SetCurScheme( const shared_str& id )
{
SCHEMES::iterator ib = m_schemes.begin();
SCHEMES::iterator ie = m_schemes.end();
for ( ; ib != ie; ++ib )
{
if ( (*ib)->name._get() == id._get() )
{
m_current_scheme = (*ib);
return;
}
}
VERIFY_FORMAT(0, "Scheme <%s> does not loaded !", id.c_str());
}
bool CUIInventoryUpgradeWnd::install_item( CInventoryItem& inv_item, bool can_upgrade )
{
m_scheme_wnd->DetachAll();
m_back->DetachAll();
m_btn_repair->Enable( (inv_item.GetCondition() < 0.99f) );
if ( !can_upgrade )
{
#ifdef DEBUG
Msg( "Inventory item <%s> cannot upgrade - Mechanic say.", inv_item.m_section_id.c_str() );
#endif // DEBUG
m_current_scheme = NULL;
return false;
}
LPCSTR scheme_name = get_manager().get_item_scheme( inv_item );
if ( !scheme_name )
{
#ifdef DEBUG
Msg( "Inventory item <%s> does not contain upgrade scheme.", inv_item.m_section_id.c_str() );
#endif // DEBUG
m_current_scheme = NULL;
return false;
}
SetCurScheme( scheme_name );
UI_Upgrades_type::iterator ib = m_current_scheme->cells.begin();
UI_Upgrades_type::iterator ie = m_current_scheme->cells.end();
for ( ; ib != ie; ++ib )
{
UIUpgrade* ui_item = (*ib);
m_scheme_wnd->AttachChild( ui_item );
m_back->AttachChild( ui_item->m_point );
LPCSTR upgrade_name = get_manager().get_upgrade_by_index( inv_item, ui_item->get_scheme_index() );
ui_item->init_upgrade( upgrade_name, inv_item );
Upgrade_type* upgrade_p = get_manager().get_upgrade( upgrade_name );
VERIFY( upgrade_p );
for(u8 i = 0; i < inventory::upgrade::max_properties_count; i++)
{
shared_str prop_name = upgrade_p->get_property_name(i);
if(prop_name.size())
{
Property_type* prop_p = get_manager().get_property( prop_name );
VERIFY( prop_p );
}
}
ui_item->set_texture( UIUpgrade::LAYER_ITEM, upgrade_p->icon_name() );
ui_item->set_texture( UIUpgrade::LAYER_POINT, m_point_textures[UIUpgrade::STATE_ENABLED].c_str() ); //default
ui_item->set_texture( UIUpgrade::LAYER_COLOR, m_cell_textures[UIUpgrade::STATE_ENABLED].c_str() ); //default
}
m_scheme_wnd->Show ( true );
m_item->Show ( true );
m_back->Show ( true );
UpdateAllUpgrades();
return true;
}
UIUpgrade* CUIInventoryUpgradeWnd::FindUIUpgrade( Upgrade_type const* upgr )
{
if ( !m_current_scheme )
{
return NULL;
}
UI_Upgrades_type::iterator ib = m_current_scheme->cells.begin();
UI_Upgrades_type::iterator ie = m_current_scheme->cells.end();
for ( ; ib != ie; ++ib )
{
Upgrade_type* i_upgr = (*ib)->get_upgrade();
if ( upgr == i_upgr )
{
return (*ib);
}
}
return NULL;
}
bool CUIInventoryUpgradeWnd::DBClickOnUIUpgrade( Upgrade_type const* upgr )
{
UpdateAllUpgrades();
UIUpgrade* uiupgr = FindUIUpgrade( upgr );
if ( uiupgr )
{
uiupgr->OnClick();
return true;
}
return false;
}
void CUIInventoryUpgradeWnd::AskUsing( LPCSTR text, LPCSTR upgrade_name )
{
VERIFY( m_inv_item );
VERIFY( upgrade_name );
VERIFY( m_pParentWnd );
UpdateAllUpgrades();
m_cur_upgrade_id = upgrade_name;
CUIActorMenu* parent_wnd = smart_cast<CUIActorMenu*>(m_pParentWnd);
if ( parent_wnd )
{
parent_wnd->CallMessageBoxYesNo( text );
}
}
void CUIInventoryUpgradeWnd::OnMesBoxYes()
{
if ( get_manager().upgrade_install( *m_inv_item, m_cur_upgrade_id, false ) )
{
VERIFY( m_pParentWnd );
CUIActorMenu* parent_wnd = smart_cast<CUIActorMenu*>( m_pParentWnd );
if ( parent_wnd )
{
parent_wnd->UpdateActor();
parent_wnd->SeparateUpgradeItem();
}
}
UpdateAllUpgrades();
}
void CUIInventoryUpgradeWnd::HighlightHierarchy( shared_str const& upgrade_id )
{
UpdateAllUpgrades();
get_manager().highlight_hierarchy( *m_inv_item, upgrade_id );
}
void CUIInventoryUpgradeWnd::ResetHighlight()
{
UpdateAllUpgrades();
get_manager().reset_highlight( *m_inv_item );
}
void CUIInventoryUpgradeWnd::set_info_cur_upgrade( Upgrade_type* upgrade )
{
UIUpgrade* uiu = FindUIUpgrade( upgrade );
if ( uiu )
{
if ( Device.dwTimeGlobal < uiu->FocusReceiveTime())
{
upgrade = NULL; // visible = false
}
}
else
{
upgrade = NULL;
}
CUIActorMenu* parent_wnd = smart_cast<CUIActorMenu*>(m_pParentWnd);
if ( parent_wnd )
{
if ( parent_wnd->SetInfoCurUpgrade( upgrade, m_inv_item ) )
{
UpdateAllUpgrades();
}
}
}
CUIInventoryUpgradeWnd::Manager_type& CUIInventoryUpgradeWnd::get_manager()
{
return ai().alife().inventory_upgrade_manager();
}
void CUIInventoryUpgradeWnd::LoadCellsBacks(CUIXml& uiXml)
{
XML_NODE* stored_root = uiXml.GetLocalRoot();
int cnt = uiXml.GetNodesNum("cell_states", 0, "state");
XML_NODE* node = uiXml.NavigateToNode("cell_states", 0);
uiXml.SetLocalRoot(node);
for (int i_st = 0; i_st < cnt; ++i_st)
{
uiXml.SetLocalRoot(uiXml.NavigateToNode("state", i_st));
LPCSTR type = uiXml.Read("type", 0, "");
LPCSTR txr = uiXml.Read("back_texture", 0, NULL);
LPCSTR txr2 = uiXml.Read("point_texture", 0, NULL);
u32 color = CUIXmlInit::GetColor(uiXml, "item_color", 0, 0);
LoadCellStates(type, txr, txr2, color);
uiXml.SetLocalRoot(node);
}
uiXml.SetLocalRoot(stored_root);
}
void CUIInventoryUpgradeWnd::LoadCellStates(LPCSTR state_str, LPCSTR texture_name, LPCSTR texture_name2, u32 color)
{
VERIFY(state_str && xr_strcmp(state_str, ""));
if (texture_name && !xr_strcmp(texture_name, ""))
{
texture_name = NULL;
}
if (texture_name2 && !xr_strcmp(texture_name2, ""))
{
texture_name2 = NULL;
}
SetCellState(SelectCellState(state_str), texture_name, texture_name2, color);
}
UIUpgrade::ViewState CUIInventoryUpgradeWnd::SelectCellState(LPCSTR state_str)
{
if (!xr_strcmp(state_str, "enabled")) { return UIUpgrade::STATE_ENABLED; }
if (!xr_strcmp(state_str, "highlight")) { return UIUpgrade::STATE_FOCUSED; }
if (!xr_strcmp(state_str, "touched")) { return UIUpgrade::STATE_TOUCHED; }
if (!xr_strcmp(state_str, "selected")) { return UIUpgrade::STATE_SELECTED; }
if (!xr_strcmp(state_str, "unknown")) { return UIUpgrade::STATE_UNKNOWN; }
if (!xr_strcmp(state_str, "disabled_parent")) { return UIUpgrade::STATE_DISABLED_PARENT; }
if (!xr_strcmp(state_str, "disabled_group")) { return UIUpgrade::STATE_DISABLED_GROUP; }
if (!xr_strcmp(state_str, "disabled_money")) { return UIUpgrade::STATE_DISABLED_PREC_MONEY; }
if (!xr_strcmp(state_str, "disabled_quest")) { return UIUpgrade::STATE_DISABLED_PREC_QUEST; }
if (!xr_strcmp(state_str, "disabled_highlight")) { return UIUpgrade::STATE_DISABLED_FOCUSED; }
VERIFY_FORMAT(0, "Such UI upgrade state (%s) does not exist !", state_str);
return UIUpgrade::STATE_UNKNOWN;
}
void CUIInventoryUpgradeWnd::SetCellState(UIUpgrade::ViewState state, LPCSTR texture_name, LPCSTR texture_name2, u32 color)
{
m_cell_textures[state] = texture_name;
m_point_textures[state] = texture_name2;
}
bool CUIInventoryUpgradeWnd::VerirfyCells()
{
for (int i = 0; i < UIUpgrade::STATE_COUNT; ++i)
{
if (!m_cell_textures[i]._get()) return false;
}
return true;
}
void CUIInventoryUpgradeWnd::LoadSchemes(CUIXml& uiXml)
{
XML_NODE* stored_root = uiXml.GetLocalRoot();
XML_NODE* tmpl_root = uiXml.NavigateToNode("templates", 0);
uiXml.SetLocalRoot(tmpl_root);
Frect t_cell_item;
t_cell_item.x1 = uiXml.ReadAttribFlt("cell_item", 0, "x");
t_cell_item.y1 = uiXml.ReadAttribFlt("cell_item", 0, "y");
t_cell_item.x2 = t_cell_item.x1 + uiXml.ReadAttribFlt("cell_item", 0, "width")*(UI().is_widescreen() ? 0.8f : 1.0f);
t_cell_item.y2 = t_cell_item.y1 + uiXml.ReadAttribFlt("cell_item", 0, "height");
int tmpl_count = uiXml.GetNodesNum(tmpl_root, "template");
for (int i_tmpl = 0; i_tmpl < tmpl_count; ++i_tmpl)
{
XML_NODE* tmpl_node = uiXml.NavigateToNode("template", i_tmpl);
uiXml.SetLocalRoot(tmpl_node);
Scheme* scheme = xr_new<Scheme>();
scheme->cells.reserve(MAX_UI_UPGRADE_CELLS);
LPCSTR name = uiXml.ReadAttrib(tmpl_node, "name", "");
VERIFY(name && xr_strcmp(name, ""));
scheme->name._set(name);
int clm_count = uiXml.GetNodesNum(tmpl_node, "column");
for (int i_clm = 0; i_clm < clm_count; ++i_clm)
{
XML_NODE* clm_node = uiXml.NavigateToNode("column", i_clm);
uiXml.SetLocalRoot(clm_node);
int cell_cnt = uiXml.GetNodesNum(clm_node, "cell");
for (int i_cell = 0; i_cell < cell_cnt; ++i_cell)
{
UIUpgrade* item = xr_new<UIUpgrade>(this);
item->load_from_xml(uiXml, i_clm, i_cell, t_cell_item);
CUIUpgradePoint* item_point = xr_new<CUIUpgradePoint>(item);
item_point->load_from_xml(uiXml, i_cell);
item->attach_point(item_point);
scheme->cells.push_back(item);
}// for i_cell
uiXml.SetLocalRoot(tmpl_node);
}// for i_clm
m_schemes.push_back(scheme);
uiXml.SetLocalRoot(tmpl_root);
}// for i_tmpl
uiXml.SetLocalRoot(stored_root);
}
| 26.606238 | 123 | 0.693604 | Rikoshet-234 |
ee30343c87d9c12ed1924cddfcb6db060a9b8aac | 3,200 | cpp | C++ | WildMagic4/LibFoundation/Intersection/Wm4IntrPlane3Sphere3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | WildMagic4/LibFoundation/Intersection/Wm4IntrPlane3Sphere3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | WildMagic4/LibFoundation/Intersection/Wm4IntrPlane3Sphere3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4FoundationPCH.h"
#include "Wm4IntrPlane3Sphere3.h"
namespace Wm4
{
//----------------------------------------------------------------------------
template <class Real>
IntrPlane3Sphere3<Real>::IntrPlane3Sphere3 (const Plane3<Real>& rkPlane,
const Sphere3<Real>& rkSphere)
:
m_pkPlane(&rkPlane),
m_pkSphere(&rkSphere)
{
}
//----------------------------------------------------------------------------
template <class Real>
const Plane3<Real>& IntrPlane3Sphere3<Real>::GetPlane () const
{
return *m_pkPlane;
}
//----------------------------------------------------------------------------
template <class Real>
const Sphere3<Real>& IntrPlane3Sphere3<Real>::GetSphere () const
{
return *m_pkSphere;
}
//----------------------------------------------------------------------------
template <class Real>
bool IntrPlane3Sphere3<Real>::Test ()
{
Real fSignedDistance = m_pkPlane->DistanceTo(m_pkSphere->Center);
return Math<Real>::FAbs(fSignedDistance) <= m_pkSphere->Radius;
}
//----------------------------------------------------------------------------
template <class Real>
bool IntrPlane3Sphere3<Real>::Find ()
{
Real fSignedDistance = m_pkPlane->DistanceTo(m_pkSphere->Center);
Real fDistance = Math<Real>::FAbs(fSignedDistance);
m_kCircle.Center = m_pkSphere->Center - fSignedDistance*m_pkPlane->Normal;
m_kCircle.N = m_pkPlane->Normal;
if (fDistance <= m_pkSphere->Radius)
{
// The sphere intersects the plane in a circle. The circle is
// degenerate when fDistance is equal to m_pkSphere->Radius, in which
// case the circle radius is zero.
m_kCircle.Radius = Math<Real>::Sqrt(Math<Real>::FAbs(
m_pkSphere->Radius*m_pkSphere->Radius - fDistance*fDistance));
return true;
}
// Additional indication that the circle is invalid.
m_kCircle.Radius = (Real)-1;
return false;
}
//----------------------------------------------------------------------------
template <class Real>
bool IntrPlane3Sphere3<Real>::SphereIsCulled () const
{
Real fSignedDistance = m_pkPlane->DistanceTo(m_pkSphere->Center);
return fSignedDistance <= -m_pkSphere->Radius;
}
//----------------------------------------------------------------------------
template <class Real>
const Circle3<Real>& IntrPlane3Sphere3<Real>::GetCircle () const
{
return m_kCircle;
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// explicit instantiation
//----------------------------------------------------------------------------
template WM4_FOUNDATION_ITEM
class IntrPlane3Sphere3<float>;
template WM4_FOUNDATION_ITEM
class IntrPlane3Sphere3<double>;
//----------------------------------------------------------------------------
}
| 35.955056 | 79 | 0.504688 | rms80 |
ee34e371b4749df4708520304fd63dda022cf206 | 15,611 | cpp | C++ | extras/apps/mason2/mason_tests.cpp | weese/seqan | 1acb1688969c7b61497f2328af54b4d11228a484 | [
"BSD-3-Clause"
] | 1 | 2015-01-15T16:04:56.000Z | 2015-01-15T16:04:56.000Z | extras/apps/mason2/mason_tests.cpp | weese/seqan | 1acb1688969c7b61497f2328af54b4d11228a484 | [
"BSD-3-Clause"
] | null | null | null | extras/apps/mason2/mason_tests.cpp | weese/seqan | 1acb1688969c7b61497f2328af54b4d11228a484 | [
"BSD-3-Clause"
] | null | null | null | // ==========================================================================
// Mason - A Read Simulator
// ==========================================================================
// Copyright (c) 2006-2013, Knut Reinert, FU Berlin
// 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 Knut Reinert or the FU Berlin 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 KNUT REINERT OR THE FU BERLIN 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.
//
// ==========================================================================
// Author: Manuel Holtgrewe <manuel.holtgrewe@fu-berlin.de>
// ==========================================================================
#undef SEQAN_ENABLE_TESTING
#define SEQAN_ENABLE_TESTING 1
#include <seqan/basic.h>
#include "sequencing.h"
#include "genomic_variants.h"
SEQAN_DEFINE_TEST(mason_tests_append_orientation_elementary_operations)
{
// Below, we test for match, mismatch, insertion, deletion and insertion.
{
TCigarString cigar;
std::pair<int, int> v = appendOperation(cigar, 'M');
SEQAN_ASSERT_EQ(v.first, 1);
SEQAN_ASSERT_EQ(v.second, 1);
SEQAN_ASSERT_EQ(length(cigar), 1u);
SEQAN_ASSERT_EQ(cigar[0].operation, 'M');
SEQAN_ASSERT_EQ(cigar[0].count, 1u);
}
{
TCigarString cigar;
std::pair<int, int> v = appendOperation(cigar, 'X');
SEQAN_ASSERT_EQ(v.first, 1);
SEQAN_ASSERT_EQ(v.second, 1);
SEQAN_ASSERT_EQ(length(cigar), 1u);
SEQAN_ASSERT_EQ(cigar[0].operation, 'X');
SEQAN_ASSERT_EQ(cigar[0].count, 1u);
}
{
TCigarString cigar;
std::pair<int, int> v = appendOperation(cigar, 'I');
SEQAN_ASSERT_EQ(v.first, 1);
SEQAN_ASSERT_EQ(v.second, 0);
SEQAN_ASSERT_EQ(length(cigar), 1u);
SEQAN_ASSERT_EQ(cigar[0].operation, 'I');
SEQAN_ASSERT_EQ(cigar[0].count, 1u);
}
{
TCigarString cigar;
std::pair<int, int> v = appendOperation(cigar, 'D');
SEQAN_ASSERT_EQ(v.first, 0);
SEQAN_ASSERT_EQ(v.second, 1);
SEQAN_ASSERT_EQ(length(cigar), 1u);
SEQAN_ASSERT_EQ(cigar[0].operation, 'D');
SEQAN_ASSERT_EQ(cigar[0].count, 1u);
}
}
SEQAN_DEFINE_TEST(mason_tests_append_orientation_combination)
{
// Test with the combination of equal operations.
{
TCigarString cigar;
appendValue(cigar, seqan::CigarElement<>('M', 1));
std::pair<int, int> v = appendOperation(cigar, 'M');
SEQAN_ASSERT_EQ(v.first, 1);
SEQAN_ASSERT_EQ(v.second, 1);
SEQAN_ASSERT_EQ(length(cigar), 1u);
SEQAN_ASSERT_EQ(cigar[0].operation, 'M');
SEQAN_ASSERT_EQ(cigar[0].count, 2u);
}
{
TCigarString cigar;
appendValue(cigar, seqan::CigarElement<>('X', 1));
std::pair<int, int> v = appendOperation(cigar, 'X');
SEQAN_ASSERT_EQ(v.first, 1);
SEQAN_ASSERT_EQ(v.second, 1);
SEQAN_ASSERT_EQ(length(cigar), 1u);
SEQAN_ASSERT_EQ(cigar[0].operation, 'X');
SEQAN_ASSERT_EQ(cigar[0].count, 2u);
}
{
TCigarString cigar;
appendValue(cigar, seqan::CigarElement<>('I', 1));
std::pair<int, int> v = appendOperation(cigar, 'I');
SEQAN_ASSERT_EQ(v.first, 1);
SEQAN_ASSERT_EQ(v.second, 0);
SEQAN_ASSERT_EQ(length(cigar), 1u);
SEQAN_ASSERT_EQ(cigar[0].operation, 'I');
SEQAN_ASSERT_EQ(cigar[0].count, 2u);
}
{
TCigarString cigar;
appendValue(cigar, seqan::CigarElement<>('D', 1));
std::pair<int, int> v = appendOperation(cigar, 'D');
SEQAN_ASSERT_EQ(v.first, 0);
SEQAN_ASSERT_EQ(v.second, 1);
SEQAN_ASSERT_EQ(length(cigar), 1u);
SEQAN_ASSERT_EQ(cigar[0].operation, 'D');
SEQAN_ASSERT_EQ(cigar[0].count, 2u);
}
}
SEQAN_DEFINE_TEST(mason_tests_append_orientation_canceling_out)
{
// Test with the combination of operations that cancel each other out (I/D, D/I)
{
TCigarString cigar;
appendValue(cigar, seqan::CigarElement<>('I', 1));
std::pair<int, int> v = appendOperation(cigar, 'D');
SEQAN_ASSERT_EQ(v.first, -1);
SEQAN_ASSERT_EQ(v.second, 0);
SEQAN_ASSERT_EQ(length(cigar), 0u);
}
{
TCigarString cigar;
appendValue(cigar, seqan::CigarElement<>('D', 1));
std::pair<int, int> v = appendOperation(cigar, 'I');
SEQAN_ASSERT_EQ(v.first, 0);
SEQAN_ASSERT_EQ(v.second, -1);
SEQAN_ASSERT_EQ(length(cigar), 0u);
}
}
SEQAN_DEFINE_TEST(mason_tests_position_map_inversion)
{
typedef PositionMap::TInterval TInterval;
PositionMap positionMap;
// Inversion: --1000-->|<--1000--|--1000-->
GenomicInterval gi1( 0, 1000, 0, 1000, '+', GenomicInterval::NORMAL);
GenomicInterval gi2(1000, 2000, 1000, 2000, '-', GenomicInterval::INVERTED);
GenomicInterval gi3(2000, 3000, 2000, 3000, '+', GenomicInterval::NORMAL);
// Build interval tree.
seqan::String<TInterval> intervals;
appendValue(intervals, TInterval(gi1.svBeginPos, gi1.svEndPos, gi1));
appendValue(intervals, TInterval(gi2.svBeginPos, gi2.svEndPos, gi2));
appendValue(intervals, TInterval(gi3.svBeginPos, gi3.svEndPos, gi3));
createIntervalTree(positionMap.svIntervalTree, intervals);
// Add breakpoints.
positionMap.svBreakpoints.insert(0);
positionMap.svBreakpoints.insert(gi1.svEndPos);
positionMap.svBreakpoints.insert(gi2.svEndPos);
positionMap.svBreakpoints.insert(gi3.svEndPos);
// Tests for overlapsWithBreakpoint()
SEQAN_ASSERT_NOT(positionMap.overlapsWithBreakpoint( 0, 1000));
SEQAN_ASSERT_NOT(positionMap.overlapsWithBreakpoint(1000, 2000));
SEQAN_ASSERT_NOT(positionMap.overlapsWithBreakpoint(2000, 3000));
SEQAN_ASSERT(positionMap.overlapsWithBreakpoint( 999, 1001));
SEQAN_ASSERT(positionMap.overlapsWithBreakpoint(1999, 2001));
SEQAN_ASSERT(positionMap.overlapsWithBreakpoint(2999, 3001));
// Tests for getGenomicInterval()
SEQAN_ASSERT(gi1 == positionMap.getGenomicInterval( 0));
SEQAN_ASSERT(gi1 == positionMap.getGenomicInterval( 999));
SEQAN_ASSERT(gi2 == positionMap.getGenomicInterval(1000));
SEQAN_ASSERT(gi2 == positionMap.getGenomicInterval(1999));
SEQAN_ASSERT(gi3 == positionMap.getGenomicInterval(2000));
SEQAN_ASSERT(gi3 == positionMap.getGenomicInterval(2999));
// Tests for toSmallVarInterval().
typedef std::pair<int, int> TPair;
TPair i1 = positionMap.toSmallVarInterval(0, 100);
SEQAN_ASSERT_EQ(i1.first, 0);
SEQAN_ASSERT_EQ(i1.second, 100);
TPair i2 = positionMap.toSmallVarInterval(900, 1000);
SEQAN_ASSERT_EQ(i2.first, 900);
SEQAN_ASSERT_EQ(i2.second, 1000);
TPair i3 = positionMap.toSmallVarInterval(1000, 1100);
SEQAN_ASSERT_EQ(i3.first, 2000);
SEQAN_ASSERT_EQ(i3.second, 1900);
TPair i4 = positionMap.toSmallVarInterval(1900, 2000);
SEQAN_ASSERT_EQ(i4.first, 1100);
SEQAN_ASSERT_EQ(i4.second, 1000);
TPair i5 = positionMap.toSmallVarInterval(2000, 2100);
SEQAN_ASSERT_EQ(i5.first, 2000);
SEQAN_ASSERT_EQ(i5.second, 2100);
TPair i6 = positionMap.toSmallVarInterval(2900, 3000);
SEQAN_ASSERT_EQ(i6.first, 2900);
SEQAN_ASSERT_EQ(i6.second, 3000);
}
SEQAN_DEFINE_TEST(mason_tests_position_map_translocation)
{
typedef PositionMap::TInterval TInterval;
PositionMap positionMap;
// Translocation: --A--> --B-->
// --B--> --A-->
GenomicInterval gi1( 0, 1000, 1000, 2000, '+', GenomicInterval::NORMAL);
GenomicInterval gi2(1000, 2000, 0, 1000, '-', GenomicInterval::NORMAL);
// Build interval tree.
seqan::String<TInterval> intervals;
appendValue(intervals, TInterval(gi1.svBeginPos, gi1.svEndPos, gi1));
appendValue(intervals, TInterval(gi2.svBeginPos, gi2.svEndPos, gi2));
createIntervalTree(positionMap.svIntervalTree, intervals);
// Add breakpoints.
positionMap.svBreakpoints.insert(0);
positionMap.svBreakpoints.insert(gi1.svEndPos);
positionMap.svBreakpoints.insert(gi2.svEndPos);
// Tests for overlapsWithBreakpoint()
SEQAN_ASSERT_NOT(positionMap.overlapsWithBreakpoint( 0, 1000));
SEQAN_ASSERT_NOT(positionMap.overlapsWithBreakpoint(1000, 2000));
SEQAN_ASSERT(positionMap.overlapsWithBreakpoint( 999, 1001));
SEQAN_ASSERT(positionMap.overlapsWithBreakpoint(1999, 2001));
// Tests for getGenomicInterval()
SEQAN_ASSERT(gi1 == positionMap.getGenomicInterval( 0));
SEQAN_ASSERT(gi1 == positionMap.getGenomicInterval( 999));
SEQAN_ASSERT(gi2 == positionMap.getGenomicInterval(1000));
SEQAN_ASSERT(gi2 == positionMap.getGenomicInterval(1999));
// Tests for toSmallVarInterval().
typedef std::pair<int, int> TPair;
TPair i1 = positionMap.toSmallVarInterval(0, 100);
SEQAN_ASSERT_EQ(i1.first, 1000);
SEQAN_ASSERT_EQ(i1.second, 1100);
TPair i2 = positionMap.toSmallVarInterval(900, 1000);
SEQAN_ASSERT_EQ(i2.first, 1900);
SEQAN_ASSERT_EQ(i2.second, 2000);
TPair i3 = positionMap.toSmallVarInterval(1000, 1100);
SEQAN_ASSERT_EQ(i3.first, 0);
SEQAN_ASSERT_EQ(i3.second, 100);
TPair i4 = positionMap.toSmallVarInterval(1900, 2000);
SEQAN_ASSERT_EQ(i4.first, 900);
SEQAN_ASSERT_EQ(i4.second, 1000);
}
SEQAN_DEFINE_TEST(mason_tests_position_map_to_original_interval)
{
// Deletions in the variant / insertions in the reference.
{
// Create the following situation in the journal.
//
// 1 2
// 0 0 0
// : . : . :
// REF XX--XXXX--XXXXX
// SMALLVAR XXXXXXXXXXXXXXX
TJournalEntries journal;
reinit(journal, 100);
recordInsertion(journal, 2, 0, 2);
recordInsertion(journal, 8, 0, 2);
PositionMap positionMap;
positionMap.reinit(journal);
// Check toOriginalInterval.
std::pair<int, int> i1 = positionMap.toOriginalInterval(3, 5);
SEQAN_ASSERT_EQ(i1.first, 2);
SEQAN_ASSERT_EQ(i1.second, 3);
std::pair<int, int> i2 = positionMap.toOriginalInterval(5, 9);
SEQAN_ASSERT_EQ(i2.first, 3);
SEQAN_ASSERT_EQ(i2.second, 6);
std::pair<int, int> i3 = positionMap.toOriginalInterval(3, 9);
SEQAN_ASSERT_EQ(i3.first, 2);
SEQAN_ASSERT_EQ(i3.second, 6);
}
// Insertions in the variant / deletions in the reference.
{
// Create the following situation in the journal.
//
// 1 2
// 0 0 0
// : . : . :
// REF XXXXXXXXXXXXXXX
// SMALLVAR XX--XXXX--XXXXX
TJournalEntries journal;
reinit(journal, 100);
recordErase(journal, 8, 10);
recordErase(journal, 2, 4);
PositionMap positionMap;
positionMap.reinit(journal);
// Check toOriginalInterval.
std::pair<int, int> i1 = positionMap.toOriginalInterval(2, 3);
SEQAN_ASSERT_EQ(i1.first, 4);
SEQAN_ASSERT_EQ(i1.second, 5);
std::pair<int, int> i2 = positionMap.toOriginalInterval(5, 6);
SEQAN_ASSERT_EQ(i2.first, 7);
SEQAN_ASSERT_EQ(i2.second, 10);
std::pair<int, int> i3 = positionMap.toOriginalInterval(2, 6);
SEQAN_ASSERT_EQ(i3.first, 4);
SEQAN_ASSERT_EQ(i3.second, 10);
}
}
SEQAN_DEFINE_TEST(mason_tests_position_map_original_to_small_var)
{
// Deletions in the variant / insertions in the reference.
{
// Create the following situation in the journal.
//
// 1 2
// 0 0 0
// : . : . :
// REF XX--XXXX--XXXXX
// SMALLVAR XXXXXXXXXXXXXXX
TJournalEntries journal;
reinit(journal, 100);
recordInsertion(journal, 2, 0, 2);
recordInsertion(journal, 8, 0, 2);
PositionMap positionMap;
positionMap.reinit(journal);
// Check originalToSmallVarInterval.
std::pair<int, int> i1 = positionMap.originalToSmallVarInterval(2, 3);
SEQAN_ASSERT_EQ(i1.first, 4);
SEQAN_ASSERT_EQ(i1.second, 5);
std::pair<int, int> i2 = positionMap.originalToSmallVarInterval(5, 6);
SEQAN_ASSERT_EQ(i2.first, 7);
SEQAN_ASSERT_EQ(i2.second, 10);
std::pair<int, int> i3 = positionMap.originalToSmallVarInterval(2, 6);
SEQAN_ASSERT_EQ(i3.first, 4);
SEQAN_ASSERT_EQ(i3.second, 10);
}
// Insertions in the variant / deletions in the reference.
{
// Create the following situation in the journal.
//
// 1 2
// 0 0 0
// : . : . :
// REF XXXXXXXXXXXXXXX
// SMALLVAR XX--XXXX--XXXXX
TJournalEntries journal;
reinit(journal, 100);
recordErase(journal, 8, 10);
recordErase(journal, 2, 4);
PositionMap positionMap;
positionMap.reinit(journal);
// Check originalToSmallVarInterval.
std::pair<int, int> i1 = positionMap.originalToSmallVarInterval(3, 5);
SEQAN_ASSERT_EQ(i1.first, 2);
SEQAN_ASSERT_EQ(i1.second, 3);
std::pair<int, int> i2 = positionMap.originalToSmallVarInterval(5, 9);
SEQAN_ASSERT_EQ(i2.first, 3);
SEQAN_ASSERT_EQ(i2.second, 6);
std::pair<int, int> i3 = positionMap.originalToSmallVarInterval(3, 9);
SEQAN_ASSERT_EQ(i3.first, 2);
SEQAN_ASSERT_EQ(i3.second, 6);
}
}
SEQAN_BEGIN_TESTSUITE(mason_tests)
{
SEQAN_CALL_TEST(mason_tests_append_orientation_elementary_operations);
SEQAN_CALL_TEST(mason_tests_append_orientation_combination);
SEQAN_CALL_TEST(mason_tests_append_orientation_canceling_out);
SEQAN_CALL_TEST(mason_tests_position_map_inversion);
SEQAN_CALL_TEST(mason_tests_position_map_translocation);
SEQAN_CALL_TEST(mason_tests_position_map_to_original_interval);
SEQAN_CALL_TEST(mason_tests_position_map_original_to_small_var);
}
SEQAN_END_TESTSUITE
| 36.389277 | 84 | 0.642239 | weese |
ee35296da277f503f788d721cb6a7314fcc5e3b0 | 720 | hpp | C++ | cpp/diy-algos/string/tstring.hpp | taseikyo/til | 8f703e69a49cbd9854062b102ba307c775d43a56 | [
"MIT"
] | 1 | 2021-09-01T14:39:12.000Z | 2021-09-01T14:39:12.000Z | cpp/diy-algos/string/tstring.hpp | taseikyo/til | 8f703e69a49cbd9854062b102ba307c775d43a56 | [
"MIT"
] | null | null | null | cpp/diy-algos/string/tstring.hpp | taseikyo/til | 8f703e69a49cbd9854062b102ba307c775d43a56 | [
"MIT"
] | null | null | null | /**
* @date 2020-09-03 16:24:04
* @authors Lewis Tian (taseikyo@gmail.com)
* @link github.com/taseikyo
*/
class tstring {
friend std::ostream& operator<<(std::ostream &out,
const tstring &str);
public:
size_t size() const;
const char* c_str() const;
// default constructor
tstring(const char *str = nullptr);
// copy constructor
tstring(const tstring &str);
// move constructor
tstring(tstring &&str) noexcept;
// assignment operator
tstring& operator=(const tstring &str);
// move assignment operator
tstring& operator=(tstring &&str) noexcept;
// [] operator
char& operator[] (size_t idx);
// destructor
~tstring();
private:
char* tstr;
size_t tsize;
}; | 24 | 53 | 0.654167 | taseikyo |
ee365de5456d74600890d50f91a32dfd029451c9 | 2,258 | cc | C++ | chrome/browser/nearby_sharing/client/nearby_share_http_notifier.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/nearby_sharing/client/nearby_share_http_notifier.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/nearby_sharing/client/nearby_share_http_notifier.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/nearby_sharing/client/nearby_share_http_notifier.h"
NearbyShareHttpNotifier::NearbyShareHttpNotifier() = default;
NearbyShareHttpNotifier::~NearbyShareHttpNotifier() = default;
void NearbyShareHttpNotifier::AddObserver(Observer* observer) {
observers_.AddObserver(observer);
}
void NearbyShareHttpNotifier::RemoveObserver(Observer* observer) {
observers_.RemoveObserver(observer);
}
void NearbyShareHttpNotifier::NotifyOfRequest(
const nearbyshare::proto::UpdateDeviceRequest& request) {
for (auto& observer : observers_)
observer.OnUpdateDeviceRequest(request);
}
void NearbyShareHttpNotifier::NotifyOfResponse(
const nearbyshare::proto::UpdateDeviceResponse& response) {
for (auto& observer : observers_)
observer.OnUpdateDeviceResponse(response);
}
void NearbyShareHttpNotifier::NotifyOfRequest(
const nearbyshare::proto::ListContactPeopleRequest& request) {
for (auto& observer : observers_)
observer.OnListContactPeopleRequest(request);
}
void NearbyShareHttpNotifier::NotifyOfResponse(
const nearbyshare::proto::ListContactPeopleResponse& response) {
for (auto& observer : observers_)
observer.OnListContactPeopleResponse(response);
}
void NearbyShareHttpNotifier::NotifyOfRequest(
const nearbyshare::proto::ListPublicCertificatesRequest& request) {
for (auto& observer : observers_)
observer.OnListPublicCertificatesRequest(request);
}
void NearbyShareHttpNotifier::NotifyOfResponse(
const nearbyshare::proto::ListPublicCertificatesResponse& response) {
for (auto& observer : observers_)
observer.OnListPublicCertificatesResponse(response);
}
void NearbyShareHttpNotifier::NotifyOfRequest(
const nearbyshare::proto::CheckContactsReachabilityRequest& request) {
for (auto& observer : observers_)
observer.OnCheckContactsReachabilityRequest(request);
}
void NearbyShareHttpNotifier::NotifyOfResponse(
const nearbyshare::proto::CheckContactsReachabilityResponse& response) {
for (auto& observer : observers_)
observer.OnCheckContactsReachabilityResponse(response);
}
| 34.212121 | 76 | 0.798051 | mghgroup |
ee36e7dd24308244b747baf8f95d63173e4ced88 | 2,514 | hpp | C++ | Vitis-AI-Library/xnnpp/include/vitis/ai/nnpp/posedetect.hpp | dendisuhubdy/Vitis-AI | 524f65224c52314155dafc011d488ed30e458fcb | [
"Apache-2.0"
] | 19 | 2020-10-26T17:37:22.000Z | 2022-01-20T09:32:38.000Z | Vitis-AI-Library/xnnpp/include/vitis/ai/nnpp/posedetect.hpp | dendisuhubdy/Vitis-AI | 524f65224c52314155dafc011d488ed30e458fcb | [
"Apache-2.0"
] | 20 | 2020-10-31T03:19:03.000Z | 2020-11-02T18:59:49.000Z | Vitis-AI-Library/xnnpp/include/vitis/ai/nnpp/posedetect.hpp | dendisuhubdy/Vitis-AI | 524f65224c52314155dafc011d488ed30e458fcb | [
"Apache-2.0"
] | 19 | 2020-10-21T19:15:17.000Z | 2022-01-04T08:32:08.000Z | /*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <opencv2/core.hpp>
#include <vitis/ai/library/tensor.hpp>
namespace vitis {
namespace ai {
/**
*@struct PoseDetectResult
*@brief Struct of the result returned by the posedetect network.
*/
struct PoseDetectResult {
/// Width of input image.
int width;
/// Height of input image.
int height;
/// A coordinate point.
using Point = cv::Point2f;
/**
* @struct Pose14Pt
* @brief A pose , represented by 14 coordinate points.
*/
struct Pose14Pt {
/// R_shoulder coordinate
Point right_shoulder;
/// R_elbow coordinate
Point right_elbow;
/// R_wrist coordinate
Point right_wrist;
/// L_shoulder coordinate
Point left_shoulder;
/// L_elbow coordinate
Point left_elbow;
/// L_wrist coordinate
Point left_wrist;
/// R_hip coordinate
Point right_hip;
/// R_knee coordinate
Point right_knee;
/// R_ankle coordinate
Point right_ankle;
/// L_hip coordinate
Point left_hip;
/// L_knee coordinate
Point left_knee;
/// L_ankle coordinate
Point left_ankle;
/// head coordinate
Point head;
/// neck coordinate
Point neck;
};
/// The pose of input image.
Pose14Pt pose14pt;
};
/**
*@brief The post-processing function of the posedetect.
*@param input_tensors A vector of all input-tensors in the network.
* Usage: input_tensors[kernel_index][input_tensor_index].
*@param output_tensors A vector of all output-tensors in the network.
*Usage: output_tensors[kernel_index][output_index].
*@param size Input image's size.
*@return The result of PoseDetect.
*/
std::vector<PoseDetectResult> pose_detect_post_process(
const std::vector<std::vector<vitis::ai::library::InputTensor>>&
input_tensors,
const std::vector<std::vector<vitis::ai::library::OutputTensor>>&
output_tensors,
cv::Size size);
} // namespace ai
} // namespace vitis
| 27.933333 | 75 | 0.696897 | dendisuhubdy |
ee379876a65fb0fb48fc6ff277e16f5dfb0db337 | 896 | cpp | C++ | src/Consumer.cpp | cieslarmichal/rabbitmq-chatroom | ab538b6c2c1060e34c097d8a4059d97533c717c1 | [
"MIT"
] | null | null | null | src/Consumer.cpp | cieslarmichal/rabbitmq-chatroom | ab538b6c2c1060e34c097d8a4059d97533c717c1 | [
"MIT"
] | null | null | null | src/Consumer.cpp | cieslarmichal/rabbitmq-chatroom | ab538b6c2c1060e34c097d8a4059d97533c717c1 | [
"MIT"
] | null | null | null | #include "Consumer.h"
#include <utility>
#include "ConsoleWriter.h"
namespace chatroom
{
Consumer::Consumer(std::unique_ptr<amqp::AmqpClient> amqpClientInit, std::string userIdInit,
std::string appIdInit, std::string queueNameInit)
: amqpClient{std::move(amqpClientInit)},
userId{std::move(userIdInit)},
appId{std::move(appIdInit)},
queueName{std::move(queueNameInit)}
{
amqpClient->declareQueue(queueName, false, false, false, true);
}
[[noreturn]] void Consumer::startConsuming()
{
while (true)
{
if (const auto envelope = amqpClient->getMessage(queueName))
{
const auto senderId = envelope->userId;
if (envelope->appId == appId and senderId == userId)
{
continue;
}
ConsoleWriter::write(senderId + ": " + envelope->body);
}
}
}
} | 24.216216 | 92 | 0.606027 | cieslarmichal |
ee38e8080ebe29f80fb38b78872150c0898af249 | 2,554 | cpp | C++ | src/Interfaz/Pantalla.cpp | LeonelAguilera/Deeper-Blue | b8df4ab441fa98abfad12ce63b5e961d5af0c15e | [
"MIT"
] | null | null | null | src/Interfaz/Pantalla.cpp | LeonelAguilera/Deeper-Blue | b8df4ab441fa98abfad12ce63b5e961d5af0c15e | [
"MIT"
] | null | null | null | src/Interfaz/Pantalla.cpp | LeonelAguilera/Deeper-Blue | b8df4ab441fa98abfad12ce63b5e961d5af0c15e | [
"MIT"
] | null | null | null | #include "freeglut.h"
#include <math.h>
#include <iostream>
#include <stdlib.h>
#include <ctime>
#include "Controles.h"
#include "ETSIDI.h"
#include "Inicio.h"
#include "Pantalla.h"
#include "Interfaz.h"
using namespace std;
pantalla::pantalla() {
this->ancho = 35;
this->alto = 20;
this->rojo = 255;
this->verde = 255;
this->azul = 255;
this->limite1x = ancho / 2;
this->limite1y = alto / 2;
}
void pantalla::dibuja() {
glDisable(GL_LIGHTING);
glColor3ub(this->rojo, this->verde, this->azul);
glBegin(GL_LINES);
glVertex3d(-this->limite1x, this->limite1y, 0);
glVertex3d(this->limite1x, this->limite1y, 0);
glEnd();
glEnable(GL_LIGHTING);
glDisable(GL_LIGHTING);
glColor3ub(this->rojo, this->verde, this->azul);
glBegin(GL_LINES);
glVertex3d(this->limite1x, this->limite1y, 0);
glVertex3d(this->limite1x, -this->limite1y, 0);
glEnd();
glEnable(GL_LIGHTING);
glDisable(GL_LIGHTING);
glColor3ub(this->rojo, this->verde, this->azul);
glBegin(GL_LINES);
glVertex3d(this->limite1x, -this->limite1y, 0);
glVertex3d(-this->limite1x, -this->limite1y, 0);
glEnd();
glEnable(GL_LIGHTING);
glDisable(GL_LIGHTING);
glColor3ub(this->rojo, this->verde, this->azul);
glBegin(GL_LINES);
glVertex3d(-this->limite1x, -this->limite1y, 0);
glVertex3d(-this->limite1x, this->limite1y, 0);
glEnd();
glEnable(GL_LIGHTING);
//bordes internos
glDisable(GL_LIGHTING);
glColor3ub(0, this->verde, this->azul);
glBegin(GL_LINES);
glVertex3d(-this->limite1x+0.25, this->limite1y-0.25, 0);
glVertex3d(this->limite1x-0.25,this->limite1y-0.25, 0);
glEnd();
glEnable(GL_LIGHTING);
glDisable(GL_LIGHTING);
glColor3ub(0, this->verde, this->azul);
glBegin(GL_LINES);
glVertex3d(this->limite1x - 0.25, this->limite1y-0.25, 0);
glVertex3d(this->limite1x-0.25 , -this->limite1y+0.25, 0);
glEnd();
glEnable(GL_LIGHTING);
glDisable(GL_LIGHTING);
glColor3ub(0, this->verde, this->azul);
glBegin(GL_LINES);
glVertex3d(this->limite1x-0.25, -this->limite1y+0.25, 0);
glVertex3d(-this->limite1x+0.25, -this->limite1y+0.25, 0);
glEnd();
glEnable(GL_LIGHTING);
glDisable(GL_LIGHTING);
glColor3ub(0, this->verde, this->azul);
glBegin(GL_LINES);
glVertex3d(-this->limite1x+0.25, -this->limite1y+0.25, 0);
glVertex3d(-this->limite1x+0.25, this->limite1y-0.25, 0);
glEnd();
glEnable(GL_LIGHTING);
//
}
void pantalla::setcolor(unsigned char r, unsigned char v, unsigned char a) {
this->rojo = r;
this->verde = v;
this->azul = a;
}
| 26.329897 | 77 | 0.673453 | LeonelAguilera |
ee42d13378ce80fa7a323d04cfb42b6343ae787a | 8,691 | cpp | C++ | source/tools/ToolUnitTests/internal_exception_handler_app_lin.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | 1 | 2017-06-06T16:02:31.000Z | 2017-06-06T16:02:31.000Z | source/tools/ToolUnitTests/internal_exception_handler_app_lin.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | null | null | null | source/tools/ToolUnitTests/internal_exception_handler_app_lin.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | null | null | null | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2016 Intel Corporation. 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 Intel Corporation nor the names of its contributors may be used to
endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 INTEL OR
ITS 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.
END_LEGAL */
/*! @file
* This application used to verify that Pin tool can correctly handle internal exceptions
*/
#include <string>
#include <iostream>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <ucontext.h>
using namespace std;
#ifdef TARGET_IA32
struct fxsave
{
unsigned short _fcw;
unsigned short _fsw;
unsigned char _ftw;
unsigned char _pad1;
unsigned short _fop;
unsigned int _fpuip;
unsigned short _cs;
unsigned short _pad2;
unsigned int _fpudp;
unsigned short _ds;
unsigned short _pad3;
unsigned int _mxcsr;
unsigned int _mxcsrmask;
unsigned char _st[8 * 16];
unsigned char _xmm[8 * 16];
unsigned char _pad4[56 * 4];
};
struct KernelFpstate
{
struct _libc_fpstate _fpregs_mem; // user-visible FP register state (_mcontext points to this)
struct fxsave _fxsave; // full FP state as saved by fxsave instruction
};
#else
struct fxsave
{
unsigned short _cwd;
unsigned short _swd;
unsigned short _twd; /* Note this is not the same as the 32bit/x87/FSAVE twd */
unsigned short _fop;
unsigned long _rip;
unsigned long _rdp;
unsigned int _mxcsr;
unsigned int _mxcsrmask;
unsigned int _st[32]; /* 8*16 bytes for each FP-reg */
unsigned char _xmm[16 * 16]; /* 16*16 bytes for each XMM-reg */
unsigned int _reserved2[24];
};
struct KernelFpstate
{
struct fxsave _fxsave; // user-visible FP register state (_mcontext points to this)
};
#endif
//==========================================================================
// Printing utilities
//==========================================================================
string UnitTestName("internal_exception_handler_app_lin");
static void StartFunctionTest(const string & functionTestName)
{
cerr << UnitTestName << " [ " << functionTestName << " ] Start" << endl << flush;
}
static void EndFunctionTest(const string & functionTestName)
{
cerr << UnitTestName << " [ " << functionTestName << " ] Success" << endl << flush;
}
//================================================================
// Install signal handlers
//================================================================
void div0_signal_handler(int, siginfo_t *, void *);
void install_signal_handlers()
{
int ret;
struct sigaction sSigaction;
/* Register the signal hander using the siginfo interface*/
sSigaction.sa_sigaction = div0_signal_handler;
sSigaction.sa_flags = SA_SIGINFO;
/* mask all other signals */
sigfillset(&sSigaction.sa_mask);
ret = sigaction(SIGFPE, &sSigaction, NULL);
if(ret)
{
perror("ERROR, sigaction failed");
exit(-1);
}
}
//================================================================
// Define signal handlers
//================================================================
#define FCW_ZERO_DIVIDE 0x4
#define MXCSR_ZERO_DIVIDE 0x200
#ifdef TARGET_IA32
# define FCW_MASK_ZERO_DIVIDE (appFpState->_fxsave._fcw |= FCW_ZERO_DIVIDE)
# define FSW_RESET (appFpState->_fxsave._fsw = 0)
# define MSR_MASK_ZERO_DIVIDE (appFpState->_fxsave._mxcsr |= MXCSR_ZERO_DIVIDE)
# define REG_INST_PTR REG_EIP
# define REG_GBX REG_EBX
#else // not TARGET_IA32
# define FCW_MASK_ZERO_DIVIDE (appFpState->_fxsave._cwd |= FCW_ZERO_DIVIDE)
# define FSW_RESET (appFpState->_fxsave._swd = 0)
# define MSR_MASK_ZERO_DIVIDE (appFpState->_fxsave._mxcsr |= MXCSR_ZERO_DIVIDE)
# define REG_INST_PTR REG_RIP
# define REG_GBX REG_RBX
#endif // not TARGET_IA32
#define MCONTEXT_IP_REG uc_mcontext.gregs[REG_INST_PTR]
extern "C" void UnmaskFpZeroDivide();
extern "C" void UnmaskZeroDivideInMxcsr32();
extern "C" void MaskZeroDivideInMxcsr32();
extern "C" void UnmaskZeroDivideInMxcsr();
extern "C" void MaskZeroDivideInMxcsr();
void div0_signal_handler(int signum, siginfo_t *siginfo, void *uctxt)
{
printf("Inside div0 handler\n");
ucontext_t *frameContext = (ucontext_t *)uctxt;
printf("signal %d, code %d (captured EIP: 0x%x)\n", signum, siginfo->si_code,
frameContext->MCONTEXT_IP_REG);
if (siginfo->si_code == FPE_INTDIV)
{
// Move IP to recovery code
// Catch point is kept in %GBX
frameContext->uc_mcontext.gregs[REG_INST_PTR] = frameContext->uc_mcontext.gregs[REG_GBX];
}
else if ((siginfo->si_code == FPE_FLTDIV))
{
// Mask "zero divide" exception in FPU Control Word register
// Reset FPU Status Register
fpregset_t fpState = frameContext->uc_mcontext.fpregs;
/* Change application FP context */
fpregset_t fpPtr = frameContext->uc_mcontext.fpregs;
KernelFpstate *appFpState = reinterpret_cast < KernelFpstate * > (fpPtr);
FCW_MASK_ZERO_DIVIDE;
FSW_RESET;
MSR_MASK_ZERO_DIVIDE;
}
}
// These numbers are for testing only
#define EXCEPTION_INT_DIVIDE_BY_ZERO 18
#define EXCEPTION_FLT_DIVIDE_BY_ZERO 19
static bool CheckExceptionCode(unsigned int exceptCode, unsigned int expectedExceptCode)
{
if (exceptCode != expectedExceptCode)
{
cerr << "Unexpected exception code " <<
hex << exceptCode << ". Should be " <<
hex << expectedExceptCode << endl;
return false;
}
return true;
}
extern "C" unsigned int RaiseIntDivideByZeroException(unsigned int (*)(), unsigned int);
extern "C" unsigned int CatchIntDivideByZeroException();
/*
* Raise "int deivide by zero" exception
*/
void SafeExecuteIntDivideByZero()
{
unsigned int exceptionCaught = RaiseIntDivideByZeroException(CatchIntDivideByZeroException, EXCEPTION_INT_DIVIDE_BY_ZERO);
if (!CheckExceptionCode(exceptionCaught, EXCEPTION_INT_DIVIDE_BY_ZERO))
{
exit(-1);
}
}
/*
* Raise "X87 deivide by zero" exception
*/
extern "C" unsigned int RaiseFltDivideByZeroException(unsigned int exception_code)
{
volatile float zero = 0.0;
volatile float i = 1.0 / zero;
return exception_code;
}
void SafeExecuteFltDivideByZero()
{
UnmaskFpZeroDivide();
#if defined(TARGET_IA32E) || defined(TARGET_MIC)
UnmaskZeroDivideInMxcsr();
#else
UnmaskZeroDivideInMxcsr32();
#endif
unsigned int exceptionCaught = RaiseFltDivideByZeroException(EXCEPTION_FLT_DIVIDE_BY_ZERO);
if (!CheckExceptionCode(exceptionCaught, EXCEPTION_FLT_DIVIDE_BY_ZERO))
{
exit(-1);
}
}
/*!
* The main procedure of the application.
*/
int main(int argc, char *argv[])
{
install_signal_handlers();
StartFunctionTest("Raise int divide by zero in the tool");
SafeExecuteIntDivideByZero();
EndFunctionTest("Raise int divide by zero in the tool");
StartFunctionTest("Raise FP divide by zero in the tool");
SafeExecuteFltDivideByZero();
EndFunctionTest("Raise FP divide by zero in the tool");
}
| 33.298851 | 127 | 0.660338 | ganboing |
ee4359e3a94a0129cc28d6fee906f4081e9f591e | 12,042 | cc | C++ | platforms/unity/unity.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 396 | 2018-03-14T09:55:52.000Z | 2022-03-27T14:58:38.000Z | platforms/unity/unity.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 46 | 2018-04-18T17:14:29.000Z | 2022-02-19T21:35:57.000Z | platforms/unity/unity.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 96 | 2018-03-14T17:20:50.000Z | 2022-03-03T01:12:37.000Z | /*
Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "platforms/unity/unity.h"
#include <algorithm>
#include <memory>
#include "base/audio_buffer.h"
#include "base/constants_and_types.h"
#include "base/logging.h"
#include "base/misc_math.h"
#include "graph/resonance_audio_api_impl.h"
#include "platforms/common/room_effects_utils.h"
#if !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
#include "utils/ogg_vorbis_recorder.h"
#endif // !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
namespace vraudio {
namespace unity {
namespace {
// Output channels must be stereo for the ResonanceAudio system to run properly.
const size_t kNumOutputChannels = 2;
#if !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
// Maximum number of buffers allowed to record a soundfield, which is set to ~5
// minutes (depending on the sampling rate and the number of frames per buffer).
const size_t kMaxNumRecordBuffers = 15000;
// Record compression quality.
const float kRecordQuality = 1.0f;
#endif // !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
// Stores the necessary components for the ResonanceAudio system. Methods called
// from the native implementation below must check the validity of this
// instance.
struct ResonanceAudioSystem {
ResonanceAudioSystem(int sample_rate, size_t num_channels,
size_t frames_per_buffer)
: api(CreateResonanceAudioApi(num_channels, frames_per_buffer,
sample_rate)) {
#if !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
is_recording_soundfield = false;
soundfield_recorder.reset(
new OggVorbisRecorder(sample_rate, kNumFirstOrderAmbisonicChannels,
frames_per_buffer, kMaxNumRecordBuffers));
#endif // !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
}
// ResonanceAudio API instance to communicate with the internal system.
std::unique_ptr<ResonanceAudioApi> api;
// Default room properties, which effectively disable the room effects.
ReflectionProperties null_reflection_properties;
ReverbProperties null_reverb_properties;
#if !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
// Denotes whether the soundfield recording is currently in progress.
bool is_recording_soundfield;
// First-order ambisonic soundfield recorder.
std::unique_ptr<OggVorbisRecorder> soundfield_recorder;
#endif // !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
};
// Singleton |ResonanceAudioSystem| instance to communicate with the internal
// API.
static std::shared_ptr<ResonanceAudioSystem> resonance_audio = nullptr;
} // namespace
void Initialize(int sample_rate, size_t num_channels,
size_t frames_per_buffer) {
CHECK_GE(sample_rate, 0);
CHECK_EQ(num_channels, kNumOutputChannels);
CHECK_GE(frames_per_buffer, 0);
resonance_audio = std::make_shared<ResonanceAudioSystem>(
sample_rate, num_channels, frames_per_buffer);
}
void Shutdown() { resonance_audio.reset(); }
void ProcessListener(size_t num_frames, float* output) {
CHECK(output != nullptr);
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy == nullptr) {
return;
}
if (!resonance_audio_copy->api->FillInterleavedOutputBuffer(
kNumOutputChannels, num_frames, output)) {
// No valid output was rendered, fill the output buffer with zeros.
const size_t buffer_size_samples = kNumOutputChannels * num_frames;
CHECK(!vraudio::DoesIntegerMultiplicationOverflow<size_t>(
kNumOutputChannels, num_frames, buffer_size_samples));
std::fill(output, output + buffer_size_samples, 0.0f);
}
#if !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
if (resonance_audio_copy->is_recording_soundfield) {
// Record output into soundfield.
auto* const resonance_audio_api_impl =
static_cast<ResonanceAudioApiImpl*>(resonance_audio_copy->api.get());
const auto* soundfield_buffer =
resonance_audio_api_impl->GetAmbisonicOutputBuffer();
std::unique_ptr<AudioBuffer> record_buffer(
new AudioBuffer(kNumFirstOrderAmbisonicChannels, num_frames));
if (soundfield_buffer != nullptr) {
for (size_t ch = 0; ch < kNumFirstOrderAmbisonicChannels; ++ch) {
(*record_buffer)[ch] = (*soundfield_buffer)[ch];
}
} else {
// No output received, fill the record buffer with zeros.
record_buffer->Clear();
}
resonance_audio_copy->soundfield_recorder->AddInput(
std::move(record_buffer));
}
#endif // !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
}
void SetListenerGain(float gain) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetMasterVolume(gain);
}
}
void SetListenerStereoSpeakerMode(bool enable_stereo_speaker_mode) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetStereoSpeakerMode(enable_stereo_speaker_mode);
}
}
void SetListenerTransform(float px, float py, float pz, float qx, float qy,
float qz, float qw) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetHeadPosition(px, py, pz);
resonance_audio_copy->api->SetHeadRotation(qx, qy, qz, qw);
}
}
ResonanceAudioApi::SourceId CreateSoundfield(int num_channels) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
return resonance_audio_copy->api->CreateAmbisonicSource(num_channels);
}
return ResonanceAudioApi::kInvalidSourceId;
}
ResonanceAudioApi::SourceId CreateSoundObject(RenderingMode rendering_mode) {
SourceId id = ResonanceAudioApi::kInvalidSourceId;
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
id = resonance_audio_copy->api->CreateSoundObjectSource(rendering_mode);
resonance_audio_copy->api->SetSourceDistanceModel(
id, DistanceRolloffModel::kNone, 0.0f, 0.0f);
}
return id;
}
void DestroySource(ResonanceAudioApi::SourceId id) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->DestroySource(id);
}
}
void ProcessSource(ResonanceAudioApi::SourceId id, size_t num_channels,
size_t num_frames, float* input) {
CHECK(input != nullptr);
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetInterleavedBuffer(id, input, num_channels,
num_frames);
}
}
void SetSourceDirectivity(ResonanceAudioApi::SourceId id, float alpha,
float order) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetSoundObjectDirectivity(id, alpha, order);
}
}
void SetSourceDistanceAttenuation(ResonanceAudioApi::SourceId id,
float distance_attenuation) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetSourceDistanceAttenuation(
id, distance_attenuation);
}
}
void SetSourceGain(ResonanceAudioApi::SourceId id, float gain) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetSourceVolume(id, gain);
}
}
void SetSourceListenerDirectivity(ResonanceAudioApi::SourceId id, float alpha,
float order) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetSoundObjectListenerDirectivity(id, alpha,
order);
}
}
void SetSourceNearFieldEffectGain(ResonanceAudioApi::SourceId id,
float near_field_effect_gain) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetSoundObjectNearFieldEffectGain(
id, near_field_effect_gain);
}
}
void SetSourceOcclusionIntensity(ResonanceAudioApi::SourceId id,
float intensity) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetSoundObjectOcclusionIntensity(id, intensity);
}
}
void SetSourceRoomEffectsGain(ResonanceAudioApi::SourceId id,
float room_effects_gain) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetSourceRoomEffectsGain(id, room_effects_gain);
}
}
void SetSourceSpread(int id, float spread_deg) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetSoundObjectSpread(id, spread_deg);
}
}
void SetSourceTransform(int id, float px, float py, float pz, float qx,
float qy, float qz, float qw) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy != nullptr) {
resonance_audio_copy->api->SetSourcePosition(id, px, py, pz);
resonance_audio_copy->api->SetSourceRotation(id, qx, qy, qz, qw);
}
}
void SetRoomProperties(RoomProperties* room_properties, float* rt60s) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy == nullptr) {
return;
}
if (room_properties == nullptr) {
resonance_audio_copy->api->SetReflectionProperties(
resonance_audio_copy->null_reflection_properties);
resonance_audio_copy->api->SetReverbProperties(
resonance_audio_copy->null_reverb_properties);
return;
}
const auto reflection_properties =
ComputeReflectionProperties(*room_properties);
resonance_audio_copy->api->SetReflectionProperties(reflection_properties);
const auto reverb_properties =
(rt60s == nullptr)
? ComputeReverbProperties(*room_properties)
: ComputeReverbPropertiesFromRT60s(
rt60s, room_properties->reverb_brightness,
room_properties->reverb_time, room_properties->reverb_gain);
resonance_audio_copy->api->SetReverbProperties(reverb_properties);
}
#if !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
bool StartSoundfieldRecorder() {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy == nullptr) {
return false;
}
if (resonance_audio_copy->is_recording_soundfield) {
LOG(ERROR) << "Another soundfield recording already in progress";
return false;
}
resonance_audio_copy->is_recording_soundfield = true;
return true;
}
bool StopSoundfieldRecorderAndWriteToFile(const char* file_path,
bool seamless) {
auto resonance_audio_copy = resonance_audio;
if (resonance_audio_copy == nullptr) {
return false;
}
if (!resonance_audio_copy->is_recording_soundfield) {
LOG(ERROR) << "No recorded soundfield found";
return false;
}
resonance_audio_copy->is_recording_soundfield = false;
if (file_path == nullptr) {
resonance_audio_copy->soundfield_recorder->Reset();
return false;
}
resonance_audio_copy->soundfield_recorder->WriteToFile(
file_path, kRecordQuality, seamless);
return true;
}
#endif // !(defined(PLATFORM_ANDROID) || defined(PLATFORM_IOS))
} // namespace unity
} // namespace vraudio
| 35.627219 | 80 | 0.728617 | seba10000 |
ee441a7ff481ecd2eaa1ada8259930d97c4c0e29 | 1,252 | cpp | C++ | src/rendering/MeshFactory.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | src/rendering/MeshFactory.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | src/rendering/MeshFactory.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | /*
* Copyright by Michal Majczak, 2016
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Author: Michal Majczak <michal.majczak92@gmail.com>
*/
#include "rendering/MeshFactory.hpp"
#include "rendering/MeshData.hpp"
MeshFactory &MeshFactory::GetInstance() {
static MeshFactory instance;
return instance;
}
std::shared_ptr<MeshData> MeshFactory::LoadMesh(std::string path,
std::string file, bool retain) {
std::string name = path + file;
if (m_meshes.find(name) == m_meshes.end()) {
LOGD("Assigning mesh memory: {}", name);
auto meshData = std::make_shared<MeshData>(path, file);
if (meshData->Init()) {
m_meshes[name] = meshData;
m_refCount[name] = (retain ? 2 : 1);
return meshData;
} else {
LOGE("Failed to load mesh: {}", name);
return std::shared_ptr<MeshData>();
}
} else {
auto meshData = m_meshes[name];
m_refCount[name] += 1;
return meshData;
}
}
void MeshFactory::OnRelease(std::shared_ptr<MeshData> data) {
std::string name = data->GetName();
m_refCount[name] -= 1;
if (m_refCount[name] == 0) {
LOGD("Freeing mesh memory: {}", name);
m_meshes.erase(name);
}
}
| 27.217391 | 80 | 0.63099 | MuniuDev |
ee487d40d5949f71594c8685da707df6978c133e | 3,166 | hpp | C++ | include/xul/util/ptime_counter.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 2 | 2018-03-16T07:06:48.000Z | 2018-04-02T03:02:14.000Z | include/xul/util/ptime_counter.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | null | null | null | include/xul/util/ptime_counter.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 1 | 2019-08-12T05:15:29.000Z | 2019-08-12T05:15:29.000Z | #pragma once
#include <xul/util/ptime.hpp>
#include <xul/std/strings.hpp>
#include <boost/config.hpp>
#include <boost/static_assert.hpp>
#include <stdint.h>
namespace xul {
class ptime_counter
{
public:
ptime_counter()
{
sync();
}
explicit ptime_counter(const boost::posix_time::ptime& t) : m_time(t)
{
}
bool operator<(const ptime_counter& t) const
{
return m_time < t.m_time;
}
void sync()
{
m_time = get_system_time();
}
int64_t elapsed() const
{
return get_elapsed_time().total_milliseconds();
}
int64_t get_elapsed() const
{
return get_elapsed_time().total_milliseconds();
}
uint32_t elapsed32() const
{
return static_cast<uint32_t>( get_elapsed() );
}
uint32_t get_elapsed32() const
{
return static_cast<uint32_t>( get_elapsed() );
}
int elapsed_seconds() const
{
return get_elapsed_time().total_seconds();
}
int get_elapsed_seconds() const
{
return get_elapsed_time().total_seconds();
}
boost::posix_time::time_duration elapsed_time() const
{
return get_system_time() - m_time;
}
boost::posix_time::time_duration get_elapsed_time() const
{
return get_system_time() - m_time;
}
const boost::posix_time::ptime& get_time() const
{
return m_time;
}
static boost::posix_time::ptime get_system_time()
{
return boost::posix_time::microsec_clock::universal_time();
}
std::string str() const
{
std::ostringstream os;
os << m_time;
return os.str();
}
private:
boost::posix_time::ptime m_time;
};
/// time counter based on boost.ptime(unit: millisecond)
class local_ptime_counter
{
public:
local_ptime_counter()
{
sync();
}
explicit local_ptime_counter(const boost::posix_time::ptime& t) : m_time(t)
{
}
bool operator<(const local_ptime_counter& t) const
{
return m_time < t.m_time;
}
void sync()
{
m_time = get_system_time();
}
int64_t elapsed() const
{
return (get_system_time() - m_time).total_milliseconds();
}
int64_t get_elapsed() const
{
return (get_system_time() - m_time).total_milliseconds();
}
uint32_t elapsed32() const
{
return static_cast<uint32_t>( elapsed() );
}
boost::posix_time::time_duration elapsed_time() const
{
return get_system_time() - m_time;
}
boost::posix_time::time_duration get_elapsed_time() const
{
return get_system_time() - m_time;
}
const boost::posix_time::ptime& get_time() const
{
return m_time;
}
static boost::posix_time::ptime get_system_time()
{
return boost::posix_time::microsec_clock::local_time();
}
private:
boost::posix_time::ptime m_time;
};
inline std::ostream& operator<<(std::ostream& os, const ptime_counter& t)
{
return os << t.get_time();
}
inline std::ostream& operator<<(std::ostream& os, const local_ptime_counter& t)
{
return os << t.get_time();
}
}
| 20.037975 | 79 | 0.61434 | hindsights |
ee49a1d806abdaf1b962e4e3c7b1119043e4e7f2 | 1,240 | hpp | C++ | src/storage/slice.hpp | steinwurf/storage | 80b445cdd56b6a228c6d6ab294dfad5af30a7694 | [
"BSD-3-Clause"
] | 2 | 2017-12-09T20:36:05.000Z | 2021-02-09T12:37:52.000Z | src/storage/slice.hpp | steinwurf/storage | 80b445cdd56b6a228c6d6ab294dfad5af30a7694 | [
"BSD-3-Clause"
] | 2 | 2016-05-23T12:28:29.000Z | 2018-01-03T13:08:03.000Z | src/storage/slice.hpp | steinwurf/storage | 80b445cdd56b6a228c6d6ab294dfad5af30a7694 | [
"BSD-3-Clause"
] | 1 | 2017-12-09T20:35:20.000Z | 2017-12-09T20:35:20.000Z | // Copyright (c) Steinwurf ApS 2016.
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#pragma once
#include "offset.hpp"
#include "shrink.hpp"
#include <cstdint>
#include <cassert>
namespace storage
{
/// Create a new storage object by slicing the given storage object.
///
/// Example of slicing a storage with offset 3 and size 2:
///
/// Given storage: [0, 1, 2, 3, 4, 5]
/// Returned storage: [3, 4]
///
/// This function makes sure the bounds of the initial storage object is not
/// exceeded.
///
/// @param storage The storage object to be used for the slice operation
/// @param offset The number of bytes to offset the given storage object,
/// must be smaller than the storage object's size.
/// @param size The number of bytes to include in the slice,
/// must be smaller than the offset storage object's size.
/// @return A new, sliced storage object.
template<class Storage>
Storage slice(const Storage& storage, uint64_t offset, uint64_t size)
{
assert(size > 0);
assert(offset < storage.size());
assert(size <= storage.size() - offset);
auto tmp = storage::offset(storage, offset);
return shrink(tmp, size);
}
}
| 29.52381 | 78 | 0.682258 | steinwurf |
ee4a02eda0b482fe77c513baf8e7bc97d0f0fdd2 | 336 | cpp | C++ | libs/config/test/fail.cpp | Manu343726/boost-cmake | 009c3843b49a56880d988ffdca6d909f881edb3d | [
"BSL-1.0"
] | 61 | 2017-07-03T18:36:45.000Z | 2021-09-14T14:57:19.000Z | libs/config/test/fail.cpp | Manu343726/boost-cmake | 009c3843b49a56880d988ffdca6d909f881edb3d | [
"BSL-1.0"
] | 31 | 2018-06-24T19:32:19.000Z | 2019-04-12T14:27:17.000Z | libs/config/test/fail.cpp | Manu343726/boost-cmake | 009c3843b49a56880d988ffdca6d909f881edb3d | [
"BSL-1.0"
] | 31 | 2017-07-04T14:15:34.000Z | 2021-09-12T04:50:41.000Z | #ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include "test.hpp"
@BOOST_CONFIG_TR1_INCLUDE@
@BOOST_CONFIG_IFDEF@ @BOOST_CONFIG_MACRO@
#include "@BOOST_CONFIG_FILE@.ipp"
#else
#error "this file should not compile"
#endif
int main( int, char *[] )
{
return @BOOST_CONFIG_NS@::test();
}
| 17.684211 | 41 | 0.75 | Manu343726 |
ee4ae9e5a0c815364b1014fc4ae33d57284ee7b4 | 451 | cpp | C++ | Leetcode/Reverse_Bits.cpp | ujjwalgulecha/Coding | d04c19d8f673749a00c85cd5e8935960fb7e8b16 | [
"MIT"
] | null | null | null | Leetcode/Reverse_Bits.cpp | ujjwalgulecha/Coding | d04c19d8f673749a00c85cd5e8935960fb7e8b16 | [
"MIT"
] | 1 | 2018-02-14T16:00:44.000Z | 2021-10-17T16:32:50.000Z | Leetcode/Reverse_Bits.cpp | ujjwalgulecha/Coding | d04c19d8f673749a00c85cd5e8935960fb7e8b16 | [
"MIT"
] | null | null | null | class Solution {
public:
uint32_t reverseBits(uint32_t x){
assert(sizeof(x) == 4); // special case: only works for 4 bytes (32 bits).
x = ((x & 0x55555555) << 1) | ((x & 0xAAAAAAAA) >> 1);
x = ((x & 0x33333333) << 2) | ((x & 0xCCCCCCCC) >> 2);
x = ((x & 0x0F0F0F0F) << 4) | ((x & 0xF0F0F0F0) >> 4);
x = ((x & 0x00FF00FF) << 8) | ((x & 0xFF00FF00) >> 8);
x = ((x & 0x0000FFFF) << 16) | ((x & 0xFFFF0000) >> 16);
return x;
}
};
| 30.066667 | 77 | 0.509978 | ujjwalgulecha |
ee4b39be60737b1e44935d1fa414070fbdd5137d | 21,539 | cpp | C++ | libs/libgui/src/nodes/node_base.cpp | mbits-os/JiraDesktop | eb9b66b9c11b2fba1079f03a6f90aea425ce6138 | [
"MIT"
] | null | null | null | libs/libgui/src/nodes/node_base.cpp | mbits-os/JiraDesktop | eb9b66b9c11b2fba1079f03a6f90aea425ce6138 | [
"MIT"
] | null | null | null | libs/libgui/src/nodes/node_base.cpp | mbits-os/JiraDesktop | eb9b66b9c11b2fba1079f03a6f90aea425ce6138 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2015 midnightBITS
*
* 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 "pch.h"
#include <gui/nodes/node_base.hpp>
#include <gui/nodes/text_node.hpp>
#include <assert.h>
#define ASSERT(x) assert(x)
namespace gui {
node_base::node_base(elem name)
: m_nodeName(name)
{
}
node_base::node_base(const node_base& oth)
: m_nodeName{ oth.m_nodeName }
, m_data{ oth.m_data }
, m_classes{ oth.m_classes }
, m_parent{}
{
}
const std::string& node_base::getId() const
{
auto id = m_data.find(Attr::Id);
if (id != m_data.end())
return id->second;
static std::string dummy;
return dummy;
}
void node_base::setId(const std::string& id)
{
m_data[Attr::Id] = id;
}
elem node_base::getNodeName() const
{
return m_nodeName;
}
void node_base::addClass(const std::string& name)
{
auto it = std::find(std::begin(m_classes), std::end(m_classes), name);
if (it == std::end(m_classes))
m_classes.push_back(name);
}
void node_base::removeClass(const std::string& name)
{
auto it = std::find(std::begin(m_classes), std::end(m_classes), name);
if (it != std::end(m_classes))
m_classes.erase(it);
}
bool node_base::hasClass(const std::string& name) const
{
auto it = std::find(std::begin(m_classes), std::end(m_classes), name);
return it != std::end(m_classes);
}
const std::vector<std::string>& node_base::getClassNames() const
{
return m_classes;
}
std::string node_base::text() const
{
auto it = m_data.find(Attr::Text);
if (it != m_data.end())
return it->second;
std::string out;
for (auto& child : m_children) {
out += child->text();
}
return out;
}
void node_base::setTooltip(const std::string& text)
{
m_data[Attr::Tooltip] = text;
}
std::shared_ptr<node> node_base::insertBefore(const std::shared_ptr<node>& newChild, const std::shared_ptr<node>& refChild)
{
if (!refChild)
return appendChild(newChild);
if (!newChild)
return nullptr;
if (!isSupported(newChild))
return nullptr; // instead of HIERARCHY_REQUEST_ERR
if (imChildOf(newChild))
return nullptr; // instead of HIERARCHY_REQUEST_ERR
auto locked = newChild->getParent();
if (locked)
locked->removeChild(newChild);
auto it = std::find(std::begin(m_children), std::end(m_children), refChild);
if (it == std::end(m_children))
return nullptr; // instead of NOT_FOUND_ERR
newChild->setParent(shared_from_this());
newChild->applyStyles(m_stylesheet);
m_children.insert(it, newChild);
onAdded(newChild);
return newChild;
}
std::shared_ptr<node> node_base::replaceChild(const std::shared_ptr<node>& newChild, const std::shared_ptr<node>& oldChild)
{
if (!newChild)
return removeChild(oldChild);
if (imChildOf(newChild))
return nullptr; // instead of HIERARCHY_REQUEST_ERR
auto locked = newChild->getParent();
if (locked)
locked->removeChild(newChild);
auto it = std::find(std::begin(m_children), std::end(m_children), oldChild);
if (it == std::end(m_children))
return nullptr; // instead of NOT_FOUND_ERR
oldChild->setParent({});
oldChild->applyStyles({});
onRemoved(oldChild);
newChild->setParent(shared_from_this());
newChild->applyStyles(m_stylesheet);
*it = newChild;
onAdded(newChild);
return oldChild;
}
std::shared_ptr<node> node_base::removeChild(const std::shared_ptr<node>& oldChild)
{
auto it = std::find(std::begin(m_children), std::end(m_children), oldChild);
if (it == std::end(m_children))
return nullptr; // instead of NOT_FOUND_ERR
oldChild->setParent({});
m_children.erase(it);
layoutRequired();
onRemoved(oldChild);
return oldChild;
}
std::shared_ptr<node> node_base::appendChild(const std::shared_ptr<node>& newChild)
{
if (!newChild || !isSupported(newChild))
return nullptr; // instead of HIERARCHY_REQUEST_ERR
if (imChildOf(newChild))
return nullptr; // instead of HIERARCHY_REQUEST_ERR
auto locked = newChild->getParent();
if (locked)
locked->removeChild(newChild);
newChild->setParent(shared_from_this());
newChild->applyStyles(m_stylesheet);
m_children.push_back(newChild);
onAdded(newChild);
return newChild;
}
void node_base::removeAllChildren()
{
std::vector<std::shared_ptr<node>> nodes;
nodes.swap(m_children);
for (auto& oldChild : nodes)
oldChild->setParent({});
layoutRequired();
for (auto& oldChild : nodes)
onRemoved(oldChild);
}
bool node_base::hasChildNodes() const
{
return !m_children.empty();
}
std::shared_ptr<node> node_base::cloneNode(bool deep) const
{
auto clone = cloneSelf();
if (!clone || !deep)
return clone;
for (auto& child : m_children) {
auto ch = child->cloneNode(true);
if (ch)
clone->appendChild(ch);
}
return clone;
}
const std::vector<std::shared_ptr<node>>& node_base::children() const
{
return m_children;
}
class style_saver {
painter* m_painter;
style_handle m_handle;
public:
style_saver(gui::painter* painter, gui::node* node) : m_painter(painter), m_handle(nullptr)
{
if (!node)
return;
m_handle = m_painter->applyStyle(node);
}
~style_saver()
{
m_painter->restoreStyle(m_handle);
}
};
void node_base::paint(painter* painter)
{
if (!painter->visible(this))
return;
style_saver saver{ painter, this };
auto style = calculatedStyle();
if (!style)
return;
auto& ref = *style;
if (ref.has(styles::prop_background)) {
painter->paintBackground(ref.get(styles::prop_background),
m_box.size.width, m_box.size.height);
}
painter->paintBorder(this);
painter->moveOrigin(m_content.origin);
paintContents(painter);
}
static pixels calculated(const styles::rule_storage& rules,
styles::length_prop prop)
{
if (!rules.has(prop))
return 0.0;
auto u = rules.get(prop);
ASSERT(u.which() == styles::length_u::first_type);
return u.first();
};
void node_base::measure(painter* painter)
{
if (!m_layoutCount)
return; // already calculated
m_layoutCount = 0;
calculateStyles();
style_saver saver{ painter, this };
point tl{ offsetLeft(), offsetTop() };
point br{ offsetRight(), offsetBottom() };
m_content.size = measureContents(painter);
m_content.origin = tl;
auto size = tl + br + m_content.size;
internalSetSize(size.x, size.y);
findContentReach();
}
void node_base::setPosition(const pixels& x, const pixels& y)
{
if (!m_box.size.empty())
invalidate();
m_box.origin = { x, y };
if (!m_box.size.empty())
invalidate();
}
void node_base::setSize(const pixels& width, const pixels& height)
{
internalSetSize(width, height);
auto styles = calculatedStyle();
if (!styles)
return;
auto& ref = *styles;
auto disp = display::inlined;
if (ref.has(styles::prop_display))
disp = ref.get(styles::prop_display);
if (disp == display::table_cell) {
auto align = gui::align::left;
if (ref.has(styles::prop_text_align))
align = ref.get(styles::prop_text_align);
auto inside_padding_w = width - (offsetLeft() + offsetRight());
auto inside_padding_h = height - (offsetTop() + offsetBottom());
//new vector of the content
m_content.origin = { 0, offsetTop() + (inside_padding_h - m_content.size.height) / 2 };
if (align != gui::align::left) {
m_content.origin.x = inside_padding_w - m_content.size.width;
if (align == gui::align::center)
m_content.origin.x = m_content.origin.x / 2;
}
m_content.origin.x += offsetLeft();
updateReach();
}
}
point node_base::getPosition()
{
return m_box.origin;
}
point node_base::getAbsolutePos()
{
auto parent = m_parent.lock();
if (!parent)
return getPosition();
auto pt = parent->getAbsolutePos();
auto off = parent->getContentPosition();
return pt + off + m_box.origin;
}
size node_base::getSize()
{
return m_box.size;
}
box node_base::getMargin()
{
return m_styled.margin;
}
box node_base::getBorder()
{
return m_styled.border;
}
box node_base::getPadding()
{
return m_styled.padding;
}
box node_base::getReach()
{
return m_box.values;
}
point node_base::getContentPosition()
{
return m_content.origin;
}
size node_base::getContentSize()
{
return m_content.size;
}
box node_base::getContentReach()
{
return m_content.values;
}
pixels node_base::getContentBaseline()
{
return m_contentBaseline;
}
pixels node_base::getNodeBaseline()
{
return m_contentBaseline + m_content.origin.y;
}
std::shared_ptr<node> node_base::getParent() const
{
return m_parent.lock();
}
void node_base::setParent(const std::shared_ptr<node>& node)
{
m_parent = node;
}
void node_base::invalidate()
{
invalidate(-m_content.origin, m_box.size);
}
void node_base::invalidate(const point& pt, const size& size)
{
auto p = pt + m_box.origin + m_content.origin;
auto parent = m_parent.lock();
if (parent)
parent->invalidate(p, size);
}
std::shared_ptr<node> node_base::nodeFromPoint(const pixels& x_, const pixels& y_)
{
auto x = x_ - m_box.origin.x;
auto y = y_ - m_box.origin.y;
if (x < 0 || x > m_box.size.width ||
y < 0 || y > m_box.size.height)
return nullptr;
x -= m_content.origin.x;
y -= m_content.origin.y;
for (auto& node : m_children) {
auto tmp = node->nodeFromPoint(x, y);
if (tmp)
return tmp;
}
return shared_from_this();
}
void node_base::setHovered(bool hovered)
{
bool changed = false;
if (hovered) {
auto value = ++m_hoverCount;
changed = value == 1;
}
else {
auto value = --m_hoverCount;
changed = value == 0;
}
if (changed) {
invalidate();
auto parent = getParent();
if (parent)
parent->setHovered(hovered);
}
}
bool node_base::getHovered() const
{
return m_hoverCount > 0;
}
void node_base::setActive(bool active)
{
bool changed = false;
if (active) {
auto value = ++m_activeCount;
changed = value == 1;
}
else {
auto value = --m_activeCount;
changed = value == 0;
}
if (changed) {
invalidate();
auto parent = getParent();
if (parent)
parent->setActive(active);
}
}
bool node_base::getActive() const
{
return m_activeCount > 0;
}
void node_base::activate()
{
auto it = m_data.find(Attr::Href);
if (it != m_data.end() && !it->second.empty()) {
openLink(it->second);
return;
}
auto parent = m_parent.lock();
if (parent)
parent->activate();
}
void node_base::paintContents(painter* painter)
{
for (auto& node : m_children) {
push_origin push{ painter };
painter->moveOrigin(node->getPosition());
node->paint(painter);
}
}
pointer node_base::getCursor() const
{
auto styles = calculatedStyle();
if (styles) {
if (styles->has(styles::prop_cursor)) {
auto c = styles->get(styles::prop_cursor);
if (c != pointer::inherited)
return c;
}
}
auto parent = m_parent.lock();
if (parent)
return parent->getCursor();
return pointer::inherited;
}
bool node_base::hasTooltip() const
{
auto it = m_data.find(Attr::Tooltip);
return it != m_data.end();
}
const std::string& node_base::getTooltip() const
{
auto it = m_data.find(Attr::Tooltip);
if (it != m_data.end())
return it->second;
static std::string dummy;
return dummy;
}
void node_base::innerText(const std::string& text)
{
m_children.clear();
appendChild(std::make_shared<text_node>(text));
}
std::shared_ptr<styles::rule_storage> node_base::calculatedStyle() const
{
if (getHovered()) {
return getActive() ? m_calculatedHoverActive : m_calculatedHover;
}
return getActive() ? m_calculatedActive : m_calculated;
}
std::shared_ptr<styles::rule_storage> node_base::normalCalculatedStyles() const
{
return m_calculated;
}
std::shared_ptr<styles::stylesheet> node_base::styles() const
{
return m_allApplying;
}
void node_base::applyStyles(const std::shared_ptr<styles::stylesheet>& stylesheet)
{
m_allApplying = std::make_shared<styles::stylesheet>();
m_stylesheet = stylesheet;
if (stylesheet) {
for (auto& rules : stylesheet->m_rules) {
if (rules->m_sel.maySelect(this))
m_allApplying->m_rules.push_back(rules);
}
}
for (auto& node : children())
node->applyStyles(stylesheet);
layoutRequired();
}
pixels calculatedFontSize(node* node)
{
using namespace styles;
using namespace literals;
if (!node)
return 14_px;
auto styles = node->normalCalculatedStyles();
if (styles && styles->has(prop_font_size)) {
auto u = styles->get(prop_font_size);
ASSERT(u.which() == length_u::first_type);
return u.first();
}
return calculatedFontSize(node->getParent().get());
}
pixels parentFontSize(node* node)
{
return calculatedFontSize(node->getParent().get());
}
pixels calculate(styles::rule_storage& rules,
styles::length_prop prop,
const pixels& px)
{
using namespace styles;
if (rules.has(prop)) {
auto u = rules.get(prop);
if (u.which() == styles::length_u::first_type)
return u.first();
if (u.which() == styles::length_u::second_type) {
auto em = u.second();
auto ret = em.value(px);
rules <<= def::rule(prop, ret);
return ret;
}
}
return px;
}
void calculate(styles::rule_storage& rules, node* node)
{
using namespace styles;
auto fontSize = calculate(rules, prop_font_size, parentFontSize(node));
calculate(rules, styles::prop_border_top_width, fontSize);
calculate(rules, styles::prop_border_right_width, fontSize);
calculate(rules, styles::prop_border_bottom_width, fontSize);
calculate(rules, styles::prop_border_left_width, fontSize);
calculate(rules, prop_padding_top, fontSize);
calculate(rules, prop_padding_right, fontSize);
calculate(rules, prop_padding_bottom, fontSize);
calculate(rules, prop_padding_left, fontSize);
calculate(rules, prop_margin_top, fontSize);
calculate(rules, prop_margin_right, fontSize);
calculate(rules, prop_margin_bottom, fontSize);
calculate(rules, prop_margin_left, fontSize);
}
void node_base::calculateStyles()
{
styles::rule_storage
normal,
hover,
active;
for (auto& rule : m_allApplying->m_rules) {
if (rule->m_sel.m_pseudoClass == styles::pseudo::hover)
hover <<= *rule;
else if (rule->m_sel.m_pseudoClass == styles::pseudo::active)
active <<= *rule;
else
normal <<= *rule;
}
calculate(normal, this);
calculate(hover, this);
calculate(active, this);
m_calculated = std::make_shared<styles::rule_storage>(normal);
if (hover.empty())
m_calculatedHover = m_calculated;
else {
m_calculatedHover = std::make_shared<styles::rule_storage>(normal);
*m_calculatedHover <<= hover;
}
if (active.empty()) {
m_calculatedActive = m_calculated;
m_calculatedHoverActive = m_calculatedHover;
}
else {
m_calculatedActive = std::make_shared<styles::rule_storage>(normal);
*m_calculatedActive <<= active;
if (hover.empty())
m_calculatedHoverActive = m_calculatedActive;
else {
m_calculatedHoverActive = std::make_shared<styles::rule_storage>(*m_calculatedHover);
*m_calculatedHoverActive <<= active;
}
}
updateBoxes();
}
static void setBox(styles::rule_storage& ref, gui::box& box,
styles::length_prop top, styles::length_prop right,
styles::length_prop bottom, styles::length_prop left)
{
box.top = calculated(ref, top);
box.right = calculated(ref, right);
box.bottom = calculated(ref, bottom);
box.left = calculated(ref, left);
}
void node_base::updateBoxes()
{
m_styled = {};
auto style = calculatedStyle();
if (!style)
return;
auto& ref = *style;
using namespace styles;
setBox(ref, m_styled.margin, prop_margin_top, prop_margin_right, prop_margin_bottom, prop_margin_left);
setBox(ref, m_styled.border, prop_border_top_width, prop_border_right_width, prop_border_bottom_width, prop_border_left_width);
setBox(ref, m_styled.padding, prop_padding_top, prop_padding_right, prop_padding_bottom, prop_padding_left);
updateReach();
}
void node_base::findContentReach()
{
pixels before, after;
if (!m_children.empty()) {
auto& child = m_children[0];
auto reach = child->getReach();
auto height = child->getSize().height;
auto y = child->getPosition().y;
before = y - reach.top;
after = y + height + reach.bottom;
}
for (auto& child : m_children) {
auto reach = child->getReach();
auto height = child->getSize().height;
auto y = child->getPosition().y;
auto B = y - reach.top;
auto A = y + height + reach.bottom;
if (before > B)
before = B;
if (after < A)
after = A;
}
m_content.values = { m_content.origin.y - before, 0, after - (m_content.origin.y + m_content.size.height) };
updateReach();
}
void node_base::updateReach()
{
m_box.values.left = m_styled.margin.left;
m_box.values.right = m_styled.margin.right;
m_box.values.top = std::max(m_styled.margin.top, m_content.values.top - m_content.origin.y);
auto content_after = m_box.size.height - m_content.origin.y - m_content.size.height;
m_box.values.bottom = std::max(m_styled.margin.bottom, m_content.values.bottom - content_after);
}
pixels node_base::offsetLeft() const
{
return m_styled.border.left + m_styled.padding.left;
}
pixels node_base::offsetTop() const
{
return m_styled.border.top + m_styled.padding.top;
}
pixels node_base::offsetRight() const
{
return m_styled.border.right + m_styled.padding.right;
}
pixels node_base::offsetBottom() const
{
return m_styled.border.bottom + m_styled.padding.bottom;
}
bool node_base::isTabStop() const
{
return false;
}
std::shared_ptr<node> node_base::getNextItem(bool freshLookup) const
{
auto here = const_cast<node_base*>(this)->shared_from_this();
auto start = freshLookup ? nullptr : here;
while (here) {
auto ptr = static_cast<node_base*>(here.get())->nextTabStop(start);
if (ptr) return ptr;
start = here;
here = here->getParent();
}
return{};
}
std::shared_ptr<node> node_base::getPrevItem(bool freshLookup) const
{
auto here = const_cast<node_base*>(this)->shared_from_this();
auto start = freshLookup ? nullptr : here;
while (here) {
auto ptr = static_cast<node_base*>(here.get())->prevTabStop(start);
if (ptr) return ptr;
start = here;
here = here->getParent();
}
return{};
}
std::shared_ptr<node> node_base::nextTabStop(const std::shared_ptr<node>& start) const
{
if (!start && isTabStop())
return const_cast<node_base*>(this)->shared_from_this(); // const...
auto begin = std::begin(m_children);
auto end = std::end(m_children);
auto restart = start && start.get() != this;
auto it = restart ? std::find(begin, end, start) : begin;
if (restart) {
if (it == end)
return{};
++it;
}
for (; it != end; ++it) {
auto ret = static_cast<node_base*>(it->get())->nextTabStop({});
if (ret)
return ret;
}
return{};
}
std::shared_ptr<node> node_base::prevTabStop(const std::shared_ptr<node>& start) const
{
if (start.get() == this)
return{}; // this node was visited as lats one in this subtree, moving up
auto begin = std::rbegin(m_children);
auto end = std::rend(m_children);
auto restart = !!start;
auto it = restart ? std::find(begin, end, start) : begin;
if (restart) {
if (it == end)
return{};
++it;
}
for (; it != end; ++it) {
auto ret = static_cast<node_base*>(it->get())->prevTabStop({});
if (ret)
return ret;
}
if (isTabStop())
return const_cast<node_base*>(this)->shared_from_this();
return{};
}
bool node_base::isSupported(const std::shared_ptr<node>&)
{
auto it = m_data.find(Attr::Text);
return it == m_data.end();
}
void node_base::onAdded(const std::shared_ptr<node>&)
{
}
void node_base::onRemoved(const std::shared_ptr<node>&)
{
}
void node_base::layoutRequired()
{
m_calculated.reset();
m_calculatedHover.reset();
m_calculatedActive.reset();
m_calculatedHoverActive.reset();
++m_layoutCount;
auto parent = getParent();
if (parent)
static_cast<node_base&>(*parent).layoutRequired();
}
void node_base::internalSetSize(const pixels& width, const pixels& height)
{
if (!m_box.size.empty())
invalidate();
m_box.size = { width, height };
if (!m_box.size.empty())
invalidate();
}
bool node_base::imChildOf(const std::shared_ptr<node>& tested) const
{
auto parent = m_parent.lock();
while (parent) {
if (parent == tested)
return true;
parent = parent->getParent();
}
return false;
}
}
| 22.389813 | 129 | 0.678351 | mbits-os |
ee4c54c9194aabeabfb2223ea9c244f4796bbf54 | 480 | cpp | C++ | baekjoon/4673.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | 1 | 2019-07-15T00:27:37.000Z | 2019-07-15T00:27:37.000Z | baekjoon/4673.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | baekjoon/4673.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | #include<stdio.h>
int pow10(int x){
int prod = 1;
for (int i=0;i<x;i++){
prod *= 10;
}
return prod;
}
int d(int n){
int sum = n;
int i = 0;
while (1){
if (n >= pow10(i)){
sum += n % pow10(i+1)/pow10(i);
i++;
}
else{
return sum;
}
}
}
int main(void){
int arr[20000];
int i;
for (i=1;i<=10000;i++){
arr[d(i)] = 1;
}
for (i=1;i<=10000;i++){
if (arr[i] != 1){
printf("%d\n",i);
}
}
return 0;
}
| 12.307692 | 37 | 0.427083 | 3-24 |
ee4f5d8c9fadc2cd013ffc4a0a6627211de39ba6 | 815 | cpp | C++ | cs6378-advanced-operating-systems/program3/program3/globals.cpp | gsteelman/utd | 65bf3b81b7a089612f6c7546aa0bbdfbdcdb334e | [
"Apache-2.0"
] | 3 | 2017-03-17T15:15:11.000Z | 2020-10-01T16:05:17.000Z | cs6378-advanced-operating-systems/program3/program3/globals.cpp | gsteelman/utd | 65bf3b81b7a089612f6c7546aa0bbdfbdcdb334e | [
"Apache-2.0"
] | null | null | null | cs6378-advanced-operating-systems/program3/program3/globals.cpp | gsteelman/utd | 65bf3b81b7a089612f6c7546aa0bbdfbdcdb334e | [
"Apache-2.0"
] | 7 | 2016-02-07T22:56:26.000Z | 2021-02-26T02:50:28.000Z | #include "RNG.h"
#include "network_constructs.h"
#include <unistd.h>
#include "globals.h"
unsigned int NODE_NETWORK_SIZE = 0;
unsigned int NODE_SUBNET_SIZE = 0;
node_contact_t NODE_INFO;
unsigned int NODE_NETWORK_MASTER = 0;
// Yup
const unsigned int BASE_GROUP = 0;
const unsigned int CLIENT_GROUP = 1;
const unsigned int SERVER_GROUP = 2;
RNG<unsigned int> rng;
void wait_ms_duration( unsigned int duration ) {
usleep( duration * 1000 );
}
void wait_ms_between( unsigned int min, unsigned int max ) {
unsigned int duration = rng.randRange( min, max );
usleep( duration * 1000 );
}
void wait_s_duration( unsigned int duration ) {
sleep( duration );
}
void wait_s_between( unsigned int min, unsigned int max ) {
unsigned int duration = rng.randRange( min, max );
sleep( duration );
}
| 22.027027 | 60 | 0.721472 | gsteelman |
ee50c2cb2a4a4d3e65be388928abdd0388852382 | 11,028 | cpp | C++ | research/nlp/textrcnn/infer/mxbase/src/TextrcnnBase.cpp | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/nlp/textrcnn/infer/mxbase/src/TextrcnnBase.cpp | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/nlp/textrcnn/infer/mxbase/src/TextrcnnBase.cpp | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "TextrcnnBase.h"
#include <unistd.h>
#include <sys/stat.h>
#include <iostream>
#include <map>
#include <fstream>
#include "MxBase/DeviceManager/DeviceManager.h"
#include "MxBase/Log/Log.h"
const uint32_t EACH_LABEL_LENGTH = 1;
const uint32_t MAX_LENGTH = 50;
const uint32_t CLASS_NUM = 2;
/*
Load the label from label path.
*/
APP_ERROR TextrcnnBase::load_labels(const std::string &labelPath, std::vector<std::string> *labelMap) {
std::ifstream infile;
// open label file
infile.open(labelPath, std::ios_base::in);
std::string s;
// check label file validity
if (infile.fail()) {
LogError << "Failed to open label file: " << labelPath << ".";
return APP_ERR_COMM_OPEN_FAIL;
}
labelMap->clear();
// construct label vector
while (std::getline(infile, s)) {
if (s.size() == 0 || s[0] == '#') {
continue;
}
size_t eraseIndex = s.find_last_not_of("\r\n\t");
if (eraseIndex != std::string::npos) {
s.erase(eraseIndex + 1, s.size() - eraseIndex);
}
labelMap->push_back(s);
}
infile.close();
return APP_ERR_OK;
}
/*
Constructor
*/
APP_ERROR TextrcnnBase::init(const InitParam &initParam) {
deviceId_ = initParam.deviceId;
APP_ERROR ret = MxBase::DeviceManager::GetInstance()->InitDevices();
if (ret != APP_ERR_OK) {
LogError << "Init devices failed, ret=" << ret << ".";
return ret;
}
ret = MxBase::TensorContext::GetInstance()->SetContext(initParam.deviceId);
if (ret != APP_ERR_OK) {
LogError << "Set context failed, ret=" << ret << ".";
return ret;
}
dvppWrapper_ = std::make_shared<MxBase::DvppWrapper>();
ret = dvppWrapper_->Init();
if (ret != APP_ERR_OK) {
LogError << "DvppWrapper init failed, ret=" << ret << ".";
return ret;
}
model_ = std::make_shared<MxBase::ModelInferenceProcessor>();
ret = model_->Init(initParam.modelPath, modelDesc_);
if (ret != APP_ERR_OK) {
LogError << "ModelInferenceProcessor init failed, ret=" << ret << ".";
return ret;
}
classNum_ = initParam.classNum;
// load labels from file
ret = load_labels(initParam.labelPath, &labelMap_);
if (ret != APP_ERR_OK) {
LogError << "Failed to load labels, ret=" << ret << ".";
return ret;
}
return APP_ERR_OK;
}
/*
Destructor
*/
APP_ERROR TextrcnnBase::de_init() {
dvppWrapper_->DeInit();
model_->DeInit();
MxBase::DeviceManager::GetInstance()->DestroyDevices();
return APP_ERR_OK;
}
/*
Read Tensor from input binary file.
*/
APP_ERROR TextrcnnBase::read_tensor_from_file(const std::string &file, uint32_t *data, uint32_t size) {
if (data == NULL || size < MAX_LENGTH) {
LogError << "input data is invalid.";
return APP_ERR_COMM_INVALID_POINTER;
}
std::ifstream infile;
// open label file
infile.open(file, std::ios_base::in | std::ios_base::binary);
// check label file validity
if (infile.fail()) {
LogError << "Failed to open label file: " << file << ".";
return APP_ERR_COMM_OPEN_FAIL;
}
infile.read(reinterpret_cast<char*>(data), sizeof(uint32_t) * MAX_LENGTH);
infile.close();
return APP_ERR_OK;
}
/*
Generate tensor for input into model.
*/
APP_ERROR TextrcnnBase::read_input_tensor(const std::string &fileName, uint32_t index,
std::vector<MxBase::TensorBase> *inputs) {
uint32_t data[MAX_LENGTH] = {0};
APP_ERROR ret = read_tensor_from_file(fileName, data, MAX_LENGTH);
if (ret != APP_ERR_OK) {
LogError << "read_tensor_from_file failed.";
return ret;
}
const uint32_t dataSize = modelDesc_.inputTensors[index].tensorSize;
MxBase::MemoryData memoryDataDst(dataSize, MxBase::MemoryData::MEMORY_DEVICE, deviceId_);
MxBase::MemoryData memoryDataSrc(reinterpret_cast<void*>(data), dataSize, MxBase::MemoryData::MEMORY_HOST_MALLOC);
ret = MxBase::MemoryHelper::MxbsMallocAndCopy(memoryDataDst, memoryDataSrc);
if (ret != APP_ERR_OK) {
LogError << GetError(ret) << "Memory malloc and copy failed.";
return ret;
}
std::vector<uint32_t> shape = {1, MAX_LENGTH};
inputs->push_back(MxBase::TensorBase(memoryDataDst, false, shape, MxBase::TENSOR_DTYPE_UINT32));
return APP_ERR_OK;
}
/*
Get the input tensor, infer the output tensor.
*/
APP_ERROR TextrcnnBase::inference(const std::vector<MxBase::TensorBase> &inputs,
std::vector<MxBase::TensorBase> *outputs) {
auto dtypes = model_->GetOutputDataType();
for (size_t i = 0; i < modelDesc_.outputTensors.size(); ++i) {
std::vector<uint32_t> shape = {};
for (size_t j = 0; j < modelDesc_.outputTensors[i].tensorDims.size(); ++j) {
shape.push_back((uint32_t)modelDesc_.outputTensors[i].tensorDims[j]);
}
MxBase::TensorBase tensor(shape, dtypes[i], MxBase::MemoryData::MemoryType::MEMORY_DEVICE, deviceId_);
APP_ERROR ret = MxBase::TensorBase::TensorBaseMalloc(tensor);
if (ret != APP_ERR_OK) {
LogError << "TensorBaseMalloc failed, ret=" << ret << ".";
return ret;
}
outputs->push_back(tensor);
}
MxBase::DynamicInfo dynamicInfo = {};
dynamicInfo.dynamicType = MxBase::DynamicType::STATIC_BATCH;
auto startTime = std::chrono::high_resolution_clock::now();
APP_ERROR ret = model_->ModelInference(inputs, *outputs, dynamicInfo);
auto endTime = std::chrono::high_resolution_clock::now();
double costMs = std::chrono::duration<double, std::milli>(endTime - startTime).count();
g_infer_cost.push_back(costMs);
if (ret != APP_ERR_OK) {
LogError << "ModelInference failed, ret=" << ret << ".";
return ret;
}
return APP_ERR_OK;
}
/*
Transform the output tensor into category label.
*/
APP_ERROR TextrcnnBase::post_process(std::vector<MxBase::TensorBase> *outputs, std::vector<uint32_t> *argmax) {
MxBase::TensorBase &tensor = outputs->at(0);
APP_ERROR ret = tensor.ToHost();
if (ret != APP_ERR_OK) {
LogError << GetError(ret) << "Tensor deploy to host failed.";
return ret;
}
// // check tensor is available, print the output shape of model.
// auto outputShape = tensor.GetShape();
// uint32_t length = outputShape[0];
// uint32_t classNum = outputShape[1];
// LogInfo << "output shape is: " << outputShape[0] << " "<< outputShape[1] << std::endl;
void* data = tensor.GetBuffer();
// the type of model output should be float16, 'short' is used here, the size relationship remains the same
int16_t value0 = *(reinterpret_cast<int16_t*>(data));
int16_t value1 = *(reinterpret_cast<int16_t*>(data) + 1);
// LogInfo << "[ " << value0 << " " << value1 << " ] ";
uint32_t argmaxIndex = value1 > value0 ? 1 : 0;
argmax->push_back(argmaxIndex);
return APP_ERR_OK;
}
/*
Count the predict results.
*/
APP_ERROR TextrcnnBase::count_predict_result(const std::string &labelFile, const std::vector<uint32_t> &argmax) {
uint32_t data[MAX_LENGTH] = {0};
APP_ERROR ret = read_tensor_from_file(labelFile, data, MAX_LENGTH);
if (ret != APP_ERR_OK) {
LogInfo << "count_predict_result";
LogError << "read_tensor_from_file failed.";
return ret;
}
if (argmax[0] == 1) { // Prediction
if (data[0] == 1) { // Fact label
g_tp += 1;
} else {
g_fp += 1;
}
} else {
if (data[0] == 1) {
g_fn += 1;
} else {
g_tn += 1;
}
}
LogInfo << "TP: " << g_tp << ", FP: " << g_fp << ", FN: " << g_fn << ", TN: " << g_tn;
return APP_ERR_OK;
}
/*
Append the infer result to terminal and file: "../result/result.txt".
*/
APP_ERROR TextrcnnBase::write_result(const std::string &fileName, const std::vector<uint32_t> &argmax) {
std::string resultPathName = "result";
// create result directory when it does not exit
if (access(resultPathName.c_str(), 0) != 0) {
int ret = mkdir(resultPathName.c_str(), S_IRUSR | S_IWUSR | S_IXUSR);
if (ret != 0) {
LogError << "Failed to create result directory: " << resultPathName << ", ret = " << ret;
return APP_ERR_COMM_OPEN_FAIL;
}
}
// create result file under result directory
resultPathName = resultPathName + "/result.txt";
std::ofstream tfile(resultPathName, std::ofstream::app);
if (tfile.fail()) {
LogError << "Failed to open result file: " << resultPathName;
return APP_ERR_COMM_OPEN_FAIL;
}
// write inference result into file
LogInfo << "infer result of " << fileName << " is: " << labelMap_[argmax[0]];
tfile << "infer result of " << fileName << " is: " << labelMap_[argmax[0]] << std::endl;
tfile.close();
return APP_ERR_OK;
}
/*
The main function that call other functions to complete the whole process of one binary file.
*/
APP_ERROR TextrcnnBase::process(const std::string &inferPath, const std::string &fileName, bool eval) {
std::vector<MxBase::TensorBase> inputs = {};
std::string inputIdsFile = inferPath + "/00_feature/" + fileName;
APP_ERROR ret = read_input_tensor(inputIdsFile, INPUT_IDS, &inputs);
if (ret != APP_ERR_OK) {
LogError << "Read input ids failed, ret=" << ret << ".";
return ret;
}
std::vector<MxBase::TensorBase> outputs = {};
ret = inference(inputs, &outputs);
if (ret != APP_ERR_OK) {
LogError << "Inference failed, ret=" << ret << ".";
return ret;
}
std::vector<uint32_t> argmax;
ret = post_process(&outputs, &argmax);
if (ret != APP_ERR_OK) {
LogError << "post_process failed, ret=" << ret << ".";
return ret;
}
ret = write_result(fileName, argmax);
if (ret != APP_ERR_OK) {
LogError << "save result failed, ret=" << ret << ".";
return ret;
}
if (eval) {
std::string labelFile = inferPath + "/labels/" + fileName;
ret = count_predict_result(labelFile, argmax);
if (ret != APP_ERR_OK) {
LogError << "CalcF1Score read label failed, ret=" << ret << ".";
return ret;
}
}
LogInfo << "==============================================================";
return APP_ERR_OK;
}
| 34.788644 | 118 | 0.621872 | leelige |