blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
listlengths
1
1
author
stringlengths
0
119
f5a7aabaf2777e4074aeb9a981c1eec8e636a638
9fd1e88ae01342d21e8fca85fae94c5cb3823b88
/src/relay/op/dyn/nn/upsampling.cc
9ed3298142af814e11eec5c0ca493f8bb0d864bb
[ "Apache-2.0", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-2-Clause" ]
permissive
gussmith23/tvm
1bf32224275e0242287c6b23cc7649d878bf40c3
e02dc69fef294eb73dd65d18949ed9e108f60cda
refs/heads/master
2022-06-13T17:38:50.709735
2020-09-14T14:51:06
2020-09-14T14:51:06
157,422,354
3
0
Apache-2.0
2018-11-13T17:51:08
2018-11-13T17:51:07
null
UTF-8
C++
false
false
7,376
cc
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /*! * \file upsampling.cc * \brief upsampling operator */ #include "../../nn/upsampling.h" #include <tvm/relay/attrs/nn.h> #include <tvm/relay/op.h> #include <tvm/relay/op_attr_types.h> #include <tvm/tir/data_layout.h> #include <vector> #include "../../op_common.h" namespace tvm { namespace relay { namespace dyn { bool UpSamplingRel(const Array<Type>& types, int num_inputs, const Attrs& attrs, const TypeReporter& reporter) { // types = [data_type, scale_h_type, scale_w_type, ret_type] CHECK_EQ(types.size(), 4); const auto* data = types[0].as<TensorTypeNode>(); const auto* scale_h = types[1].as<TensorTypeNode>(); const auto* scale_w = types[2].as<TensorTypeNode>(); if (data == nullptr) return false; if (scale_h == nullptr) return false; if (scale_w == nullptr) return false; CHECK_EQ(data->shape.size(), 4); CHECK_EQ(scale_h->shape.size(), 0); CHECK_EQ(scale_w->shape.size(), 0); static const Layout kNCHW("NCHW"); const UpSamplingAttrs* param = attrs.as<UpSamplingAttrs>(); CHECK(param); const Layout in_layout(param->layout); auto layout_converter = tir::BijectiveLayout(in_layout, kNCHW); CHECK(layout_converter.defined()) << "UpSampling only supports input layouts that are convertible from NCHW." << " But got " << in_layout; auto nchw_oshape = layout_converter.ForwardShape(data->shape); nchw_oshape.Set(2, Any()); nchw_oshape.Set(3, Any()); auto oshape = layout_converter.BackwardShape(nchw_oshape); reporter->Assign(types[3], TensorType(oshape, data->dtype)); return true; } // Positional relay function to create upsampling operator // used by frontend FFI. Expr MakeUpSampling(Expr data, Expr scale_h, Expr scale_w, String layout, String method, bool align_corners) { auto attrs = make_object<UpSamplingAttrs>(); attrs->layout = std::move(layout); attrs->method = std::move(method); attrs->align_corners = align_corners; static const Op& op = Op::Get("dyn.nn.upsampling"); return Call(op, {data, scale_h, scale_w}, Attrs(attrs), {}); } TVM_REGISTER_GLOBAL("relay.op.dyn.nn._make.upsampling").set_body_typed(MakeUpSampling); RELAY_REGISTER_OP("dyn.nn.upsampling") .describe( R"code(Perform upsampling on input array with nearest neighbour or bilinear interpolation. - **data**: data is 4D array of shape (batch_size, channels, in_height, in_width) for NCHW (batch_size, in_height, in_width, channels) for NHWC - **scale_h**: scale_h is a double of the amount to scale height by - **scale_w**: scale_w is a double of the amount to scale width by - **out**: Output is 4D array of shape for layout NCHW (batch_size, channels, in_height*scale_h, in_width*scale_w) for layout NHWC (batch_size, in_height*scale_h, in_width*scale_w, channels) )code" TVM_ADD_FILELINE) .set_attrs_type<UpSamplingAttrs>() .set_num_inputs(3) .add_argument("data", "Tensor", "The input tensor.") .add_argument("scale_h", "double", "The scale for the height.") .add_argument("scale_w", "double", "The scale for the width.") .set_support_level(2) .add_type_rel("DynamicUpSampling", UpSamplingRel) .set_attr<FInferCorrectLayout>("FInferCorrectLayout", UpsamplingInferCorrectLayout<UpSamplingAttrs>) .set_attr<TOpPattern>("TOpPattern", kInjective); // UpSampling3D bool UpSampling3DRel(const Array<Type>& types, int num_inputs, const Attrs& attrs, const TypeReporter& reporter) { // types = [data_type, scale_d_type, scale_h_type, scale_w_type, ret_type] CHECK_EQ(types.size(), 5); const auto* data = types[0].as<TensorTypeNode>(); if (data == nullptr) return false; static const Layout kNCDHW("NCDHW"); const UpSampling3DAttrs* param = attrs.as<UpSampling3DAttrs>(); CHECK(param != nullptr); const Layout in_layout(param->layout); auto layout_converter = tir::BijectiveLayout(in_layout, kNCDHW); CHECK(layout_converter.defined()) << "UpSampling3D only support input layouts that are convertible from NCDHW." << " But got " << in_layout; auto ncdhw_oshape = layout_converter.ForwardShape(data->shape); ncdhw_oshape.Set(2, Any()); ncdhw_oshape.Set(3, Any()); ncdhw_oshape.Set(4, Any()); auto oshape = layout_converter.BackwardShape(ncdhw_oshape); reporter->Assign(types[4], TensorType(oshape, data->dtype)); return true; } Expr MakeUpSampling3D(Expr data, Expr scale_d, Expr scale_h, Expr scale_w, String layout, String method, String coordinate_transformation_mode) { auto attrs = make_object<UpSampling3DAttrs>(); attrs->layout = std::move(layout); attrs->method = std::move(method); attrs->coordinate_transformation_mode = coordinate_transformation_mode; static const Op& op = Op::Get("dyn.nn.upsampling3d"); return Call(op, {data, scale_d, scale_h, scale_w}, Attrs(attrs), {}); } TVM_REGISTER_GLOBAL("relay.op.dyn.nn._make.upsampling3d").set_body_typed(MakeUpSampling3D); RELAY_REGISTER_OP("dyn.nn.upsampling3d") .describe(R"code(Perform upsampling on input array with nearest neighbour or bilinear interpolation. - **data**: data is 5D array of shape (batch_size, channels, in_depth, in_height, in_width) for NCDHW (batch_size, in_depth, in_height, in_width, channels) for NDHWC - **scale_d**: scale_d is a double of the amount to scale depth by - **scale_h**: scale_h is a double of the amount to scale height by - **scale_w**: scale_w is a double of the amount to scale width by - **out**: Output is 5D array of shape for layout NCDHW (batch_size, channels, in_depth*scale_d, in_height*scale_h, in_width*scale_w) for layout NDHWC (batch_size, in_depth*scale_d, in_height*scale_h, in_width*scale_w, channels) )code" TVM_ADD_FILELINE) .set_attrs_type<UpSampling3DAttrs>() .set_num_inputs(4) .add_argument("data", "Tensor", "The input tensor.") .add_argument("scale_d", "double", "The scale for the depth.") .add_argument("scale_h", "double", "The scale for the height.") .add_argument("scale_w", "double", "The scale for the width.") .set_support_level(2) .add_type_rel("DynamicUpSampling3D", UpSampling3DRel) .set_attr<FInferCorrectLayout>("FInferCorrectLayout", UpsamplingInferCorrectLayout<UpSampling3DAttrs>) .set_attr<TOpPattern>("TOpPattern", kInjective); } // namespace dyn } // namespace relay } // namespace tvm
[ "noreply@github.com" ]
noreply@github.com
31cc2519f21960fcf9d466e197a89a4668183ea6
262a7c960369d2fd992712b49708296c074df9cf
/isim/work/test3_tb_0/testbench_arch.h
fcac5e97090ec898b1ad59dbd657f3fb8921de27
[]
no_license
amoghgajare/8-bitMicroprocessorVHDL
8c01075fb1f74ae63591078ebe40003bbec65fb0
3b606c8fb94402d1519413d82c8eae4934fdafba
refs/heads/master
2020-05-24T03:27:24.452876
2019-05-16T17:25:55
2019-05-16T17:25:55
187,072,613
3
0
null
null
null
null
UTF-8
C++
false
false
1,028
h
//////////////////////////////////////////////////////////////////////////////// // ____ ____ // / /\/ / // /___/ \ / // \ \ \/ // \ \ Copyright (c) 2003-2004 Xilinx, Inc. // / / All Right Reserved. // /---/ /\ // \ \ / \ // \___\/\___\ //////////////////////////////////////////////////////////////////////////////// #ifndef H_Work_test3_tb_0_testbench_arch_H #define H_Work_test3_tb_0_testbench_arch_H #ifdef __MINGW32__ #include "xsimMinGW.h" #else #include "xsim.h" #endif class Work_test3_tb_0_testbench_arch: public HSim__s6 { public: HSimFileVar Results; HSim__s4 C14; HSim__s4 C18; HSim__s4 C1b; HSim__s1 SA[5]; Work_test3_tb_0_testbench_arch(const char * name); ~Work_test3_tb_0_testbench_arch(); void constructObject(); void constructPorts(); void reset(); void architectureInstantiate(HSimConfigDecl* cfg); virtual void vhdlArchImplement(); }; HSim__s6 *createWork_test3_tb_0_testbench_arch(const char *name); #endif
[ "amoghsgajare@gmail.com" ]
amoghsgajare@gmail.com
5b023d9e6e865dbcb74cc2c8f6c9061269d1904b
5e6739acd017187769bb5d50158a970a81a412ca
/evaluation.cpp
695b2cc187c98884f45bbf16d2fd07a433be9f6e
[]
no_license
Sylla/evaluator
cb17fbbf3b192102cded4505d6fea7d9d7e41076
8153f1fe2da621d1737b59a57a811d6aeb24b22c
refs/heads/master
2020-04-06T05:49:12.789468
2013-01-08T18:22:58
2013-01-08T18:22:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,565
cpp
#include "evaluation.h" #include <stdlib.h> evaluation::evaluation(int argc, char *argv[]) { int c; char optv[] = "f:i:t::"; bool TextUIenable = true; while ( (c = getopt(argc, argv, optv)) != -1) { switch(c) { case 'f': packetManagement = new packetManagement_(NULL, optarg, &statistic); break; case 'i': packetManagement = new packetManagement_(optarg, NULL, &statistic); break; case 't': TextUIenable = false; break; case'?': if (optopt == 'c') std::cerr<<"Option requires an argument."<<std::endl; else if (isprint (optopt)) std::cerr<<"Unknown option "<<optopt<<std::endl; else std::cerr<<"Unknown option character"<<optopt<<std::endl; std::cout<<"Syntax: evaluator <Options> " <<std::endl; std::cout<<"Options:" <<std::endl; std::cout<<"-f <filename.pcap> : read pcap file (rate 100 pps)" <<std::endl; std::cout<<"-n <network device> : capture packet from network device" <<std::endl; std::cout<<"-t : disable text user interface" <<std::endl; exit(0); break; default: std::cout<<"Error in input arguments."<<std::endl; exit(1); } } if (TextUIenable) TextUI = new TextUI_(&statistic); } evaluation::~evaluation() { if (TextUI!=NULL) delete TextUI; delete packetManagement; }
[ "root@amandegar.(none)" ]
root@amandegar.(none)
2e5eb4ad55c8c47d8316cde764f654aa0837bddc
4e59f874ccbdcb63b336ac92068153e45fc9e9df
/Common3DApp/Src/dsutil.cpp
35b59daa194d9bf36b5923090e72d394f1d6faf6
[]
no_license
martinpiper/ReplicaNetPublic
e91f77cdbd131b1b7e3fec6abe10047b16a01862
fc1a7eb124bc14bb21f98abfb1938f4e9bda30ee
refs/heads/master
2022-12-04T21:26:24.224429
2020-08-16T12:14:18
2020-08-16T12:14:18
287,937,353
0
0
null
null
null
null
UTF-8
C++
false
false
44,783
cpp
//----------------------------------------------------------------------------- // File: DSUtil.cpp // // Desc: DirectSound framework classes for reading and writing wav files and // playing them in DirectSound buffers. Feel free to use this class // as a starting point for adding extra functionality. // // Copyright (c) 1999-2000 Microsoft Corp. All rights reserved. //----------------------------------------------------------------------------- #define STRICT #include <windows.h> #include <mmsystem.h> #include <dxerr8.h> #include <dsound.h> #include "DSUtil.h" #include "DXUtil.h" //----------------------------------------------------------------------------- // Name: CSoundManager::CSoundManager() // Desc: Constructs the class //----------------------------------------------------------------------------- CSoundManager::CSoundManager() { m_pDS = NULL; } //----------------------------------------------------------------------------- // Name: CSoundManager::~CSoundManager() // Desc: Destroys the class //----------------------------------------------------------------------------- CSoundManager::~CSoundManager() { SAFE_RELEASE( m_pDS ); } //----------------------------------------------------------------------------- // Name: CSoundManager::Initialize() // Desc: Initializes the IDirectSound object and also sets the primary buffer // format. This function must be called before any others. //----------------------------------------------------------------------------- HRESULT CSoundManager::Initialize( HWND hWnd, DWORD dwCoopLevel, DWORD dwPrimaryChannels, DWORD dwPrimaryFreq, DWORD dwPrimaryBitRate ) { HRESULT hr; LPDIRECTSOUNDBUFFER pDSBPrimary = NULL; SAFE_RELEASE( m_pDS ); // Create IDirectSound using the primary sound device if( FAILED( hr = DirectSoundCreate8( NULL, &m_pDS, NULL ) ) ) return DXTRACE_ERR( TEXT("DirectSoundCreate8"), hr ); // Set DirectSound coop level if( FAILED( hr = m_pDS->SetCooperativeLevel( hWnd, dwCoopLevel ) ) ) return DXTRACE_ERR( TEXT("SetCooperativeLevel"), hr ); // Set primary buffer format SetPrimaryBufferFormat( dwPrimaryChannels, dwPrimaryFreq, dwPrimaryBitRate ); return S_OK; } //----------------------------------------------------------------------------- // Name: CSoundManager::SetPrimaryBufferFormat() // Desc: Set primary buffer to a specified format // For example, to set the primary buffer format to 22kHz stereo, 16-bit // then: dwPrimaryChannels = 2 // dwPrimaryFreq = 22050, // dwPrimaryBitRate = 16 //----------------------------------------------------------------------------- HRESULT CSoundManager::SetPrimaryBufferFormat( DWORD dwPrimaryChannels, DWORD dwPrimaryFreq, DWORD dwPrimaryBitRate ) { HRESULT hr; LPDIRECTSOUNDBUFFER pDSBPrimary = NULL; if( m_pDS == NULL ) return CO_E_NOTINITIALIZED; // Get the primary buffer DSBUFFERDESC dsbd; ZeroMemory( &dsbd, sizeof(DSBUFFERDESC) ); dsbd.dwSize = sizeof(DSBUFFERDESC); dsbd.dwFlags = DSBCAPS_PRIMARYBUFFER; dsbd.dwBufferBytes = 0; dsbd.lpwfxFormat = NULL; if( FAILED( hr = m_pDS->CreateSoundBuffer( &dsbd, &pDSBPrimary, NULL ) ) ) return DXTRACE_ERR( TEXT("CreateSoundBuffer"), hr ); WAVEFORMATEX wfx; ZeroMemory( &wfx, sizeof(WAVEFORMATEX) ); wfx.wFormatTag = WAVE_FORMAT_PCM; wfx.nChannels = (WORD) dwPrimaryChannels; wfx.nSamplesPerSec = dwPrimaryFreq; wfx.wBitsPerSample = (WORD) dwPrimaryBitRate; wfx.nBlockAlign = wfx.wBitsPerSample / 8 * wfx.nChannels; wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign; if( FAILED( hr = pDSBPrimary->SetFormat(&wfx) ) ) return DXTRACE_ERR( TEXT("SetFormat"), hr ); SAFE_RELEASE( pDSBPrimary ); return S_OK; } //----------------------------------------------------------------------------- // Name: CSoundManager::Get3DListenerInterface() // Desc: Returns the 3D listener interface associated with primary buffer. //----------------------------------------------------------------------------- HRESULT CSoundManager::Get3DListenerInterface( LPDIRECTSOUND3DLISTENER* ppDSListener ) { HRESULT hr; DSBUFFERDESC dsbdesc; LPDIRECTSOUNDBUFFER pDSBPrimary = NULL; if( ppDSListener == NULL ) return E_INVALIDARG; if( m_pDS == NULL ) return CO_E_NOTINITIALIZED; *ppDSListener = NULL; // Obtain primary buffer, asking it for 3D control ZeroMemory( &dsbdesc, sizeof(DSBUFFERDESC) ); dsbdesc.dwSize = sizeof(DSBUFFERDESC); dsbdesc.dwFlags = DSBCAPS_CTRL3D | DSBCAPS_PRIMARYBUFFER; if( FAILED( hr = m_pDS->CreateSoundBuffer( &dsbdesc, &pDSBPrimary, NULL ) ) ) return DXTRACE_ERR( TEXT("CreateSoundBuffer"), hr ); if( FAILED( hr = pDSBPrimary->QueryInterface( IID_IDirectSound3DListener, (VOID**)ppDSListener ) ) ) { SAFE_RELEASE( pDSBPrimary ); return DXTRACE_ERR( TEXT("QueryInterface"), hr ); } // Release the primary buffer, since it is not need anymore SAFE_RELEASE( pDSBPrimary ); return S_OK; } //----------------------------------------------------------------------------- // Name: CSoundManager::Create() // Desc: //----------------------------------------------------------------------------- HRESULT CSoundManager::Create( CSound** ppSound, LPTSTR strWaveFileName, DWORD dwCreationFlags, GUID guid3DAlgorithm, DWORD dwNumBuffers ) { HRESULT hr; HRESULT hrRet = S_OK; DWORD i; LPDIRECTSOUNDBUFFER* apDSBuffer = NULL; DWORD dwDSBufferSize = NULL; CWaveFile* pWaveFile = NULL; if( m_pDS == NULL ) return CO_E_NOTINITIALIZED; if( strWaveFileName == NULL || ppSound == NULL || dwNumBuffers < 1 ) return E_INVALIDARG; apDSBuffer = new LPDIRECTSOUNDBUFFER[dwNumBuffers]; if( apDSBuffer == NULL ) { hr = E_OUTOFMEMORY; goto LFail; } pWaveFile = new CWaveFile(); if( pWaveFile == NULL ) { hr = E_OUTOFMEMORY; goto LFail; } pWaveFile->Open( strWaveFileName, NULL, WAVEFILE_READ ); if( pWaveFile->GetSize() == 0 ) { // Wave is blank, so don't create it. hr = E_FAIL; goto LFail; } // Make the DirectSound buffer the same size as the wav file dwDSBufferSize = pWaveFile->GetSize(); // Create the direct sound buffer, and only request the flags needed // since each requires some overhead and limits if the buffer can // be hardware accelerated DSBUFFERDESC dsbd; ZeroMemory( &dsbd, sizeof(DSBUFFERDESC) ); dsbd.dwSize = sizeof(DSBUFFERDESC); dsbd.dwFlags = dwCreationFlags; dsbd.dwBufferBytes = dwDSBufferSize; dsbd.guid3DAlgorithm = guid3DAlgorithm; dsbd.lpwfxFormat = pWaveFile->m_pwfx; // DirectSound is only guarenteed to play PCM data. Other // formats may or may not work depending the sound card driver. hr = m_pDS->CreateSoundBuffer( &dsbd, &apDSBuffer[0], NULL ); // Be sure to return this error code if it occurs so the // callers knows this happened. if( hr == DS_NO_VIRTUALIZATION ) hrRet = DS_NO_VIRTUALIZATION; if( FAILED(hr) ) { // DSERR_BUFFERTOOSMALL will be returned if the buffer is // less than DSBSIZE_FX_MIN (100ms) and the buffer is created // with DSBCAPS_CTRLFX. if( hr != DSERR_BUFFERTOOSMALL ) DXTRACE_ERR( TEXT("CreateSoundBuffer"), hr ); goto LFail; } for( i=1; i<dwNumBuffers; i++ ) { if( FAILED( hr = m_pDS->DuplicateSoundBuffer( apDSBuffer[0], &apDSBuffer[i] ) ) ) { DXTRACE_ERR( TEXT("DuplicateSoundBuffer"), hr ); goto LFail; } } // Create the sound *ppSound = new CSound( apDSBuffer, dwDSBufferSize, dwNumBuffers, pWaveFile ); SAFE_DELETE( apDSBuffer ); return hrRet; LFail: // Cleanup SAFE_DELETE( pWaveFile ); SAFE_DELETE( apDSBuffer ); return hr; } //----------------------------------------------------------------------------- // Name: CSoundManager::CreateFromMemory() // Desc: //----------------------------------------------------------------------------- HRESULT CSoundManager::CreateFromMemory( CSound** ppSound, BYTE* pbData, ULONG ulDataSize, LPWAVEFORMATEX pwfx, DWORD dwCreationFlags, GUID guid3DAlgorithm, DWORD dwNumBuffers ) { HRESULT hr; DWORD i; LPDIRECTSOUNDBUFFER* apDSBuffer = NULL; DWORD dwDSBufferSize = NULL; CWaveFile* pWaveFile = NULL; if( m_pDS == NULL ) return CO_E_NOTINITIALIZED; if( pbData == NULL || ppSound == NULL || dwNumBuffers < 1 ) return E_INVALIDARG; apDSBuffer = new LPDIRECTSOUNDBUFFER[dwNumBuffers]; if( apDSBuffer == NULL ) { hr = E_OUTOFMEMORY; goto LFail; } pWaveFile = new CWaveFile(); if( pWaveFile == NULL ) { hr = E_OUTOFMEMORY; goto LFail; } pWaveFile->OpenFromMemory( pbData,ulDataSize, pwfx, WAVEFILE_READ ); // Make the DirectSound buffer the same size as the wav file dwDSBufferSize = ulDataSize; // Create the direct sound buffer, and only request the flags needed // since each requires some overhead and limits if the buffer can // be hardware accelerated DSBUFFERDESC dsbd; ZeroMemory( &dsbd, sizeof(DSBUFFERDESC) ); dsbd.dwSize = sizeof(DSBUFFERDESC); dsbd.dwFlags = dwCreationFlags; dsbd.dwBufferBytes = dwDSBufferSize; dsbd.guid3DAlgorithm = guid3DAlgorithm; dsbd.lpwfxFormat = pwfx; if( FAILED( hr = m_pDS->CreateSoundBuffer( &dsbd, &apDSBuffer[0], NULL ) ) ) { DXTRACE_ERR( TEXT("CreateSoundBuffer"), hr ); goto LFail; } for( i=1; i<dwNumBuffers; i++ ) { if( FAILED( hr = m_pDS->DuplicateSoundBuffer( apDSBuffer[0], &apDSBuffer[i] ) ) ) { DXTRACE_ERR( TEXT("DuplicateSoundBuffer"), hr ); goto LFail; } } // Create the sound *ppSound = new CSound( apDSBuffer, dwDSBufferSize, dwNumBuffers, pWaveFile ); SAFE_DELETE( apDSBuffer ); return S_OK; LFail: // Cleanup SAFE_DELETE( apDSBuffer ); return hr; } //----------------------------------------------------------------------------- // Name: CSoundManager::CreateStreaming() // Desc: //----------------------------------------------------------------------------- HRESULT CSoundManager::CreateStreaming( CStreamingSound** ppStreamingSound, LPTSTR strWaveFileName, DWORD dwCreationFlags, GUID guid3DAlgorithm, DWORD dwNotifyCount, DWORD dwNotifySize, HANDLE hNotifyEvent ) { HRESULT hr; if( m_pDS == NULL ) return CO_E_NOTINITIALIZED; if( strWaveFileName == NULL || ppStreamingSound == NULL || hNotifyEvent == NULL ) return E_INVALIDARG; LPDIRECTSOUNDBUFFER pDSBuffer = NULL; DWORD dwDSBufferSize = NULL; CWaveFile* pWaveFile = NULL; DSBPOSITIONNOTIFY* aPosNotify = NULL; LPDIRECTSOUNDNOTIFY pDSNotify = NULL; pWaveFile = new CWaveFile(); pWaveFile->Open( strWaveFileName, NULL, WAVEFILE_READ ); // Figure out how big the DSound buffer should be dwDSBufferSize = dwNotifySize * dwNotifyCount; // Set up the direct sound buffer. Request the NOTIFY flag, so // that we are notified as the sound buffer plays. Note, that using this flag // may limit the amount of hardware acceleration that can occur. DSBUFFERDESC dsbd; ZeroMemory( &dsbd, sizeof(DSBUFFERDESC) ); dsbd.dwSize = sizeof(DSBUFFERDESC); dsbd.dwFlags = dwCreationFlags | DSBCAPS_CTRLPOSITIONNOTIFY | DSBCAPS_GETCURRENTPOSITION2; dsbd.dwBufferBytes = dwDSBufferSize; dsbd.guid3DAlgorithm = guid3DAlgorithm; dsbd.lpwfxFormat = pWaveFile->m_pwfx; if( FAILED( hr = m_pDS->CreateSoundBuffer( &dsbd, &pDSBuffer, NULL ) ) ) { // If wave format isn't then it will return // either DSERR_BADFORMAT or E_INVALIDARG if( hr == DSERR_BADFORMAT || hr == E_INVALIDARG ) return DXTRACE_ERR_NOMSGBOX( TEXT("CreateSoundBuffer"), hr ); return DXTRACE_ERR( TEXT("CreateSoundBuffer"), hr ); } // Create the notification events, so that we know when to fill // the buffer as the sound plays. if( FAILED( hr = pDSBuffer->QueryInterface( IID_IDirectSoundNotify, (VOID**)&pDSNotify ) ) ) { SAFE_DELETE( aPosNotify ); return DXTRACE_ERR( TEXT("QueryInterface"), hr ); } aPosNotify = new DSBPOSITIONNOTIFY[ dwNotifyCount ]; if( aPosNotify == NULL ) return E_OUTOFMEMORY; for( DWORD i = 0; i < dwNotifyCount; i++ ) { aPosNotify[i].dwOffset = (dwNotifySize * i) + dwNotifySize - 1; aPosNotify[i].hEventNotify = hNotifyEvent; } // Tell DirectSound when to notify us. The notification will come in the from // of signaled events that are handled in WinMain() if( FAILED( hr = pDSNotify->SetNotificationPositions( dwNotifyCount, aPosNotify ) ) ) { SAFE_RELEASE( pDSNotify ); SAFE_DELETE( aPosNotify ); return DXTRACE_ERR( TEXT("SetNotificationPositions"), hr ); } SAFE_RELEASE( pDSNotify ); SAFE_DELETE( aPosNotify ); // Create the sound *ppStreamingSound = new CStreamingSound( pDSBuffer, dwDSBufferSize, pWaveFile, dwNotifySize ); return S_OK; } //----------------------------------------------------------------------------- // Name: CSound::CSound() // Desc: Constructs the class //----------------------------------------------------------------------------- CSound::CSound( LPDIRECTSOUNDBUFFER* apDSBuffer, DWORD dwDSBufferSize, DWORD dwNumBuffers, CWaveFile* pWaveFile ) { DWORD i; m_apDSBuffer = new LPDIRECTSOUNDBUFFER[dwNumBuffers]; for( i=0; i<dwNumBuffers; i++ ) m_apDSBuffer[i] = apDSBuffer[i]; m_dwDSBufferSize = dwDSBufferSize; m_dwNumBuffers = dwNumBuffers; m_pWaveFile = pWaveFile; FillBufferWithSound( m_apDSBuffer[0], FALSE ); // Make DirectSound do pre-processing on sound effects for( i=0; i<dwNumBuffers; i++ ) m_apDSBuffer[i]->SetCurrentPosition(0); } //----------------------------------------------------------------------------- // Name: CSound::~CSound() // Desc: Destroys the class //----------------------------------------------------------------------------- CSound::~CSound() { for( DWORD i=0; i<m_dwNumBuffers; i++ ) { SAFE_RELEASE( m_apDSBuffer[i] ); } SAFE_DELETE_ARRAY( m_apDSBuffer ); SAFE_DELETE( m_pWaveFile ); } //----------------------------------------------------------------------------- // Name: CSound::FillBufferWithSound() // Desc: Fills a DirectSound buffer with a sound file //----------------------------------------------------------------------------- HRESULT CSound::FillBufferWithSound( LPDIRECTSOUNDBUFFER pDSB, BOOL bRepeatWavIfBufferLarger ) { HRESULT hr; VOID* pDSLockedBuffer = NULL; // Pointer to locked buffer memory DWORD dwDSLockedBufferSize = 0; // Size of the locked DirectSound buffer DWORD dwWavDataRead = 0; // Amount of data read from the wav file if( pDSB == NULL ) return CO_E_NOTINITIALIZED; // Make sure we have focus, and we didn't just switch in from // an app which had a DirectSound device if( FAILED( hr = RestoreBuffer( pDSB, NULL ) ) ) return DXTRACE_ERR( TEXT("RestoreBuffer"), hr ); // Lock the buffer down if( FAILED( hr = pDSB->Lock( 0, m_dwDSBufferSize, &pDSLockedBuffer, &dwDSLockedBufferSize, NULL, NULL, 0L ) ) ) return DXTRACE_ERR( TEXT("Lock"), hr ); // Reset the wave file to the beginning m_pWaveFile->ResetFile(); if( FAILED( hr = m_pWaveFile->Read( (BYTE*) pDSLockedBuffer, dwDSLockedBufferSize, &dwWavDataRead ) ) ) return DXTRACE_ERR( TEXT("Read"), hr ); if( dwWavDataRead == 0 ) { // Wav is blank, so just fill with silence FillMemory( (BYTE*) pDSLockedBuffer, dwDSLockedBufferSize, (BYTE)(m_pWaveFile->m_pwfx->wBitsPerSample == 8 ? 128 : 0 ) ); } else if( dwWavDataRead < dwDSLockedBufferSize ) { // If the wav file was smaller than the DirectSound buffer, // we need to fill the remainder of the buffer with data if( bRepeatWavIfBufferLarger ) { // Reset the file and fill the buffer with wav data DWORD dwReadSoFar = dwWavDataRead; // From previous call above. while( dwReadSoFar < dwDSLockedBufferSize ) { // This will keep reading in until the buffer is full // for very short files if( FAILED( hr = m_pWaveFile->ResetFile() ) ) return DXTRACE_ERR( TEXT("ResetFile"), hr ); hr = m_pWaveFile->Read( (BYTE*)pDSLockedBuffer + dwReadSoFar, dwDSLockedBufferSize - dwReadSoFar, &dwWavDataRead ); if( FAILED(hr) ) return DXTRACE_ERR( TEXT("Read"), hr ); dwReadSoFar += dwWavDataRead; } } else { // Don't repeat the wav file, just fill in silence FillMemory( (BYTE*) pDSLockedBuffer + dwWavDataRead, dwDSLockedBufferSize - dwWavDataRead, (BYTE)(m_pWaveFile->m_pwfx->wBitsPerSample == 8 ? 128 : 0 ) ); } } // Unlock the buffer, we don't need it anymore. pDSB->Unlock( pDSLockedBuffer, dwDSLockedBufferSize, NULL, 0 ); return S_OK; } //----------------------------------------------------------------------------- // Name: CSound::RestoreBuffer() // Desc: Restores the lost buffer. *pbWasRestored returns TRUE if the buffer was // restored. It can also NULL if the information is not needed. //----------------------------------------------------------------------------- HRESULT CSound::RestoreBuffer( LPDIRECTSOUNDBUFFER pDSB, BOOL* pbWasRestored ) { HRESULT hr; if( pDSB == NULL ) return CO_E_NOTINITIALIZED; if( pbWasRestored ) *pbWasRestored = FALSE; DWORD dwStatus; if( FAILED( hr = pDSB->GetStatus( &dwStatus ) ) ) return DXTRACE_ERR( TEXT("GetStatus"), hr ); if( dwStatus & DSBSTATUS_BUFFERLOST ) { // Since the app could have just been activated, then // DirectSound may not be giving us control yet, so // the restoring the buffer may fail. // If it does, sleep until DirectSound gives us control. do { hr = pDSB->Restore(); if( hr == DSERR_BUFFERLOST ) Sleep( 10 ); } while( hr = pDSB->Restore() ); if( pbWasRestored != NULL ) *pbWasRestored = TRUE; return S_OK; } else { return S_FALSE; } } //----------------------------------------------------------------------------- // Name: CSound::GetFreeBuffer() // Desc: Checks to see if a buffer is playing and returns TRUE if it is. //----------------------------------------------------------------------------- LPDIRECTSOUNDBUFFER CSound::GetFreeBuffer() { BOOL bIsPlaying = FALSE; if( m_apDSBuffer == NULL ) return FALSE; DWORD i; for( i=0; i<m_dwNumBuffers; i++ ) { if( m_apDSBuffer[i] ) { DWORD dwStatus = 0; m_apDSBuffer[i]->GetStatus( &dwStatus ); if ( ( dwStatus & DSBSTATUS_PLAYING ) == 0 ) break; } } if( i != m_dwNumBuffers ) return m_apDSBuffer[ i ]; else return m_apDSBuffer[ rand() % m_dwNumBuffers ]; } //----------------------------------------------------------------------------- // Name: CSound::GetBuffer() // Desc: //----------------------------------------------------------------------------- LPDIRECTSOUNDBUFFER CSound::GetBuffer( DWORD dwIndex ) { if( m_apDSBuffer == NULL ) return NULL; if( dwIndex >= m_dwNumBuffers ) return NULL; return m_apDSBuffer[dwIndex]; } //----------------------------------------------------------------------------- // Name: CSound::Get3DBufferInterface() // Desc: //----------------------------------------------------------------------------- HRESULT CSound::Get3DBufferInterface( DWORD dwIndex, LPDIRECTSOUND3DBUFFER* ppDS3DBuffer ) { if( m_apDSBuffer == NULL ) return CO_E_NOTINITIALIZED; if( dwIndex >= m_dwNumBuffers ) return E_INVALIDARG; *ppDS3DBuffer = NULL; return m_apDSBuffer[dwIndex]->QueryInterface( IID_IDirectSound3DBuffer, (VOID**)ppDS3DBuffer ); } //----------------------------------------------------------------------------- // Name: CSound::Play() // Desc: Plays the sound using voice management flags. Pass in DSBPLAY_LOOPING // in the dwFlags to loop the sound //----------------------------------------------------------------------------- HRESULT CSound::Play( DWORD dwPriority, DWORD dwFlags ) { HRESULT hr; BOOL bRestored; if( m_apDSBuffer == NULL ) return CO_E_NOTINITIALIZED; LPDIRECTSOUNDBUFFER pDSB = GetFreeBuffer(); if( pDSB == NULL ) return DXTRACE_ERR( TEXT("GetFreeBuffer"), E_FAIL ); // Restore the buffer if it was lost if( FAILED( hr = RestoreBuffer( pDSB, &bRestored ) ) ) return DXTRACE_ERR( TEXT("RestoreBuffer"), hr ); if( bRestored ) { // The buffer was restored, so we need to fill it with new data if( FAILED( hr = FillBufferWithSound( pDSB, FALSE ) ) ) return DXTRACE_ERR( TEXT("FillBufferWithSound"), hr ); // Make DirectSound do pre-processing on sound effects Reset(); } return pDSB->Play( 0, dwPriority, dwFlags ); } //----------------------------------------------------------------------------- // Name: CSound::Stop() // Desc: Stops the sound from playing //----------------------------------------------------------------------------- HRESULT CSound::Stop() { if( m_apDSBuffer == NULL ) return CO_E_NOTINITIALIZED; HRESULT hr = 0; for( DWORD i=0; i<m_dwNumBuffers; i++ ) hr |= m_apDSBuffer[i]->Stop(); return hr; } //----------------------------------------------------------------------------- // Name: CSound::Reset() // Desc: Reset all of the sound buffers //----------------------------------------------------------------------------- HRESULT CSound::Reset() { if( m_apDSBuffer == NULL ) return CO_E_NOTINITIALIZED; HRESULT hr = 0; for( DWORD i=0; i<m_dwNumBuffers; i++ ) hr |= m_apDSBuffer[i]->SetCurrentPosition( 0 ); return hr; } //----------------------------------------------------------------------------- // Name: CSound::IsSoundPlaying() // Desc: Checks to see if a buffer is playing and returns TRUE if it is. //----------------------------------------------------------------------------- BOOL CSound::IsSoundPlaying() { BOOL bIsPlaying = FALSE; if( m_apDSBuffer == NULL ) return FALSE; for( DWORD i=0; i<m_dwNumBuffers; i++ ) { if( m_apDSBuffer[i] ) { DWORD dwStatus = 0; m_apDSBuffer[i]->GetStatus( &dwStatus ); bIsPlaying |= ( ( dwStatus & DSBSTATUS_PLAYING ) != 0 ); } } return bIsPlaying; } //----------------------------------------------------------------------------- // Name: CStreamingSound::CStreamingSound() // Desc: Setups up a buffer so data can be streamed from the wave file into // buffer. This is very useful for large wav files that would take a // while to load. The buffer is initially filled with data, then // as sound is played the notification events are signaled and more data // is written into the buffer by calling HandleWaveStreamNotification() //----------------------------------------------------------------------------- CStreamingSound::CStreamingSound( LPDIRECTSOUNDBUFFER pDSBuffer, DWORD dwDSBufferSize, CWaveFile* pWaveFile, DWORD dwNotifySize ) : CSound( &pDSBuffer, dwDSBufferSize, 1, pWaveFile ) { m_dwLastPlayPos = 0; m_dwPlayProgress = 0; m_dwNotifySize = dwNotifySize; m_dwNextWriteOffset = 0; m_bFillNextNotificationWithSilence = FALSE; } //----------------------------------------------------------------------------- // Name: CStreamingSound::~CStreamingSound() // Desc: Destroys the class //----------------------------------------------------------------------------- CStreamingSound::~CStreamingSound() { } //----------------------------------------------------------------------------- // Name: CStreamingSound::HandleWaveStreamNotification() // Desc: Handle the notification that tell us to put more wav data in the // circular buffer //----------------------------------------------------------------------------- HRESULT CStreamingSound::HandleWaveStreamNotification( BOOL bLoopedPlay ) { HRESULT hr; DWORD dwCurrentPlayPos; DWORD dwPlayDelta; DWORD dwBytesWrittenToBuffer; VOID* pDSLockedBuffer = NULL; VOID* pDSLockedBuffer2 = NULL; DWORD dwDSLockedBufferSize; DWORD dwDSLockedBufferSize2; if( m_apDSBuffer == NULL || m_pWaveFile == NULL ) return CO_E_NOTINITIALIZED; // Restore the buffer if it was lost BOOL bRestored; if( FAILED( hr = RestoreBuffer( m_apDSBuffer[0], &bRestored ) ) ) return DXTRACE_ERR( TEXT("RestoreBuffer"), hr ); if( bRestored ) { // The buffer was restored, so we need to fill it with new data if( FAILED( hr = FillBufferWithSound( m_apDSBuffer[0], FALSE ) ) ) return DXTRACE_ERR( TEXT("FillBufferWithSound"), hr ); return S_OK; } // Lock the DirectSound buffer if( FAILED( hr = m_apDSBuffer[0]->Lock( m_dwNextWriteOffset, m_dwNotifySize, &pDSLockedBuffer, &dwDSLockedBufferSize, &pDSLockedBuffer2, &dwDSLockedBufferSize2, 0L ) ) ) return DXTRACE_ERR( TEXT("Lock"), hr ); // m_dwDSBufferSize and m_dwNextWriteOffset are both multiples of m_dwNotifySize, // it should the second buffer should never be valid if( pDSLockedBuffer2 != NULL ) return E_UNEXPECTED; if( !m_bFillNextNotificationWithSilence ) { // Fill the DirectSound buffer with wav data if( FAILED( hr = m_pWaveFile->Read( (BYTE*) pDSLockedBuffer, dwDSLockedBufferSize, &dwBytesWrittenToBuffer ) ) ) return DXTRACE_ERR( TEXT("Read"), hr ); } else { // Fill the DirectSound buffer with silence FillMemory( pDSLockedBuffer, dwDSLockedBufferSize, (BYTE)( m_pWaveFile->m_pwfx->wBitsPerSample == 8 ? 128 : 0 ) ); dwBytesWrittenToBuffer = dwDSLockedBufferSize; } // If the number of bytes written is less than the // amount we requested, we have a short file. if( dwBytesWrittenToBuffer < dwDSLockedBufferSize ) { if( !bLoopedPlay ) { // Fill in silence for the rest of the buffer. FillMemory( (BYTE*) pDSLockedBuffer + dwBytesWrittenToBuffer, dwDSLockedBufferSize - dwBytesWrittenToBuffer, (BYTE)(m_pWaveFile->m_pwfx->wBitsPerSample == 8 ? 128 : 0 ) ); // Any future notifications should just fill the buffer with silence m_bFillNextNotificationWithSilence = TRUE; } else { // We are looping, so reset the file and fill the buffer with wav data DWORD dwReadSoFar = dwBytesWrittenToBuffer; // From previous call above. while( dwReadSoFar < dwDSLockedBufferSize ) { // This will keep reading in until the buffer is full (for very short files). if( FAILED( hr = m_pWaveFile->ResetFile() ) ) return DXTRACE_ERR( TEXT("ResetFile"), hr ); if( FAILED( hr = m_pWaveFile->Read( (BYTE*)pDSLockedBuffer + dwReadSoFar, dwDSLockedBufferSize - dwReadSoFar, &dwBytesWrittenToBuffer ) ) ) return DXTRACE_ERR( TEXT("Read"), hr ); dwReadSoFar += dwBytesWrittenToBuffer; } } } // Unlock the DirectSound buffer m_apDSBuffer[0]->Unlock( pDSLockedBuffer, dwDSLockedBufferSize, NULL, 0 ); // Figure out how much data has been played so far. When we have played // passed the end of the file, we will either need to start filling the // buffer with silence or starting reading from the beginning of the file, // depending if the user wants to loop the sound if( FAILED( hr = m_apDSBuffer[0]->GetCurrentPosition( &dwCurrentPlayPos, NULL ) ) ) return DXTRACE_ERR( TEXT("GetCurrentPosition"), hr ); // Check to see if the position counter looped if( dwCurrentPlayPos < m_dwLastPlayPos ) dwPlayDelta = ( m_dwDSBufferSize - m_dwLastPlayPos ) + dwCurrentPlayPos; else dwPlayDelta = dwCurrentPlayPos - m_dwLastPlayPos; m_dwPlayProgress += dwPlayDelta; m_dwLastPlayPos = dwCurrentPlayPos; // If we are now filling the buffer with silence, then we have found the end so // check to see if the entire sound has played, if it has then stop the buffer. if( m_bFillNextNotificationWithSilence ) { // We don't want to cut off the sound before it's done playing. if( m_dwPlayProgress >= m_pWaveFile->GetSize() ) { m_apDSBuffer[0]->Stop(); } } // Update where the buffer will lock (for next time) m_dwNextWriteOffset += dwDSLockedBufferSize; m_dwNextWriteOffset %= m_dwDSBufferSize; // Circular buffer return S_OK; } //----------------------------------------------------------------------------- // Name: CStreamingSound::Reset() // Desc: Resets the sound so it will begin playing at the beginning //----------------------------------------------------------------------------- HRESULT CStreamingSound::Reset() { HRESULT hr; if( m_apDSBuffer[0] == NULL || m_pWaveFile == NULL ) return CO_E_NOTINITIALIZED; m_dwLastPlayPos = 0; m_dwPlayProgress = 0; m_dwNextWriteOffset = 0; m_bFillNextNotificationWithSilence = FALSE; // Restore the buffer if it was lost BOOL bRestored; if( FAILED( hr = RestoreBuffer( m_apDSBuffer[0], &bRestored ) ) ) return DXTRACE_ERR( TEXT("RestoreBuffer"), hr ); if( bRestored ) { // The buffer was restored, so we need to fill it with new data if( FAILED( hr = FillBufferWithSound( m_apDSBuffer[0], FALSE ) ) ) return DXTRACE_ERR( TEXT("FillBufferWithSound"), hr ); } m_pWaveFile->ResetFile(); return m_apDSBuffer[0]->SetCurrentPosition( 0L ); } //----------------------------------------------------------------------------- // Name: CWaveFile::CWaveFile() // Desc: Constructs the class. Call Open() to open a wave file for reading. // Then call Read() as needed. Calling the destructor or Close() // will close the file. //----------------------------------------------------------------------------- CWaveFile::CWaveFile() { m_pwfx = NULL; m_hmmio = NULL; m_dwSize = 0; m_bIsReadingFromMemory = FALSE; } //----------------------------------------------------------------------------- // Name: CWaveFile::~CWaveFile() // Desc: Destructs the class //----------------------------------------------------------------------------- CWaveFile::~CWaveFile() { Close(); if( !m_bIsReadingFromMemory ) SAFE_DELETE_ARRAY( m_pwfx ); } //----------------------------------------------------------------------------- // Name: CWaveFile::Open() // Desc: Opens a wave file for reading //----------------------------------------------------------------------------- HRESULT CWaveFile::Open( LPTSTR strFileName, WAVEFORMATEX* pwfx, DWORD dwFlags ) { HRESULT hr; m_dwFlags = dwFlags; m_bIsReadingFromMemory = FALSE; if( m_dwFlags == WAVEFILE_READ ) { if( strFileName == NULL ) return E_INVALIDARG; SAFE_DELETE_ARRAY( m_pwfx ); m_hmmio = mmioOpen( strFileName, NULL, MMIO_ALLOCBUF | MMIO_READ ); if( NULL == m_hmmio ) { HRSRC hResInfo; HGLOBAL hResData; DWORD dwSize; VOID* pvRes; // Loading it as a file failed, so try it as a resource if( NULL == ( hResInfo = FindResource( NULL, strFileName, TEXT("WAVE") ) ) ) { if( NULL == ( hResInfo = FindResource( NULL, strFileName, TEXT("WAV") ) ) ) return DXTRACE_ERR_NOMSGBOX( TEXT("FindResource"), E_FAIL ); } if( NULL == ( hResData = LoadResource( NULL, hResInfo ) ) ) return DXTRACE_ERR( TEXT("LoadResource"), E_FAIL ); if( 0 == ( dwSize = SizeofResource( NULL, hResInfo ) ) ) return DXTRACE_ERR( TEXT("SizeofResource"), E_FAIL ); if( NULL == ( pvRes = LockResource( hResData ) ) ) return DXTRACE_ERR( TEXT("LockResource"), E_FAIL ); CHAR* pData = new CHAR[ dwSize ]; memcpy( pData, pvRes, dwSize ); MMIOINFO mmioInfo; ZeroMemory( &mmioInfo, sizeof(mmioInfo) ); mmioInfo.fccIOProc = FOURCC_MEM; mmioInfo.cchBuffer = dwSize; mmioInfo.pchBuffer = (CHAR*) pData; m_hmmio = mmioOpen( NULL, &mmioInfo, MMIO_ALLOCBUF | MMIO_READ ); } if( FAILED( hr = ReadMMIO() ) ) { // ReadMMIO will fail if its an not a wave file mmioClose( m_hmmio, 0 ); return DXTRACE_ERR_NOMSGBOX( TEXT("ReadMMIO"), hr ); } if( FAILED( hr = ResetFile() ) ) return DXTRACE_ERR( TEXT("ResetFile"), hr ); // After the reset, the size of the wav file is m_ck.cksize so store it now m_dwSize = m_ck.cksize; } else { m_hmmio = mmioOpen( strFileName, NULL, MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_CREATE ); if( NULL == m_hmmio ) return DXTRACE_ERR( TEXT("mmioOpen"), E_FAIL ); if( FAILED( hr = WriteMMIO( pwfx ) ) ) { mmioClose( m_hmmio, 0 ); return DXTRACE_ERR( TEXT("WriteMMIO"), hr ); } if( FAILED( hr = ResetFile() ) ) return DXTRACE_ERR( TEXT("ResetFile"), hr ); } return hr; } //----------------------------------------------------------------------------- // Name: CWaveFile::OpenFromMemory() // Desc: copy data to CWaveFile member variable from memory //----------------------------------------------------------------------------- HRESULT CWaveFile::OpenFromMemory( BYTE* pbData, ULONG ulDataSize, WAVEFORMATEX* pwfx, DWORD dwFlags ) { m_pwfx = pwfx; m_ulDataSize = ulDataSize; m_pbData = pbData; m_pbDataCur = m_pbData; m_bIsReadingFromMemory = TRUE; if( dwFlags != WAVEFILE_READ ) return E_NOTIMPL; return S_OK; } //----------------------------------------------------------------------------- // Name: CWaveFile::ReadMMIO() // Desc: Support function for reading from a multimedia I/O stream. // m_hmmio must be valid before calling. This function uses it to // update m_ckRiff, and m_pwfx. //----------------------------------------------------------------------------- HRESULT CWaveFile::ReadMMIO() { MMCKINFO ckIn; // chunk info. for general use. PCMWAVEFORMAT pcmWaveFormat; // Temp PCM structure to load in. m_pwfx = NULL; if( ( 0 != mmioDescend( m_hmmio, &m_ckRiff, NULL, 0 ) ) ) return DXTRACE_ERR( TEXT("mmioDescend"), E_FAIL ); // Check to make sure this is a valid wave file if( (m_ckRiff.ckid != FOURCC_RIFF) || (m_ckRiff.fccType != mmioFOURCC('W', 'A', 'V', 'E') ) ) return DXTRACE_ERR_NOMSGBOX( TEXT("mmioFOURCC"), E_FAIL ); // Search the input file for for the 'fmt ' chunk. ckIn.ckid = mmioFOURCC('f', 'm', 't', ' '); if( 0 != mmioDescend( m_hmmio, &ckIn, &m_ckRiff, MMIO_FINDCHUNK ) ) return DXTRACE_ERR( TEXT("mmioDescend"), E_FAIL ); // Expect the 'fmt' chunk to be at least as large as <PCMWAVEFORMAT>; // if there are extra parameters at the end, we'll ignore them if( ckIn.cksize < (LONG) sizeof(PCMWAVEFORMAT) ) return DXTRACE_ERR( TEXT("sizeof(PCMWAVEFORMAT)"), E_FAIL ); // Read the 'fmt ' chunk into <pcmWaveFormat>. if( mmioRead( m_hmmio, (HPSTR) &pcmWaveFormat, sizeof(pcmWaveFormat)) != sizeof(pcmWaveFormat) ) return DXTRACE_ERR( TEXT("mmioRead"), E_FAIL ); // Allocate the waveformatex, but if its not pcm format, read the next // word, and thats how many extra bytes to allocate. if( pcmWaveFormat.wf.wFormatTag == WAVE_FORMAT_PCM ) { m_pwfx = (WAVEFORMATEX*)new CHAR[ sizeof(WAVEFORMATEX) ]; if( NULL == m_pwfx ) return DXTRACE_ERR( TEXT("m_pwfx"), E_FAIL ); // Copy the bytes from the pcm structure to the waveformatex structure memcpy( m_pwfx, &pcmWaveFormat, sizeof(pcmWaveFormat) ); m_pwfx->cbSize = 0; } else { // Read in length of extra bytes. WORD cbExtraBytes = 0L; if( mmioRead( m_hmmio, (CHAR*)&cbExtraBytes, sizeof(WORD)) != sizeof(WORD) ) return DXTRACE_ERR( TEXT("mmioRead"), E_FAIL ); m_pwfx = (WAVEFORMATEX*)new CHAR[ sizeof(WAVEFORMATEX) + cbExtraBytes ]; if( NULL == m_pwfx ) return DXTRACE_ERR( TEXT("new"), E_FAIL ); // Copy the bytes from the pcm structure to the waveformatex structure memcpy( m_pwfx, &pcmWaveFormat, sizeof(pcmWaveFormat) ); m_pwfx->cbSize = cbExtraBytes; // Now, read those extra bytes into the structure, if cbExtraAlloc != 0. if( mmioRead( m_hmmio, (CHAR*)(((BYTE*)&(m_pwfx->cbSize))+sizeof(WORD)), cbExtraBytes ) != cbExtraBytes ) { SAFE_DELETE( m_pwfx ); return DXTRACE_ERR( TEXT("mmioRead"), E_FAIL ); } } // Ascend the input file out of the 'fmt ' chunk. if( 0 != mmioAscend( m_hmmio, &ckIn, 0 ) ) { SAFE_DELETE( m_pwfx ); return DXTRACE_ERR( TEXT("mmioAscend"), E_FAIL ); } return S_OK; } //----------------------------------------------------------------------------- // Name: CWaveFile::GetSize() // Desc: Retuns the size of the read access wave file //----------------------------------------------------------------------------- DWORD CWaveFile::GetSize() { return m_dwSize; } //----------------------------------------------------------------------------- // Name: CWaveFile::ResetFile() // Desc: Resets the internal m_ck pointer so reading starts from the // beginning of the file again //----------------------------------------------------------------------------- HRESULT CWaveFile::ResetFile() { if( m_bIsReadingFromMemory ) { m_pbDataCur = m_pbData; } else { if( m_hmmio == NULL ) return CO_E_NOTINITIALIZED; if( m_dwFlags == WAVEFILE_READ ) { // Seek to the data if( -1 == mmioSeek( m_hmmio, m_ckRiff.dwDataOffset + sizeof(FOURCC), SEEK_SET ) ) return DXTRACE_ERR( TEXT("mmioSeek"), E_FAIL ); // Search the input file for the 'data' chunk. m_ck.ckid = mmioFOURCC('d', 'a', 't', 'a'); if( 0 != mmioDescend( m_hmmio, &m_ck, &m_ckRiff, MMIO_FINDCHUNK ) ) return DXTRACE_ERR( TEXT("mmioDescend"), E_FAIL ); } else { // Create the 'data' chunk that holds the waveform samples. m_ck.ckid = mmioFOURCC('d', 'a', 't', 'a'); m_ck.cksize = 0; if( 0 != mmioCreateChunk( m_hmmio, &m_ck, 0 ) ) return DXTRACE_ERR( TEXT("mmioCreateChunk"), E_FAIL ); if( 0 != mmioGetInfo( m_hmmio, &m_mmioinfoOut, 0 ) ) return DXTRACE_ERR( TEXT("mmioGetInfo"), E_FAIL ); } } return S_OK; } //----------------------------------------------------------------------------- // Name: CWaveFile::Read() // Desc: Reads section of data from a wave file into pBuffer and returns // how much read in pdwSizeRead, reading not more than dwSizeToRead. // This uses m_ck to determine where to start reading from. So // subsequent calls will be continue where the last left off unless // Reset() is called. //----------------------------------------------------------------------------- HRESULT CWaveFile::Read( BYTE* pBuffer, DWORD dwSizeToRead, DWORD* pdwSizeRead ) { if( m_bIsReadingFromMemory ) { if( m_pbDataCur == NULL ) return CO_E_NOTINITIALIZED; if( pdwSizeRead != NULL ) *pdwSizeRead = 0; if( (BYTE*)(m_pbDataCur + dwSizeToRead) > (BYTE*)(m_pbData + m_ulDataSize) ) { dwSizeToRead = m_ulDataSize - (DWORD)(m_pbDataCur - m_pbData); } CopyMemory( pBuffer, m_pbDataCur, dwSizeToRead ); if( pdwSizeRead != NULL ) *pdwSizeRead = dwSizeToRead; return S_OK; } else { MMIOINFO mmioinfoIn; // current status of m_hmmio if( m_hmmio == NULL ) return CO_E_NOTINITIALIZED; if( pBuffer == NULL || pdwSizeRead == NULL ) return E_INVALIDARG; if( pdwSizeRead != NULL ) *pdwSizeRead = 0; if( 0 != mmioGetInfo( m_hmmio, &mmioinfoIn, 0 ) ) return DXTRACE_ERR( TEXT("mmioGetInfo"), E_FAIL ); UINT cbDataIn = dwSizeToRead; if( cbDataIn > m_ck.cksize ) cbDataIn = m_ck.cksize; m_ck.cksize -= cbDataIn; for( DWORD cT = 0; cT < cbDataIn; cT++ ) { // Copy the bytes from the io to the buffer. if( mmioinfoIn.pchNext == mmioinfoIn.pchEndRead ) { if( 0 != mmioAdvance( m_hmmio, &mmioinfoIn, MMIO_READ ) ) return DXTRACE_ERR( TEXT("mmioAdvance"), E_FAIL ); if( mmioinfoIn.pchNext == mmioinfoIn.pchEndRead ) return DXTRACE_ERR( TEXT("mmioinfoIn.pchNext"), E_FAIL ); } // Actual copy. *((BYTE*)pBuffer+cT) = *((BYTE*)mmioinfoIn.pchNext); mmioinfoIn.pchNext++; } if( 0 != mmioSetInfo( m_hmmio, &mmioinfoIn, 0 ) ) return DXTRACE_ERR( TEXT("mmioSetInfo"), E_FAIL ); if( pdwSizeRead != NULL ) *pdwSizeRead = cbDataIn; return S_OK; } } //----------------------------------------------------------------------------- // Name: CWaveFile::Close() // Desc: Closes the wave file //----------------------------------------------------------------------------- HRESULT CWaveFile::Close() { if( m_dwFlags == WAVEFILE_READ ) { mmioClose( m_hmmio, 0 ); m_hmmio = NULL; } else { m_mmioinfoOut.dwFlags |= MMIO_DIRTY; if( m_hmmio == NULL ) return CO_E_NOTINITIALIZED; if( 0 != mmioSetInfo( m_hmmio, &m_mmioinfoOut, 0 ) ) return DXTRACE_ERR( TEXT("mmioSetInfo"), E_FAIL ); // Ascend the output file out of the 'data' chunk -- this will cause // the chunk size of the 'data' chunk to be written. if( 0 != mmioAscend( m_hmmio, &m_ck, 0 ) ) return DXTRACE_ERR( TEXT("mmioAscend"), E_FAIL ); // Do this here instead... if( 0 != mmioAscend( m_hmmio, &m_ckRiff, 0 ) ) return DXTRACE_ERR( TEXT("mmioAscend"), E_FAIL ); mmioSeek( m_hmmio, 0, SEEK_SET ); if( 0 != (INT)mmioDescend( m_hmmio, &m_ckRiff, NULL, 0 ) ) return DXTRACE_ERR( TEXT("mmioDescend"), E_FAIL ); m_ck.ckid = mmioFOURCC('f', 'a', 'c', 't'); if( 0 == mmioDescend( m_hmmio, &m_ck, &m_ckRiff, MMIO_FINDCHUNK ) ) { DWORD dwSamples = 0; mmioWrite( m_hmmio, (HPSTR)&dwSamples, sizeof(DWORD) ); mmioAscend( m_hmmio, &m_ck, 0 ); } // Ascend the output file out of the 'RIFF' chunk -- this will cause // the chunk size of the 'RIFF' chunk to be written. if( 0 != mmioAscend( m_hmmio, &m_ckRiff, 0 ) ) return DXTRACE_ERR( TEXT("mmioAscend"), E_FAIL ); mmioClose( m_hmmio, 0 ); m_hmmio = NULL; } return S_OK; } //----------------------------------------------------------------------------- // Name: CWaveFile::WriteMMIO() // Desc: Support function for reading from a multimedia I/O stream // pwfxDest is the WAVEFORMATEX for this new wave file. // m_hmmio must be valid before calling. This function uses it to // update m_ckRiff, and m_ck. //----------------------------------------------------------------------------- HRESULT CWaveFile::WriteMMIO( WAVEFORMATEX *pwfxDest ) { DWORD dwFactChunk; // Contains the actual fact chunk. Garbage until WaveCloseWriteFile. MMCKINFO ckOut1; dwFactChunk = (DWORD)-1; // Create the output file RIFF chunk of form type 'WAVE'. m_ckRiff.fccType = mmioFOURCC('W', 'A', 'V', 'E'); m_ckRiff.cksize = 0; if( 0 != mmioCreateChunk( m_hmmio, &m_ckRiff, MMIO_CREATERIFF ) ) return DXTRACE_ERR( TEXT("mmioCreateChunk"), E_FAIL ); // We are now descended into the 'RIFF' chunk we just created. // Now create the 'fmt ' chunk. Since we know the size of this chunk, // specify it in the MMCKINFO structure so MMIO doesn't have to seek // back and set the chunk size after ascending from the chunk. m_ck.ckid = mmioFOURCC('f', 'm', 't', ' '); m_ck.cksize = sizeof(PCMWAVEFORMAT); if( 0 != mmioCreateChunk( m_hmmio, &m_ck, 0 ) ) return DXTRACE_ERR( TEXT("mmioCreateChunk"), E_FAIL ); // Write the PCMWAVEFORMAT structure to the 'fmt ' chunk if its that type. if( pwfxDest->wFormatTag == WAVE_FORMAT_PCM ) { if( mmioWrite( m_hmmio, (HPSTR) pwfxDest, sizeof(PCMWAVEFORMAT)) != sizeof(PCMWAVEFORMAT)) return DXTRACE_ERR( TEXT("mmioWrite"), E_FAIL ); } else { // Write the variable length size. if( (UINT)mmioWrite( m_hmmio, (HPSTR) pwfxDest, sizeof(*pwfxDest) + pwfxDest->cbSize ) != ( sizeof(*pwfxDest) + pwfxDest->cbSize ) ) return DXTRACE_ERR( TEXT("mmioWrite"), E_FAIL ); } // Ascend out of the 'fmt ' chunk, back into the 'RIFF' chunk. if( 0 != mmioAscend( m_hmmio, &m_ck, 0 ) ) return DXTRACE_ERR( TEXT("mmioAscend"), E_FAIL ); // Now create the fact chunk, not required for PCM but nice to have. This is filled // in when the close routine is called. ckOut1.ckid = mmioFOURCC('f', 'a', 'c', 't'); ckOut1.cksize = 0; if( 0 != mmioCreateChunk( m_hmmio, &ckOut1, 0 ) ) return DXTRACE_ERR( TEXT("mmioCreateChunk"), E_FAIL ); if( mmioWrite( m_hmmio, (HPSTR)&dwFactChunk, sizeof(dwFactChunk)) != sizeof(dwFactChunk) ) return DXTRACE_ERR( TEXT("mmioWrite"), E_FAIL ); // Now ascend out of the fact chunk... if( 0 != mmioAscend( m_hmmio, &ckOut1, 0 ) ) return DXTRACE_ERR( TEXT("mmioAscend"), E_FAIL ); return S_OK; } //----------------------------------------------------------------------------- // Name: CWaveFile::Write() // Desc: Writes data to the open wave file //----------------------------------------------------------------------------- HRESULT CWaveFile::Write( UINT nSizeToWrite, BYTE* pbSrcData, UINT* pnSizeWrote ) { UINT cT; if( m_bIsReadingFromMemory ) return E_NOTIMPL; if( m_hmmio == NULL ) return CO_E_NOTINITIALIZED; if( pnSizeWrote == NULL || pbSrcData == NULL ) return E_INVALIDARG; *pnSizeWrote = 0; for( cT = 0; cT < nSizeToWrite; cT++ ) { if( m_mmioinfoOut.pchNext == m_mmioinfoOut.pchEndWrite ) { m_mmioinfoOut.dwFlags |= MMIO_DIRTY; if( 0 != mmioAdvance( m_hmmio, &m_mmioinfoOut, MMIO_WRITE ) ) return DXTRACE_ERR( TEXT("mmioAdvance"), E_FAIL ); } *((BYTE*)m_mmioinfoOut.pchNext) = *((BYTE*)pbSrcData+cT); (BYTE*)m_mmioinfoOut.pchNext++; (*pnSizeWrote)++; } return S_OK; }
[ "martin.piper@gmail.com" ]
martin.piper@gmail.com
4b74d5c96d7acaba8ed773693f8b0422cfeb6d99
00b33df49d4634e634a5872d2c23358f83322140
/chrome/browser/vr/model/text_input_info.cc
c7383fbfcbfcb4fb727b44d590b52456948273d7
[ "BSD-3-Clause" ]
permissive
sunny-bay/chromium-1
cb317bab740e79402120d89cf67439a89ee6b133
99c64fdcca51d79babb9ea3f0d0ff67739fbdcf1
refs/heads/master
2022-11-30T04:23:31.206076
2018-03-02T02:06:46
2018-03-02T02:06:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,240
cc
// Copyright 2017 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/vr/model/text_input_info.h" #include <algorithm> #include "base/strings/utf_string_conversions.h" namespace vr { namespace { size_t CommonPrefixLength(const base::string16 a, const base::string16 b) { size_t a_len = a.length(); size_t b_len = b.length(); size_t i = 0; while (i < a_len && i < b_len && a[i] == b[i]) { i++; } return i; } } // namespace TextInputInfo::TextInputInfo() : TextInputInfo(base::UTF8ToUTF16(""), 0, 0, kDefaultCompositionIndex, kDefaultCompositionIndex) {} TextInputInfo::TextInputInfo(base::string16 t) : TextInputInfo(t, t.length(), t.length(), kDefaultCompositionIndex, kDefaultCompositionIndex) {} TextInputInfo::TextInputInfo(base::string16 t, int sel_start, int sel_end, int comp_start, int comp_end) : text(t), selection_start(sel_start), selection_end(sel_end), composition_start(comp_start), composition_end(comp_end) { ClampIndices(); } TextInputInfo::TextInputInfo(const TextInputInfo& other) : text(other.text), selection_start(other.selection_start), selection_end(other.selection_end), composition_start(other.composition_start), composition_end(other.composition_end) {} bool TextInputInfo::operator==(const TextInputInfo& other) const { return text == other.text && selection_start == other.selection_start && selection_end == other.selection_end && composition_start == other.composition_start && composition_end == other.composition_end; } bool TextInputInfo::operator!=(const TextInputInfo& other) const { return !(*this == other); } size_t TextInputInfo::SelectionSize() const { return std::abs(selection_end - selection_start); } size_t TextInputInfo::CompositionSize() const { return composition_end - composition_start; } base::string16 TextInputInfo::CommittedTextBeforeCursor() const { if (composition_start == composition_end) return text.substr(0, selection_start); return text.substr(0, composition_start); } base::string16 TextInputInfo::ComposingText() const { if (composition_start == composition_end) return base::UTF8ToUTF16(""); return text.substr(composition_start, CompositionSize()); } std::string TextInputInfo::ToString() const { return base::StringPrintf("t(%s) s(%d, %d) c(%d, %d)", base::UTF16ToUTF8(text).c_str(), selection_start, selection_end, composition_start, composition_end); } void TextInputInfo::ClampIndices() { const int len = text.length(); selection_start = std::min(selection_start, len); selection_end = std::min(selection_end, len); if (selection_end < selection_start) selection_end = selection_start; composition_start = std::min(composition_start, len); composition_end = std::min(composition_end, len); if (composition_end <= composition_start) { composition_start = kDefaultCompositionIndex; composition_end = kDefaultCompositionIndex; } } EditedText::EditedText() {} EditedText::EditedText(const EditedText& other) : current(other.current), previous(other.previous) {} EditedText::EditedText(const TextInputInfo& new_current, const TextInputInfo& new_previous) : current(new_current), previous(new_previous) {} EditedText::EditedText(base::string16 t) : current(t) {} bool EditedText::operator==(const EditedText& other) const { return current == other.current && previous == other.previous; } void EditedText::Update(const TextInputInfo& info) { previous = current; current = info; } std::string EditedText::ToString() const { return current.ToString() + ", previously " + previous.ToString(); } TextEdits EditedText::GetDiff() const { TextEdits edits; if (current == previous) return edits; int common_prefix_length = CommonPrefixLength(current.CommittedTextBeforeCursor(), previous.CommittedTextBeforeCursor()); bool had_composition = previous.CompositionSize() > 0 && current.CompositionSize() == 0; if (had_composition) { edits.push_back(TextEditAction(TextEditActionType::CLEAR_COMPOSING_TEXT)); } int to_delete = 0; // We only want to delete text if the was no selection previously. In the case // where there was a selection, its the editor's responsibility to ensure that // the selected text gets modified when a new edit occurs. if (previous.SelectionSize() == 0) { to_delete = previous.CommittedTextBeforeCursor().size() - common_prefix_length; if (to_delete > 0) { DCHECK(!had_composition); edits.push_back(TextEditAction(TextEditActionType::DELETE_TEXT, base::UTF8ToUTF16(""), -to_delete)); } } int to_commit = current.CommittedTextBeforeCursor().size() - common_prefix_length; if (to_commit > 0) { DCHECK(to_delete == 0); edits.push_back(TextEditAction(TextEditActionType::COMMIT_TEXT, current.CommittedTextBeforeCursor().substr( common_prefix_length, to_commit), to_commit)); } if (current.CompositionSize() > 0) { DCHECK(to_commit <= 0); int cursor = previous.CompositionSize() > 0 ? current.CompositionSize() - previous.CompositionSize() : current.CompositionSize(); edits.push_back(TextEditAction(TextEditActionType::SET_COMPOSING_TEXT, current.ComposingText(), cursor)); } return edits; } static_assert(sizeof(base::string16) + 16 == sizeof(TextInputInfo), "If new fields are added to TextInputInfo, we must explicitly " "bump this size and update operator=="); } // namespace vr
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
d526a9197ac8f0cc7e9d061b5cdb8f54ae9f7a10
30b55be0f49f184fa7bfde8a5733a0a8f5319849
/src/obelix/arm64/MaterializedSyntaxNode.h
36a2da1483d82ac846313e86557a3b89d05c38da
[ "GPL-3.0-or-later", "MIT", "GPL-3.0-only" ]
permissive
JanDeVisser/obelix
b9b5160fbd76070e5a2040ee329093235c905bbc
ed3984e624e760cbef78c731306ad9fd43b2527b
refs/heads/master
2023-07-25T02:39:43.306448
2022-12-25T18:24:38
2022-12-25T18:24:38
34,117,462
2
1
MIT
2022-12-22T14:26:35
2015-04-17T13:15:07
Assembly
UTF-8
C++
false
false
9,874
h
/* * Copyright (c) ${YEAR}, Jan de Visser <jan@finiandarcy.com> * * SPDX-License-Identifier: MIT */ #pragma once #include <obelix/BoundSyntaxNode.h> #include <obelix/arm64/VariableAddress.h> namespace Obelix { class MaterializedDeclaration { public: explicit MaterializedDeclaration() = default; [[nodiscard]] virtual std::shared_ptr<VariableAddress> address() const = 0; [[nodiscard]] virtual std::shared_ptr<ObjectType> const& declared_type() const = 0; }; NODE_CLASS(MaterializedFunctionParameter, BoundIdentifier, public MaterializedDeclaration) public: enum class ParameterPassingMethod { Register, Stack }; MaterializedFunctionParameter(std::shared_ptr<BoundIdentifier> const&, std::shared_ptr<VariableAddress>, ParameterPassingMethod, int); [[nodiscard]] std::string attributes() const override; [[nodiscard]] std::string to_string() const override; [[nodiscard]] std::shared_ptr<ObjectType> const& declared_type() const override; [[nodiscard]] std::shared_ptr<VariableAddress> address() const override; [[nodiscard]] ParameterPassingMethod method() const; [[nodiscard]] int where() const; private: std::shared_ptr<VariableAddress> m_address; ParameterPassingMethod m_method; int m_where; }; using MaterializedFunctionParameters = std::vector<std::shared_ptr<MaterializedFunctionParameter>>; NODE_CLASS(MaterializedFunctionDecl, Statement) public: explicit MaterializedFunctionDecl(std::shared_ptr<BoundFunctionDecl> const&, MaterializedFunctionParameters, int, int); [[nodiscard]] std::shared_ptr<BoundIdentifier> const& identifier() const; [[nodiscard]] std::string const& name() const; [[nodiscard]] std::shared_ptr<ObjectType> type() const; [[nodiscard]] MaterializedFunctionParameters const& parameters() const; [[nodiscard]] int nsaa() const; [[nodiscard]] int stack_depth() const; [[nodiscard]] std::string attributes() const override; [[nodiscard]] Nodes children() const override; [[nodiscard]] std::string to_string() const override; [[nodiscard]] std::string label() const; protected: [[nodiscard]] std::string parameters_to_string() const; private: std::shared_ptr<BoundIdentifier> m_identifier; MaterializedFunctionParameters m_parameters; int m_nsaa; int m_stack_depth; }; NODE_CLASS(MaterializedNativeFunctionDecl, MaterializedFunctionDecl) public: explicit MaterializedNativeFunctionDecl(std::shared_ptr<BoundNativeFunctionDecl> const&, MaterializedFunctionParameters, int); [[nodiscard]] std::string const& native_function_name() const; [[nodiscard]] std::string to_string() const override; private: std::string m_native_function_name; }; NODE_CLASS(MaterializedIntrinsicDecl, MaterializedFunctionDecl) public: MaterializedIntrinsicDecl(std::shared_ptr<BoundIntrinsicDecl> const&, MaterializedFunctionParameters, int); [[nodiscard]] std::string to_string() const override; }; NODE_CLASS(MaterializedFunctionDef, Statement) public: MaterializedFunctionDef(std::shared_ptr<BoundFunctionDef> const&, std::shared_ptr<MaterializedFunctionDecl>, std::shared_ptr<Statement>, int); [[nodiscard]] std::shared_ptr<MaterializedFunctionDecl> const& declaration() const; [[nodiscard]] std::shared_ptr<BoundIdentifier> const& identifier() const; [[nodiscard]] std::string const& name() const; [[nodiscard]] std::shared_ptr<ObjectType> const& type() const; [[nodiscard]] MaterializedFunctionParameters const& parameters() const; [[nodiscard]] std::shared_ptr<Statement> const& statement() const; [[nodiscard]] int stack_depth() const; [[nodiscard]] std::string to_string() const override; [[nodiscard]] Nodes children() const override; [[nodiscard]] std::string label() const; protected: std::shared_ptr<MaterializedFunctionDecl> m_function_decl; std::shared_ptr<Statement> m_statement; int m_stack_depth { 0 }; }; NODE_CLASS(MaterializedFunctionCall, BoundExpression) public: MaterializedFunctionCall(std::shared_ptr<BoundFunctionCall> const&, BoundExpressions, std::shared_ptr<MaterializedFunctionDecl>); [[nodiscard]] std::string attributes() const override; [[nodiscard]] Nodes children() const override; [[nodiscard]] std::string to_string() const override; [[nodiscard]] std::string const& name() const; [[nodiscard]] BoundExpressions const& arguments() const; [[nodiscard]] std::shared_ptr<MaterializedFunctionDecl> const& declaration() const; [[nodiscard]] ObjectTypes argument_types() const; private: std::string m_name; BoundExpressions m_arguments; std::shared_ptr<MaterializedFunctionDecl> m_declaration; }; NODE_CLASS(MaterializedNativeFunctionCall, MaterializedFunctionCall) public: MaterializedNativeFunctionCall(std::shared_ptr<BoundFunctionCall> const&, BoundExpressions, std::shared_ptr<MaterializedNativeFunctionDecl>); }; NODE_CLASS(MaterializedIntrinsicCall, MaterializedFunctionCall) public: MaterializedIntrinsicCall(std::shared_ptr<BoundFunctionCall> const&, BoundExpressions, std::shared_ptr<MaterializedIntrinsicDecl>, IntrinsicType); [[nodiscard]] IntrinsicType intrinsic() const; private: IntrinsicType m_intrinsic; }; NODE_CLASS(MaterializedVariableDecl, Statement, public MaterializedDeclaration) public: MaterializedVariableDecl(std::shared_ptr<BoundVariableDeclaration> const&, size_t, std::shared_ptr<BoundExpression>); MaterializedVariableDecl(std::shared_ptr<BoundVariableDeclaration> const&, std::shared_ptr<BoundExpression>); [[nodiscard]] std::string attributes() const override; [[nodiscard]] Nodes children() const override; [[nodiscard]] std::string to_string() const override; [[nodiscard]] std::shared_ptr<BoundIdentifier> const& variable() const; [[nodiscard]] std::string const& name() const; [[nodiscard]] std::shared_ptr<ObjectType> const& type() const; [[nodiscard]] bool is_const() const; [[nodiscard]] size_t offset() const; [[nodiscard]] std::shared_ptr<BoundExpression> const& expression() const; [[nodiscard]] std::shared_ptr<VariableAddress> address() const override; [[nodiscard]] std::shared_ptr<ObjectType> const& declared_type() const override; private: std::shared_ptr<BoundIdentifier> m_variable; bool m_const { false }; std::shared_ptr<BoundExpression> m_expression; size_t m_offset { 0 }; }; NODE_CLASS(MaterializedStaticVariableDecl, MaterializedVariableDecl) public: MaterializedStaticVariableDecl(std::shared_ptr<BoundVariableDeclaration> const&, std::shared_ptr<BoundExpression>); [[nodiscard]] virtual std::string label() const; [[nodiscard]] std::shared_ptr<VariableAddress> address() const override; }; NODE_CLASS(MaterializedLocalVariableDecl, MaterializedStaticVariableDecl) public: MaterializedLocalVariableDecl(std::shared_ptr<BoundVariableDeclaration> const&, std::shared_ptr<BoundExpression>); }; NODE_CLASS(MaterializedGlobalVariableDecl, MaterializedStaticVariableDecl) public: MaterializedGlobalVariableDecl(std::shared_ptr<BoundVariableDeclaration> const&, std::shared_ptr<BoundExpression>); }; ABSTRACT_NODE_CLASS(MaterializedVariableAccess, BoundVariableAccess) public: MaterializedVariableAccess(std::shared_ptr<BoundExpression> const&, std::shared_ptr<VariableAddress>); [[nodiscard]] std::shared_ptr<VariableAddress> const& address() const; private: std::shared_ptr<VariableAddress> m_address; }; NODE_CLASS(MaterializedIdentifier, MaterializedVariableAccess) public: MaterializedIdentifier(std::shared_ptr<BoundIdentifier> const&, std::shared_ptr<VariableAddress>); [[nodiscard]] std::string const& name() const; [[nodiscard]] std::string attributes() const override; [[nodiscard]] std::string to_string() const override; private: std::string m_identifier; }; NODE_CLASS(MaterializedIntIdentifier, MaterializedIdentifier) public: MaterializedIntIdentifier(std::shared_ptr<BoundIdentifier> const&, std::shared_ptr<VariableAddress>); }; NODE_CLASS(MaterializedStructIdentifier, MaterializedIdentifier) public: MaterializedStructIdentifier(std::shared_ptr<BoundIdentifier> const&, std::shared_ptr<VariableAddress>); }; NODE_CLASS(MaterializedArrayIdentifier, MaterializedIdentifier) public: MaterializedArrayIdentifier(std::shared_ptr<BoundIdentifier> const&, std::shared_ptr<VariableAddress>); }; NODE_CLASS(MaterializedMemberAccess, MaterializedVariableAccess) public: MaterializedMemberAccess(std::shared_ptr<BoundMemberAccess> const&, std::shared_ptr<MaterializedVariableAccess>, std::shared_ptr<MaterializedIdentifier>); [[nodiscard]] std::shared_ptr<MaterializedVariableAccess> const& structure() const; [[nodiscard]] std::shared_ptr<MaterializedIdentifier> const& member() const; [[nodiscard]] std::string attributes() const override; [[nodiscard]] Nodes children() const override; [[nodiscard]] std::string to_string() const override; private: std::shared_ptr<MaterializedVariableAccess> m_struct; std::shared_ptr<MaterializedIdentifier> m_member; }; NODE_CLASS(MaterializedArrayAccess, MaterializedVariableAccess) public: MaterializedArrayAccess(std::shared_ptr<BoundArrayAccess> const&, std::shared_ptr<MaterializedVariableAccess>, std::shared_ptr<BoundExpression>, int); [[nodiscard]] std::shared_ptr<MaterializedVariableAccess> const& array() const; [[nodiscard]] std::shared_ptr<BoundExpression> const& index() const; [[nodiscard]] std::string attributes() const override; [[nodiscard]] Nodes children() const override; [[nodiscard]] std::string to_string() const override; [[nodiscard]] int element_size() const; private: std::shared_ptr<MaterializedVariableAccess> m_array; int m_element_size; std::shared_ptr<BoundExpression> m_index; }; }
[ "jan@de-visser.net" ]
jan@de-visser.net
8c9a7ba76fa85186ffb6305f39efbc410597877e
debe1c0fbb03a88da943fcdfd7661dd31b756cfc
/units/include/modelTests/TestModel1.hpp
5615801299e75153f6ee0b1b29d9001c1c75dc85
[]
no_license
pnnl/eom
93e2396aad4df8653bec1db3eed705e036984bbc
9ec5eb8ab050b755898d06760f918f649ab85db5
refs/heads/master
2021-08-08T04:51:15.798420
2021-06-29T18:19:50
2021-06-29T18:19:50
137,411,396
1
1
null
null
null
null
UTF-8
C++
false
false
844
hpp
/* * TestModel1.hpp * * Created on: Jan 19, 2012 * Author: kglass */ #ifndef TESTMODEL1_HPP_ #define TESTMODEL1_HPP_ #include <cppunit/TestFixture.h> #include <cppunit/extensions/HelperMacros.h> #include "Parser.hpp" #include "simulation/Scheduler.hpp" namespace testing { class TestModel1 : public CPPUNIT_NS :: TestFixture { CPPUNIT_TEST_SUITE (TestModel1); CPPUNIT_TEST (schedulerSetupTests); CPPUNIT_TEST_SUITE_END (); public: TestModel1() { scheduler = NULL; parser = NULL; }; virtual ~TestModel1(){}; void setUp(void); void tearDown(void); protected: void schedulerSetupTests(void); void generatorSetupTests(void); void zoneSetupTests(void); void baSetupTests(void); private: simulator::Scheduler * scheduler; interpreter::RIMParser * parser; }; } /* namespace testing */ #endif /* TESTMODEL1_HPP_ */
[ "xke@pnnl.gov" ]
xke@pnnl.gov
64eab4bf2cdb395d17e6cf4e8bd4127ae423357b
bcf2fc57d10f5778690dbb56913b0c2efa2b5f61
/src/entitySystem.cpp
e62b0eb8ed8a5219ebe599b96107c6f1242cf999
[]
no_license
Kartoffelsaft/speen
1d0dc5b5046de9f7d67e272aacf47964c87bad1d
1924abaf7236184d6d064086d9286d8dec91caa6
refs/heads/master
2023-07-05T23:39:56.789245
2021-08-04T18:48:55
2021-08-04T18:48:55
335,718,674
1
0
null
null
null
null
UTF-8
C++
false
false
638
cpp
#include "entitySystem.h" EntityId EntitySystem::newEntity() { auto const nid = nextEntityId++; entities.insert(nid); return nid; } void EntitySystem::removeEntity(EntityId const id) { entities.erase(id); invalidEntities.insert(id); for(auto& [_, component]: components) if(component->containsEntity(id)) { component->removeEntity(id); } } void EntitySystem::queueRemoveEntity(EntityId const id) { entityRemovalQueue.emplace(id); } void EntitySystem::removeQueuedEntities() { for(auto const id: entityRemovalQueue) { this->removeEntity(id); } entityRemovalQueue.clear(); }
[ "ben.g.findley@gmail.com" ]
ben.g.findley@gmail.com
9f191a868431822354d5ff7df940fbb2d4d43598
8567438779e6af0754620a25d379c348e4cd5a5d
/third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.cpp
468c511790c4942c3524d14ec849cd45490669e8
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
thngkaiyuan/chromium
c389ac4b50ccba28ee077cbf6115c41b547955ae
dab56a4a71f87f64ecc0044e97b4a8f247787a68
refs/heads/master
2022-11-10T02:50:29.326119
2017-04-08T12:28:57
2017-04-08T12:28:57
84,073,924
0
1
BSD-3-Clause
2022-10-25T19:47:15
2017-03-06T13:04:15
null
UTF-8
C++
false
false
4,946
cpp
/* * Copyright (C) 2011 Ericsson AB. All rights reserved. * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 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 Ericsson nor the names of its contributors * may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "platform/mediastream/MediaStreamCenter.h" #include "platform/mediastream/MediaStreamDescriptor.h" #include "platform/mediastream/MediaStreamWebAudioSource.h" #include "public/platform/Platform.h" #include "public/platform/WebAudioSourceProvider.h" #include "public/platform/WebMediaStream.h" #include "public/platform/WebMediaStreamCenter.h" #include "public/platform/WebMediaStreamTrack.h" #include "wtf/Assertions.h" #include "wtf/PtrUtil.h" #include <memory> namespace blink { MediaStreamCenter& MediaStreamCenter::instance() { ASSERT(isMainThread()); DEFINE_STATIC_LOCAL(MediaStreamCenter, center, ()); return center; } MediaStreamCenter::MediaStreamCenter() : m_private( WTF::wrapUnique(Platform::current()->createMediaStreamCenter(this))) { } MediaStreamCenter::~MediaStreamCenter() {} void MediaStreamCenter::didSetMediaStreamTrackEnabled( MediaStreamComponent* component) { if (m_private) { if (component->enabled()) { m_private->didEnableMediaStreamTrack(component); } else { m_private->didDisableMediaStreamTrack(component); } } } bool MediaStreamCenter::didAddMediaStreamTrack( MediaStreamDescriptor* stream, MediaStreamComponent* component) { return m_private && m_private->didAddMediaStreamTrack(stream, component); } bool MediaStreamCenter::didRemoveMediaStreamTrack( MediaStreamDescriptor* stream, MediaStreamComponent* component) { return m_private && m_private->didRemoveMediaStreamTrack(stream, component); } void MediaStreamCenter::didStopLocalMediaStream(MediaStreamDescriptor* stream) { if (m_private) m_private->didStopLocalMediaStream(stream); } bool MediaStreamCenter::didStopMediaStreamTrack(MediaStreamComponent* track) { return m_private && m_private->didStopMediaStreamTrack(track); } void MediaStreamCenter::didCreateMediaStreamAndTracks( MediaStreamDescriptor* stream) { if (!m_private) return; for (size_t i = 0; i < stream->numberOfAudioComponents(); ++i) didCreateMediaStreamTrack(stream->audioComponent(i)); for (size_t i = 0; i < stream->numberOfVideoComponents(); ++i) didCreateMediaStreamTrack(stream->videoComponent(i)); WebMediaStream webStream(stream); m_private->didCreateMediaStream(webStream); } void MediaStreamCenter::didCreateMediaStream(MediaStreamDescriptor* stream) { if (m_private) { WebMediaStream webStream(stream); m_private->didCreateMediaStream(webStream); } } void MediaStreamCenter::didCreateMediaStreamTrack(MediaStreamComponent* track) { if (m_private) m_private->didCreateMediaStreamTrack(track); } void MediaStreamCenter::didSetContentHint(MediaStreamComponent* track) { if (m_private) m_private->didSetContentHint(track); } std::unique_ptr<AudioSourceProvider> MediaStreamCenter::createWebAudioSourceFromMediaStreamTrack( MediaStreamComponent* track) { DCHECK(track); if (m_private) { return MediaStreamWebAudioSource::create(WTF::wrapUnique( m_private->createWebAudioSourceFromMediaStreamTrack(track))); } return nullptr; } void MediaStreamCenter::stopLocalMediaStream(const WebMediaStream& webStream) { MediaStreamDescriptor* stream = webStream; MediaStreamDescriptorClient* client = stream->client(); if (client) client->streamEnded(); } } // namespace blink
[ "hedonist.ky@gmail.com" ]
hedonist.ky@gmail.com
ed4059e7218409a4dc3688c52f1d1530eeddba92
17b0d361fe060246b80be9675ec84cd8f96344d8
/of_v0.7.4_win_cb_release/apps/eyewriter/eyeChess-1.1/src/utils/ofxControlPanel/simpleLogger.h
866ca8d85e2b6842943292dcb8279947830aeb2b
[ "MIT" ]
permissive
manunapo/eye-chess
88099b72336733bc4adc87d04d1cff1aef70f313
754bdccee88a2baf73cfda0af7d281d5210ca060
refs/heads/master
2021-01-10T07:54:26.903117
2015-07-10T22:55:30
2015-07-10T22:55:30
36,328,709
0
0
null
null
null
null
UTF-8
C++
false
false
4,550
h
#pragma once #include "ofMain.h" #include "ofxXmlSettings.h" typedef struct { string msg; int level; string logStr; long timestamp; int year; int month; int day; int hour; int minute; int seconds; } logRecord; class simpleLogger : public ofBaseDraws { public: simpleLogger() { fileLoaded = false; bDate = true; bTime = true; bLevel = true; } //------------------------------------------------ ~simpleLogger() { if(fileLoaded) { saveFile(); } } //------------------------------------------------ void setup(string logFileName, bool overwrite) { logFile = logFileName; fileLoaded = xml.loadFile(logFile); if(overwrite) { xml.clear(); xml.saveFile(logFile); } if( !fileLoaded ) { xml.saveFile(logFile); fileLoaded = true; } } void setIncludeDate(bool bIncludeDate) { bDate = bIncludeDate; } void setIncludeTime(bool bIncludeTime) { bTime = bIncludeTime; } void setIncludeLevelbool(bool bIncludeLevel) { bLevel = bIncludeLevel; } //-------------------------------------------------- void log(int logLevel, const char* format, ...) { //thanks stefan! //http://www.ozzu.com/cpp-tutorials/tutorial-writing-custom-printf-wrapper-function-t89166.html logRecord record; record.year = ofGetYear(); record.month = ofGetMonth(); record.day = ofGetDay(); record.hour = ofGetHours(); record.minute = ofGetMinutes(); record.seconds = ofGetSeconds(); record.level = logLevel; char str[2048] = {0}; va_list args; va_start( args, format ); vsprintf(str, format, args ); va_end( args ); record.msg = str; record.logStr = convertToString(record); logs.push_back(record); logToXml(record); } float getWidth() { return 0; } float getHeight() { return 0; } //---------------------------------------------- string convertToString(logRecord & record) { string timeStr; string dateStr; string levelStr; if(bDate) dateStr = ofToString(record.year) +"-"+ofToString(record.month) +"-"+ ofToString(record.day)+" "; if(bTime) timeStr = ofToString(record.hour) + ":"+ ofToString(record.minute) + ":"+ ofToString(record.seconds)+" "; if( bLevel ) { if(record.level == OF_LOG_VERBOSE) levelStr = "VERBOSE: "; else if(record.level == OF_LOG_NOTICE)levelStr = "NOTICE: "; else if(record.level == OF_LOG_WARNING)levelStr = "WARNING: "; else if(record.level == OF_LOG_ERROR)levelStr = "ERROR: "; else if(record.level == OF_LOG_FATAL_ERROR)levelStr = "FATAL_ERROR: "; } return dateStr + timeStr + levelStr + record.msg; } //----------------------------------------------- void logToXml(logRecord & record) { if(!fileLoaded)return; xml.addValue("log", record.logStr); } //-----------------------------------------------. void saveFile() { xml.saveFile(logFile); } //-----------------------------------------------. void draw(float x, float y) { ofPushStyle(); float yPos; for(int i = logs.size()-1; i >= 0; i--) { yPos += 13.6; string str = logs[i].logStr; ofDrawBitmapString(str, x, y + yPos); } ofPopStyle(); } //-----------------------------------------------. void draw(float x, float y, float width, float height) { ofPushStyle(); float yPos; for(int i = logs.size()-1; i >= 0; i--) { yPos += 13.6; if(yPos >= height)break; string str = logs[i].logStr; if( str.length() * 8> width ) { int newLen = (float)width / 8; //newLen = ofClamp(newLen, 1, 999999); str = str.substr(0, newLen); } ofDrawBitmapString(str, x, y + yPos); } ofPopStyle(); } string logFile; ofxXmlSettings xml; bool fileLoaded; bool bLevel; bool bTime; bool bDate; vector <logRecord> logs; };
[ "napolimanuel@gmaill.com" ]
napolimanuel@gmaill.com
1bf3fd7bfb307318f76fe6bf989ad8033074774b
62d0bed85f45ef2914fed9a5962d1f431380ccb0
/ForeverDll/src/constant.cc
05c643bbb38c17eb16a598952a01a9b35e59563f
[]
no_license
Pitue/Forever
f208269db6322564a72a8d165e9652ad73110240
38fbdc69a8d7c64ee2c2cb023cf5df7f830d878f
refs/heads/master
2023-07-04T09:35:39.442463
2021-06-01T22:31:00
2021-06-01T22:31:00
372,972,885
0
0
null
null
null
null
UTF-8
C++
false
false
755
cc
#include "../include/constant.h" namespace fr { const uint8 VERSION_MAJOR = 0; const uint8 VERSION_MINOR = 0; const uint8 VERSION_PATCHLEVEL = 0; const std::string VERSION_STR = "Forever V. 0.0.0"; const uint32 DEFAULT_VECTOR_SIZE = 1024; const std::vector<std::string> ERROR_MESSAGE = { "Forever: Couldn't find/open the specified File: ", "Forever: Given Index is out of range", "Forever: Given Paramter is out of range", "Forever: An overflow has occured", "Forever: An underflow has occured", "Forever: Couldn't initialize Libary: ", "Forever: Couldn't create an object: ", "Forever: Lua: ", "Forever: Lua: Couldn't load Variable: ", "Forever: SDL Error: " }; ErrorHandle ERROR_HANDLE(ErrorHandleMode::SHOW_MESSAGE_BOX); }
[ "mhofmann713@Gmail.com" ]
mhofmann713@Gmail.com
eefcb7626d2ae10a6008cb2caf617c7ae556d6be
66101da763763631712d509995e09e1d28a9b2d5
/mpu_simulator/include/weight_fetcher.h
c74f0de792e3413bf1021ff00bfbc34d48a9277e
[ "MIT" ]
permissive
mat1221-hub/camuy
1575bca292ba0faa9e9d03d4f6cb2ca84007cfb1
6f651a41ff3eb30d8ab3233ce20cc5f48f9cbfcb
refs/heads/master
2023-03-16T05:35:11.290067
2020-08-11T13:18:11
2020-08-11T13:18:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
16,723
h
/* Copyright (c) 2020 Computing Systems Group * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /** * @file weight_fetcher.h * @author Kevin Stehle (stehle@stud.uni-heidelberg.de) * @date 2019-2020 * @copyright MIT License */ #ifndef WEIGHT_FIFO_H #define WEIGHT_FIFO_H #include <algorithm> #include <iostream> #include <cmath> #include <cstdint> #include "systolic_array.h" /** * @struct WeightUpdateRequest * @brief Struct representing the data required for a * weight update request: The x and y coordinate * of the block to be stored to the weight registers * of the systolic array PEs, as well as the * systolic array PE diagonals already updates */ struct WeightUpdateRequest { WeightUpdateRequest(const size_t blockCoordinateX, const size_t blockCoordinateY): blockCoordinateX{blockCoordinateX}, blockCoordinateY{blockCoordinateY} { } size_t blockCoordinateX; size_t blockCoordinateY; size_t diagonalsUpdated{0UL}; }; /** * @class WeightFetcher * @brief Functional unit responsible for storing weight matrix tiles * to the weight registers of the systolic array PEs * @tparam WeightDatatype The weight datatype of the MPU * @tparam ActivationDatatype The activation datatype of the MPU * @tparam AccumulatorDatatype The accumulator datatype of the MPU */ template<typename WeightDatatype, typename ActivationDatatype, typename AccumulatorDatatype> class WeightFetcher { public: /** * @brief * @param systolicArrayPtr */ WeightFetcher(SystolicArray<WeightDatatype, ActivationDatatype, AccumulatorDatatype>* const systolicArrayPtr): m_systolicArrayPtr{systolicArrayPtr}, m_systolicArrayWidth{m_systolicArrayPtr->getWidth()}, m_systolicArrayHeight{m_systolicArrayPtr->getHeight()}, m_systolicArrayDiagonals{m_systolicArrayWidth + m_systolicArrayHeight - 1} { } size_t getDiagonalCountBitwidthRequiredMin() const { return std::ceil(std::log2(m_systolicArrayDiagonals)); } size_t getWeightUpdateRequestQueueAddressBitwidthRequiredMin() const { return std::ceil(std::log2(m_weightUpdateRequestQueueLengthMax)); } size_t getMatrixAddressBitwidthRequiredMin(const size_t unifiedBufferSize) const { return std::ceil(std::log2(unifiedBufferSize)); } size_t getMatrixWidthBitwidthRequiredMin() const { return std::ceil(std::log2(m_matrixWidthMax)); } size_t getMatrixHeightBitwidthRequiredMin() const { return std::ceil(std::log2(m_matrixHeightMax)); } size_t getBlocksXBitwidthRequiredMin() const { return std::ceil(std::log2(m_blocksXMax)); } size_t getBlocksYBitwidthRequiredMin() const { return std::ceil(std::log2(m_blocksYMax)); } size_t getActiveColumnsBitwidthRequiredMin() const { return std::ceil(std::log2(m_activeColumnsMax)); } size_t getIdleRowsBitwidthRequiredMin() const { return std::ceil(std::log2(m_idleRowsLastBlockMax)); } size_t getLoadCount() const { return m_loadCount; } size_t getConcurrentLoadsMax() const { return m_concurrentLoadCountMax; } size_t getConcurrentLoadsPerColumnMax() const { return m_concurrentLoadCountPerColumnMax; } size_t getControlRegisterBits(const size_t unifiedBufferSize) const { /* To calculate the number of control bits * dependent on the maximum update request * queue length required for the weight fetcher * to perform all the updates necessary for all * matrix multiplication operations performed * since the maximum register values were last * reset using resetMaxRegisterValues(), we need * to multiply the maximum queue length with the * bits required for the registers used to * store each queue element. These registers are * the block count x register (modelled by * blockX), the block count y register (modelled * by blockY), and the updated diagonals counter * (modelled by diagonalsUpdated). * Additional to these registers required for each * element in the update request queue, there exist * a number of registers not dependent on the maximum * update request queue length. These are the matrix * address register (modelled by m_matrixPtrCurrent * and m_matrixPtrNext), the matrix width register * (modelled by m_matrixWidthCurrent and * m_matrixWidthNext), the matrix height register * (modelled by m_matrixHeightCurrent and * m_matrixHeightNext), the block count x register * (modelled by m_blockCountXCurrent and * m_blocksXNext), the block count y register * (modelled by m_blockCountYCurrent and * m_blocksYNext), the active columns register * (modelled by m_activeColumnsCurrent and * m_activeColumnsNext), the idle row count * register (modelled by m_idleRowsCurrent and * m_idleRowsNext), and the busy flag bit * (modelled by m_busyCurrent). As the state of the * busy flag bit only changes in the updateState() * function, no corresponding next signal register * was used to model it, as its next state does not * need to be stored in between state updates. */ return m_weightUpdateRequestQueueLengthMax*( getBlocksXBitwidthRequiredMin() + getBlocksYBitwidthRequiredMin() + getDiagonalCountBitwidthRequiredMin()) + getMatrixAddressBitwidthRequiredMin(unifiedBufferSize) + getMatrixWidthBitwidthRequiredMin() + getMatrixHeightBitwidthRequiredMin() + getBlocksXBitwidthRequiredMin() + getBlocksYBitwidthRequiredMin() + getActiveColumnsBitwidthRequiredMin() + getIdleRowsBitwidthRequiredMin() + 1UL; } void resetDataMovementCounters() { m_loadCount = 0UL; m_concurrentLoadCountMax = 0UL; m_concurrentLoadCountPerColumnMax = 0UL; } void resetMaxRegisterValues() { m_weightUpdateRequestQueueLengthMax = 0UL; m_matrixWidthMax = 0UL; m_matrixHeightMax = 0UL; m_blocksXMax = 0UL; m_blocksYMax = 0UL; m_activeColumnsMax = 0UL; m_idleRowsLastBlockMax = 0UL; } bool hasBusySignal() const { return m_busyCurrent; } size_t getBlockCountX() const { return m_blocksXCurrent; } size_t getBlockCountY() const { return m_blocksYCurrent; } size_t getActiveColumnsLastBlock() const { return m_activeColumnsLastBlockCurrent; } /** * @brief * @param weightArrayPtr * @param width * @param height */ void setInput(const WeightDatatype* const weightArrayPtr, const size_t width, const size_t height) { m_matrixPtrNext = weightArrayPtr; m_matrixWidthNext = width; if(m_matrixWidthMax < m_matrixWidthNext) { m_matrixWidthMax = m_matrixWidthNext; } m_matrixHeightNext = height; if(m_matrixHeightMax < m_matrixHeightNext) { m_matrixHeightMax = m_matrixHeightNext; } m_blocksXNext = std::ceil(static_cast<float>(m_matrixWidthNext)/ static_cast<float>(m_systolicArrayWidth)); if(m_blocksXMax < m_blocksXNext) { m_blocksXMax = m_blocksXNext; } m_blocksYNext = std::ceil(static_cast<float>(m_matrixHeightNext)/ static_cast<float>(m_systolicArrayHeight)); if(m_blocksYMax < m_blocksYNext) { m_blocksYMax = m_blocksYNext; } m_activeColumnsLastBlockNext = m_systolicArrayWidth*(1L - m_blocksXNext) + m_matrixWidthNext; if(m_activeColumnsMax < m_activeColumnsLastBlockNext) { m_activeColumnsMax = m_activeColumnsLastBlockNext; } m_idleRowsLastBlockNext = m_blocksYNext*m_systolicArrayHeight - m_matrixHeightNext; if(m_idleRowsLastBlockMax < m_idleRowsLastBlockNext) { m_idleRowsLastBlockMax = m_idleRowsLastBlockNext; } } /** * @brief * @param blockX * @param blockY */ void updateWeights(const size_t blockX, const size_t blockY) { assert(blockX < m_blocksXCurrent); assert(blockY < m_blocksYCurrent); m_weightUpdateRequestQueue.emplace_back( WeightUpdateRequest(blockX, blockY)); if(m_weightUpdateRequestQueueLengthMax < m_weightUpdateRequestQueue.size()) { m_weightUpdateRequestQueueLengthMax = m_weightUpdateRequestQueue.size(); } } void clearWeightUpdateRequestQueue() { m_clearWeightUpdateRequestQueueNext = true; } /** * @brief */ void runIteration() { size_t concurrentLoadCount{0UL}; std::vector<size_t> concurrentLoadsPerColumn(m_systolicArrayWidth); for(WeightUpdateRequest& weightUpdateRequest : m_weightUpdateRequestQueue) { const size_t activeColumns{(weightUpdateRequest.blockCoordinateX != (m_blocksXCurrent - 1)) ? m_systolicArrayWidth : m_activeColumnsLastBlockCurrent}; const size_t idleRows{(weightUpdateRequest.blockCoordinateY != (m_blocksYCurrent - 1)) ? 0UL : m_idleRowsLastBlockNext}; for(ProcessingElement<WeightDatatype, ActivationDatatype, AccumulatorDatatype>* pePtr : m_systolicArrayPtr->getDiagonal( weightUpdateRequest.diagonalsUpdated)) { if((pePtr->getPosition().x < activeColumns) && (pePtr->getPosition().y >= idleRows)) { pePtr->storeWeight(m_matrixPtrCurrent[(weightUpdateRequest.blockCoordinateY* m_systolicArrayHeight + pePtr->getPosition().y - idleRows)* m_matrixWidthCurrent + weightUpdateRequest.blockCoordinateX* m_systolicArrayWidth + pePtr->getPosition().x]); ++m_loadCount; ++concurrentLoadCount; ++concurrentLoadsPerColumn.at(pePtr->getPosition().x); } else { pePtr->storeWeight(WeightDatatype(0)); } } weightUpdateRequest.diagonalsUpdated++; } if(m_concurrentLoadCountMax < concurrentLoadCount) { m_concurrentLoadCountMax = concurrentLoadCount; } for(const size_t& columnConcurrentLoadCount : concurrentLoadsPerColumn) { if(m_concurrentLoadCountPerColumnMax < columnConcurrentLoadCount) { m_concurrentLoadCountPerColumnMax = columnConcurrentLoadCount; } } size_t count{0UL}; for(auto it{m_weightUpdateRequestQueue.begin()}; it < m_weightUpdateRequestQueue.end(); ++it) { if(it->diagonalsUpdated == m_systolicArrayDiagonals) { m_weightUpdateRequestQueue.erase(it); } ++count; } } /** * @brief */ void updateState() { m_matrixPtrCurrent = m_matrixPtrNext; m_matrixWidthCurrent = m_matrixWidthNext; m_matrixHeightCurrent = m_matrixHeightNext; m_blocksXCurrent = m_blocksXNext; m_blocksYCurrent = m_blocksYNext; m_activeColumnsLastBlockCurrent = m_activeColumnsLastBlockNext; m_idleRowsLastBlockCurrent = m_idleRowsLastBlockNext; m_busyCurrent = (m_weightUpdateRequestQueue.size() > 0UL) ? true : false; if(m_clearWeightUpdateRequestQueueNext) { m_weightUpdateRequestQueue.clear(); } m_clearWeightUpdateRequestQueueNext = false; } private: SystolicArray<WeightDatatype, ActivationDatatype, AccumulatorDatatype>* const m_systolicArrayPtr; const size_t m_systolicArrayWidth; const size_t m_systolicArrayHeight; const size_t m_systolicArrayDiagonals; std::vector<WeightUpdateRequest> m_weightUpdateRequestQueue; size_t m_weightUpdateRequestQueueLengthMax{0UL}; const WeightDatatype* m_matrixPtrCurrent{nullptr}; const WeightDatatype* m_matrixPtrNext{nullptr}; size_t m_matrixWidthCurrent{0UL}; size_t m_matrixWidthNext{0UL}; size_t m_matrixWidthMax{0UL}; size_t m_matrixHeightCurrent{0UL}; size_t m_matrixHeightNext{0UL}; size_t m_matrixHeightMax{0UL}; size_t m_blocksXCurrent{0UL}; size_t m_blocksXNext{0UL}; size_t m_blocksXMax{0UL}; size_t m_blocksYCurrent{0UL}; size_t m_blocksYNext{0UL}; size_t m_blocksYMax{0UL}; size_t m_activeColumnsLastBlockCurrent{0UL}; size_t m_activeColumnsLastBlockNext{0UL}; size_t m_activeColumnsMax{0UL}; size_t m_idleRowsLastBlockCurrent{0UL}; size_t m_idleRowsLastBlockNext{0UL}; size_t m_idleRowsLastBlockMax{0UL}; size_t m_loadCount{0UL}; size_t m_concurrentLoadCountMax{0UL}; size_t m_concurrentLoadCountPerColumnMax{0UL}; bool m_busyCurrent{false}; bool m_clearWeightUpdateRequestQueueNext{false}; }; #endif
[ "stehle@stud.uni-heidelberg.de" ]
stehle@stud.uni-heidelberg.de
49f852d5ef6459916e3df852be18401a472a8a70
8efd6b5cebbb3c509715fcab8571272e74023b54
/hello.cpp
61e0d2fc0eb745636e1410aa0fbf724a0497daec
[]
no_license
sessihers/Keppnisforritun
95cdacba29d2e1a5eab889477ae02d2f971bd9f1
32447645ee07f2eeddd4d01a6f37575635cbe079
refs/heads/master
2020-06-22T17:22:07.192997
2019-07-19T10:33:32
2019-07-19T10:33:32
197,753,857
0
0
null
null
null
null
UTF-8
C++
false
false
275
cpp
#include <iostream> #include <stdio.h> #include <string> #include <cstring> #include <string.h> #include <math.h> #include <iostream> #include <algorithm> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout << "Hello World!" << endl; }
[ "sesarh@icloud.com" ]
sesarh@icloud.com
0beeaff3c7801da3de44855e41416568292cd31b
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/collectd/gumtree/collectd_repos_function_2319_collectd-5.7.1.cpp
d614790a21fdca09da1741aaa9f91e3487178bf3
[]
no_license
niuxu18/logTracker-old
97543445ea7e414ed40bdc681239365d33418975
f2b060f13a0295387fe02187543db124916eb446
refs/heads/master
2021-09-13T21:39:37.686481
2017-12-11T03:36:34
2017-12-11T03:36:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
813
cpp
int lookup_add(lookup_t *obj, /* {{{ */ lookup_identifier_t const *ident, unsigned int group_by, void *user_class) { by_type_entry_t *by_type = NULL; user_class_list_t *user_class_obj; by_type = lu_search_by_type(obj, ident->type, /* allocate = */ 1); if (by_type == NULL) return (-1); user_class_obj = calloc(1, sizeof(*user_class_obj)); if (user_class_obj == NULL) { ERROR("utils_vl_lookup: calloc failed."); return (ENOMEM); } pthread_mutex_init(&user_class_obj->entry.lock, /* attr = */ NULL); user_class_obj->entry.user_class = user_class; lu_copy_ident_to_match(&user_class_obj->entry.match, ident, group_by); user_class_obj->entry.user_obj_list = NULL; user_class_obj->next = NULL; return (lu_add_by_plugin(by_type, user_class_obj)); }
[ "993273596@qq.com" ]
993273596@qq.com
3c4f0e8969ae7c2dac3813fec298e00012fa1928
b6c42877348b08f438fcc32564790cee234636ab
/ARTICULATION POiNT.cpp
2bd9d086891eea32eea2ef7bb229b8f233470aed
[]
no_license
ankitsri98/Competitive-Programmng-
23206dfd26e256f67cabc0f43e96f77b20b7ab1d
81e1d293ae93a3c9b6b3fc47ab11eb3586a4e574
refs/heads/master
2023-07-19T10:05:55.721309
2023-07-12T17:53:16
2023-07-12T17:53:16
202,794,830
7
4
null
2021-02-28T06:16:38
2019-08-16T20:25:18
C++
UTF-8
C++
false
false
1,303
cpp
#include <bits/stdc++.h> using namespace std; #define ll long int vector<int > adj[100005]; int vis[100005]={0}; ll in[100005], low[100005]; set<ll > ans; //finding bridges in a graph ll timer=0; void dfs(ll u, ll par){ vis[u]=1; in[u]=low[u]=timer; timer++; ll count=0; for(auto child: adj[u]){ if(child==par)continue; else if(vis[child]==1){ //back edge low[u]=min(low[u],in[child]); } else{ dfs(child,u); if(low[child]>=in[u] && par!=-1){//means child can only be visited through long //path that is from u and no other node //cout<<"Bridge found :- "<<u<<" -- "<<child<<endl; ans.insert(u); } low[u]=min(low[u],low[child]); count++; } } if(par==-1 && count>1){ ans.insert(u); } } int main() { ll m,n,x,y; while(1){ cin>>m>>n; if(m==0 && n==0)break; for(int i=0;i<n;i++){ cin>>x>>y; adj[x].push_back(y); adj[y].push_back(x); } dfs(1,-1); cout<<ans.size()<<endl; ans.clear(); for(int i=0;i<=m;i++){ adj[i].clear();vis[i]=0; } } return 0; }
[ "noreply@github.com" ]
noreply@github.com
b9d072373a120c0420a55304848b717d46e57267
5aa4e2700c392378382c5a31fc1fcbbc0f98dfa4
/codeforces/codeforces_368B.cpp
fa12210d2885376009b368a5a3711818cdb8218e
[]
no_license
moayman/problem_solving
892a25d96bf2f27c53f8e6e1956a75f5350adcaa
088a65375ebe87436ee7fa891694fc551bc979c5
refs/heads/master
2022-06-25T20:32:58.733493
2022-05-16T19:47:46
2022-05-16T19:47:46
91,253,798
0
0
null
null
null
null
UTF-8
C++
false
false
397
cpp
#include <iostream> #include <set> using namespace std; int data[100000], n, m, input; set<int> answer; int main() { scanf("%d %d", &n, &m); for (int i = 0; i < n; i++) scanf("%d", &data[i]); for (int i = n - 1; i > -1; i--) { answer.insert(data[i]); data[i] = answer.size(); } for (int i = 0; i < m; i++) { scanf("%d", &input); printf("%d\n", data[input - 1]); } return 0; }
[ "mo_ayman@live.com" ]
mo_ayman@live.com
8c559cae18093f4493167b8fe47f8c47cda35837
45c84e64a486a3c48bd41a78e28252acbc0cc1b0
/src/chrome/browser/safe_browsing/download_protection/check_client_download_request.cc
9947045597a69c5f8fdad351d248c84d271dbe7b
[ "BSD-3-Clause", "MIT" ]
permissive
stanleywxc/chromium-noupdator
47f9cccc6256b1e5b0cb22c598b7a86f5453eb42
637f32e9bf9079f31430c9aa9c64a75247993a71
refs/heads/master
2022-12-03T22:00:20.940455
2019-10-04T16:29:31
2019-10-04T16:29:31
212,851,250
1
2
MIT
2022-11-17T09:51:04
2019-10-04T15:49:33
null
UTF-8
C++
false
false
14,105
cc
// Copyright 2017 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/safe_browsing/download_protection/check_client_download_request.h" #include <algorithm> #include <memory> #include "base/bind.h" #include "base/feature_list.h" #include "base/metrics/histogram_functions.h" #include "base/metrics/histogram_macros.h" #include "base/strings/string_number_conversions.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.h" #include "chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router_factory.h" #include "chrome/browser/policy/browser_dm_token_storage.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/safe_browsing/advanced_protection_status_manager.h" #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h" #include "chrome/browser/safe_browsing/download_protection/download_feedback_service.h" #include "chrome/browser/safe_browsing/download_protection/download_item_request.h" #include "chrome/browser/safe_browsing/download_protection/download_protection_service.h" #include "chrome/browser/safe_browsing/download_protection/download_protection_util.h" #include "chrome/common/safe_browsing/download_type_util.h" #include "chrome/common/safe_browsing/file_type_policies.h" #include "components/policy/core/common/policy_pref_names.h" #include "components/prefs/pref_service.h" #include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/safe_browsing/common/utils.h" #include "components/safe_browsing/features.h" #include "components/safe_browsing/proto/csd.pb.h" #include "components/safe_browsing/proto/webprotect.pb.h" #include "content/public/browser/browser_context.h" #include "content/public/browser/download_item_utils.h" namespace safe_browsing { using content::BrowserThread; namespace { // TODO(drubery): This function would be simpler if the ClientDownloadResponse // and MalwareDeepScanningVerdict used the same enum. std::string MalwareVerdictToThreatType( MalwareDeepScanningVerdict::Verdict verdict) { switch (verdict) { case MalwareDeepScanningVerdict::CLEAN: return "SAFE"; case MalwareDeepScanningVerdict::UWS: return "POTENTIALLY_UNWANTED"; case MalwareDeepScanningVerdict::MALWARE: return "DANGEROUS"; case MalwareDeepScanningVerdict::VERDICT_UNSPECIFIED: default: return "UNKNOWN"; } } } // namespace void MaybeReportDownloadDeepScanningVerdict( Profile* profile, const GURL& url, const std::string& file_name, const std::string& download_digest_sha256, BinaryUploadService::Result result, DeepScanningClientResponse response) { if (result == BinaryUploadService::Result::FILE_TOO_LARGE) { extensions::SafeBrowsingPrivateEventRouterFactory::GetForProfile(profile) ->OnLargeUnscannedFileEvent(url, file_name, download_digest_sha256); } if (result != BinaryUploadService::Result::SUCCESS) return; if (!g_browser_process->local_state()->GetBoolean( prefs::kUnsafeEventsReportingEnabled)) return; if (response.malware_scan_verdict().verdict() == MalwareDeepScanningVerdict::UWS || response.malware_scan_verdict().verdict() == MalwareDeepScanningVerdict::MALWARE) { extensions::SafeBrowsingPrivateEventRouterFactory::GetForProfile(profile) ->OnDangerousDeepScanningResult( url, file_name, download_digest_sha256, MalwareVerdictToThreatType( response.malware_scan_verdict().verdict())); } if (response.dlp_scan_verdict().status() == DlpDeepScanningVerdict::SUCCESS) { if (!response.dlp_scan_verdict().triggered_rules().empty()) { extensions::SafeBrowsingPrivateEventRouterFactory::GetForProfile(profile) ->OnSensitiveDataEvent(response.dlp_scan_verdict(), url, file_name, download_digest_sha256); } } } CheckClientDownloadRequest::CheckClientDownloadRequest( download::DownloadItem* item, CheckDownloadCallback callback, DownloadProtectionService* service, scoped_refptr<SafeBrowsingDatabaseManager> database_manager, scoped_refptr<BinaryFeatureExtractor> binary_feature_extractor) : CheckClientDownloadRequestBase( item->GetURL(), item->GetTargetFilePath(), item->GetFullPath(), {item->GetTabUrl(), item->GetTabReferrerUrl()}, content::DownloadItemUtils::GetBrowserContext(item), std::move(callback), service, std::move(database_manager), std::move(binary_feature_extractor)), item_(item) { DCHECK_CURRENTLY_ON(BrowserThread::UI); item_->AddObserver(this); DVLOG(2) << "Starting SafeBrowsing download check for: " << item_->DebugString(true); } // download::DownloadItem::Observer implementation. void CheckClientDownloadRequest::OnDownloadDestroyed( download::DownloadItem* download) { FinishRequest(DownloadCheckResult::UNKNOWN, REASON_DOWNLOAD_DESTROYED); } // static bool CheckClientDownloadRequest::IsSupportedDownload( const download::DownloadItem& item, const base::FilePath& target_path, DownloadCheckResultReason* reason, ClientDownloadRequest::DownloadType* type) { if (item.GetUrlChain().empty()) { *reason = REASON_EMPTY_URL_CHAIN; return false; } const GURL& final_url = item.GetUrlChain().back(); if (!final_url.is_valid() || final_url.is_empty()) { *reason = REASON_INVALID_URL; return false; } if (!final_url.IsStandard() && !final_url.SchemeIsBlob() && !final_url.SchemeIs(url::kDataScheme)) { *reason = REASON_UNSUPPORTED_URL_SCHEME; return false; } // TODO(crbug.com/814813): Remove duplicated counting of REMOTE_FILE // and LOCAL_FILE in SBClientDownload.UnsupportedScheme.*. if (final_url.SchemeIsFile()) { *reason = final_url.has_host() ? REASON_REMOTE_FILE : REASON_LOCAL_FILE; return false; } // This check should be last, so we know the earlier checks passed. if (!FileTypePolicies::GetInstance()->IsCheckedBinaryFile(target_path)) { *reason = REASON_NOT_BINARY_FILE; return false; } *type = download_type_util::GetDownloadType(target_path); return true; } CheckClientDownloadRequest::~CheckClientDownloadRequest() { DCHECK_CURRENTLY_ON(BrowserThread::UI); item_->RemoveObserver(this); } bool CheckClientDownloadRequest::IsSupportedDownload( DownloadCheckResultReason* reason, ClientDownloadRequest::DownloadType* type) { return IsSupportedDownload(*item_, item_->GetTargetFilePath(), reason, type); } content::BrowserContext* CheckClientDownloadRequest::GetBrowserContext() { return content::DownloadItemUtils::GetBrowserContext(item_); } bool CheckClientDownloadRequest::IsCancelled() { return item_->GetState() == download::DownloadItem::CANCELLED; } void CheckClientDownloadRequest::PopulateRequest( ClientDownloadRequest* request) { request->mutable_digests()->set_sha256(item_->GetHash()); request->set_length(item_->GetReceivedBytes()); for (size_t i = 0; i < item_->GetUrlChain().size(); ++i) { ClientDownloadRequest::Resource* resource = request->add_resources(); resource->set_url(SanitizeUrl(item_->GetUrlChain()[i])); if (i == item_->GetUrlChain().size() - 1) { // The last URL in the chain is the download URL. resource->set_type(ClientDownloadRequest::DOWNLOAD_URL); resource->set_referrer(SanitizeUrl(item_->GetReferrerUrl())); DVLOG(2) << "dl url " << resource->url(); if (!item_->GetRemoteAddress().empty()) { resource->set_remote_ip(item_->GetRemoteAddress()); DVLOG(2) << " dl url remote addr: " << resource->remote_ip(); } DVLOG(2) << "dl referrer " << resource->referrer(); } else { DVLOG(2) << "dl redirect " << i << " " << resource->url(); resource->set_type(ClientDownloadRequest::DOWNLOAD_REDIRECT); } } request->set_user_initiated(item_->HasUserGesture()); auto* referrer_chain_data = static_cast<ReferrerChainData*>( item_->GetUserData(ReferrerChainData::kDownloadReferrerChainDataKey)); if (referrer_chain_data && !referrer_chain_data->GetReferrerChain()->empty()) { request->mutable_referrer_chain()->Swap( referrer_chain_data->GetReferrerChain()); request->mutable_referrer_chain_options() ->set_recent_navigations_to_collect( referrer_chain_data->recent_navigations_to_collect()); UMA_HISTOGRAM_COUNTS_100( "SafeBrowsing.ReferrerURLChainSize.DownloadAttribution", referrer_chain_data->referrer_chain_length()); } } base::WeakPtr<CheckClientDownloadRequestBase> CheckClientDownloadRequest::GetWeakPtr() { return weakptr_factory_.GetWeakPtr(); } void CheckClientDownloadRequest::NotifySendRequest( const ClientDownloadRequest* request) { DCHECK_CURRENTLY_ON(BrowserThread::UI); service()->client_download_request_callbacks_.Notify(item_, request); } void CheckClientDownloadRequest::SetDownloadPingToken( const std::string& token) { DCHECK(!token.empty()); DownloadProtectionService::SetDownloadPingToken(item_, token); } void CheckClientDownloadRequest::MaybeStorePingsForDownload( DownloadCheckResult result, bool upload_requested, const std::string& request_data, const std::string& response_body) { DownloadFeedbackService::MaybeStorePingsForDownload( result, upload_requested, item_, request_data, response_body); } void CheckClientDownloadRequest::MaybeUploadBinary( DownloadCheckResultReason reason) { bool upload_for_dlp = ShouldUploadForDlpScan(); bool upload_for_malware = ShouldUploadForMalwareScan(reason); if (upload_for_dlp || upload_for_malware) { Profile* profile = Profile::FromBrowserContext(GetBrowserContext()); if (!profile) return; const std::string& raw_digest_sha256 = item_->GetHash(); auto request = std::make_unique<DownloadItemRequest>( item_, base::BindOnce(&MaybeReportDownloadDeepScanningVerdict, profile, item_->GetURL(), item_->GetTargetFilePath().AsUTF8Unsafe(), base::HexEncode(raw_digest_sha256.data(), raw_digest_sha256.size()))); if (upload_for_dlp) { DlpDeepScanningClientRequest dlp_request; dlp_request.set_content_source( DlpDeepScanningClientRequest::FILE_DOWNLOAD); request->set_request_dlp_scan(std::move(dlp_request)); } if (upload_for_malware) { MalwareDeepScanningClientRequest malware_request; malware_request.set_population( MalwareDeepScanningClientRequest::POPULATION_ENTERPRISE); malware_request.set_download_token( DownloadProtectionService::GetDownloadPingToken(item_)); request->set_request_malware_scan(std::move(malware_request)); } request->set_dm_token( policy::BrowserDMTokenStorage::Get()->RetrieveDMToken()); service()->UploadForDeepScanning(profile, std::move(request)); } } void CheckClientDownloadRequest::NotifyRequestFinished( DownloadCheckResult result, DownloadCheckResultReason reason) { DCHECK_CURRENTLY_ON(BrowserThread::UI); weakptr_factory_.InvalidateWeakPtrs(); DVLOG(2) << "SafeBrowsing download verdict for: " << item_->DebugString(true) << " verdict:" << reason << " result:" << static_cast<int>(result); item_->RemoveObserver(this); } bool CheckClientDownloadRequest::ShouldUploadForDlpScan() { if (!base::FeatureList::IsEnabled(kDeepScanningOfDownloads)) return false; int check_content_compliance = g_browser_process->local_state()->GetInteger( prefs::kCheckContentCompliance); if (check_content_compliance != CheckContentComplianceValues::CHECK_DOWNLOADS && check_content_compliance != CheckContentComplianceValues::CHECK_UPLOADS_AND_DOWNLOADS) return false; // If there's no DM token, the upload will fail, so we can skip uploading now. if (policy::BrowserDMTokenStorage::Get()->RetrieveDMToken().empty()) return false; const base::ListValue* domains = g_browser_process->local_state()->GetList( prefs::kDomainsToCheckComplianceOfDownloadedContent); bool host_in_list = std::any_of(domains->GetList().begin(), domains->GetList().end(), [this](const base::Value& domain) { return domain.is_string() && domain.GetString() == item_->GetURL().host(); }); return host_in_list; } bool CheckClientDownloadRequest::ShouldUploadForMalwareScan( DownloadCheckResultReason reason) { if (!base::FeatureList::IsEnabled(kDeepScanningOfDownloads)) return false; // If we know the file is malicious, we don't need to upload it. if (reason != DownloadCheckResultReason::REASON_DOWNLOAD_SAFE && reason != DownloadCheckResultReason::REASON_DOWNLOAD_UNCOMMON && reason != DownloadCheckResultReason::REASON_VERDICT_UNKNOWN) return false; // This feature can be used to force uploads. if (base::FeatureList::IsEnabled(kUploadForMalwareCheck)) return true; content::BrowserContext* browser_context = content::DownloadItemUtils::GetBrowserContext(item_); if (!browser_context) return false; Profile* profile = Profile::FromBrowserContext(browser_context); if (!profile) return false; int send_files_for_malware_check = profile->GetPrefs()->GetInteger( prefs::kSafeBrowsingSendFilesForMalwareCheck); if (send_files_for_malware_check != SendFilesForMalwareCheckValues::SEND_DOWNLOADS) return false; // If there's no DM token, the upload will fail, so we can skip uploading now. if (policy::BrowserDMTokenStorage::Get()->RetrieveDMToken().empty()) return false; return true; } } // namespace safe_browsing
[ "stanley@moon.lan" ]
stanley@moon.lan
d11aa45a9ca37a277cf45904b2edfa9089e854a2
7571f035a83e3b22bfacebee86e2dcf381bcb571
/Bubble Sort/bubbleSort.cpp
fab1a738b7db3acc1c89cf9a0a79bfeee249cf8e
[]
no_license
divyansh000915/Algorithm-Analysis-and-Design
8bd458c223c0a6587a18d71461839536d411de75
d6813571530f9bd1308bac8233555bbd8d32edb8
refs/heads/main
2023-03-24T00:13:29.041373
2021-03-22T12:00:29
2021-03-22T12:00:29
350,325,887
0
0
null
null
null
null
UTF-8
C++
false
false
624
cpp
#include <iostream> using namespace std; void swap(int *xp, int *yp) { int temp = *xp; *xp = *yp; *yp = temp; } void bubbleSort(int arr[], int n) { int i, j; for (i = 0; i < n-1; i++) // Last i elements are already in place for (j = 0; j < n-i-1; j++) if (arr[j] > arr[j+1]) swap(&arr[j], &arr[j+1]); } int main() { int n; cout<<"Enter size of the array"<<endl; cin>>n; int arr[n]; cout<<"Enter elements"<<endl; for(int i=0;i<n;i++) { cin>>arr[i]; } bubbleSort(arr, n); cout<<"Sorted array: \n"; for (int i = 0; i < n; i++) cout << arr[i] << " "; cout << endl; return 0; }
[ "divyanshrastogi@Divyanshs-MacBook-Air.local" ]
divyanshrastogi@Divyanshs-MacBook-Air.local
1f28928b40512aedc79ea647280213e0fc4be380
ce0c6c65fa6c557c455e8e23e739bd0b832a7686
/初赛/版本控制/SDK-gcc-0319-0501-heuristic/cdn/deploy.cpp
1123580fc424d2153c36a316ba1171a6044f06ca
[]
no_license
littletobby/CodeCraft2017SourceCode
028d279742f7d9961e1806746132b60261126644
bf85a35cf1d83837561589291462475a2453287a
refs/heads/master
2021-01-05T05:36:56.828609
2017-08-16T14:42:05
2017-08-16T14:42:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,581
cpp
#include "deploy.h" #include <stdio.h> #include "graph.h" #include "min_cost_flow.h" #include "ga.h" #include "output.h" #include "heuristic.h" void test_GA(Graph* graph, char* &solution) { GeneticAlgorithm* ga = new GeneticAlgorithm(graph); //ga->init_population(); ga->evolve(); cout << "min cost found: " << ga->best_ind.fitness << endl; // 构造输出 ga->evaluate(ga->best_ind); if (ga->best_ind.feasible) cout << "feasible!" << endl; vector<stack<int> > paths; ga->god->construct_solution(paths); construct_output(paths, solution); } void test_heuristic(Graph *graph, char *&solution) { HeuristicSolver *solver = new HeuristicSolver(graph); vector<stack<int> > paths; solver->solve(paths); construct_output(paths, solution); } //你要完成的功能总入口 void deploy_server(char * topo[MAX_EDGE_NUM], int line_num,char * filename) { char * topo_file = NULL; Graph* graph = new Graph(topo, line_num); //test_GA(graph, topo_file); test_heuristic(graph, topo_file); // 需要输出的内容 //char * topo_file = (char *)"17\n\n0 8 0 20\n21 8 0 20\n9 11 1 13\n21 22 2 20\n23 22 2 8\n1 3 3 11\n24 3 3 17\n27 3 3 26\n24 3 3 10\n18 17 4 11\n1 19 5 26\n1 16 6 15\n15 13 7 13\n4 5 8 18\n2 25 9 15\n0 7 10 10\n23 24 11 23"; // 直接调用输出文件的方法输出到指定文件中(ps请注意格式的正确性,如果有解,第一行只有一个数据;第二行为空;第三行开始才是具体的数据,数据之间用一个空格分隔开) write_result(topo_file, filename); }
[ "huafan@seu.edu.cn" ]
huafan@seu.edu.cn
39c82381922a25905f5f8575a2a720f4e33f71eb
ad2d392f73f6e26b4f082fb0251b241a7ebf85a8
/abc/reiwa/163/c.cpp
be6aa30cde5dbbcca7f6e6203651bb7822f46235
[]
no_license
miyamotononno/atcoder
b293ac3b25397567aa93a179d1af34add492518b
cf29d48c7448464d33a9d7ad69affd771319fe3c
refs/heads/master
2022-01-09T23:03:07.022772
2022-01-08T14:12:13
2022-01-08T14:12:13
187,175,157
0
0
null
2019-06-12T16:03:24
2019-05-17T08:11:58
Python
UTF-8
C++
false
false
738
cpp
#include <algorithm> #include <iostream> #include <iomanip> #include <cassert> #include <cstring> #include <string> #include <vector> #include <random> #include <bitset> #include <queue> #include <cmath> #include <unordered_map> #include <set> #include <map> #define INCANT cin.tie(0), cout.tie(0), ios::sync_with_stdio(0), cout << fixed << setprecision(20); #define rep(i,n) for (int i=0; i<n;++i) #define ALL(a) (a).begin(),(a).end() #define PI 3.14159265358979 typedef long long ll; using namespace std; const ll MOD = 1e9+7LL; const int INF = 2e9; int N; int A[200005]; int main() { INCANT; cin >> N; int a; rep(i, N-1) { //2-N-1にすること cin >> a; A[a-1]++; } rep(i, N) cout << A[i] << "\n"; return 0; }
[ "miyamoto-nozomu@g.ecc.u-tokyo.ac.jp" ]
miyamoto-nozomu@g.ecc.u-tokyo.ac.jp
313d2074ae5d4a21a43cb3440e3f24f254e08bdb
e27eb828b38e634279c767a4cf6d8caa2a35b018
/ports-juce5/juce-demo-host/source/PluginProcessor.cpp
66e42121c4707830d27374b529fdd3371c2db83d
[]
no_license
DISTRHO/DISTRHO-Ports
8d9ea43ac7f6264f1b28ff4150e432e43683a9b4
f2dbaded0a05732e3499fa374a586e5b32370da5
refs/heads/master
2023-08-18T12:45:11.671939
2022-07-13T00:12:08
2022-07-13T00:12:08
16,835,158
233
45
null
2023-06-08T05:10:21
2014-02-14T11:14:11
C++
UTF-8
C++
false
false
4,737
cpp
/* ============================================================================== This file was auto-generated by the Jucer! It contains the basic startup code for a Juce application. ============================================================================== */ #include "PluginProcessor.h" #include "PluginEditor.h" #include "InternalFilters.h" AudioProcessor* JUCE_CALLTYPE createPluginFilter(); //============================================================================== JuceDemoHostAudioProcessor::JuceDemoHostAudioProcessor() : formatManager(), graph (formatManager), midiKeyState (nullptr) { PropertiesFile::Options options; options.applicationName = "Juce Audio Plugin Host"; options.filenameSuffix = "settings"; options.osxLibrarySubFolder = "Preferences"; appProperties = new ApplicationProperties(); appProperties->setStorageParameters(options); formatManager.addDefaultFormats(); formatManager.addFormat(new InternalPluginFormat()); graph.ready(appProperties); graph.getGraph().setPlayConfigDetails(getTotalNumInputChannels(), getTotalNumOutputChannels(), getSampleRate(), getBlockSize()); } JuceDemoHostAudioProcessor::~JuceDemoHostAudioProcessor() { graph.clear(); } //============================================================================== void JuceDemoHostAudioProcessor::prepareToPlay (double sampleRate, int samplesPerBlock) { graph.getGraph().setPlayConfigDetails(getTotalNumInputChannels(), getTotalNumOutputChannels(), sampleRate, samplesPerBlock); graph.getGraph().prepareToPlay(sampleRate, samplesPerBlock); { const ScopedLock csl(midiKeyMutex); if (midiKeyState != nullptr) midiKeyState->reset(); } } void JuceDemoHostAudioProcessor::releaseResources() { graph.getGraph().releaseResources(); } void JuceDemoHostAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages) { const int numSamples = buffer.getNumSamples(); graph.getGraph().setPlayHead (getPlayHead()); { const ScopedLock csl(midiKeyMutex); if (midiKeyState != nullptr) midiKeyState->processNextMidiBuffer(midiMessages, 0, numSamples, true); } graph.getGraph().processBlock(buffer, midiMessages); // In case we have more outputs than inputs, we'll clear any output // channels that didn't contain input data, (because these aren't // guaranteed to be empty - they may contain garbage). for (int i = getTotalNumInputChannels(); i < getTotalNumOutputChannels(); ++i) buffer.clear (i, 0, numSamples); } //============================================================================== AudioProcessorEditor* JuceDemoHostAudioProcessor::createEditor() { return new JuceDemoHostAudioProcessorEditor (*this); } //============================================================================== void JuceDemoHostAudioProcessor::getStateInformation (MemoryBlock& destData) { ScopedPointer<XmlElement> xmlState (graph.createXml()); copyXmlToBinary (*xmlState, destData); } void JuceDemoHostAudioProcessor::setStateInformation (const void* data, int sizeInBytes) { ScopedPointer<XmlElement> xmlState (getXmlFromBinary (data, sizeInBytes)); if (xmlState != nullptr && xmlState->hasTagName("FILTERGRAPH")) graph.restoreFromXml(*xmlState); } const String JuceDemoHostAudioProcessor::getInputChannelName (const int channelIndex) const { return String (channelIndex + 1); } const String JuceDemoHostAudioProcessor::getOutputChannelName (const int channelIndex) const { return String (channelIndex + 1); } bool JuceDemoHostAudioProcessor::isInputChannelStereoPair (int /*index*/) const { return true; } bool JuceDemoHostAudioProcessor::isOutputChannelStereoPair (int /*index*/) const { return true; } bool JuceDemoHostAudioProcessor::acceptsMidi() const { #if JucePlugin_WantsMidiInput return true; #else return false; #endif } bool JuceDemoHostAudioProcessor::producesMidi() const { #if JucePlugin_ProducesMidiOutput return true; #else return false; #endif } bool JuceDemoHostAudioProcessor::silenceInProducesSilenceOut() const { return false; } double JuceDemoHostAudioProcessor::getTailLengthSeconds() const { return 0.0; } //============================================================================== // This creates new instances of the plugin.. AudioProcessor* JUCE_CALLTYPE createPluginFilter() { return new JuceDemoHostAudioProcessor(); }
[ "falktx@gmail.com" ]
falktx@gmail.com
11985418796a8384172af28ece51b8730ba19da5
37906b41991719dff0590f9161f9b69af8d7e491
/tensorflow/lite/experimental/micro/kernels/maximum_minimum_test.cc
733977abe3230796f4100f7477cda6abde0e0383
[ "Apache-2.0" ]
permissive
nauman07/tensorflow
7ae4277564bb596c0f8ba5d107a35d9505c3c2fb
f88cf68393e60525506a567e0081b8e2e6db409b
refs/heads/master
2020-08-28T15:55:35.510154
2019-10-26T15:34:58
2019-10-26T15:39:08
217,742,698
3
0
Apache-2.0
2019-10-26T17:11:10
2019-10-26T17:11:09
null
UTF-8
C++
false
false
12,386
cc
/* Copyright 2017 The TensorFlow Authors. 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 "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/test_utils.h" namespace tflite { namespace testing { namespace { void TestMaxMinFloat(tflite::BuiltinOperator op, std::initializer_list<int> input1_dims_data, std::initializer_list<float> input1_data, std::initializer_list<int> input2_dims_data, std::initializer_list<float> input2_data, std::initializer_list<float> expected_output_data, std::initializer_list<int> output_dims_data, float* output_data) { TfLiteIntArray* input1_dims = IntArrayFromInitializer(input1_dims_data); TfLiteIntArray* input2_dims = IntArrayFromInitializer(input2_dims_data); TfLiteIntArray* output_dims = IntArrayFromInitializer(output_dims_data); const int output_dims_count = ElementCount(*output_dims); constexpr int inputs_size = 2; constexpr int outputs_size = 1; constexpr int tensors_size = inputs_size + outputs_size; TfLiteTensor tensors[tensors_size] = { CreateFloatTensor(input1_data, input1_dims, "input1_tensor"), CreateFloatTensor(input2_data, input2_dims, "input2_tensor"), CreateFloatTensor(output_data, output_dims, "output_tensor"), }; TfLiteContext context; PopulateContext(tensors, tensors_size, &context); ::tflite::ops::micro::AllOpsResolver resolver; const TfLiteRegistration* registration = resolver.FindOp(op, 1); TF_LITE_MICRO_EXPECT_NE(nullptr, registration); TfLiteIntArray* inputs_array = IntArrayFromInitializer({2, 0, 1}); TfLiteIntArray* outputs_array = IntArrayFromInitializer({1, 2}); TfLiteIntArray* temporaries_array = IntArrayFromInitializer({0}); TfLiteNode node; node.inputs = inputs_array; node.outputs = outputs_array; node.temporaries = temporaries_array; node.user_data = nullptr; node.builtin_data = nullptr; node.custom_initial_data = nullptr; node.custom_initial_data_size = 0; node.delegate = nullptr; if (registration->prepare) { TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(&context, &node)); } TF_LITE_MICRO_EXPECT_NE(nullptr, registration->invoke); TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(&context, &node)); for (int i = 0; i < output_dims_count; ++i) { TF_LITE_MICRO_EXPECT_NEAR(expected_output_data.begin()[i], output_data[i], 1e-5); } } void TestMaxMinQuantized( tflite::BuiltinOperator op, std::initializer_list<int> input1_dims_data, std::initializer_list<uint8_t> input1_data, float input1_min, float input1_max, std::initializer_list<int> input2_dims_data, std::initializer_list<uint8_t> input2_data, float input2_min, float input2_max, std::initializer_list<uint8_t> expected_output_data, float output_min, float output_max, std::initializer_list<int> output_dims_data, uint8_t* output_data) { TfLiteIntArray* input1_dims = IntArrayFromInitializer(input1_dims_data); TfLiteIntArray* input2_dims = IntArrayFromInitializer(input2_dims_data); TfLiteIntArray* output_dims = IntArrayFromInitializer(output_dims_data); const int output_dims_count = ElementCount(*output_dims); constexpr int inputs_size = 2; constexpr int outputs_size = 1; constexpr int tensors_size = inputs_size + outputs_size; TfLiteTensor tensors[tensors_size] = { CreateQuantizedTensor(input1_data, input1_dims, "input1_tensor", input1_min, input1_max), CreateQuantizedTensor(input2_data, input2_dims, "input2_tensor", input2_min, input2_max), CreateQuantizedTensor(output_data, output_dims, "output_tensor", output_min, output_max), }; TfLiteContext context; PopulateContext(tensors, tensors_size, &context); ::tflite::ops::micro::AllOpsResolver resolver; const TfLiteRegistration* registration = resolver.FindOp(op, 1); TF_LITE_MICRO_EXPECT_NE(nullptr, registration); TfLiteIntArray* inputs_array = IntArrayFromInitializer({2, 0, 1}); TfLiteIntArray* outputs_array = IntArrayFromInitializer({1, 2}); TfLiteIntArray* temporaries_array = IntArrayFromInitializer({0}); TfLiteNode node; node.inputs = inputs_array; node.outputs = outputs_array; node.temporaries = temporaries_array; node.user_data = nullptr; node.builtin_data = nullptr; node.custom_initial_data = nullptr; node.custom_initial_data_size = 0; node.delegate = nullptr; if (registration->prepare) { TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(&context, &node)); } TF_LITE_MICRO_EXPECT_NE(nullptr, registration->invoke); TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(&context, &node)); for (int i = 0; i < output_dims_count; ++i) { TF_LITE_MICRO_EXPECT_EQ(expected_output_data.begin()[i], output_data[i]); } } void TestMaxMinQuantizedInt32( tflite::BuiltinOperator op, std::initializer_list<int> input1_dims_data, std::initializer_list<int32_t> input1_data, float input1_scale, std::initializer_list<int> input2_dims_data, std::initializer_list<int32_t> input2_data, float input2_scale, std::initializer_list<int32_t> expected_output_data, float output_scale, std::initializer_list<int> output_dims_data, int32_t* output_data) { TfLiteIntArray* input1_dims = IntArrayFromInitializer(input1_dims_data); TfLiteIntArray* input2_dims = IntArrayFromInitializer(input2_dims_data); TfLiteIntArray* output_dims = IntArrayFromInitializer(output_dims_data); const int output_dims_count = ElementCount(*output_dims); constexpr int inputs_size = 2; constexpr int outputs_size = 1; constexpr int tensors_size = inputs_size + outputs_size; TfLiteTensor tensors[tensors_size] = { CreateQuantized32Tensor(input1_data, input1_dims, "input1_tensor", input1_scale), CreateQuantized32Tensor(input2_data, input2_dims, "input2_tensor", input2_scale), CreateQuantized32Tensor(output_data, output_dims, "output_tensor", output_scale), }; TfLiteContext context; PopulateContext(tensors, tensors_size, &context); ::tflite::ops::micro::AllOpsResolver resolver; const TfLiteRegistration* registration = resolver.FindOp(op, 1); TF_LITE_MICRO_EXPECT_NE(nullptr, registration); TfLiteIntArray* inputs_array = IntArrayFromInitializer({2, 0, 1}); TfLiteIntArray* outputs_array = IntArrayFromInitializer({1, 2}); TfLiteIntArray* temporaries_array = IntArrayFromInitializer({0}); TfLiteNode node; node.inputs = inputs_array; node.outputs = outputs_array; node.temporaries = temporaries_array; node.user_data = nullptr; node.builtin_data = nullptr; node.custom_initial_data = nullptr; node.custom_initial_data_size = 0; node.delegate = nullptr; if (registration->prepare) { TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(&context, &node)); } TF_LITE_MICRO_EXPECT_NE(nullptr, registration->invoke); TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(&context, &node)); for (int i = 0; i < output_dims_count; ++i) { TF_LITE_MICRO_EXPECT_EQ(expected_output_data.begin()[i], output_data[i]); } } } // namespace } // namespace testing } // namespace tflite TF_LITE_MICRO_TESTS_BEGIN TF_LITE_MICRO_TEST(FloatTest) { std::initializer_list<float> data1 = {1.0, 0.0, -1.0, 11.0, -2.0, -1.44}; std::initializer_list<float> data2 = {-1.0, 0.0, 1.0, 12.0, -3.0, -1.43}; float output_data[6]; tflite::testing::TestMaxMinFloat( tflite::BuiltinOperator_MAXIMUM, {3, 3, 1, 2}, data1, // input1 shape and data {3, 3, 1, 2}, data2, // input2 shape and data {1.0, 0.0, 1.0, 12.0, -2.0, -1.43}, // expected output {3, 3, 1, 2}, output_data); // output shape and data buffer tflite::testing::TestMaxMinFloat( tflite::BuiltinOperator_MINIMUM, {3, 3, 1, 2}, data1, // input1 shape and data {3, 3, 1, 2}, data2, // input2 shape and data {-1.0, 0.0, -1.0, 11.0, -3.0, -1.44}, // expected output {3, 3, 1, 2}, output_data); // output shape and data buffer } TF_LITE_MICRO_TEST(Uint8Test) { std::initializer_list<uint8_t> data1 = {1, 0, 2, 11, 2, 23}; std::initializer_list<uint8_t> data2 = {0, 0, 1, 12, 255, 1}; const float input1_min = -63.5; const float input1_max = 64; const float input2_min = -63.5; const float input2_max = 64; const float output_min = -63.5; const float output_max = 64; uint8_t output_data[6]; tflite::testing::TestMaxMinQuantized( tflite::BuiltinOperator_MAXIMUM, // input1 shape, data and bounds {3, 3, 1, 2}, data1, input1_min, input1_max, // input2 shape, data and bounds {3, 3, 1, 2}, data2, input2_min, input2_max, // expected output {1, 0, 2, 12, 255, 23}, // output bounds, shape and data buffer output_min, output_max, {3, 3, 1, 2}, output_data); tflite::testing::TestMaxMinQuantized( tflite::BuiltinOperator_MINIMUM, // input1 shape, data and bounds {3, 3, 1, 2}, data1, input1_min, input1_max, // input2 shape, data and bounds {3, 3, 1, 2}, data2, input2_min, input2_max, // expected output {0, 0, 1, 11, 2, 1}, // output bounds, shape and data buffer output_min, output_max, {3, 3, 1, 2}, output_data); } TF_LITE_MICRO_TEST(FloatWithBroadcastTest) { std::initializer_list<float> data1 = {1.0, 0.0, -1.0, -2.0, -1.44, 11.0}; std::initializer_list<float> data2 = {0.5, 2.0}; float output_data[6]; tflite::testing::TestMaxMinFloat( tflite::BuiltinOperator_MAXIMUM, {3, 3, 1, 2}, data1, // input1 shape and data {1, 2}, data2, // input2 shape and data {1.0, 2.0, 0.5, 2.0, 0.5, 11.0}, // expected output {3, 3, 1, 2}, output_data); // output shape and data buffer tflite::testing::TestMaxMinFloat( tflite::BuiltinOperator_MINIMUM, {3, 3, 1, 2}, data1, // input1 shape and data {1, 2}, data2, // input2 shape and data {0.5, 0.0, -1.0, -2.0, -1.44, 2.0}, // expected output {3, 3, 1, 2}, output_data); // output shape and data buffer } TF_LITE_MICRO_TEST(Int32WithBroadcastTest) { const float input1_scale = 0.5; const float input2_scale = 0.5; const float output_scale = 0.5; std::initializer_list<int32_t> data1 = {1, 0, -1, -2, 3, 11}; std::initializer_list<int32_t> data2 = {2}; int32_t output_data[6]; tflite::testing::TestMaxMinQuantizedInt32( tflite::BuiltinOperator_MAXIMUM, // input1 shape, data and scale {3, 3, 1, 2}, data1, input1_scale, // input2 shape, data and scale {1, 1}, data2, input2_scale, // expected output {2, 2, 2, 2, 3, 11}, // output scale, shape and data buffer output_scale, {3, 3, 1, 2}, output_data); tflite::testing::TestMaxMinQuantizedInt32( tflite::BuiltinOperator_MINIMUM, // input1 shape, data and scale {3, 3, 1, 2}, data1, input1_scale, // input2 shape, data and scale {1, 1}, data2, input2_scale, // expected output {1, 0, -1, -2, 2, 2}, // output scale, shape and data buffer output_scale, {3, 3, 1, 2}, output_data); } TF_LITE_MICRO_TESTS_END
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
d1a393531cba472bb8bc74dea55ddb42ea428acf
c5a06ae539d828b2d1c8a3adf3b9e5b634b1d70c
/DOTAA.cpp
52447230e9d0bd0841c3acf3bf8894d25dabd3f9
[]
no_license
gooty12/SPOJ
5bd6adffc2dd3318810853d308b5f4ce9c52fdc4
649eb632605cb65a14fd6eb005878b67d051bd48
refs/heads/master
2021-01-18T19:28:40.066454
2016-12-29T14:11:37
2016-12-29T14:11:37
60,062,034
0
0
null
null
null
null
UTF-8
C++
false
false
368
cpp
#include<iostream> using namespace std; int main(){ int t; int n, m, D; cin>>t; while(t--){ cin>>n>>m>>D; int heroes = 0; for(int i=0; i<n; i++){ int health; cin>>health; heroes += health/D; if((health%D == 0) && (health>=D)){ heroes--; } } if(heroes>=m){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } } return 0; }
[ "gootyvinod12@gmail.com" ]
gootyvinod12@gmail.com
b0e798bf4a132070ae26b92622af73d8e548884d
a97b9ad50e283b4e930ab59547806eb303b52c6f
/team/case8/C_coarse/200/k
5371290ad7573bf3c05d230cede6b9cd1223a054
[]
no_license
harrisbk/OpenFOAM_run
fdcd4f81bd3205764988ea95c25fd2a5c130841b
9591c98336561bcfb3b7259617b5363aacf48067
refs/heads/master
2016-09-05T08:45:27.965608
2015-11-16T19:08:34
2015-11-16T19:08:34
42,883,543
1
2
null
null
null
null
UTF-8
C++
false
false
112,288
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "200"; object k; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField nonuniform List<scalar> 12225 ( 0.663577 0.875834 1.01735 1.09931 1.14211 1.15538 1.15284 1.13707 1.11686 1.09079 1.06524 1.03683 1.0109 0.983095 0.958281 0.931586 0.907466 0.880802 0.380144 0.384466 0.38718 0.389778 0.39205 0.395051 0.398267 0.403065 0.408472 0.41604 0.424309 0.435142 0.446557 0.460756 0.475133 0.490923 0.505884 0.52174 0.372809 0.369276 0.36443 0.358678 0.352376 0.345912 0.33948 0.333426 0.327809 0.322902 0.318676 0.315346 0.312846 0.311358 0.310819 0.311317 0.31284 0.315613 0.37293 0.370318 0.367122 0.363428 0.359367 0.355042 0.350553 0.345992 0.341429 0.33694 0.332565 0.328368 0.324367 0.320617 0.317123 0.313937 0.311064 0.308593 0.37315 0.371123 0.36883 0.366296 0.363579 0.360715 0.357747 0.35471 0.351637 0.348555 0.345489 0.342459 0.33948 0.33657 0.333736 0.330994 0.328347 0.325823 0.373252 0.371508 0.369657 0.367698 0.365655 0.363543 0.361379 0.359181 0.356964 0.354743 0.352528 0.350333 0.348164 0.346033 0.343944 0.341907 0.339925 0.338023 0.373281 0.371662 0.370028 0.368367 0.366684 0.364979 0.363259 0.36153 0.359801 0.358079 0.35637 0.354682 0.35302 0.351392 0.349803 0.34826 0.346769 0.345352 0.373281 0.371701 0.370149 0.368613 0.36709 0.365576 0.364069 0.362572 0.361087 0.359619 0.358172 0.356749 0.355357 0.354 0.352683 0.351414 0.350198 0.349054 0.373275 0.371707 0.370191 0.368716 0.367277 0.365867 0.364483 0.363123 0.361787 0.360477 0.359194 0.357941 0.356723 0.355543 0.354407 0.353321 0.352289 0.35133 0.373267 0.371701 0.370199 0.368754 0.367361 0.366013 0.364705 0.363435 0.362199 0.360999 0.359833 0.358705 0.357615 0.356568 0.355569 0.354621 0.353729 0.35291 0.37326 0.371692 0.370194 0.36876 0.367387 0.366069 0.364801 0.363581 0.362405 0.361273 0.360183 0.359136 0.358134 0.35718 0.356275 0.355425 0.354633 0.353911 0.373254 0.371684 0.370185 0.368754 0.367388 0.366082 0.364832 0.363635 0.36249 0.361393 0.360346 0.359347 0.358397 0.357498 0.356653 0.355864 0.355133 0.354472 0.37325 0.371677 0.370177 0.368747 0.367383 0.366081 0.364838 0.363652 0.36252 0.361441 0.360414 0.359439 0.358517 0.357648 0.356834 0.356076 0.355377 0.354746 0.373246 0.371671 0.370171 0.368741 0.367378 0.366078 0.36484 0.363659 0.362534 0.361464 0.360449 0.359486 0.358577 0.357723 0.356923 0.356179 0.355493 0.354871 0.373243 0.371667 0.370166 0.368736 0.367374 0.366077 0.364842 0.363666 0.362547 0.361484 0.360476 0.359522 0.358621 0.357775 0.356982 0.356244 0.355561 0.354939 0.373241 0.371663 0.370161 0.368732 0.367372 0.366077 0.364846 0.363675 0.362562 0.361505 0.360504 0.359557 0.358664 0.357823 0.357036 0.3563 0.355617 0.354993 0.373239 0.371659 0.370157 0.368729 0.36737 0.366079 0.364851 0.363685 0.362578 0.361528 0.360534 0.359594 0.358708 0.357873 0.35709 0.356357 0.355673 0.355046 0.373237 0.371656 0.370154 0.368726 0.36737 0.366082 0.364858 0.363697 0.362596 0.361553 0.360566 0.359633 0.358753 0.357924 0.357145 0.356414 0.355731 0.355101 0.373235 0.371655 0.370153 0.368727 0.367373 0.366088 0.364869 0.363713 0.362618 0.361581 0.3606 0.359673 0.358798 0.357974 0.357198 0.35647 0.355788 0.355157 0.373235 0.371654 0.370154 0.36873 0.36738 0.366099 0.364884 0.363733 0.362643 0.361612 0.360636 0.359714 0.358844 0.358023 0.357251 0.356524 0.355842 0.355211 0.373235 0.371656 0.370158 0.368738 0.367391 0.366114 0.364904 0.363758 0.362672 0.361644 0.360672 0.359752 0.358884 0.358064 0.357291 0.356562 0.355876 0.35524 0.373236 0.37166 0.370166 0.36875 0.367406 0.366132 0.364924 0.363778 0.362691 0.36166 0.360683 0.359756 0.358878 0.358047 0.35726 0.356515 0.355811 0.355155 0.373239 0.371667 0.370177 0.368761 0.367415 0.366135 0.364916 0.363753 0.362645 0.361587 0.360577 0.359614 0.358696 0.35782 0.356984 0.356189 0.355431 0.35472 0.373244 0.371674 0.37018 0.368749 0.367377 0.366056 0.364784 0.363555 0.362369 0.361225 0.360121 0.359056 0.358031 0.357044 0.356095 0.355184 0.35431 0.353482 0.373248 0.371666 0.370134 0.368635 0.367164 0.365717 0.364294 0.362896 0.361524 0.360181 0.35887 0.357593 0.356351 0.355146 0.353979 0.352851 0.351764 0.350729 0.37324 0.371594 0.36993 0.368234 0.36651 0.364766 0.36301 0.361253 0.359505 0.357775 0.35607 0.354396 0.352759 0.351164 0.349613 0.34811 0.346657 0.345267 0.373201 0.371372 0.369372 0.367214 0.364931 0.362555 0.360115 0.35764 0.355155 0.352681 0.350235 0.347833 0.345485 0.3432 0.340986 0.338847 0.336787 0.334819 0.373267 0.371137 0.368472 0.365378 0.361974 0.358356 0.354614 0.350823 0.347047 0.343331 0.339716 0.336224 0.332881 0.329693 0.326675 0.323826 0.321151 0.318652 0.376726 0.377364 0.376946 0.375888 0.374458 0.372771 0.371069 0.369506 0.368206 0.367165 0.366439 0.365984 0.365837 0.365936 0.366314 0.366905 0.367746 0.368784 0.509259 0.621673 0.712026 0.782274 0.835441 0.874864 0.90465 0.928181 0.946143 0.959456 0.968746 0.97481 0.978132 0.979344 0.978783 0.976926 0.973983 0.97031 0.0180709 0.0736995 0.139438 0.180895 0.208059 0.227777 0.241839 0.251268 0.256885 0.259445 0.259596 0.257861 0.254675 0.250458 0.246119 0.241294 0.235692 0.228989 0.220735 0.210602 0.197888 0.182235 0.162913 0.13993 0.114122 0.0884035 0.0716107 0.0743475 0.153741 0.247519 0.220904 0.196503 0.207119 0.433418 0.56793 0.660437 0.731616 0.789246 0.836772 0.877343 0.911771 0.941707 0.967496 0.989978 1.00953 1.02649 1.04127 1.05399 1.06497 1.07433 1.08226 1.0889 1.09437 1.09879 1.10225 1.10488 1.10674 1.10794 1.10857 1.10869 1.10814 1.10693 1.10507 1.10255 1.09938 1.09551 1.0909 1.08549 1.07917 1.07181 1.06324 1.05326 1.04165 1.02818 1.0126 0.994731 0.974435 0.951581 0.92609 0.897997 0.867484 0.834871 0.80059 0.765153 0.728998 0.692352 0.655854 0.619878 0.584883 0.55093 0.518179 0.486836 0.456525 0.429196 0.412835 0.399032 0.385625 0.37265 0.360101 0.348008 0.336403 0.325294 0.314695 0.30457 0.294926 0.285679 0.276854 0.268445 0.260484 0.252913 0.245769 0.238972 0.23258 0.226486 0.220782 0.215328 0.210256 0.205383 0.20089 0.196545 0.192581 0.188709 0.185219 0.181763 0.178693 0.175591 0.172881 0.170068 0.167743 0.165374 0.163519 0.161484 0.159958 0.158137 0.15691 0.155219 0.154242 0.152674 0.151913 0.150446 0.149915 0.148561 0.148308 0.147118 0.14722 0.146331 0.146856 0.14635 0.147464 0.14735 0.149089 0.14936 0.151732 0.15234 0.15531 0.156154 0.159648 0.160588 0.164509 0.165387 0.169644 0.170301 0.174828 0.175069 0.179857 0.179488 0.184555 0.183488 0.18889 0.187036 0.192875 0.190035 0.196184 0.192081 0.198406 0.192567 0.198611 0.190633 0.195547 0.183278 0.0264494 0.14743 0.221152 0.272259 0.312359 0.342119 0.361244 0.370484 0.371325 0.365719 0.355621 0.342869 0.328878 0.314807 0.301157 0.28829 0.276135 0.264571 0.253232 0.241652 0.230346 0.217631 0.200912 0.181391 0.165356 0.152059 0.171916 0.233506 0.377969 0.745084 0.864645 0.780299 0.766256 0.80809 0.854629 0.885861 0.907089 0.920814 0.931981 0.943447 0.95606 0.969679 0.983984 0.999072 1.01466 1.03079 1.04735 1.06432 1.08168 1.09938 1.11743 1.1358 1.15448 1.17347 1.19277 1.21238 1.23234 1.25266 1.27339 1.29396 1.31461 1.33539 1.35635 1.37753 1.39895 1.42063 1.44252 1.46455 1.48657 1.50834 1.5295 1.5495 1.56759 1.58293 1.5946 1.60165 1.6035 1.59984 1.59001 1.57362 1.55067 1.52156 1.48707 1.44824 1.40622 1.36203 1.31619 1.26984 1.22354 1.17702 1.12987 1.08215 1.03269 0.986934 0.946626 0.908458 0.871869 0.836716 0.80294 0.770632 0.73978 0.710479 0.682647 0.656351 0.631446 0.608091 0.58607 0.565433 0.545909 0.527635 0.510296 0.494111 0.478703 0.464384 0.450692 0.438046 0.42588 0.414734 0.403918 0.394112 0.384483 0.375866 0.367265 0.359693 0.351969 0.345308 0.338317 0.332445 0.326062 0.32089 0.31502 0.310485 0.305052 0.301111 0.296 0.292649 0.287833 0.285061 0.280582 0.278483 0.274413 0.273126 0.269522 0.269202 0.266139 0.266836 0.264338 0.266094 0.263999 0.266838 0.265028 0.268901 0.267173 0.271943 0.270011 0.275468 0.273001 0.278905 0.275575 0.281717 0.277252 0.283505 0.277712 0.283929 0.276773 0.282821 0.274399 0.280363 0.270818 0.276832 0.266341 0.27257 0.261292 0.26792 0.255595 0.262821 0.249363 0.257276 0.24241 0.251209 0.106732 0.222054 0.286033 0.340636 0.386271 0.419229 0.438382 0.444859 0.441025 0.429893 0.414516 0.397458 0.380586 0.364884 0.350126 0.336551 0.323728 0.310951 0.297493 0.281664 0.26427 0.250738 0.239611 0.224422 0.228774 0.318199 0.594626 1.02595 0.9989 0.928757 0.882674 0.855876 0.866504 0.899995 0.938489 0.97259 1.00493 1.03528 1.06492 1.09349 1.1207 1.14656 1.17099 1.19428 1.21662 1.23825 1.25939 1.28019 1.30079 1.32126 1.34165 1.36198 1.38225 1.40246 1.42259 1.44262 1.46256 1.48242 1.50213 1.52154 1.54078 1.55995 1.57923 1.59876 1.61871 1.63921 1.6604 1.68239 1.70521 1.72882 1.75299 1.77717 1.80045 1.82167 1.83927 1.85147 1.85718 1.85678 1.84976 1.83589 1.81522 1.78817 1.75543 1.7179 1.67655 1.63245 1.5866 1.53941 1.49082 1.44084 1.3895 1.33665 1.28402 1.23488 1.18855 1.14435 1.10201 1.06135 1.0223 0.984812 0.94888 0.914551 0.881818 0.850689 0.821104 0.793051 0.76645 0.741281 0.717432 0.694892 0.673531 0.653359 0.634234 0.616195 0.599076 0.58295 0.567626 0.553213 0.539489 0.526602 0.514293 0.502757 0.491687 0.481335 0.471341 0.46202 0.45295 0.444521 0.43624 0.428587 0.420985 0.414021 0.407023 0.400697 0.394255 0.388549 0.382653 0.377584 0.372252 0.367881 0.363166 0.359585 0.355592 0.352895 0.349689 0.347953 0.345555 0.344814 0.343179 0.343379 0.342374 0.343367 0.342758 0.344299 0.343764 0.345535 0.344712 0.346374 0.344921 0.346175 0.343832 0.344463 0.341088 0.340985 0.336558 0.335699 0.330293 0.32872 0.322502 0.3203 0.313489 0.310765 0.303607 0.300461 0.293193 0.289692 0.282437 0.278648 0.272088 0.268449 0.207122 0.279106 0.366806 0.439301 0.486644 0.509912 0.513974 0.504389 0.48621 0.463646 0.440092 0.417969 0.398797 0.382677 0.36966 0.35942 0.349919 0.33865 0.325664 0.312015 0.296462 0.28295 0.289536 0.34844 0.528522 0.914712 1.10236 1.06004 0.961113 0.906527 0.889627 0.904383 0.940899 0.989782 1.04164 1.0927 1.14184 1.18802 1.2307 1.26967 1.30505 1.33735 1.36714 1.39502 1.4215 1.44698 1.47171 1.49584 1.51939 1.54235 1.56463 1.58615 1.60681 1.62654 1.64526 1.66288 1.67935 1.69464 1.70848 1.72068 1.73135 1.7407 1.74915 1.75699 1.76449 1.77199 1.77986 1.78854 1.79851 1.81026 1.82418 1.84035 1.8584 1.87715 1.89447 1.90832 1.91845 1.92337 1.92185 1.91289 1.89621 1.87216 1.84153 1.80544 1.76519 1.72211 1.67721 1.63075 1.58308 1.53424 1.48417 1.43541 1.3889 1.34395 1.30019 1.25734 1.2157 1.17537 1.13642 1.09887 1.06272 1.02802 0.994766 0.962964 0.932588 0.903612 0.875995 0.849705 0.824682 0.800888 0.778253 0.756743 0.736285 0.716852 0.698369 0.680818 0.664118 0.648264 0.633166 0.618833 0.605165 0.592188 0.579789 0.56801 0.556726 0.546001 0.535692 0.525893 0.516439 0.507455 0.498757 0.490507 0.482495 0.474931 0.467569 0.460675 0.453962 0.447754 0.441717 0.436242 0.430932 0.426257 0.42174 0.417934 0.414261 0.411369 0.408552 0.406562 0.404538 0.403356 0.401969 0.4014 0.400395 0.400155 0.399202 0.398951 0.397697 0.397093 0.395219 0.393979 0.391255 0.38919 0.385506 0.382534 0.3779 0.374039 0.368552 0.363902 0.35773 0.352438 0.345782 0.340022 0.333093 0.327057 0.320064 0.313974 0.307081 0.301231 0.294901 0.289976 0.258834 0.354047 0.46448 0.531618 0.560326 0.562819 0.548853 0.525423 0.497285 0.467944 0.440117 0.415629 0.395358 0.379572 0.368674 0.362269 0.358004 0.352827 0.345061 0.33734 0.337006 0.374017 0.503533 0.74552 1.00244 1.10528 1.05703 0.971206 0.920831 0.915041 0.939365 0.984057 1.04074 1.10317 1.16628 1.22769 1.28579 1.33992 1.38986 1.43597 1.47884 1.51919 1.55768 1.59483 1.63094 1.66613 1.70035 1.73341 1.76503 1.79486 1.82261 1.84798 1.87074 1.89096 1.90866 1.9237 1.93599 1.94541 1.95127 1.95356 1.95229 1.94761 1.94027 1.93072 1.91935 1.90662 1.89306 1.87939 1.86636 1.85484 1.84588 1.84118 1.84181 1.84796 1.85792 1.87089 1.88443 1.89553 1.90125 1.89928 1.88835 1.86834 1.84009 1.80521 1.76565 1.72327 1.67858 1.63275 1.58701 1.53981 1.4958 1.45344 1.41252 1.37293 1.33446 1.29692 1.25957 1.22298 1.18734 1.15274 1.11925 1.08691 1.05573 1.02573 0.996897 0.969215 0.942667 0.917231 0.892873 0.869562 0.84726 0.825931 0.805535 0.786039 0.767399 0.749587 0.732557 0.716285 0.700722 0.68585 0.671617 0.658009 0.644973 0.632502 0.620539 0.609085 0.598081 0.587539 0.577395 0.567676 0.558312 0.549348 0.54071 0.532462 0.524522 0.516977 0.509736 0.502909 0.49639 0.490316 0.48456 0.479285 0.474333 0.469896 0.465772 0.46218 0.458863 0.456065 0.45346 0.451324 0.44925 0.447554 0.445744 0.444194 0.442328 0.440596 0.438347 0.436127 0.433219 0.430271 0.426519 0.422706 0.418036 0.413329 0.407775 0.402237 0.395915 0.389686 0.382768 0.376028 0.368715 0.361668 0.354166 0.347023 0.339538 0.332549 0.32533 0.318796 0.312157 0.306681 0.294552 0.41992 0.537575 0.59238 0.605569 0.593631 0.568254 0.536716 0.502718 0.468811 0.437826 0.412015 0.392587 0.380142 0.373596 0.370541 0.370045 0.371629 0.379556 0.407838 0.481975 0.633692 0.848744 1.01538 1.05871 1.01679 0.960902 0.928025 0.93073 0.963168 1.0149 1.07807 1.14714 1.21795 1.28777 1.35515 1.41933 1.48028 1.53835 1.59417 1.64839 1.70158 1.75406 1.80592 1.85695 1.90677 1.95486 2.00053 2.0431 2.08189 2.11674 2.14717 2.17263 2.19328 2.20927 2.22057 2.22715 2.22902 2.22525 2.21655 2.20315 2.18521 2.16282 2.13627 2.10594 2.07229 2.03593 1.99769 1.95858 1.91985 1.88297 1.84977 1.8225 1.80358 1.79496 1.79738 1.80884 1.82462 1.83872 1.84593 1.84298 1.82873 1.80397 1.77081 1.73156 1.68855 1.64268 1.59617 1.55071 1.508 1.46735 1.42852 1.3915 1.35619 1.32239 1.28972 1.25761 1.22565 1.19436 1.16389 1.1343 1.1056 1.07782 1.05096 1.025 0.999949 0.97578 0.952481 0.930032 0.908412 0.887596 0.86756 0.848278 0.829727 0.81188 0.794715 0.778205 0.76233 0.747061 0.73238 0.718258 0.704678 0.691613 0.679046 0.66695 0.655313 0.644106 0.633325 0.622939 0.612951 0.603331 0.594088 0.585195 0.57667 0.568485 0.56067 0.553195 0.546099 0.53935 0.532995 0.526995 0.521404 0.516169 0.51135 0.506871 0.502795 0.499016 0.495596 0.492392 0.489469 0.486642 0.483982 0.481268 0.47859 0.475694 0.472703 0.469345 0.465784 0.461739 0.457427 0.452562 0.447413 0.441696 0.435723 0.429213 0.422512 0.415342 0.408071 0.400421 0.392772 0.384843 0.377027 0.369024 0.361255 0.353387 0.345906 0.338437 0.33153 0.324733 0.318839 0.313846 0.48421 0.605753 0.651215 0.652598 0.629203 0.594602 0.55627 0.517012 0.478874 0.44528 0.419223 0.401618 0.391107 0.386059 0.386746 0.397335 0.425277 0.482221 0.58262 0.726402 0.873028 0.965508 0.987181 0.966082 0.936581 0.922965 0.935316 0.973082 1.02942 1.09711 1.17074 1.24677 1.32279 1.39748 1.47029 1.54123 1.61068 1.67923 1.74742 1.81563 1.88401 1.95233 2.02011 2.08654 2.1507 2.21154 2.26797 2.319 2.36412 2.40373 2.43766 2.46586 2.48803 2.50394 2.51358 2.51687 2.51313 2.50277 2.48662 2.46486 2.43757 2.40481 2.36664 2.32312 2.2744 2.22072 2.16253 2.10059 2.03598 1.97031 1.90589 1.84583 1.79408 1.75494 1.73219 1.72759 1.7386 1.75696 1.77264 1.7785 1.77147 1.75155 1.7209 1.6817 1.63832 1.59123 1.54635 1.50289 1.46133 1.42181 1.38456 1.34957 1.31663 1.28558 1.2562 1.22801 1.2002 1.1729 1.14635 1.12058 1.09558 1.07136 1.0479 1.02518 1.00319 0.981898 0.961293 0.941351 0.922052 0.903374 0.885297 0.867802 0.850871 0.834486 0.81863 0.803289 0.788447 0.77409 0.760204 0.746776 0.733794 0.721244 0.709115 0.697394 0.686073 0.675137 0.664582 0.654393 0.644568 0.635096 0.625975 0.617197 0.608765 0.60067 0.592922 0.585511 0.57845 0.571727 0.565358 0.559326 0.553648 0.548298 0.543287 0.538575 0.534169 0.53001 0.526094 0.52234 0.518739 0.515188 0.511675 0.508082 0.504404 0.500515 0.496427 0.492016 0.487321 0.482223 0.476796 0.47093 0.464733 0.458105 0.451183 0.443874 0.436342 0.428494 0.420514 0.412306 0.404072 0.3957 0.387415 0.379082 0.370953 0.362864 0.355118 0.347525 0.34043 0.333572 0.327429 0.328539 0.542007 0.669414 0.711696 0.705512 0.672196 0.627538 0.580443 0.534517 0.49195 0.455739 0.429975 0.417862 0.415934 0.424918 0.44885 0.493857 0.564977 0.659306 0.760029 0.843526 0.894992 0.914303 0.91244 0.905598 0.908319 0.929541 0.971105 1.0296 1.0995 1.17596 1.25547 1.33594 1.41615 1.49566 1.57454 1.65315 1.73201 1.8116 1.89215 1.97363 2.05564 2.13746 2.21804 2.29612 2.37035 2.43941 2.50208 2.55758 2.60642 2.64813 2.68261 2.70975 2.72955 2.7421 2.74767 2.74653 2.73789 2.7232 2.70287 2.67704 2.64569 2.60877 2.56613 2.5176 2.46301 2.40215 2.3349 2.26123 2.18142 2.09637 2.00794 1.91926 1.83511 1.76172 1.70566 1.67206 1.66345 1.67459 1.69262 1.70505 1.70492 1.68984 1.66199 1.62327 1.5808 1.53679 1.49267 1.44963 1.40844 1.36939 1.3327 1.29852 1.26682 1.23738 1.20997 1.18423 1.15948 1.13525 1.11177 1.08906 1.06711 1.04589 1.02538 1.00555 0.986361 0.967788 0.949801 0.932368 0.915463 0.899061 0.883137 0.867672 0.852647 0.838044 0.823851 0.810054 0.796643 0.783609 0.770942 0.758636 0.746686 0.735085 0.723828 0.71291 0.702329 0.69208 0.68216 0.672564 0.663293 0.654341 0.645707 0.63739 0.629388 0.621699 0.614325 0.60726 0.600506 0.594057 0.587912 0.58206 0.576498 0.571204 0.566171 0.561365 0.55677 0.55234 0.548049 0.543839 0.539675 0.53549 0.531248 0.526876 0.522345 0.517585 0.512578 0.507263 0.501644 0.49567 0.489369 0.482702 0.47572 0.468396 0.460803 0.452918 0.444834 0.436529 0.428114 0.419561 0.410996 0.402381 0.393857 0.38537 0.377081 0.368918 0.361075 0.353468 0.346324 0.339477 0.333225 0.33461 0.591947 0.732148 0.777876 0.770124 0.731907 0.680347 0.62602 0.574837 0.531042 0.499121 0.484275 0.485574 0.500285 0.528285 0.570011 0.623628 0.683832 0.742574 0.792145 0.828403 0.851409 0.864666 0.874706 0.890121 0.918168 0.962027 1.02068 1.09061 1.16778 1.24895 1.33195 1.41561 1.49947 1.58357 1.66825 1.75397 1.84113 1.92996 2.02033 2.1118 2.20359 2.29464 2.3836 2.46897 2.54927 2.62315 2.68957 2.7482 2.79899 2.84172 2.87646 2.90324 2.92217 2.93349 2.9375 2.93447 2.92417 2.90759 2.88507 2.85671 2.82251 2.78243 2.73637 2.6842 2.62577 2.56085 2.48919 2.41042 2.32407 2.22986 2.12823 2.02096 1.91208 1.8087 1.72061 1.65596 1.6201 1.61147 1.6202 1.63213 1.63511 1.62308 1.59766 1.5629 1.5226 1.4797 1.43613 1.39333 1.35231 1.31364 1.27754 1.24407 1.21322 1.18485 1.15871 1.13449 1.11176 1.08972 1.06845 1.04798 1.02827 1.0093 0.991047 0.97346 0.956503 0.940136 0.92432 0.909019 0.894199 0.879829 0.865882 0.85233 0.839153 0.826331 0.813847 0.801688 0.789841 0.778298 0.767052 0.756097 0.745428 0.735044 0.724943 0.715123 0.705584 0.696325 0.687348 0.678652 0.670238 0.662103 0.65425 0.646675 0.639379 0.632358 0.62561 0.61913 0.612912 0.606949 0.601231 0.595744 0.590474 0.585397 0.580494 0.575733 0.571086 0.566512 0.561976 0.557432 0.552842 0.548156 0.543337 0.538339 0.533132 0.527676 0.521954 0.515938 0.509624 0.502996 0.49607 0.488837 0.48133 0.473551 0.465547 0.457323 0.448941 0.440407 0.431796 0.423109 0.414433 0.405761 0.397193 0.388712 0.380429 0.372319 0.364513 0.356982 0.349883 0.343113 0.336855 0.331279 0.62686 0.784594 0.84186 0.840872 0.80607 0.755632 0.701745 0.652323 0.612642 0.586158 0.574514 0.574074 0.586092 0.609026 0.640063 0.676198 0.714036 0.750235 0.782231 0.80893 0.831052 0.851537 0.875261 0.907583 0.952021 1.00912 1.077 1.15272 1.23336 1.31677 1.40162 1.48735 1.57389 1.66144 1.7504 1.84116 1.93398 2.02883 2.12536 2.22289 2.32051 2.41702 2.51099 2.60088 2.68526 2.76293 2.83311 2.89563 2.95012 2.99646 3.03463 3.06456 3.08621 3.09959 3.10474 3.10127 3.08985 3.07119 3.04564 3.0134 2.97463 2.92947 2.87801 2.8203 2.75634 2.68608 2.60944 2.52631 2.43634 2.33873 2.23259 2.11758 1.99519 1.87135 1.75917 1.66892 1.60875 1.57663 1.56633 1.56819 1.56811 1.5572 1.53426 1.50159 1.46252 1.4202 1.37704 1.33469 1.29421 1.25617 1.22083 1.18823 1.15829 1.13086 1.10576 1.0827 1.0613 1.0409 1.02126 1.00242 0.984364 0.96706 0.950471 0.934554 0.919265 0.904564 0.890408 0.876761 0.863587 0.850852 0.838527 0.826582 0.814994 0.803739 0.792799 0.782155 0.771795 0.761706 0.751879 0.742307 0.732984 0.723907 0.715074 0.706484 0.698136 0.690031 0.682169 0.67455 0.667176 0.660044 0.653156 0.646508 0.640098 0.63392 0.627971 0.62224 0.616719 0.611393 0.606248 0.601264 0.59642 0.591689 0.587044 0.58245 0.577875 0.573282 0.568634 0.563893 0.559025 0.553994 0.54877 0.543325 0.53764 0.531693 0.525478 0.518983 0.512213 0.505167 0.497861 0.490302 0.482517 0.474517 0.466341 0.458003 0.449549 0.440994 0.432395 0.423763 0.415161 0.4066 0.398148 0.389811 0.381668 0.373718 0.366053 0.358674 0.351689 0.345048 0.338856 0.314452 0.640182 0.81133 0.880143 0.891867 0.869331 0.829773 0.78429 0.740957 0.705433 0.680528 0.664211 0.657994 0.660852 0.67246 0.691272 0.71511 0.74141 0.768063 0.79367 0.81803 0.84246 0.869775 0.903538 0.946774 1.00078 1.0649 1.13714 1.21515 1.29687 1.38081 1.46606 1.55234 1.63977 1.72862 1.81929 1.91211 2.00724 2.10453 2.20353 2.30353 2.40363 2.50264 2.59914 2.69169 2.77909 2.86037 2.93528 3.00304 3.06308 3.11514 3.15891 3.19398 3.21989 3.23618 3.24236 3.23763 3.22347 3.20064 3.16967 3.131 3.08505 3.03226 2.97303 2.9077 2.83651 2.75957 2.67678 2.58855 2.49526 2.39623 2.29039 2.17632 2.05259 1.92099 1.79769 1.69109 1.61397 1.56152 1.5299 1.51618 1.50832 1.49484 1.47143 1.43896 1.4003 1.35843 1.31576 1.27401 1.23428 1.19715 1.16286 1.13139 1.10261 1.0763 1.05228 1.0303 1.01002 0.990884 0.972548 0.955028 0.938297 0.922319 0.907048 0.892441 0.878454 0.865047 0.852182 0.839824 0.827938 0.816495 0.805463 0.794816 0.784529 0.774578 0.764942 0.755603 0.746545 0.737752 0.729214 0.72092 0.712863 0.705038 0.697439 0.690063 0.682909 0.675974 0.669257 0.662757 0.656473 0.650402 0.644542 0.638887 0.633433 0.628171 0.623093 0.618185 0.613433 0.608819 0.604321 0.599916 0.595576 0.591271 0.586967 0.582631 0.578228 0.573723 0.569082 0.564275 0.559274 0.554054 0.548598 0.542891 0.536925 0.530693 0.5242 0.517447 0.510446 0.503207 0.495748 0.488083 0.480238 0.472229 0.464086 0.455829 0.447492 0.439094 0.430676 0.422256 0.41388 0.405563 0.397357 0.389276 0.381377 0.373673 0.36623 0.359063 0.352251 0.345774 0.339695 0.288326 0.630156 0.811701 0.893746 0.920661 0.914409 0.890934 0.859449 0.826755 0.79725 0.772927 0.754333 0.744955 0.743907 0.749091 0.757707 0.77083 0.787549 0.806706 0.82763 0.850726 0.877428 0.909915 0.950344 1.00002 1.059 1.12621 1.19982 1.27787 1.35874 1.44128 1.5249 1.60959 1.69556 1.78313 1.87267 1.96447 2.05862 2.15497 2.25308 2.3523 2.45179 2.55042 2.64687 2.73996 2.82916 2.91373 2.99275 3.06527 3.13057 3.18807 3.23715 3.277 3.30668 3.32503 3.33073 3.32349 3.30505 3.27648 3.23859 3.19209 3.13772 3.07621 3.00832 2.93473 2.85599 2.77236 2.68338 2.58977 2.49346 2.3935 2.28918 2.17933 2.06214 1.93916 1.81878 1.70969 1.62192 1.55187 1.5007 1.4713 1.45341 1.4345 1.4084 1.37466 1.33548 1.29363 1.25145 1.21059 1.17205 1.13631 1.10351 1.07356 1.04626 1.02135 0.998613 0.977814 0.958651 0.94062 0.923445 0.907107 0.891563 0.876762 0.862654 0.849194 0.83634 0.824053 0.8123 0.801046 0.790262 0.779919 0.769987 0.760443 0.75126 0.742418 0.733895 0.725672 0.717732 0.710061 0.702646 0.695475 0.688538 0.681829 0.67534 0.669067 0.663004 0.657148 0.651496 0.646043 0.640785 0.635718 0.630837 0.626133 0.621598 0.617221 0.612988 0.608882 0.604886 0.600974 0.597123 0.593301 0.589479 0.585622 0.581696 0.577664 0.573492 0.56915 0.564607 0.559839 0.554828 0.549559 0.544024 0.538219 0.532149 0.525817 0.519238 0.512421 0.505386 0.498148 0.490728 0.483144 0.47542 0.467574 0.459632 0.45161 0.443539 0.435435 0.427331 0.419242 0.411204 0.403233 0.395369 0.387627 0.380051 0.372657 0.365495 0.358585 0.351989 0.345705 0.339771 0.2546 0.599772 0.785632 0.879729 0.923173 0.933985 0.926584 0.909264 0.887633 0.865619 0.844515 0.829029 0.820409 0.81803 0.820484 0.826022 0.832779 0.843187 0.857572 0.876143 0.899406 0.928496 0.964769 1.00929 1.06231 1.12323 1.19079 1.2634 1.33932 1.41703 1.49579 1.57541 1.65632 1.73873 1.82285 1.90897 1.99726 2.08777 2.18031 2.27452 2.36981 2.46551 2.56078 2.65468 2.74644 2.83538 2.92061 3.00109 3.07572 3.14357 3.20381 3.25557 3.29779 3.32914 3.34777 3.35121 3.34043 3.31717 3.2827 3.23804 3.18419 3.1221 3.05283 2.97739 2.89677 2.81186 2.72339 2.6319 2.538 2.44226 2.34474 2.24515 2.1426 2.03551 1.92485 1.81422 1.71051 1.61659 1.53207 1.46657 1.42529 1.39832 1.37303 1.34276 1.3066 1.26639 1.22458 1.18326 1.14385 1.10713 1.07341 1.04267 1.01473 0.989302 0.966125 0.94493 0.925489 0.907536 0.890613 0.874602 0.85944 0.845066 0.831421 0.818452 0.806113 0.794366 0.783172 0.772498 0.762312 0.752584 0.743285 0.734388 0.725868 0.717702 0.709868 0.702346 0.695119 0.68817 0.681485 0.675051 0.668857 0.662893 0.657151 0.651623 0.646303 0.641185 0.636263 0.631532 0.626987 0.622621 0.618428 0.614399 0.610526 0.606795 0.603193 0.599704 0.596306 0.592977 0.58969 0.586416 0.583122 0.579773 0.576333 0.572766 0.569038 0.565115 0.56097 0.556578 0.551921 0.546988 0.541773 0.536278 0.530507 0.524474 0.518192 0.511679 0.504955 0.498041 0.490958 0.483728 0.476369 0.468905 0.461352 0.453733 0.446063 0.438366 0.430655 0.422955 0.415281 0.407659 0.400104 0.392646 0.385299 0.378098 0.371058 0.364218 0.357598 0.351247 0.345173 0.339407 0.214755 0.553241 0.739598 0.843331 0.901328 0.928166 0.935709 0.931485 0.920671 0.906494 0.893185 0.883388 0.878226 0.87757 0.880641 0.886337 0.893432 0.90261 0.915974 0.93455 0.959102 0.990385 1.02908 1.0755 1.12945 1.19008 1.25607 1.32568 1.39713 1.46882 1.54167 1.61665 1.69296 1.77025 1.84907 1.9297 2.01229 2.09688 2.1833 2.27123 2.36019 2.44964 2.53899 2.62756 2.71469 2.79964 2.88152 2.95922 3.03158 3.09751 3.15595 3.20586 3.24601 3.27492 3.29059 3.29083 3.27711 3.2506 3.21249 3.16392 3.10601 3.03989 2.96676 2.88787 2.80439 2.71744 2.62804 2.53704 2.44514 2.35292 2.26068 2.16829 2.07504 1.97984 1.88313 1.78494 1.6883 1.58907 1.49278 1.41957 1.37135 1.33744 1.30604 1.27134 1.23263 1.19159 1.15034 1.11062 1.07351 1.03947 1.00853 0.980506 0.95509 0.931962 0.910835 0.891447 0.873555 0.856898 0.841269 0.826553 0.812671 0.799553 0.787142 0.775387 0.764244 0.753672 0.743634 0.734095 0.725021 0.71638 0.708143 0.700282 0.692773 0.685594 0.678724 0.672144 0.665839 0.659795 0.653997 0.648435 0.643098 0.637977 0.633064 0.628353 0.623837 0.619509 0.615364 0.611395 0.607597 0.603962 0.600482 0.597148 0.593948 0.590868 0.587893 0.585002 0.582175 0.579384 0.576601 0.573793 0.570926 0.567964 0.56487 0.561609 0.558145 0.554451 0.550501 0.546275 0.541763 0.53696 0.531866 0.526491 0.520846 0.514951 0.508825 0.502491 0.495973 0.489294 0.482476 0.475543 0.468512 0.461405 0.454236 0.447024 0.439783 0.432529 0.425274 0.418038 0.41083 0.403671 0.396573 0.389559 0.38264 0.375843 0.369182 0.362687 0.356378 0.350291 0.344441 0.338856 0.174387 0.492773 0.673692 0.782247 0.85118 0.893424 0.916483 0.92673 0.929225 0.927271 0.923877 0.921492 0.921673 0.924917 0.931094 0.939778 0.950515 0.963085 0.978659 0.998839 1.02485 1.05756 1.09741 1.14429 1.19784 1.25734 1.32219 1.38815 1.45448 1.51999 1.58655 1.65453 1.7237 1.79407 1.86586 1.93921 2.01423 2.09092 2.16918 2.24874 2.32923 2.41018 2.49112 2.57151 2.65077 2.72818 2.80285 2.87374 2.93968 2.99952 3.05215 3.09643 3.13117 3.15486 3.16524 3.16196 3.14559 3.11698 3.07712 3.02709 2.96804 2.90114 2.82767 2.74899 2.66643 2.58127 2.49472 2.40779 2.32133 2.23597 2.15203 2.06936 1.98729 1.90528 1.82132 1.73522 1.64199 1.53587 1.43258 1.35526 1.30501 1.26647 1.22991 1.19136 1.15087 1.11003 1.07043 1.03351 0.999869 0.969547 0.942274 0.917657 0.895273 0.874806 0.855978 0.838552 0.822371 0.807303 0.793209 0.779982 0.767545 0.755835 0.744801 0.734394 0.724568 0.715282 0.706495 0.698169 0.690269 0.682759 0.675611 0.668797 0.662293 0.65608 0.650137 0.64445 0.639005 0.633789 0.628791 0.624003 0.619414 0.615019 0.61081 0.606782 0.602929 0.599245 0.595726 0.592365 0.589155 0.586091 0.583162 0.58036 0.577673 0.575085 0.572579 0.570135 0.56773 0.565336 0.562922 0.560457 0.557903 0.555226 0.552389 0.549358 0.546101 0.542593 0.538812 0.534744 0.530384 0.525732 0.520796 0.515588 0.510127 0.504435 0.498535 0.492455 0.486217 0.479848 0.47337 0.466803 0.460167 0.453477 0.446749 0.439996 0.433228 0.426459 0.419696 0.412953 0.406238 0.399565 0.392943 0.386388 0.379911 0.373529 0.367258 0.361118 0.355127 0.349315 0.343697 0.338304 0.134033 0.425029 0.593637 0.699858 0.773624 0.82586 0.864182 0.892523 0.912245 0.925531 0.934765 0.942395 0.950335 0.95969 0.970944 0.984251 0.999645 1.01727 1.0376 1.06118 1.08969 1.12426 1.16629 1.21376 1.26647 1.32375 1.3843 1.44596 1.50776 1.56896 1.62973 1.69117 1.75305 1.81553 1.87894 1.94352 2.00942 2.07662 2.14504 2.21448 2.28461 2.35503 2.42534 2.49505 2.56363 2.63041 2.69459 2.75522 2.81124 2.86157 2.90513 2.94084 2.96761 2.98413 2.98825 2.98061 2.96144 2.93127 2.89084 2.8411 2.78313 2.71809 2.6473 2.57225 2.49433 2.41488 2.33517 2.2563 2.17904 2.10385 2.03094 1.96007 1.89011 1.81941 1.74714 1.66797 1.57059 1.45729 1.35349 1.27723 1.22424 1.1816 1.1409 1.09988 1.05936 1.0208 0.98522 0.953116 0.924459 0.898904 0.875986 0.855231 0.836224 0.818663 0.802353 0.787147 0.77295 0.759707 0.747344 0.735777 0.724946 0.714795 0.705276 0.696337 0.687932 0.680016 0.672545 0.665478 0.658776 0.652408 0.646342 0.640553 0.63502 0.629726 0.624655 0.619794 0.615133 0.610662 0.606372 0.602256 0.59831 0.594526 0.590901 0.58743 0.584109 0.580935 0.577902 0.575006 0.572241 0.569601 0.567077 0.564661 0.562339 0.560097 0.557919 0.555782 0.553664 0.551536 0.549369 0.54713 0.544783 0.542294 0.539629 0.536756 0.533647 0.530279 0.526636 0.52271 0.518498 0.514005 0.509244 0.504231 0.498989 0.493541 0.487913 0.482133 0.476224 0.470212 0.464118 0.457962 0.451758 0.445523 0.439267 0.432999 0.426728 0.420462 0.414205 0.407966 0.401751 0.395567 0.389423 0.383328 0.377291 0.371324 0.36544 0.359654 0.353981 0.348447 0.343065 0.337867 0.0979293 0.354486 0.505191 0.602893 0.676264 0.736693 0.787459 0.829982 0.865414 0.894856 0.919475 0.940842 0.959964 0.978387 0.996843 1.01618 1.03706 1.06002 1.08587 1.11515 1.14783 1.18506 1.2274 1.27416 1.32499 1.37933 1.43628 1.49452 1.55302 1.61118 1.66887 1.72562 1.78152 1.8371 1.89251 1.94808 2.00412 2.06079 2.11813 2.17604 2.23425 2.29245 2.35029 2.40733 2.46311 2.51704 2.56845 2.61652 2.66034 2.69896 2.7314 2.75671 2.77394 2.78198 2.77925 2.76672 2.74445 2.71282 2.67244 2.62417 2.56905 2.50826 2.44309 2.37494 2.30512 2.23487 2.16538 2.09756 2.032 1.969 1.90753 1.84748 1.78853 1.72894 1.66353 1.58005 1.4714 1.35581 1.25924 1.18838 1.13469 1.08871 1.04582 1.00519 0.967495 0.933425 0.903209 0.87664 0.853241 0.832438 0.813682 0.796508 0.780573 0.765673 0.751725 0.738673 0.726477 0.715126 0.704576 0.694764 0.685631 0.677123 0.669185 0.661766 0.654812 0.648276 0.642113 0.63628 0.63074 0.625463 0.62042 0.615589 0.610954 0.606501 0.602218 0.598096 0.594127 0.590305 0.586623 0.583078 0.579666 0.576385 0.573231 0.570202 0.567296 0.564512 0.561844 0.559292 0.556849 0.55451 0.552269 0.550115 0.548039 0.546025 0.544057 0.542114 0.540174 0.538209 0.536189 0.534084 0.531861 0.529486 0.526928 0.524159 0.521155 0.517896 0.514372 0.510576 0.506512 0.502188 0.497619 0.492824 0.487827 0.482654 0.47733 0.471882 0.466334 0.46071 0.455028 0.449307 0.44356 0.437797 0.432027 0.426257 0.42049 0.41473 0.40898 0.403243 0.397522 0.391821 0.386144 0.380498 0.37489 0.369326 0.363819 0.358377 0.353017 0.347757 0.342611 0.337609 0.0674769 0.285713 0.417709 0.50864 0.581951 0.645141 0.701494 0.752524 0.799004 0.841352 0.879811 0.914832 0.947181 0.977274 1.00558 1.03319 1.06083 1.08924 1.11983 1.1531 1.18932 1.22894 1.2722 1.31884 1.36858 1.421 1.47545 1.53107 1.587 1.64263 1.69756 1.75129 1.80336 1.85408 1.90328 1.95136 1.99874 2.04566 2.09224 2.13847 2.18428 2.22959 2.27427 2.31799 2.36029 2.40068 2.43855 2.47319 2.50386 2.52973 2.55001 2.56388 2.57053 2.56895 2.55927 2.54179 2.51654 2.48382 2.44422 2.39854 2.34773 2.2929 2.23524 2.17597 2.11621 2.05699 1.99862 1.94181 1.88724 1.83527 1.78557 1.73763 1.68948 1.63555 1.56413 1.46441 1.34722 1.23943 1.15518 1.09096 1.03842 0.992264 0.950651 0.913435 0.880757 0.852477 0.828136 0.807084 0.788606 0.77204 0.756859 0.742687 0.729319 0.716699 0.704855 0.693807 0.68355 0.674082 0.66536 0.657313 0.649883 0.643008 0.636624 0.630676 0.625111 0.619877 0.614933 0.610239 0.605762 0.601475 0.597353 0.593378 0.589538 0.585824 0.582229 0.578746 0.575371 0.572099 0.568927 0.565854 0.562879 0.560002 0.557221 0.554538 0.55195 0.549459 0.547062 0.544757 0.542542 0.540412 0.538361 0.536381 0.534461 0.532589 0.530748 0.52892 0.527082 0.525209 0.523274 0.521246 0.519096 0.516793 0.51431 0.511621 0.508706 0.505551 0.502147 0.498493 0.494593 0.490459 0.486107 0.481558 0.476836 0.471967 0.466976 0.461888 0.456726 0.451513 0.446264 0.440995 0.435716 0.430436 0.425158 0.419887 0.414622 0.409364 0.404113 0.398867 0.393626 0.388393 0.383168 0.377953 0.372756 0.367578 0.36243 0.35732 0.352259 0.347265 0.34235 0.337544 0.0493346 0.237966 0.357502 0.440699 0.509292 0.570717 0.628037 0.682561 0.734776 0.784708 0.832062 0.876628 0.918611 0.95852 0.995372 1.03026 1.06374 1.09702 1.13148 1.1679 1.20672 1.24823 1.29253 1.3395 1.38891 1.44042 1.49357 1.54775 1.60224 1.65634 1.70927 1.76007 1.80884 1.85573 1.90075 1.94401 1.98563 2.02573 2.06441 2.10176 2.13788 2.17284 2.20658 2.23894 2.26962 2.2982 2.3242 2.34701 2.36599 2.38046 2.38977 2.39325 2.39027 2.37992 2.36327 2.34033 2.3113 2.27661 2.23687 2.19285 2.14544 2.09564 2.04444 1.99286 1.94187 1.89227 1.84454 1.79931 1.75698 1.71751 1.67999 1.64155 1.59599 1.53214 1.43891 1.32313 1.21004 1.11745 1.04568 0.987945 0.938998 0.896557 0.859935 0.828801 0.802654 0.780757 0.762241 0.746249 0.731999 0.718893 0.706536 0.69475 0.683495 0.672807 0.662863 0.653725 0.645376 0.637783 0.630885 0.624603 0.618822 0.613475 0.608513 0.603886 0.599544 0.595455 0.591574 0.587868 0.584306 0.580865 0.577524 0.574271 0.571097 0.567999 0.564972 0.562012 0.559116 0.556284 0.553515 0.550811 0.548172 0.5456 0.543097 0.540665 0.538304 0.536017 0.533803 0.531662 0.529591 0.527587 0.525647 0.523762 0.521925 0.520124 0.518343 0.516567 0.514774 0.512942 0.511045 0.509057 0.50695 0.504697 0.502274 0.499658 0.496833 0.493786 0.490512 0.48701 0.483288 0.479358 0.475237 0.470946 0.466508 0.461949 0.457293 0.452565 0.447786 0.442975 0.438148 0.433318 0.428491 0.423673 0.418866 0.41407 0.409281 0.404498 0.399715 0.39493 0.390139 0.385341 0.380536 0.375723 0.370906 0.366087 0.361274 0.356472 0.351693 0.346951 0.342258 0.337642 0.0403595 0.206581 0.31413 0.389537 0.452729 0.510784 0.566704 0.621805 0.676525 0.730741 0.783913 0.835369 0.884441 0.930219 0.973042 1.01434 1.0539 1.09238 1.13093 1.17047 1.21161 1.25472 1.29995 1.34727 1.39656 1.44756 1.4999 1.55306 1.60629 1.65879 1.70945 1.75754 1.80323 1.84666 1.88789 1.92695 1.96386 1.99863 2.03129 2.06192 2.0906 2.11746 2.14254 2.16576 2.18699 2.20594 2.22227 2.23554 2.24529 2.251 2.25217 2.24832 2.23895 2.22333 2.20246 2.17653 2.14588 2.11102 2.07258 2.03132 1.98809 1.94376 1.89925 1.85546 1.81322 1.77328 1.73619 1.70223 1.67112 1.64172 1.61083 1.57218 1.51558 1.4302 1.31859 1.20262 1.10276 1.02357 0.960258 0.907686 0.863128 0.825499 0.794198 0.768521 0.747542 0.730227 0.715563 0.702668 0.69082 0.679576 0.668717 0.658134 0.648078 0.638711 0.630152 0.622408 0.615437 0.609179 0.603565 0.598513 0.593927 0.589734 0.585874 0.582295 0.57894 0.575716 0.572603 0.56959 0.566668 0.563821 0.561027 0.558277 0.555567 0.552895 0.550259 0.547655 0.545084 0.542547 0.540045 0.537582 0.535161 0.532785 0.530458 0.528182 0.525959 0.523792 0.521682 0.519629 0.517633 0.515693 0.513803 0.51196 0.510157 0.508382 0.506625 0.504871 0.5031 0.501294 0.499429 0.497481 0.495426 0.493239 0.490897 0.488381 0.485675 0.482768 0.479655 0.476336 0.472819 0.469116 0.465242 0.461219 0.457071 0.45282 0.448493 0.444111 0.439696 0.435267 0.430836 0.426414 0.422007 0.417618 0.413246 0.408887 0.404536 0.400187 0.395833 0.391468 0.387088 0.382686 0.378261 0.373812 0.36934 0.364846 0.360335 0.355814 0.351291 0.34678 0.342292 0.337855 0.0364502 0.183112 0.279622 0.347785 0.405771 0.460172 0.513896 0.568301 0.623877 0.680557 0.737822 0.793509 0.846302 0.896102 0.943298 0.989643 1.03456 1.0781 1.12091 1.16375 1.20728 1.25198 1.29814 1.34587 1.39508 1.44548 1.49675 1.54841 1.59978 1.64988 1.6977 1.74302 1.7857 1.82586 1.86357 1.89882 1.93162 1.96192 1.98968 2.01492 2.03769 2.05808 2.07616 2.09194 2.10535 2.11625 2.12444 2.12963 2.13152 2.12979 2.12409 2.1141 2.09946 2.07983 2.05621 2.02885 1.99815 1.96466 1.92901 1.89194 1.85425 1.81676 1.7803 1.74565 1.7135 1.68436 1.65827 1.63464 1.61191 1.58661 1.55235 1.49984 1.41959 1.31219 1.19566 1.09087 1.00561 0.937215 0.881044 0.834191 0.795306 0.763581 0.738133 0.717855 0.70154 0.688022 0.676287 0.665521 0.655227 0.64502 0.635043 0.625517 0.616644 0.608557 0.601292 0.594807 0.589033 0.583898 0.579327 0.575248 0.571587 0.568277 0.565259 0.562479 0.559889 0.557415 0.555025 0.552694 0.550366 0.548019 0.545669 0.543325 0.540982 0.538642 0.536304 0.533968 0.531636 0.529314 0.527005 0.524713 0.522445 0.520205 0.517996 0.515823 0.513689 0.511598 0.50955 0.507549 0.505594 0.503685 0.501821 0.499998 0.498211 0.496453 0.494714 0.492981 0.491241 0.489475 0.487663 0.485784 0.483816 0.481735 0.479521 0.477155 0.474619 0.471905 0.469004 0.465917 0.46265 0.459212 0.455621 0.451895 0.448057 0.444131 0.440142 0.436112 0.432062 0.428009 0.423966 0.419943 0.415942 0.411966 0.408011 0.40407 0.400135 0.396199 0.392251 0.388282 0.384286 0.380255 0.376186 0.372074 0.367921 0.363727 0.359495 0.355232 0.350944 0.346646 0.342348 0.338078 0.0328243 0.164956 0.252467 0.314821 0.368666 0.420099 0.471897 0.525397 0.581208 0.639526 0.69866 0.756232 0.811536 0.864115 0.914157 0.96364 1.0123 1.05983 1.10633 1.1522 1.19797 1.24414 1.29099 1.33864 1.38705 1.43602 1.48532 1.53448 1.58263 1.62944 1.6743 1.71675 1.75658 1.79374 1.82826 1.86015 1.88937 1.9159 1.93968 1.96066 1.97885 1.9943 2.00707 2.01719 2.02465 2.02941 2.03137 2.03039 2.02632 2.01899 2.00823 1.99384 1.97541 1.95365 1.92904 1.90194 1.87282 1.84224 1.81087 1.77941 1.74861 1.71923 1.69194 1.66732 1.64564 1.62671 1.60944 1.59171 1.56984 1.53747 1.48615 1.40799 1.30328 1.187 1.07901 0.989051 0.916317 0.856879 0.807875 0.767784 0.735607 0.710294 0.690592 0.675139 0.662632 0.651919 0.642102 0.632633 0.623011 0.613558 0.60456 0.596203 0.588597 0.581793 0.575763 0.570434 0.565727 0.561566 0.557878 0.554596 0.551657 0.549006 0.546593 0.544372 0.542303 0.540347 0.538468 0.536641 0.534816 0.532962 0.531038 0.529041 0.527003 0.524928 0.522819 0.520683 0.518527 0.516357 0.514182 0.512007 0.50984 0.507685 0.505549 0.503436 0.50135 0.499296 0.497276 0.495294 0.493352 0.491451 0.489591 0.487772 0.48599 0.484241 0.482519 0.480814 0.479114 0.477405 0.475669 0.473888 0.47204 0.470105 0.46806 0.465887 0.463568 0.46109 0.458445 0.45563 0.452647 0.449506 0.446221 0.44281 0.439297 0.435703 0.432055 0.428375 0.424685 0.421 0.417335 0.413696 0.410088 0.406508 0.402952 0.399411 0.395875 0.392331 0.388769 0.385177 0.381545 0.377864 0.37413 0.370336 0.366482 0.362568 0.358597 0.354574 0.350507 0.346409 0.342289 0.338177 0.0346006 0.151986 0.232055 0.290873 0.342679 0.393084 0.444846 0.499067 0.556389 0.616716 0.67665 0.73553 0.792672 0.847488 0.900063 0.951426 1.00161 1.051 1.09928 1.14652 1.19308 1.23929 1.28533 1.33136 1.37731 1.4228 1.46813 1.51314 1.55743 1.60059 1.64208 1.6814 1.71826 1.75252 1.78411 1.813 1.83917 1.86255 1.88309 1.90074 1.91548 1.9273 1.93626 1.94237 1.94569 1.9462 1.94391 1.9388 1.93082 1.91994 1.90615 1.8894 1.86943 1.84737 1.82358 1.79849 1.77264 1.7466 1.72104 1.69661 1.67396 1.65364 1.63602 1.62108 1.60823 1.59586 1.58123 1.56039 1.52729 1.4744 1.39557 1.2917 1.17573 1.06582 0.972459 0.896303 0.834185 0.783395 0.74231 0.709764 0.684567 0.665358 0.650664 0.639052 0.629248 0.620269 0.611452 0.602411 0.59348 0.585003 0.577187 0.570107 0.563792 0.558228 0.55335 0.549073 0.545315 0.542003 0.539068 0.536448 0.53409 0.531946 0.529975 0.528145 0.526422 0.524784 0.523206 0.52167 0.52015 0.518621 0.517039 0.515351 0.513565 0.511698 0.509762 0.50777 0.505735 0.503668 0.501577 0.499471 0.497358 0.495246 0.49314 0.491046 0.48897 0.486917 0.484892 0.482898 0.480941 0.479023 0.477147 0.475313 0.473523 0.471775 0.470066 0.468388 0.466735 0.465093 0.46345 0.461787 0.460085 0.458324 0.45648 0.454533 0.452464 0.450255 0.447894 0.445377 0.442701 0.439874 0.436908 0.43382 0.430633 0.42737 0.424057 0.420718 0.417374 0.414044 0.410739 0.407468 0.404234 0.401032 0.397857 0.394697 0.39154 0.388371 0.385177 0.381943 0.378659 0.375312 0.371896 0.368404 0.364835 0.361187 0.357463 0.353668 0.34981 0.345901 0.341952 0.337991 0.0318173 0.14102 0.21931 0.281804 0.339229 0.396208 0.455436 0.516691 0.580723 0.644876 0.707101 0.76748 0.825414 0.880327 0.932177 0.981835 1.02993 1.07661 1.12183 1.16557 1.20811 1.24975 1.29079 1.33146 1.37189 1.41207 1.45213 1.49199 1.53137 1.56989 1.60711 1.64258 1.67596 1.70702 1.73562 1.76164 1.78501 1.80568 1.82356 1.83859 1.85073 1.85997 1.86632 1.86982 1.87052 1.86847 1.86373 1.85634 1.84638 1.83394 1.8191 1.80197 1.78265 1.76227 1.74126 1.72009 1.69932 1.67953 1.66129 1.64512 1.63136 1.6201 1.61091 1.60272 1.5934 1.57964 1.55725 1.52074 1.46377 1.38197 1.27728 1.16135 1.05044 0.954907 0.876324 0.812226 0.760114 0.71833 0.6856 0.660608 0.641894 0.627899 0.617095 0.608099 0.59987 0.591627 0.583116 0.574711 0.56677 0.559505 0.552985 0.547198 0.542122 0.537707 0.533868 0.530519 0.527584 0.524994 0.522688 0.520612 0.51872 0.516973 0.51534 0.513793 0.51231 0.510874 0.509471 0.508089 0.506716 0.505336 0.50393 0.502448 0.500831 0.499099 0.497273 0.495368 0.493402 0.491385 0.48933 0.487246 0.485143 0.483029 0.480911 0.478796 0.476692 0.474604 0.472538 0.470501 0.468499 0.466536 0.464619 0.46275 0.460933 0.459171 0.457462 0.455805 0.454194 0.452621 0.451073 0.449537 0.447992 0.446418 0.444792 0.443089 0.441285 0.439361 0.4373 0.435091 0.43273 0.43022 0.427572 0.424802 0.421931 0.418986 0.415992 0.412975 0.409958 0.40696 0.403994 0.401068 0.398184 0.395337 0.392521 0.389721 0.386923 0.38411 0.381266 0.378375 0.375421 0.372394 0.369283 0.36608 0.362784 0.359391 0.355905 0.352329 0.348671 0.344946 0.341161 0.337349 0.0373694 0.138675 0.232082 0.326444 0.420218 0.513263 0.607031 0.692996 0.772629 0.845758 0.912396 0.972815 1.02683 1.0742 1.11524 1.1511 1.18301 1.21212 1.23936 1.26545 1.2911 1.31689 1.34324 1.37045 1.39863 1.4277 1.45761 1.48825 1.51932 1.55043 1.58109 1.61084 1.63925 1.66598 1.69076 1.71339 1.73371 1.75161 1.76697 1.7797 1.78975 1.79707 1.80167 1.80359 1.80286 1.79959 1.79386 1.7858 1.77555 1.7633 1.74925 1.73351 1.71706 1.7005 1.68432 1.66902 1.65511 1.64304 1.63311 1.6254 1.6196 1.61481 1.60937 1.60074 1.5852 1.5585 1.51598 1.45273 1.36618 1.25945 1.14334 1.03221 0.935645 0.855687 0.790405 0.737538 0.695455 0.662813 0.638199 0.620042 0.606715 0.596633 0.58835 0.580789 0.573073 0.565066 0.557181 0.549786 0.543086 0.537141 0.531919 0.527362 0.523423 0.520029 0.517092 0.514535 0.512289 0.510293 0.508495 0.506851 0.505324 0.503882 0.502502 0.501164 0.499851 0.498552 0.497258 0.495961 0.494655 0.493334 0.491982 0.490575 0.489021 0.487341 0.485554 0.483675 0.48172 0.479702 0.477633 0.475525 0.473387 0.471228 0.469057 0.466882 0.46471 0.46255 0.460409 0.458295 0.456216 0.454179 0.452192 0.450262 0.448394 0.446595 0.444868 0.443213 0.44163 0.440112 0.438651 0.437233 0.43584 0.434451 0.43304 0.43158 0.430043 0.428403 0.426638 0.424733 0.422678 0.420475 0.418129 0.415659 0.413085 0.410433 0.407732 0.40501 0.40229 0.399594 0.396937 0.394326 0.391764 0.389246 0.386761 0.384296 0.381834 0.379356 0.376843 0.374275 0.371638 0.368915 0.366096 0.363172 0.360139 0.356993 0.353736 0.350374 0.346911 0.343364 0.33974 0.336074 0.0346442 0.175847 0.373105 0.623831 0.84255 1.02305 1.16861 1.28437 1.37778 1.45472 1.51826 1.56908 1.60651 1.6298 1.63958 1.63786 1.62742 1.61121 1.59196 1.57204 1.55351 1.53792 1.52638 1.51951 1.5175 1.52019 1.52721 1.53805 1.55209 1.5686 1.58683 1.60605 1.62557 1.64482 1.6633 1.68062 1.69645 1.71054 1.72269 1.73273 1.74054 1.74605 1.74924 1.7501 1.74871 1.74514 1.73954 1.73207 1.72295 1.71246 1.70095 1.68887 1.67722 1.66642 1.65688 1.64897 1.64291 1.63874 1.63614 1.63432 1.6319 1.62667 1.61573 1.59535 1.56148 1.51052 1.43923 1.34679 1.23737 1.12111 1.01051 0.914068 0.833834 0.768263 0.715308 0.673403 0.64117 0.617129 0.599636 0.586982 0.577555 0.56989 0.562915 0.555684 0.548168 0.540808 0.533972 0.527853 0.52249 0.517847 0.513838 0.510395 0.507451 0.504927 0.502744 0.500836 0.499143 0.497617 0.496215 0.494902 0.493651 0.492438 0.491245 0.490058 0.488866 0.487661 0.486437 0.485191 0.483918 0.482615 0.481268 0.479841 0.478268 0.476569 0.474756 0.472846 0.47085 0.468783 0.466656 0.464481 0.462268 0.460026 0.457764 0.455493 0.45322 0.450954 0.448705 0.446482 0.444295 0.442154 0.440068 0.438047 0.436101 0.434238 0.432464 0.430785 0.429203 0.427715 0.426316 0.424994 0.423732 0.422507 0.421292 0.420056 0.418767 0.417393 0.415906 0.414284 0.412514 0.410592 0.408523 0.406323 0.404014 0.401623 0.39918 0.396716 0.394257 0.391827 0.389441 0.387109 0.384833 0.382608 0.380423 0.378264 0.37611 0.373941 0.371735 0.369472 0.367132 0.364699 0.362159 0.359503 0.356723 0.353816 0.350783 0.347629 0.344357 0.340986 0.337521 0.334001 0.104094 0.606801 1.17318 1.73433 2.05958 2.23779 2.3302 2.38139 2.4183 2.45198 2.48246 2.50444 2.51221 2.50223 2.47405 2.42963 2.37215 2.30499 2.23127 2.15398 2.07604 2.00036 1.92956 1.8658 1.81058 1.76466 1.72817 1.70072 1.68151 1.66948 1.66345 1.6622 1.66458 1.66953 1.67613 1.68362 1.69133 1.69875 1.70546 1.71112 1.71548 1.71836 1.71966 1.71934 1.71742 1.71398 1.70917 1.7032 1.69632 1.68893 1.6816 1.67511 1.66983 1.66599 1.66371 1.66291 1.6632 1.66385 1.66354 1.66044 1.65203 1.63525 1.60667 1.56295 1.50156 1.42109 1.32231 1.21022 1.09421 0.985031 0.889852 0.810486 0.745577 0.693266 0.652041 0.620554 0.597284 0.580555 0.568611 0.559782 0.552636 0.546166 0.539372 0.532334 0.525508 0.51925 0.513726 0.508957 0.504889 0.501432 0.498496 0.496005 0.493889 0.492072 0.490491 0.48909 0.487825 0.486656 0.485552 0.484487 0.48344 0.482395 0.481339 0.480261 0.479156 0.478017 0.476842 0.475628 0.474372 0.47307 0.471706 0.470212 0.468576 0.466813 0.464934 0.462953 0.46088 0.458729 0.456512 0.454239 0.45192 0.449566 0.447186 0.44479 0.442388 0.43999 0.437606 0.435247 0.432925 0.430652 0.428439 0.426299 0.424244 0.422285 0.420433 0.418697 0.417081 0.415587 0.414213 0.412949 0.41178 0.410682 0.409627 0.40858 0.407504 0.406362 0.405119 0.403746 0.402227 0.400551 0.398722 0.396754 0.39467 0.392498 0.390271 0.388022 0.38578 0.383571 0.381413 0.379316 0.377284 0.375312 0.373388 0.371497 0.369618 0.367728 0.365802 0.363819 0.361756 0.359594 0.357319 0.354918 0.352381 0.349706 0.34689 0.34394 0.340856 0.337658 0.334351 0.330978 0.8859 0.946488 1.05409 1.22035 1.44165 1.70712 1.99773 2.28818 2.55109 2.7645 2.91795 3.01294 3.059 3.06822 3.05126 3.01546 2.96492 2.90151 2.82628 2.74045 2.646 2.54571 2.44288 2.34094 2.2431 2.15205 2.06982 1.99772 1.93627 1.88534 1.8443 1.81214 1.78765 1.76955 1.7566 1.74763 1.74161 1.73767 1.73506 1.73318 1.73156 1.72984 1.72777 1.7252 1.72208 1.71844 1.71439 1.71012 1.70591 1.7023 1.70019 1.69946 1.70004 1.7017 1.70396 1.70601 1.70663 1.70417 1.69646 1.68095 1.65476 1.61508 1.55952 1.48678 1.39705 1.29237 1.17828 1.06332 0.956479 0.863619 0.786135 0.722771 0.671766 0.631689 0.60122 0.578885 0.562971 0.551741 0.543482 0.536802 0.530691 0.524149 0.517543 0.511258 0.505602 0.500693 0.496526 0.493028 0.490109 0.487669 0.485626 0.483904 0.482438 0.481167 0.480042 0.479023 0.478076 0.477173 0.47629 0.475409 0.474513 0.473593 0.47264 0.471646 0.470609 0.469523 0.468388 0.467201 0.46596 0.464659 0.463268 0.461713 0.460009 0.458172 0.456213 0.454145 0.45198 0.44973 0.447407 0.445021 0.442582 0.4401 0.437586 0.43505 0.432503 0.429954 0.427417 0.424903 0.422425 0.419996 0.417632 0.415345 0.413151 0.411064 0.409098 0.407263 0.40557 0.404024 0.402625 0.401367 0.400236 0.39921 0.398259 0.397346 0.39643 0.395467 0.394416 0.393244 0.391925 0.390447 0.38881 0.387026 0.385117 0.383115 0.381053 0.378967 0.376889 0.374847 0.372863 0.370948 0.369107 0.367337 0.365627 0.363958 0.362311 0.360659 0.358978 0.357242 0.355428 0.353514 0.351482 0.349319 0.347012 0.344558 0.341951 0.339197 0.336297 0.33327 0.330118 0.326891 0.535814 0.557645 0.587916 0.63265 0.696652 0.786023 0.906741 1.06323 1.25663 1.48328 1.73427 1.99627 2.2533 2.48912 2.68995 2.84672 2.95605 3.01969 3.04286 3.03225 2.99452 2.93556 2.86039 2.77337 2.67854 2.57972 2.48049 2.3841 2.29321 2.20982 2.13518 2.06984 2.01377 1.96648 1.92717 1.89488 1.86856 1.84721 1.8299 1.81578 1.80416 1.79445 1.78622 1.77915 1.77304 1.76779 1.76341 1.75996 1.75768 1.75754 1.75889 1.76109 1.76347 1.76514 1.7649 1.76124 1.7523 1.73594 1.70981 1.67158 1.61924 1.55145 1.46809 1.37042 1.2616 1.1471 1.03442 0.930813 0.840863 0.765616 0.703902 0.654127 0.614959 0.585184 0.563409 0.547997 0.537186 0.529325 0.523013 0.516958 0.510723 0.504507 0.498721 0.493617 0.489266 0.485633 0.482637 0.480181 0.478166 0.476503 0.475113 0.473936 0.472924 0.472026 0.471208 0.470442 0.469702 0.468969 0.468225 0.467457 0.466653 0.465808 0.464915 0.46397 0.46297 0.461913 0.460799 0.459624 0.458386 0.457079 0.455664 0.454062 0.452297 0.450387 0.448348 0.446191 0.44393 0.441577 0.439142 0.436637 0.43407 0.431454 0.428798 0.426112 0.423408 0.420698 0.417994 0.41531 0.41266 0.410058 0.407521 0.405063 0.402703 0.400455 0.398338 0.396364 0.394547 0.392896 0.391416 0.390103 0.388948 0.387929 0.387018 0.386177 0.385359 0.384518 0.383607 0.382584 0.38142 0.380096 0.378608 0.376965 0.375191 0.373315 0.371373 0.369403 0.367441 0.365517 0.363654 0.36187 0.360169 0.358549 0.357001 0.355507 0.354046 0.352593 0.351119 0.349599 0.348005 0.346315 0.344508 0.342567 0.340479 0.338237 0.335834 0.333275 0.330557 0.327701 0.324707 0.321628 0.317617 0.321132 0.326423 0.334307 0.3459 0.363011 0.388216 0.424848 0.477028 0.549433 0.646785 0.773095 0.930694 1.11922 1.33481 1.56989 1.8136 2.05301 2.2749 2.46764 2.62281 2.73611 2.80741 2.83989 2.8389 2.81082 2.76211 2.69883 2.62629 2.54902 2.47071 2.39425 2.32178 2.25474 2.19398 2.13985 2.09229 2.051 2.01547 1.98514 1.95939 1.93766 1.91943 1.90429 1.89187 1.88193 1.87422 1.86851 1.86513 1.86319 1.86088 1.85722 1.85098 1.84072 1.82485 1.80157 1.76907 1.72555 1.66954 1.60009 1.51715 1.42172 1.31619 1.20439 1.09167 0.984135 0.88705 0.803339 0.73333 0.675866 0.629509 0.593077 0.565472 0.545392 0.531292 0.521462 0.514323 0.508571 0.502689 0.496792 0.491123 0.485988 0.481573 0.477895 0.474887 0.472459 0.470512 0.468952 0.46769 0.466652 0.465777 0.465019 0.464342 0.463719 0.463123 0.462537 0.461944 0.461328 0.460678 0.459984 0.45924 0.458442 0.457585 0.456668 0.455689 0.454646 0.453541 0.452368 0.451128 0.449811 0.448377 0.446739 0.444927 0.442958 0.440849 0.438614 0.436266 0.433816 0.431277 0.428657 0.425968 0.42322 0.420423 0.417589 0.414729 0.411856 0.408983 0.406124 0.403295 0.400511 0.397788 0.395145 0.392598 0.390167 0.387869 0.385721 0.38374 0.381938 0.380322 0.378896 0.377652 0.376574 0.375633 0.374794 0.374009 0.373227 0.372397 0.371473 0.370416 0.369203 0.367825 0.366289 0.364613 0.362828 0.360971 0.35908 0.357194 0.355346 0.353562 0.351862 0.350254 0.348738 0.347306 0.345943 0.344626 0.343331 0.342029 0.340692 0.339291 0.337803 0.336202 0.334471 0.332592 0.330558 0.328357 0.325994 0.323463 0.320782 0.317953 0.315031 0.307047 0.305681 0.304538 0.303746 0.303493 0.30407 0.30591 0.309752 0.316685 0.328268 0.346644 0.374609 0.415535 0.473174 0.551263 0.652968 0.780234 0.933156 1.10949 1.30441 1.5107 1.71934 1.92047 2.10463 2.26396 2.39306 2.48948 2.55354 2.58789 2.5967 2.58489 2.55751 2.51924 2.47413 2.42552 2.37599 2.32745 2.28124 2.23821 2.19884 2.16335 2.13174 2.1039 2.07963 2.05867 2.0407 2.02509 2.01102 1.99678 1.98012 1.96002 1.93532 1.90474 1.86696 1.82069 1.76473 1.69826 1.62085 1.53279 1.43522 1.33015 1.22065 1.11068 1.00478 0.907232 0.821108 0.747652 0.686458 0.636325 0.596045 0.564592 0.540972 0.524006 0.512228 0.504091 0.498148 0.492803 0.487478 0.4822 0.477303 0.473028 0.469471 0.466588 0.464294 0.462495 0.461099 0.460016 0.459166 0.458483 0.457914 0.45742 0.45697 0.456539 0.45611 0.455672 0.455212 0.454718 0.45418 0.45359 0.452943 0.452235 0.451462 0.450624 0.449718 0.448745 0.447703 0.446592 0.445411 0.444158 0.442821 0.441354 0.439682 0.437827 0.435809 0.433643 0.431343 0.428922 0.426391 0.423761 0.421042 0.418244 0.415377 0.412453 0.409482 0.406476 0.403449 0.400415 0.397387 0.394383 0.391419 0.388511 0.385678 0.382937 0.38031 0.377814 0.375468 0.373291 0.371299 0.369503 0.367909 0.366516 0.36531 0.364269 0.363358 0.362532 0.361738 0.360922 0.360033 0.359028 0.357877 0.356564 0.355092 0.353478 0.351748 0.34994 0.348092 0.346244 0.344431 0.342684 0.341023 0.33946 0.337999 0.336633 0.33535 0.334128 0.332944 0.33177 0.330575 0.329332 0.328013 0.326592 0.325049 0.323363 0.321524 0.319518 0.317346 0.315001 0.312499 0.309841 0.307081 0.324308 0.322793 0.321251 0.319682 0.318102 0.316557 0.315125 0.313923 0.313138 0.313059 0.314147 0.317069 0.322807 0.332723 0.34862 0.372748 0.407687 0.456143 0.520632 0.603103 0.704547 0.824676 0.961727 1.11243 1.2722 1.43543 1.59608 1.74821 1.88661 2.00728 2.10769 2.18691 2.24542 2.28484 2.30753 2.31627 2.3139 2.30312 2.28629 2.26541 2.24206 2.21745 2.19242 2.16752 2.14301 2.11866 2.0926 2.06171 2.02527 1.98293 1.93418 1.87847 1.81529 1.74422 1.66515 1.5783 1.48441 1.38479 1.28132 1.17653 1.07332 0.974867 0.884111 0.803278 0.733447 0.674572 0.625828 0.586143 0.554561 0.530254 0.512343 0.499751 0.491216 0.485371 0.480672 0.476017 0.471451 0.46711 0.463252 0.460045 0.457489 0.455496 0.453972 0.452832 0.451996 0.451388 0.45094 0.450599 0.450323 0.450079 0.449845 0.449604 0.449339 0.449042 0.448709 0.448332 0.447903 0.447416 0.446865 0.446247 0.44556 0.444801 0.443969 0.443064 0.442085 0.441032 0.439905 0.438703 0.437425 0.436055 0.434536 0.432816 0.430915 0.42885 0.426634 0.42428 0.4218 0.419203 0.4165 0.4137 0.410812 0.407847 0.404814 0.401725 0.398593 0.39543 0.392252 0.389072 0.385908 0.382776 0.379693 0.376678 0.373748 0.370925 0.368227 0.365674 0.363286 0.36108 0.359072 0.357271 0.355679 0.35429 0.353086 0.352037 0.3511 0.350225 0.349356 0.34844 0.347428 0.346286 0.344993 0.343546 0.341955 0.340246 0.338453 0.336614 0.33477 0.332956 0.331206 0.329541 0.327978 0.326523 0.325173 0.323918 0.322739 0.321613 0.320515 0.319415 0.318283 0.317093 0.315815 0.314428 0.312909 0.311245 0.309418 0.307427 0.305263 0.302937 0.300451 0.297857 0.336868 0.335716 0.334533 0.333316 0.332065 0.330787 0.329486 0.32817 0.326862 0.325611 0.324488 0.323621 0.323205 0.323538 0.325067 0.328396 0.334369 0.344089 0.358903 0.380395 0.410225 0.449974 0.500949 0.56397 0.639199 0.726048 0.823147 0.928419 1.03921 1.15248 1.26507 1.37389 1.47618 1.56966 1.65265 1.72412 1.78367 1.83141 1.8679 1.89395 1.91055 1.91869 1.91934 1.91329 1.9011 1.8818 1.85036 1.80958 1.76006 1.70238 1.63712 1.56494 1.4866 1.40307 1.31555 1.22554 1.13474 1.04513 0.958752 0.877591 0.803352 0.737226 0.679788 0.630964 0.590188 0.556723 0.529816 0.508818 0.4931 0.481937 0.474442 0.469549 0.465804 0.462155 0.458612 0.45515 0.452025 0.44943 0.447428 0.44594 0.444858 0.444098 0.443594 0.443285 0.443113 0.44303 0.442995 0.442978 0.442957 0.442915 0.442842 0.442728 0.442567 0.44235 0.442081 0.441757 0.44137 0.440915 0.44039 0.439791 0.439115 0.438361 0.437528 0.436615 0.43562 0.434547 0.433393 0.43216 0.430844 0.429431 0.427836 0.426052 0.424095 0.421977 0.419712 0.41731 0.414779 0.41213 0.40937 0.406507 0.40355 0.400507 0.397389 0.394207 0.390972 0.387698 0.384399 0.381091 0.37779 0.374512 0.371274 0.368096 0.364994 0.361989 0.359099 0.356344 0.353745 0.35132 0.349086 0.347056 0.345237 0.343627 0.342215 0.340975 0.339872 0.338857 0.337878 0.33688 0.335811 0.334632 0.333317 0.331858 0.33026 0.328543 0.326739 0.324883 0.323014 0.321171 0.319384 0.31768 0.316077 0.314585 0.313203 0.311925 0.310735 0.309614 0.308538 0.307478 0.306407 0.305296 0.304118 0.302847 0.30146 0.299939 0.298269 0.29644 0.294444 0.292285 0.289968 0.28754 0.344473 0.343613 0.34274 0.34185 0.340944 0.340023 0.339088 0.338143 0.337192 0.336241 0.335296 0.334368 0.333488 0.33271 0.332115 0.331836 0.332064 0.333071 0.335238 0.339027 0.34505 0.35403 0.366797 0.384202 0.407044 0.435984 0.471441 0.513525 0.56198 0.61619 0.675197 0.737775 0.802494 0.867817 0.932184 0.994092 1.05217 1.1052 1.15219 1.19235 1.22507 1.24994 1.26667 1.27507 1.27483 1.2629 1.24335 1.2163 1.18211 1.1414 1.095 1.04396 0.989479 0.9329 0.875624 0.81909 0.764649 0.713512 0.666643 0.624691 0.587933 0.556345 0.529726 0.507714 0.489942 0.476062 0.465676 0.458411 0.453672 0.450823 0.448351 0.446071 0.443845 0.441578 0.439479 0.437751 0.436502 0.435695 0.435211 0.434952 0.434862 0.434905 0.43504 0.435232 0.435447 0.435661 0.435855 0.436014 0.436131 0.436198 0.436211 0.436167 0.436061 0.435891 0.43566 0.435368 0.435007 0.434573 0.434063 0.433472 0.432799 0.432042 0.431198 0.430267 0.429248 0.428144 0.426953 0.425678 0.42431 0.422824 0.421142 0.419281 0.417255 0.415077 0.412757 0.410305 0.407728 0.405034 0.402228 0.399318 0.39631 0.393211 0.390032 0.386781 0.38347 0.380112 0.376722 0.373313 0.369903 0.366508 0.363145 0.35983 0.356582 0.353418 0.350359 0.347422 0.344627 0.341993 0.339539 0.337279 0.335224 0.333377 0.331733 0.330273 0.328967 0.327774 0.326644 0.325523 0.324359 0.32311 0.321745 0.320249 0.318622 0.31688 0.315048 0.31316 0.311252 0.309359 0.307516 0.305748 0.304075 0.302511 0.301058 0.299713 0.298465 0.297298 0.29619 0.295118 0.294053 0.29297 0.29184 0.290639 0.289342 0.287929 0.286384 0.284692 0.282846 0.280841 0.278687 0.276421 0.348339 0.347649 0.346957 0.346263 0.345565 0.344865 0.344167 0.343472 0.342783 0.342104 0.341436 0.340783 0.34015 0.339546 0.338981 0.33847 0.338057 0.337819 0.337863 0.338344 0.339459 0.341461 0.344623 0.349284 0.355824 0.364655 0.376162 0.390671 0.408396 0.429408 0.453605 0.480696 0.510207 0.541498 0.573794 0.60623 0.637891 0.667852 0.695216 0.719142 0.738862 0.753701 0.763079 0.766479 0.762496 0.753484 0.741255 0.725928 0.707767 0.687178 0.664689 0.640915 0.616526 0.592198 0.568569 0.546203 0.525549 0.506921 0.490497 0.476316 0.464311 0.454434 0.446599 0.440664 0.436489 0.433796 0.432315 0.431089 0.430057 0.429254 0.428384 0.427429 0.426506 0.425767 0.425351 0.425274 0.425439 0.42573 0.426086 0.426491 0.426932 0.427391 0.427845 0.428277 0.428672 0.429021 0.429317 0.429555 0.429735 0.429852 0.429906 0.429897 0.429821 0.429681 0.429478 0.429207 0.428863 0.428443 0.427941 0.427354 0.426678 0.42591 0.42505 0.424096 0.423047 0.421906 0.420672 0.419345 0.417917 0.416327 0.414545 0.412593 0.410485 0.408234 0.405851 0.403343 0.400717 0.397978 0.39513 0.392179 0.38913 0.385989 0.382763 0.379461 0.376094 0.372674 0.369214 0.36573 0.362235 0.358747 0.355281 0.351855 0.348484 0.345186 0.341979 0.33888 0.335908 0.333081 0.330417 0.327933 0.325642 0.323551 0.321659 0.319956 0.31842 0.317015 0.315698 0.314418 0.313125 0.311773 0.310329 0.308772 0.307096 0.30531 0.303435 0.3015 0.299535 0.297576 0.295654 0.293795 0.292021 0.290347 0.288778 0.287316 0.285953 0.284678 0.283473 0.282318 0.28119 0.280063 0.278915 0.277718 0.276453 0.275094 0.273627 0.272033 0.270306 0.268435 0.266431 0.264319 0.350722 0.350143 0.349571 0.349007 0.348451 0.347904 0.34737 0.346851 0.34635 0.345872 0.345418 0.34499 0.34459 0.344214 0.343858 0.343515 0.343192 0.342907 0.342687 0.342576 0.342637 0.342954 0.343636 0.344805 0.346544 0.348993 0.352306 0.356633 0.362096 0.368789 0.376776 0.386068 0.396573 0.408116 0.420436 0.433199 0.446004 0.458406 0.469936 0.480123 0.488516 0.494708 0.498353 0.499138 0.497091 0.493991 0.48992 0.484992 0.479349 0.473158 0.466607 0.459892 0.453205 0.446729 0.440626 0.435028 0.430049 0.425763 0.42222 0.419436 0.417368 0.416045 0.415426 0.415329 0.415209 0.415239 0.415465 0.415684 0.41583 0.415895 0.415888 0.415902 0.416069 0.416465 0.417055 0.417731 0.418415 0.419083 0.419738 0.420383 0.421006 0.421594 0.422137 0.422627 0.423059 0.423431 0.42374 0.423986 0.424168 0.424285 0.424337 0.424323 0.424243 0.424096 0.423884 0.423604 0.423249 0.422813 0.422291 0.42168 0.420975 0.420173 0.419272 0.418271 0.417169 0.415968 0.414668 0.413264 0.411737 0.410017 0.408115 0.406053 0.403846 0.401506 0.399043 0.396465 0.393778 0.390985 0.388091 0.385097 0.382008 0.378829 0.375564 0.372222 0.368811 0.365343 0.36183 0.358287 0.354728 0.351167 0.347621 0.344105 0.340635 0.337226 0.333895 0.330658 0.327531 0.324533 0.321681 0.31899 0.316477 0.31415 0.312017 0.310073 0.308303 0.306682 0.30517 0.303724 0.302295 0.300837 0.299312 0.297695 0.295974 0.294151 0.292241 0.290265 0.288253 0.286234 0.284237 0.28229 0.280411 0.278619 0.276921 0.275322 0.273817 0.272401 0.27106 0.269778 0.268536 0.267314 0.26609 0.264842 0.26355 0.262192 0.260752 0.259212 0.257565 0.255796 0.253916 0.251944 0.352385 0.351892 0.35141 0.350942 0.35049 0.350055 0.34964 0.34925 0.348886 0.348554 0.348256 0.347995 0.34777 0.347566 0.347377 0.347206 0.347055 0.346925 0.346821 0.346749 0.34672 0.346754 0.346879 0.347136 0.347572 0.348238 0.349194 0.350508 0.352259 0.354502 0.357178 0.360247 0.363715 0.367549 0.371688 0.376032 0.380454 0.384801 0.388909 0.392606 0.395733 0.398149 0.399746 0.400396 0.400785 0.400941 0.400897 0.400688 0.400351 0.399927 0.399456 0.398979 0.398537 0.398175 0.397937 0.397865 0.398011 0.398399 0.398963 0.399406 0.399883 0.400474 0.401208 0.40207 0.402946 0.403812 0.404647 0.405399 0.406061 0.406681 0.40734 0.408106 0.408988 0.409929 0.410857 0.411732 0.412556 0.413342 0.414092 0.414802 0.415462 0.416068 0.416615 0.417101 0.417526 0.417888 0.418187 0.418422 0.418593 0.418699 0.418741 0.418716 0.418625 0.418466 0.418238 0.417937 0.417559 0.417096 0.416544 0.415897 0.415151 0.414303 0.41335 0.41229 0.411122 0.409847 0.408465 0.406968 0.405295 0.40343 0.401394 0.399209 0.396889 0.394449 0.391898 0.389243 0.38649 0.383642 0.380701 0.377669 0.374548 0.371341 0.368052 0.364686 0.361252 0.357759 0.354219 0.350645 0.34705 0.343448 0.339854 0.336283 0.332749 0.329267 0.325851 0.322516 0.319277 0.31615 0.313151 0.310296 0.307599 0.305076 0.302736 0.300582 0.298609 0.296801 0.295127 0.293549 0.29202 0.290495 0.288933 0.287303 0.285585 0.283777 0.281883 0.279922 0.277915 0.27589 0.273871 0.271885 0.26995 0.268085 0.266299 0.264598 0.262983 0.261451 0.259992 0.258596 0.257248 0.255932 0.254629 0.253323 0.251995 0.250627 0.249204 0.24771 0.246137 0.244472 0.242721 0.240904 0.353444 0.353008 0.352589 0.352187 0.351805 0.351446 0.351112 0.350806 0.350534 0.350299 0.350104 0.349952 0.349842 0.349756 0.349694 0.349658 0.349646 0.349659 0.349696 0.349757 0.349844 0.34996 0.350107 0.350295 0.350532 0.350831 0.35121 0.35169 0.352299 0.353066 0.354007 0.355127 0.356429 0.357901 0.359527 0.361286 0.363145 0.365063 0.366989 0.368869 0.370647 0.372269 0.373666 0.374921 0.376085 0.377156 0.378135 0.379031 0.379858 0.380631 0.381366 0.382085 0.382807 0.383554 0.384344 0.385199 0.386133 0.387157 0.388264 0.389403 0.390577 0.391772 0.392974 0.394163 0.3953 0.396368 0.397368 0.398323 0.399276 0.40027 0.401314 0.402383 0.403431 0.404423 0.405351 0.406226 0.407057 0.407846 0.408587 0.409277 0.409913 0.410491 0.411011 0.411471 0.41187 0.412209 0.412486 0.412701 0.412854 0.412943 0.412967 0.412925 0.412816 0.412637 0.412384 0.412055 0.411645 0.411145 0.410552 0.409858 0.409059 0.40815 0.407128 0.405992 0.40474 0.403372 0.401883 0.400239 0.398393 0.396365 0.394179 0.391854 0.389408 0.386855 0.384204 0.381464 0.378638 0.375731 0.372744 0.369676 0.366529 0.363304 0.360003 0.356631 0.353193 0.349698 0.346157 0.34258 0.338981 0.335372 0.331767 0.328179 0.324623 0.321111 0.317656 0.314272 0.310972 0.30777 0.304679 0.301712 0.298887 0.296217 0.293718 0.291401 0.289271 0.287321 0.285533 0.283874 0.282303 0.280773 0.279239 0.277666 0.276026 0.274308 0.272509 0.270642 0.26872 0.266769 0.264807 0.262861 0.260946 0.259082 0.257278 0.255544 0.25388 0.252289 0.250763 0.249299 0.247882 0.246506 0.245152 0.243811 0.242466 0.241106 0.239714 0.238285 0.236803 0.235269 0.233674 0.232049 0.354039 0.353636 0.353252 0.352887 0.352544 0.352226 0.351935 0.351676 0.351451 0.351265 0.351122 0.351025 0.350974 0.350954 0.350962 0.350997 0.35106 0.351151 0.351269 0.351414 0.351586 0.351785 0.35201 0.352263 0.352544 0.352854 0.353197 0.353576 0.353997 0.354468 0.354994 0.355581 0.356232 0.356949 0.357732 0.358578 0.359481 0.360434 0.361425 0.362442 0.363469 0.364488 0.365506 0.366532 0.367562 0.368595 0.369627 0.37066 0.371694 0.372733 0.373781 0.374842 0.37592 0.377021 0.378146 0.379297 0.380473 0.381669 0.382878 0.384087 0.38528 0.386445 0.387579 0.388677 0.389744 0.390793 0.391845 0.39291 0.393991 0.395071 0.396128 0.397141 0.3981 0.399011 0.39988 0.40071 0.401499 0.402245 0.402943 0.40359 0.404185 0.404724 0.405207 0.405632 0.406 0.406308 0.406556 0.406743 0.406868 0.406929 0.406925 0.406853 0.406712 0.406498 0.406207 0.405835 0.405376 0.404824 0.404171 0.403411 0.402538 0.401546 0.400434 0.399196 0.397833 0.396339 0.394692 0.392841 0.390795 0.38858 0.38622 0.383735 0.381145 0.378463 0.375699 0.372863 0.369958 0.366987 0.363951 0.360851 0.357684 0.35445 0.351152 0.34779 0.344371 0.3409 0.337386 0.33384 0.330273 0.326697 0.323124 0.319567 0.316038 0.312551 0.309117 0.305748 0.302456 0.29925 0.29614 0.293138 0.290257 0.287511 0.28492 0.282501 0.280273 0.278241 0.2764 0.274727 0.273186 0.27173 0.270311 0.268886 0.267419 0.265891 0.264289 0.262619 0.260889 0.259118 0.25732 0.25552 0.253731 0.251971 0.250249 0.248577 0.246956 0.245393 0.243881 0.242424 0.241008 0.239634 0.238285 0.236963 0.235645 0.234339 0.233019 0.231699 0.23035 0.228999 0.227611 0.226245 0.354328 0.353939 0.353568 0.353216 0.352886 0.352579 0.3523 0.352052 0.351837 0.351659 0.351522 0.351431 0.351387 0.351386 0.351411 0.351464 0.351544 0.351653 0.35179 0.351955 0.352148 0.352368 0.352615 0.352889 0.35319 0.353517 0.353869 0.354248 0.354653 0.355085 0.355545 0.356035 0.356557 0.35711 0.357697 0.358317 0.358971 0.359657 0.360374 0.36112 0.361889 0.362679 0.363491 0.364325 0.365179 0.366052 0.366942 0.36785 0.368774 0.369714 0.370668 0.371636 0.372617 0.37361 0.374613 0.375623 0.37664 0.377659 0.378678 0.379692 0.380702 0.38171 0.382719 0.383732 0.384752 0.385778 0.386806 0.387826 0.388826 0.389797 0.390734 0.391638 0.392512 0.393357 0.39417 0.394949 0.395689 0.396386 0.397037 0.397639 0.398189 0.398687 0.39913 0.399516 0.399845 0.400115 0.400323 0.400469 0.40055 0.400566 0.400513 0.40039 0.400195 0.399922 0.399569 0.399129 0.398596 0.397963 0.397222 0.396366 0.395388 0.394281 0.393042 0.391667 0.390148 0.388471 0.386576 0.384475 0.382194 0.37976 0.377198 0.374529 0.371773 0.368943 0.366052 0.363108 0.360115 0.357076 0.353993 0.350862 0.347684 0.344457 0.341179 0.337852 0.334479 0.331065 0.327618 0.324145 0.320657 0.317166 0.313682 0.310219 0.306788 0.303402 0.300073 0.296811 0.293626 0.290524 0.28751 0.284588 0.281763 0.279048 0.276459 0.274024 0.271773 0.269729 0.267905 0.266292 0.264863 0.263572 0.262367 0.261198 0.260018 0.2588 0.257519 0.256176 0.254768 0.253311 0.251813 0.250294 0.248763 0.24724 0.245726 0.244241 0.24278 0.241359 0.239965 0.238615 0.237289 0.236006 0.234738 0.23351 0.232288 0.231104 0.229915 0.228771 0.227614 0.22652 0.225407 0.224387 0.354456 0.354068 0.353696 0.353341 0.353006 0.352693 0.352404 0.352142 0.351909 0.35171 0.351547 0.351424 0.351343 0.351306 0.35131 0.351346 0.351405 0.35149 0.351601 0.351738 0.351902 0.35209 0.352305 0.352544 0.352808 0.353097 0.353409 0.353744 0.354103 0.354484 0.354888 0.355315 0.355763 0.356234 0.356727 0.357242 0.35778 0.358339 0.358919 0.359516 0.360129 0.360761 0.361412 0.36208 0.362767 0.36347 0.364191 0.364928 0.365681 0.366449 0.367232 0.368029 0.368841 0.369666 0.370505 0.371357 0.372221 0.373096 0.373981 0.374877 0.375784 0.376701 0.377627 0.378559 0.379493 0.380423 0.381345 0.382255 0.383151 0.384032 0.384898 0.385744 0.38657 0.38737 0.388139 0.388873 0.389568 0.390219 0.390825 0.391381 0.391887 0.392338 0.392733 0.393069 0.393344 0.393555 0.393701 0.393779 0.393788 0.393727 0.393592 0.393383 0.393097 0.392728 0.392274 0.391726 0.391079 0.390323 0.389452 0.388456 0.387326 0.386057 0.384639 0.383067 0.381313 0.379329 0.377125 0.37473 0.372174 0.369485 0.366689 0.363809 0.360864 0.357869 0.354836 0.351774 0.348688 0.345582 0.342456 0.339307 0.336135 0.332936 0.329708 0.326452 0.323168 0.31986 0.316533 0.313196 0.309856 0.306526 0.303216 0.299939 0.29671 0.293542 0.290449 0.287442 0.284529 0.281711 0.278984 0.27634 0.273767 0.271263 0.268835 0.266512 0.264337 0.26236 0.26062 0.259136 0.257892 0.256854 0.255964 0.255165 0.254398 0.253625 0.252811 0.251945 0.251016 0.250034 0.248995 0.24792 0.246807 0.245675 0.244521 0.243365 0.242198 0.241044 0.239886 0.238753 0.237617 0.236519 0.235417 0.234365 0.233309 0.232319 0.231324 0.230424 0.229521 0.228757 0.227988 0.2274 0.354521 0.354129 0.353749 0.353384 0.353036 0.352706 0.352396 0.352109 0.351846 0.351611 0.351405 0.351232 0.351093 0.350992 0.350929 0.350904 0.350916 0.350956 0.351017 0.3511 0.351204 0.351331 0.351479 0.351649 0.35184 0.352052 0.352285 0.352537 0.352809 0.353099 0.353408 0.353735 0.354079 0.354441 0.35482 0.355216 0.355628 0.356056 0.356495 0.356948 0.357416 0.3579 0.358399 0.358914 0.359445 0.359992 0.360555 0.361134 0.361731 0.362344 0.362975 0.363624 0.364292 0.364979 0.365684 0.366409 0.367152 0.367914 0.368693 0.369488 0.370298 0.371121 0.371955 0.372798 0.373647 0.3745 0.375355 0.376209 0.377059 0.377899 0.378727 0.379537 0.380324 0.381082 0.381807 0.382495 0.383142 0.383743 0.384296 0.384796 0.38524 0.385625 0.385947 0.386202 0.386388 0.386502 0.386541 0.386506 0.386393 0.386202 0.385931 0.385579 0.385144 0.384621 0.384005 0.383291 0.382469 0.38153 0.380466 0.379266 0.377919 0.376413 0.37474 0.372843 0.370702 0.368333 0.365765 0.36303 0.36016 0.357183 0.354127 0.351014 0.347863 0.344691 0.341511 0.338332 0.33516 0.331998 0.328848 0.325709 0.322577 0.319449 0.316324 0.313198 0.310072 0.306948 0.30383 0.300725 0.297641 0.294589 0.291585 0.288643 0.285782 0.283024 0.280385 0.277884 0.275528 0.273315 0.271226 0.269229 0.267279 0.265333 0.263363 0.261378 0.259428 0.2576 0.255983 0.254649 0.253626 0.252895 0.252398 0.252069 0.251833 0.25164 0.25144 0.251212 0.250931 0.250597 0.250196 0.249739 0.249212 0.248634 0.247988 0.247302 0.246554 0.245782 0.244958 0.244132 0.243264 0.242419 0.241542 0.240718 0.23987 0.239115 0.238345 0.237723 0.237098 0.236697 0.236296 0.236181 0.35457 0.354171 0.353782 0.353405 0.353041 0.352692 0.35236 0.352045 0.35175 0.351475 0.351224 0.350998 0.350798 0.350626 0.350484 0.350374 0.350295 0.35025 0.350235 0.350251 0.350288 0.350342 0.350412 0.350499 0.350602 0.350721 0.350856 0.351006 0.351171 0.35135 0.351543 0.351749 0.351969 0.352201 0.352446 0.352703 0.35297 0.353246 0.353535 0.353837 0.354152 0.354481 0.354825 0.355184 0.355559 0.35595 0.35636 0.356788 0.357236 0.357705 0.358194 0.358707 0.359242 0.359802 0.360387 0.360996 0.36163 0.362289 0.362972 0.363677 0.364405 0.365152 0.365919 0.366702 0.367498 0.368303 0.369114 0.369926 0.370735 0.371533 0.372318 0.373081 0.373819 0.374525 0.375194 0.37582 0.376399 0.376927 0.377396 0.377805 0.378146 0.378416 0.378611 0.378727 0.37876 0.378707 0.378567 0.378339 0.378022 0.377617 0.377123 0.376541 0.375868 0.375102 0.374237 0.373269 0.372186 0.370978 0.36963 0.368133 0.366471 0.364603 0.362469 0.360089 0.35748 0.354672 0.3517 0.348596 0.345391 0.342115 0.338794 0.33545 0.332104 0.328772 0.325467 0.322199 0.318977 0.315804 0.312682 0.309611 0.30659 0.303616 0.300685 0.297794 0.294944 0.292134 0.289368 0.286652 0.283998 0.28142 0.278938 0.276576 0.274365 0.27234 0.270535 0.268979 0.26769 0.266662 0.26586 0.265214 0.264613 0.263928 0.26303 0.26184 0.26038 0.258781 0.257245 0.255981 0.255152 0.25474 0.25466 0.254821 0.255125 0.255551 0.256034 0.256539 0.257017 0.257457 0.25782 0.258107 0.258285 0.258367 0.258321 0.258178 0.257906 0.257555 0.257089 0.256578 0.255973 0.255366 0.254685 0.254054 0.253367 0.252793 0.252184 0.251772 0.251347 0.251233 0.251115 0.251396 0.354619 0.354213 0.353816 0.353428 0.35305 0.352683 0.352329 0.351989 0.351663 0.351353 0.35106 0.350785 0.350529 0.350294 0.35008 0.349888 0.34972 0.349575 0.349455 0.34936 0.349289 0.349241 0.349215 0.349211 0.349226 0.349253 0.349289 0.349336 0.349391 0.349455 0.349527 0.349608 0.349696 0.349792 0.349895 0.350004 0.35012 0.350245 0.350379 0.350525 0.350681 0.350851 0.351035 0.351234 0.35145 0.351684 0.351939 0.352215 0.352515 0.35284 0.353191 0.35357 0.353979 0.354418 0.354888 0.35539 0.355923 0.356489 0.357085 0.357711 0.358365 0.359046 0.359749 0.360473 0.361212 0.361964 0.362721 0.36348 0.364233 0.364974 0.365695 0.366391 0.367053 0.367674 0.368247 0.368766 0.369225 0.369616 0.369934 0.370174 0.370329 0.370395 0.370366 0.370238 0.370007 0.369672 0.36923 0.368682 0.368031 0.367279 0.36643 0.365485 0.364445 0.363307 0.362069 0.360721 0.359254 0.357654 0.355901 0.353936 0.351712 0.349248 0.346549 0.34364 0.34055 0.337312 0.33396 0.330524 0.327036 0.323522 0.320009 0.316517 0.313066 0.309671 0.306345 0.303099 0.299939 0.296873 0.293903 0.291031 0.288258 0.285584 0.283008 0.280529 0.278148 0.275867 0.27369 0.271629 0.269699 0.267924 0.266337 0.264982 0.263912 0.263189 0.262877 0.263035 0.263698 0.264858 0.266471 0.268427 0.270527 0.272481 0.273935 0.274531 0.274136 0.272914 0.271316 0.270045 0.269224 0.268895 0.269001 0.269449 0.270109 0.27086 0.271676 0.272661 0.273717 0.274793 0.275813 0.276749 0.277539 0.278182 0.278626 0.278905 0.278972 0.278894 0.278624 0.278258 0.277731 0.277173 0.276486 0.275841 0.275094 0.274477 0.273785 0.273337 0.272847 0.272756 0.27264 0.27304 0.354671 0.35426 0.353856 0.353458 0.353069 0.352688 0.352317 0.351956 0.351605 0.351266 0.35094 0.350626 0.350326 0.35004 0.349769 0.349513 0.349273 0.349048 0.34884 0.348648 0.348472 0.348311 0.348166 0.348036 0.34792 0.347817 0.347726 0.347646 0.347576 0.347515 0.347462 0.347417 0.347379 0.347347 0.347321 0.347298 0.347278 0.347263 0.347253 0.347249 0.347253 0.347267 0.347294 0.347336 0.347396 0.347476 0.347579 0.347706 0.347861 0.348044 0.348259 0.348507 0.348788 0.349106 0.34946 0.349852 0.35028 0.350745 0.351246 0.351781 0.352348 0.352944 0.353566 0.35421 0.354869 0.355539 0.356212 0.356881 0.357538 0.358173 0.358778 0.359342 0.359857 0.360313 0.360701 0.361013 0.361241 0.361377 0.361416 0.36135 0.361174 0.360881 0.360466 0.359924 0.359254 0.358454 0.357525 0.35647 0.355297 0.354012 0.352626 0.351144 0.349568 0.347898 0.346134 0.344263 0.342209 0.339957 0.337515 0.334884 0.33206 0.329059 0.325899 0.322609 0.319217 0.315755 0.312253 0.308741 0.305247 0.301794 0.298405 0.295097 0.291882 0.288772 0.285773 0.282889 0.280122 0.277474 0.274946 0.272543 0.27027 0.268139 0.266162 0.264351 0.262722 0.261289 0.26007 0.259089 0.258376 0.257973 0.257938 0.258345 0.259283 0.26085 0.263131 0.26621 0.270125 0.274801 0.280296 0.286547 0.293324 0.30014 0.306246 0.310592 0.31264 0.312463 0.310858 0.308923 0.307154 0.305863 0.30512 0.304876 0.305034 0.305494 0.306085 0.306708 0.307576 0.3086 0.309649 0.310659 0.311519 0.312215 0.312662 0.3129 0.312857 0.312626 0.312131 0.311509 0.310656 0.309755 0.308653 0.307592 0.306355 0.305262 0.304023 0.303069 0.302011 0.301434 0.30079 0.300774 0.354724 0.35431 0.353901 0.353497 0.3531 0.352709 0.352325 0.351949 0.351581 0.351221 0.35087 0.350529 0.350197 0.349875 0.349564 0.349262 0.348971 0.34869 0.348419 0.348157 0.347905 0.347662 0.347428 0.347201 0.346981 0.346768 0.346561 0.346357 0.346158 0.345962 0.345767 0.345574 0.345382 0.345192 0.345005 0.344819 0.344638 0.344463 0.344295 0.344138 0.343994 0.343869 0.343767 0.34369 0.343628 0.343584 0.343559 0.343559 0.343589 0.343649 0.343742 0.34387 0.344035 0.344238 0.344479 0.344758 0.345076 0.345432 0.345824 0.34625 0.346708 0.347193 0.347701 0.348226 0.348761 0.349299 0.349831 0.350346 0.350833 0.351281 0.351678 0.352011 0.352267 0.352434 0.352502 0.35246 0.352301 0.352015 0.351597 0.351042 0.350345 0.3495 0.348505 0.347356 0.346056 0.34461 0.34302 0.341295 0.339449 0.337497 0.335412 0.333199 0.330879 0.328471 0.325986 0.323431 0.320794 0.318069 0.315257 0.312367 0.309406 0.306394 0.303352 0.300308 0.297291 0.294333 0.291462 0.288707 0.286089 0.283627 0.281332 0.279208 0.27725 0.275446 0.273773 0.272208 0.27072 0.26928 0.267866 0.266474 0.265121 0.26385 0.262736 0.261853 0.261271 0.261051 0.261249 0.261915 0.2631 0.264863 0.267294 0.270494 0.274551 0.279507 0.285302 0.292018 0.299815 0.308809 0.31902 0.330302 0.342284 0.354286 0.365407 0.374565 0.380564 0.382571 0.380714 0.376747 0.372149 0.367882 0.364392 0.361764 0.359992 0.358956 0.358453 0.358306 0.358154 0.358261 0.358426 0.358579 0.358553 0.358366 0.357887 0.357213 0.356224 0.355083 0.353645 0.352127 0.350334 0.34854 0.34648 0.344501 0.342261 0.340208 0.33791 0.335956 0.333809 0.332235 0.330546 0.329559 0.354776 0.354359 0.353946 0.353537 0.353133 0.352733 0.35234 0.351952 0.35157 0.351194 0.350824 0.350462 0.350106 0.349756 0.349414 0.349078 0.348748 0.348425 0.348108 0.347795 0.347488 0.347184 0.346884 0.346586 0.346289 0.345994 0.345698 0.3454 0.345101 0.344798 0.344491 0.34418 0.343865 0.343545 0.343222 0.342896 0.342569 0.342241 0.341916 0.341597 0.341287 0.340991 0.340713 0.34046 0.340236 0.340047 0.339898 0.339788 0.339701 0.339641 0.339614 0.339623 0.339669 0.339752 0.339872 0.34003 0.340225 0.340454 0.340717 0.341009 0.341327 0.341667 0.342022 0.342384 0.342746 0.343096 0.343424 0.343716 0.343958 0.344135 0.344231 0.344231 0.344118 0.343878 0.3435 0.342973 0.34229 0.341446 0.340442 0.339279 0.337961 0.336487 0.334856 0.333074 0.331116 0.328952 0.326619 0.324156 0.321603 0.319002 0.31638 0.313767 0.311191 0.308673 0.306226 0.30386 0.301577 0.299377 0.297265 0.295251 0.293353 0.291597 0.290018 0.288652 0.287542 0.286724 0.286236 0.286103 0.28634 0.286949 0.287917 0.289204 0.290751 0.292475 0.294278 0.296045 0.29765 0.29896 0.29987 0.30033 0.300407 0.300272 0.300531 0.301199 0.302284 0.303795 0.305746 0.308162 0.311091 0.314657 0.319213 0.324838 0.331433 0.338839 0.347158 0.356432 0.366649 0.377723 0.389523 0.401805 0.414174 0.426081 0.436955 0.446077 0.452415 0.45485 0.45278 0.447007 0.43966 0.432357 0.425997 0.420906 0.417065 0.414324 0.412468 0.411231 0.410145 0.40889 0.407471 0.405954 0.404121 0.402164 0.399877 0.397541 0.394908 0.39232 0.389454 0.386705 0.383654 0.38077 0.377536 0.374523 0.371115 0.368018 0.364515 0.361481 0.358096 0.355431 0.352538 0.350423 0.3548 0.354377 0.353956 0.353539 0.353125 0.352714 0.352307 0.351904 0.351505 0.35111 0.350719 0.350333 0.34995 0.349571 0.349196 0.348825 0.348457 0.348091 0.347728 0.347366 0.347005 0.346644 0.346282 0.345918 0.345551 0.34518 0.344804 0.344421 0.344032 0.343634 0.343227 0.342811 0.342385 0.34195 0.341504 0.34105 0.340589 0.340121 0.33965 0.339178 0.338709 0.338247 0.337796 0.337364 0.336955 0.336577 0.336237 0.335943 0.335696 0.3355 0.335332 0.335193 0.335088 0.33502 0.334988 0.33499 0.335024 0.335088 0.335179 0.335291 0.335421 0.335561 0.335704 0.335841 0.33596 0.33605 0.336097 0.336083 0.335993 0.335807 0.335508 0.335076 0.334495 0.333751 0.332833 0.331747 0.330491 0.32907 0.327496 0.325749 0.323807 0.321703 0.319465 0.317124 0.314709 0.31225 0.309798 0.307415 0.305165 0.303112 0.301309 0.299794 0.298594 0.297719 0.297167 0.296933 0.297011 0.297402 0.298124 0.299208 0.300704 0.302678 0.305209 0.308367 0.312211 0.316789 0.322138 0.328267 0.335162 0.342776 0.351032 0.359735 0.368665 0.377605 0.386312 0.394494 0.401843 0.408046 0.412852 0.416207 0.419066 0.421632 0.423314 0.424422 0.425291 0.426244 0.427562 0.42945 0.432047 0.435357 0.439048 0.44286 0.446919 0.45157 0.456645 0.461818 0.466902 0.471756 0.476267 0.480365 0.4839 0.486776 0.489018 0.490931 0.492695 0.493864 0.493143 0.489232 0.483394 0.477195 0.47151 0.466741 0.462874 0.459847 0.457388 0.455274 0.452965 0.450199 0.44661 0.442796 0.438451 0.434168 0.429545 0.425237 0.420689 0.416604 0.412255 0.408414 0.404191 0.400469 0.396219 0.39248 0.388096 0.384292 0.379786 0.376012 0.371575 0.36813 0.364192 0.361275 0.354699 0.354258 0.353818 0.353379 0.352941 0.352505 0.35207 0.351637 0.351205 0.350774 0.350345 0.349918 0.349491 0.349066 0.348641 0.348217 0.347792 0.347367 0.34694 0.346512 0.346081 0.345646 0.345206 0.344761 0.344309 0.343848 0.343379 0.3429 0.34241 0.341907 0.341391 0.340861 0.340318 0.33976 0.339187 0.338601 0.338002 0.337392 0.336773 0.336147 0.335518 0.33489 0.334266 0.333652 0.333055 0.33248 0.331935 0.331427 0.330963 0.33055 0.330188 0.329874 0.329589 0.329327 0.32909 0.328885 0.328707 0.328553 0.328417 0.328293 0.328175 0.328055 0.327924 0.32777 0.327582 0.327344 0.327043 0.32666 0.326177 0.325577 0.324843 0.323965 0.32293 0.321733 0.32037 0.318773 0.316987 0.315066 0.313059 0.311007 0.308944 0.306925 0.305012 0.30328 0.301817 0.300718 0.300089 0.300036 0.300654 0.302014 0.304161 0.307107 0.310829 0.315282 0.320409 0.326158 0.332481 0.339378 0.346897 0.35513 0.364212 0.3743 0.38556 0.398045 0.411695 0.426505 0.442426 0.459394 0.47731 0.495998 0.515211 0.534318 0.552827 0.570472 0.586951 0.601903 0.614926 0.625597 0.633711 0.640213 0.643453 0.643086 0.639737 0.634288 0.62773 0.62094 0.614595 0.60909 0.604595 0.60105 0.598135 0.595314 0.591806 0.586691 0.57999 0.572238 0.563821 0.554934 0.545675 0.536315 0.52682 0.517442 0.508365 0.500114 0.493776 0.490979 0.49135 0.49291 0.493541 0.493512 0.492939 0.492131 0.490952 0.489543 0.487486 0.484768 0.480713 0.475824 0.469618 0.463231 0.456114 0.449504 0.442553 0.43653 0.430271 0.425117 0.419598 0.415185 0.410143 0.406134 0.401239 0.397353 0.392372 0.388464 0.383323 0.379395 0.374236 0.37055 0.365819 0.362581 0.354221 0.353735 0.353247 0.352758 0.352267 0.351774 0.35128 0.350785 0.350288 0.349789 0.349289 0.348787 0.348283 0.347777 0.347268 0.346756 0.346241 0.345722 0.345199 0.344671 0.344136 0.343595 0.343047 0.342489 0.341922 0.341344 0.340754 0.340151 0.339535 0.338903 0.338255 0.337591 0.33691 0.336212 0.335497 0.334765 0.334017 0.333254 0.332478 0.331691 0.330897 0.330097 0.329296 0.328499 0.327711 0.326936 0.326181 0.325452 0.324756 0.324098 0.323485 0.322921 0.322398 0.321915 0.321466 0.321027 0.320596 0.320174 0.319758 0.319343 0.318925 0.318497 0.318051 0.317576 0.317063 0.316497 0.315867 0.315159 0.314361 0.313465 0.312463 0.311284 0.309935 0.308459 0.306907 0.305317 0.30376 0.30232 0.301092 0.300179 0.299695 0.299771 0.300552 0.302199 0.304893 0.308823 0.314184 0.321132 0.329782 0.340182 0.352314 0.366084 0.381333 0.397865 0.415479 0.433936 0.452968 0.472509 0.49262 0.513483 0.535323 0.558374 0.582808 0.608262 0.633995 0.659955 0.685969 0.711785 0.73709 0.761536 0.784793 0.80664 0.826843 0.845125 0.861252 0.874993 0.886103 0.894434 0.899849 0.899959 0.894743 0.884729 0.870904 0.8545 0.836871 0.819134 0.801999 0.78575 0.770333 0.75533 0.739979 0.723542 0.705559 0.686398 0.666167 0.645167 0.623422 0.601636 0.579927 0.558717 0.537843 0.517747 0.498578 0.481355 0.467297 0.459143 0.458905 0.465715 0.474933 0.484282 0.492024 0.497895 0.501238 0.502441 0.500847 0.497221 0.490842 0.483548 0.474589 0.4659 0.45631 0.447933 0.439124 0.432062 0.424594 0.41907 0.41285 0.408552 0.403112 0.399501 0.394342 0.390998 0.385775 0.382448 0.376979 0.373559 0.367921 0.364602 0.359197 0.356159 0.352894 0.352318 0.351737 0.35115 0.350559 0.349963 0.349363 0.348757 0.348147 0.347533 0.346913 0.346289 0.345659 0.345025 0.344385 0.343739 0.343088 0.34243 0.341765 0.341093 0.340413 0.339724 0.339026 0.338317 0.337596 0.336864 0.336118 0.335359 0.334585 0.333794 0.332988 0.332164 0.331323 0.330464 0.329588 0.328694 0.327783 0.326856 0.325914 0.324959 0.323994 0.32302 0.322042 0.321061 0.320083 0.319111 0.31815 0.317204 0.316279 0.315379 0.314508 0.313671 0.31287 0.312107 0.311379 0.310671 0.309982 0.309312 0.308657 0.308013 0.307372 0.306728 0.306071 0.305392 0.304682 0.303936 0.303149 0.302322 0.301467 0.300602 0.299763 0.298976 0.298301 0.297822 0.297647 0.297892 0.298691 0.300196 0.302575 0.30602 0.310755 0.317023 0.325094 0.335277 0.347908 0.363348 0.381941 0.403782 0.428886 0.457152 0.488349 0.522099 0.557925 0.595284 0.633624 0.671975 0.709153 0.744984 0.779455 0.812648 0.844654 0.875502 0.905142 0.933491 0.96037 0.985312 1.00784 1.02747 1.04387 1.05689 1.06661 1.07329 1.07728 1.07906 1.07911 1.07791 1.07577 1.07254 1.06731 1.05971 1.04924 1.0355 1.01846 0.998565 0.976494 0.953016 0.928642 0.903624 0.877828 0.851019 0.822637 0.792817 0.762034 0.730892 0.699493 0.668405 0.637576 0.607462 0.57774 0.548906 0.520585 0.493422 0.467402 0.443694 0.423303 0.410565 0.408803 0.419261 0.437216 0.457111 0.474449 0.487946 0.495955 0.499379 0.497546 0.492563 0.483766 0.47444 0.463121 0.452849 0.441442 0.432136 0.42212 0.414816 0.406686 0.401517 0.39503 0.391527 0.386036 0.383511 0.378347 0.376233 0.370938 0.368861 0.363161 0.360919 0.3548 0.3525 0.346223 0.343907 0.349988 0.349258 0.348519 0.347771 0.347016 0.346252 0.34548 0.3447 0.343913 0.343119 0.342317 0.341507 0.340691 0.339867 0.339036 0.338198 0.337352 0.336498 0.335637 0.334767 0.333889 0.333002 0.332106 0.3312 0.330283 0.329355 0.328416 0.327465 0.3265 0.325522 0.324531 0.323525 0.322505 0.321471 0.320421 0.319358 0.31828 0.31719 0.316087 0.314974 0.313851 0.312721 0.311586 0.310449 0.309312 0.308179 0.307053 0.305938 0.304837 0.303754 0.302694 0.301659 0.300653 0.29968 0.298743 0.297842 0.296979 0.296157 0.295377 0.294643 0.293959 0.293332 0.292772 0.292293 0.291914 0.291664 0.291581 0.291718 0.292143 0.292942 0.294222 0.296107 0.298737 0.30227 0.306879 0.312733 0.320014 0.328929 0.339735 0.352764 0.36844 0.38711 0.409176 0.435128 0.465482 0.500745 0.541262 0.586115 0.634753 0.686561 0.740684 0.796096 0.851676 0.90633 0.95905 1.00906 1.05576 1.09853 1.13686 1.17024 1.19814 1.2202 1.23621 1.24622 1.25016 1.24829 1.24106 1.22929 1.21396 1.19614 1.17689 1.15716 1.13775 1.11936 1.10252 1.08769 1.07524 1.06533 1.05776 1.05207 1.04722 1.04181 1.0341 1.02278 1.00705 0.986931 0.962659 0.934933 0.90408 0.870355 0.834294 0.797226 0.759516 0.722111 0.684998 0.648926 0.613589 0.579576 0.546317 0.514058 0.482116 0.451333 0.42147 0.393817 0.368945 0.352437 0.349232 0.36279 0.388544 0.41873 0.445264 0.465622 0.477066 0.481757 0.478823 0.472657 0.461971 0.451417 0.438475 0.42746 0.414947 0.405508 0.394878 0.388014 0.379673 0.375454 0.36903 0.366887 0.361572 0.360703 0.35566 0.355386 0.349994 0.349843 0.343719 0.34344 0.336429 0.335916 0.328056 0.327053 0.344279 0.343298 0.342305 0.3413 0.340286 0.33926 0.338225 0.337181 0.336127 0.335065 0.333995 0.332918 0.331833 0.330742 0.329645 0.328541 0.327433 0.326319 0.325201 0.324078 0.322951 0.32182 0.320685 0.319546 0.318405 0.317259 0.316111 0.314959 0.313804 0.312647 0.311486 0.310322 0.309157 0.307988 0.306819 0.305647 0.304476 0.303304 0.302135 0.300968 0.299807 0.298652 0.297507 0.296374 0.295257 0.29416 0.293088 0.292044 0.291035 0.290068 0.289148 0.288285 0.287488 0.286767 0.286134 0.285604 0.285193 0.284922 0.284815 0.284902 0.28522 0.285812 0.286732 0.288046 0.28983 0.29218 0.29521 0.299051 0.30385 0.309767 0.316976 0.325653 0.335987 0.348169 0.362397 0.378789 0.397537 0.418923 0.443352 0.471379 0.503682 0.54005 0.580666 0.625901 0.675929 0.730514 0.788906 0.849916 0.911852 0.97291 1.03152 1.0866 1.1376 1.18444 1.22715 1.26566 1.29942 1.32727 1.34763 1.35906 1.36016 1.35175 1.33521 1.31204 1.28416 1.25314 1.22033 1.18674 1.15327 1.12068 1.08958 1.06045 1.03364 1.00947 0.988189 0.970118 0.955584 0.945028 0.938796 0.937118 0.939431 0.944201 0.948588 0.949617 0.94483 0.93328 0.91462 0.889443 0.858708 0.824396 0.787361 0.749292 0.710583 0.672489 0.634813 0.598473 0.562879 0.528711 0.495152 0.462524 0.429737 0.397753 0.366192 0.33638 0.308425 0.288701 0.284294 0.300759 0.333641 0.373197 0.407345 0.432726 0.446072 0.451152 0.44696 0.440118 0.428234 0.41728 0.403466 0.392422 0.379413 0.370429 0.35967 0.353725 0.345555 0.342692 0.33663 0.336224 0.331295 0.332449 0.327628 0.329619 0.324045 0.326283 0.319427 0.321586 0.313108 0.31505 0.304378 0.305637 0.333449 0.332084 0.330709 0.329326 0.327935 0.326539 0.325138 0.323734 0.322328 0.320922 0.319517 0.318114 0.316716 0.315324 0.313939 0.312564 0.3112 0.30985 0.308515 0.307197 0.305897 0.304619 0.303362 0.302129 0.300921 0.299739 0.298586 0.297462 0.296369 0.295308 0.294281 0.293288 0.292331 0.291412 0.290532 0.289694 0.288899 0.288151 0.287453 0.286808 0.286223 0.285701 0.28525 0.284876 0.284589 0.284398 0.284314 0.28435 0.284521 0.284843 0.285334 0.286018 0.286917 0.288061 0.289481 0.291213 0.293302 0.295796 0.298753 0.302239 0.306331 0.311122 0.316716 0.323223 0.330763 0.33948 0.349539 0.361071 0.374203 0.389073 0.405838 0.424649 0.445686 0.469142 0.495203 0.523473 0.554209 0.587735 0.624483 0.664855 0.70921 0.757736 0.810206 0.865751 0.922791 0.97859 1.0298 1.0733 1.10707 1.13096 1.14669 1.15721 1.16589 1.17537 1.18721 1.20144 1.21652 1.2293 1.23541 1.23205 1.22137 1.20378 1.18006 1.15148 1.11935 1.08454 1.04761 1.01087 0.975503 0.942221 0.911378 0.883178 0.857683 0.834999 0.815216 0.798588 0.785478 0.776549 0.772586 0.774472 0.782212 0.794521 0.808043 0.818888 0.823401 0.820053 0.808012 0.788313 0.76203 0.73159 0.697976 0.663278 0.627798 0.592999 0.558484 0.525273 0.492548 0.460977 0.429435 0.398428 0.366607 0.334872 0.303009 0.272392 0.242836 0.220698 0.215166 0.235153 0.274871 0.322062 0.361368 0.389487 0.402682 0.407678 0.402673 0.395683 0.383383 0.372662 0.358705 0.348072 0.335182 0.326987 0.316679 0.311907 0.304466 0.303111 0.297935 0.299299 0.295243 0.298334 0.294163 0.29824 0.292849 0.297053 0.289726 0.293954 0.28377 0.288223 0.273028 0.2779 0.317075 0.315522 0.31399 0.312482 0.311002 0.309555 0.308144 0.306774 0.30545 0.304175 0.302956 0.301797 0.300705 0.299683 0.29874 0.297881 0.297111 0.296439 0.295871 0.295405 0.295044 0.294789 0.294645 0.294615 0.294702 0.294909 0.295238 0.295689 0.296264 0.296961 0.29778 0.298723 0.299788 0.300978 0.302295 0.303744 0.30533 0.307058 0.308938 0.310977 0.313186 0.315576 0.318162 0.320956 0.323975 0.327236 0.330758 0.334563 0.33867 0.343107 0.347898 0.353074 0.358666 0.364707 0.371242 0.378307 0.385957 0.394241 0.403222 0.412968 0.423546 0.43504 0.447511 0.46104 0.475701 0.491605 0.508857 0.527225 0.546547 0.566876 0.58827 0.610777 0.634467 0.659459 0.685971 0.714365 0.745126 0.778773 0.815607 0.855297 0.89696 0.938959 0.97849 1.01204 1.03515 1.04381 1.03653 1.01604 0.987754 0.957951 0.931858 0.912814 0.902326 0.90041 0.906588 0.918976 0.934198 0.94733 0.952238 0.950875 0.943159 0.929744 0.911282 0.888677 0.86274 0.83426 0.803784 0.773287 0.743965 0.71654 0.691269 0.668267 0.647495 0.629008 0.612829 0.59919 0.588459 0.581396 0.579041 0.582747 0.593098 0.609307 0.628111 0.645375 0.656739 0.660356 0.655022 0.641912 0.621942 0.59781 0.570454 0.542057 0.512812 0.484174 0.455668 0.428186 0.400897 0.374134 0.346608 0.318661 0.289368 0.259143 0.22843 0.198549 0.169812 0.14713 0.140858 0.163292 0.209232 0.261711 0.302344 0.330408 0.342545 0.346832 0.341656 0.334719 0.323115 0.312889 0.299851 0.289714 0.278161 0.270768 0.262241 0.258484 0.253135 0.252814 0.249887 0.252128 0.250366 0.254049 0.252138 0.256317 0.253113 0.256836 0.251241 0.254473 0.244663 0.248355 0.228881 0.236836 0.370085 0.371488 0.372995 0.374616 0.37636 0.378238 0.380257 0.38243 0.384766 0.387276 0.38997 0.392864 0.39597 0.39931 0.402899 0.406751 0.410879 0.415298 0.420014 0.424862 0.42979 0.434807 0.439918 0.44513 0.450447 0.45587 0.461403 0.467049 0.472811 0.47869 0.48469 0.490813 0.497061 0.503435 0.509939 0.516573 0.523338 0.530233 0.537261 0.544417 0.551703 0.559115 0.56665 0.574306 0.582077 0.589961 0.597949 0.606036 0.614213 0.622471 0.630801 0.639191 0.647629 0.6561 0.66459 0.673081 0.681554 0.689986 0.698355 0.706626 0.714774 0.722732 0.730444 0.737853 0.744923 0.751576 0.757743 0.763369 0.768363 0.772642 0.776098 0.778818 0.780892 0.782868 0.785247 0.789435 0.796784 0.808266 0.822444 0.836287 0.847609 0.853604 0.85085 0.836747 0.808088 0.758525 0.697279 0.635942 0.582146 0.54033 0.511245 0.49367 0.485488 0.485262 0.492979 0.506781 0.522992 0.535972 0.546369 0.551318 0.551498 0.547481 0.539336 0.527678 0.51304 0.49597 0.476875 0.457179 0.438025 0.420107 0.403593 0.388426 0.374622 0.362236 0.351271 0.341887 0.334402 0.329418 0.327966 0.331546 0.341402 0.357595 0.377909 0.398661 0.415191 0.425015 0.426876 0.421728 0.410573 0.395677 0.378221 0.359726 0.340755 0.321975 0.303505 0.285222 0.267021 0.247845 0.227086 0.204746 0.181374 0.156254 0.130976 0.106338 0.0844929 0.0663368 0.0585519 0.0726754 0.115785 0.168839 0.208416 0.232524 0.243491 0.245414 0.241905 0.23447 0.226091 0.21564 0.206246 0.196042 0.189012 0.181546 0.17797 0.173596 0.173393 0.17151 0.173898 0.173383 0.177233 0.176784 0.181175 0.179443 0.183553 0.179485 0.182311 0.175253 0.174539 0.165244 0.152624 0.15307 0.967329 0.963976 0.960275 0.956251 0.951932 0.947345 0.942518 0.937477 0.932251 0.926863 0.921342 0.91571 0.910187 0.905012 0.900162 0.895611 0.89134 0.887326 0.883553 0.880026 0.876727 0.873632 0.870715 0.867957 0.865331 0.862822 0.860404 0.85806 0.855767 0.853505 0.851254 0.848991 0.846696 0.844343 0.84191 0.83937 0.836693 0.833853 0.830814 0.827549 0.824017 0.820185 0.816013 0.811458 0.806481 0.80103 0.795066 0.788528 0.781375 0.773543 0.764979 0.755623 0.745409 0.734278 0.722153 0.708971 0.694647 0.679109 0.662266 0.644034 0.624313 0.603008 0.580004 0.555204 0.528482 0.499756 0.468914 0.435924 0.40078 0.363601 0.324651 0.2844 0.243731 0.203829 0.166614 0.133524 0.106959 0.0886255 0.0789357 0.0782079 0.0866065 0.0944362 0.100538 0.104408 0.105094 0.100517 0.0934105 0.0865765 0.0813736 0.0786159 0.0781863 0.0796886 0.0825712 0.086425 0.0909699 0.0957068 0.0999496 0.103379 0.106191 0.106863 0.105715 0.103136 0.0992871 0.0943812 0.0886904 0.0825365 0.0760832 0.0696486 0.0636415 0.0582314 0.0534425 0.049088 0.0451807 0.0417178 0.0387037 0.0362805 0.0352908 0.0347364 0.0346472 0.035313 0.0372942 0.0410756 0.0469453 0.0545097 0.0629147 0.0703286 0.0761972 0.0798535 0.0819569 0.0824029 0.0822685 0.0811495 0.0800259 0.0781692 0.0765268 0.0740325 0.0714377 0.0676344 0.0638133 0.0586276 0.0530444 0.046263 0.0393532 0.0319725 0.0256587 0.0190938 0.0140167 0.0118707 0.0174427 0.0288293 0.0432975 0.0522919 0.0606028 0.0631809 0.0666297 0.0652004 0.0660131 0.0625124 0.0625556 0.0585201 0.0587643 0.0546944 0.0558635 0.0521109 0.0545066 0.0510101 0.0546187 0.0510639 0.055694 0.051618 0.0569541 0.0518609 0.0575189 0.0508779 0.0563588 0.0473682 0.0521538 0.0389418 0.0435276 0.0201242 0.189747 0.186205 0.195306 0.193898 0.204107 0.202974 0.21455 0.213428 0.226468 0.225061 0.239869 0.238078 0.255017 0.252934 0.272452 0.270442 0.293033 0.291767 0.317931 0.318487 0.348668 0.352781 0.387295 0.398122 0.436847 0.248874 0.256932 0.247346 0.253713 0.243861 0.250746 0.240724 0.248474 0.238234 0.246994 0.236418 0.24621 0.235431 0.246306 0.235717 0.247714 0.23797 0.2511 0.24321 0.257386 0.252943 0.267877 0.269409 0.284263 0.291666 0.270769 0.268985 0.266643 0.262851 0.259983 0.255891 0.252966 0.24891 0.246283 0.242449 0.240173 0.236655 0.234726 0.231598 0.230048 0.227441 0.226327 0.224473 0.22388 0.223125 0.223227 0.223997 0.225167 0.227788 0.229764 0.289017 0.286705 0.282749 0.27846 0.273885 0.269288 0.264645 0.260117 0.255721 0.25151 0.247443 0.243666 0.239943 0.236651 0.233268 0.230483 0.227474 0.225232 0.222648 0.22103 0.218953 0.218064 0.216659 0.2165 0.215666 0.304079 0.301014 0.296493 0.291802 0.286612 0.281568 0.276225 0.271191 0.266033 0.261303 0.256479 0.252206 0.247773 0.244041 0.240008 0.236828 0.233212 0.230555 0.227375 0.225219 0.222487 0.220805 0.218572 0.217226 0.21534 0.315117 0.311362 0.306554 0.301621 0.296237 0.290983 0.285427 0.280131 0.2747 0.269641 0.264513 0.259863 0.255132 0.251023 0.246728 0.243203 0.239368 0.236397 0.233025 0.230548 0.227615 0.22555 0.223036 0.221178 0.218877 0.322905 0.318573 0.313572 0.30852 0.303123 0.297843 0.292303 0.286961 0.281499 0.276322 0.271111 0.266267 0.261422 0.257075 0.25267 0.248908 0.244982 0.241801 0.238362 0.235696 0.232708 0.230456 0.227855 0.225784 0.223325 0.328158 0.323393 0.318261 0.313165 0.307839 0.302642 0.297239 0.291999 0.28665 0.281519 0.276364 0.271482 0.266638 0.262181 0.257751 0.253845 0.249889 0.246569 0.243111 0.240327 0.237337 0.23499 0.232378 0.230229 0.227732 0.331454 0.326402 0.321201 0.316116 0.310909 0.305859 0.300662 0.295615 0.290471 0.285499 0.280497 0.275693 0.270934 0.266469 0.262072 0.258097 0.254147 0.250737 0.24728 0.244416 0.241439 0.239039 0.236445 0.234278 0.231783 0.333286 0.328076 0.322863 0.317831 0.312771 0.307902 0.302945 0.298145 0.293261 0.288522 0.28374 0.2791 0.274489 0.270093 0.265775 0.261789 0.257871 0.254407 0.250959 0.248037 0.245073 0.242636 0.240067 0.237905 0.235431 0.334081 0.328814 0.323637 0.318689 0.313786 0.309111 0.304403 0.299871 0.295274 0.290812 0.286293 0.281878 0.277461 0.273196 0.268994 0.265046 0.261178 0.257689 0.254254 0.251285 0.248329 0.245858 0.24331 0.241151 0.23871 0.3342 0.328953 0.323848 0.319 0.314254 0.309765 0.305298 0.301031 0.296724 0.292556 0.288321 0.284167 0.279979 0.275892 0.271835 0.267967 0.264168 0.26068 0.257261 0.254256 0.251299 0.248795 0.246256 0.244084 0.241681 0.333942 0.328768 0.323759 0.319017 0.314417 0.310095 0.305842 0.301817 0.297781 0.2939 0.289952 0.286078 0.282138 0.278262 0.274376 0.270623 0.266911 0.263451 0.260054 0.257025 0.254062 0.251524 0.248985 0.246781 0.244411 0.333538 0.328472 0.323574 0.318936 0.314462 0.310279 0.306202 0.302381 0.298582 0.294961 0.291284 0.287687 0.284002 0.280358 0.276663 0.273056 0.269452 0.266047 0.262685 0.25965 0.25668 0.254114 0.251565 0.249331 0.246971 0.333156 0.328219 0.323436 0.318896 0.314527 0.310449 0.306507 0.302841 0.299232 0.295831 0.292392 0.289054 0.285615 0.282211 0.278719 0.275284 0.271809 0.268491 0.265181 0.262164 0.259197 0.256611 0.254048 0.251787 0.249432 0.332901 0.328103 0.323437 0.318987 0.314701 0.310697 0.306845 0.303285 0.299811 0.296578 0.293332 0.290219 0.287005 0.283837 0.280553 0.277311 0.273984 0.270786 0.267552 0.264587 0.261639 0.259048 0.256472 0.254198 0.251855 0.332827 0.328173 0.32362 0.319251 0.31503 0.311071 0.30727 0.303767 0.300375 0.297253 0.294147 0.291214 0.288194 0.285245 0.282164 0.279128 0.275969 0.272924 0.269797 0.266922 0.26402 0.261443 0.258866 0.256603 0.254286 0.332943 0.32843 0.323988 0.319692 0.315521 0.311586 0.307804 0.304317 0.300957 0.297892 0.294871 0.292068 0.289199 0.286443 0.283552 0.280729 0.277753 0.274894 0.271904 0.269165 0.266343 0.263816 0.261275 0.259047 0.256774 0.333216 0.32884 0.324503 0.320276 0.316147 0.312222 0.308436 0.304934 0.301566 0.298509 0.295522 0.2928 0.290041 0.287451 0.284737 0.282134 0.27936 0.276732 0.273928 0.27139 0.268705 0.266307 0.263855 0.261732 0.259552 0.333587 0.329336 0.325093 0.320926 0.316828 0.312902 0.309094 0.30555 0.302138 0.299042 0.296037 0.293334 0.290628 0.288148 0.285568 0.283153 0.280571 0.278172 0.275574 0.273252 0.270747 0.268523 0.266209 0.26423 0.262175 0.333951 0.329813 0.325656 0.321542 0.317469 0.313535 0.309696 0.306095 0.302617 0.29945 0.296383 0.293645 0.290933 0.288503 0.286001 0.283723 0.281293 0.279093 0.276686 0.274565 0.272248 0.27021 0.268063 0.266239 0.26432 0.33418 0.330144 0.326068 0.322006 0.317959 0.314018 0.310149 0.306489 0.302937 0.299682 0.296529 0.293718 0.290954 0.28852 0.286045 0.283853 0.281533 0.279497 0.27726 0.275324 0.273196 0.271349 0.269387 0.267735 0.265969 0.334117 0.330182 0.326187 0.32218 0.318166 0.314228 0.310339 0.306627 0.303006 0.299662 0.296414 0.293511 0.290667 0.288186 0.285692 0.283541 0.281289 0.279378 0.277286 0.275512 0.273568 0.271913 0.270147 0.268681 0.267087 0.333599 0.329768 0.32586 0.321918 0.317949 0.314029 0.310137 0.306392 0.302718 0.299296 0.295959 0.29296 0.290024 0.287472 0.284928 0.282775 0.280553 0.27873 0.276754 0.27512 0.273345 0.271874 0.270305 0.269032 0.267629 0.332457 0.328741 0.324932 0.321071 0.317166 0.313286 0.309414 0.305661 0.301959 0.298481 0.295074 0.291989 0.288966 0.286334 0.283725 0.28154 0.279316 0.277542 0.275654 0.274136 0.272512 0.271209 0.269832 0.268752 0.26755 0.330531 0.326946 0.323257 0.319498 0.315681 0.311866 0.308043 0.304312 0.300614 0.297111 0.293663 0.290515 0.287422 0.284716 0.28204 0.279809 0.277563 0.275803 0.273972 0.272545 0.271051 0.269896 0.2687 0.267805 0.266805 0.327677 0.324248 0.320703 0.317073 0.313371 0.309652 0.305911 0.302236 0.298579 0.295087 0.291634 0.288454 0.285319 0.282557 0.279825 0.277545 0.275269 0.273501 0.271704 0.270337 0.268947 0.267915 0.266883 0.266158 0.265354 0.32379 0.320548 0.317179 0.313708 0.310157 0.306569 0.302947 0.299369 0.295793 0.292353 0.288939 0.285769 0.282631 0.279844 0.277086 0.27477 0.272475 0.270694 0.268922 0.267601 0.266295 0.265357 0.26447 0.263894 0.263276 0.318758 0.315739 0.312583 0.309313 0.305953 0.30254 0.299083 0.295647 0.292201 0.288864 0.285541 0.282429 0.279339 0.27657 0.273826 0.271507 0.269219 0.267442 0.265705 0.264437 0.263214 0.262369 0.261613 0.26118 0.260747 0.312428 0.30967 0.306768 0.303738 0.300612 0.297417 0.294171 0.290925 0.28766 0.284478 0.281298 0.278296 0.275304 0.272601 0.269918 0.267633 0.265385 0.263634 0.261949 0.260743 0.259608 0.258854 0.258224 0.257924 0.257675 0.304776 0.302312 0.299697 0.296946 0.294092 0.291157 0.288164 0.285154 0.282119 0.27914 0.276154 0.273313 0.270474 0.267887 0.265314 0.263106 0.260937 0.259241 0.257631 0.256504 0.255468 0.254807 0.2543 0.254126 0.254052 0.295867 0.293719 0.291418 0.288972 0.286422 0.283781 0.281078 0.278343 0.275578 0.272846 0.2701 0.267468 0.264831 0.262409 0.259996 0.257909 0.255861 0.254253 0.252744 0.251727 0.2508 0.250237 0.249851 0.249798 0.249886 0.285863 0.284036 0.28206 0.279937 0.27771 0.275385 0.272997 0.270566 0.268101 0.265649 0.26318 0.260796 0.258404 0.256189 0.25398 0.252056 0.25017 0.248685 0.247306 0.246414 0.245625 0.245163 0.244901 0.244962 0.245199 0.275018 0.273504 0.271854 0.270054 0.268153 0.266151 0.264089 0.261973 0.259824 0.257671 0.255502 0.253392 0.251274 0.249299 0.247329 0.245602 0.243915 0.24258 0.241358 0.240596 0.239976 0.23962 0.239487 0.239657 0.240033 0.263149 0.261876 0.260503 0.259033 0.257476 0.255819 0.254102 0.252325 0.250518 0.248694 0.246858 0.245058 0.243256 0.241559 0.239878 0.238389 0.236952 0.235807 0.234792 0.234179 0.233761 0.233554 0.233586 0.233888 0.234419 0.250982 0.249926 0.248767 0.247508 0.246201 0.244847 0.243441 0.241981 0.240497 0.238993 0.237484 0.235997 0.234519 0.233117 0.231745 0.230521 0.229365 0.228444 0.227667 0.227232 0.22703 0.227026 0.227255 0.227724 0.228426 0.240059 0.239136 0.238117 0.237008 0.23584 0.234623 0.233405 0.232168 0.230914 0.229649 0.228386 0.227145 0.225923 0.224765 0.223648 0.222652 0.221737 0.221015 0.220447 0.22017 0.220149 0.220361 0.220763 0.221382 0.22224 0.231218 0.230326 0.229345 0.228293 0.227178 0.226024 0.224847 0.223676 0.222518 0.221374 0.220239 0.219137 0.218063 0.217054 0.216097 0.215249 0.214492 0.213904 0.213477 0.213303 0.213398 0.213775 0.214331 0.215059 0.216037 0.225318 0.224345 0.22329 0.222184 0.221011 0.219817 0.218583 0.21736 0.216132 0.214956 0.213798 0.212698 0.211625 0.210635 0.209699 0.208879 0.208154 0.20759 0.207192 0.207025 0.207133 0.207547 0.208213 0.209001 0.210044 0.223249 0.222083 0.220833 0.219556 0.2182 0.216842 0.215424 0.214034 0.212613 0.211252 0.209889 0.208619 0.20737 0.206233 0.205143 0.204189 0.203327 0.202636 0.202109 0.201809 0.201782 0.202071 0.2027 0.203502 0.204523 0.225932 0.224454 0.222881 0.221304 0.219627 0.217967 0.216218 0.214517 0.212748 0.211059 0.209331 0.207713 0.206089 0.204605 0.20315 0.201865 0.200657 0.199648 0.198791 0.198181 0.197837 0.197813 0.198186 0.198844 0.199761 0.234246 0.232323 0.230287 0.228266 0.22611 0.223992 0.22174 0.219559 0.217261 0.215069 0.212784 0.21064 0.208438 0.206409 0.204371 0.202536 0.200753 0.199204 0.197793 0.196653 0.195777 0.195231 0.195108 0.19536 0.195958 0.248832 0.246313 0.243648 0.241016 0.2382 0.235443 0.232492 0.229638 0.226603 0.223707 0.220654 0.21778 0.214785 0.212008 0.209161 0.20657 0.203981 0.20168 0.199478 0.1976 0.195957 0.194687 0.193828 0.193408 0.193395 0.269652 0.266379 0.262911 0.259492 0.255824 0.252235 0.248376 0.244646 0.240658 0.236855 0.232817 0.229015 0.225013 0.221297 0.217435 0.213903 0.210302 0.20707 0.203874 0.201082 0.198469 0.196303 0.194502 0.193205 0.192324 0.296658 0.292632 0.288265 0.283918 0.279207 0.274584 0.269587 0.26476 0.259583 0.254651 0.249394 0.244451 0.239219 0.234363 0.229272 0.224611 0.219791 0.215446 0.21105 0.207165 0.203377 0.200134 0.197179 0.194798 0.19279 0.324499 0.319693 0.314459 0.309249 0.303545 0.297945 0.29184 0.285951 0.279594 0.273554 0.267078 0.26101 0.254545 0.248566 0.242247 0.236479 0.230448 0.225019 0.219437 0.214492 0.209546 0.205258 0.201165 0.197721 0.194559 0.345237 0.340291 0.334731 0.329079 0.322701 0.316418 0.309455 0.302766 0.295466 0.288576 0.281123 0.274194 0.266748 0.259919 0.252634 0.246041 0.239074 0.232855 0.226373 0.220677 0.214868 0.209859 0.204932 0.200756 0.196738 0.356842 0.35249 0.347105 0.341488 0.334827 0.328259 0.320785 0.313667 0.305755 0.298375 0.290267 0.282827 0.27472 0.267391 0.259466 0.252405 0.244838 0.238198 0.231165 0.225101 0.218792 0.213462 0.208075 0.203587 0.199096 0.35957 0.356378 0.351573 0.346411 0.339818 0.333354 0.325703 0.318526 0.310323 0.30281 0.294362 0.286769 0.278324 0.270861 0.262638 0.255494 0.247688 0.241032 0.233829 0.227824 0.221411 0.216215 0.210786 0.206468 0.20194 0.355009 0.353325 0.349304 0.344868 0.33857 0.332501 0.324909 0.317963 0.309709 0.302362 0.293843 0.286425 0.27795 0.270726 0.262554 0.255737 0.248077 0.241849 0.234888 0.22942 0.223344 0.218804 0.213802 0.210229 0.206154 0.344923 0.344953 0.34175 0.338149 0.332205 0.326669 0.319233 0.312698 0.304555 0.297628 0.289285 0.282382 0.274209 0.267639 0.259913 0.253896 0.246819 0.241536 0.235297 0.230931 0.225718 0.22247 0.218473 0.216382 0.213359 0.330568 0.332473 0.329982 0.327152 0.321425 0.316405 0.309113 0.303123 0.295261 0.289059 0.281222 0.275278 0.267847 0.262474 0.2557 0.251082 0.245143 0.241466 0.236566 0.234027 0.230384 0.229253 0.22705 0.227441 0.226239 0.312234 0.316143 0.314076 0.311739 0.305949 0.301382 0.294298 0.289132 0.281933 0.276988 0.270235 0.265929 0.259926 0.25652 0.251426 0.249035 0.245004 0.243846 0.241119 0.241421 0.240293 0.242417 0.243049 0.247303 0.248908 0.288495 0.294288 0.292017 0.289782 0.283854 0.280019 0.273718 0.270144 0.264553 0.261836 0.25728 0.255628 0.252247 0.25181 0.249602 0.250422 0.249532 0.251935 0.252596 0.256758 0.259452 0.26574 0.270509 0.27977 0.285472 0.252972 0.260058 0.257044 0.255064 0.250295 0.248482 0.244998 0.244538 0.242783 0.243591 0.243486 0.245326 0.246885 0.249581 0.252299 0.255832 0.260154 0.265144 0.271357 0.278475 0.286705 0.297303 0.30708 0.322801 0.334124 0.178433 0.18736 0.185127 0.188275 0.187907 0.193406 0.194399 0.201837 0.203522 0.2116 0.213944 0.221922 0.225437 0.233682 0.238387 0.247251 0.253254 0.263539 0.270621 0.283735 0.291988 0.309257 0.319639 0.339958 0.361982 0.0585048 0.0675423 0.0901001 0.0910286 0.107628 0.10234 0.118912 0.11017 0.128468 0.116709 0.137794 0.123067 0.147559 0.129976 0.15845 0.137692 0.170967 0.146462 0.186185 0.156676 0.205921 0.169369 0.231411 0.190581 0.261596 ) ; boundaryField { inlet { type fixedValue; value uniform 0.375; } outlet { type zeroGradient; } upperWall { type kqRWallFunction; value nonuniform List<scalar> 223 ( 0.509259 0.621673 0.712026 0.782274 0.835441 0.874864 0.90465 0.928181 0.946143 0.959456 0.968746 0.97481 0.978132 0.979344 0.978783 0.976926 0.973983 0.97031 0.967329 0.963976 0.960275 0.956251 0.951932 0.947345 0.942518 0.937477 0.932251 0.926863 0.921342 0.91571 0.910187 0.905012 0.900162 0.895611 0.89134 0.887326 0.883553 0.880026 0.876727 0.873632 0.870715 0.867957 0.865331 0.862822 0.860404 0.85806 0.855767 0.853505 0.851254 0.848991 0.846696 0.844343 0.84191 0.83937 0.836693 0.833853 0.830814 0.827549 0.824017 0.820185 0.816013 0.811458 0.806481 0.80103 0.795066 0.788528 0.781375 0.773543 0.764979 0.755623 0.745409 0.734278 0.722153 0.708971 0.694647 0.679109 0.662266 0.644034 0.624313 0.603008 0.580004 0.555204 0.528482 0.499756 0.468914 0.435924 0.40078 0.363601 0.324651 0.2844 0.243731 0.203829 0.166614 0.133524 0.106959 0.0886255 0.0789357 0.0782079 0.0866065 0.0944362 0.100538 0.104408 0.105094 0.100517 0.0934105 0.0865765 0.0813736 0.0786159 0.0781863 0.0796886 0.0825712 0.086425 0.0909699 0.0957068 0.0999496 0.103379 0.106191 0.106863 0.105715 0.103136 0.0992871 0.0943812 0.0886904 0.0825365 0.0760832 0.0696486 0.0636415 0.0582314 0.0534425 0.049088 0.0451807 0.0417178 0.0387037 0.0362805 0.0352908 0.0347364 0.0346472 0.035313 0.0372942 0.0410756 0.0469453 0.0545097 0.0629147 0.0703286 0.0761972 0.0798535 0.0819569 0.0824029 0.0822685 0.0811495 0.0800259 0.0781692 0.0765268 0.0740325 0.0714377 0.0676344 0.0638133 0.0586276 0.0530444 0.046263 0.0393532 0.0319725 0.0256587 0.0190938 0.0140167 0.0118707 0.0174427 0.0288293 0.0432975 0.0522919 0.0606028 0.0631809 0.0666297 0.0652004 0.0660131 0.0625124 0.0625556 0.0585201 0.0587643 0.0546944 0.0558635 0.0521109 0.0545066 0.0510101 0.0546187 0.0510639 0.055694 0.051618 0.0569541 0.0518609 0.0575189 0.0508779 0.0563588 0.0473682 0.0521538 0.0389418 0.0435276 0.0201242 0.0585048 0.0675423 0.0901001 0.0910286 0.107628 0.10234 0.118912 0.11017 0.128468 0.116709 0.137794 0.123067 0.147559 0.129976 0.15845 0.137692 0.170967 0.146462 0.186185 0.156676 0.205921 0.169369 0.231411 0.190581 0.261596 ) ; } lowerWall { type kqRWallFunction; value nonuniform List<scalar> 250 ( 0.663577 0.875834 1.01735 1.09931 1.14211 1.15538 1.15284 1.13707 1.11686 1.09079 1.06524 1.03683 1.0109 0.983095 0.958281 0.931586 0.907466 0.880802 0.0493346 0.0403595 0.0364502 0.0328243 0.0346006 0.0318173 0.0373694 0.0346442 0.104094 0.0180709 0.0264494 0.106732 0.207122 0.258834 0.294552 0.313846 0.328539 0.33461 0.331279 0.314452 0.288326 0.2546 0.214755 0.174387 0.134033 0.0979293 0.0674769 0.0180709 0.0736995 0.139438 0.180895 0.208059 0.227777 0.241839 0.251268 0.256885 0.259445 0.259596 0.257861 0.254675 0.250458 0.246119 0.241294 0.235692 0.228989 0.220735 0.210602 0.197888 0.182235 0.162913 0.13993 0.114122 0.0884035 0.0716107 0.0743475 0.153741 0.247519 0.220904 0.196503 0.207119 0.433418 0.56793 0.660437 0.731616 0.789246 0.836772 0.877343 0.911771 0.941707 0.967496 0.989978 1.00953 1.02649 1.04127 1.05399 1.06497 1.07433 1.08226 1.0889 1.09437 1.09879 1.10225 1.10488 1.10674 1.10794 1.10857 1.10869 1.10814 1.10693 1.10507 1.10255 1.09938 1.09551 1.0909 1.08549 1.07917 1.07181 1.06324 1.05326 1.04165 1.02818 1.0126 0.994731 0.974435 0.951581 0.92609 0.897997 0.867484 0.834871 0.80059 0.765153 0.728998 0.692352 0.655854 0.619878 0.584883 0.55093 0.518179 0.486836 0.456525 0.429196 0.412835 0.399032 0.385625 0.37265 0.360101 0.348008 0.336403 0.325294 0.314695 0.30457 0.294926 0.285679 0.276854 0.268445 0.260484 0.252913 0.245769 0.238972 0.23258 0.226486 0.220782 0.215328 0.210256 0.205383 0.20089 0.196545 0.192581 0.188709 0.185219 0.181763 0.178693 0.175591 0.172881 0.170068 0.167743 0.165374 0.163519 0.161484 0.159958 0.158137 0.15691 0.155219 0.154242 0.152674 0.151913 0.150446 0.149915 0.148561 0.148308 0.147118 0.14722 0.146331 0.146856 0.14635 0.147464 0.14735 0.149089 0.14936 0.151732 0.15234 0.15531 0.156154 0.159648 0.160588 0.164509 0.165387 0.169644 0.170301 0.174828 0.175069 0.179857 0.179488 0.184555 0.183488 0.18889 0.187036 0.192875 0.190035 0.196184 0.192081 0.198406 0.192567 0.198611 0.190633 0.195547 0.183278 0.189747 0.186205 0.195306 0.193898 0.204107 0.202974 0.21455 0.213428 0.226468 0.225061 0.239869 0.238078 0.255017 0.252934 0.272452 0.270442 0.293033 0.291767 0.317931 0.318487 0.348668 0.352781 0.387295 0.398122 0.436847 ) ; } frontAndBack { type empty; } } // ************************************************************************* //
[ "brennankharris@gmail.com" ]
brennankharris@gmail.com
8ba57fefc00263e22a4cc38119c788d39cfbb916
74d7c833f42594d04ce3d5014dccb32d5def133e
/Strings/checkIP.cpp
701a4db52a35d77143dc7aee6ab0d1ed69d77b45
[]
no_license
shivambehl/Data-Structures-Algo-Questions
8783247cccc417d5cfb2d99756cbabd00ce0d356
52367e6445eb2697ae88c684ba0d0a5c34a69eec
refs/heads/master
2022-05-12T13:01:17.226271
2022-03-19T19:08:20
2022-03-19T19:08:20
248,221,205
0
0
null
null
null
null
UTF-8
C++
false
false
975
cpp
// Validate an IP Address - GeeksForGeeks // https://practice.geeksforgeeks.org/problems/validate-an-ip-address-1587115621/1/ // Not Accepted - Abort signal from abort(3) (SIGABRT) #include<bits/stdc++.h> using namespace std; int check(char *ip_str) { if(ip_str == NULL) return 0; char* ptr = ip_str; int n = 0; while (*ip_str) { n++; if (*ip_str >= '0' && *ip_str <= '9') ++ip_str; else return 0; } if(n > 1 && *ptr == '0') return 0; return 1; } int isValid(char *ip) { if(ip == NULL) return 0; char* ptr = strtok(ip, "."); int segments = 0; while(ptr){ segments++; if(ptr == NULL) return 0; if(!check(ptr)){ return 0; } if(stoi(ptr) < 0 || stoi(ptr) > 255) return 0; ptr = strtok(NULL, "."); } if(segments != 4) return 0; return 1; } int main(){ char ip[1000]; cin>>ip; cout<<isValid(ip); }
[ "shivambehl123@gmail.com" ]
shivambehl123@gmail.com
9cce14b96a6b3be85f5c591d4e946b048e3b4340
de47c8029b54e7a00fb394b266e0e3b42429eea6
/week-02/day-4/task1/task1.cpp
59ac26fb6edb3431bad0918bbf996948f000f751
[]
no_license
greenfox-zerda-sparta/tataiferenc89
b69bc197f4d00829293fff7c29c851cb8668f85f
e60ebeb1f15ee0805d592e4257fca9d974d73470
refs/heads/master
2021-01-17T18:18:13.678486
2017-01-13T10:15:03
2017-01-13T10:15:03
71,350,756
0
0
null
null
null
null
UTF-8
C++
false
false
372
cpp
#include <iostream> #include <string> using namespace std; void square(int *array){ for(int i=0;i<7;i++){ array[i]=array[i]*array[i]; } } int main() { // Write a function that takes an array and squares all the elements in the array int array[7] = {1, 2, 3, 4, 5, 6, 7}; square(array); for(int i=0;i<7;i++){ cout << array[i] << endl; } return 0; }
[ "tatai.ferenc89@gmail.com" ]
tatai.ferenc89@gmail.com
14ac62edd6ad0279a499ede3a4bca5b92ed83ead
f36df0409feb127f026e6ab85053d4b02404aa81
/solutions151-200/problem198.cpp
f39d10aafc0455002fbd9adc7382d73f90052f88
[]
no_license
giaosame/LeetCode
b55e07a84893ba81fa8f3b65954df5e4502bf20e
a0fcce486f5cfdced91dfcba5e44592899addd01
refs/heads/master
2020-07-22T02:43:01.217437
2020-06-01T18:45:05
2020-06-01T18:45:05
207,051,234
0
0
null
null
null
null
UTF-8
C++
false
false
1,503
cpp
// 198. House Robber #include <algorithm> #include <vector> using namespace std; // Recursion: // The maximum money we can get is the maximum between these 2 ways: // 1. Rob the current house and then jump to the house before the previous one: nums[i] + recurRob(i - 2); // 2. Ignore the current house and rob the previous one: recurRob(i - 1); // max_money = max(nums[i] + recurRob(i - 2), recurRob(i - 1)); // This algorithm will process the same i multiple times. class Solution1 { int recurRob(vector<int>& nums, int i) { if (i < 0) return 0; return max(recurRob(nums, i - 2) + nums[i], recurRob(nums, i - 1)); } public: int rob(vector<int>& nums) { return recurRob(nums, nums.size() - 1); } }; // Recursion + memo // To avoid the repetitive computation. class Solution2 { int recurRob(vector<int>& nums, vector<int>& money, int i) { if (i < 0) return 0; if (money[i] != -1) return money[i]; money[i] = max(recurRob(nums, money, i - 2) + nums[i], recurRob(nums, money, i - 1)); return money[i]; } public: int rob(vector<int>& nums) { int n = nums.size(); vector<int> money(n, -1); return recurRob(nums, money, n - 1); } }; // DP1: iterative + memo array class Solution3 { public: int rob(vector<int>& nums) { if (nums.empty()) return 0; int n = nums.size(); vector<int> dp(n + 1); dp[0] = 0; dp[1] = nums[0]; for (int i = 2; i <= n; i++) { dp[i] = max(dp[i - 2] + nums[i - 1], dp[i - 1]); } return dp[n]; } };
[ "qzcqs@icloud.com" ]
qzcqs@icloud.com
54436f2e8aeddf20a83b84a59238679c986888e7
db12881b7f37b3524704e5af9a2da9156f29fcf4
/src/qt/addresstablemodel.h
d6c4d47f5627a90daa3cb2bf725fc8bd1836dd2b
[ "MIT" ]
permissive
melihcanmavis/BlacerCoin
415bf9a06a73a11fcee2bbc6bbcf442a4a2ffdbc
9fd2cef476d2f0446a9f2ccc515fd53dca9ea6c9
refs/heads/master
2020-06-15T09:19:49.416239
2019-06-24T09:02:41
2019-06-24T09:02:41
195,259,024
1
0
null
2019-07-04T14:43:39
2019-07-04T14:43:38
null
UTF-8
C++
false
false
3,504
h
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2018 The BlacerCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_ADDRESSTABLEMODEL_H #define BITCOIN_QT_ADDRESSTABLEMODEL_H #include <QAbstractTableModel> #include <QStringList> class AddressTablePriv; class WalletModel; class CWallet; /** Qt model of the address book in the core. This allows views to access and modify the address book. */ class AddressTableModel : public QAbstractTableModel { Q_OBJECT public: explicit AddressTableModel(CWallet* wallet, WalletModel* parent = 0); ~AddressTableModel(); enum ColumnIndex { Label = 0, /**< User specified label */ Address = 1 /**< Bitcoin address */ }; enum RoleIndex { TypeRole = Qt::UserRole /**< Type of address (#Send or #Receive) */ }; /** Return status of edit/insert operation */ enum EditStatus { OK, /**< Everything ok */ NO_CHANGES, /**< No changes were made during edit operation */ INVALID_ADDRESS, /**< Unparseable address */ DUPLICATE_ADDRESS, /**< Address already in address book */ WALLET_UNLOCK_FAILURE, /**< Wallet could not be unlocked to create new receiving address */ KEY_GENERATION_FAILURE /**< Generating a new public key for a receiving address failed */ }; static const QString Send; /**< Specifies send address */ static const QString Receive; /**< Specifies receive address */ static const QString Zerocoin; /**< Specifies stealth address */ /** @name Methods overridden from QAbstractTableModel @{*/ int rowCount(const QModelIndex& parent) const; int columnCount(const QModelIndex& parent) const; QVariant data(const QModelIndex& index, int role) const; bool setData(const QModelIndex& index, const QVariant& value, int role); QVariant headerData(int section, Qt::Orientation orientation, int role) const; QModelIndex index(int row, int column, const QModelIndex& parent) const; bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()); Qt::ItemFlags flags(const QModelIndex& index) const; /*@}*/ /* Add an address to the model. Returns the added address on success, and an empty string otherwise. */ QString addRow(const QString& type, const QString& label, const QString& address); /* Look up label for address in address book, if not found return empty string. */ QString labelForAddress(const QString& address) const; /* Look up row index of an address in the model. Return -1 if not found. */ int lookupAddress(const QString& address) const; EditStatus getEditStatus() const { return editStatus; } private: WalletModel* walletModel; CWallet* wallet; AddressTablePriv* priv; QStringList columns; EditStatus editStatus; /** Notify listeners that data changed. */ void emitDataChanged(int index); public slots: /* Update address list from core. */ void updateEntry(const QString& address, const QString& label, bool isMine, const QString& purpose, int status); void updateEntry(const QString &pubCoin, const QString &isUsed, int status); friend class AddressTablePriv; }; #endif // BITCOIN_QT_ADDRESSTABLEMODEL_H
[ "root@ubuntu16.local" ]
root@ubuntu16.local
fb1c7078ed2cceb5e26dc626e448f1f441b815bb
284b40f28b09d304aef85a5f803f447d406ae336
/lib/engine/event.hh
587c2de4515f48369c2956ed0446b18b09c1b5d4
[]
no_license
elthariel/kiara
c24ac07bef9dbf466c009c6dcc522b1bb9e8e31e
71e37ff6a53b6a4b0ba9b923e42dfbdbb7cf7d0b
refs/heads/master
2020-05-19T18:44:26.380169
2010-08-03T11:49:07
2010-08-03T11:49:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,117
hh
/* ** note.hh ** Login : <elthariel@rincevent> ** Started on Thu Jul 8 00:33:48 2010 elthariel ** $Id$ ** ** Author(s): ** - elthariel <elthariel@gmail.com> ** ** Copyright (C) 2010 elthariel ** 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, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef NOTE_HH_ # define NOTE_HH_ #include <stdint.h> // FIXME, packed attribute is not defined //struct __attribute__((packed)) Event struct Event { Event(); /* * Copy Constructor. this->next is reset to 0 */ Event(const Event &an_event); // this->next is kept unchanged Event &operator=(const Event& an_event); /* * Overload new and delete operator to avoid calls to malloc but * instead use our own allocator (memory pool / Rt::Chunk) */ void *operator new(size_t sz); void operator delete(void *e); Event *next; char midi[3]; char flags; unsigned short duration; // will store duration for notes. void reset(); void set_chan(unsigned char); unsigned char get_chan(); void set_status(unsigned char); unsigned char get_status(); void set_data1(unsigned char); unsigned char get_data1(); void set_data2(unsigned char); unsigned char get_data2(); void noteon(); void noteoff(); void cc(); bool is_noteon(); bool is_noteoff(); bool is_cc(); }; #endif /* !NOTE_HH_ */
[ "elthariel@gmail.com" ]
elthariel@gmail.com
3aa78c47ca3853bcbaf7241e4766a14b04bb5326
6bcdb9e8836cd60e972be865beb50fbfefdfa650
/libs/core/include/fcppt/move_clear.hpp
c13c43036b562cfd158772f7ace077109328afd7
[ "BSL-1.0" ]
permissive
pmiddend/fcppt
4dbba03f7386c1e0d35c21aa0e88e96ed824957f
9f437acbb10258e6df6982a550213a05815eb2be
refs/heads/master
2020-09-22T08:54:49.438518
2019-11-30T14:14:04
2019-11-30T14:14:04
225,129,546
0
0
BSL-1.0
2019-12-01T08:31:12
2019-12-01T08:31:11
null
UTF-8
C++
false
false
1,037
hpp
// Copyright Carl Philipp Reh 2009 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_MOVE_CLEAR_HPP_INCLUDED #define FCPPT_MOVE_CLEAR_HPP_INCLUDED #include <fcppt/config/external_begin.hpp> #include <utility> #include <fcppt/config/external_end.hpp> namespace fcppt { /** \brief Moves out of a value and clears it. \ingroup fcpptvarious Certain types can be moved out of but are then left in an unspecific state that only allows them to be destroyed or assigned. This function first moves out of the value and then assigns a default constructed value. For example, this function can be used to move out of a container and leave an empty container behind. \tparam Type Must be movable and have a default constructor. */ template< typename Type > Type move_clear( Type &_value ) { Type result( std::move( _value ) ); _value = Type(); return result; } } #endif
[ "carlphilippreh@gmail.com" ]
carlphilippreh@gmail.com
e3226e6db42034f552d624aa8bc0ac255adc1d6e
5ed9636fb2c8ed895cba0f7dbab8805b1fe1bab2
/Lab 6/main.cpp
fbbc5657155e600e6bf3e78a98277cd4a969ba54
[]
no_license
Vafflentine/WinAPI-Projects
0f459f6fe5d05e4d56d0fab1793a66679edeb50c
d55e7dfdc62d695842dde92f090de42b753456d9
refs/heads/master
2022-11-21T21:12:06.942365
2020-07-28T12:10:18
2020-07-28T12:10:18
282,865,983
1
0
null
null
null
null
UTF-8
C++
false
false
5,814
cpp
#include "main.h" static const int WINDOW_SIZEH = 600; static const int WINDOW_SIZEV = 450; static HINSTANCE hInst; static LPCTSTR szWindowClass = "lab"; static LPCTSTR szTitle = "lab"; static OPENFILENAME ofn; static char new_file_name[BUFF_SIZE] = ""; static char fileName[BUFF_SIZE] = ""; ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG msg; MyRegisterClass(hInstance); if (!InitInstance(hInstance, nCmdShow)) { return FALSE; } while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; } ATOM MyRegisterClass(HINSTANCE hInstance) { WNDCLASSEX wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = (WNDPROC)WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = LoadIcon(NULL, IDI_WINLOGO); wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); wcex.lpszMenuName = MAKEINTRESOURCE(IDR_MENU1); wcex.lpszClassName = szWindowClass; wcex.hIconSm = NULL; return RegisterClassEx(&wcex); } BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { HWND hWnd; hInst = hInstance; hWnd = CreateWindow( szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); if (!hWnd) { return FALSE; } initOpen(hWnd); ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); return TRUE; } BOOL initOpen(HWND hWnd) { ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = hWnd; ofn.lpstrFile = (LPSTR)fileName; ofn.nMaxFile = sizeof(fileName); ofn.lpstrFilter = (LPCSTR)"Text file(.txt)\0 * .txt\0"; ofn.nFilterIndex = 1; ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = 0; ofn.lpstrInitialDir = NULL; return TRUE; } LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { PAINTSTRUCT ps; HDC hdc; RECT rt; static HWND hEdit; switch (message) { case WM_CREATE: hEdit = CreateEdit(hWnd); break; case WM_PAINT: hdc = BeginPaint(hWnd, &ps); GetClientRect(hWnd, &rt); EndPaint(hWnd, &ps); break; case WM_COMMAND: switch (wParam) { case ID_CREATEFILE: CreateNewFile(hWnd); break; case ID_OPENFILE: OpenSelectFile(hEdit); break; case ID_SAVEFILE: SaveFile(hEdit); break; case ID_COPYFILE: CopyLastFile(hWnd); break; } break; /* case WM_KEYDOWN: if (wParam == VK_RETURN) CreateNewFile(hWnd); else if (wParam == VK_TAB) OpenSelectFile(hEdit); else if (wParam == VK_SHIFT) SaveFile(hEdit); else if (wParam == VK_CONTROL) CopyLastFile(hWnd); break; */ case WM_SIZE: MoveWindow(hEdit, 0, 0, LOWORD(lParam), HIWORD(lParam), TRUE); return 0; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; } HWND CreateEdit(HWND hWnd) { return CreateWindow("Edit", NULL, WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | ES_MULTILINE, 0, 0, WINDOW_SIZEH, WINDOW_SIZEV, hWnd, (HMENU)"ID_EDIT", hInst, NULL); } void CreateNewFile(HWND hWnd) { DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), hWnd, (DLGPROC)CreateNewFileProc); CreateFile((LPCSTR)new_file_name, NULL, NULL, NULL, CREATE_ALWAYS, NULL, NULL); } void OpenSelectFile(HWND hEdit) { HANDLE hf = (HANDLE)NULL; ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST; if (GetOpenFileName(&ofn)) { hf = CreateFile(ofn.lpstrFile, GENERIC_READ, 0, (LPSECURITY_ATTRIBUTES)NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, (HANDLE)NULL); if (hf == INVALID_HANDLE_VALUE) return; FillEdit(hEdit, hf); CloseHandle(hf); } } void FillEdit(HWND hEdit, HANDLE hf) { int len = GetFileSize(hf, NULL); char *buffer = new char[len + 1]; ReadFile(hf, buffer, len, NULL, NULL); buffer[len] = '\0'; MessageBox(hEdit, "Work", "ERROR", NULL); SendMessage(hEdit, WM_SETTEXT, WPARAM(0), LPARAM("")); SendMessage(hEdit, WM_SETTEXT, WPARAM(0), (LPARAM) buffer); delete[] buffer; } void SaveFile(HWND hEdit) { HANDLE hf = (HANDLE)NULL; ofn.Flags = OFN_PATHMUSTEXIST; if (GetSaveFileName(&ofn)) { hf = CreateFile(fileName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); GetEditText(hEdit, hf); CloseHandle(hf); } } void GetEditText(HWND hEdit, HANDLE hf) { int len = GetWindowTextLength(hEdit); char *buffer = new char[len + 1]; SendMessage(hEdit, WM_GETTEXT, (WPARAM)len, (LPARAM)buffer); buffer[len] = '\0'; WriteFile(hf, buffer, len, NULL, NULL); delete[] buffer; } void CopyLastFile(HWND hEdit) { UINT copy_count = 1; static char new_file_name[BUFF_SIZE] = ""; static char buffer[BUFF_SIZE] = ""; if (!strlen(fileName)) return; strncpy_s(buffer, fileName, BUFF_SIZE); for (int i = strlen(buffer) - 1; i; --i) { if (buffer[i] == '.') { buffer[i] = '\0'; break; } } do { wsprintf(new_file_name, "%s(%u).txt", buffer, copy_count++); } while (!CopyFile(fileName, new_file_name, TRUE)); } BOOL CALLBACK CreateNewFileProc(HWND hDlg, UINT msg, WPARAM wParm, LPARAM lParam) { static HWND hEdit; switch (msg) { case WM_COMMAND: switch (LOWORD(wParm)) { case IDOK: hEdit = GetDlgItem(hDlg, IDC_EDIT1); SendMessage(hEdit, WM_GETTEXT, (WPARAM)BUFF_SIZE, (LPARAM)new_file_name); case IDCANCEL: EndDialog(hDlg, LOWORD(wParm)); return TRUE; } } return FALSE; }
[ "noreply@github.com" ]
noreply@github.com
420df4e48488b90e6c55d672a43b065317bc24b4
e51d009c6c6a1633c2c11ea4e89f289ea294ec7e
/xr2-dsgn/sources/xray/editor/sound/sources/sound_object_wrapper.h
1068f1e1111b61385c848d990e1bc3bf828846c1
[]
no_license
avmal0-Cor/xr2-dsgn
a0c726a4d54a2ac8147a36549bc79620fead0090
14e9203ee26be7a3cb5ca5da7056ecb53c558c72
refs/heads/master
2023-07-03T02:05:00.566892
2021-08-06T03:10:53
2021-08-06T03:10:53
389,939,196
3
2
null
null
null
null
UTF-8
C++
false
false
2,369
h
//////////////////////////////////////////////////////////////////////////// // Created : 07.07.2011 // Author : Sergey Prishchepa // Copyright (C) GSC Game World - 2011 //////////////////////////////////////////////////////////////////////////// #ifndef SOUND_OBJECT_WRAPPER_H_INCLUDED #define SOUND_OBJECT_WRAPPER_H_INCLUDED #include <xray/sound/sound_emitter.h> using namespace System; using namespace System::ComponentModel; using namespace xray::sound; namespace xray { namespace sound_editor { ref class sound_object_instance; ref class sound_collection_item; public ref class sound_object_wrapper abstract { typedef System::Collections::Generic::List<sound_collection_item^> items_list; public: sound_object_wrapper (String^ name); ~sound_object_wrapper (); sound_object_instance^ create_instance (); sound_instance_proxy_ptr emit (sound_scene_ptr& scene, world_user& user) {return (*m_sound)->emit(scene, user);}; virtual void apply_changes (bool load_resources) = 0; virtual void revert_changes () = 0; virtual void save () = 0; virtual void save (xray::configs::lua_config_value& cfg) = 0; virtual void load (Action<sound_object_wrapper^>^ options_callback, Action<sound_object_wrapper^>^ sound_callback) = 0; virtual void load (xray::configs::lua_config_value const& cfg) = 0; virtual items_list^ items () = 0; virtual void add_item (sound_collection_item^ itm) = 0; virtual void remove_item (sound_collection_item^ itm) = 0; [CategoryAttribute("Sound object"), DisplayNameAttribute("name"), DescriptionAttribute("name")] property String^ name { String^ get() {return m_name;}; } [CategoryAttribute("Sound object"), DisplayNameAttribute("is_loaded"), DescriptionAttribute("is sound loaded")] property Boolean is_loaded { Boolean get() {return m_is_loaded;}; } property Boolean is_exist { Boolean get() {return m_is_exist;} } protected: sound::sound_emitter_ptr* m_sound; Action<sound_object_wrapper^>^ m_sound_loaded_callback; Action<sound_object_wrapper^>^ m_options_loaded_callback; String^ m_name; Boolean m_is_loaded; Boolean m_is_exist; }; // class sound_object_wrapper } // namespace sound_editor } // namespace xray #endif // #ifndef SOUND_OBJECT_WRAPPER_H_INCLUDED
[ "youalexandrov@icloud.com" ]
youalexandrov@icloud.com
9af6f64ef683e08404d632b7bb90c4c6d5090cd2
434811e491d9b32082cf24371451c19267c80513
/mp1-distributed-log-querier/log_file_generator.cpp
0fcdb5d885adc0699606c2efe3edb310b6d9845a
[]
no_license
CaseyPan/maplejuice-cloud-computing
e5edc132c44e61c1132a0162ad51c708d5f81b76
58819599ed7b771420c9d8cfceed1a602103ccde
refs/heads/master
2023-03-17T04:47:47.069637
2020-05-22T02:10:16
2020-05-22T02:10:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,434
cpp
// // Created by Yichen Yang on 9/15/19. // #include <iostream> #include <string> #include <random> #include <vector> #include <unordered_map> #include <fstream> using namespace std; int main(){ /// setup the log file name, test case chars vector<string> grep_item; vector<char> step_char = {'a', 'c', 'e', 'f', 'g', 'h', 'j', 'k'}; int step_now = 0; int step_length = 8; unordered_map<string, vector<int>> grep_item_count; string curr_grep = ""; vector<string> log_file_name = {"vm1_test.log", "vm2_test.log","vm3_test.log","vm4_test.log","vm5_test.log","vm6_test.log","vm7_test.log","vm8_test.log","vm9_test.log","vm10_test.log"}; vector<vector<string>> logs; /// clean the environment for(int i = 0; i < 10; i++){ remove(log_file_name[i].c_str()); } for(int i = 0; i < 10; i++){ vector<string> curr; logs.push_back(curr); } /// generate the random engine default_random_engine e; uniform_int_distribution<unsigned> u(20, 50); /// use random engine to generate random number of lines of different grep request /// this part will cover the patterns that are frequent and somewhat frequent /// it will grep some and almost all logs for(step_now = 0; step_now < step_length; step_now++){ curr_grep += step_char[step_now]; grep_item.push_back(curr_grep); vector<int> begin(10, 0); grep_item_count[curr_grep] = begin; for(int i = 0; i < 10; i++){ int curr_rand; curr_rand = u(e); for(int j = 0; j < curr_rand; j++){ logs[i].push_back(curr_grep); } for(const auto & p : grep_item){ grep_item_count[p][i] += curr_rand; } } } /// generate fixed number of specific grep request string fixed_grep = "bcdefg"; grep_item.push_back(fixed_grep); vector<int> fixed_grep_count(10, 33); grep_item_count[fixed_grep] = fixed_grep_count; for(int i = 0; i < 10; i++){ for(int j = 0; j < 33; j++){ logs[i].push_back(fixed_grep); } } /// generate fixed number of general use grep request fixed_grep = "b"; grep_item.push_back(fixed_grep); vector<int> fixed_grep_count2(10, 88); grep_item_count[fixed_grep] = fixed_grep_count2; for(int i = 0; i < 10; i++){ for(int j = 0; j < 55; j++){ logs[i].push_back(fixed_grep); } } /// generate rare pattern, it will only appear once in the grep request fixed_grep = "zzzzzzzzz"; grep_item.push_back(fixed_grep); vector<int> fixed_grep_count3(10, 1); grep_item_count[fixed_grep] = fixed_grep_count3; for(int i = 0; i < 10; i++){ logs[i].push_back(fixed_grep); } /// generate the vmX_test.log files for(int i = 0 ; i < 3; i++){ ofstream log_output(log_file_name[i]); int length = logs[i].size(); for(int j = 0 ; j < length; j++){ log_output << logs[i][j] << '\n'; } } /// generate the test_answer file which contains the expected answer string log_answer_name = "test_answer"; remove(log_answer_name.c_str()); vector<vector<string>> log_answers; for(int i = 0; i < 10; i++){ vector<string> curr; log_answers.push_back(curr); } /// generate the test_request file which contains all the requests corresponding to the answer string log_request_name = "test_request"; remove(log_request_name.c_str()); vector<string> log_requests; string curr_grep_request; string curr_grep_answer; int length = grep_item.size(); for(int i = 0 ; i < length; i++){ curr_grep_request = "grep '" + grep_item[i] + "' vm_test.log"; log_requests.push_back(curr_grep_request); for(int j = 0 ; j < 3; j++){ if(grep_item_count[grep_item[i]][j] > 1){ curr_grep_answer = "From vm" + to_string(j + 1) + ": " + to_string(grep_item_count[grep_item[i]][j]) + " lines."; log_answers[j].push_back(curr_grep_answer); }else{ curr_grep_answer = "From vm" + to_string(j + 1) + ": " + to_string(grep_item_count[grep_item[i]][j]) + " line."; log_answers[j].push_back(curr_grep_answer); } } } /// generate the most frequent request pattern and test the regular expression /// it will contain all the logs curr_grep_request = "grep -E '*' vm_test.log"; log_requests.push_back(curr_grep_request); for(int j = 0 ; j < 3; j++){ int curr_total_length = logs[j].size(); curr_grep_answer = "From vm" + to_string(j + 1) + ": " + to_string(curr_total_length) + " lines."; log_answers[j].push_back(curr_grep_answer); } /// now write the request and answers to the files int request_length = log_requests.size(); ofstream request_out; request_out.open(log_request_name); for(int i = 0 ; i < request_length; i++) { request_out << log_requests[i] << '\n'; } request_out << "exit\n" ; request_out.close(); int answer_length = log_answers[0].size(); ofstream answer_out; answer_out.open(log_answer_name); for(int i = 0; i < answer_length; i++){ for(int j = 0 ; j < 3; j++){ answer_out << log_answers[j][i] << '\n'; } } answer_out.close(); }
[ "suwenhao@umich.edu" ]
suwenhao@umich.edu
940b84b9266fc91719566c9153d481073b674d74
877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a
/app/src/main/cpp/dir7941/dir22441/dir26975/dir27120/dir27445/file27455.cpp
aa222410c65cf4d570dcd8ee8e1a61705a18a996
[]
no_license
tgeng/HugeProject
829c3bdfb7cbaf57727c41263212d4a67e3eb93d
4488d3b765e8827636ce5e878baacdf388710ef2
refs/heads/master
2022-08-21T16:58:54.161627
2020-05-28T01:54:03
2020-05-28T01:54:03
267,468,475
0
0
null
null
null
null
UTF-8
C++
false
false
115
cpp
#ifndef file27455 #error "macro file27455 must be defined" #endif static const char* file27455String = "file27455";
[ "tgeng@google.com" ]
tgeng@google.com
92f8a7e3dccc4e8094fbedb27c4b46fa2c628c7b
85593716eec54a47e28956c42acbee5210999573
/wap_live555/src/waptestRtspClient.cpp
90695be92bb24a1b1043753e4dd42b9badfb30ec
[]
no_license
funningboy/pylive555
0cc4e694e5cfdc36a9b8a15caf6074983a00317a
9f85847b54d0c3230b8fa44cc32b5a553e58ff7b
refs/heads/master
2020-05-21T00:34:29.545797
2014-08-10T14:35:33
2014-08-10T14:35:33
22,156,400
1
1
null
null
null
null
UTF-8
C++
false
false
17,993
cpp
#include <Python/Python.h> #include "waptestRtspClient.h" // Counts how many streams (i.e., "RTSPClient"s) are currently in use. static unsigned rtspClientCount = 0; static class TaskScheduler* scheduler; static class UsageEnvironment* env; char eventLoopWatchVariable =0; // A function that outputs a string that identifies each stream (for debugging output). Modify this if you wish: UsageEnvironment& operator<<(UsageEnvironment& env, const RTSPClient& rtspClient) { return env << "[URL:\"" << rtspClient.url() << "\"]: "; } // A function that outputs a string that identifies each subsession (for debugging output). Modify this if you wish: UsageEnvironment& operator<<(UsageEnvironment& env, const MediaSubsession& subsession) { return env << subsession.mediumName() << "/" << subsession.codecName(); } // Implementation of the RTSP 'response handlers': void continueAfterDESCRIBE(RTSPClient* rtspClient, int resultCode, char* resultString) { do { UsageEnvironment& env = rtspClient->envir(); // alias StreamClientState& scs = ((ourRTSPClient*)rtspClient)->scs; // alias if (resultCode != 0) { env << *rtspClient << "Failed to get a SDP description: " << resultString << "\n"; delete[] resultString; break; } char* const sdpDescription = resultString; env << *rtspClient << "Got a SDP description:\n" << sdpDescription << "\n"; // Create a media session object from this SDP description: scs.session = MediaSession::createNew(env, sdpDescription); delete[] sdpDescription; // because we don't need it anymore if (scs.session == NULL) { env << *rtspClient << "Failed to create a MediaSession object from the SDP description: " << env.getResultMsg() << "\n"; break; } else if (!scs.session->hasSubsessions()) { env << *rtspClient << "This session has no media subsessions (i.e., no \"m=\" lines)\n"; break; } // Then, create and set up our data source objects for the session. We do this by iterating over the session's 'subsessions', // calling "MediaSubsession::initiate()", and then sending a RTSP "SETUP" command, on each one. // (Each 'subsession' will have its own data source.) scs.iter = new MediaSubsessionIterator(*scs.session); setupNextSubsession(rtspClient); return; } while (0); // An unrecoverable error occurred with this stream. shutdownStream(rtspClient); } // By default, we request that the server stream its data using RTP/UDP. // If, instead, you want to request that the server stream via RTP-over-TCP, change the following to True: #define REQUEST_STREAMING_OVER_TCP False void setupNextSubsession(RTSPClient* rtspClient) { UsageEnvironment& env = rtspClient->envir(); // alias StreamClientState& scs = ((ourRTSPClient*)rtspClient)->scs; // alias scs.subsession = scs.iter->next(); if (scs.subsession != NULL) { if (!scs.subsession->initiate()) { env << *rtspClient << "Failed to initiate the \"" << *scs.subsession << "\" subsession: " << env.getResultMsg() << "\n"; setupNextSubsession(rtspClient); // give up on this subsession; go to the next one } else { env << *rtspClient << "Initiated the \"" << *scs.subsession << "\" subsession ("; if (scs.subsession->rtcpIsMuxed()) { env << "client port " << scs.subsession->clientPortNum(); } else { env << "client ports " << scs.subsession->clientPortNum() << "-" << scs.subsession->clientPortNum()+1; } env << ")\n"; // Continue setting up this subsession, by sending a RTSP "SETUP" command: rtspClient->sendSetupCommand(*scs.subsession, continueAfterSETUP, False, REQUEST_STREAMING_OVER_TCP); } return; } // We've finished setting up all of the subsessions. Now, send a RTSP "PLAY" command to start the streaming: if (scs.session->absStartTime() != NULL) { // Special case: The stream is indexed by 'absolute' time, so send an appropriate "PLAY" command: rtspClient->sendPlayCommand(*scs.session, continueAfterPLAY, scs.session->absStartTime(), scs.session->absEndTime()); } else { scs.duration = scs.session->playEndTime() - scs.session->playStartTime(); rtspClient->sendPlayCommand(*scs.session, continueAfterPLAY); } } void continueAfterSETUP(RTSPClient* rtspClient, int resultCode, char* resultString) { do { UsageEnvironment& env = rtspClient->envir(); // alias StreamClientState& scs = ((ourRTSPClient*)rtspClient)->scs; // alias if (resultCode != 0) { env << *rtspClient << "Failed to set up the \"" << *scs.subsession << "\" subsession: " << resultString << "\n"; break; } env << *rtspClient << "Set up the \"" << *scs.subsession << "\" subsession ("; if (scs.subsession->rtcpIsMuxed()) { env << "client port " << scs.subsession->clientPortNum(); } else { env << "client ports " << scs.subsession->clientPortNum() << "-" << scs.subsession->clientPortNum()+1; } env << ")\n"; // Having successfully setup the subsession, create a data sink for it, and call "startPlaying()" on it. // (This will prepare the data sink to receive data; the actual flow of data from the client won't start happening until later, // after we've sent a RTSP "PLAY" command.) scs.subsession->sink = DummySink::createNew(env, *scs.subsession, rtspClient->url(), rtspClient); // perhaps use your own custom "MediaSink" subclass instead if (scs.subsession->sink == NULL) { env << *rtspClient << "Failed to create a data sink for the \"" << *scs.subsession << "\" subsession: " << env.getResultMsg() << "\n"; break; } env << *rtspClient << "Created a data sink for the \"" << *scs.subsession << "\" subsession\n"; scs.subsession->miscPtr = rtspClient; // a hack to let subsession handle functions get the "RTSPClient" from the subsession scs.subsession->sink->startPlaying(*(scs.subsession->readSource()), subsessionAfterPlaying, scs.subsession); // Also set a handler to be called if a RTCP "BYE" arrives for this subsession: if (scs.subsession->rtcpInstance() != NULL) { scs.subsession->rtcpInstance()->setByeHandler(subsessionByeHandler, scs.subsession); } } while (0); delete[] resultString; // Set up the next subsession, if any: setupNextSubsession(rtspClient); } void continueAfterPLAY(RTSPClient* rtspClient, int resultCode, char* resultString) { Boolean success = False; do { UsageEnvironment& env = rtspClient->envir(); // alias StreamClientState& scs = ((ourRTSPClient*)rtspClient)->scs; // alias if (resultCode != 0) { env << *rtspClient << "Failed to start playing session: " << resultString << "\n"; break; } // Set a timer to be handled at the end of the stream's expected duration (if the stream does not already signal its end // using a RTCP "BYE"). This is optional. If, instead, you want to keep the stream active - e.g., so you can later // 'seek' back within it and do another RTSP "PLAY" - then you can omit this code. // (Alternatively, if you don't want to receive the entire stream, you could set this timer for some shorter value.) if (scs.duration > 0) { unsigned const delaySlop = 2; // number of seconds extra to delay, after the stream's expected duration. (This is optional.) scs.duration += delaySlop; unsigned uSecsToDelay = (unsigned)(scs.duration*1000000); scs.streamTimerTask = env.taskScheduler().scheduleDelayedTask(uSecsToDelay, (TaskFunc*)streamTimerHandler, rtspClient); } env << *rtspClient << "Started playing session"; if (scs.duration > 0) { env << " (for up to " << scs.duration << " seconds)"; } env << "...\n"; success = True; } while (0); delete[] resultString; if (!success) { // An unrecoverable error occurred with this stream. shutdownStream(rtspClient); } } // Implementation of the other event handlers: void subsessionAfterPlaying(void* clientData) { MediaSubsession* subsession = (MediaSubsession*)clientData; RTSPClient* rtspClient = (RTSPClient*)(subsession->miscPtr); // Begin by closing this subsession's stream: Medium::close(subsession->sink); subsession->sink = NULL; // Next, check whether *all* subsessions' streams have now been closed: MediaSession& session = subsession->parentSession(); MediaSubsessionIterator iter(session); while ((subsession = iter.next()) != NULL) { if (subsession->sink != NULL) return; // this subsession is still active } // All subsessions' streams have now been closed, so shutdown the client: shutdownStream(rtspClient); } void subsessionByeHandler(void* clientData) { MediaSubsession* subsession = (MediaSubsession*)clientData; RTSPClient* rtspClient = (RTSPClient*)subsession->miscPtr; UsageEnvironment& env = rtspClient->envir(); // alias env << *rtspClient << "Received RTCP \"BYE\" on \"" << *subsession << "\" subsession\n"; // Now act as if the subsession had closed: subsessionAfterPlaying(subsession); } void streamTimerHandler(void* clientData) { ourRTSPClient* rtspClient = (ourRTSPClient*)clientData; StreamClientState& scs = rtspClient->scs; // alias scs.streamTimerTask = NULL; // Shut down the stream: shutdownStream(rtspClient); } void shutdownStream(RTSPClient* rtspClient, int exitCode) { UsageEnvironment& env = rtspClient->envir(); // alias StreamClientState& scs = ((ourRTSPClient*)rtspClient)->scs; // alias // First, check whether any subsessions have still to be closed: if (scs.session != NULL) { Boolean someSubsessionsWereActive = False; MediaSubsessionIterator iter(*scs.session); MediaSubsession* subsession; while ((subsession = iter.next()) != NULL) { if (subsession->sink != NULL) { Medium::close(subsession->sink); subsession->sink = NULL; if (subsession->rtcpInstance() != NULL) { subsession->rtcpInstance()->setByeHandler(NULL, NULL); // in case the server sends a RTCP "BYE" while handling "TEARDOWN" } someSubsessionsWereActive = True; } } if (someSubsessionsWereActive) { // Send a RTSP "TEARDOWN" command, to tell the server to shutdown the stream. // Don't bother handling the response to the "TEARDOWN". rtspClient->sendTeardownCommand(*scs.session, NULL); } } env << *rtspClient << "Closing the stream.\n"; Medium::close(rtspClient); // Note that this will also cause this stream's "StreamClientState" structure to get reclaimed. if (--rtspClientCount == 0) { // The final stream has ended, so exit the application now. // (Of course, if you're embedding this code into your own application, you might want to comment this out, // and replace it with "eventLoopWatchVariable = 1;", so that we leave the LIVE555 event loop, and continue running "main()".) exit(exitCode); } } // Implementation of "ourRTSPClient": ourRTSPClient* ourRTSPClient::createNew(UsageEnvironment& env, char const* rtspURL, int verbosityLevel, char const* applicationName, portNumBits tunnelOverHTTPPortNum) { return new ourRTSPClient(env, rtspURL, verbosityLevel, applicationName, tunnelOverHTTPPortNum); } ourRTSPClient::ourRTSPClient(UsageEnvironment& env, char const* rtspURL, int verbosityLevel, char const* applicationName, portNumBits tunnelOverHTTPPortNum) : RTSPClient(env,rtspURL, verbosityLevel, applicationName, tunnelOverHTTPPortNum, -1) { // over http/udp fileSink = H264VideoFileSink::createNew(env, "c_live555.h264"); } ourRTSPClient::~ourRTSPClient() { } void ourRTSPClient::onFrameCallback(u_int8_t* frame, long size) { this->func(frame, size, this->user_data); } void ourRTSPClient::onDebug(u_int8_t* frame, long size) { struct timeval tv={0,0}; u_int8_t start_code[] = {0x00, 0x00, 0x00, 0x01}; this->fileSink->addData(start_code, 4, tv); this->fileSink->addData(frame, size, tv); } void ourRTSPClient::registerCallback(pyfunc func, void *user_data) { this->func = func; this->user_data = user_data; } // Implementation of "StreamClientState": StreamClientState::StreamClientState() : iter(NULL), session(NULL), subsession(NULL), streamTimerTask(NULL), duration(0.0) { } StreamClientState::~StreamClientState() { delete iter; if (session != NULL) { // We also need to delete "session", and unschedule "streamTimerTask" (if set) UsageEnvironment& env = session->envir(); // alias env.taskScheduler().unscheduleDelayedTask(streamTimerTask); Medium::close(session); } } // Implementation of "DummySink": // Even though we're not going to be doing anything with the incoming data, we still need to receive it. // Define the size of the buffer that we'll use: #define DUMMY_SINK_RECEIVE_BUFFER_SIZE 100000 DummySink* DummySink::createNew(UsageEnvironment& env, MediaSubsession& subsession, char const* streamId, RTSPClient* rtspClient) { return new DummySink(env, subsession, streamId, rtspClient); } DummySink::DummySink(UsageEnvironment& env, MediaSubsession& subsession, char const* streamId, RTSPClient* rtspClient) : MediaSink(env), fSubsession(subsession), fRtspClient(rtspClient){ fStreamId = strDup(streamId); fReceiveBuffer = new u_int8_t[DUMMY_SINK_RECEIVE_BUFFER_SIZE]; first = 1; } DummySink::~DummySink() { delete[] fReceiveBuffer; delete[] fStreamId; } void DummySink::afterGettingFrame(void* clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds) { DummySink* sink = (DummySink*)clientData; sink->afterGettingFrame(frameSize, numTruncatedBytes, presentationTime, durationInMicroseconds); } // If you don't want to see debugging output for each received frame, then comment out the following line: #define DEBUG_PRINT_EACH_RECEIVED_FRAME 1 void DummySink::afterGettingFrame(unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned /*durationInMicroseconds*/) { ourRTSPClient* nRtspClient = ((ourRTSPClient*)fRtspClient); if (first == 1) { // For H.264 video stream, we use a special sink that insert start_codes: unsigned numSPropRecords; SPropRecord* sPropRecords = parseSPropParameterSets(fSubsession.fmtp_spropparametersets(), numSPropRecords); // [Sequence Parameter Sets (SPS), Picture Parameter Set (PPS)] for(unsigned i=0; i<numSPropRecords; i++) { nRtspClient->onFrameCallback(sPropRecords[i].sPropBytes, sPropRecords[i].sPropLength); #ifdef DEBUG_PRINT_EACH_RECEIVED_FRAME nRtspClient->onDebug(sPropRecords[i].sPropBytes, sPropRecords[i].sPropLength); #endif } delete[] sPropRecords; first = 0; } nRtspClient->onFrameCallback(fReceiveBuffer, DUMMY_SINK_RECEIVE_BUFFER_SIZE); #ifdef DEBUG_PRINT_EACH_RECEIVED_FRAME nRtspClient->onDebug(fReceiveBuffer, DUMMY_SINK_RECEIVE_BUFFER_SIZE); #endif // We've just received a frame of data. (Optionally) print out information about it: #ifdef DEBUG_PRINT_EACH_RECEIVED_FRAME if (fStreamId != NULL) envir() << "Stream \"" << fStreamId << "\"; "; envir() << fSubsession.mediumName() << "/" << fSubsession.codecName() << ":\tReceived " << frameSize << " bytes"; if (numTruncatedBytes > 0) envir() << " (with " << numTruncatedBytes << " bytes truncated)"; char uSecsStr[6+1]; // used to output the 'microseconds' part of the presentation time sprintf(uSecsStr, "%06u", (unsigned)presentationTime.tv_usec); envir() << ".\tPresentation time: " << (int)presentationTime.tv_sec << "." << uSecsStr; if (fSubsession.rtpSource() != NULL && !fSubsession.rtpSource()->hasBeenSynchronizedUsingRTCP()) { envir() << "!"; // mark the debugging output to indicate that this presentation time is not RTCP-synchronized } #ifdef DEBUG_PRINT_NPT envir() << "\tNPT: " << fSubsession.getNormalPlayTime(presentationTime); #endif envir() << "\n"; #endif // Then continue, to request the next frame of data: continuePlaying(); } Boolean DummySink::continuePlaying() { if (fSource == NULL) return False; // sanity check (should not happen) // Request the next frame of data from our input source. "afterGettingFrame()" will get called later, when it arrives: fSource->getNextFrame(fReceiveBuffer, DUMMY_SINK_RECEIVE_BUFFER_SIZE, afterGettingFrame, this, onSourceClosure, this); return True; } /* onCreate rtsp client env set */ void waptestRtspClient::onCreate(char const* progName, char const* rtspURL) { // Begin by setting up our usage environment: scheduler = BasicTaskScheduler::createNew(); env = BasicUsageEnvironment::createNew(*scheduler); // Begin by creating a "RTSPClient" object. Note that there is a separate "RTSPClient" object for each stream that we wish // to receive (even if more than stream uses the same "rtsp://" URL). ourRTSPClient* rtspClient = ourRTSPClient::createNew((*env), rtspURL, RTSP_CLIENT_VERBOSITY_LEVEL, progName); if (rtspClient == NULL) { (*env) << "Failed to create a RTSP client for URL \"" << rtspURL << "\": " << (*env).getResultMsg() << "\n"; return; } rtspClient->registerCallback(this->func, this->user_data); ++rtspClientCount; // Next, send a RTSP "DESCRIBE" command, to get a SDP description for the stream. // Note that this command - like all RTSP commands - is sent asynchronously; we do not block, waiting for a response. // Instead, the following function call returns immediately, and we handle the RTSP response later, from within the event loop: rtspClient->sendDescribeCommand(continueAfterDESCRIBE); }; /* onRegister callback */ void waptestRtspClient::registerCallback(pyfunc func, void *user_data) { this->func = func; this->user_data = user_data; } /* start onRun loop */ void waptestRtspClient::onRun() { eventLoopWatchVariable = 0; env->taskScheduler().doEventLoop(&eventLoopWatchVariable); } void waptestRtspClient::onDestory() { eventLoopWatchVariable = 1; }
[ "funningboy@gmail.com" ]
funningboy@gmail.com
0fbf0b6b3cae5201b4f2e4a7a06a5f2a03d978e5
3b6c36756de6460de9dda9a79fd9e24fd3550288
/src/old/io.h
9f0077184d89e87439bf9e2dedb96ccd197a6605
[]
no_license
0xBAMA/AirplaneMode_Media
efa5368337fd6b82cd03ab70bef4bd77b020c6c8
eac75f27f497a971189a521f58e6df8e8c26c9eb
refs/heads/main
2023-07-09T05:10:33.642796
2021-07-27T21:06:38
2021-07-27T21:06:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
489
h
#ifndef IO_H #define IO_H #include <iostream> using std::cerr, std::cin, std::cout, std::endl, std::flush; #include <stdio.h> #include <vector> #include <string> #include <thread> #include "AMvector.h" class image{ public: image(int x, int y) : xdim(x), ydim(y) { } void render_scene(int nsamples); void write(const vec3 v, const int x, const int y); void output_image(const std::string filename) const; const int xdim, ydim; std::vector<unsigned char> bytes; }; #endif
[ "jon.baker1222@gmail.com" ]
jon.baker1222@gmail.com
7d47509936ec1f53342d67e84566cb6615fb235f
1af49694004c6fbc31deada5618dae37255ce978
/google_apis/gaia/fake_oauth2_access_token_manager.cc
3f3547f60c99ff42543ecbdab87fe0c76217bd75
[ "BSD-3-Clause" ]
permissive
sadrulhc/chromium
59682b173a00269ed036eee5ebfa317ba3a770cc
a4b950c23db47a0fdd63549cccf9ac8acd8e2c41
refs/heads/master
2023-02-02T07:59:20.295144
2020-12-01T21:32:32
2020-12-01T21:32:32
317,678,056
3
0
BSD-3-Clause
2020-12-01T21:56:26
2020-12-01T21:56:25
null
UTF-8
C++
false
false
8,751
cc
// Copyright 2019 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 "google_apis/gaia/fake_oauth2_access_token_manager.h" #include <memory> #include "base/bind.h" #include "base/location.h" #include "base/single_thread_task_runner.h" #include "base/threading/thread_task_runner_handle.h" #include "services/network/public/cpp/shared_url_loader_factory.h" using TokenResponseBuilder = OAuth2AccessTokenConsumer::TokenResponse::Builder; FakeOAuth2AccessTokenManager::PendingRequest::PendingRequest() = default; FakeOAuth2AccessTokenManager::PendingRequest::PendingRequest( const PendingRequest& other) = default; FakeOAuth2AccessTokenManager::PendingRequest::~PendingRequest() = default; FakeOAuth2AccessTokenManager::FakeOAuth2AccessTokenManager( OAuth2AccessTokenManager::Delegate* delegate) : OAuth2AccessTokenManager(delegate), auto_post_fetch_response_on_message_loop_(false) {} FakeOAuth2AccessTokenManager::~FakeOAuth2AccessTokenManager() = default; void FakeOAuth2AccessTokenManager::IssueAllTokensForAccount( const CoreAccountId& account_id, const std::string& access_token, const base::Time& expiration) { DCHECK(!auto_post_fetch_response_on_message_loop_); CompleteRequests(account_id, true, FakeOAuth2AccessTokenManager::ScopeSet(), GoogleServiceAuthError::AuthErrorNone(), TokenResponseBuilder() .WithAccessToken(access_token) .WithExpirationTime(expiration) .build()); } void FakeOAuth2AccessTokenManager::IssueAllTokensForAccount( const CoreAccountId& account_id, const OAuth2AccessTokenConsumer::TokenResponse& token_response) { DCHECK(!auto_post_fetch_response_on_message_loop_); CompleteRequests(account_id, true, FakeOAuth2AccessTokenManager::ScopeSet(), GoogleServiceAuthError::AuthErrorNone(), token_response); } void FakeOAuth2AccessTokenManager::IssueErrorForAllPendingRequestsForAccount( const CoreAccountId& account_id, const GoogleServiceAuthError& error) { DCHECK(!auto_post_fetch_response_on_message_loop_); CompleteRequests(account_id, true, FakeOAuth2AccessTokenManager::ScopeSet(), error, OAuth2AccessTokenConsumer::TokenResponse()); } void FakeOAuth2AccessTokenManager::IssueTokenForScope( const FakeOAuth2AccessTokenManager::ScopeSet& scope, const std::string& access_token, const base::Time& expiration) { DCHECK(!auto_post_fetch_response_on_message_loop_); CompleteRequests(CoreAccountId(), false, scope, GoogleServiceAuthError::AuthErrorNone(), TokenResponseBuilder() .WithAccessToken(access_token) .WithExpirationTime(expiration) .build()); } void FakeOAuth2AccessTokenManager::IssueTokenForScope( const FakeOAuth2AccessTokenManager::ScopeSet& scope, const OAuth2AccessTokenConsumer::TokenResponse& token_response) { DCHECK(!auto_post_fetch_response_on_message_loop_); CompleteRequests(CoreAccountId(), false, scope, GoogleServiceAuthError::AuthErrorNone(), token_response); } void FakeOAuth2AccessTokenManager::IssueErrorForScope( const FakeOAuth2AccessTokenManager::ScopeSet& scope, const GoogleServiceAuthError& error) { DCHECK(!auto_post_fetch_response_on_message_loop_); CompleteRequests(CoreAccountId(), false, scope, error, OAuth2AccessTokenConsumer::TokenResponse()); } void FakeOAuth2AccessTokenManager::IssueErrorForAllPendingRequests( const GoogleServiceAuthError& error) { DCHECK(!auto_post_fetch_response_on_message_loop_); CompleteRequests(CoreAccountId(), true, FakeOAuth2AccessTokenManager::ScopeSet(), error, OAuth2AccessTokenConsumer::TokenResponse()); } void FakeOAuth2AccessTokenManager::IssueTokenForAllPendingRequests( const std::string& access_token, const base::Time& expiration) { DCHECK(!auto_post_fetch_response_on_message_loop_); CompleteRequests(CoreAccountId(), true, FakeOAuth2AccessTokenManager::ScopeSet(), GoogleServiceAuthError::AuthErrorNone(), TokenResponseBuilder() .WithAccessToken(access_token) .WithExpirationTime(expiration) .build()); } void FakeOAuth2AccessTokenManager::IssueTokenForAllPendingRequests( const OAuth2AccessTokenConsumer::TokenResponse& token_response) { DCHECK(!auto_post_fetch_response_on_message_loop_); CompleteRequests(CoreAccountId(), true, FakeOAuth2AccessTokenManager::ScopeSet(), GoogleServiceAuthError::AuthErrorNone(), token_response); } void FakeOAuth2AccessTokenManager::CompleteRequests( const CoreAccountId& account_id, bool all_scopes, const FakeOAuth2AccessTokenManager::ScopeSet& scope, const GoogleServiceAuthError& error, const OAuth2AccessTokenConsumer::TokenResponse& token_response) { std::vector<FakeOAuth2AccessTokenManager::PendingRequest> requests = GetPendingRequests(); // Walk the requests and notify the callbacks. for (auto it = requests.begin(); it != requests.end(); ++it) { // Consumers can drop requests in response to callbacks on other requests // (e.g., OAuthMultiloginFetcher clears all of its requests when it gets an // error on any of them). if (!it->request) continue; bool scope_matches = all_scopes || it->scopes == scope; bool account_matches = account_id.empty() || account_id == it->account_id; if (account_matches && scope_matches) { for (auto& diagnostic_observer : GetDiagnosticsObserversForTesting()) { diagnostic_observer.OnFetchAccessTokenComplete( account_id, it->request->GetConsumerId(), scope, error, base::Time()); } it->request->InformConsumer(error, token_response); } } } std::vector<FakeOAuth2AccessTokenManager::PendingRequest> FakeOAuth2AccessTokenManager::GetPendingRequests() { std::vector<PendingRequest> valid_requests; for (auto it = pending_requests_.begin(); it != pending_requests_.end(); ++it) { if (it->request) valid_requests.push_back(*it); } return valid_requests; } void FakeOAuth2AccessTokenManager::CancelAllRequests() { CompleteRequests( CoreAccountId(), true, FakeOAuth2AccessTokenManager::ScopeSet(), GoogleServiceAuthError(GoogleServiceAuthError::REQUEST_CANCELED), OAuth2AccessTokenConsumer::TokenResponse()); } void FakeOAuth2AccessTokenManager::CancelRequestsForAccount( const CoreAccountId& account_id) { CompleteRequests( account_id, true, FakeOAuth2AccessTokenManager::ScopeSet(), GoogleServiceAuthError(GoogleServiceAuthError::REQUEST_CANCELED), OAuth2AccessTokenConsumer::TokenResponse()); } void FakeOAuth2AccessTokenManager::FetchOAuth2Token( FakeOAuth2AccessTokenManager::RequestImpl* request, const CoreAccountId& account_id, scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory, const std::string& client_id, const std::string& client_secret, const FakeOAuth2AccessTokenManager::ScopeSet& scopes) { PendingRequest pending_request; pending_request.account_id = account_id; pending_request.client_id = client_id; pending_request.client_secret = client_secret; pending_request.url_loader_factory = url_loader_factory; pending_request.scopes = scopes; pending_request.request = request->AsWeakPtr(); pending_requests_.push_back(pending_request); if (auto_post_fetch_response_on_message_loop_) { base::ThreadTaskRunnerHandle::Get()->PostTask( FROM_HERE, base::BindOnce(&FakeOAuth2AccessTokenManager::CompleteRequests, weak_ptr_factory_.GetWeakPtr(), account_id, /*all_scoped=*/true, scopes, GoogleServiceAuthError::AuthErrorNone(), TokenResponseBuilder() .WithAccessToken("access_token") .WithExpirationTime(base::Time::Max()) .build())); } } void FakeOAuth2AccessTokenManager::InvalidateAccessTokenImpl( const CoreAccountId& account_id, const std::string& client_id, const FakeOAuth2AccessTokenManager::ScopeSet& scopes, const std::string& access_token) { for (auto& observer : GetDiagnosticsObserversForTesting()) observer.OnAccessTokenRemoved(account_id, scopes); // Do nothing else, as we don't have a cache from which to remove the token. }
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
7eb4a44fe06fb6941d691aee73665d243f9de5b0
f8e87d106e49d4ebf97a81548359aaaa124193ca
/lab1/ex2/Square.cpp
f63e2bdc871b5b2d47df17bcd57daf2d2663f8d6
[]
no_license
NewShon/ItStep_Cpp
fed3d46fee2e4fe752e05c45dda2a36f51275b3c
b811171f1c28c45c3aad7ba6c33a3fb782131674
refs/heads/master
2021-01-22T08:02:20.921257
2017-07-20T13:50:02
2017-07-20T13:50:02
92,597,989
0
1
null
null
null
null
UTF-8
C++
false
false
719
cpp
#include "Square.h" Square::Square(float a) : a(a), b(0){} Square::Square(float a, float b) : a(a), b(b) {} float Square::getA()const{ return this->a; } float Square::getB()const{ return this->b; } void Square::setA(float a){ this->a = a; } void Square::setB(float b){ this->b = b; } void Square::getSquareArea()const{ if (a > 0 && b > 0) getAB(); else if (a > 0) getAA(); else std::cout << "XPEHb" << std::endl; } float Square::getAA()const{ std::cout << "AA = " << this->a * this->a << std::endl; return (this->a * this->a); } float Square::getAB()const{ std::cout << "AB = " << this->a * this->b << std::endl; return (this->a * this->b); } Square::~Square() { }
[ "noreply@github.com" ]
noreply@github.com
55d63bd09ebf6e39bc6b32ca91bc6511f5c54663
1c007bb06767e29ec2aba312c3c79b40d0f6d394
/Examen2-Parcial/Ejercicio3/main.cpp
8c04f8dce0366df57dfb43a73723af32b89987c1
[]
no_license
jacocal/EstructuraDeDatos
cf4b46a3e06abe7c45fdd6b9b39191fb84d00d7c
f52febfcee2265798661d4b7af8bcbbe44a74fc3
refs/heads/master
2021-01-01T20:10:46.105710
2015-05-15T16:42:21
2015-05-15T16:42:21
29,315,751
0
0
null
null
null
null
UTF-8
C++
false
false
4,570
cpp
#include <iostream> #include "LinkedList.h" #include "Node.h" template <class T> void laUnion (LinkedList<T> p[], LinkedList<T> n[], LinkedList<T> m[]); template <class T> void restaNM (LinkedList<T> p[], LinkedList<T> n[], LinkedList<T> m[]); template <class T> void restaMN (LinkedList<T> p[], LinkedList<T> n[], LinkedList<T> m[]); template <class T> void intersection (LinkedList<T> p[], LinkedList<T> n[], LinkedList<T> m[]); template <class T> void multi (LinkedList<T> p[], LinkedList<T> n[], LinkedList<T> m[]); typedef void (*t_operacion) (LinkedList<int> [], LinkedList<int> [], LinkedList<int> []); int main() { int n; std::cout << "Ingresa la cantidad de números de la primera lista" << std::endl; std::cin >> n; LinkedList<int> * listaN = new LinkedList<int>(); for (int i = 0; i<n ;++i) { int num; std::cout << "Ingresa el número " << i+1 << std::endl; std::cin >> num; listaN->insert(num,i); } int m; std::cout << "Ingresa la cantidad de números de la segunda lista" << std::endl; std::cin >> m; LinkedList<int> * listaM = new LinkedList<int>(); for (int i = 0; i<m ;++i) { int num; std::cout << "Ingresa el número " << i+1 << std::endl; std::cin >> num; listaM->insert(num,i); } LinkedList<int> * listaP = new LinkedList<int>(); std::cout << "Operaciones Disponibles" << std::endl; std::cout <<"1.Unión\n2.Resta N-M\n3.Resta M-N\n4.Intersección\n5.Multiplicación" << std::endl; std::cout <<"Seleccione una opción" << std::endl; int seleccion; std::cin>> seleccion; t_operacion operaciones[5]; operaciones[0] = laUnion; operaciones[1] = restaNM; operaciones[2] = restaMN; operaciones[3] = intersection; operaciones[4] = multi; operaciones[seleccion-1](listaP,listaN,listaM); std::cout << "Lista N:" << *listaN << std::endl; std::cout << "Lista M:" << *listaM << std::endl; std::cout << "Lista P:" << *listaP << std::endl; delete listaM; delete listaN; delete listaP; } template <class T> void laUnion (LinkedList<T> p[], LinkedList<T> n[], LinkedList<T> m[]) { for (int i = 0; i < n->size(); ++i) { p->insert(n->at(i)->getInfo(),i); } for (int i = 0; i < m->size(); ++i) { int repite = 0; for (int j = 0; j < p->size();++j) { if ((m->at(i)->getInfo())==(p->at(j)->getInfo())) { repite++; } } if (repite==0) { p->insert(m->at(i)->getInfo(),m->size()+i); } } } template <class T> void restaNM (LinkedList<T> p[], LinkedList<T> primero[], LinkedList<T> segundo[]) { for (int i = 0; i < primero->size(); ++i) { int repite = 0; for (int j = 0; j < segundo->size();++j) { if ((primero->at(i)->getInfo())==(segundo->at(j)->getInfo())) { repite++; } } if (repite==0) { p->insert(primero->at(i)->getInfo(),i); } } } template <class T> void restaMN (LinkedList<T> p[], LinkedList<T> primero[], LinkedList<T> segundo[]) { for (int i = 0; i < segundo->size(); ++i) { int repite = 0; for (int j = 0; j < primero->size();++j) { if ((segundo->at(i)->getInfo())==(primero->at(j)->getInfo())) { repite++; } } if (repite==0) { p->insert(segundo->at(i)->getInfo(),i); } } } template <class T> void intersection (LinkedList<T> p[], LinkedList<T> n[], LinkedList<T> m[]) { for (int i = 0; i < m->size(); ++i) { int repite = 0; for (int j = 0; j < n->size();++j) { if ((m->at(i)->getInfo())==(n->at(j)->getInfo())) { repite++; } } if (repite!=0) { p->insert(m->at(i)->getInfo(),i); } } } template <class T> void multi (LinkedList<T> p[], LinkedList<T> n[], LinkedList<T> m[]) { int pos=0; for (int i = 0; i < m->size(); ++i) { int repite = 0; for (int j = 0; j < n->size();++j) { int resultado = n->at(j)->getInfo() * m->at(i)->getInfo(); p->insertBack(resultado); } } }
[ "cacovolt@gmail.com" ]
cacovolt@gmail.com
6d2a15e6e6a3d0e3c69e515c4c473be86c37cd98
5a794104c73bccb914d1afbda9c86b7ea526cf18
/Common/TextureMng.h
a6063ba18f21e3665b88ca2f4013b04dda048d8b
[]
no_license
CoolName11/ATools
b2abb36ba8604e5d4d0fa4d48fadf06a5c158a2b
b8ac55e1cf2a90a464accf8708785eb534cbd3fa
refs/heads/master
2021-05-28T16:56:59.815683
2015-04-16T20:47:36
2015-04-16T20:47:36
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,138
h
/////////// // This file is a part of the ATools project // Some parts of code are the property of Microsoft, Qt or Aeonsoft // The rest is released without license and without any warranty /////////// #ifndef TEXTUREMNG_H #define TEXTUREMNG_H class CTexture { public: CTexture(); CTexture(LPDIRECT3DDEVICE9 device); ~CTexture(); void SetDevice(LPDIRECT3DDEVICE9 device); ulong Release(); bool Load(const string& filename, uint mipLevels = 1, DWORD filter = D3DX_FILTER_TRIANGLE | D3DX_FILTER_MIRROR, DWORD mipFilter = D3DX_FILTER_TRIANGLE | D3DX_FILTER_MIRROR, D3DCOLOR colorKey = 0, bool nonPowerOfTwo = false); operator LPDIRECT3DTEXTURE9() const { return m_texture; } LPDIRECT3DTEXTURE9 GetTexture() const { return m_texture; } uint GetWidth() const { return m_width; } uint GetHeight() const { return m_height; } private: LPDIRECT3DDEVICE9 m_device; LPDIRECT3DTEXTURE9 m_texture; uint m_width; uint m_height; }; class CTextureMng { public: static CTextureMng* Instance; CTextureMng(LPDIRECT3DDEVICE9 device); ~CTextureMng(); #ifdef GUI_EDITOR CTexture* GetGUITexture(const string& filename); #else // GUI_EDITOR void SetModelTexturePath(const string& path); CTexture* GetModelTexture(const string& filename); #ifndef MODEL_EDITOR void SetSfxTexturePath(const string& path); string GetSfxTexturePath() const; CTexture* GetSfxTexture(const string& filename); #endif // MODEL_EDITOR #endif // GUI_EDITOR #ifdef WORLD_EDITOR CTexture* GetTerrainTexture(const string& filename); CTexture* GetWeatherTexture(const string& filename); #endif // WORLD_EDITOR private: LPDIRECT3DDEVICE9 m_device; #ifdef GUI_EDITOR QMap<string, CTexture*> m_guiTextures; #else // GUI_EDITOR string m_modelTexturePath; QMap<string, CTexture*> m_modelTextures; #ifndef MODEL_EDITOR string m_sfxTexturePath; QMap<string, CTexture*> m_sfxTextures; #endif // MODEL_EDITOR #endif // GUI_EDITOR #ifdef WORLD_EDITOR QMap<string, CTexture*> m_terrainTextures; QMap<string, CTexture*> m_weatherTextures; #endif // WORLD_EDITOR }; #define TextureMng CTextureMng::Instance #endif // TEXTUREMNG_H
[ "loicsaos@gmail.com" ]
loicsaos@gmail.com
339e82d18c0783521bc89b6657818f553a7c3c12
ca56965a4b410ad1e66da520b3a9d859a402fb09
/gazebo/gazebo/physics/bullet/BulletRaySensor.cc
a387b9180ab4013488f87e00b3b33e08e7cab6ab
[ "Apache-2.0" ]
permissive
UWARG/simSPIKE
46866b0a33b364e91fc4fda3662a03ae4652e4e5
69a5da0f409816e318a16da4e1a2b7b3efab6364
refs/heads/master
2021-05-04T10:32:15.667935
2016-11-06T04:17:38
2016-11-06T04:17:38
48,701,706
1
0
null
null
null
null
UTF-8
C++
false
false
3,976
cc
/* * Copyright (C) 2012-2014 Open Source Robotics Foundation * * 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. * */ /* Desc: Bullet ray sensor * Author: Nate Koenig * Date: 21 May 2009 */ /* #include "World.hh" #include "BulletPhysics.hh" #include "BulletRaySensor.hh" */ using namespace gazebo; using namespace physics; ////////////////////////////////////////////////// BulletRaySensor::BulletRaySensor(Link *_body) : PhysicsRaySensor(_body) { this->body = dynamic_cast<BulletLink*>(_body); if (this->body == NULL) gzthrow("BulletRaySensor requires an BulletLink"); } ////////////////////////////////////////////////// BulletRaySensor::~BulletRaySensor() { std::vector<BulletRayCollision*>::iterator iter; for (iter = this->rays.begin(); iter != this->rays.end(); ++iter) { delete (*iter); } this->rays.clear(); } ////////////////////////////////////////////////// void BulletRaySensor::AddRay(math::Vector3 start, math::Vector3 end, double minRange, double maxRange, bool display) { BulletRayCollision *rayCollision; rayCollision = static_cast<BulletRayCollision*>( this->GetWorld()->CreateCollision("ray", this->body)); rayCollision->SetDisplayRays(display); rayCollision->SetMinLength(minRange); rayCollision->SetMaxLength(maxRange); rayCollision->SetPoints(start, end); this->rays.push_back(rayCollision); } ////////////////////////////////////////////////// int BulletRaySensor::GetCount() const { return this->rays.size(); } ////////////////////////////////////////////////// void BulletRaySensor::GetRelativePoints(int _index, math::Vector3 &_a, math::Vector3 &_b) { if (_index <0 || _index >= static_cast<int>(this->rays.size())) { std::ostringstream stream; stream << "_index[" << _index << "] is out of range[0-" << this->GetCount() << "]"; gzthrow(stream.str()); } this->rays[_index]->GetRelativePoints(_a, _b); } ////////////////////////////////////////////////// double BulletRaySensor::GetRange(int _index) const { if (_index <0 || _index >= static_cast<int>(this->rays.size())) { std::ostringstream stream; stream << "_index[" << _index << "] is out of range[0-" << this->GetCount() << "]"; gzthrow(stream.str()); } return this->rays[_index]->GetLength(); } ////////////////////////////////////////////////// double BulletRaySensor::GetRetro(int _index) const { if (_index <0 || _index >= static_cast<int>(this->rays.size())) { std::ostringstream stream; stream << "_index[" << _index << "] is out of range[0-" << this->GetCount() << "]"; gzthrow(stream.str()); } return this->rays[_index]->GetRetro(); } ////////////////////////////////////////////////// double BulletRaySensor::GetFiducial(int _index) const { if (_index <0 || _index >= static_cast<int>(this->rays.size())) { std::ostringstream stream; stream << "_index[" << _index << "] is out of range[0-" << this->GetCount() << "]"; gzthrow(stream.str()); } return this->rays[_index]->GetFiducial(); } ////////////////////////////////////////////////// void BulletRaySensor::Update() { std::vector<BulletRayCollision*>::iterator iter; for (iter = this->rays.begin(); iter != this->rays.end(); ++iter) { (*iter)->SetLength((*iter)->GetMaxLength()); (*iter)->SetRetro(0.0); (*iter)->SetFiducial(-1); // Get the global points of the line (*iter)->Update(); } }
[ "mehatfie@gmail.com" ]
mehatfie@gmail.com
80eb19b5ba918321184abe2ee2cb707c73eb9b48
750f94edcf23cdc099f72abc38c61c88976c332d
/exceptions/cannot.hpp
2e32227b1b2e6b2aff3c4ab73cc4bdae29f43a55
[]
no_license
akin666/core
b7007ea51e817e28e9c5b903e5ffdf8a23cdcb49
6d0e24970aaf5f16b4f21fec695022beed0abeab
refs/heads/master
2022-11-11T06:33:50.779381
2015-01-25T23:02:07
2015-01-25T23:02:07
276,094,414
0
0
null
null
null
null
UTF-8
C++
false
false
498
hpp
/* * File: Cannot * Author: akin * * Created on 16.1.2015 * */ #ifndef CCC_CANNOT_EXCEPTION_HPP #define CCC_CANNOT_EXCEPTION_HPP #include "exception.hpp" #include <string> namespace core { class Cannot : public Exception { private: std::string msg; public: Cannot( std::string msg ); virtual ~Cannot(); virtual const char* what() const throw(); }; } // corens #endif // CCC_CANNOT_EXCEPTION_HPP
[ "mikael.korpela@zerobit.org" ]
mikael.korpela@zerobit.org
867c51b2f0e7868744b01d1b056feb72ca18d8b6
8dc84558f0058d90dfc4955e905dab1b22d12c08
/third_party/webrtc/modules/desktop_capture/mac/window_list_utils.h
b54ca3d3466cafe03eed5eedd596369f8e68edf8
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-google-patent-license-webm", "LicenseRef-scancode-google-patent-license-webrtc", "LicenseRef-scancode-takuya-ooura", "LicenseRef-scancode-public-domai...
permissive
meniossin/src
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
44f73f7e76119e5ab415d4593ac66485e65d700a
refs/heads/master
2022-12-16T20:17:03.747113
2020-09-03T10:43:12
2020-09-03T10:43:12
263,710,168
1
0
BSD-3-Clause
2020-05-13T18:20:09
2020-05-13T18:20:08
null
UTF-8
C++
false
false
4,129
h
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef MODULES_DESKTOP_CAPTURE_MAC_WINDOW_LIST_UTILS_H_ #define MODULES_DESKTOP_CAPTURE_MAC_WINDOW_LIST_UTILS_H_ #include <ApplicationServices/ApplicationServices.h> #include "modules/desktop_capture/desktop_capture_types.h" #include "modules/desktop_capture/desktop_capturer.h" #include "modules/desktop_capture/desktop_geometry.h" #include "modules/desktop_capture/mac/desktop_configuration.h" #include "rtc_base/function_view.h" namespace webrtc { // Iterates all on-screen windows in decreasing z-order and sends them // one-by-one to |on_window| function. If |on_window| returns false, this // function returns immediately. GetWindowList() returns false if native APIs // failed. Menus, dock, minimized windows (if |ignore_minimized| is true) and // any windows which do not have a valid window id or title will be ignored. bool GetWindowList(rtc::FunctionView<bool(CFDictionaryRef)> on_window, bool ignore_minimized); // Another helper function to get the on-screen windows. bool GetWindowList(DesktopCapturer::SourceList* windows, bool ignore_minimized); // Returns true if the window is occupying a full screen. bool IsWindowFullScreen(const MacDesktopConfiguration& desktop_config, CFDictionaryRef window); // Returns true if the |window| is on screen. This function returns false if // native APIs fail. bool IsWindowOnScreen(CFDictionaryRef window); // Returns true if the window is on screen. This function returns false if // native APIs fail or |id| cannot be found. bool IsWindowOnScreen(CGWindowID id); // Returns utf-8 encoded title of |window|. If |window| is not a window or no // valid title can be retrieved, this function returns an empty string. std::string GetWindowTitle(CFDictionaryRef window); // Returns id of |window|. If |window| is not a window or the window id cannot // be retrieved, this function returns kNullWindowId. WindowId GetWindowId(CFDictionaryRef window); // Returns the DIP to physical pixel scale at |position|. |position| is in // *unscaled* system coordinate, i.e. it's device-independent and the primary // monitor starts from (0, 0). If |position| is out of the system display, this // function returns 1. float GetScaleFactorAtPosition(const MacDesktopConfiguration& desktop_config, DesktopVector position); // Returns the DIP to physical pixel scale factor of the window with |id|. // The bounds of the window with |id| is in DIP coordinates and |size| is the // CGImage size of the window with |id| in physical coordinates. Comparing them // can give the current scale factor. // If the window overlaps multiple monitors, OS will decide on which monitor the // window is displayed and use its scale factor to the window. So this method // still works. float GetWindowScaleFactor(CGWindowID id, DesktopSize size); // Returns the bounds of |window|. If |window| is not a window or the bounds // cannot be retrieved, this function returns an empty DesktopRect. The returned // DesktopRect is in system coordinate, i.e. the primary monitor always starts // from (0, 0). // Deprecated: This function should be avoided in favor of the overload with // MacDesktopConfiguration. DesktopRect GetWindowBounds(CFDictionaryRef window); // Returns the bounds of window with |id|. If |id| does not represent a window // or the bounds cannot be retrieved, this function returns an empty // DesktopRect. The returned DesktopRect is in system coordinates. // Deprecated: This function should be avoided in favor of the overload with // MacDesktopConfiguration. DesktopRect GetWindowBounds(CGWindowID id); } // namespace webrtc #endif // MODULES_DESKTOP_CAPTURE_MAC_WINDOW_LIST_UTILS_H_
[ "arnaud@geometry.ee" ]
arnaud@geometry.ee
ea9285a8896df3910755b1c482696b3508dad68e
b2caf150373dcf0f8ac87b686198a5ec58f711ff
/dependencies/Cinder/include/asio/write.hpp
de309bf2e551f5950bdbf965046fac1ba02e3948
[ "MIT" ]
permissive
AJAbanto/KinectXRobot
fb9ce7516e2dc49298009a0b53b18f01f721218f
1b33f1f9ba096cb22b0a8df6d24209a916d86c2b
refs/heads/master
2023-05-01T06:27:23.999379
2021-04-08T07:53:15
2021-04-08T07:53:15
294,367,089
0
0
MIT
2021-05-18T05:31:52
2020-09-10T09:40:36
C++
UTF-8
C++
false
false
37,639
hpp
// // write.hpp // ~~~~~~~~~ // // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef ASIO_WRITE_HPP #define ASIO_WRITE_HPP #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) #include "asio/detail/config.hpp" #include <cstddef> #include "asio/async_result.hpp" #include "asio/basic_streambuf_fwd.hpp" #include "asio/buffer.hpp" #include "asio/error.hpp" #include "asio/detail/push_options.hpp" namespace asio { /** * @defgroup write asio::write * * @brief Write a certain amount of data to a stream before returning. */ /*@{*/ /// Write all of the supplied data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied buffers has been written. That is, the * bytes transferred is equal to the sum of the buffer sizes. * * @li An error occurred. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param buffers One or more buffers containing the data to be written. The sum * of the buffer sizes indicates the maximum number of bytes to write to the * stream. * * @returns The number of bytes transferred. * * @throws asio::system_error Thrown on failure. * * @par Example * To write a single data buffer use the @ref buffer function as follows: * @code asio::write(s, asio::buffer(data, size)); @endcode * See the @ref buffer documentation for information on writing multiple * buffers in one go, and how to use it with arrays, boost::array or * std::vector. * * @note This overload is equivalent to calling: * @code asio::write( * s, buffers, * asio::transfer_all()); @endcode */ template <typename SyncWriteStream, typename ConstBufferSequence> std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, typename enable_if< is_const_buffer_sequence<ConstBufferSequence>::value >::type* = 0); /// Write all of the supplied data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied buffers has been written. That is, the * bytes transferred is equal to the sum of the buffer sizes. * * @li An error occurred. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param buffers One or more buffers containing the data to be written. The sum * of the buffer sizes indicates the maximum number of bytes to write to the * stream. * * @param ec Set to indicate what error occurred, if any. * * @returns The number of bytes transferred. * * @par Example * To write a single data buffer use the @ref buffer function as follows: * @code asio::write(s, asio::buffer(data, size), ec); @endcode * See the @ref buffer documentation for information on writing multiple * buffers in one go, and how to use it with arrays, boost::array or * std::vector. * * @note This overload is equivalent to calling: * @code asio::write( * s, buffers, * asio::transfer_all(), ec); @endcode */ template <typename SyncWriteStream, typename ConstBufferSequence> std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, asio::error_code& ec, typename enable_if< is_const_buffer_sequence<ConstBufferSequence>::value >::type* = 0); /// Write a certain amount of data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied buffers has been written. That is, the * bytes transferred is equal to the sum of the buffer sizes. * * @li The completion_condition function object returns 0. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param buffers One or more buffers containing the data to be written. The sum * of the buffer sizes indicates the maximum number of bytes to write to the * stream. * * @param completion_condition The function object to be called to determine * whether the write operation is complete. The signature of the function object * must be: * @code std::size_t completion_condition( * // Result of latest write_some operation. * const asio::error_code& error, * * // Number of bytes transferred so far. * std::size_t bytes_transferred * ); @endcode * A return value of 0 indicates that the write operation is complete. A * non-zero return value indicates the maximum number of bytes to be written on * the next call to the stream's write_some function. * * @returns The number of bytes transferred. * * @throws asio::system_error Thrown on failure. * * @par Example * To write a single data buffer use the @ref buffer function as follows: * @code asio::write(s, asio::buffer(data, size), * asio::transfer_at_least(32)); @endcode * See the @ref buffer documentation for information on writing multiple * buffers in one go, and how to use it with arrays, boost::array or * std::vector. */ template <typename SyncWriteStream, typename ConstBufferSequence, typename CompletionCondition> std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, CompletionCondition completion_condition, typename enable_if< is_const_buffer_sequence<ConstBufferSequence>::value >::type* = 0); /// Write a certain amount of data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied buffers has been written. That is, the * bytes transferred is equal to the sum of the buffer sizes. * * @li The completion_condition function object returns 0. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param buffers One or more buffers containing the data to be written. The sum * of the buffer sizes indicates the maximum number of bytes to write to the * stream. * * @param completion_condition The function object to be called to determine * whether the write operation is complete. The signature of the function object * must be: * @code std::size_t completion_condition( * // Result of latest write_some operation. * const asio::error_code& error, * * // Number of bytes transferred so far. * std::size_t bytes_transferred * ); @endcode * A return value of 0 indicates that the write operation is complete. A * non-zero return value indicates the maximum number of bytes to be written on * the next call to the stream's write_some function. * * @param ec Set to indicate what error occurred, if any. * * @returns The number of bytes written. If an error occurs, returns the total * number of bytes successfully transferred prior to the error. */ template <typename SyncWriteStream, typename ConstBufferSequence, typename CompletionCondition> std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, CompletionCondition completion_condition, asio::error_code& ec, typename enable_if< is_const_buffer_sequence<ConstBufferSequence>::value >::type* = 0); /// Write all of the supplied data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied dynamic buffer sequence has been written. * * @li An error occurred. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param buffers The dynamic buffer sequence from which data will be written. * Successfully written data is automatically consumed from the buffers. * * @returns The number of bytes transferred. * * @throws asio::system_error Thrown on failure. * * @note This overload is equivalent to calling: * @code asio::write( * s, buffers, * asio::transfer_all()); @endcode */ template <typename SyncWriteStream, typename DynamicBufferSequence> std::size_t write(SyncWriteStream& s, ASIO_MOVE_ARG(DynamicBufferSequence) buffers, typename enable_if< is_dynamic_buffer_sequence<DynamicBufferSequence>::value >::type* = 0); /// Write all of the supplied data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied dynamic buffer sequence has been written. * * @li An error occurred. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param buffers The dynamic buffer sequence from which data will be written. * Successfully written data is automatically consumed from the buffers. * * @param ec Set to indicate what error occurred, if any. * * @returns The number of bytes transferred. * * @note This overload is equivalent to calling: * @code asio::write( * s, buffers, * asio::transfer_all(), ec); @endcode */ template <typename SyncWriteStream, typename DynamicBufferSequence> std::size_t write(SyncWriteStream& s, ASIO_MOVE_ARG(DynamicBufferSequence) buffers, asio::error_code& ec, typename enable_if< is_dynamic_buffer_sequence<DynamicBufferSequence>::value >::type* = 0); /// Write a certain amount of data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied dynamic buffer sequence has been written. * * @li The completion_condition function object returns 0. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param buffers The dynamic buffer sequence from which data will be written. * Successfully written data is automatically consumed from the buffers. * * @param completion_condition The function object to be called to determine * whether the write operation is complete. The signature of the function object * must be: * @code std::size_t completion_condition( * // Result of latest write_some operation. * const asio::error_code& error, * * // Number of bytes transferred so far. * std::size_t bytes_transferred * ); @endcode * A return value of 0 indicates that the write operation is complete. A * non-zero return value indicates the maximum number of bytes to be written on * the next call to the stream's write_some function. * * @returns The number of bytes transferred. * * @throws asio::system_error Thrown on failure. */ template <typename SyncWriteStream, typename DynamicBufferSequence, typename CompletionCondition> std::size_t write(SyncWriteStream& s, ASIO_MOVE_ARG(DynamicBufferSequence) buffers, CompletionCondition completion_condition, typename enable_if< is_dynamic_buffer_sequence<DynamicBufferSequence>::value >::type* = 0); /// Write a certain amount of data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied dynamic buffer sequence has been written. * * @li The completion_condition function object returns 0. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param buffers The dynamic buffer sequence from which data will be written. * Successfully written data is automatically consumed from the buffers. * * @param completion_condition The function object to be called to determine * whether the write operation is complete. The signature of the function object * must be: * @code std::size_t completion_condition( * // Result of latest write_some operation. * const asio::error_code& error, * * // Number of bytes transferred so far. * std::size_t bytes_transferred * ); @endcode * A return value of 0 indicates that the write operation is complete. A * non-zero return value indicates the maximum number of bytes to be written on * the next call to the stream's write_some function. * * @param ec Set to indicate what error occurred, if any. * * @returns The number of bytes written. If an error occurs, returns the total * number of bytes successfully transferred prior to the error. */ template <typename SyncWriteStream, typename DynamicBufferSequence, typename CompletionCondition> std::size_t write(SyncWriteStream& s, ASIO_MOVE_ARG(DynamicBufferSequence) buffers, CompletionCondition completion_condition, asio::error_code& ec, typename enable_if< is_dynamic_buffer_sequence<DynamicBufferSequence>::value >::type* = 0); #if !defined(ASIO_NO_IOSTREAM) /// Write all of the supplied data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied basic_streambuf has been written. * * @li An error occurred. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param b The basic_streambuf object from which data will be written. * * @returns The number of bytes transferred. * * @throws asio::system_error Thrown on failure. * * @note This overload is equivalent to calling: * @code asio::write( * s, b, * asio::transfer_all()); @endcode */ template <typename SyncWriteStream, typename Allocator> std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b); /// Write all of the supplied data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied basic_streambuf has been written. * * @li An error occurred. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param b The basic_streambuf object from which data will be written. * * @param ec Set to indicate what error occurred, if any. * * @returns The number of bytes transferred. * * @note This overload is equivalent to calling: * @code asio::write( * s, b, * asio::transfer_all(), ec); @endcode */ template <typename SyncWriteStream, typename Allocator> std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b, asio::error_code& ec); /// Write a certain amount of data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied basic_streambuf has been written. * * @li The completion_condition function object returns 0. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param b The basic_streambuf object from which data will be written. * * @param completion_condition The function object to be called to determine * whether the write operation is complete. The signature of the function object * must be: * @code std::size_t completion_condition( * // Result of latest write_some operation. * const asio::error_code& error, * * // Number of bytes transferred so far. * std::size_t bytes_transferred * ); @endcode * A return value of 0 indicates that the write operation is complete. A * non-zero return value indicates the maximum number of bytes to be written on * the next call to the stream's write_some function. * * @returns The number of bytes transferred. * * @throws asio::system_error Thrown on failure. */ template <typename SyncWriteStream, typename Allocator, typename CompletionCondition> std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition); /// Write a certain amount of data to a stream before returning. /** * This function is used to write a certain number of bytes of data to a stream. * The call will block until one of the following conditions is true: * * @li All of the data in the supplied basic_streambuf has been written. * * @li The completion_condition function object returns 0. * * This operation is implemented in terms of zero or more calls to the stream's * write_some function. * * @param s The stream to which the data is to be written. The type must support * the SyncWriteStream concept. * * @param b The basic_streambuf object from which data will be written. * * @param completion_condition The function object to be called to determine * whether the write operation is complete. The signature of the function object * must be: * @code std::size_t completion_condition( * // Result of latest write_some operation. * const asio::error_code& error, * * // Number of bytes transferred so far. * std::size_t bytes_transferred * ); @endcode * A return value of 0 indicates that the write operation is complete. A * non-zero return value indicates the maximum number of bytes to be written on * the next call to the stream's write_some function. * * @param ec Set to indicate what error occurred, if any. * * @returns The number of bytes written. If an error occurs, returns the total * number of bytes successfully transferred prior to the error. */ template <typename SyncWriteStream, typename Allocator, typename CompletionCondition> std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, asio::error_code& ec); #endif // !defined(ASIO_NO_IOSTREAM) /*@}*/ /** * @defgroup async_write asio::async_write * * @brief Start an asynchronous operation to write a certain amount of data to a * stream. */ /*@{*/ /// Start an asynchronous operation to write all of the supplied data to a /// stream. /** * This function is used to asynchronously write a certain number of bytes of * data to a stream. The function call always returns immediately. The * asynchronous operation will continue until one of the following conditions * is true: * * @li All of the data in the supplied buffers has been written. That is, the * bytes transferred is equal to the sum of the buffer sizes. * * @li An error occurred. * * This operation is implemented in terms of zero or more calls to the stream's * async_write_some function, and is known as a <em>composed operation</em>. The * program must ensure that the stream performs no other write operations (such * as async_write, the stream's async_write_some function, or any other composed * operations that perform writes) until this operation completes. * * @param s The stream to which the data is to be written. The type must support * the AsyncWriteStream concept. * * @param buffers One or more buffers containing the data to be written. * Although the buffers object may be copied as necessary, ownership of the * underlying memory blocks is retained by the caller, which must guarantee * that they remain valid until the handler is called. * * @param handler The handler to be called when the write operation completes. * Copies will be made of the handler as required. The function signature of * the handler must be: * @code void handler( * const asio::error_code& error, // Result of operation. * * std::size_t bytes_transferred // Number of bytes written from the * // buffers. If an error occurred, * // this will be less than the sum * // of the buffer sizes. * ); @endcode * Regardless of whether the asynchronous operation completes immediately or * not, the handler will not be invoked from within this function. Invocation of * the handler will be performed in a manner equivalent to using * asio::io_service::post(). * * @par Example * To write a single data buffer use the @ref buffer function as follows: * @code * asio::async_write(s, asio::buffer(data, size), handler); * @endcode * See the @ref buffer documentation for information on writing multiple * buffers in one go, and how to use it with arrays, boost::array or * std::vector. */ template <typename AsyncWriteStream, typename ConstBufferSequence, typename WriteHandler> ASIO_INITFN_RESULT_TYPE(WriteHandler, void (asio::error_code, std::size_t)) async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers, ASIO_MOVE_ARG(WriteHandler) handler, typename enable_if< is_const_buffer_sequence<ConstBufferSequence>::value >::type* = 0); /// Start an asynchronous operation to write a certain amount of data to a /// stream. /** * This function is used to asynchronously write a certain number of bytes of * data to a stream. The function call always returns immediately. The * asynchronous operation will continue until one of the following conditions * is true: * * @li All of the data in the supplied buffers has been written. That is, the * bytes transferred is equal to the sum of the buffer sizes. * * @li The completion_condition function object returns 0. * * This operation is implemented in terms of zero or more calls to the stream's * async_write_some function, and is known as a <em>composed operation</em>. The * program must ensure that the stream performs no other write operations (such * as async_write, the stream's async_write_some function, or any other composed * operations that perform writes) until this operation completes. * * @param s The stream to which the data is to be written. The type must support * the AsyncWriteStream concept. * * @param buffers One or more buffers containing the data to be written. * Although the buffers object may be copied as necessary, ownership of the * underlying memory blocks is retained by the caller, which must guarantee * that they remain valid until the handler is called. * * @param completion_condition The function object to be called to determine * whether the write operation is complete. The signature of the function object * must be: * @code std::size_t completion_condition( * // Result of latest async_write_some operation. * const asio::error_code& error, * * // Number of bytes transferred so far. * std::size_t bytes_transferred * ); @endcode * A return value of 0 indicates that the write operation is complete. A * non-zero return value indicates the maximum number of bytes to be written on * the next call to the stream's async_write_some function. * * @param handler The handler to be called when the write operation completes. * Copies will be made of the handler as required. The function signature of the * handler must be: * @code void handler( * const asio::error_code& error, // Result of operation. * * std::size_t bytes_transferred // Number of bytes written from the * // buffers. If an error occurred, * // this will be less than the sum * // of the buffer sizes. * ); @endcode * Regardless of whether the asynchronous operation completes immediately or * not, the handler will not be invoked from within this function. Invocation of * the handler will be performed in a manner equivalent to using * asio::io_service::post(). * * @par Example * To write a single data buffer use the @ref buffer function as follows: * @code asio::async_write(s, * asio::buffer(data, size), * asio::transfer_at_least(32), * handler); @endcode * See the @ref buffer documentation for information on writing multiple * buffers in one go, and how to use it with arrays, boost::array or * std::vector. */ template <typename AsyncWriteStream, typename ConstBufferSequence, typename CompletionCondition, typename WriteHandler> ASIO_INITFN_RESULT_TYPE(WriteHandler, void (asio::error_code, std::size_t)) async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers, CompletionCondition completion_condition, ASIO_MOVE_ARG(WriteHandler) handler, typename enable_if< is_const_buffer_sequence<ConstBufferSequence>::value >::type* = 0); /// Start an asynchronous operation to write all of the supplied data to a /// stream. /** * This function is used to asynchronously write a certain number of bytes of * data to a stream. The function call always returns immediately. The * asynchronous operation will continue until one of the following conditions * is true: * * @li All of the data in the supplied dynamic buffer sequence has been written. * * @li An error occurred. * * This operation is implemented in terms of zero or more calls to the stream's * async_write_some function, and is known as a <em>composed operation</em>. The * program must ensure that the stream performs no other write operations (such * as async_write, the stream's async_write_some function, or any other composed * operations that perform writes) until this operation completes. * * @param s The stream to which the data is to be written. The type must support * the AsyncWriteStream concept. * * @param buffers The dynamic buffer sequence from which data will be written. * Although the buffers object may be copied as necessary, ownership of the * underlying memory blocks is retained by the caller, which must guarantee * that they remain valid until the handler is called. Successfully written * data is automatically consumed from the buffers. * * @param handler The handler to be called when the write operation completes. * Copies will be made of the handler as required. The function signature of the * handler must be: * @code void handler( * const asio::error_code& error, // Result of operation. * * std::size_t bytes_transferred // Number of bytes written from the * // buffers. If an error occurred, * // this will be less than the sum * // of the buffer sizes. * ); @endcode * Regardless of whether the asynchronous operation completes immediately or * not, the handler will not be invoked from within this function. Invocation of * the handler will be performed in a manner equivalent to using * asio::io_service::post(). */ template <typename AsyncWriteStream, typename DynamicBufferSequence, typename WriteHandler> ASIO_INITFN_RESULT_TYPE(WriteHandler, void (asio::error_code, std::size_t)) async_write(AsyncWriteStream& s, ASIO_MOVE_ARG(DynamicBufferSequence) buffers, ASIO_MOVE_ARG(WriteHandler) handler, typename enable_if< is_dynamic_buffer_sequence<DynamicBufferSequence>::value >::type* = 0); /// Start an asynchronous operation to write a certain amount of data to a /// stream. /** * This function is used to asynchronously write a certain number of bytes of * data to a stream. The function call always returns immediately. The * asynchronous operation will continue until one of the following conditions * is true: * * @li All of the data in the supplied dynamic buffer sequence has been written. * * @li The completion_condition function object returns 0. * * This operation is implemented in terms of zero or more calls to the stream's * async_write_some function, and is known as a <em>composed operation</em>. The * program must ensure that the stream performs no other write operations (such * as async_write, the stream's async_write_some function, or any other composed * operations that perform writes) until this operation completes. * * @param s The stream to which the data is to be written. The type must support * the AsyncWriteStream concept. * * @param buffers The dynamic buffer sequence from which data will be written. * Although the buffers object may be copied as necessary, ownership of the * underlying memory blocks is retained by the caller, which must guarantee * that they remain valid until the handler is called. Successfully written * data is automatically consumed from the buffers. * * @param completion_condition The function object to be called to determine * whether the write operation is complete. The signature of the function object * must be: * @code std::size_t completion_condition( * // Result of latest async_write_some operation. * const asio::error_code& error, * * // Number of bytes transferred so far. * std::size_t bytes_transferred * ); @endcode * A return value of 0 indicates that the write operation is complete. A * non-zero return value indicates the maximum number of bytes to be written on * the next call to the stream's async_write_some function. * * @param handler The handler to be called when the write operation completes. * Copies will be made of the handler as required. The function signature of the * handler must be: * @code void handler( * const asio::error_code& error, // Result of operation. * * std::size_t bytes_transferred // Number of bytes written from the * // buffers. If an error occurred, * // this will be less than the sum * // of the buffer sizes. * ); @endcode * Regardless of whether the asynchronous operation completes immediately or * not, the handler will not be invoked from within this function. Invocation of * the handler will be performed in a manner equivalent to using * asio::io_service::post(). */ template <typename AsyncWriteStream, typename DynamicBufferSequence, typename CompletionCondition, typename WriteHandler> ASIO_INITFN_RESULT_TYPE(WriteHandler, void (asio::error_code, std::size_t)) async_write(AsyncWriteStream& s, ASIO_MOVE_ARG(DynamicBufferSequence) buffers, CompletionCondition completion_condition, ASIO_MOVE_ARG(WriteHandler) handler, typename enable_if< is_dynamic_buffer_sequence<DynamicBufferSequence>::value >::type* = 0); #if !defined(ASIO_NO_IOSTREAM) /// Start an asynchronous operation to write all of the supplied data to a /// stream. /** * This function is used to asynchronously write a certain number of bytes of * data to a stream. The function call always returns immediately. The * asynchronous operation will continue until one of the following conditions * is true: * * @li All of the data in the supplied basic_streambuf has been written. * * @li An error occurred. * * This operation is implemented in terms of zero or more calls to the stream's * async_write_some function, and is known as a <em>composed operation</em>. The * program must ensure that the stream performs no other write operations (such * as async_write, the stream's async_write_some function, or any other composed * operations that perform writes) until this operation completes. * * @param s The stream to which the data is to be written. The type must support * the AsyncWriteStream concept. * * @param b A basic_streambuf object from which data will be written. Ownership * of the streambuf is retained by the caller, which must guarantee that it * remains valid until the handler is called. * * @param handler The handler to be called when the write operation completes. * Copies will be made of the handler as required. The function signature of the * handler must be: * @code void handler( * const asio::error_code& error, // Result of operation. * * std::size_t bytes_transferred // Number of bytes written from the * // buffers. If an error occurred, * // this will be less than the sum * // of the buffer sizes. * ); @endcode * Regardless of whether the asynchronous operation completes immediately or * not, the handler will not be invoked from within this function. Invocation of * the handler will be performed in a manner equivalent to using * asio::io_service::post(). */ template <typename AsyncWriteStream, typename Allocator, typename WriteHandler> ASIO_INITFN_RESULT_TYPE(WriteHandler, void (asio::error_code, std::size_t)) async_write(AsyncWriteStream& s, basic_streambuf<Allocator>& b, ASIO_MOVE_ARG(WriteHandler) handler); /// Start an asynchronous operation to write a certain amount of data to a /// stream. /** * This function is used to asynchronously write a certain number of bytes of * data to a stream. The function call always returns immediately. The * asynchronous operation will continue until one of the following conditions * is true: * * @li All of the data in the supplied basic_streambuf has been written. * * @li The completion_condition function object returns 0. * * This operation is implemented in terms of zero or more calls to the stream's * async_write_some function, and is known as a <em>composed operation</em>. The * program must ensure that the stream performs no other write operations (such * as async_write, the stream's async_write_some function, or any other composed * operations that perform writes) until this operation completes. * * @param s The stream to which the data is to be written. The type must support * the AsyncWriteStream concept. * * @param b A basic_streambuf object from which data will be written. Ownership * of the streambuf is retained by the caller, which must guarantee that it * remains valid until the handler is called. * * @param completion_condition The function object to be called to determine * whether the write operation is complete. The signature of the function object * must be: * @code std::size_t completion_condition( * // Result of latest async_write_some operation. * const asio::error_code& error, * * // Number of bytes transferred so far. * std::size_t bytes_transferred * ); @endcode * A return value of 0 indicates that the write operation is complete. A * non-zero return value indicates the maximum number of bytes to be written on * the next call to the stream's async_write_some function. * * @param handler The handler to be called when the write operation completes. * Copies will be made of the handler as required. The function signature of the * handler must be: * @code void handler( * const asio::error_code& error, // Result of operation. * * std::size_t bytes_transferred // Number of bytes written from the * // buffers. If an error occurred, * // this will be less than the sum * // of the buffer sizes. * ); @endcode * Regardless of whether the asynchronous operation completes immediately or * not, the handler will not be invoked from within this function. Invocation of * the handler will be performed in a manner equivalent to using * asio::io_service::post(). */ template <typename AsyncWriteStream, typename Allocator, typename CompletionCondition, typename WriteHandler> ASIO_INITFN_RESULT_TYPE(WriteHandler, void (asio::error_code, std::size_t)) async_write(AsyncWriteStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, ASIO_MOVE_ARG(WriteHandler) handler); #endif // !defined(ASIO_NO_IOSTREAM) /*@}*/ } // namespace asio #include "asio/detail/pop_options.hpp" #include "asio/impl/write.hpp" #endif // ASIO_WRITE_HPP
[ "alfred.jason.abanto@eee.upd.edu.ph" ]
alfred.jason.abanto@eee.upd.edu.ph
a63b9f1e1fa71751d8ab030de970b05fe3139f7a
4a0230cd6ebf10de24756706d8feb2b652cd57c3
/src/examples/readme_snippet.cpp
47187ee44fb2386ad5a767108cbd800590d19416
[ "BSL-1.0" ]
permissive
BioDataAnalysis/HighFive
9459ee6b633e1c029979bf3ef5ba66ea48bf8a59
be68bd0efcef338a016fba448d6444089fd196d5
refs/heads/master
2023-06-09T17:42:03.960818
2023-04-06T09:12:54
2023-04-06T09:12:54
169,549,290
0
0
BSL-1.0
2023-06-05T02:45:30
2019-02-07T09:46:51
C++
UTF-8
C++
false
false
756
cpp
#include <highfive/H5File.hpp> using namespace HighFive; int main() { std::string filename = "/tmp/new_file.h5"; { // We create an empty HDF55 file, by truncating an existing // file if required: File file(filename, File::Truncate); std::vector<int> data(50, 1); file.createDataSet("grp/data", data); } { // We open the file as read-only: File file(filename, File::ReadOnly); auto dataset = file.getDataSet("grp/data"); // Read back, with allocating: auto data = dataset.read<std::vector<int>>(); // Because `data` has the correct size, this will // not cause `data` to be reallocated: dataset.read(data); } return 0; }
[ "noreply@github.com" ]
noreply@github.com
3fab95473187f55da27b403e9c9b7e8936401742
3bd5b65b36f42afec0cea90766de9e1f3643ffb0
/1-50/48 旋转图像.cpp
1c0b33897138418041e039d414f54e27bcb31235
[]
no_license
redevilsss/leetcode
b02f593e9da8ab3447bbf612ac5a844b347f1b0f
78bb1d507258f88ff1a9bcd544595aceb6c127ed
refs/heads/master
2020-05-04T11:16:44.521529
2019-04-07T16:09:36
2019-04-07T16:09:36
179,104,874
1
0
null
null
null
null
GB18030
C++
false
false
1,870
cpp
#include<iostream> #include<vector> using namespace std; // 48 旋转图像 /* 给定一个 n × n 的二维矩阵表示一个图像。 将图像顺时针旋转 90 度。 说明: 你必须在原地旋转图像,这意味着你需要直接修改输入的二维矩阵。请不要使用另一个矩阵来旋转图像。 示例 1: 给定 matrix = [[1,2,3],[4,5,6],[7,8,9]], 原地旋转输入矩阵,使其变为: [[7,4,1],[8,5,2],[9,6,3]] */ //这类题目最重要的就是要观察,旋转一层一层展开 //每一层的循环次数不定,每一次循环需要顺时针改变四个位置的值 //重点在于理清整个的过程,取好层数和循环次数 void rotate(vector<vector<int>>& matrix) { int rotateRange = matrix.size() - 1; //旋转层数为矩阵的行数/2,若为偶则没有中心,若为奇则中间一点不用变 for (int i = 0; i<matrix.size() / 2; i++) { //设置旋转起始点 int startIndex1 = i; int startIndex2 = i; //每一层的循环次数为行数-1-2*i,第一层循环行数-1次,以此类推 for (int j = 0; j<matrix.size() - 2 * i - 1; j++) { //进行交换的四个坐标有一定的关联,通过rotateRange来实现转换 //rotateRange是一个定值,等于行数-1 int temp = matrix[startIndex1][startIndex2]; matrix[startIndex1][startIndex2] = matrix[rotateRange - startIndex2][startIndex1]; matrix[rotateRange - startIndex2][startIndex1] = matrix[rotateRange - startIndex1][rotateRange - startIndex2]; matrix[rotateRange - startIndex1][rotateRange - startIndex2] = matrix[startIndex2][rotateRange - startIndex1]; matrix[startIndex2][rotateRange - startIndex1] = temp; startIndex2++; } } } int main() { vector<vector<int>> vec = { {5, 1, 9,11},{2, 4, 8,10},{13, 3, 6, 7},{15,14,12,16} }; rotate(vec); return 0; }
[ "noreply@github.com" ]
noreply@github.com
ae9a968017d2653612245d21f8e8880273d28c7b
f42d648e4d284402ad465efa682c0e36197c4ec1
/winrt/impl/Windows.Devices.Bluetooth.GenericAttributeProfile.0.h
8660d80b7b0cc1ff32b1ab2594d307aa2dce1758
[]
no_license
kennykerr/modules
61bb39ae34cefcfec457d815b74db766cb6ea686
0faf4cd2fa757739c4a45e296bd24b8e652db490
refs/heads/master
2022-12-24T13:38:01.577626
2020-10-06T17:02:07
2020-10-06T17:02:07
301,795,870
2
0
null
null
null
null
UTF-8
C++
false
false
178,180
h
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.3.4.5 #ifndef WINRT_Windows_Devices_Bluetooth_GenericAttributeProfile_0_H #define WINRT_Windows_Devices_Bluetooth_GenericAttributeProfile_0_H WINRT_EXPORT namespace winrt::Windows::Devices::Bluetooth { enum class BluetoothCacheMode : int32_t; struct BluetoothDeviceId; enum class BluetoothError : int32_t; struct BluetoothLEDevice; } WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration { struct DeviceAccessInformation; enum class DeviceAccessStatus : int32_t; } WINRT_EXPORT namespace winrt::Windows::Foundation { struct Deferral; struct EventRegistrationToken; template <typename TResult> struct __declspec(empty_bases) IAsyncOperation; template <typename T> struct __declspec(empty_bases) IReference; template <typename TSender, typename TResult> struct __declspec(empty_bases) TypedEventHandler; } WINRT_EXPORT namespace winrt::Windows::Foundation::Collections { template <typename T> struct __declspec(empty_bases) IVectorView; template <typename T> struct __declspec(empty_bases) IVector; } WINRT_EXPORT namespace winrt::Windows::Storage::Streams { struct IBuffer; } WINRT_EXPORT namespace winrt::Windows::Devices::Bluetooth::GenericAttributeProfile { enum class GattCharacteristicProperties : uint32_t { None = 0, Broadcast = 0x1, Read = 0x2, WriteWithoutResponse = 0x4, Write = 0x8, Notify = 0x10, Indicate = 0x20, AuthenticatedSignedWrites = 0x40, ExtendedProperties = 0x80, ReliableWrites = 0x100, WritableAuxiliaries = 0x200, }; enum class GattClientCharacteristicConfigurationDescriptorValue : int32_t { None = 0, Notify = 1, Indicate = 2, }; enum class GattCommunicationStatus : int32_t { Success = 0, Unreachable = 1, ProtocolError = 2, AccessDenied = 3, }; enum class GattOpenStatus : int32_t { Unspecified = 0, Success = 1, AlreadyOpened = 2, NotFound = 3, SharingViolation = 4, AccessDenied = 5, }; enum class GattProtectionLevel : int32_t { Plain = 0, AuthenticationRequired = 1, EncryptionRequired = 2, EncryptionAndAuthenticationRequired = 3, }; enum class GattRequestState : int32_t { Pending = 0, Completed = 1, Canceled = 2, }; enum class GattServiceProviderAdvertisementStatus : int32_t { Created = 0, Stopped = 1, Started = 2, Aborted = 3, StartedWithoutAllAdvertisementData = 4, }; enum class GattSessionStatus : int32_t { Closed = 0, Active = 1, }; enum class GattSharingMode : int32_t { Unspecified = 0, Exclusive = 1, SharedReadOnly = 2, SharedReadAndWrite = 3, }; enum class GattWriteOption : int32_t { WriteWithResponse = 0, WriteWithoutResponse = 1, }; struct IGattCharacteristic; struct IGattCharacteristic2; struct IGattCharacteristic3; struct IGattCharacteristicStatics; struct IGattCharacteristicUuidsStatics; struct IGattCharacteristicUuidsStatics2; struct IGattCharacteristicsResult; struct IGattClientNotificationResult; struct IGattClientNotificationResult2; struct IGattDescriptor; struct IGattDescriptor2; struct IGattDescriptorStatics; struct IGattDescriptorUuidsStatics; struct IGattDescriptorsResult; struct IGattDeviceService; struct IGattDeviceService2; struct IGattDeviceService3; struct IGattDeviceServiceStatics; struct IGattDeviceServiceStatics2; struct IGattDeviceServicesResult; struct IGattLocalCharacteristic; struct IGattLocalCharacteristicParameters; struct IGattLocalCharacteristicResult; struct IGattLocalDescriptor; struct IGattLocalDescriptorParameters; struct IGattLocalDescriptorResult; struct IGattLocalService; struct IGattPresentationFormat; struct IGattPresentationFormatStatics; struct IGattPresentationFormatStatics2; struct IGattPresentationFormatTypesStatics; struct IGattProtocolErrorStatics; struct IGattReadClientCharacteristicConfigurationDescriptorResult; struct IGattReadClientCharacteristicConfigurationDescriptorResult2; struct IGattReadRequest; struct IGattReadRequestedEventArgs; struct IGattReadResult; struct IGattReadResult2; struct IGattReliableWriteTransaction; struct IGattReliableWriteTransaction2; struct IGattRequestStateChangedEventArgs; struct IGattServiceProvider; struct IGattServiceProviderAdvertisementStatusChangedEventArgs; struct IGattServiceProviderAdvertisingParameters; struct IGattServiceProviderAdvertisingParameters2; struct IGattServiceProviderResult; struct IGattServiceProviderStatics; struct IGattServiceUuidsStatics; struct IGattServiceUuidsStatics2; struct IGattSession; struct IGattSessionStatics; struct IGattSessionStatusChangedEventArgs; struct IGattSubscribedClient; struct IGattValueChangedEventArgs; struct IGattWriteRequest; struct IGattWriteRequestedEventArgs; struct IGattWriteResult; struct GattCharacteristic; struct GattCharacteristicUuids; struct GattCharacteristicsResult; struct GattClientNotificationResult; struct GattDescriptor; struct GattDescriptorUuids; struct GattDescriptorsResult; struct GattDeviceService; struct GattDeviceServicesResult; struct GattLocalCharacteristic; struct GattLocalCharacteristicParameters; struct GattLocalCharacteristicResult; struct GattLocalDescriptor; struct GattLocalDescriptorParameters; struct GattLocalDescriptorResult; struct GattLocalService; struct GattPresentationFormat; struct GattPresentationFormatTypes; struct GattProtocolError; struct GattReadClientCharacteristicConfigurationDescriptorResult; struct GattReadRequest; struct GattReadRequestedEventArgs; struct GattReadResult; struct GattReliableWriteTransaction; struct GattRequestStateChangedEventArgs; struct GattServiceProvider; struct GattServiceProviderAdvertisementStatusChangedEventArgs; struct GattServiceProviderAdvertisingParameters; struct GattServiceProviderResult; struct GattServiceUuids; struct GattSession; struct GattSessionStatusChangedEventArgs; struct GattSubscribedClient; struct GattValueChangedEventArgs; struct GattWriteRequest; struct GattWriteRequestedEventArgs; struct GattWriteResult; } namespace winrt::impl { template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic3>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicsResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorUuidsStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorsResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService3>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServicesResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicParameters>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorParameters>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalService>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormat>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatTypesStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattProtocolErrorStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequest>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequestedEventArgs>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattRequestStateChangedEventArgs>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProvider>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisementStatusChangedEventArgs>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics2>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatics>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatusChangedEventArgs>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSubscribedClient>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattValueChangedEventArgs>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequest>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequestedEventArgs>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteResult>{ using type = interface_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicUuids>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicsResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientNotificationResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptor>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptorUuids>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptorsResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceServicesResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristicParameters>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristicResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptor>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptorParameters>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptorResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalService>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattPresentationFormat>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattPresentationFormatTypes>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtocolError>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadClientCharacteristicConfigurationDescriptorResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequest>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequestedEventArgs>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReliableWriteTransaction>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestStateChangedEventArgs>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProvider>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisementStatusChangedEventArgs>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisingParameters>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceUuids>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSessionStatusChangedEventArgs>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSubscribedClient>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattValueChangedEventArgs>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequest>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequestedEventArgs>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteResult>{ using type = class_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicProperties>{ using type = enum_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue>{ using type = enum_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>{ using type = enum_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus>{ using type = enum_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel>{ using type = enum_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestState>{ using type = enum_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisementStatus>{ using type = enum_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSessionStatus>{ using type = enum_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSharingMode>{ using type = enum_category; }; template <> struct category<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteOption>{ using type = enum_category; }; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicUuids> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristicUuids"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicsResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristicsResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientNotificationResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattClientNotificationResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptor> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattDescriptor"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptorUuids> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattDescriptorUuids"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptorsResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattDescriptorsResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceServicesResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceServicesResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristicParameters> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristicParameters"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristicResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristicResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptor> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptorParameters> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptorParameters"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptorResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptorResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalService> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalService"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattPresentationFormat> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattPresentationFormat"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattPresentationFormatTypes> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattPresentationFormatTypes"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtocolError> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattProtocolError"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadClientCharacteristicConfigurationDescriptorResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadClientCharacteristicConfigurationDescriptorResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequest> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequest"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequestedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequestedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReliableWriteTransaction> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattReliableWriteTransaction"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestStateChangedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestStateChangedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProvider> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProvider"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisementStatusChangedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisementStatusChangedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisingParameters> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisingParameters"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceUuids> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceUuids"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSessionStatusChangedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattSessionStatusChangedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSubscribedClient> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattSubscribedClient"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattValueChangedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattValueChangedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequest> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequest"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequestedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequestedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicProperties> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristicProperties"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattClientCharacteristicConfigurationDescriptorValue"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattCommunicationStatus"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattOpenStatus"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattProtectionLevel"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestState> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestState"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisementStatus> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisementStatus"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSessionStatus> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattSessionStatus"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSharingMode> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteOption> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteOption"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattCharacteristic"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattCharacteristic2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic3> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattCharacteristic3"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattCharacteristicStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattCharacteristicUuidsStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattCharacteristicUuidsStatics2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicsResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattCharacteristicsResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattClientNotificationResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattClientNotificationResult2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDescriptor"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDescriptor2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDescriptorStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorUuidsStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDescriptorUuidsStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorsResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDescriptorsResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDeviceService"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDeviceService2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService3> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDeviceService3"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDeviceServiceStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDeviceServiceStatics2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServicesResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattDeviceServicesResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattLocalCharacteristic"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicParameters> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattLocalCharacteristicParameters"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattLocalCharacteristicResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattLocalDescriptor"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorParameters> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattLocalDescriptorParameters"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattLocalDescriptorResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalService> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattLocalService"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormat> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattPresentationFormat"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattPresentationFormatStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattPresentationFormatStatics2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatTypesStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattPresentationFormatTypesStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattProtocolErrorStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattProtocolErrorStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattReadClientCharacteristicConfigurationDescriptorResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattReadClientCharacteristicConfigurationDescriptorResult2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequest> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattReadRequest"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequestedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattReadRequestedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattReadResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattReadResult2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattReliableWriteTransaction"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattReliableWriteTransaction2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattRequestStateChangedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattRequestStateChangedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProvider> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattServiceProvider"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisementStatusChangedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattServiceProviderAdvertisementStatusChangedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattServiceProviderAdvertisingParameters"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattServiceProviderAdvertisingParameters2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattServiceProviderResult"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattServiceProviderStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattServiceUuidsStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics2> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattServiceUuidsStatics2"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattSession"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatics> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattSessionStatics"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatusChangedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattSessionStatusChangedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSubscribedClient> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattSubscribedClient"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattValueChangedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattValueChangedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequest> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattWriteRequest"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequestedEventArgs> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattWriteRequestedEventArgs"; template <> inline constexpr auto& name_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteResult> = L"Windows.Devices.Bluetooth.GenericAttributeProfile.IGattWriteResult"; template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic>{ 0x59CB50C1,0x5934,0x4F68,{ 0xA1,0x98,0xEB,0x86,0x4F,0xA4,0x4E,0x6B } }; // 59CB50C1-5934-4F68-A198-EB864FA44E6B template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic2>{ 0xAE1AB578,0xEC06,0x4764,{ 0xB7,0x80,0x98,0x35,0xA1,0xD3,0x5D,0x6E } }; // AE1AB578-EC06-4764-B780-9835A1D35D6E template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic3>{ 0x3F3C663E,0x93D4,0x406B,{ 0xB8,0x17,0xDB,0x81,0xF8,0xED,0x53,0xB3 } }; // 3F3C663E-93D4-406B-B817-DB81F8ED53B3 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicStatics>{ 0x59CB50C3,0x5934,0x4F68,{ 0xA1,0x98,0xEB,0x86,0x4F,0xA4,0x4E,0x6B } }; // 59CB50C3-5934-4F68-A198-EB864FA44E6B template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics>{ 0x58FA4586,0xB1DE,0x470C,{ 0xB7,0xDE,0x0D,0x11,0xFF,0x44,0xF4,0xB7 } }; // 58FA4586-B1DE-470C-B7DE-0D11FF44F4B7 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics2>{ 0x1855B425,0xD46E,0x4A2C,{ 0x9C,0x3F,0xED,0x6D,0xEA,0x29,0xE7,0xBE } }; // 1855B425-D46E-4A2C-9C3F-ED6DEA29E7BE template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicsResult>{ 0x1194945C,0xB257,0x4F3E,{ 0x9D,0xB7,0xF6,0x8B,0xC9,0xA9,0xAE,0xF2 } }; // 1194945C-B257-4F3E-9DB7-F68BC9A9AEF2 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult>{ 0x506D5599,0x0112,0x419A,{ 0x8E,0x3B,0xAE,0x21,0xAF,0xAB,0xD2,0xC2 } }; // 506D5599-0112-419A-8E3B-AE21AFABD2C2 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult2>{ 0x8FAEC497,0x45E0,0x497E,{ 0x95,0x82,0x29,0xA1,0xFE,0x28,0x1A,0xD5 } }; // 8FAEC497-45E0-497E-9582-29A1FE281AD5 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor>{ 0x92055F2B,0x8084,0x4344,{ 0xB4,0xC2,0x28,0x4D,0xE1,0x9A,0x85,0x06 } }; // 92055F2B-8084-4344-B4C2-284DE19A8506 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor2>{ 0x8F563D39,0xD630,0x406C,{ 0xBA,0x11,0x10,0xCD,0xD1,0x6B,0x0E,0x5E } }; // 8F563D39-D630-406C-BA11-10CDD16B0E5E template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorStatics>{ 0x92055F2D,0x8084,0x4344,{ 0xB4,0xC2,0x28,0x4D,0xE1,0x9A,0x85,0x06 } }; // 92055F2D-8084-4344-B4C2-284DE19A8506 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorUuidsStatics>{ 0xA6F862CE,0x9CFC,0x42F1,{ 0x91,0x85,0xFF,0x37,0xB7,0x51,0x81,0xD3 } }; // A6F862CE-9CFC-42F1-9185-FF37B75181D3 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorsResult>{ 0x9BC091F3,0x95E7,0x4489,{ 0x8D,0x25,0xFF,0x81,0x95,0x5A,0x57,0xB9 } }; // 9BC091F3-95E7-4489-8D25-FF81955A57B9 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService>{ 0xAC7B7C05,0xB33C,0x47CF,{ 0x99,0x0F,0x6B,0x8F,0x55,0x77,0xDF,0x71 } }; // AC7B7C05-B33C-47CF-990F-6B8F5577DF71 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService2>{ 0xFC54520B,0x0B0D,0x4708,{ 0xBA,0xE0,0x9F,0xFD,0x94,0x89,0xBC,0x59 } }; // FC54520B-0B0D-4708-BAE0-9FFD9489BC59 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService3>{ 0xB293A950,0x0C53,0x437C,{ 0xA9,0xB3,0x5C,0x32,0x10,0xC6,0xE5,0x69 } }; // B293A950-0C53-437C-A9B3-5C3210C6E569 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics>{ 0x196D0022,0xFAAD,0x45DC,{ 0xAE,0x5B,0x2A,0xC3,0x18,0x4E,0x84,0xDB } }; // 196D0022-FAAD-45DC-AE5B-2AC3184E84DB template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics2>{ 0x0604186E,0x24A6,0x4B0D,{ 0xA2,0xF2,0x30,0xCC,0x01,0x54,0x5D,0x25 } }; // 0604186E-24A6-4B0D-A2F2-30CC01545D25 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServicesResult>{ 0x171DD3EE,0x016D,0x419D,{ 0x83,0x8A,0x57,0x6C,0xF4,0x75,0xA3,0xD8 } }; // 171DD3EE-016D-419D-838A-576CF475A3D8 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic>{ 0xAEDE376D,0x5412,0x4D74,{ 0x92,0xA8,0x8D,0xEB,0x85,0x26,0x82,0x9C } }; // AEDE376D-5412-4D74-92A8-8DEB8526829C template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicParameters>{ 0xFAF73DB4,0x4CFF,0x44C7,{ 0x84,0x45,0x04,0x0E,0x6E,0xAD,0x00,0x63 } }; // FAF73DB4-4CFF-44C7-8445-040E6EAD0063 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicResult>{ 0x7975DE9B,0x0170,0x4397,{ 0x96,0x66,0x92,0xF8,0x63,0xF1,0x2E,0xE6 } }; // 7975DE9B-0170-4397-9666-92F863F12EE6 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor>{ 0xF48EBE06,0x789D,0x4A4B,{ 0x86,0x52,0xBD,0x01,0x7B,0x5D,0x2F,0xC6 } }; // F48EBE06-789D-4A4B-8652-BD017B5D2FC6 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorParameters>{ 0x5FDEDE6A,0xF3C1,0x4B66,{ 0x8C,0x4B,0xE3,0xD2,0x29,0x3B,0x40,0xE9 } }; // 5FDEDE6A-F3C1-4B66-8C4B-E3D2293B40E9 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorResult>{ 0x375791BE,0x321F,0x4366,{ 0xBF,0xC1,0x3B,0xC6,0xB8,0x2C,0x79,0xF8 } }; // 375791BE-321F-4366-BFC1-3BC6B82C79F8 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalService>{ 0xF513E258,0xF7F7,0x4902,{ 0xB8,0x03,0x57,0xFC,0xC7,0xD6,0xFE,0x83 } }; // F513E258-F7F7-4902-B803-57FCC7D6FE83 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormat>{ 0x196D0021,0xFAAD,0x45DC,{ 0xAE,0x5B,0x2A,0xC3,0x18,0x4E,0x84,0xDB } }; // 196D0021-FAAD-45DC-AE5B-2AC3184E84DB template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics>{ 0x196D0020,0xFAAD,0x45DC,{ 0xAE,0x5B,0x2A,0xC3,0x18,0x4E,0x84,0xDB } }; // 196D0020-FAAD-45DC-AE5B-2AC3184E84DB template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics2>{ 0xA9C21713,0xB82F,0x435E,{ 0xB6,0x34,0x21,0xFD,0x85,0xA4,0x3C,0x07 } }; // A9C21713-B82F-435E-B634-21FD85A43C07 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatTypesStatics>{ 0xFAF1BA0A,0x30BA,0x409C,{ 0xBE,0xF7,0xCF,0xFB,0x6D,0x03,0xB8,0xFB } }; // FAF1BA0A-30BA-409C-BEF7-CFFB6D03B8FB template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattProtocolErrorStatics>{ 0xCA46C5C5,0x0ECC,0x4809,{ 0xBE,0xA3,0xCF,0x79,0xBC,0x99,0x1E,0x37 } }; // CA46C5C5-0ECC-4809-BEA3-CF79BC991E37 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult>{ 0x63A66F09,0x1AEA,0x4C4C,{ 0xA5,0x0F,0x97,0xBA,0xE4,0x74,0xB3,0x48 } }; // 63A66F09-1AEA-4C4C-A50F-97BAE474B348 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult2>{ 0x1BF1A59D,0xBA4D,0x4622,{ 0x86,0x51,0xF4,0xEE,0x15,0x0D,0x0A,0x5D } }; // 1BF1A59D-BA4D-4622-8651-F4EE150D0A5D template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequest>{ 0xF1DD6535,0x6ACD,0x42A6,{ 0xA4,0xBB,0xD7,0x89,0xDA,0xE0,0x04,0x3E } }; // F1DD6535-6ACD-42A6-A4BB-D789DAE0043E template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequestedEventArgs>{ 0x93497243,0xF39C,0x484B,{ 0x8A,0xB6,0x99,0x6B,0xA4,0x86,0xCF,0xA3 } }; // 93497243-F39C-484B-8AB6-996BA486CFA3 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult>{ 0x63A66F08,0x1AEA,0x4C4C,{ 0xA5,0x0F,0x97,0xBA,0xE4,0x74,0xB3,0x48 } }; // 63A66F08-1AEA-4C4C-A50F-97BAE474B348 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult2>{ 0xA10F50A0,0xFB43,0x48AF,{ 0xBA,0xAA,0x63,0x8A,0x5C,0x63,0x29,0xFE } }; // A10F50A0-FB43-48AF-BAAA-638A5C6329FE template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction>{ 0x63A66F07,0x1AEA,0x4C4C,{ 0xA5,0x0F,0x97,0xBA,0xE4,0x74,0xB3,0x48 } }; // 63A66F07-1AEA-4C4C-A50F-97BAE474B348 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction2>{ 0x51113987,0xEF12,0x462F,{ 0x9F,0xB2,0xA1,0xA4,0x3A,0x67,0x94,0x16 } }; // 51113987-EF12-462F-9FB2-A1A43A679416 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattRequestStateChangedEventArgs>{ 0xE834D92C,0x27BE,0x44B3,{ 0x9D,0x0D,0x4F,0xC6,0xE8,0x08,0xDD,0x3F } }; // E834D92C-27BE-44B3-9D0D-4FC6E808DD3F template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProvider>{ 0x7822B3CD,0x2889,0x4F86,{ 0xA0,0x51,0x3F,0x0A,0xED,0x1C,0x27,0x60 } }; // 7822B3CD-2889-4F86-A051-3F0AED1C2760 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisementStatusChangedEventArgs>{ 0x59A5AA65,0xFA21,0x4FFC,{ 0xB1,0x55,0x04,0xD9,0x28,0x01,0x26,0x86 } }; // 59A5AA65-FA21-4FFC-B155-04D928012686 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters>{ 0xE2CE31AB,0x6315,0x4C22,{ 0x9B,0xD7,0x78,0x1D,0xBC,0x3D,0x8D,0x82 } }; // E2CE31AB-6315-4C22-9BD7-781DBC3D8D82 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters2>{ 0xFF68468D,0xCA92,0x4434,{ 0x97,0x43,0x0E,0x90,0x98,0x8A,0xD8,0x79 } }; // FF68468D-CA92-4434-9743-0E90988AD879 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderResult>{ 0x764696D8,0xC53E,0x428C,{ 0x8A,0x48,0x67,0xAF,0xE0,0x2C,0x3A,0xE6 } }; // 764696D8-C53E-428C-8A48-67AFE02C3AE6 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderStatics>{ 0x31794063,0x5256,0x4054,{ 0xA4,0xF4,0x7B,0xBE,0x77,0x55,0xA5,0x7E } }; // 31794063-5256-4054-A4F4-7BBE7755A57E template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics>{ 0x6DC57058,0x9ABA,0x4417,{ 0xB8,0xF2,0xDC,0xE0,0x16,0xD3,0x4E,0xE2 } }; // 6DC57058-9ABA-4417-B8F2-DCE016D34EE2 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics2>{ 0xD2AE94F5,0x3D15,0x4F79,{ 0x9C,0x0C,0xEA,0xAF,0xA6,0x75,0x15,0x5C } }; // D2AE94F5-3D15-4F79-9C0C-EAAFA675155C template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession>{ 0xD23B5143,0xE04E,0x4C24,{ 0x99,0x9C,0x9C,0x25,0x6F,0x98,0x56,0xB1 } }; // D23B5143-E04E-4C24-999C-9C256F9856B1 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatics>{ 0x2E65B95C,0x539F,0x4DB7,{ 0x82,0xA8,0x73,0xBD,0xBB,0xF7,0x3E,0xBF } }; // 2E65B95C-539F-4DB7-82A8-73BDBBF73EBF template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatusChangedEventArgs>{ 0x7605B72E,0x837F,0x404C,{ 0xAB,0x34,0x31,0x63,0xF3,0x9D,0xDF,0x32 } }; // 7605B72E-837F-404C-AB34-3163F39DDF32 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSubscribedClient>{ 0x736E9001,0x15A4,0x4EC2,{ 0x92,0x48,0xE3,0xF2,0x0D,0x46,0x3B,0xE9 } }; // 736E9001-15A4-4EC2-9248-E3F20D463BE9 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattValueChangedEventArgs>{ 0xD21BDB54,0x06E3,0x4ED8,{ 0xA2,0x63,0xAC,0xFA,0xC8,0xBA,0x73,0x13 } }; // D21BDB54-06E3-4ED8-A263-ACFAC8BA7313 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequest>{ 0xAEB6A9ED,0xDE2F,0x4FC2,{ 0xA9,0xA8,0x94,0xEA,0x78,0x44,0xF1,0x3D } }; // AEB6A9ED-DE2F-4FC2-A9A8-94EA7844F13D template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequestedEventArgs>{ 0x2DEC8BBE,0xA73A,0x471A,{ 0x94,0xD5,0x03,0x7D,0xEA,0xDD,0x08,0x06 } }; // 2DEC8BBE-A73A-471A-94D5-037DEADD0806 template <> inline constexpr guid guid_v<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteResult>{ 0x4991DDB1,0xCB2B,0x44F7,{ 0x99,0xFC,0xD2,0x9A,0x28,0x71,0xDC,0x9B } }; // 4991DDB1-CB2B-44F7-99FC-D29A2871DC9B template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicsResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicsResult; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientNotificationResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptor>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptorsResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorsResult; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceServicesResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServicesResult; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristicParameters>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicParameters; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristicResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicResult; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptor>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptorParameters>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorParameters; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptorResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorResult; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalService>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalService; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattPresentationFormat>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormat; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadClientCharacteristicConfigurationDescriptorResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequest>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequest; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequestedEventArgs>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequestedEventArgs; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReliableWriteTransaction>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestStateChangedEventArgs>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattRequestStateChangedEventArgs; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProvider>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProvider; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisementStatusChangedEventArgs>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisementStatusChangedEventArgs; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisingParameters>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderResult; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSessionStatusChangedEventArgs>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatusChangedEventArgs; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSubscribedClient>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSubscribedClient; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattValueChangedEventArgs>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattValueChangedEventArgs; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequest>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequest; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequestedEventArgs>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequestedEventArgs; }; template <> struct default_interface<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteResult>{ using type = Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteResult; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall GetDescriptors(winrt::guid, void**) noexcept = 0; virtual int32_t __stdcall get_CharacteristicProperties(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_ProtectionLevel(int32_t*) noexcept = 0; virtual int32_t __stdcall put_ProtectionLevel(int32_t) noexcept = 0; virtual int32_t __stdcall get_UserDescription(void**) noexcept = 0; virtual int32_t __stdcall get_Uuid(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_AttributeHandle(uint16_t*) noexcept = 0; virtual int32_t __stdcall get_PresentationFormats(void**) noexcept = 0; virtual int32_t __stdcall ReadValueAsync(void**) noexcept = 0; virtual int32_t __stdcall ReadValueWithCacheModeAsync(int32_t, void**) noexcept = 0; virtual int32_t __stdcall WriteValueAsync(void*, void**) noexcept = 0; virtual int32_t __stdcall WriteValueWithOptionAsync(void*, int32_t, void**) noexcept = 0; virtual int32_t __stdcall ReadClientCharacteristicConfigurationDescriptorAsync(void**) noexcept = 0; virtual int32_t __stdcall WriteClientCharacteristicConfigurationDescriptorAsync(int32_t, void**) noexcept = 0; virtual int32_t __stdcall add_ValueChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_ValueChanged(winrt::event_token) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Service(void**) noexcept = 0; virtual int32_t __stdcall GetAllDescriptors(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic3> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall GetDescriptorsAsync(void**) noexcept = 0; virtual int32_t __stdcall GetDescriptorsWithCacheModeAsync(int32_t, void**) noexcept = 0; virtual int32_t __stdcall GetDescriptorsForUuidAsync(winrt::guid, void**) noexcept = 0; virtual int32_t __stdcall GetDescriptorsForUuidWithCacheModeAsync(winrt::guid, int32_t, void**) noexcept = 0; virtual int32_t __stdcall WriteValueWithResultAsync(void*, void**) noexcept = 0; virtual int32_t __stdcall WriteValueWithResultAndOptionAsync(void*, int32_t, void**) noexcept = 0; virtual int32_t __stdcall WriteClientCharacteristicConfigurationDescriptorWithResultAsync(int32_t, void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall ConvertShortIdToUuid(uint16_t, winrt::guid*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_BatteryLevel(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_BloodPressureFeature(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_BloodPressureMeasurement(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_BodySensorLocation(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CscFeature(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CscMeasurement(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GlucoseFeature(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GlucoseMeasurement(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GlucoseMeasurementContext(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_HeartRateControlPoint(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_HeartRateMeasurement(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_IntermediateCuffPressure(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_IntermediateTemperature(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_MeasurementInterval(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_RecordAccessControlPoint(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_RscFeature(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_RscMeasurement(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_SCControlPoint(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_SensorLocation(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TemperatureMeasurement(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TemperatureType(winrt::guid*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_AlertCategoryId(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_AlertCategoryIdBitMask(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_AlertLevel(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_AlertNotificationControlPoint(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_AlertStatus(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GapAppearance(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_BootKeyboardInputReport(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_BootKeyboardOutputReport(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_BootMouseInputReport(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CurrentTime(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CyclingPowerControlPoint(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CyclingPowerFeature(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CyclingPowerMeasurement(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CyclingPowerVector(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_DateTime(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_DayDateTime(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_DayOfWeek(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GapDeviceName(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_DstOffset(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ExactTime256(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_FirmwareRevisionString(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_HardwareRevisionString(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_HidControlPoint(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_HidInformation(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_Ieee1107320601RegulatoryCertificationDataList(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_LnControlPoint(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_LnFeature(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_LocalTimeInformation(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_LocationAndSpeed(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ManufacturerNameString(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ModelNumberString(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_Navigation(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_NewAlert(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GapPeripheralPreferredConnectionParameters(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GapPeripheralPrivacyFlag(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_PnpId(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_PositionQuality(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ProtocolMode(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GapReconnectionAddress(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ReferenceTimeInformation(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_Report(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ReportMap(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_RingerControlPoint(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_RingerSetting(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ScanIntervalWindow(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ScanRefresh(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_SerialNumberString(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GattServiceChanged(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_SoftwareRevisionString(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_SupportedNewAlertCategory(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_SupportUnreadAlertCategory(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_SystemId(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TimeAccuracy(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TimeSource(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TimeUpdateControlPoint(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TimeUpdateState(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TimeWithDst(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TimeZone(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TxPowerLevel(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_UnreadAlertStatus(winrt::guid*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicsResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; virtual int32_t __stdcall get_ProtocolError(void**) noexcept = 0; virtual int32_t __stdcall get_Characteristics(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_SubscribedClient(void**) noexcept = 0; virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; virtual int32_t __stdcall get_ProtocolError(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_BytesSent(uint16_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_ProtectionLevel(int32_t*) noexcept = 0; virtual int32_t __stdcall put_ProtectionLevel(int32_t) noexcept = 0; virtual int32_t __stdcall get_Uuid(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_AttributeHandle(uint16_t*) noexcept = 0; virtual int32_t __stdcall ReadValueAsync(void**) noexcept = 0; virtual int32_t __stdcall ReadValueWithCacheModeAsync(int32_t, void**) noexcept = 0; virtual int32_t __stdcall WriteValueAsync(void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall WriteValueWithResultAsync(void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall ConvertShortIdToUuid(uint16_t, winrt::guid*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorUuidsStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_CharacteristicAggregateFormat(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CharacteristicExtendedProperties(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CharacteristicPresentationFormat(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CharacteristicUserDescription(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ClientCharacteristicConfiguration(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ServerCharacteristicConfiguration(winrt::guid*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorsResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; virtual int32_t __stdcall get_ProtocolError(void**) noexcept = 0; virtual int32_t __stdcall get_Descriptors(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall GetCharacteristics(winrt::guid, void**) noexcept = 0; virtual int32_t __stdcall GetIncludedServices(winrt::guid, void**) noexcept = 0; virtual int32_t __stdcall get_DeviceId(void**) noexcept = 0; virtual int32_t __stdcall get_Uuid(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_AttributeHandle(uint16_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Device(void**) noexcept = 0; virtual int32_t __stdcall get_ParentServices(void**) noexcept = 0; virtual int32_t __stdcall GetAllCharacteristics(void**) noexcept = 0; virtual int32_t __stdcall GetAllIncludedServices(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService3> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_DeviceAccessInformation(void**) noexcept = 0; virtual int32_t __stdcall get_Session(void**) noexcept = 0; virtual int32_t __stdcall get_SharingMode(int32_t*) noexcept = 0; virtual int32_t __stdcall RequestAccessAsync(void**) noexcept = 0; virtual int32_t __stdcall OpenAsync(int32_t, void**) noexcept = 0; virtual int32_t __stdcall GetCharacteristicsAsync(void**) noexcept = 0; virtual int32_t __stdcall GetCharacteristicsWithCacheModeAsync(int32_t, void**) noexcept = 0; virtual int32_t __stdcall GetCharacteristicsForUuidAsync(winrt::guid, void**) noexcept = 0; virtual int32_t __stdcall GetCharacteristicsForUuidWithCacheModeAsync(winrt::guid, int32_t, void**) noexcept = 0; virtual int32_t __stdcall GetIncludedServicesAsync(void**) noexcept = 0; virtual int32_t __stdcall GetIncludedServicesWithCacheModeAsync(int32_t, void**) noexcept = 0; virtual int32_t __stdcall GetIncludedServicesForUuidAsync(winrt::guid, void**) noexcept = 0; virtual int32_t __stdcall GetIncludedServicesForUuidWithCacheModeAsync(winrt::guid, int32_t, void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall FromIdAsync(void*, void**) noexcept = 0; virtual int32_t __stdcall GetDeviceSelectorFromUuid(winrt::guid, void**) noexcept = 0; virtual int32_t __stdcall GetDeviceSelectorFromShortId(uint16_t, void**) noexcept = 0; virtual int32_t __stdcall ConvertShortIdToUuid(uint16_t, winrt::guid*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall FromIdWithSharingModeAsync(void*, int32_t, void**) noexcept = 0; virtual int32_t __stdcall GetDeviceSelectorForBluetoothDeviceId(void*, void**) noexcept = 0; virtual int32_t __stdcall GetDeviceSelectorForBluetoothDeviceIdWithCacheMode(void*, int32_t, void**) noexcept = 0; virtual int32_t __stdcall GetDeviceSelectorForBluetoothDeviceIdAndUuid(void*, winrt::guid, void**) noexcept = 0; virtual int32_t __stdcall GetDeviceSelectorForBluetoothDeviceIdAndUuidWithCacheMode(void*, winrt::guid, int32_t, void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServicesResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; virtual int32_t __stdcall get_ProtocolError(void**) noexcept = 0; virtual int32_t __stdcall get_Services(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Uuid(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_StaticValue(void**) noexcept = 0; virtual int32_t __stdcall get_CharacteristicProperties(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_ReadProtectionLevel(int32_t*) noexcept = 0; virtual int32_t __stdcall get_WriteProtectionLevel(int32_t*) noexcept = 0; virtual int32_t __stdcall CreateDescriptorAsync(winrt::guid, void*, void**) noexcept = 0; virtual int32_t __stdcall get_Descriptors(void**) noexcept = 0; virtual int32_t __stdcall get_UserDescription(void**) noexcept = 0; virtual int32_t __stdcall get_PresentationFormats(void**) noexcept = 0; virtual int32_t __stdcall get_SubscribedClients(void**) noexcept = 0; virtual int32_t __stdcall add_SubscribedClientsChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_SubscribedClientsChanged(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_ReadRequested(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_ReadRequested(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_WriteRequested(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_WriteRequested(winrt::event_token) noexcept = 0; virtual int32_t __stdcall NotifyValueAsync(void*, void**) noexcept = 0; virtual int32_t __stdcall NotifyValueForSubscribedClientAsync(void*, void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicParameters> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall put_StaticValue(void*) noexcept = 0; virtual int32_t __stdcall get_StaticValue(void**) noexcept = 0; virtual int32_t __stdcall put_CharacteristicProperties(uint32_t) noexcept = 0; virtual int32_t __stdcall get_CharacteristicProperties(uint32_t*) noexcept = 0; virtual int32_t __stdcall put_ReadProtectionLevel(int32_t) noexcept = 0; virtual int32_t __stdcall get_ReadProtectionLevel(int32_t*) noexcept = 0; virtual int32_t __stdcall put_WriteProtectionLevel(int32_t) noexcept = 0; virtual int32_t __stdcall get_WriteProtectionLevel(int32_t*) noexcept = 0; virtual int32_t __stdcall put_UserDescription(void*) noexcept = 0; virtual int32_t __stdcall get_UserDescription(void**) noexcept = 0; virtual int32_t __stdcall get_PresentationFormats(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Characteristic(void**) noexcept = 0; virtual int32_t __stdcall get_Error(int32_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Uuid(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_StaticValue(void**) noexcept = 0; virtual int32_t __stdcall get_ReadProtectionLevel(int32_t*) noexcept = 0; virtual int32_t __stdcall get_WriteProtectionLevel(int32_t*) noexcept = 0; virtual int32_t __stdcall add_ReadRequested(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_ReadRequested(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_WriteRequested(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_WriteRequested(winrt::event_token) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorParameters> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall put_StaticValue(void*) noexcept = 0; virtual int32_t __stdcall get_StaticValue(void**) noexcept = 0; virtual int32_t __stdcall put_ReadProtectionLevel(int32_t) noexcept = 0; virtual int32_t __stdcall get_ReadProtectionLevel(int32_t*) noexcept = 0; virtual int32_t __stdcall put_WriteProtectionLevel(int32_t) noexcept = 0; virtual int32_t __stdcall get_WriteProtectionLevel(int32_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Descriptor(void**) noexcept = 0; virtual int32_t __stdcall get_Error(int32_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalService> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Uuid(winrt::guid*) noexcept = 0; virtual int32_t __stdcall CreateCharacteristicAsync(winrt::guid, void*, void**) noexcept = 0; virtual int32_t __stdcall get_Characteristics(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormat> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_FormatType(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Exponent(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Unit(uint16_t*) noexcept = 0; virtual int32_t __stdcall get_Namespace(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Description(uint16_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_BluetoothSigAssignedNumbers(uint8_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall FromParts(uint8_t, int32_t, uint16_t, uint8_t, uint16_t, void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatTypesStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Boolean(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Bit2(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Nibble(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UInt8(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UInt12(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UInt16(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UInt24(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UInt32(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UInt48(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UInt64(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UInt128(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_SInt8(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_SInt12(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_SInt16(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_SInt24(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_SInt32(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_SInt48(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_SInt64(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_SInt128(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Float32(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Float64(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_SFloat(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Float(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_DUInt16(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Utf8(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Utf16(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_Struct(uint8_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattProtocolErrorStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_InvalidHandle(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_ReadNotPermitted(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_WriteNotPermitted(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_InvalidPdu(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_InsufficientAuthentication(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_RequestNotSupported(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_InvalidOffset(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_InsufficientAuthorization(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_PrepareQueueFull(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_AttributeNotFound(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_AttributeNotLong(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_InsufficientEncryptionKeySize(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_InvalidAttributeValueLength(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UnlikelyError(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_InsufficientEncryption(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_UnsupportedGroupType(uint8_t*) noexcept = 0; virtual int32_t __stdcall get_InsufficientResources(uint8_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; virtual int32_t __stdcall get_ClientCharacteristicConfigurationDescriptor(int32_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_ProtocolError(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequest> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Offset(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_Length(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_State(int32_t*) noexcept = 0; virtual int32_t __stdcall add_StateChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_StateChanged(winrt::event_token) noexcept = 0; virtual int32_t __stdcall RespondWithValue(void*) noexcept = 0; virtual int32_t __stdcall RespondWithProtocolError(uint8_t) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequestedEventArgs> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Session(void**) noexcept = 0; virtual int32_t __stdcall GetDeferral(void**) noexcept = 0; virtual int32_t __stdcall GetRequestAsync(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Value(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_ProtocolError(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall WriteValue(void*, void*) noexcept = 0; virtual int32_t __stdcall CommitAsync(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall CommitWithResultAsync(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattRequestStateChangedEventArgs> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_State(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Error(int32_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProvider> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Service(void**) noexcept = 0; virtual int32_t __stdcall get_AdvertisementStatus(int32_t*) noexcept = 0; virtual int32_t __stdcall add_AdvertisementStatusChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_AdvertisementStatusChanged(winrt::event_token) noexcept = 0; virtual int32_t __stdcall StartAdvertising() noexcept = 0; virtual int32_t __stdcall StartAdvertisingWithParameters(void*) noexcept = 0; virtual int32_t __stdcall StopAdvertising() noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisementStatusChangedEventArgs> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Error(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall put_IsConnectable(bool) noexcept = 0; virtual int32_t __stdcall get_IsConnectable(bool*) noexcept = 0; virtual int32_t __stdcall put_IsDiscoverable(bool) noexcept = 0; virtual int32_t __stdcall get_IsDiscoverable(bool*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall put_ServiceData(void*) noexcept = 0; virtual int32_t __stdcall get_ServiceData(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Error(int32_t*) noexcept = 0; virtual int32_t __stdcall get_ServiceProvider(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall CreateAsync(winrt::guid, void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Battery(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_BloodPressure(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CyclingSpeedAndCadence(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GenericAccess(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_GenericAttribute(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_Glucose(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_HealthThermometer(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_HeartRate(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_RunningSpeedAndCadence(winrt::guid*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics2> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_AlertNotification(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CurrentTime(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_CyclingPower(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_DeviceInformation(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_HumanInterfaceDevice(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ImmediateAlert(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_LinkLoss(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_LocationAndNavigation(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_NextDstChange(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_PhoneAlertStatus(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ReferenceTimeUpdate(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ScanParameters(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_TxPower(winrt::guid*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_DeviceId(void**) noexcept = 0; virtual int32_t __stdcall get_CanMaintainConnection(bool*) noexcept = 0; virtual int32_t __stdcall put_MaintainConnection(bool) noexcept = 0; virtual int32_t __stdcall get_MaintainConnection(bool*) noexcept = 0; virtual int32_t __stdcall get_MaxPduSize(uint16_t*) noexcept = 0; virtual int32_t __stdcall get_SessionStatus(int32_t*) noexcept = 0; virtual int32_t __stdcall add_MaxPduSizeChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_MaxPduSizeChanged(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_SessionStatusChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_SessionStatusChanged(winrt::event_token) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall FromDeviceIdAsync(void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatusChangedEventArgs> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Error(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSubscribedClient> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Session(void**) noexcept = 0; virtual int32_t __stdcall get_MaxNotificationSize(uint16_t*) noexcept = 0; virtual int32_t __stdcall add_MaxNotificationSizeChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_MaxNotificationSizeChanged(winrt::event_token) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattValueChangedEventArgs> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_CharacteristicValue(void**) noexcept = 0; virtual int32_t __stdcall get_Timestamp(int64_t*) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequest> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Value(void**) noexcept = 0; virtual int32_t __stdcall get_Offset(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_Option(int32_t*) noexcept = 0; virtual int32_t __stdcall get_State(int32_t*) noexcept = 0; virtual int32_t __stdcall add_StateChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_StateChanged(winrt::event_token) noexcept = 0; virtual int32_t __stdcall Respond() noexcept = 0; virtual int32_t __stdcall RespondWithProtocolError(uint8_t) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequestedEventArgs> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Session(void**) noexcept = 0; virtual int32_t __stdcall GetDeferral(void**) noexcept = 0; virtual int32_t __stdcall GetRequestAsync(void**) noexcept = 0; }; }; template <> struct abi<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteResult> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; virtual int32_t __stdcall get_ProtocolError(void**) noexcept = 0; }; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristic { WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptor>) GetDescriptors(winrt::guid const& descriptorUuid) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicProperties) CharacteristicProperties() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) ProtectionLevel() const; WINRT_IMPL_AUTO(void) ProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) UserDescription() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Uuid() const; [[nodiscard]] WINRT_IMPL_AUTO(uint16_t) AttributeHandle() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattPresentationFormat>) PresentationFormats() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadResult>) ReadValueAsync() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadResult>) ReadValueAsync(Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>) WriteValueAsync(Windows::Storage::Streams::IBuffer const& value) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>) WriteValueAsync(Windows::Storage::Streams::IBuffer const& value, Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteOption const& writeOption) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadClientCharacteristicConfigurationDescriptorResult>) ReadClientCharacteristicConfigurationDescriptorAsync() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>) WriteClientCharacteristicConfigurationDescriptorAsync(Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue const& clientCharacteristicConfigurationDescriptorValue) const; WINRT_IMPL_AUTO(winrt::event_token) ValueChanged(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic, Windows::Devices::Bluetooth::GenericAttributeProfile::GattValueChangedEventArgs> const& valueChangedHandler) const; using ValueChanged_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic>::remove_ValueChanged>; [[nodiscard]] ValueChanged_revoker ValueChanged(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic, Windows::Devices::Bluetooth::GenericAttributeProfile::GattValueChangedEventArgs> const& valueChangedHandler) const; WINRT_IMPL_AUTO(void) ValueChanged(winrt::event_token const& valueChangedEventCookie) const noexcept; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristic<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristic2 { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService) Service() const; WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptor>) GetAllDescriptors() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristic2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristic3 { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptorsResult>) GetDescriptorsAsync() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptorsResult>) GetDescriptorsAsync(Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptorsResult>) GetDescriptorsForUuidAsync(winrt::guid const& descriptorUuid) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptorsResult>) GetDescriptorsForUuidAsync(winrt::guid const& descriptorUuid, Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteResult>) WriteValueWithResultAsync(Windows::Storage::Streams::IBuffer const& value) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteResult>) WriteValueWithResultAsync(Windows::Storage::Streams::IBuffer const& value, Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteOption const& writeOption) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteResult>) WriteClientCharacteristicConfigurationDescriptorWithResultAsync(Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue const& clientCharacteristicConfigurationDescriptorValue) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic3> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristic3<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristicStatics { WINRT_IMPL_AUTO(winrt::guid) ConvertShortIdToUuid(uint16_t shortId) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristicStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristicUuidsStatics { [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) BatteryLevel() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) BloodPressureFeature() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) BloodPressureMeasurement() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) BodySensorLocation() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CscFeature() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CscMeasurement() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GlucoseFeature() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GlucoseMeasurement() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GlucoseMeasurementContext() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) HeartRateControlPoint() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) HeartRateMeasurement() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) IntermediateCuffPressure() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) IntermediateTemperature() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) MeasurementInterval() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) RecordAccessControlPoint() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) RscFeature() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) RscMeasurement() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) SCControlPoint() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) SensorLocation() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TemperatureMeasurement() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TemperatureType() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristicUuidsStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristicUuidsStatics2 { [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) AlertCategoryId() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) AlertCategoryIdBitMask() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) AlertLevel() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) AlertNotificationControlPoint() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) AlertStatus() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GapAppearance() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) BootKeyboardInputReport() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) BootKeyboardOutputReport() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) BootMouseInputReport() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CurrentTime() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CyclingPowerControlPoint() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CyclingPowerFeature() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CyclingPowerMeasurement() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CyclingPowerVector() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) DateTime() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) DayDateTime() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) DayOfWeek() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GapDeviceName() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) DstOffset() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ExactTime256() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) FirmwareRevisionString() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) HardwareRevisionString() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) HidControlPoint() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) HidInformation() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Ieee1107320601RegulatoryCertificationDataList() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) LnControlPoint() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) LnFeature() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) LocalTimeInformation() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) LocationAndSpeed() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ManufacturerNameString() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ModelNumberString() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Navigation() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) NewAlert() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GapPeripheralPreferredConnectionParameters() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GapPeripheralPrivacyFlag() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) PnpId() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) PositionQuality() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ProtocolMode() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GapReconnectionAddress() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ReferenceTimeInformation() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Report() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ReportMap() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) RingerControlPoint() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) RingerSetting() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ScanIntervalWindow() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ScanRefresh() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) SerialNumberString() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GattServiceChanged() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) SoftwareRevisionString() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) SupportedNewAlertCategory() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) SupportUnreadAlertCategory() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) SystemId() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TimeAccuracy() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TimeSource() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TimeUpdateControlPoint() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TimeUpdateState() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TimeWithDst() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TimeZone() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TxPowerLevel() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) UnreadAlertStatus() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicUuidsStatics2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristicUuidsStatics2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristicsResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus) Status() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::IReference<uint8_t>) ProtocolError() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic>) Characteristics() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristicsResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattCharacteristicsResult<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattClientNotificationResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattSubscribedClient) SubscribedClient() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus) Status() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::IReference<uint8_t>) ProtocolError() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattClientNotificationResult<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattClientNotificationResult2 { [[nodiscard]] WINRT_IMPL_AUTO(uint16_t) BytesSent() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattClientNotificationResult2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattClientNotificationResult2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptor { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) ProtectionLevel() const; WINRT_IMPL_AUTO(void) ProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Uuid() const; [[nodiscard]] WINRT_IMPL_AUTO(uint16_t) AttributeHandle() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadResult>) ReadValueAsync() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadResult>) ReadValueAsync(Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>) WriteValueAsync(Windows::Storage::Streams::IBuffer const& value) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptor<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptor2 { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteResult>) WriteValueWithResultAsync(Windows::Storage::Streams::IBuffer const& value) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptor2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptor2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptorStatics { WINRT_IMPL_AUTO(winrt::guid) ConvertShortIdToUuid(uint16_t shortId) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptorStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptorUuidsStatics { [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CharacteristicAggregateFormat() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CharacteristicExtendedProperties() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CharacteristicPresentationFormat() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CharacteristicUserDescription() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ClientCharacteristicConfiguration() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ServerCharacteristicConfiguration() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorUuidsStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptorUuidsStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptorsResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus) Status() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::IReference<uint8_t>) ProtocolError() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptor>) Descriptors() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDescriptorsResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDescriptorsResult<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceService { WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic>) GetCharacteristics(winrt::guid const& characteristicUuid) const; WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService>) GetIncludedServices(winrt::guid const& serviceUuid) const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) DeviceId() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Uuid() const; [[nodiscard]] WINRT_IMPL_AUTO(uint16_t) AttributeHandle() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceService<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceService2 { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::BluetoothLEDevice) Device() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService>) ParentServices() const; WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic>) GetAllCharacteristics() const; WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService>) GetAllIncludedServices() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceService2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceService3 { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Enumeration::DeviceAccessInformation) DeviceAccessInformation() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession) Session() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattSharingMode) SharingMode() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Enumeration::DeviceAccessStatus>) RequestAccessAsync() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus>) OpenAsync(Windows::Devices::Bluetooth::GenericAttributeProfile::GattSharingMode const& sharingMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicsResult>) GetCharacteristicsAsync() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicsResult>) GetCharacteristicsAsync(Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicsResult>) GetCharacteristicsForUuidAsync(winrt::guid const& characteristicUuid) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicsResult>) GetCharacteristicsForUuidAsync(winrt::guid const& characteristicUuid, Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceServicesResult>) GetIncludedServicesAsync() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceServicesResult>) GetIncludedServicesAsync(Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceServicesResult>) GetIncludedServicesForUuidAsync(winrt::guid const& serviceUuid) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceServicesResult>) GetIncludedServicesForUuidAsync(winrt::guid const& serviceUuid, Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService3> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceService3<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceServiceStatics { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService>) FromIdAsync(param::hstring const& deviceId) const; WINRT_IMPL_AUTO(hstring) GetDeviceSelectorFromUuid(winrt::guid const& serviceUuid) const; WINRT_IMPL_AUTO(hstring) GetDeviceSelectorFromShortId(uint16_t serviceShortId) const; WINRT_IMPL_AUTO(winrt::guid) ConvertShortIdToUuid(uint16_t shortId) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceServiceStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceServiceStatics2 { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService>) FromIdAsync(param::hstring const& deviceId, Windows::Devices::Bluetooth::GenericAttributeProfile::GattSharingMode const& sharingMode) const; WINRT_IMPL_AUTO(hstring) GetDeviceSelectorForBluetoothDeviceId(Windows::Devices::Bluetooth::BluetoothDeviceId const& bluetoothDeviceId) const; WINRT_IMPL_AUTO(hstring) GetDeviceSelectorForBluetoothDeviceId(Windows::Devices::Bluetooth::BluetoothDeviceId const& bluetoothDeviceId, Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; WINRT_IMPL_AUTO(hstring) GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows::Devices::Bluetooth::BluetoothDeviceId const& bluetoothDeviceId, winrt::guid const& serviceUuid) const; WINRT_IMPL_AUTO(hstring) GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows::Devices::Bluetooth::BluetoothDeviceId const& bluetoothDeviceId, winrt::guid const& serviceUuid, Windows::Devices::Bluetooth::BluetoothCacheMode const& cacheMode) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServiceStatics2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceServiceStatics2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceServicesResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus) Status() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::IReference<uint8_t>) ProtocolError() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService>) Services() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceServicesResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattDeviceServicesResult<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalCharacteristic { [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Uuid() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) StaticValue() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicProperties) CharacteristicProperties() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) ReadProtectionLevel() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) WriteProtectionLevel() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptorResult>) CreateDescriptorAsync(winrt::guid const& descriptorUuid, Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptorParameters const& parameters) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptor>) Descriptors() const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) UserDescription() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattPresentationFormat>) PresentationFormats() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSubscribedClient>) SubscribedClients() const; WINRT_IMPL_AUTO(winrt::event_token) SubscribedClientsChanged(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic, Windows::Foundation::IInspectable> const& handler) const; using SubscribedClientsChanged_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic>::remove_SubscribedClientsChanged>; [[nodiscard]] SubscribedClientsChanged_revoker SubscribedClientsChanged(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic, Windows::Foundation::IInspectable> const& handler) const; WINRT_IMPL_AUTO(void) SubscribedClientsChanged(winrt::event_token const& token) const noexcept; WINRT_IMPL_AUTO(winrt::event_token) ReadRequested(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic, Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequestedEventArgs> const& handler) const; using ReadRequested_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic>::remove_ReadRequested>; [[nodiscard]] ReadRequested_revoker ReadRequested(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic, Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequestedEventArgs> const& handler) const; WINRT_IMPL_AUTO(void) ReadRequested(winrt::event_token const& token) const noexcept; WINRT_IMPL_AUTO(winrt::event_token) WriteRequested(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic, Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequestedEventArgs> const& handler) const; using WriteRequested_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic>::remove_WriteRequested>; [[nodiscard]] WriteRequested_revoker WriteRequested(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic, Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequestedEventArgs> const& handler) const; WINRT_IMPL_AUTO(void) WriteRequested(winrt::event_token const& token) const noexcept; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientNotificationResult>>) NotifyValueAsync(Windows::Storage::Streams::IBuffer const& value) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientNotificationResult>) NotifyValueAsync(Windows::Storage::Streams::IBuffer const& value, Windows::Devices::Bluetooth::GenericAttributeProfile::GattSubscribedClient const& subscribedClient) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristic> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalCharacteristic<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalCharacteristicParameters { WINRT_IMPL_AUTO(void) StaticValue(Windows::Storage::Streams::IBuffer const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) StaticValue() const; WINRT_IMPL_AUTO(void) CharacteristicProperties(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicProperties const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicProperties) CharacteristicProperties() const; WINRT_IMPL_AUTO(void) ReadProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) ReadProtectionLevel() const; WINRT_IMPL_AUTO(void) WriteProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) WriteProtectionLevel() const; WINRT_IMPL_AUTO(void) UserDescription(param::hstring const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) UserDescription() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVector<Windows::Devices::Bluetooth::GenericAttributeProfile::GattPresentationFormat>) PresentationFormats() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicParameters> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalCharacteristicParameters<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalCharacteristicResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic) Characteristic() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::BluetoothError) Error() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalCharacteristicResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalCharacteristicResult<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalDescriptor { [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Uuid() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) StaticValue() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) ReadProtectionLevel() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) WriteProtectionLevel() const; WINRT_IMPL_AUTO(winrt::event_token) ReadRequested(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptor, Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequestedEventArgs> const& handler) const; using ReadRequested_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor>::remove_ReadRequested>; [[nodiscard]] ReadRequested_revoker ReadRequested(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptor, Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequestedEventArgs> const& handler) const; WINRT_IMPL_AUTO(void) ReadRequested(winrt::event_token const& token) const noexcept; WINRT_IMPL_AUTO(winrt::event_token) WriteRequested(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptor, Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequestedEventArgs> const& handler) const; using WriteRequested_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor>::remove_WriteRequested>; [[nodiscard]] WriteRequested_revoker WriteRequested(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptor, Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequestedEventArgs> const& handler) const; WINRT_IMPL_AUTO(void) WriteRequested(winrt::event_token const& token) const noexcept; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptor> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalDescriptor<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalDescriptorParameters { WINRT_IMPL_AUTO(void) StaticValue(Windows::Storage::Streams::IBuffer const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) StaticValue() const; WINRT_IMPL_AUTO(void) ReadProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) ReadProtectionLevel() const; WINRT_IMPL_AUTO(void) WriteProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel) WriteProtectionLevel() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorParameters> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalDescriptorParameters<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalDescriptorResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalDescriptor) Descriptor() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::BluetoothError) Error() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalDescriptorResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalDescriptorResult<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalService { [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Uuid() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristicResult>) CreateCharacteristicAsync(winrt::guid const& characteristicUuid, Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristicParameters const& parameters) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::Collections::IVectorView<Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalCharacteristic>) Characteristics() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattLocalService> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattLocalService<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattPresentationFormat { [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) FormatType() const; [[nodiscard]] WINRT_IMPL_AUTO(int32_t) Exponent() const; [[nodiscard]] WINRT_IMPL_AUTO(uint16_t) Unit() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Namespace() const; [[nodiscard]] WINRT_IMPL_AUTO(uint16_t) Description() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormat> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattPresentationFormat<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattPresentationFormatStatics { [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) BluetoothSigAssignedNumbers() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattPresentationFormatStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattPresentationFormatStatics2 { WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattPresentationFormat) FromParts(uint8_t formatType, int32_t exponent, uint16_t unit, uint8_t namespaceId, uint16_t description) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatStatics2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattPresentationFormatStatics2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattPresentationFormatTypesStatics { [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Boolean() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Bit2() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Nibble() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UInt8() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UInt12() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UInt16() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UInt24() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UInt32() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UInt48() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UInt64() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UInt128() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) SInt8() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) SInt12() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) SInt16() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) SInt24() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) SInt32() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) SInt48() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) SInt64() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) SInt128() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Float32() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Float64() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) SFloat() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Float() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) DUInt16() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Utf8() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Utf16() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) Struct() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattPresentationFormatTypesStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattPresentationFormatTypesStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattProtocolErrorStatics { [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) InvalidHandle() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) ReadNotPermitted() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) WriteNotPermitted() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) InvalidPdu() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) InsufficientAuthentication() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) RequestNotSupported() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) InvalidOffset() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) InsufficientAuthorization() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) PrepareQueueFull() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) AttributeNotFound() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) AttributeNotLong() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) InsufficientEncryptionKeySize() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) InvalidAttributeValueLength() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UnlikelyError() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) InsufficientEncryption() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) UnsupportedGroupType() const; [[nodiscard]] WINRT_IMPL_AUTO(uint8_t) InsufficientResources() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattProtocolErrorStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattProtocolErrorStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadClientCharacteristicConfigurationDescriptorResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus) Status() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue) ClientCharacteristicConfigurationDescriptor() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadClientCharacteristicConfigurationDescriptorResult<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadClientCharacteristicConfigurationDescriptorResult2 { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::IReference<uint8_t>) ProtocolError() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadClientCharacteristicConfigurationDescriptorResult2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadClientCharacteristicConfigurationDescriptorResult2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadRequest { [[nodiscard]] WINRT_IMPL_AUTO(uint32_t) Offset() const; [[nodiscard]] WINRT_IMPL_AUTO(uint32_t) Length() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestState) State() const; WINRT_IMPL_AUTO(winrt::event_token) StateChanged(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequest, Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestStateChangedEventArgs> const& handler) const; using StateChanged_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequest, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequest>::remove_StateChanged>; [[nodiscard]] StateChanged_revoker StateChanged(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequest, Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestStateChangedEventArgs> const& handler) const; WINRT_IMPL_AUTO(void) StateChanged(winrt::event_token const& token) const noexcept; WINRT_IMPL_AUTO(void) RespondWithValue(Windows::Storage::Streams::IBuffer const& value) const; WINRT_IMPL_AUTO(void) RespondWithProtocolError(uint8_t protocolError) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequest> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadRequest<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadRequestedEventArgs { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession) Session() const; WINRT_IMPL_AUTO(Windows::Foundation::Deferral) GetDeferral() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattReadRequest>) GetRequestAsync() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadRequestedEventArgs> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadRequestedEventArgs<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus) Status() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) Value() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadResult<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadResult2 { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::IReference<uint8_t>) ProtocolError() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReadResult2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReadResult2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReliableWriteTransaction { WINRT_IMPL_AUTO(void) WriteValue(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic const& characteristic, Windows::Storage::Streams::IBuffer const& value) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>) CommitAsync() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReliableWriteTransaction<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReliableWriteTransaction2 { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteResult>) CommitWithResultAsync() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattReliableWriteTransaction2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattReliableWriteTransaction2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattRequestStateChangedEventArgs { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestState) State() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::BluetoothError) Error() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattRequestStateChangedEventArgs> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattRequestStateChangedEventArgs<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProvider { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattLocalService) Service() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisementStatus) AdvertisementStatus() const; WINRT_IMPL_AUTO(winrt::event_token) AdvertisementStatusChanged(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProvider, Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisementStatusChangedEventArgs> const& handler) const; using AdvertisementStatusChanged_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProvider, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProvider>::remove_AdvertisementStatusChanged>; [[nodiscard]] AdvertisementStatusChanged_revoker AdvertisementStatusChanged(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProvider, Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisementStatusChangedEventArgs> const& handler) const; WINRT_IMPL_AUTO(void) AdvertisementStatusChanged(winrt::event_token const& token) const noexcept; WINRT_IMPL_AUTO(void) StartAdvertising() const; WINRT_IMPL_AUTO(void) StartAdvertising(Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisingParameters const& parameters) const; WINRT_IMPL_AUTO(void) StopAdvertising() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProvider> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProvider<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderAdvertisementStatusChangedEventArgs { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::BluetoothError) Error() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisementStatus) Status() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisementStatusChangedEventArgs> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderAdvertisementStatusChangedEventArgs<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderAdvertisingParameters { WINRT_IMPL_AUTO(void) IsConnectable(bool value) const; [[nodiscard]] WINRT_IMPL_AUTO(bool) IsConnectable() const; WINRT_IMPL_AUTO(void) IsDiscoverable(bool value) const; [[nodiscard]] WINRT_IMPL_AUTO(bool) IsDiscoverable() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderAdvertisingParameters<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderAdvertisingParameters2 { WINRT_IMPL_AUTO(void) ServiceData(Windows::Storage::Streams::IBuffer const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) ServiceData() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderAdvertisingParameters2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderAdvertisingParameters2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::BluetoothError) Error() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProvider) ServiceProvider() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderResult<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderStatics { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderResult>) CreateAsync(winrt::guid const& serviceUuid) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceProviderStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceProviderStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceUuidsStatics { [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Battery() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) BloodPressure() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CyclingSpeedAndCadence() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GenericAccess() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) GenericAttribute() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) Glucose() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) HealthThermometer() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) HeartRate() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) RunningSpeedAndCadence() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceUuidsStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceUuidsStatics2 { [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) AlertNotification() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CurrentTime() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) CyclingPower() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) DeviceInformation() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) HumanInterfaceDevice() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ImmediateAlert() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) LinkLoss() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) LocationAndNavigation() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) NextDstChange() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) PhoneAlertStatus() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ReferenceTimeUpdate() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) ScanParameters() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) TxPower() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattServiceUuidsStatics2> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattServiceUuidsStatics2<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattSession { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::BluetoothDeviceId) DeviceId() const; [[nodiscard]] WINRT_IMPL_AUTO(bool) CanMaintainConnection() const; WINRT_IMPL_AUTO(void) MaintainConnection(bool value) const; [[nodiscard]] WINRT_IMPL_AUTO(bool) MaintainConnection() const; [[nodiscard]] WINRT_IMPL_AUTO(uint16_t) MaxPduSize() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattSessionStatus) SessionStatus() const; WINRT_IMPL_AUTO(winrt::event_token) MaxPduSizeChanged(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession, Windows::Foundation::IInspectable> const& handler) const; using MaxPduSizeChanged_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession>::remove_MaxPduSizeChanged>; [[nodiscard]] MaxPduSizeChanged_revoker MaxPduSizeChanged(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession, Windows::Foundation::IInspectable> const& handler) const; WINRT_IMPL_AUTO(void) MaxPduSizeChanged(winrt::event_token const& token) const noexcept; WINRT_IMPL_AUTO(winrt::event_token) SessionStatusChanged(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession, Windows::Devices::Bluetooth::GenericAttributeProfile::GattSessionStatusChangedEventArgs> const& handler) const; using SessionStatusChanged_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession>::remove_SessionStatusChanged>; [[nodiscard]] SessionStatusChanged_revoker SessionStatusChanged(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession, Windows::Devices::Bluetooth::GenericAttributeProfile::GattSessionStatusChangedEventArgs> const& handler) const; WINRT_IMPL_AUTO(void) SessionStatusChanged(winrt::event_token const& token) const noexcept; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSession> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattSession<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattSessionStatics { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession>) FromDeviceIdAsync(Windows::Devices::Bluetooth::BluetoothDeviceId const& deviceId) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatics> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattSessionStatics<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattSessionStatusChangedEventArgs { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::BluetoothError) Error() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattSessionStatus) Status() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSessionStatusChangedEventArgs> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattSessionStatusChangedEventArgs<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattSubscribedClient { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession) Session() const; [[nodiscard]] WINRT_IMPL_AUTO(uint16_t) MaxNotificationSize() const; WINRT_IMPL_AUTO(winrt::event_token) MaxNotificationSizeChanged(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSubscribedClient, Windows::Foundation::IInspectable> const& handler) const; using MaxNotificationSizeChanged_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSubscribedClient, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSubscribedClient>::remove_MaxNotificationSizeChanged>; [[nodiscard]] MaxNotificationSizeChanged_revoker MaxNotificationSizeChanged(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattSubscribedClient, Windows::Foundation::IInspectable> const& handler) const; WINRT_IMPL_AUTO(void) MaxNotificationSizeChanged(winrt::event_token const& token) const noexcept; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattSubscribedClient> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattSubscribedClient<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattValueChangedEventArgs { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) CharacteristicValue() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::DateTime) Timestamp() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattValueChangedEventArgs> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattValueChangedEventArgs<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattWriteRequest { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) Value() const; [[nodiscard]] WINRT_IMPL_AUTO(uint32_t) Offset() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteOption) Option() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestState) State() const; WINRT_IMPL_AUTO(winrt::event_token) StateChanged(Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequest, Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestStateChangedEventArgs> const& handler) const; using StateChanged_revoker = impl::event_revoker<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequest, &impl::abi_t<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequest>::remove_StateChanged>; [[nodiscard]] StateChanged_revoker StateChanged(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequest, Windows::Devices::Bluetooth::GenericAttributeProfile::GattRequestStateChangedEventArgs> const& handler) const; WINRT_IMPL_AUTO(void) StateChanged(winrt::event_token const& token) const noexcept; WINRT_IMPL_AUTO(void) Respond() const; WINRT_IMPL_AUTO(void) RespondWithProtocolError(uint8_t protocolError) const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequest> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattWriteRequest<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattWriteRequestedEventArgs { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattSession) Session() const; WINRT_IMPL_AUTO(Windows::Foundation::Deferral) GetDeferral() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteRequest>) GetRequestAsync() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteRequestedEventArgs> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattWriteRequestedEventArgs<D>; }; template <typename D> struct consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattWriteResult { [[nodiscard]] WINRT_IMPL_AUTO(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus) Status() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Foundation::IReference<uint8_t>) ProtocolError() const; }; template <> struct consume<Windows::Devices::Bluetooth::GenericAttributeProfile::IGattWriteResult> { template <typename D> using type = consume_Windows_Devices_Bluetooth_GenericAttributeProfile_IGattWriteResult<D>; }; } #endif
[ "kenny.kerr@microsoft.com" ]
kenny.kerr@microsoft.com
c1afd5af2593e1e2b4953495187ce45b7ba2187f
db5555a23f116e610d82053bfe8bf8759217e198
/resource/MediaInfo/mediainfo-code/.svn/pristine/c1/c1afd5af2593e1e2b4953495187ce45b7ba2187f.svn-base
879c53dd90ae335606d72d386140388dadc4b38e
[]
no_license
SummerZm/leixiaohua1020.github.io
f9c4a64501e127a424fa94470e3e3f6bfb2ae526
2da2365365446eac94e6f7b9315c73e1e09604e7
refs/heads/master
2021-06-28T14:12:38.835812
2021-03-16T04:29:25
2021-03-16T04:29:25
225,857,652
0
0
null
2019-12-04T12:04:44
2019-12-04T12:04:43
null
UTF-8
C++
false
false
1,814
// GUI_Help - WxWidgets GUI for MediaInfo // Copyright (C) 2002-2009 Jerome Martinez, Zen@MediaArea.net // // 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 // 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/>. // //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // WxWidgets GUI for MediaInfo // //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //--------------------------------------------------------------------------- #ifndef GUI_HelpH #define GUI_HelpH //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include <QtGui/QDialog> class QTextBrowser; class QPushButton; //--------------------------------------------------------------------------- //*************************************************************************** // GUI_Main //*************************************************************************** class GUI_Help : public QDialog { Q_OBJECT public: GUI_Help (QWidget * parent); private: //GUI QTextBrowser* Text; QPushButton* Close; }; #endif
[ "1254551981@qq.com" ]
1254551981@qq.com
c11376067eb79102f5631c53bde11932d771744a
af8b3481d4b6e3eb8ab43c48efabe1444ab77e46
/Editor/ImGui/NodeEditor/Source/imgui_canvas.h
6d5bf43b6f08c071feeba7e6dd474051cd670c0a
[ "MIT" ]
permissive
seokwoongchoi/D3D12Engine
f91980f4ff8f6a5b205a7e2ce63aa7e69b1406e4
466a28cdeddfe454c23ed168bc7f1319059ca00e
refs/heads/master
2023-07-12T00:39:35.019042
2021-08-25T06:34:12
2021-08-25T06:34:12
399,708,419
2
0
null
null
null
null
UTF-8
C++
false
false
8,663
h
// Canvas widget - view over infinite virtual space. // // Canvas allows you to draw your widgets anywhere over infinite space and provide // view over it with support for panning and scaling. // // When you enter a canvas ImGui is moved to virtual space which mean: // - ImGui::GetCursorScreenPos() return (0, 0) and which correspond to top left corner // of the canvas on the screen (this can be changed usign CanvasView()). // - Mouse input is brought to canvas space, so widgets works as usual. // - Everything you draw with ImDrawList will be in virtual space. // // By default origin point is on top left corner of canvas widget. It can be // changed with call to CanvasView() where you can specify what part of space // should be viewed by setting viewport origin point and scale. Current state // can be queried with CanvasViewOrigin() and CanvasViewScale(). // // Viewport size is controlled by 'size' parameter in BeginCanvas(). You can query // it using CanvasContentMin/Max/Size functions. They are useful if you to not specify // canvas size in which case all free space is used. // // Bounds of visible region of infinite space can be queried using CanvasViewMin/Max/Size // functions. Everything that is drawn outside of this region will be clipped // as usual in ImGui. // // While drawing inside canvas you can translate position from world (usual ImGui space) // to virtual space and back usign CanvasFromWorld()/CanvasToWorld(). // // Canvas can be nested in each other (they are regular widgets after all). There // is a way to transform position between current and parent canvas with // CanvasFromParent()/CanvasToParent(). // // Sometimes in more elaborate scenarios you want to move out canvas virtual space, // do something and came back. You can do that with SuspendCanvas() and ResumeCanvas(). // // Note: // It is not valid to call canvas API outside of BeginCanvas() / EndCanvas() scope. // // LICENSE // This software is dual-licensed to the public domain and under the following // license: you are granted a perpetual, irrevocable license to copy, modify, // publish, and distribute this file as you see fit. // // CREDITS // Written by Michal Cichon # ifndef __IMGUI_EX_CANVAS_H__ # define __IMGUI_EX_CANVAS_H__ # pragma once # include "../../../ImGui/Source/imgui.h" # include "../../../ImGui/Source/imgui_internal.h" // ImRect, ImFloor namespace ImGuiEx { struct CanvasView { ImVec2 Origin; float Scale = 1.0f; float InvScale = 1.0f; CanvasView() = default; CanvasView(const ImVec2& origin, float scale) : Origin(origin) , Scale(scale) , InvScale(scale ? 1.0f / scale : 0.0f) { } void Set(const ImVec2& origin, float scale) { *this = CanvasView(origin, scale); } }; // Canvas widget represent view over infinite plane. // // It acts like a child window without scroll bars with // ability to zoom to specific part of canvas plane. // // Widgets are clipped according to current view exactly // same way ImGui do. To avoid `missing widgets` artifacts first // setup visible region with SetView() then draw content. // // Everything drawn with ImDrawList betwen calls to Begin()/End() // will be drawn on canvas plane. This behavior can be suspended // by calling Suspend() and resumed by calling Resume(). // // Warning: // Please do not interleave canvas with use of channel splitter. // Keep channel splitter contained inside canvas or always // call canvas functions from same channel. struct Canvas { // Begins drawing content of canvas plane. // // When false is returned that mean canvas is not visible to the // user can drawing should be skipped and End() not called. // When true is returned drawing must be ended with call to End(). // // If any size component is equal to zero or less canvas will // automatically expand to all available area on that axis. // So (0, 300) will take horizontal space and have height // of 300 points. (0, 0) will take all remaining space of // the window. // // You can query size of the canvas while it is being drawn // by calling Rect(). bool Begin(const char* id, const ImVec2& size); bool Begin(ImGuiID id, const ImVec2& size); // Ends interaction with canvas plane. // // Must be called only when Begin() retuned true. void End(); // Sets visible region of canvas plane. // // Origin is an offset of infinite plane origin from top left // corner of the canvas. // // Scale greater than 1 make canvas content be bigger, less than 1 smaller. void SetView(const ImVec2& origin, float scale); void SetView(const CanvasView& view); // Centers view over specific point on canvas plane. // // View will be centered on specific point by changing origin // but not scale. void CenterView(const ImVec2& canvasPoint); // Calculates view over specific point on canvas plane. CanvasView CalcCenterView(const ImVec2& canvasPoint) const; // Centers view over specific rectangle on canvas plane. // // Whole rectangle will fit in canvas view. This will affect both // origin and scale. void CenterView(const ImRect& canvasRect); // Calculates view over specific rectangle on canvas plane. CanvasView CalcCenterView(const ImRect& canvasRect) const; // Suspends canvas by returning to normal ImGui transformation space. // While suspended UI will not be drawn on canvas plane. // // Calls to Suspend()/Resume() are symetrical. Each call to Suspend() // must be matched with call to Resume(). void Suspend(); void Resume(); // Transforms point from canvas plane to ImGui. ImVec2 FromLocal(const ImVec2& point) const; ImVec2 FromLocal(const ImVec2& point, const CanvasView& view) const; // Transforms vector from canvas plant to ImGui. ImVec2 FromLocalV(const ImVec2& vector) const; ImVec2 FromLocalV(const ImVec2& vector, const CanvasView& view) const; // Transforms point from ImGui to canvas plane. ImVec2 ToLocal(const ImVec2& point) const; ImVec2 ToLocal(const ImVec2& point, const CanvasView& view) const; // Transforms vector from ImGui to canvas plane. ImVec2 ToLocalV(const ImVec2& vector) const; ImVec2 ToLocalV(const ImVec2& vector, const CanvasView& view) const; // Returns widget bounds. // // Note: // Rect is valid after call to Begin(). const ImRect& Rect() const { return m_WidgetRect; } // Returns visible region on canvas plane (in canvas plane coordinates). const ImRect& ViewRect() const { return m_ViewRect; } // Calculates visible region for view. ImRect CalcViewRect(const CanvasView& view) const; // Returns current view. const CanvasView& View() const { return m_View; } // Returns origin of the view. // // Origin is an offset of infinite plane origin from top left // corner of the canvas. const ImVec2& ViewOrigin() const { return m_View.Origin; } // Returns scale of the view. float ViewScale() const { return m_View.Scale; } // Returns true if canvas is suspended. // // See: Suspend()/Resume() bool IsSuspended() const { return m_SuspendCounter > 0; } private: # define IMGUI_EX_CANVAS_DEFERED() 0 # if IMGUI_EX_CANVAS_DEFERED() struct Range { int BeginVertexIndex = 0; int EndVertexIndex = 0; int BeginComandIndex = 0; int EndCommandIndex = 0; }; # endif void UpdateViewTransformPosition(); void SaveInputState(); void RestoreInputState(); void SaveViewportState(); void RestoreViewportState(); void EnterLocalSpace(); void LeaveLocalSpace(); bool m_InBeginEnd = false; ImVec2 m_WidgetPosition; ImVec2 m_WidgetSize; ImRect m_WidgetRect; ImDrawList* m_DrawList = nullptr; int m_ExpectedChannel = 0; # if IMGUI_EX_CANVAS_DEFERED() ImVector<Range> m_Ranges; Range* m_CurrentRange = nullptr; # endif int m_DrawListCommadBufferSize = 0; int m_DrawListStartVertexIndex = 0; CanvasView m_View; ImRect m_ViewRect; ImVec2 m_ViewTransformPosition; int m_SuspendCounter = 0; float m_LastFringeScale = 1.0f; ImVec2 m_MousePosBackup; ImVec2 m_MousePosPrevBackup; ImVec2 m_MouseClickedPosBackup[IM_ARRAYSIZE(ImGuiIO::MouseClickedPos)]; ImVec2 m_WindowCursorMaxBackup; # if defined(IMGUI_HAS_VIEWPORT) ImVec2 m_ViewportPosBackup; ImVec2 m_ViewportSizeBackup; # endif }; } // namespace ImGuiEx # endif // __IMGUI_EX_CANVAS_H__
[ "sow04014@gmail.com" ]
sow04014@gmail.com
f9ea0ce7e15ccaf5aee2624f7cc72b2ddc5fe9dd
c2af96fb46e69f332be4595d8dd8b1953a1e9e9f
/Include/control/EditVerticalCenter.h
41c2918c666d2a6c8746603aa658dd998c47e779
[]
no_license
tongtianxing/windows_sdkdemo
e89b39070f30a7d6d566f7f77e23ce95e59639b7
892e617e6b439377b7f44614cc1fc6f8db6c0b01
refs/heads/master
2023-05-29T00:34:40.332972
2023-05-15T08:08:04
2023-05-15T08:08:04
231,333,002
2
5
null
null
null
null
GB18030
C++
false
false
812
h
#pragma once // 此编辑框 // 1.文本垂直方向会居中显示,需设置多行显示属性 // 2.可设置未输入数据时显示信息 class CEditVerticalCenter : public CEdit { public: CEditVerticalCenter(); virtual ~CEditVerticalCenter(); protected: DECLARE_MESSAGE_MAP() afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnPaint(); public: void SetDefText(LPCTSTR lpszDefText) { m_strDefText = lpszDefText; } void SetDefTextColor(COLORREF color) { m_ColorDefText = color; } void SetIgnoreFocus(BOOL bIgnore) { m_bIgnoreFocus = bIgnore; } private: COLORREF m_ColorDefText; //默认文本的文字颜色 CString m_strDefText; //编辑框无数据时显示的文本 BOOL m_bIgnoreFocus;//忽略焦点,默认获得焦点不显示默认文本 };
[ "noreply@github.com" ]
noreply@github.com
f42a2e6c42d082895f573671c6171bd27e2dc856
48eb696ca1d2c43cbe0548d892dba77452513dee
/src/template/code/myfloatingwindow.cpp
0be43743d4ec600a1c05586e29988b9b78e62261
[]
no_license
ZYD277/AxtureFormat
1d8c04d296404a502419562805899801d2f75eea
8d3eba059bb07d5b484ea3306d41736c3b3b65b3
refs/heads/develop
2021-03-02T23:43:59.427054
2021-02-03T09:34:13
2021-02-03T09:34:13
244,511,787
0
0
null
2020-03-06T03:06:24
2020-03-03T01:15:26
C++
UTF-8
C++
false
false
7,101
cpp
#include "myfloatingwindow.h" #include "../cppgenerate.h" namespace CXX{ MyFloatingWindow::MyFloatingWindow() : AbstractCodeTemplate(CUSTOM_FLOATING_WINDOW) { } void MyFloatingWindow::prepareOutput(CppGenerate *generate) { QString t_locationName = QString("t_location_%1").arg(m_sameTypeIndex); QString t_baseInfoName = QString("t_baseInfo_%1").arg(m_sameTypeIndex); QString t_textInfoName = QString("t_textInfo_%1").arg(m_sameTypeIndex); QString t_floatButtonName = QString("t_floatButton_%1").arg(m_sameTypeIndex); QString t_mainWidgetName = QString("t_mainWidget_%1").arg(m_sameTypeIndex); QString t_srcImgsName = QString("t_srcImgs_%1").arg(m_sameTypeIndex); QString t_switchButtonName = QString("t_switchButton_%1").arg(m_sameTypeIndex); QString t_floatingWindowName = QString("t_floatingWindow_%1").arg(m_sameTypeIndex); QString t_baseInfo = QString(" BaseInfo %1;").arg(t_baseInfoName); QString t_location = QString(" Location %1;").arg(t_locationName); QString t_textInfo = QString(" TextInfo %1;").arg(t_textInfoName); QString t_floatButton = QString(" FloatButton %1;").arg(t_floatButtonName); QString t_mainWidget = QString(" MainWidget %1;").arg(t_mainWidgetName); QString t_srcImgs = QString(" QList<BaseInfo> %1;").arg(t_srcImgsName); QString t_switchButton = QString(" SwitchButton %1;").arg(t_switchButtonName); QString t_floatingWindow = QString(" FloatingWindow %1;").arg(t_floatingWindowName); QString customStyle; customStyle += ConcatNewLine(t_baseInfo); customStyle += ConcatNewLine(t_textInfo); customStyle += ConcatNewLine(t_location); customStyle += ConcatNewLine(t_floatButton); customStyle += ConcatNewLine(t_mainWidget); customStyle += ConcatNewLine(t_srcImgs); customStyle += ConcatNewLine(t_switchButton); customStyle += ConcatNewLine(t_floatingWindow); auto setLocation = [&](Location t_location){ customStyle += ConcatNewLine(QString(" %1.m_width = %2;").arg(t_locationName).arg(t_location.m_width)); customStyle += ConcatNewLine(QString(" %1.m_height = %2;").arg(t_locationName).arg(t_location.m_height)); customStyle += ConcatNewLine(QString(" %1.m_top = %2;").arg(t_locationName).arg(t_location.m_top)); customStyle += ConcatNewLine(QString(" %1.m_left = %2;").arg(t_locationName).arg(t_location.m_left)); }; auto setBaseInfo = [&](BaseInfo t_baseInfo){ //获取单个控件位置信息 setLocation(t_baseInfo.m_location); customStyle += ConcatNewLine(QString(" %1.m_location = %2;").arg(t_baseInfoName).arg(t_locationName)); //获取单个控件文本信息 customStyle += ConcatNewLine(QString(" %1.m_text = QString::fromLocal8Bit(\"%2\");").arg(t_textInfoName).arg(t_baseInfo.m_textInfo.m_text)); customStyle += ConcatNewLine(QString(" %1.m_color = QString::fromLocal8Bit(\"%2\");").arg(t_textInfoName).arg(t_baseInfo.m_textInfo.m_color)); customStyle += ConcatNewLine(QString(" %1.m_font = QString::fromLocal8Bit(\"%2\");").arg(t_textInfoName).arg(t_baseInfo.m_textInfo.m_font)); customStyle += ConcatNewLine(QString(" %1.m_textInfo = %2;").arg(t_baseInfoName).arg(t_textInfoName)); //获取背景图片 customStyle += ConcatNewLine(QString(" %1.m_srcImg = QString::fromLocal8Bit(\"%2\");").arg(t_baseInfoName).arg(t_baseInfo.m_srcImg)); //获取背景样式 customStyle += ConcatNewLine(QString(" %1.m_style = QString::fromLocal8Bit(\"%2\");").arg(t_baseInfoName).arg(t_baseInfo.m_style)); //获取类型标志 customStyle += ConcatNewLine(QString(" %1.m_className = QString::fromLocal8Bit(\"%2\");").arg(t_baseInfoName).arg(t_baseInfo.m_className)); //获取数据标签 customStyle += ConcatNewLine(QString(" %1.m_dataLabel = QString::fromLocal8Bit(\"%2\");").arg(t_baseInfoName).arg(t_baseInfo.m_dataLabel)); //获取控件ID customStyle += ConcatNewLine(QString(" %1.m_ID = QString::fromLocal8Bit(\"%2\");").arg(t_baseInfoName).arg(t_baseInfo.m_ID)); }; //获取悬浮按钮的信息 for(BaseInfo baseInfo : m_floattingWindow->m_floatButton.m_srcImgs){ setBaseInfo(baseInfo); customStyle += ConcatNewLine(QString(" %1.append(%2);").arg(t_srcImgsName).arg(t_baseInfoName)); } customStyle += ConcatNewLine(QString(" %1.m_srcImgs = %2;").arg(t_floatButtonName).arg(t_srcImgsName)); setLocation(m_floattingWindow->m_floatButton.m_location); customStyle += ConcatNewLine(QString(" %1.m_location = %2;").arg(t_floatButtonName).arg(t_locationName)); //获取主窗口信息 //获取id customStyle += ConcatNewLine(QString(" %1.m_id = QString::fromLocal8Bit(\"%2\");").arg(t_mainWidgetName).arg(m_floattingWindow->m_mainWidget.m_id)); //背景img customStyle += ConcatNewLine(QString(" %1.m_srcImg = QString::fromLocal8Bit(\"%2\");").arg(t_mainWidgetName).arg(m_floattingWindow->m_mainWidget.m_srcImg)); //位置 setLocation(m_floattingWindow->m_mainWidget.m_location); customStyle += ConcatNewLine(QString(" %1.m_location = %2;").arg(t_mainWidgetName).arg(t_locationName)); //开关按钮 for(SwitchButton switchButton : m_floattingWindow->m_mainWidget.m_switchButtons){ setBaseInfo(switchButton.m_closeState); customStyle += ConcatNewLine(QString(" %1.m_closeState = %2;").arg(t_switchButtonName).arg(t_baseInfoName)); setBaseInfo(switchButton.m_openState); customStyle += ConcatNewLine(QString(" %1.m_openState = %2;").arg(t_switchButtonName).arg(t_baseInfoName)); setLocation(switchButton.m_location); customStyle += ConcatNewLine(QString(" %1.m_location = %2;").arg(t_switchButtonName).arg(t_locationName)); customStyle += ConcatNewLine(QString(" %1.m_switchButtons.append(%2);").arg(t_mainWidgetName).arg(t_switchButtonName)); } //获取整个悬浮窗信息 customStyle += ConcatNewLine(QString(" %1.m_floatButton = %2;").arg(t_floatingWindowName).arg(t_floatButtonName)); customStyle += ConcatNewLine(QString(" %1.m_mainWidget = %2;").arg(t_floatingWindowName).arg(t_mainWidgetName)); setLocation(m_floattingWindow->m_location); customStyle += ConcatNewLine(QString(" %1.m_location = %2;").arg(t_floatingWindowName).arg(t_locationName)); QString code; code += ConcatNewLine("{"); code += ConcatNewLine(customStyle); code += ConcatNewLine(" ui->%1->setSelfStyleSheet(%2);").arg(m_floattingWindow->m_ID).arg(t_floatingWindowName); code += ConcatNewLine(" }"); generate->addConstructInitCode(code); } void MyFloatingWindow::setFloatingWindowParameter(FloatingWindow * floatingWindowData) { m_floattingWindow = floatingWindowData; } } //namespace CXX
[ "zyd19072@163.com" ]
zyd19072@163.com
4d8236bbeb47e6aa802b500a984af3ea80c3cb6f
a45e8fa71611b872db1e83570fc28bf73ce0bdbd
/test/test_utils.cpp
0fb450a8ded6deaf671c5d93a0ac4f5230238188
[ "MIT" ]
permissive
pshriwise/double-down
e8e872fc41643f7c3a1c8e5da5f5a5063e649859
52b74f19cd367c6858cb2c019d51c5dc1acb24f7
refs/heads/develop
2023-04-27T03:17:18.731972
2023-04-18T08:17:23
2023-04-18T08:17:23
147,428,711
3
5
MIT
2023-08-19T05:19:12
2018-09-04T22:42:25
C++
UTF-8
C++
false
false
588
cpp
#include "moab/Core.hpp" #include "test_utils.hpp" void write_test_mesh() { moab::Interface* MBI = new moab::Core(); double c[9] = {0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0}; moab::Range verts; moab::ErrorCode rval; rval = MBI->create_vertices(c, 3, verts); MB_CHK_ERR_CONT(rval); moab::EntityHandle conn[3] = {verts[0], verts[1], verts[2]}; moab::EntityHandle t; rval = MBI->create_element(moab::MBTRI, conn, 1, t); MB_CHK_ERR_CONT(rval); rval = MBI->write_file("test_mesh.h5m"); MB_CHK_ERR_CONT(rval); return; }
[ "pshriwise@gmail.com" ]
pshriwise@gmail.com
5f25604d521a7662ef844b863af3664737cc53b7
4d4fbfd4ed5b38fb807fc23b8ab5caf30b62b32d
/opencore-linux/fileformats/mp4/composer/src/mediadataatom.cpp
310867f369b17fe0328785e99f067a093f20a7b2
[ "MIT", "LicenseRef-scancode-other-permissive", "Artistic-2.0", "LicenseRef-scancode-philippe-de-muyter", "Apache-2.0", "LicenseRef-scancode-mpeg-iso", "LicenseRef-scancode-unknown-license-reference" ]
permissive
rcoscali/ftke
e88464f1e85502ffb9c199106bc6cb24f789efcf
e9d4e59c4387400387b65124d4b47b70072dd098
refs/heads/master
2021-01-10T05:01:03.546718
2010-09-23T02:49:21
2010-09-23T02:49:21
47,364,325
6
0
null
null
null
null
UTF-8
C++
false
false
20,910
cpp
/* ------------------------------------------------------------------ * Copyright (C) 1998-2009 PacketVideo * * 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. * ------------------------------------------------------------------- */ /* This PVA_FF_MediaDataAtom Class contains the media data. This class can operate in either one of two ways - 1. it can store all it's data in memory (such as during the creation of PVA_FF_ObjectDescriptor streams), or 2. it can maintain all it's data on disk (such as during the creation ofmedia streams - i.e. audio and video). Note that during reading in this atom from a file stream, the type fp forced to MEDIA_DATA_ON_DISK thereby keeping all the object data in the physical file. */ #define IMPLEMENT_MediaDataAtom #include "mediadataatom.h" #include "atomutils.h" #include "a_atomdefs.h" #include "oscl_byte_order.h" #include "oscl_bin_stream.h" #define TEMP_TO_TARGET_FILE_COPY_BLOCK_SIZE 1024 typedef Oscl_Vector<PVA_FF_Renderable*, OsclMemAllocator> PVA_FF_RenderableVecType; typedef Oscl_Vector<PVA_FF_TrackAtom*, OsclMemAllocator> PVA_FF_TrackAtomVecType; // Constructor PVA_FF_MediaDataAtom::PVA_FF_MediaDataAtom(PVA_FF_UNICODE_STRING_PARAM outputPathString, PVA_FF_UNICODE_STRING_PARAM postfixString, int32 tempFileIndex, int32 type, void *osclFileServerSession, uint32 aCacheSize) : PVA_FF_Atom(MEDIA_DATA_ATOM) { _osclFileServerSession = osclFileServerSession; _success = true; _prenderables = NULL; PV_MP4_FF_NEW(fp->auditCB, PVA_FF_RenderableVecType, (), _prenderables); PV_MP4_FF_NEW(fp->auditCB, PVA_FF_TrackAtomVecType, (), _ptrackReferencePtrVec); // ADDED TO CHECK FOR ANY FILE WRITE FAILURES _fileWriteError = false; _targetFileWriteError = false; _directRender = false; _oIsFileOpen = false; _fileSize = 0; _fileOffsetForChunkStart = 0; _fileOffsetForAtomStart = 0; _type = type; _pofstream._filePtr = NULL; _ptrackReferencePtr = NULL; _targetFileMediaStartOffset = 0; _totalDataRenderedToTargetFile = 0; _tempFilePostfix = postfixString; _tempFilename = outputPathString; _tempFileIndex = tempFileIndex; recomputeSize(); // Preparing the temp output file for rendering the atom data if (_type == MEDIA_DATA_ON_DISK) { prepareTempFile(aCacheSize); } } PVA_FF_MediaDataAtom::PVA_FF_MediaDataAtom(PVA_FF_UNICODE_STRING_PARAM targetFileName, void *osclFileServerSession, uint32 aCacheSize) : PVA_FF_Atom(MEDIA_DATA_ATOM) { _type = MEDIA_DATA_ON_DISK; _osclFileServerSession = osclFileServerSession; _targetFileMediaStartOffset = 0; _totalDataRenderedToTargetFile = 0; _prenderables = NULL; _success = true; PV_MP4_FF_NEW(fp->auditCB, PVA_FF_RenderableVecType, (), _prenderables); PV_MP4_FF_NEW(fp->auditCB, PVA_FF_TrackAtomVecType, (), _ptrackReferencePtrVec); // ADDED TO CHECK FOR ANY FILE WRITE FAILURES _fileWriteError = false; _targetFileWriteError = false; _fileSize = 0; _fileOffsetForChunkStart = 0; _fileOffsetForAtomStart = 0; _directRender = true; _ptrackReferencePtr = NULL; recomputeSize(); _pofstream._filePtr = NULL; _pofstream._osclFileServerSession = OSCL_STATIC_CAST(Oscl_FileServer*, _osclFileServerSession); int retVal = PVA_FF_AtomUtils::openFile(&_pofstream, targetFileName, Oscl_File::MODE_READWRITE | Oscl_File::MODE_BINARY, aCacheSize); _oIsFileOpen = true; if (_pofstream._filePtr == NULL) { _fileWriteError = true; } else if (retVal == 0) { _targetFileWriteError = true; if (_pofstream._filePtr != NULL) { PVA_FF_AtomUtils::closeFile(&_pofstream); _pofstream._filePtr = NULL; } } } PVA_FF_MediaDataAtom::PVA_FF_MediaDataAtom(MP4_AUTHOR_FF_FILE_HANDLE targetFileHandle, void *osclFileServerSession, uint32 aCacheSize) : PVA_FF_Atom(MEDIA_DATA_ATOM) { OSCL_UNUSED_ARG(aCacheSize); _type = MEDIA_DATA_ON_DISK; _osclFileServerSession = osclFileServerSession; _targetFileMediaStartOffset = 0; _totalDataRenderedToTargetFile = 0; _prenderables = NULL; _success = true; // _ptrackReferencePtrVec = new Oscl_Vector<PVA_FF_TrackAtom*,OsclMemAllocator>(); // _prenderables = new Oscl_Vector<PVA_FF_Renderable*,OsclMemAllocator>(); PV_MP4_FF_NEW(fp->auditCB, PVA_FF_RenderableVecType, (), _prenderables); PV_MP4_FF_NEW(fp->auditCB, PVA_FF_TrackAtomVecType, (), _ptrackReferencePtrVec); // ADDED TO CHECK FOR ANY FILE WRITE FAILURES _fileWriteError = false; _targetFileWriteError = false; _fileSize = 0; _fileOffsetForChunkStart = 0; _fileOffsetForAtomStart = 0; _oIsFileOpen = false; _directRender = true; _ptrackReferencePtr = NULL; recomputeSize(); _pofstream._filePtr = targetFileHandle; if (_pofstream._filePtr == NULL) { _fileWriteError = true; } } // Destructor PVA_FF_MediaDataAtom::~PVA_FF_MediaDataAtom() { if (_pofstream._filePtr != NULL && true == _oIsFileOpen) { PVA_FF_AtomUtils::closeFile(&_pofstream); _pofstream._filePtr = NULL; } // PVA_FF_TrackAtom *_ptrackReferencePtr - is taken care of by the movie atom // Delete vector<PVA_FF_Renderable*> *_prenderables if (_prenderables != NULL) { for (uint32 i = 0; i < _prenderables->size(); i++) { if ((*_prenderables)[i] != NULL) { OSCL_DELETE((*_prenderables)[i]); //PV_MP4_FF_DELETE(NULL,PVA_FF_Renderable,(*_prenderables)[i]); (*_prenderables)[i] = NULL; } } PV_MP4_FF_TEMPLATED_DELETE(NULL, PVA_FF_RenderableVecType, Oscl_Vector, _prenderables); _prenderables = NULL; } //Contents of this array are deleted in movie atom //OSCL_DELETE(_ptrackReferencePtrVec); PV_MP4_FF_TEMPLATED_DELETE(NULL, PVA_FF_TrackAtomVecType, Oscl_Vector, _ptrackReferencePtrVec); Oscl_FileServer fileServ; fileServ.Connect(); fileServ.Oscl_DeleteFile(_tempFilename.get_cstr()); fileServ.Close(); } // Create the atom temp file and the corresponding ofstream void PVA_FF_MediaDataAtom::prepareTempFile(uint32 aCacheSize) { if (_pofstream._filePtr == NULL && !_fileWriteError) { // 05/31/01 Generate temporary files into output path (the actual mp4 location) // _tempFilename already contains the output path ("drive:\\...\\...\\") // _tempFilename += _STRLIT("temp"); // Assign the rest of the temp filename - index plus suffix _tempFilename += (uint16)(_tempFileIndex++); // 03/21/01 Multiple instances support _tempFilename += _STRLIT("_"); _tempFilename += _tempFilePostfix; // _tempFilename += _STRLIT(".mdat"); _pofstream._osclFileServerSession = OSCL_STATIC_CAST(Oscl_FileServer*, _osclFileServerSession); PVA_FF_AtomUtils::openFile(&_pofstream, _tempFilename, Oscl_File::MODE_READWRITE | Oscl_File::MODE_BINARY, aCacheSize); if (_pofstream._filePtr == NULL) { _fileWriteError = true; } else { _oIsFileOpen = true; } // Render the atoms base members to the media data atom file renderAtomBaseMembers(&_pofstream); _fileOffsetForChunkStart = getDefaultSize(); _fileSize = getDefaultSize(); } } bool PVA_FF_MediaDataAtom::prepareTargetFile(uint32 mediaStartOffset) { if (_directRender) { if ((_pofstream._filePtr != NULL) && (_fileWriteError != true)) { if (mediaStartOffset > 0) { // Write zeros to accomodate the user data upfront uint8* tempBuffer = NULL; PV_MP4_FF_ARRAY_NEW(NULL, uint8, mediaStartOffset, tempBuffer); oscl_memset(tempBuffer, 0, mediaStartOffset); if (!(PVA_FF_AtomUtils::renderByteData(&_pofstream, mediaStartOffset, tempBuffer))) { PV_MP4_ARRAY_DELETE(NULL, tempBuffer); return false; } PV_MP4_ARRAY_DELETE(NULL, tempBuffer); } // Render the atoms base members to the media data atom file renderAtomBaseMembers(&_pofstream); _fileOffsetForChunkStart = getDefaultSize(); _fileSize = getDefaultSize(); _targetFileMediaStartOffset = mediaStartOffset; return true; } } return false; } uint32 PVA_FF_MediaDataAtom::prepareTargetFileForFragments(uint32 mediaStartOffset) { if (_directRender) { _targetFileMediaStartOffset = mediaStartOffset; PVA_FF_AtomUtils::seekFromStart(&_pofstream, _targetFileMediaStartOffset); renderAtomBaseMembers(&_pofstream); _fileOffsetForChunkStart = getDefaultSize(); _fileSize = getDefaultSize(); return _fileOffsetForChunkStart; } return 0; } bool PVA_FF_MediaDataAtom::closeTargetFile() { if (_directRender) { if ((_pofstream._filePtr != NULL) && (_fileWriteError != true)) { // Get current position of put pointer _totalDataRenderedToTargetFile = PVA_FF_AtomUtils::getCurrentFilePosition(&_pofstream); // Go to the beginning of the media data PVA_FF_AtomUtils::seekFromStart(&_pofstream, _targetFileMediaStartOffset); // Update size field if (!PVA_FF_AtomUtils::render32(&_pofstream, getSize())) { return false; } // Return the _pofstream's pointer to start PVA_FF_AtomUtils::seekFromStart(&_pofstream, 0); _fileOffsetForChunkStart = _targetFileMediaStartOffset + getDefaultSize(); return true; } } return false; } Oscl_File* PVA_FF_MediaDataAtom::getTargetFilePtr() { return (_pofstream._filePtr); } // Adds more data to the atom then update the atom size field (first 4 bytes) bool PVA_FF_MediaDataAtom::addRawSample(void *psample, uint32 length) { bool retVal = true; if (_type == MEDIA_DATA_ON_DISK) { if (!_fileWriteError) { if (_pofstream._filePtr == NULL) { if (!_directRender) { // If initial file fp not opened prepareTempFile(); } else { //File must have been prepared for direct render return false; } } bool ret = PVA_FF_AtomUtils::renderByteData(&_pofstream, length, (uint8 *)psample); if (ret == false) { _fileWriteError = true; retVal = false; } _fileSize += length; // Update the size of the atom // Update the size of the atom recomputeSize(); } else { retVal = false; } } else { retVal = false; } return (retVal); } bool PVA_FF_MediaDataAtom::addRawSample(Oscl_Vector <OsclMemoryFragment, OsclMemAllocator>& fragmentList, uint32 length, int32 mediaType, int32 codecType) { bool retVal = true; bool ret = true; uint32 ii = 0; OsclBinIStreamBigEndian stream; if (_type == MEDIA_DATA_ON_DISK) { if (!_fileWriteError) { if (_pofstream._filePtr == NULL) { if (!_directRender) { // If initial file fp not opened prepareTempFile(); } else { //File must have been prepared for direct render return false; } } uint32 nalLength = 0; if (mediaType == (int32)MEDIA_TYPE_VISUAL && codecType == CODEC_TYPE_AVC_VIDEO) { for (ii = 0; ii < fragmentList.size(); ii++) { // read NAL length in Big Endian format stream.Attach((OsclAny*) &(fragmentList[ii].len), 4); stream >> nalLength; // compose nal length in two bytes ret = PVA_FF_AtomUtils::renderByteData(&_pofstream, 4, (uint8 *) & nalLength); if (ret == false) { _fileWriteError = true; retVal = false; } // write NAL uint ret = PVA_FF_AtomUtils::renderByteData(&_pofstream, fragmentList[ii].len, (uint8 *)fragmentList[ii].ptr); if (ret == false) { _fileWriteError = true; retVal = false; } } } else { for (ii = 0; ii < fragmentList.size(); ii++) { ret = PVA_FF_AtomUtils::renderByteData(&_pofstream, fragmentList[ii].len, (uint8 *)fragmentList[ii].ptr); } } if (ret == false) { _fileWriteError = true; retVal = false; } _fileSize += length; // Update the size of the atom // Update the size of the atom recomputeSize(); } else { retVal = false; } } else { retVal = false; } return (retVal); } int32 PVA_FF_MediaDataAtom::addRenderableSample(PVA_FF_Renderable *psample) { if (_type == MEDIA_DATA_ON_DISK) { // Force renderables to // be written to disk uint32 length = psample->getSize(); psample->renderToFileStream(&_pofstream); _fileSize += length; recomputeSize(); return length; } else { // MEDIA_DATA_IN_MEMORY PVA_FF_Renderable *prenderable = (PVA_FF_Renderable*) psample; _prenderables->push_back(prenderable); recomputeSize(); return prenderable->getSize(); } } // Allocates in-memory space for the media data void PVA_FF_MediaDataAtom::reserveBuffer(int32 size) { OSCL_UNUSED_ARG(size); } void PVA_FF_MediaDataAtom::recomputeSize() { if (_type == MEDIA_DATA_ON_DISK) { // Entire atom size fp same as atom file size if (_fileSize == 0) { _size = getDefaultSize(); } else { _size = _fileSize; } } else { // MEDIA_DATA_IN_MEMORY uint32 size = getDefaultSize(); // Include size from actual data payload // From renderable data for (uint32 i = 0; i < _prenderables->size(); i++) { size += (*_prenderables)[i]->getSize(); } _size = size; } } uint32 PVA_FF_MediaDataAtom::getMediaDataSize() { recomputeSize(); uint32 size = getSize(); return (size); } // Rendering the PVA_FF_Atom in proper format (bitlengths, etc.) to an ostream bool PVA_FF_MediaDataAtom::renderToFileStream(MP4_AUTHOR_FF_FILE_IO_WRAP *fp) { int32 rendered = 0; // Keep track of number of bytes rendered // Render the data if (_type == MEDIA_DATA_IN_MEMORY) { // Render in-memory data directoy to disk // From renderable data // Render PVA_FF_Atom type and size if (!renderAtomBaseMembers(fp)) { return false; } rendered += getDefaultSize(); // BREAKING CONST RULES!!! // Need to set the actual file offset where the actual chunk data begins // so before rendering the ChunkOffetAtom, we can shift the PVA_FF_ChunkOffsetAtom // table elements by this offset - the table elements are actual file offsets // and NOT just offsets from the first chunk (i.e. zero) and we don't really // know this offset until now. PVA_FF_MediaDataAtom *This = const_cast<PVA_FF_MediaDataAtom*>(this); This->setFileOffsetForChunkStart(PVA_FF_AtomUtils::getCurrentFilePosition(fp)); for (uint32 i = 0; i < _prenderables->size(); i++) { if (!(*_prenderables)[i]->renderToFileStream(fp)) { return false; } rendered += (*_prenderables)[i]->getSize(); } } else { // MEDIA_DATA_ON_DISK // 05/30/01 CPU problem when the file fp big. // We update the size at the end not for every sample. // Need to update the atoms size field on disk int32 currentPos = PVA_FF_AtomUtils::getCurrentFilePosition(&_pofstream); // Get current position of put pointer PVA_FF_AtomUtils::seekFromStart(&_pofstream, 0); // Go to the beginning of the file if (!PVA_FF_AtomUtils::render32(&_pofstream, getSize())) { return false; } // Update size field PVA_FF_AtomUtils::seekFromStart(&_pofstream, currentPos); // Return the ostream's put pointer // Cleanup and close temp data output file if (_pofstream._filePtr != NULL) { PVA_FF_AtomUtils::closeFile(&_pofstream); _pofstream._filePtr = NULL; } // Open the file in which this mdat atom was stored MP4_AUTHOR_FF_FILE_IO_WRAP mdatFilePtr; mdatFilePtr._filePtr = NULL; mdatFilePtr._osclFileServerSession = OSCL_STATIC_CAST(Oscl_FileServer*, _osclFileServerSession); PVA_FF_AtomUtils::openFile(&mdatFilePtr, _tempFilename, Oscl_File::MODE_READ | Oscl_File::MODE_BINARY); // Seek to the offset in the file where the ATOM starts PVA_FF_AtomUtils::seekFromStart(&mdatFilePtr, _fileOffsetForAtomStart); // In the case where the mdat atom fp stored on disk file, // the atom just gets directly copied - i.e. there fp no atom-specific // rendering. We need to adjust the fileOffset by the size of the // atom header (based on what the header "should" be). // BREAKING CONST RULES!!! // Need to set the actual file offset where the actual chunk data begins // so before rendering the ChunkOffetAtom, we can shift the PVA_FF_ChunkOffsetAtom // table elements by this offset - the table elements are actual file offsets // and NOT just offsets from the first chunk (i.e. zero) and we don't really // know this offset until now (during rendering). PVA_FF_MediaDataAtom *This = const_cast<PVA_FF_MediaDataAtom*>(this); This->setFileOffsetForChunkStart((uint32)(PVA_FF_AtomUtils::getCurrentFilePosition(fp)) + (uint32)getDefaultSize()); // Read in atom from separate file and copy byte-by-byte to new ofstream // (including the mediaDataAtom header - 4 byte size ad 4 byte type) uint32 readBlockSize = 0; uint32 tempFileSize = getSize(); uint8 *dataBuf = NULL; PV_MP4_FF_ARRAY_NEW(NULL, uint8, TEMP_TO_TARGET_FILE_COPY_BLOCK_SIZE, dataBuf); while (tempFileSize > 0) { if (tempFileSize < TEMP_TO_TARGET_FILE_COPY_BLOCK_SIZE) { readBlockSize = tempFileSize; } else { readBlockSize = TEMP_TO_TARGET_FILE_COPY_BLOCK_SIZE; } if (!(PVA_FF_AtomUtils::readByteData(&mdatFilePtr, readBlockSize, dataBuf))) { _targetFileWriteError = true; return false; } if (!(PVA_FF_AtomUtils::renderByteData(fp, readBlockSize, dataBuf))) { _targetFileWriteError = true; return false; } tempFileSize -= readBlockSize; } PV_MP4_FF_DELETE(NULL, uint8, dataBuf); rendered += _fileSize; PVA_FF_AtomUtils::closeFile(&mdatFilePtr); } return true; }
[ "xianjimli@7eec7cec-e015-11de-ab17-5d3be3536607" ]
xianjimli@7eec7cec-e015-11de-ab17-5d3be3536607
335d978cfd7149bba1d3ccda81e24b757087b152
9763c69ff8a2d338bea4e7d57ae1d4f32c3a8a9a
/HelloLCDWorld/HelloLCDWorld.ino
ece933f547aa44cc520deab05327307a46fcc53f
[]
no_license
appspace/arduino
6840e7e341b755c12615fe16bfc2a5a7a916d74a
41e33a6767caf871a6d14fa5aac8678f0c8ac7fa
refs/heads/master
2020-05-17T23:09:06.160534
2014-10-09T03:07:27
2014-10-09T03:07:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
508
ino
#include <LiquidCrystal.h> #include <Ultrasonic.h> LiquidCrystal lcd(22, 24, 26, 28, 30, 32); void setup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2); // Print a message to the LCD. lcd.print("Hello, world!"); } void loop() { for (int number = 0; number < 256; number ++) { lcd.setCursor(0, 1); lcd.print(number, BIN); lcd.setCursor(9, 1); lcd.print(number, DEC); lcd.setCursor(13, 1); lcd.print(number, HEX); delay(1000); } }
[ "eugenes.mobile@gmail.com" ]
eugenes.mobile@gmail.com
e0bcaef7279e66d20a53ab71da426cab56a82071
8d539ced39960119c418907075b631cec18ca399
/ProjectEuler/141-PE5-SmallestMultiple.cpp
448096a724dad73af08fd725eccffabe0ffe6c8d
[ "MIT" ]
permissive
lucastarche/aotd
d27eed7414c11ce1a0a18c2459b800e9cdf91eef
e501a1f27fc48508d24eac461308aaa2e56a23cf
refs/heads/master
2023-07-19T03:56:06.845259
2021-09-12T12:14:56
2021-09-12T12:14:56
294,989,043
3
1
null
2020-12-16T13:58:42
2020-09-12T17:06:06
C++
UTF-8
C++
false
false
705
cpp
//PE5: Smallest Multiple //Problem statement: find the smallest number which can divide all the numbers from 1 to 20. //Solution: We can see which is the highest power possible of all the primes lower than 20, and then multiply them together. //For this, we will create a function to add to the utilities header, which is called primes_up_to() //Runtime: O(n * sqrt(n)) #include "EulerUtils.hpp" long long solve() { long long ans = 1LL; vector<long long> primes = primes_up_to(20); for (auto i : primes) { long long curr = i; while (curr * i <= 20LL) { curr *= i; } ans *= curr; } return ans; } int main() { cout << solve() << '\n'; }
[ "lucastarche@gmail.com" ]
lucastarche@gmail.com
29a0b86ce84ebbeabd649eab3aff44eeb726b692
1d094d022efdceaf6d268406146a42c1b5712887
/UnaryOperator.cpp
cb58673f1998912769e798e1c2a3f96da22dde2b
[]
no_license
hritren/Automata
7b0dd3f7d875cc10af0128481eb05b1cfbc8b26e
e27fd5e4679bac424aed272513c26d60ec8bc9b6
refs/heads/main
2023-02-10T14:17:54.544201
2021-01-10T18:00:31
2021-01-10T18:00:31
326,620,833
0
0
null
2021-01-05T07:55:19
2021-01-04T08:43:32
C++
UTF-8
C++
false
false
708
cpp
#include "UnaryOperator.h" UnaryOperator::~UnaryOperator() { delete re; } UnaryOperator::UnaryOperator(RegExpr* re, char op,const vector<char>& alphabet) { if (op != '*') { throw "invalid operation"; } if (!areTheSame(this->alphabet, re->getAlphabet())) { throw "the alphabets should be the same"; } this->op = op; type = UNARY_OPERATOR; this->re = re; this->alphabet = alphabet; } std::string UnaryOperator::toString() { std::string result = "(" + re->toString(); result += op; result += ")"; return result; } void UnaryOperator::print() { std::cout << toString(); } Automata UnaryOperator::toAutomata() { return Automata::iteration(re->toAutomata()); }
[ "noreply@github.com" ]
noreply@github.com
b4d18323fadd3e8e77ddb2b7b672a430850944b1
37027d31595171b7fbdaeec33dab261719553001
/android/external/libvpx/libvpx/test/idct8x8_test.cc
fc8129e04a780ad388238dc3a340be75341e767b
[]
no_license
hqctfl/BPI-A20-Android-4.4
00aa341659dc0b3a07759e7808b0d5436b4810a1
8fe0d48d9ddc84b9821dc767f064edea403e1145
refs/heads/master
2022-06-02T15:10:33.870424
2018-06-25T03:06:04
2018-06-25T03:06:04
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,915
cc
/* * Copyright (c) 2012 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include <math.h> #include <stdlib.h> #include <string.h> #include "third_party/googletest/src/include/gtest/gtest.h" extern "C" { #include "./vp9_rtcd.h" } #include "test/acm_random.h" #include "vpx/vpx_integer.h" using libvpx_test::ACMRandom; namespace { #ifdef _MSC_VER static int round(double x) { if (x < 0) return static_cast<int>(ceil(x - 0.5)); else return static_cast<int>(floor(x + 0.5)); } #endif void reference_dct_1d(double input[8], double output[8]) { const double kPi = 3.141592653589793238462643383279502884; const double kInvSqrt2 = 0.707106781186547524400844362104; for (int k = 0; k < 8; k++) { output[k] = 0.0; for (int n = 0; n < 8; n++) output[k] += input[n]*cos(kPi*(2*n+1)*k/16.0); if (k == 0) output[k] = output[k]*kInvSqrt2; } } void reference_dct_2d(int16_t input[64], double output[64]) { // First transform columns for (int i = 0; i < 8; ++i) { double temp_in[8], temp_out[8]; for (int j = 0; j < 8; ++j) temp_in[j] = input[j*8 + i]; reference_dct_1d(temp_in, temp_out); for (int j = 0; j < 8; ++j) output[j*8 + i] = temp_out[j]; } // Then transform rows for (int i = 0; i < 8; ++i) { double temp_in[8], temp_out[8]; for (int j = 0; j < 8; ++j) temp_in[j] = output[j + i*8]; reference_dct_1d(temp_in, temp_out); for (int j = 0; j < 8; ++j) output[j + i*8] = temp_out[j]; } // Scale by some magic number for (int i = 0; i < 64; ++i) output[i] *= 2; } void reference_idct_1d(double input[8], double output[8]) { const double kPi = 3.141592653589793238462643383279502884; const double kSqrt2 = 1.414213562373095048801688724209698; for (int k = 0; k < 8; k++) { output[k] = 0.0; for (int n = 0; n < 8; n++) { output[k] += input[n]*cos(kPi*(2*k+1)*n/16.0); if (n == 0) output[k] = output[k]/kSqrt2; } } } void reference_idct_2d(double input[64], int16_t output[64]) { double out[64], out2[64]; // First transform rows for (int i = 0; i < 8; ++i) { double temp_in[8], temp_out[8]; for (int j = 0; j < 8; ++j) temp_in[j] = input[j + i*8]; reference_idct_1d(temp_in, temp_out); for (int j = 0; j < 8; ++j) out[j + i*8] = temp_out[j]; } // Then transform columns for (int i = 0; i < 8; ++i) { double temp_in[8], temp_out[8]; for (int j = 0; j < 8; ++j) temp_in[j] = out[j*8 + i]; reference_idct_1d(temp_in, temp_out); for (int j = 0; j < 8; ++j) out2[j*8 + i] = temp_out[j]; } for (int i = 0; i < 64; ++i) output[i] = round(out2[i]/32); } TEST(VP9Idct8x8Test, AccuracyCheck) { ACMRandom rnd(ACMRandom::DeterministicSeed()); const int count_test_block = 10000; for (int i = 0; i < count_test_block; ++i) { int16_t input[64], coeff[64]; double output_r[64]; uint8_t dst[64], src[64]; for (int j = 0; j < 64; ++j) { src[j] = rnd.Rand8(); dst[j] = rnd.Rand8(); } // Initialize a test block with input range [-255, 255]. for (int j = 0; j < 64; ++j) input[j] = src[j] - dst[j]; reference_dct_2d(input, output_r); for (int j = 0; j < 64; ++j) coeff[j] = round(output_r[j]); vp9_short_idct8x8_add_c(coeff, dst, 8); for (int j = 0; j < 64; ++j) { const int diff = dst[j] - src[j]; const int error = diff * diff; EXPECT_GE(1, error) << "Error: 8x8 FDCT/IDCT has error " << error << " at index " << j; } } } } // namespace
[ "mingxin.android@gmail.com" ]
mingxin.android@gmail.com
62742cb00546a7cd73116eba856936564ae9020c
8397e5c6bed76d262a0e5cd30066e1733f612c95
/cpp/src/1071.cpp
eb9d5fed28209fd1118563ff0964b47924983d12
[]
no_license
Qinzhehan52/my-leetcode-solutions
9f4e699449d8b76b78373c71ae3713969c9a0c4d
9a70958734c83691c4daf11ef11600b2d9581ec9
refs/heads/master
2021-07-10T15:21:20.793437
2020-06-25T10:35:59
2020-06-25T10:35:59
159,776,582
1
1
null
null
null
null
UTF-8
C++
false
false
1,004
cpp
class Solution { public: string gcdOfStrings(string str1, string str2) { int sub = str1.size() - str2.size(); if (sub == 0) { for (int i = 0; i < str1.size(); i++) { if (str1[i] != str2[i]) { return ""; } } return str1; } string gcd = ""; int limit = 0; if (sub > 0) { gcd.append(str1, str1.size() - sub, sub); limit = str2.size(); } else { gcd.append(str2, str2.size() + sub, 0 - sub); limit = str1.size(); } for (int i = 0; i < limit; i++) { int idx = i < gcd.size() ? i : i % gcd.size(); if (gcd[idx] != str1[i] || gcd[idx] != str2[i]) return ""; } if (str1.size() % gcd.size() || str2.size() % gcd.size()) { return gcdOfStrings(sub > 0 ? str2 : str1, gcd); } else { return gcd; } } };
[ "noreply@github.com" ]
noreply@github.com
8a79e5122546a4e77100cfa58c9c77b16c9b99cb
f00b7b8bd49a2344f819ad813ce7e5bd68691382
/igracka.h
ad4db9cf0f8f25942d0ff3dd51aeead48919cd79
[]
no_license
DaniloIstijanovic/HelloKitty
1f8f4b8e82213dd4f42daa96c68bb215bc875089
987a3e658c7828be6c38deb059cbebb11d768186
refs/heads/master
2022-06-26T18:30:41.730463
2020-05-08T16:27:41
2020-05-08T16:27:41
262,372,308
0
0
null
null
null
null
UTF-8
C++
false
false
234
h
#pragma once #ifndef igracka_h #define igracka_h class Igracka { protected: Dinstring naziv; Dinstring opsegGodina; public: virtual void ispisi() = 0; Dinstring getNaziv()const { return naziv; } }; #endif
[ "noreply@github.com" ]
noreply@github.com
9bf37f1a49bdc10e1a427a11509282e935c28811
c3796ebebb42e55878556a53abad1a2e18fa4020
/src/support/events.h
6eb141ef3cd6bacc12e6383c37f6f051850d16ae
[ "MIT" ]
permissive
lycion/genex-project
a9e54d22138ca81339f76bba166aa9f366fa9dd8
fc103e93ee274dc57179d01c32b0235b29e364ca
refs/heads/master
2020-03-29T02:18:33.445995
2018-08-07T23:56:27
2018-08-07T23:56:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,727
h
// Copyright (c) 2016-2017 The Genex Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef genex_SUPPORT_EVENTS_H #define genex_SUPPORT_EVENTS_H #include <ios> #include <memory> #include <event2/event.h> #include <event2/http.h> #define MAKE_RAII(type) \ /* deleter */\ struct type##_deleter {\ void operator()(struct type* ob) {\ type##_free(ob);\ }\ };\ /* unique ptr typedef */\ typedef std::unique_ptr<struct type, type##_deleter> raii_##type MAKE_RAII(event_base); MAKE_RAII(event); MAKE_RAII(evhttp); MAKE_RAII(evhttp_request); MAKE_RAII(evhttp_connection); inline raii_event_base obtain_event_base() { auto result = raii_event_base(event_base_new()); if (!result.get()) throw std::runtime_error("cannot create event_base"); return result; } inline raii_event obtain_event(struct event_base* base, evutil_socket_t s, short events, event_callback_fn cb, void* arg) { return raii_event(event_new(base, s, events, cb, arg)); } inline raii_evhttp obtain_evhttp(struct event_base* base) { return raii_evhttp(evhttp_new(base)); } inline raii_evhttp_request obtain_evhttp_request(void(*cb)(struct evhttp_request *, void *), void *arg) { return raii_evhttp_request(evhttp_request_new(cb, arg)); } inline raii_evhttp_connection obtain_evhttp_connection_base(struct event_base* base, std::string host, uint16_t port) { auto result = raii_evhttp_connection(evhttp_connection_base_new(base, nullptr, host.c_str(), port)); if (!result.get()) throw std::runtime_error("create connection failed"); return result; } #endif // genex_SUPPORT_EVENTS_H
[ "40029035+genexcore@users.noreply.github.com" ]
40029035+genexcore@users.noreply.github.com
d0e1859dfb027c847770d2959f208dd42c1e5c8a
b49a1ebd1a26b85e9a7fa1a4e56f5b6c241d3b64
/codeforces/codeforces20.cpp
0606e66b365a4fa3ace3e3a0203ecc2555d581d1
[]
no_license
sahilnare/acm-icpc-prob
d00e3fe95c4d8e1b3268fa2995f1c0108f74f3fa
f70e82e1e86cd424ebc94e6110b7c884cc76f8c9
refs/heads/master
2020-12-03T18:14:04.504508
2020-01-02T17:09:03
2020-01-02T17:09:03
231,425,375
1
0
null
null
null
null
UTF-8
C++
false
false
998
cpp
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int i, j, sum = 0,n; bool breaker = true; vector<int> A; for(i = 0; i < 4; i++) { cin >> n; A.push_back(n); sum += A[i]; } if(sum % 2 == 0) { if(breaker) { for(i = 0; i < 4; i++) { if(A[i] > sum/2) { cout << "NO" << endl; breaker = false; break; } else if(A[i] == sum/2) { cout << "YES" << endl; breaker = false; break; } } } if(breaker) { for(i = 0; i < 4; i++) { if(breaker) { for(j = 0; j < 4; j++) { if(i != j) { if(A[i] + A[j] == sum/2) { cout << "YES" << endl; breaker = false; break; } } } } } } } else { cout << "NO" << endl; breaker = false; } if(breaker) { cout << "NO" << endl; } return 0; }
[ "sahilnare78@gmail.com" ]
sahilnare78@gmail.com
9c6c826edd0ec643236955c6c4c931b3649c0409
30fd2d0e910b9b4339ea5a1f2d4ef079285d3bd7
/MakeGif/MainFrm.cpp
188643c9681f6a67e812591334a05c25d5708f5c
[]
no_license
kiar40k/Big-Numbers
3452c33902f0e63781139541552a2c2e14776839
7c4d6dc52deeeac2ac0cdded5a3b3c2ee510b327
refs/heads/master
2021-06-20T01:46:18.860052
2017-08-05T16:04:58
2017-08-05T16:04:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
12,285
cpp
#include "stdafx.h" #include "PixRectArray.h" #include "SettingsDlg.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #endif IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) ON_WM_CREATE() ON_WM_SHOWWINDOW() ON_COMMAND(ID_FILE_OPEN , OnFileOpen ) ON_COMMAND(ID_FILE_CLOSE_GIFFILE , OnFileCloseGiffile ) ON_COMMAND(ID_FILE_MRU_FILE1 , OnFileMruFile1 ) ON_COMMAND(ID_FILE_MRU_FILE2 , OnFileMruFile2 ) ON_COMMAND(ID_FILE_MRU_FILE3 , OnFileMruFile3 ) ON_COMMAND(ID_FILE_MRU_FILE4 , OnFileMruFile4 ) ON_COMMAND(ID_FILE_MRU_FILE5 , OnFileMruFile5 ) ON_COMMAND(ID_FILE_MRU_FILE6 , OnFileMruFile6 ) ON_COMMAND(ID_FILE_MRU_FILE7 , OnFileMruFile7 ) ON_COMMAND(ID_FILE_MRU_FILE8 , OnFileMruFile8 ) ON_COMMAND(ID_FILE_MRU_FILE9 , OnFileMruFile9 ) ON_COMMAND(ID_FILE_MRU_FILE10 , OnFileMruFile10 ) ON_COMMAND(ID_FILE_GEM , OnFileSave ) ON_COMMAND(ID_FILE_GEM_SOM , OnFileSaveAs ) ON_COMMAND(ID_EDIT_INSERTIMAGES , OnEditInserIimages ) ON_COMMAND(ID_EDIT_REMOVEALLIMAGES , OnEditRemoveAllImages ) ON_COMMAND(ID_EDIT_ADDTOGIF , OnEditAddToGif ) ON_COMMAND(ID_EDIT_SETTINSGS , OnEditSettinsgs ) ON_COMMAND(ID_VIEW_PLAY , OnViewPlay ) ON_COMMAND(ID_VIEW_STOP , OnViewStop ) ON_COMMAND(ID_VIEW_SHOWALLIMAGES , OnViewShowAllImages ) ON_COMMAND(ID_VIEW_SHOWRAWPICTURES , OnViewShowRawPictures ) ON_COMMAND(ID_VIEW_SHOWSCALEDPICTURES , OnViewShowScaledPictures ) ON_COMMAND(ID_VIEW_SHOWQUANTIZEDPICTURES, OnViewShowQuantizedPictures) ON_WM_CLOSE() ON_COMMAND(ID_APP_EXIT, OnAppExit) END_MESSAGE_MAP() static UINT indicators[] = { ID_SEPARATOR ,ID_INDICATOR_CAPS ,ID_INDICATOR_NUM }; CMainFrame::CMainFrame() { m_registeredAsListener = false; } CMainFrame::~CMainFrame() { } int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if(CFrameWnd::OnCreate(lpCreateStruct) == -1) { return -1; } if(!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create } if(!m_wndStatusBar.Create(this) || !m_wndStatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT))) { TRACE0("Failed to create status bar\n"); return -1; // fail to create } m_bAutoMenuEnable = false; m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY); EnableDocking(CBRS_ALIGN_ANY); DockControlBar(&m_wndToolBar); setShowFormat(SHOW_RAW); return 0; } BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { if(!CFrameWnd::PreCreateWindow(cs)) { return FALSE; } return TRUE; } #ifdef _DEBUG void CMainFrame::AssertValid() const { CFrameWnd::AssertValid(); } void CMainFrame::Dump(CDumpContext& dc) const { CFrameWnd::Dump(dc); } #endif //_DEBUG // -------------------------------------- File Menu ------------------------------------- void CMainFrame::OnFileOpen() { CFileDialog dlg(TRUE); dlg.m_ofn.lpstrTitle = _T("Load GIF"); dlg.m_ofn.lpstrFilter = _T("Gif files (*.gif)\0*.gif\0" "All files (*.*)\0*.*\0\0"); if(dlg.DoModal() != IDOK) { return; } load(dlg.m_ofn.lpstrFile); } void CMainFrame::OnFileCloseGiffile() { if(!confirmDiscard()) return; getDoc()->closeGif(); } void CMainFrame::OnAppExit() { OnClose(); } void CMainFrame::OnClose() { if(!confirmDiscard()) return; CFrameWnd::OnClose(); } bool CMainFrame::confirmDiscard() { // should return true if user does not want to save or save not needed if(!getDoc()->needSave()) { return true; } bool showAgain; return confirmDialogBox(_T("Gif file not saved. Do you want to continue"), _T("MakeGif"), showAgain, MB_YESNO | MB_ICONQUESTION) == IDYES; } void CMainFrame::OnFileMruFile1() { onFileMruFile(0);} void CMainFrame::OnFileMruFile2() { onFileMruFile(1);} void CMainFrame::OnFileMruFile3() { onFileMruFile(2);} void CMainFrame::OnFileMruFile4() { onFileMruFile(3);} void CMainFrame::OnFileMruFile5() { onFileMruFile(4);} void CMainFrame::OnFileMruFile6() { onFileMruFile(5);} void CMainFrame::OnFileMruFile7() { onFileMruFile(6);} void CMainFrame::OnFileMruFile8() { onFileMruFile(7);} void CMainFrame::OnFileMruFile9() { onFileMruFile(8);} void CMainFrame::OnFileMruFile10() { onFileMruFile(9);} void CMainFrame::onFileMruFile(int index) { if(!load(theApp.getRecentFile(index))) { theApp.removeFromRecentFile(index); } } bool CMainFrame::load(const String &name) { try { getDoc()->loadGif(name); showAllImages(); theApp.AddToRecentFileList(name.cstr()); return true; } catch(Exception e) { MessageBox(e.what(), _T("Error"), MB_ICONWARNING); return false; } } void CMainFrame::OnFileSave() { CMakeGifDoc *doc = getDoc(); if(doc->hasDefaultName()) { OnFileSaveAs(); } else { save(doc->getName()); } } static const TCHAR *saveFileDialogExtensions = _T("Gif files (*.gif)\0*.gif;\0\0"); void CMainFrame::OnFileSaveAs() { CMakeGifDoc *doc = getDoc(); String name = doc->getName(); const TCHAR *tmpName = name.cstr(); CFileDialog dlg(FALSE,_T("gif"), tmpName); dlg.m_ofn.lpstrTitle = _T("Save gif"); dlg.m_ofn.lpstrFilter = saveFileDialogExtensions; if((dlg.DoModal() == IDOK) && (dlg.m_ofn.lpstrFile != NULL)) { name = dlg.m_ofn.lpstrFile; } else { return; } save(name); } void CMainFrame::save(const String &name) { // returns true if succeeded try { FileNameSplitter info(name); const String fullName = info.setExtension(_T("gif")).getFullPath(); getDoc()->saveGif(fullName); theApp.AddToRecentFileList(fullName.cstr()); } catch(Exception e) { MessageBox(e.what()); } } void CMainFrame::setTitle() { CMakeGifDoc *doc = getDoc(); if(doc) { const String name = doc->getName(); int fileSize = doc->getFileSize(); String sizeStr = (fileSize < 0) ? EMPTYSTRING : format(_T("FileSize:%s bytes"), format1000(fileSize).cstr()); const CSize imageSize = doc->getGifSize(); const TCHAR *dirtyMark = doc->needSave() ? _T("*") : EMPTYSTRING; SetWindowText(format(_T("%s%s - %dx%d %s"), name.cstr(), dirtyMark, imageSize.cx,imageSize.cy, sizeStr.cstr()).cstr()); ajourMenuItems(); } } void CMainFrame::ajourMenuItems() { CMakeGifDoc *doc = getDoc(); enableMenuItem(this, ID_FILE_CLOSE_GIFFILE , doc->hasGifFile()); enableMenuItem(this, ID_FILE_GEM , doc->needSave()); enableMenuItem(this, ID_FILE_GEM_SOM , doc->hasGifFile()); enableMenuItem(this, ID_EDIT_ADDTOGIF , doc->getImageCount() > 0); enableMenuItem(this, ID_EDIT_REMOVEALLIMAGES , doc->getImageCount() > 0); enableMenuItem(this, ID_VIEW_PLAY , doc->hasGifFile() && !getView()->isPlaying()); enableMenuItem(this, ID_VIEW_STOP , getView()->isPlaying()); if(!doc->hasGifFile()) { enableMenuItem(this, ID_VIEW_SHOWALLIMAGES, false); } else { enableMenuItem(this, ID_VIEW_SHOWALLIMAGES, true); checkMenuItem( this, ID_VIEW_SHOWALLIMAGES, getView()->isShowingAll()); } } void CMainFrame::OnShowWindow(BOOL bShow, UINT nStatus) { CFrameWnd::OnShowWindow(bShow, nStatus); setTitle(); if(!m_registeredAsListener) { getDoc()->addPropertyChangeListener(this); getView()->addPropertyChangeListener(this); m_registeredAsListener = true; } } void CMainFrame::handlePropertyChanged(const PropertyContainer *source, int id, const void *oldValue, const void *newValue) { if(source == getDoc()) { switch(id) { case UPDATE_TIME: Invalidate(); setTitle(); break; case SAVE_TIME : setTitle(); break; case RAW_IMAGE_LIST : case SCALED_IMAGE_LIST : case QUANTIZED_IMAGE_LIST: ajourMenuItems(); break; } } else if(source == getView()) { switch(id) { case GIFCTRL_STATUS: ajourMenuItems(); break; } } } // -------------------------------------- Edit Menu ------------------------------------- static StringArray getFileNames(const TCHAR *fileNames) { StringArray result; const TCHAR *dir = fileNames; if(*dir == 0) { return result; } bool addCount = 0; for(const TCHAR *cp = dir + _tcslen(dir)+1; *cp; cp += _tcslen(cp) + 1) { result.add(FileNameSplitter::getChildName(dir, cp)); addCount++; } if(addCount == 0) { result.add(dir); } return result; } void CMainFrame::OnEditInserIimages() { static const TCHAR *loadFileDialogExtensions = _T("Picture files\0*.bmp;*.dib;*.jpg;*.emf;*.gif;*.ico;*.wmf;\0" "BMP-Files (*.bmp)\0*.bmp;\0" "DIB-files (*.dib)\0*.dib;\0" "JPG-files (*.jpg)\0*.jpg;\0" "TIFF-files (*.tiff)\0*.tiff;\0" "GIF-files (*.gif)\0*.gif;\0" "ICO-files (*.ico)\0*.ico;\0" "CUR-files (*.cur)\0*.cur;\0" "All files (*.*)\0*.*\0\0"); CFileDialog dlg(TRUE); dlg.m_ofn.lpstrFilter = loadFileDialogExtensions; dlg.m_ofn.lpstrTitle = _T("Open file"); dlg.m_ofn.Flags |= OFN_ALLOWMULTISELECT | OFN_FILEMUSTEXIST | OFN_EXPLORER | OFN_ENABLESIZING; TCHAR fileNameBuffer[4096]; memset(fileNameBuffer,' ',sizeof(fileNameBuffer)); fileNameBuffer[ARRAYSIZE(fileNameBuffer)-1] = 0; dlg.m_ofn.lpstrFile = fileNameBuffer; dlg.m_ofn.nMaxFile = ARRAYSIZE(fileNameBuffer); if((dlg.DoModal() != IDOK) || (_tcslen(fileNameBuffer) == 0) ) { return; } const StringArray fileNames = getFileNames(fileNameBuffer); StringArray errors; PixRectArray prArray(fileNames, errors); if(errors.size() > 0) { String msg; for(size_t i = 0; i < errors.size(); i++) { msg += errors[i] + _T("\r\n"); } MessageBox(msg.cstr(), _T("Error"), MB_ICONWARNING); } if(prArray.size() > 0) { getDoc()->addPixRectArray(prArray); Invalidate(); } } void CMainFrame::OnEditRemoveAllImages() { if(getDoc()->removeAllImages()) { Invalidate(); } } void CMainFrame::OnEditAddToGif() { if(getView()->isPlaying()) { OnViewStop(); } if(getDoc()->addImagesToGif()) { showAllImages(); } } void CMainFrame::OnEditSettinsgs() { CSettingsDlg dlg(getDoc()->getImageSettings()); if(dlg.DoModal() == IDOK) { getDoc()->setImageSettings(dlg.getImageSettings()); Invalidate(); } } // -------------------------------------- View Menu ------------------------------------- void CMainFrame::OnViewPlay() { getView()->startPlay(); } void CMainFrame::OnViewStop() { getView()->stopPlay(); } void CMainFrame::OnViewShowAllImages() { if(!isMenuItemChecked(this, ID_VIEW_SHOWALLIMAGES)) { showAllImages(); } } void CMainFrame::showAllImages() { OnViewStop(); getView()->showAll(); } void CMainFrame::OnViewShowRawPictures() { setShowFormat(SHOW_RAW ); } void CMainFrame::OnViewShowScaledPictures() { setShowFormat(SHOW_SCALED ); } void CMainFrame::OnViewShowQuantizedPictures() { setShowFormat(SHOW_QUANTIZED); } void CMainFrame::setShowFormat(ShowFormat format) { checkMenuItem(this, ID_VIEW_SHOWRAWPICTURES, format == SHOW_RAW ); checkMenuItem(this, ID_VIEW_SHOWSCALEDPICTURES, format == SHOW_SCALED ); checkMenuItem(this, ID_VIEW_SHOWQUANTIZEDPICTURES, format == SHOW_QUANTIZED); m_currentShowFormat = format; Invalidate(); }
[ "jesper.gr.mikkelsen@gmail.com" ]
jesper.gr.mikkelsen@gmail.com
ead5879690aa94497cae3e063a2ef62ee5249a6e
c64e9268e61689a478ec055804864872dc6ebb6e
/mainboard-master-modbus/mainboard-master-modbus.ino
4d638fed2e5b13d26e0e245e3459b8173e76849e
[]
no_license
yokeap/ku-green-mb-firmware
10ca7a7eb698fd387ecb6a3eeda077c0356d99f8
fd99ed0bd71e8fd432f93b714f42a52191e48d78
refs/heads/master
2022-12-16T02:59:36.853293
2020-09-18T04:31:38
2020-09-18T04:31:38
274,420,247
0
0
null
null
null
null
UTF-8
C++
false
false
6,218
ino
#include <ModbusMaster.h> //#define MESSAGE_LENGTH 3 #define CMD_SETIO "S00\0" #define CMD_MEASURE "M00\0" // instantiate ModbusMaster object ModbusMaster node_1, node_2, node_3, node_4, node_5, node_6; struct gasParams{ int intHF; int intCO; int intTemp; }; struct powerMeterParams{ int intVolt; int intAmp; uint32_t lnWatt; uint32_t lnkWh; }; gasParams gasSensor_1, gasSensor_2, gasSensor_3; powerMeterParams powerMeter_1, powerMeter_2, powerMeter_3; //String serverInputString = ""; // a String to hold incoming data bool serverStringComplete = false; // whether the string is complete char serverInputString[15]= {0}; char chCount = 0; char buffer[250] = ""; void setup() { pinMode(16, INPUT); // sets the digital pin 13 as output pinMode(17, INPUT); // sets the digital pin 13 as output pinMode(18, INPUT); // sets the digital pin 13 as output pinMode(19, INPUT); // sets the digital pin 13 as output pinMode(10, OUTPUT); // sets the digital pin 13 as output pinMode(11, OUTPUT); // sets the digital pin 13 as output pinMode(12, OUTPUT); // sets the digital pin 13 as output pinMode(13, OUTPUT); // sets the digital pin 13 as output // use Serial (port 0); initialize Modbus communication baud rate Serial.begin(115200); Serial1.begin(9600); Serial2.begin(9600); // communicate with Modbus slave ID[] over Serial (port 1) node_1.begin(1, Serial1); node_2.begin(2, Serial1); node_3.begin(3, Serial1); node_4.begin(4, Serial1); node_5.begin(5, Serial1); node_6.begin(6, Serial1); Serial2.println("Hello World"); } void loop() { //process(); process_poll(); // delay(500); } bool process_poll(){ // gasModbusRead(node_1, &gasSensor_1); // gasModbusRead(node_2, &gasSensor_2); // gasModbusRead(node_3, &gasSensor_3); powerMeterModbusRead(node_4, &powerMeter_1); powerMeterModbusRead(node_5, &powerMeter_2); powerMeterModbusRead(node_6, &powerMeter_3); sprintf(buffer, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%ld,%ld,%ld,%1d,%1d,%1d,%1d", gasSensor_1.intHF, gasSensor_2.intHF, gasSensor_3.intHF, gasSensor_1.intCO, gasSensor_2.intCO, gasSensor_3.intCO, gasSensor_1.intTemp, gasSensor_2.intTemp, gasSensor_3.intTemp, powerMeter_1.intVolt, powerMeter_2.intVolt, powerMeter_3.intVolt, powerMeter_1.intAmp, powerMeter_2.intAmp, powerMeter_3.intAmp, powerMeter_1.lnWatt, powerMeter_2.lnWatt, powerMeter_3.lnWatt, digitalRead(16), digitalRead(17), digitalRead(18), digitalRead(19)); Serial.println(buffer); } bool process(){ if(serverStringComplete){ //Serial2.println(serverInputString); char *strSplit = strtok(serverInputString, ":,\r\n"); if(strncmp(strSplit, CMD_MEASURE, strlen(CMD_MEASURE)) == 0){ gasModbusRead(node_1, &gasSensor_1); gasModbusRead(node_2, &gasSensor_2); gasModbusRead(node_3, &gasSensor_3); powerMeterModbusRead(node_4, &powerMeter_1); powerMeterModbusRead(node_5, &powerMeter_2); powerMeterModbusRead(node_6, &powerMeter_3); // sprintf(buffer, "%05d,%05d,%05d,%05d,%05d,%05d,%05d,%05d,%05d,%1d,%1d,%1d,%1d", // (int)gasSensor_1.fltHF * 100, (int)gasSensor_2.fltHF * 100, 0, // (int)gasSensor_1.fltCO * 100, (int)gasSensor_2.fltCO * 100, 0, // (int)gasSensor_1.fltTemp * 100, (int)gasSensor_2.fltTemp * 100, 0, // digitalRead(16), digitalRead(17), digitalRead(18), digitalRead(19)); sprintf(buffer, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%ld,%ld,%ld,%1d,%1d,%1d,%1d", gasSensor_1.intHF, gasSensor_2.intHF, gasSensor_3.intHF, gasSensor_1.intCO, gasSensor_2.intCO, gasSensor_3.intCO, gasSensor_1.intTemp, gasSensor_2.intTemp, gasSensor_3.intTemp, powerMeter_1.intVolt, powerMeter_2.intVolt, powerMeter_3.intVolt, powerMeter_1.intAmp, powerMeter_2.intAmp, powerMeter_3.intAmp, powerMeter_1.lnWatt, powerMeter_2.lnWatt, powerMeter_3.lnWatt, digitalRead(16), digitalRead(17), digitalRead(18), digitalRead(19)); Serial.println(buffer); //Serial2.println(buffer); chCount = 0; serverStringComplete = false; return true; } if(strncmp(strSplit, CMD_SETIO, strlen(CMD_SETIO)) == 0){ strSplit = strtok(0, ":,\r\n"); digitalWrite(10, strSplit[0] & 0x0F); digitalWrite(11, strSplit[1] & 0x0F); digitalWrite(12, strSplit[2] & 0x0F); digitalWrite(13, strSplit[3] & 0x0F); chCount = 0; serverStringComplete = false; return true; } //parsing command fail Serial.println(F(":A,String received is invalid")); serverStringComplete = false; chCount = 0; return false; } } void serialEvent() { if (Serial.available()) { char inChar = (char)Serial.read(); serverInputString[chCount] = inChar; chCount++; if (inChar == '\r') { // Serial2.println(serverInputString); serverStringComplete = true; serverInputString[chCount] = 0; } if(chCount > 15){ chCount = 0; serverStringComplete = false; } } } bool gasModbusRead(ModbusMaster slaveNode, gasParams *ptr_gasParams){ uint8_t responseCode; delay(100); responseCode = slaveNode.readInputRegisters(0, 3); if (responseCode == slaveNode.ku8MBSuccess){ ptr_gasParams->intHF = slaveNode.getResponseBuffer(0); ptr_gasParams->intCO = slaveNode.getResponseBuffer(1); ptr_gasParams->intTemp = slaveNode.getResponseBuffer(2); return true; } return false; } bool powerMeterModbusRead(ModbusMaster slaveNode, powerMeterParams *ptr_powerMeterParams){ uint8_t responseCode; delay(100); responseCode = slaveNode.readInputRegisters(0, 6); if (responseCode == slaveNode.ku8MBSuccess){ ptr_powerMeterParams->intVolt = slaveNode.getResponseBuffer(0); ptr_powerMeterParams->intAmp = slaveNode.getResponseBuffer(1); ptr_powerMeterParams->lnWatt = (slaveNode.getResponseBuffer(2) << 16) | slaveNode.getResponseBuffer(3); ptr_powerMeterParams->lnkWh = (slaveNode.getResponseBuffer(4) << 16) | slaveNode.getResponseBuffer(5); return true; } return false; }
[ "siwakorn.ictrl@gmail.com" ]
siwakorn.ictrl@gmail.com
9e72ae34fa3ff43bb4efb7d1dfb3a6274b3fce4b
b60c917036d3d676091f5b921f47947625a11efb
/test/test_rmsd.cpp
c00fcd3e0c95445f0aa64f909b62e8b686b13c51
[ "MIT" ]
permissive
arminms/scalable_allocators
f6dc69dcea67e50038d06e2be0523176f60e9529
ab2a419e636a660df72465d2b85346d63dc7eda5
refs/heads/main
2023-04-22T00:51:36.243204
2021-05-07T20:14:22
2021-05-07T20:14:22
336,311,889
1
0
null
null
null
null
UTF-8
C++
false
false
1,454
cpp
#include <vector> #include <random> #include <algorithm> #include <numeric> #include <execution> #define BOOST_TEST_MODULE TestRMSD #include <boost/test/unit_test.hpp> #include <boost/test/tools/floating_point_comparison.hpp> #include <generate_randoms.hpp> #include <rmsd.hpp> BOOST_AUTO_TEST_CASE( RMSD_FLOAT_SEQ ) { std::vector<float> A { 2.3f, 3.1f, 4.4f, 10.7f, 15.6f, 14.9f, 5.8f, 13.9f, 25.4f }; std::vector<float> B { 2.1f, 3.4f, 4.5f, 10.3f, 15.8f, 14.1f, 5.3f, 13.2f, 25.9f }; BOOST_CHECK_CLOSE( rmsd(std::execution::seq, A.begin(), B.begin(), 3, 3) , 0.81035 , 0.0001); } BOOST_AUTO_TEST_CASE( RMSD_FLOAT_PAR_10K ) { std::vector<float> A(10000 * 3); std::vector<float> B(10000 * 3); generate_randoms(std::execution::par, A.begin(), B.begin(), 10000, 3); BOOST_CHECK_CLOSE( rmsd(std::execution::seq, A.begin(), B.begin(), 10000, 3) , rmsd(std::execution::par, A.begin(), B.begin(), 10000, 3) , 0.00001); } BOOST_AUTO_TEST_CASE( RMSD_FLOAT_PARUNSEQ_10K ) { std::vector<float> A(10000 * 3); std::vector<float> B(10000 * 3); generate_randoms(std::execution::par_unseq, A.begin(), B.begin(), 10000, 3); BOOST_CHECK_CLOSE( rmsd(std::execution::seq, A.begin(), B.begin(), 10000, 3) , rmsd(std::execution::par_unseq, A.begin(), B.begin(), 10000, 3) , 0.00001); }
[ "asobhani@sharcnet.ca" ]
asobhani@sharcnet.ca
5f48af78113b143f501421f983407717f8721df6
19af2e1dfe389afc71e26bebaadf7008251e04e2
/android_test/tensorflow-master/tensorflow/compiler/tf2tensorrt/utils/trt_resources.h
697cef5d788dd765d70aec9c8cffae94e3541b35
[ "Apache-2.0" ]
permissive
simi48/Ef-If_Jassen
6c4975216bb4ae4514fe94a8395a5da5c8e8fb2d
6076839492bff591cf9b457e949999e9167903e6
refs/heads/master
2022-10-15T15:36:35.023506
2020-12-02T10:38:13
2020-12-02T10:38:13
173,759,247
4
0
Apache-2.0
2022-10-04T23:51:35
2019-03-04T14:22:28
PureBasic
UTF-8
C++
false
false
2,457
h
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_COMPILER_TF2TENSORRT_UTILS_TRT_RESOURCES_H_ #define TENSORFLOW_COMPILER_TF2TENSORRT_UTILS_TRT_RESOURCES_H_ #include <list> #include <sstream> #include <string> #include <thread> #include <unordered_map> #include <vector> #include "tensorflow/compiler/tf2tensorrt/convert/utils.h" #include "tensorflow/compiler/tf2tensorrt/utils/trt_allocator.h" #include "tensorflow/compiler/tf2tensorrt/utils/trt_int8_calibrator.h" #include "tensorflow/compiler/tf2tensorrt/utils/trt_logger.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/resource_mgr.h" #if GOOGLE_CUDA #if GOOGLE_TENSORRT #include "third_party/tensorrt/NvInfer.h" namespace tensorflow { namespace tensorrt { class SerializableResourceBase : public ResourceBase { public: virtual Status SerializeToString(string* serialized) = 0; }; class TRTCalibrationResource : public SerializableResourceBase { public: ~TRTCalibrationResource() override; string DebugString() const override; Status SerializeToString(string* serialized) override; // Lookup table for temporary staging areas of input tensors for calibration. std::unordered_map<string, std::pair<void*, size_t>> device_buffers_; // Temporary staging areas for calibration inputs. std::vector<PersistentTensor> device_tensors_; std::unique_ptr<TRTInt8Calibrator> calibrator_; TrtUniquePtrType<nvinfer1::IBuilder> builder_; TrtUniquePtrType<nvinfer1::ICudaEngine> engine_; std::unique_ptr<TRTBaseAllocator> allocator_; Logger logger_; // TODO(sami): Use threadpool threads! std::unique_ptr<std::thread> thr_; }; } // namespace tensorrt } // namespace tensorflow #endif // GOOGLE_TENSORRT #endif // GOOGLE_CUDA #endif // TENSORFLOW_COMPILER_TF2TENSORRT_UTILS_TRT_RESOURCES_H_
[ "TheSiebi@users.noreply.github.com" ]
TheSiebi@users.noreply.github.com
2b2527dd20b3683b0ed4afb12c08c9173114e0e2
2c288a113f9090cda08024ad3301da184cda75e0
/1005-Spell-It-Right.cpp
993a3eb9a12b0e52f215097011fd18893df88ab1
[]
no_license
zuokun23/pat
1dbe09ca64aa2c67a851b1c5375726571606fb43
aca53a8222a8fe897b551e0f72925dc44e489047
refs/heads/master
2021-06-02T06:29:24.381616
2020-04-04T17:04:27
2020-04-04T17:04:27
142,257,784
1
0
null
null
null
null
UTF-8
C++
false
false
1,327
cpp
//1柳神代码 #include<iostream> using namespace std; int main(){ string a; cin >> a; int sum = 0; for(int i = 0 ; i < a.size() ; i++) sum += (a[i] - '0'); string s = to_string(sum); string arr[10] = {"zero" , "one" , "two" , "three" , "four" , "five" , "six" , "seven" , "eight" , "nine"}; cout << arr[s[0] - '0']; for(int i = 1 ; i < s.size() ; i++){ cout << " " << arr[s[i] - '0']; } } //2 #include<iostream> #include<string> using namespace std; int main(){ int sum = 0; string a , b , c;//10的一百次方不能用int cin >> a;//scanf接受字符数组,cin接受字符串 for(int i = 0 ; i < a.size() ; i++){ sum += a[i] - 48; } c = to_string(sum); for(int i = 0 ; i < c.size() ; i++){ if(i != 0) printf(" "); if(c[i] == '0'){ printf("zero"); continue; } if(c[i] == '1'){ printf("one"); continue; } if(c[i] == '2'){ printf("two"); continue; } if(c[i] == '3'){ printf("three"); continue; } if(c[i] == '4'){ printf("four"); continue; } if(c[i] == '5'){ printf("five"); continue; } if(c[i] == '6'){ printf("six"); continue; } if(c[i] == '7'){ printf("seven"); continue; } if(c[i] == '8'){ printf("eight"); continue; } if(c[i] == '9'){ printf("nine"); continue; } } return 0; }
[ "noreply@github.com" ]
noreply@github.com
a4955c7a2c09d14c8242852910eafa5ab3675337
3b9b4049a8e7d38b49e07bb752780b2f1d792851
/src/blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.cc
f1c05796992c98d7a163479de7d8bbf1540331da
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
webosce/chromium53
f8e745e91363586aee9620c609aacf15b3261540
9171447efcf0bb393d41d1dc877c7c13c46d8e38
refs/heads/webosce
2020-03-26T23:08:14.416858
2018-08-23T08:35:17
2018-09-20T14:25:18
145,513,343
0
2
Apache-2.0
2019-08-21T22:44:55
2018-08-21T05:52:31
null
UTF-8
C++
false
false
4,620
cc
// Copyright 2016 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 "blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.h" #include <stddef.h> #include <stdint.h> #include <memory> #include "base/logging.h" #include "base/memory/ptr_util.h" #include "base/numerics/safe_conversions.h" #include "ui/gfx/buffer_format_util.h" #include "ui/gfx/gpu_memory_buffer.h" namespace blimp { namespace client { namespace { class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer { public: GpuMemoryBufferImpl(const gfx::Size& size, gfx::BufferFormat format, std::unique_ptr<base::SharedMemory> shared_memory, size_t offset, size_t stride) : size_(size), format_(format), shared_memory_(std::move(shared_memory)), offset_(offset), stride_(stride), mapped_(false) {} // Overridden from gfx::GpuMemoryBuffer: bool Map() override { DCHECK(!mapped_); DCHECK_EQ(stride_, gfx::RowSizeForBufferFormat(size_.width(), format_, 0)); if (!shared_memory_->Map(offset_ + gfx::BufferSizeForBufferFormat(size_, format_))) return false; mapped_ = true; return true; } void* memory(size_t plane) override { DCHECK(mapped_); DCHECK_LT(plane, gfx::NumberOfPlanesForBufferFormat(format_)); return reinterpret_cast<uint8_t*>(shared_memory_->memory()) + offset_ + gfx::BufferOffsetForBufferFormat(size_, format_, plane); } void Unmap() override { DCHECK(mapped_); shared_memory_->Unmap(); mapped_ = false; } gfx::Size GetSize() const override { return size_; } gfx::BufferFormat GetFormat() const override { return format_; } int stride(size_t plane) const override { DCHECK_LT(plane, gfx::NumberOfPlanesForBufferFormat(format_)); return base::checked_cast<int>(gfx::RowSizeForBufferFormat( size_.width(), format_, static_cast<int>(plane))); } gfx::GpuMemoryBufferId GetId() const override { return gfx::GpuMemoryBufferId(0); } gfx::GpuMemoryBufferHandle GetHandle() const override { gfx::GpuMemoryBufferHandle handle; handle.type = gfx::SHARED_MEMORY_BUFFER; handle.handle = shared_memory_->handle(); handle.offset = base::checked_cast<uint32_t>(offset_); handle.stride = base::checked_cast<int32_t>(stride_); return handle; } ClientBuffer AsClientBuffer() override { return reinterpret_cast<ClientBuffer>(this); } private: const gfx::Size size_; gfx::BufferFormat format_; std::unique_ptr<base::SharedMemory> shared_memory_; size_t offset_; size_t stride_; bool mapped_; }; } // namespace BlimpGpuMemoryBufferManager::BlimpGpuMemoryBufferManager() {} BlimpGpuMemoryBufferManager::~BlimpGpuMemoryBufferManager() {} std::unique_ptr<gfx::GpuMemoryBuffer> BlimpGpuMemoryBufferManager::AllocateGpuMemoryBuffer( const gfx::Size& size, gfx::BufferFormat format, gfx::BufferUsage usage, gpu::SurfaceHandle surface_handle) { DCHECK_EQ(gpu::kNullSurfaceHandle, surface_handle) << "Blimp should not be allocating scanout buffers"; std::unique_ptr<base::SharedMemory> shared_memory(new base::SharedMemory); const size_t buffer_size = gfx::BufferSizeForBufferFormat(size, format); if (!shared_memory->CreateAnonymous(buffer_size)) return nullptr; return base::WrapUnique<gfx::GpuMemoryBuffer>(new GpuMemoryBufferImpl( size, format, std::move(shared_memory), 0, base::checked_cast<int>( gfx::RowSizeForBufferFormat(size.width(), format, 0)))); } std::unique_ptr<gfx::GpuMemoryBuffer> BlimpGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle( const gfx::GpuMemoryBufferHandle& handle, const gfx::Size& size, gfx::BufferFormat format) { if (handle.type != gfx::SHARED_MEMORY_BUFFER) return nullptr; return base::WrapUnique<gfx::GpuMemoryBuffer>(new GpuMemoryBufferImpl( size, format, base::WrapUnique(new base::SharedMemory(handle.handle, false)), handle.offset, handle.stride)); } gfx::GpuMemoryBuffer* BlimpGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( ClientBuffer buffer) { return reinterpret_cast<gfx::GpuMemoryBuffer*>(buffer); } void BlimpGpuMemoryBufferManager::SetDestructionSyncToken( gfx::GpuMemoryBuffer* buffer, const gpu::SyncToken& sync_token) { NOTIMPLEMENTED(); } } // namespace client } // namespace blimp
[ "changhyeok.bae@lge.com" ]
changhyeok.bae@lge.com
7b67c010ff26d8bb7471511222c8fd7cce690e6c
91d353a3e198421ffd21de73e3aa13dc3a2db888
/GNU GCC/source/Salt.h
079b13aafad835258c166f42877b46c6685d2320
[]
no_license
hypotheticalbarfi/sas-pi
a873366b9ff0dcee1f7795895961a2b63eeb4e74
682bb0568c249da8273b41b25b67f371b71d1ce5
refs/heads/master
2021-06-14T16:07:05.409361
2012-04-12T11:50:04
2012-04-12T11:50:04
null
0
0
null
null
null
null
UTF-8
C++
false
false
16,881
h
/* * Salt.h * * Copyright 2010 Ershad K <ershad92@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ /******************************************************************************* Declaring predifined header files ... *******************************************************************************/ #include <iostream> #include <fstream> #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <string.h> #include <ctype.h> #include <process.h> #include <ctime> // For time() - Check for existence in borland includes #include <cstdlib> // For srand() and rand - Check for existence in includes //#include <conio.h> using namespace std; // Cations #define AMMONIUM 1 #define LEAD 2 #define COPPER 3 #define ALUMINIUM 4 #define MANGANESE 5 #define ZINC 6 #define BARIUM 7 #define CALCIUM 8 #define MAGNESIUM 9 //Anions #define CARBONATE 1 #define SULPHIDE 2 #define SULPHATE 3 #define NITRATE 4 #define CHLORIDE 5 #define BROMIDE 6 #define IODIDE 7 #define ACETATE 8 //Reagensts #define dHCl 1 // Dilute HCl #define dH2SO4 2 #define cH2SO4 3 #define cH2SO4_NH4OH 4 // Add H2SO4 and then introduce NH4OH to test tube #define cH2SO4_papper 5 #define bariumchloride_insol_dHCL 6 #define dHCl_lime 7 #define bariumchloride 8 #define leadnitrate 9 /* add lead nitrate **/ #define sodiumnitroprusside 10 /* #define HNO3_AgNO3_sol_NH4OH 11 #define cH2SO4_MnO2 12 #define HNO3_AgNO3_psol_NH4OH 13 #define H2SO4_MnO2_spaper 14 #define HNO3_AgNO3_insol_NH4OH 15*/ #define HNO3_AgNO3 11 #define cH2SO4_MnO2 12 #define H2SO4_MnO2_spaper 13 #define neutralferricchloride 14 #define acetate_special_test 15 #define leadacetate 16 #define diphenylamine 17 #define NaOH_aluminium 18 #define sodiumcarbonate 19 #define dHCl_H2S 20 #define NH4CL_NH4OH 21 #define NH4CL_NH4OH_H2S 22 #define NH4CL_NH4OH_NH42CO3 23 #define NH4CL_NH4OH_Na2HPO4 24 #define NaOH_fumes_cHCl 25 #define potassium_iodide_sol_water 26 #define aceticacid_potassiumchromate 27 #define NH4OH_dropbydrop 28 #define aceticacid_potassiumferrocyanide 29 #define NaOH 30 #define NH4OH_ammoniumoxalate 31 #define mangeson_NaOH 32 #define nessler 33 #define matchstick 85 #define brownring 84 #define permaganic 86 #define xx 7 #define yy 12 COORD coord={0,0}; void gotoxy(int x,int y) { coord.X=--x; coord.Y=--y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord); } class Salt { public: //int S; // Salt Number ( combining both Anion & Cation ) char *name; // Name of the salt int A; // Anion number int C; char lasttest[30]; //Cation number // Priliminary tests.. int CheckColour(); int HeatStrongly(); int FlameTest(); int AshTest(); int DoTest(int test); void record(int c, int a, char *n) { //S = s; C = c; A = a; name = n; } void display() { cout <<"Anion No:"<<A<<" Cation No:"<<C<<" Name :"<<name; } Salt() { strcpy(lasttest," ------------------------------------ "); strcpy(lasttest,"No such tests have been done"); } //Analysis of anions & cations int TestSalt(int reagent); }; int Salt::DoTest(int test) { switch(test) { case 0: break; case 80: CheckColour(); strcpy(lasttest,"Check Colour");break; case 81: HeatStrongly();strcpy(lasttest,"Heat Strongly");break; case 82: FlameTest();strcpy(lasttest,"Flame Test");break; case 83: AshTest();strcpy(lasttest,"Ash Test");break; case 84: TestSalt(84);strcpy(lasttest,"Brown Ring Test");break; case 85: TestSalt(85);strcpy(lasttest,"Match Stick Test");break; case 86: TestSalt(86);strcpy(lasttest,"Permaganic Acid Test");break; } } int Salt::CheckColour() { switch (C) // Checking only C becuase, Cu and Mn are cations { case COPPER : cout << " Colour of the salt is Blue ! "; break; case MANGANESE : cout << " Colour of the salt is Pink ! "; break; default: cout << " Colour of the salt is White !"; break; } return 0; } int Salt::HeatStrongly() { int flag = 0; switch (A) { case CARBONATE : cout << " A colourless gas which turned lime water milky is evolved!";flag=1;break; case SULPHIDE : cout << " A colourless gad with the smell of burnt sulphur!";flag=1;break; case IODIDE : cout << " Violet vapours are observed!";flag=1;break; } if ( C == AMMONIUM) { cout << "Smell of Ammonia is observed!"; flag = 1; } if ( flag ==0) // I hope this statement is equal to 'if ( flag == 0 )' { cout << " Nothing of speciality ! "; } return 0; } int Salt::FlameTest() { switch(C) // Flame test are used to find cations only { case COPPER : cout << " Bluish flame colour is observed! "; break; case BARIUM : cout << " Green flame colour is observed! "; break; case CALCIUM : cout << " Brick red flame colour is observed!"; break; default : cout << " Nothing of speciality! "; break; } return 0; } int Salt::AshTest() { switch (C) { case ALUMINIUM : cout << " Blue tinted ash is formed!";break; case ZINC : cout << " Green tinted ash is formed!";break; case MAGNESIUM : cout << " Pink tinted ash if formed!";break; default : cout << " Nothing of speciality! ";break; } return 0; } int Salt::TestSalt(int reagent) { switch (reagent) { /******* Analysis of Anion **********/ case 0:break; case dHCl : if ( A == CARBONATE ) { cout << " Vigorous or brisk effervescence with evolution "; gotoxy (xx,yy);cout << "of a colurless gas is observed!"; } else if (A == SULPHIDE ) { cout << " Colourless gas and smell of rotten eggs are observed!"; } /* ----------------- Lead - Cation ----------------*/ else if ( C == LEAD ) { cout << " A white precipitate is formed!"; } else cout << " No characteristic observation!"; break; case dH2SO4 : if ( A == ACETATE ) { cout << "Vinegar like smell is observed!"; } else cout << " No chracteristic observation!"; break; case cH2SO4_NH4OH : // Add H2SO4 and then introduce NH4OH to test tube if ( A == CHLORIDE ) { cout << " Colourless gas evolved which gave dense white fumes!"; } else cout << " No chracteristic observation!"; break; case cH2SO4 : if ( A == BROMIDE ) { cout << " Reddish brown vapours evolved and solution turns brown"; } else if ( A == IODIDE ) { cout << " Violet vapours and black shining crystals on the cooler "; gotoxy (xx,yy);cout<< "sides of the test tube!"; } else cout << " No chracteristic observation!"; break; case cH2SO4_papper : // Paper ball or Copper tunings is added to solution with cH2SO4 if ( A == NITRATE ) { cout << " Reddish brown gas is evolved!"; } else cout << " No chracteristic observation!"; break; case bariumchloride_insol_dHCL : if ( A == SULPHATE ) { cout << " A white precipitate (insoluble in dil. HCL) is observed!"; } else cout << " No chracteristic observation!"; break; /******* /Analysis of Anion **********/ /******* Confirmatory tests of Anions **********/ /* ----------------- Carbonate ----------------*/ case dHCl_lime : if ( A == CARBONATE ) { cout << " Lime water turns milky!"; } else cout << " No chracteristic observation!"; break; case bariumchloride : if ( A == CARBONATE ) { cout << " A white precipitate is obtained!"; } else cout << " No chracteristic observation!"; break; /* ----------------- /Carbonate ----------------*/ /* ----------------- Sulphide ----------------*/ case leadnitrate : if ( A == SULPHIDE ) { cout << " A black precipitate is obtained!"; } else cout << " No chracteristic observation!"; break; case leadacetate : if ( A == SULPHIDE ) { cout << " A black precipitate is obtained!"; } else if ( A == SULPHATE ) { cout << " A white precipitate! (soluble in ammonium acetate)"; } else cout << " No characteristic observation!"; break; case sodiumnitroprusside : if ( A == SULPHIDE ) { cout << " A violet Colouration is observed!"; } else cout << " No chracteristic observation!"; break; /* ----------------- /Sulphide ----------------*/ /* ----------------- Chloride ----------------*/ case HNO3_AgNO3 : if ( A == CHLORIDE ) { cout << " White courdy precipitate! (soluble in excess of Ammonium hydroxide)"; gotoxy (xx,yy);cout<< "is observed! "; } /* ----------------- Bromide ----------------*/ else if ( A == BROMIDE ) { cout << " Pale yellow precipitate! (partially soluble in excess of Ammonium"; gotoxy (xx,yy);cout<<"hydroxide)"; } /* ----------------- Iodide ----------------*/ else if ( A == IODIDE ) { cout << "Yellow precipitate! (insoluble in excess of Ammonium hydroxide)"; } else cout << " No characteristic observation!"; break; case cH2SO4_MnO2 : if ( A == CHLORIDE ) { cout << " A greenish yellow gas with pungent smell is observed!"; } else if ( A == IODIDE ) // IODIDE { cout << " Deep violet vapours are are evolved which condensed to black shining"; gotoxy (xx,yy);cout<< "crystals on the cooler sides of the test tube!"; } else cout << " No characteristic observation!"; break; /* ----------------- /Chloride ----------------*/ case H2SO4_MnO2_spaper : // ..which turned starch paper yellow when showed in the mouth of the test tube if ( A == BROMIDE ) { cout << "R eddish vapours are observed!"; } else cout << " No characteristic observation!"; break; /* ----------------- /Bromide ----------------*/ /*case H2SO4_MnO2 : if ( A == IODIDE ) { cout << " Deep violet vapours are are evolved which condensed to black shining" << " crystals on the cooler sides of the test tube!"; } else cout << " No characteristic observation!"; break; */ /* ----------------- /Iodide ----------------*/ /* ----------------- Acetate ----------------*/ case neutralferricchloride : if ( A == ACETATE ) { cout << " A deep red colouration is obtained!"; } else cout << " No characteristic observation!"; break; case acetate_special_test : // Pg :- 104, 6 - b if ( A == ACETATE ) { cout << " Pleasant fruity smell!"; } else cout << " No characteristic observation!"; break; /* ----------------- /Acetate ----------------*/ /* ----------------- Nitrate ----------------*/ case brownring : if ( A == NITRATE ) { cout << " A brown ring is formed at the junction of the acid and aqueous solution!"; } else cout << " No characteristic observation!"; break; case diphenylamine : if ( A == NITRATE ) { cout << " A deep blue coluration is obtained!"; } else cout << " No characteristic observation!"; break; case NaOH_aluminium : if ( A == NITRATE ) { cout << " Smell of ammonia giving dense white fumes with a glass rod dipped "; gotoxy (xx,yy);cout<<"in conc.HCl!"; } else cout << " No characteristic observation!"; break; /* ----------------- /Nitrate ----------------*/ /* ----------------- Sulphate ----------------*/ case matchstick : if ( A == SULPHATE ) { cout << " Violet streak is produced!"; } else cout << " No characteristic observation!"; break; /* ----------------- /Sulphate ----------------*/ /* **----------------- Analysis of cations ----------------** */ /* ----------------- Ammonium ----------------*/ case sodiumcarbonate : if ( C == AMMONIUM ) { cout << " No precipitate is formed!"; } else cout << " A precipitate is formed!"; break; /* ----------------- Copper ----------------*/ case dHCl_H2S : if ( C == COPPER ) { cout << " A black precipitate is formed!"; } else cout << " No characteristic observation!"; break; /* ----------------- Aluminium ----------------*/ case NH4CL_NH4OH : if ( C == ALUMINIUM ) { cout << " A white gelatinous precipitate is formed!"; } else cout << " No characteristic observation!"; break; /* ----------------- Zinc or Manganese----------------*/ case NH4CL_NH4OH_H2S : if ( C == ZINC ) { cout << " A white precipitate is formed!"; } else if ( C == MANGANESE ) { cout << " A flesh or pink precipitate is formed!"; } else cout << " No characteristic observation!"; break; /* ----------------- Barium or Calcium ----------------*/ case NH4CL_NH4OH_NH42CO3 : if ( C == BARIUM ) { cout << " A white precipitate is formed!"; } else if ( C == CALCIUM ) { cout << " A white precipitate is formed!"; } else cout << " No characteristic observation!"; break; /* ----------------- Magnesium ----------------*/ case NH4CL_NH4OH_Na2HPO4 : if ( C == MAGNESIUM ) { cout << " A white crystalline precipitate is formed!"; } else cout << " No characteristic observation!"; break; /* ---- /Preliminary Experiments ---------- */ /* ---- Zero group ---------- */ case NaOH_fumes_cHCl : if ( C == AMMONIUM ) { cout << " Colourless gas with the smell of ammonia producing"; gotoxy (xx,yy);cout<< "dense white fumes with conc.HCl is formed!"; } else cout << " No characteristic observation!"; break; /* ---- First group ---------- */ case potassium_iodide_sol_water : if ( C == LEAD ) { cout << " Yellow precipitate in hot water but reappears as golden spangle"; gotoxy (xx,yy);cout<< " on cooling is obtained!"; } else cout << " No characteristic observation!"; break; case aceticacid_potassiumchromate : if ( C == LEAD ) { cout << " Yellow precipitate is obtained!"; } else if ( C == BARIUM ) { cout << " Yellow precipitate is formed!"; } else cout << " No characteristic observation!"; break; /* ------- Second group ------- */ case NH4OH_dropbydrop : if ( C == COPPER ) { cout << " A blue precipitate soluble in excess if Ammonium Hydroxide is obtained!"; } else cout << " No characteristic observation!"; break; case aceticacid_potassiumferrocyanide : if ( C == COPPER ) { cout << " Chocolate brown precipitate is obtained!"; } else cout << " No characteristic observation!"; break; /* ------- Third group ------- */ case NaOH : if ( C == ALUMINIUM ) { cout << " A wihte gelatinous precipitate soluble in excess of NaOH is formed!"; } else if ( C == ZINC ) { cout << " White precipitate soluble in excess of NaOH is formed!"; } else if ( C == MANGANESE ) { cout << " White precipitate changing to brown is observed!"; } else cout << " No characteristic observation!"; break; case permaganic : if ( C == MANGANESE ) { cout << " The suprenatent liquid got pink colour!"; } else cout << " No characteristic observation!"; break; /* ------- Group Five ------- */ case NH4OH_ammoniumoxalate : if ( C == CALCIUM ) { cout << " A white precipitate is formed!"; } else cout << " No characteristic observation!"; break; /* ------- Group Six ------- */ case mangeson_NaOH : if ( C == MAGNESIUM ) { cout << " A blue precipitate is formed!"; } else cout << " No characteristic observation!"; break; case nessler: if ( C == AMMONIUM ) { cout << " A brown precipitate is formed!"; } else cout << " No characteristic observation!"; break; } return 0; }
[ "rharikrishnan95@7c9788af-a7c7-4797-9009-086e9be6da6f" ]
rharikrishnan95@7c9788af-a7c7-4797-9009-086e9be6da6f
669d77e18c92ce3a0aba6a10f947ef67f2c803a3
42bb951ad9d5025b1c6e067817b3a1dbe07cfd81
/Include/Shapes/sphere.hpp
144cf2205ee9417f0cca97223dcb88fd9fd25aa7
[]
no_license
marsicplusplus/CPPRayTracer
e1006814e7bc50c5835fc8fb8e82fd61615ebcbd
a0afdad3884014def6cac2929a3341516cd4492d
refs/heads/master
2023-02-17T21:26:33.487177
2021-01-20T12:40:48
2021-01-20T12:40:48
328,347,226
0
0
null
null
null
null
UTF-8
C++
false
false
452
hpp
#ifndef __SPHERE_HPP__ #define __SPHERE_HPP__ #include "Shapes/hittable.hpp" #include "Materials/material.hpp" #include <memory> #include "vec3.hpp" class Sphere : public Hittable { public: Sphere(); Sphere(Point3 center, double r, std::shared_ptr<Material> m); virtual bool hit(const Ray& r, double tMin, double tMax, HitRecord& rec) const override; public: Point3 center; double radius; std::shared_ptr<Material> matPtr; }; #endif
[ "lorenzomarsicano@gmail.com" ]
lorenzomarsicano@gmail.com
b3200caa4cf3687d3f19f18f21993e885de5c5d4
52ecc81aba92258924ff6bbe62e536e1ad85ff03
/tutorial/lodev.org/cgtutor/files/floodfill.cpp
2677f75ac283c02a3b92f1760b23da5cce1cb02e
[ "BSD-2-Clause" ]
permissive
mdurrer/cgd
df02709a9b5db7d3696f82c521405f1ada67febf
bbbb2960e2c47531b464f888146d758ca96c5b64
refs/heads/master
2020-05-21T12:28:54.901920
2018-07-25T20:06:48
2018-07-25T20:06:48
52,598,365
3
0
null
null
null
null
UTF-8
C++
false
false
13,764
cpp
/* Copyright (c) 2004, Lode Vandevenne All rights reserved. */ #include <cmath> #include <cstdlib> //for random numbers rand(); #include <SDL/SDL.h> #include "QuickCG.h" #include "Q3Dmath.h" using namespace std; template <typename T0, typename T1> inline T0 pow(T0 a, T1 b){return pow(a, T0(b));} //////////////////////////////////////////////////////////////////////////////// //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // PUT CODE BELOW HERE // //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// //////////////////////////////////////////////////////////////////////////////// //the floodfill algorithms void floodFill4(int x, int y, Uint32 newColor, Uint32 oldColor); void floodFill8(int x, int y, Uint32 newColor, Uint32 oldColor); void floodFill4Stack(int x, int y, Uint32 newColor, Uint32 oldColor); void floodFill8Stack(int x, int y, Uint32 newColor, Uint32 oldColor); void floodFillScanline(int x, int y, Uint32 newColor, Uint32 oldColor); void floodFillScanlineStack(int x, int y, Uint32 newColor, Uint32 oldColor); //the stack #define stackSize 16777216 int stack[stackSize]; int stackPointer; //the auxiliary functions bool paint_drawLine(int x1, int y1, int x2, int y2, ColorRGB color); void clearScreenBuffer(ColorRGB color); //the graphics buffer #define screenW 256 #define screenH 256 Uint32 screenBuffer[screenW][screenH]; int main(int argc, char *argv[]) { screen(screenW, screenH, 0, "Flood Fill"); clearScreenBuffer(RGB_White); int mouseX, mouseY; int oldMouseX, oldMouseY; bool LMB, RMB; while(!done()) { oldMouseX = mouseX; oldMouseY = mouseY; getMouseState(mouseX, mouseY, LMB, RMB); //3 different mouse input actions if(LMB) paint_drawLine(oldMouseX, oldMouseY, mouseX, mouseY, RGB_Black); if(RMB) { Uint32 color = RGBtoINT(ColorRGB((mouseX % 3 + 1) * 64, (mouseY % 8) * 32, (mouseX + mouseY) % 256)); floodFillScanlineStack(mouseX, mouseY, color, screenBuffer[mouseX][mouseY]); } if(RMB && LMB) clearScreenBuffer(RGB_White); //benchmark readKeys(); if(inkeys[SDLK_SPACE]) { float startTime = getTime(); for(int i = 1; i <= 50; i++) floodFill4Stack(mouseX, mouseY, RGBtoINT(ColorRGB(i,255,i)), screenBuffer[mouseX][mouseY]); float endTime = getTime(); float startTime2 = getTime(); for(int i = 1; i <= 50; i++) floodFillScanlineStack(mouseX, mouseY, RGBtoINT(ColorRGB(i,255,i)), screenBuffer[mouseX][mouseY]); float endTime2 = getTime(); drawBuffer(screenBuffer[0]); fprint(endTime - startTime, 0, 0, 0, RGB_Black, 1, RGB_White); fprint(endTime2 - startTime2, 0, 0, 8, RGB_Black, 1, RGB_White); redraw(); sleep(); } //redraw the screen each frame drawBuffer(screenBuffer[0]); redraw(); } return 0; } //////////////////////////////////////////////////////////////////////////////// //Stack Functions // //////////////////////////////////////////////////////////////////////////////// bool pop(int &x, int &y) { if(stackPointer > 0) { int p = stack[stackPointer]; x = p / h; y = p % h; stackPointer--; return 1; } else { return 0; } } bool push(int x, int y) { if(stackPointer < stackSize - 1) { stackPointer++; stack[stackPointer] = h * x + y; return 1; } else { return 0; } } void emptyStack() { int x, y; while(pop(x, y)); } //////////////////////////////////////////////////////////////////////////////// //Variants of the Floodfill Algorithm // //////////////////////////////////////////////////////////////////////////////// //Recursive 4-way floodfill, crashes if recursion stack is full void floodFill4(int x, int y, Uint32 newColor, Uint32 oldColor) { if(x >= 0 && x < w && y >= 0 && y < h && screenBuffer[x][y] == oldColor && screenBuffer[x][y] != newColor) { screenBuffer[x][y] = newColor; //set color before starting recursion! floodFill4(x + 1, y, newColor, oldColor); floodFill4(x - 1, y, newColor, oldColor); floodFill4(x, y + 1, newColor, oldColor); floodFill4(x, y - 1, newColor, oldColor); } } //Recursive 8-way floodfill, crashes if recursion stack is full void floodFill8(int x, int y, Uint32 newColor, Uint32 oldColor) { if(x >= 0 && x < w && y >= 0 && y < h && screenBuffer[x][y] == oldColor && screenBuffer[x][y] != newColor) { screenBuffer[x][y] = newColor; //set color before starting recursion! floodFill8(x + 1, y, newColor, oldColor); floodFill8(x - 1, y, newColor, oldColor); floodFill8(x, y + 1, newColor, oldColor); floodFill8(x, y - 1, newColor, oldColor); floodFill8(x + 1, y + 1, newColor, oldColor); floodFill8(x - 1, y - 1, newColor, oldColor); floodFill8(x - 1, y + 1, newColor, oldColor); floodFill8(x + 1, y - 1, newColor, oldColor); } } //4-way floodfill using our own stack routines void floodFill4Stack(int x, int y, Uint32 newColor, Uint32 oldColor) { if(newColor == oldColor) return; //avoid infinite loop emptyStack(); if(!push(x, y)) return; while(pop(x, y)) { screenBuffer[x][y] = newColor; if(x + 1 < w && screenBuffer[x + 1][y] == oldColor) { if(!push(x + 1, y)) return; } if(x - 1 >= 0 && screenBuffer[x - 1][y] == oldColor) { if(!push(x - 1, y)) return; } if(y + 1 < h && screenBuffer[x][y + 1] == oldColor) { if(!push(x, y + 1)) return; } if(y - 1 >= 0 && screenBuffer[x][y - 1] == oldColor) { if(!push(x, y - 1)) return; } } } //8-way floodfill using our own stack routines void floodFill8Stack(int x, int y, Uint32 newColor, Uint32 oldColor) { if(newColor == oldColor) return; //if you don't do this: infinite loop! emptyStack(); if(!push(x, y)) return; while(pop(x, y)) { screenBuffer[x][y] = newColor; if(x + 1 < w && screenBuffer[x + 1][y] == oldColor) { if(!push(x + 1, y)) return; } if(x - 1 >= 0 && screenBuffer[x - 1][y] == oldColor) { if(!push(x - 1, y)) return; } if(y + 1 < h && screenBuffer[x][y + 1] == oldColor) { if(!push(x, y + 1)) return; } if(y - 1 >= 0 && screenBuffer[x][y - 1] == oldColor) { if(!push(x, y - 1)) return; } if(x + 1 < w && y + 1 < h && screenBuffer[x + 1][y + 1] == oldColor) { if(!push(x + 1, y + 1)) return; } if(x + 1 < w && y - 1 >= 0 && screenBuffer[x + 1][y - 1] == oldColor) { if(!push(x + 1, y - 1)) return; } if(x - 1 > 0 && y + 1 < h && screenBuffer[x - 1][y + 1] == oldColor) { if(!push(x - 1, y + 1)) return; } if(x - 1 >= 0 && y - 1 >= 0 && screenBuffer[x - 1][y - 1] == oldColor) { if(!push(x - 1, y - 1)) return; } } } //stack friendly and fast floodfill algorithm void floodFillScanline(int x, int y, Uint32 newColor, Uint32 oldColor) { if(oldColor == newColor) return; if(screenBuffer[x][y] != oldColor) return; int y1; //draw current scanline from start position to the top y1 = y; while(screenBuffer[x][y1] == oldColor && y1 < h) { screenBuffer[x][y1] = newColor; y1++; } //draw current scanline from start position to the bottom y1 = y - 1; while(screenBuffer[x][y1] == oldColor && y1 >= 0) { screenBuffer[x][y1] = newColor; y1--; } //test for new scanlines to the left y1 = y; while(screenBuffer[x][y1] == newColor && y1 < h) { if(x > 0 && screenBuffer[x - 1][y1] == oldColor) { floodFillScanline(x - 1, y1, newColor, oldColor); } y1++; } y1 = y - 1; while(screenBuffer[x][y1] == newColor && y1 >= 0) { if(x > 0 && screenBuffer[x - 1][y1] == oldColor) { floodFillScanline(x - 1, y1, newColor, oldColor); } y1--; } //test for new scanlines to the right y1 = y; while(screenBuffer[x][y1] == newColor && y1 < h) { if(x < w - 1 && screenBuffer[x + 1][y1] == oldColor) { floodFillScanline(x + 1, y1, newColor, oldColor); } y1++; } y1 = y - 1; while(screenBuffer[x][y1] == newColor && y1 >= 0) { if(x < w - 1 && screenBuffer[x + 1][y1] == oldColor) { floodFillScanline(x + 1, y1, newColor, oldColor); } y1--; } } //The scanline floodfill algorithm using our own stack routines, faster void floodFillScanlineStack(int x, int y, Uint32 newColor, Uint32 oldColor) { if(oldColor == newColor) return; emptyStack(); int y1; //note: if you use y here, we're working vertically. This goes much faster in this case, because reading and writing the buffer[x][y] goes faster if y is incremented/decremented bool spanLeft, spanRight; if(!push(x, y)) return; while(pop(x, y)) { y1 = y; while(screenBuffer[x][y1] == oldColor && y1 >= 0) y1--; y1++; spanLeft = spanRight = 0; while(screenBuffer[x][y1] == oldColor && y1 < h) { screenBuffer[x][y1] = newColor; if(!spanLeft && x > 0 && screenBuffer[x - 1][y1] == oldColor) { if(!push(x - 1, y1)) return; spanLeft = 1; } else if(spanLeft && x > 0 && screenBuffer[x - 1][y1] != oldColor) { spanLeft = 0; } if(!spanRight && x < w - 1 && screenBuffer[x + 1][y1] == oldColor) { if(!push(x + 1, y1)) return; spanRight = 1; } else if(spanRight && x < w - 1 && screenBuffer[x + 1][y1] != oldColor) { spanRight = 0; } y1++; } } } //////////////////////////////////////////////////////////////////////////////// //Auxiliary Functions // //////////////////////////////////////////////////////////////////////////////// void clearScreenBuffer(ColorRGB color) { for(int x = 0; x < w; x++) for(int y = 0; y < h; y++) { screenBuffer[x][y] = RGBtoINT(color); } } bool paint_drawLine(int x1, int y1, int x2, int y2, ColorRGB color) { if(x1 < 0 || x1 > w - 1 || x2 < 0 || x2 > w - 1 || y1 < 0 || y1 > h - 1 || y2 < 0 || y2 > h - 1) return 0; int deltax = abs(x2 - x1); // The difference between the x's int deltay = abs(y2 - y1); // The difference between the y's int x = x1; // Start x off at the first pixel int y = y1; // Start y off at the first pixel int xinc1, xinc2, yinc1, yinc2, den, num, numadd, numpixels, curpixel; if (x2 >= x1) // The x-values are increasing { xinc1 = 1; xinc2 = 1; } else // The x-values are decreasing { xinc1 = -1; xinc2 = -1; } if (y2 >= y1) // The y-values are increasing { yinc1 = 1; yinc2 = 1; } else // The y-values are decreasing { yinc1 = -1; yinc2 = -1; } if (deltax >= deltay) // There is at least one x-value for every y-value { xinc1 = 0; // Don't change the x when numerator >= denominator yinc2 = 0; // Don't change the y for every iteration den = deltax; num = deltax / 2; numadd = deltay; numpixels = deltax; // There are more x-values than y-values } else // There is at least one y-value for every x-value { xinc2 = 0; // Don't change the x for every iteration yinc1 = 0; // Don't change the y when numerator >= denominator den = deltay; num = deltay / 2; numadd = deltax; numpixels = deltay; // There are more y-values than x-values } for (curpixel = 0; curpixel <= numpixels; curpixel++) { screenBuffer[x % w][y % h] = RGBtoINT(color); // Draw the current pixel num += numadd; // Increase the numerator by the top of the fraction if (num >= den) // Check if numerator >= denominator { num -= den; // Calculate the new numerator value x += xinc1; // Change the x as appropriate y += yinc1; // Change the y as appropriate } x += xinc2; // Change the x as appropriate y += yinc2; // Change the y as appropriate } return 1; }
[ "michael.durrer@gmail.com" ]
michael.durrer@gmail.com
3c53b8fb3bb480c9329fb03fdb986471a0d564d2
8cf32b4cbca07bd39341e1d0a29428e420b492a6
/contracts/libc++/upstream/test/std/strings/basic.string/string.nonmembers/string_oplt/string_string_view.pass.cpp
18b781c074fd832a87b4238858ee80e64048c685
[ "NCSA", "MIT" ]
permissive
cubetrain/CubeTrain
e1cd516d5dbca77082258948d3c7fc70ebd50fdc
b930a3e88e941225c2c54219267f743c790e388f
refs/heads/master
2020-04-11T23:00:50.245442
2018-12-17T16:07:16
2018-12-17T16:07:16
156,970,178
0
0
null
null
null
null
UTF-8
C++
false
false
2,560
cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <string> // we get this comparison "for free" because the string implicitly converts to the string_view #include <string> #include <cassert> #include "min_allocator.h" template <class S, class SV> void test(const S& lhs, SV rhs, bool x) { assert((lhs < rhs) == x); } int main() { { typedef std::string S; typedef std::string_view SV; test(S(""), SV(""), false); test(S(""), SV("abcde"), true); test(S(""), SV("abcdefghij"), true); test(S(""), SV("abcdefghijklmnopqrst"), true); test(S("abcde"), SV(""), false); test(S("abcde"), SV("abcde"), false); test(S("abcde"), SV("abcdefghij"), true); test(S("abcde"), SV("abcdefghijklmnopqrst"), true); test(S("abcdefghij"), SV(""), false); test(S("abcdefghij"), SV("abcde"), false); test(S("abcdefghij"), SV("abcdefghij"), false); test(S("abcdefghij"), SV("abcdefghijklmnopqrst"), true); test(S("abcdefghijklmnopqrst"), SV(""), false); test(S("abcdefghijklmnopqrst"), SV("abcde"), false); test(S("abcdefghijklmnopqrst"), SV("abcdefghij"), false); test(S("abcdefghijklmnopqrst"), SV("abcdefghijklmnopqrst"), false); } #if TEST_STD_VER >= 11 { typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S; typedef std::basic_string_view<char, std::char_traits<char>> SV; test(S(""), SV(""), false); test(S(""), SV("abcde"), true); test(S(""), SV("abcdefghij"), true); test(S(""), SV("abcdefghijklmnopqrst"), true); test(S("abcde"), SV(""), false); test(S("abcde"), SV("abcde"), false); test(S("abcde"), SV("abcdefghij"), true); test(S("abcde"), SV("abcdefghijklmnopqrst"), true); test(S("abcdefghij"), SV(""), false); test(S("abcdefghij"), SV("abcde"), false); test(S("abcdefghij"), SV("abcdefghij"), false); test(S("abcdefghij"), SV("abcdefghijklmnopqrst"), true); test(S("abcdefghijklmnopqrst"), SV(""), false); test(S("abcdefghijklmnopqrst"), SV("abcde"), false); test(S("abcdefghijklmnopqrst"), SV("abcdefghij"), false); test(S("abcdefghijklmnopqrst"), SV("abcdefghijklmnopqrst"), false); } #endif }
[ "1848@shanchain.com" ]
1848@shanchain.com
092b5344cfb1ab21b322a4f1ce80e73916bfe18b
b35134048f17069c57804fb90ec29838f9531f37
/Launch/win_graphdevice.cpp
1830ca6f356ad25975376fa3b3a71048780785d8
[]
no_license
abcdls0905/Nex
94006a1cb9b1f0b8f032668aaeab406e1175083d
f29dcc0b4cf3bbfcadd81978593233100a0997ec
refs/heads/master
2020-04-09T11:47:58.809581
2018-12-04T12:41:01
2018-12-04T12:41:01
160,324,124
0
0
null
null
null
null
GB18030
C++
false
false
4,325
cpp
#include "win_graphdevice.h" #include "../Runtime/public/portable.h" #define performance_time Port_GetPerformanceTime CGraphDevice::CGraphDevice():usesize(0) { SetConfig( EGL_LEVEL ,0 ); SetConfig( EGL_SURFACE_TYPE, EGL_WINDOW_BIT ); SetConfig( EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT ); SetConfig( EGL_NATIVE_RENDERABLE, EGL_FALSE ); SetConfig( EGL_BUFFER_SIZE , EGL_DONT_CARE ); SetConfig( EGL_DEPTH_SIZE , EGL_DONT_CARE ); SetConfig( EGL_STENCIL_SIZE, EGL_DONT_CARE ); // 设置抗锯齿 SetConfig( EGL_SAMPLE_BUFFERS,0 );//默认关闭抗锯齿 SetConfig( EGL_SAMPLES ,0); } CGraphDevice::~CGraphDevice() { } // HDC g_hDC; // 初始化设备 bool CGraphDevice::InitDevice(EGLNativeWindowType handle) { eglWindow = handle; g_hDC = GetDC(handle); if( !g_hDC ) { MessageBoxA(0,"Failed to create the device context", "Error", MB_OK|MB_ICONEXCLAMATION); return false; } eglDisplay = eglGetDisplay(g_hDC); if(eglDisplay == EGL_NO_DISPLAY) eglDisplay = eglGetDisplay((EGLNativeDisplayType) EGL_DEFAULT_DISPLAY); EGLint iMajorVersion, iMinorVersion; if (!eglInitialize(eglDisplay, &iMajorVersion, &iMinorVersion)) { MessageBoxA(0, "eglInitialize() failed.", "Error", MB_OK|MB_ICONEXCLAMATION); return false; } eglBindAPI(EGL_OPENGL_ES_API);//设置当前全局渲染API if( !TestEGLError() ) { MessageBoxA(0, "eglBindAPI failed.", "Error", MB_OK|MB_ICONEXCLAMATION); return false; } SelectEGLConfiguration(EGL_DONT_CARE,16,4); // 设备匹配 int iConfigs; if (!eglChooseConfig(eglDisplay, pi32ConfigAttribs, &eglConfig, 1, &iConfigs) || (iConfigs != 1)) { MessageBoxA(0, "eglChooseConfig() failed.", "Error", MB_OK|MB_ICONEXCLAMATION); return false; } // 创建渲染区工作窗口 eglSurface = eglCreateWindowSurface(eglDisplay, eglConfig, eglWindow, NULL); if(eglSurface == EGL_NO_SURFACE) { eglGetError(); // Clear error eglSurface = eglCreateWindowSurface(eglDisplay, eglConfig, NULL, NULL); } if (!TestEGLError()) { MessageBoxA(0, "eglCreateWindowSurface() failed.", "Error", MB_OK|MB_ICONEXCLAMATION); return false; } // 创建关联 EGLint ai32ContextAttribs[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE }; eglContext = eglCreateContext(eglDisplay, eglConfig, NULL, ai32ContextAttribs); if (!TestEGLError() ) { MessageBoxA(0, "eglCreateContext() failed.", "Error", MB_OK|MB_ICONEXCLAMATION); return false; } // 绑定当前绘制窗口 eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext); if (!TestEGLError()) { MessageBoxA(0, "eglMakeCurrent() failed.", "Error", MB_OK|MB_ICONEXCLAMATION); return false; } return true; } void CGraphDevice::Present() { // double dtime = performance_time(); // 提交前台页面 eglSwapBuffers(eglDisplay, eglSurface); if (!TestEGLError()) { MessageBoxA(0, "eglSwapBuffers() failed.", "Error", MB_OK|MB_ICONEXCLAMATION); } } // 设备关闭 void CGraphDevice::ShutDevice() { eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); eglTerminate(eglDisplay); if(g_hDC) { ReleaseDC(eglWindow,g_hDC); } } // 设备创建配置 bool CGraphDevice::SelectEGLConfiguration(int nColorBPP,int nDepthBPP,int nStencilSize) { SetConfig( EGL_BUFFER_SIZE , nColorBPP ); SetConfig( EGL_DEPTH_SIZE , nDepthBPP ); SetConfig( EGL_STENCIL_SIZE , nStencilSize ); return true; } void CGraphDevice::SetConfig(int type,int value) { int oldvalue; int pos = 0; if(GetConfig(type,oldvalue,pos)) { pi32ConfigAttribs[pos] = type; pi32ConfigAttribs[pos+1] = value; } else { pi32ConfigAttribs[usesize++] = type; pi32ConfigAttribs[usesize++] = value; } //设置结束位数据 pi32ConfigAttribs[usesize] = EGL_NONE; } bool CGraphDevice::GetConfig(int type,int &value,int& pos) { for(int i = 0;i < usesize; i=i+2 ) { if(pi32ConfigAttribs[i] == type ) { value = pi32ConfigAttribs[i+1]; pos = i; return true; } } return false; } // 错误提示 bool CGraphDevice::TestEGLError() { EGLint iErr = eglGetError(); if( iErr != EGL_SUCCESS ) { return false; } return true; }
[ "abcdls0905@users.noreply.github.com" ]
abcdls0905@users.noreply.github.com
1317ede56b9cafa33a5b13aa5222bb949566582e
87791a281648da417e1101ade32eec3d8b734584
/Audiofifo.hpp
0418dd5d276964bfe4c5402f42b767067f22f674
[]
no_license
SU79840/webSocketTest
a242111d7d0678d6ddfdf5aaa29c35f2b8810a4d
e4877c1fd7596e5cf68a3e709400d02fa15df389
refs/heads/master
2020-03-08T07:15:09.652485
2018-04-17T06:38:48
2018-04-17T06:38:48
127,989,901
0
0
null
null
null
null
UTF-8
C++
false
false
5,828
hpp
#ifndef AUDIOFIFO_HPP #define AUDIOFIFO_HPP #include <stdint.h> #include <stdlib.h> #include <memory.h> class AudioFifo { public: // initial fifo size AudioFifo():_fifoInputIndex(0), _fifoOutputIndex(0), _bufferSize(0) { } ~AudioFifo() { //delete[]_fifoBuffer; //_fifoBuffer = nullptr; if(_fifoBuffer!= NULL){ free(_fifoBuffer); _fifoBuffer = NULL; } } int getBufferSampleSize() { return getInputSize()/2; } bool initFifo(int size) { _fifoBuffer = (char*)malloc(sizeof(char)*size); if(_fifoBuffer == NULL) { return false; } _bufferSize = size; return true; } //check whether the fifo is write full bool isWriteFull() { auto inputIndex = _fifoInputIndex; auto temp = (++inputIndex >= _bufferSize) ? 0 : inputIndex; if (temp == _fifoOutputIndex) { return true; } return false; } //check whether the fifo is read empty bool isReadEmpty() { return (_fifoInputIndex == _fifoOutputIndex) ? true : false; } bool writeData(const char* pdata, unsigned int len, bool toRealloc = true) { auto inData = pdata; if (toRealloc) { if (!isWriteSpaceEnough(len)) { //return false; _bufferSize += len*3; setFifoSize(_bufferSize); } for (unsigned int i=0; i < len; i++) { _fifoBuffer[_fifoInputIndex++] = *inData++; if (_fifoInputIndex >= _bufferSize) { _fifoInputIndex = 0; } } } else { for (unsigned int i=0; i < len; i++) { if (!isWriteFull()) { _fifoBuffer[_fifoInputIndex++] = *inData++; if (_fifoInputIndex >= _bufferSize) { _fifoInputIndex = 0; } } else { return false; } } } return true; } //write one data only bool writeOneData(const char data) { if (!isWriteFull()) { _fifoBuffer[_fifoInputIndex++] = data; if (_fifoInputIndex >= _bufferSize) { _fifoInputIndex = 0; } return true; } else { return false; } } //read data from fifo ,if it is not read empty,return true ,or else return false int readData(char* pdata,unsigned int len) { int index = 0; if (!isReadSpaceEnough(len)) { return false; } auto pOutBuffer = pdata; for (unsigned int i = 0; i < len;i++) { *pOutBuffer++ = _fifoBuffer[_fifoOutputIndex++]; if (_fifoOutputIndex>=_bufferSize) { _fifoOutputIndex = 0; } } memmove(_fifoBuffer, _fifoBuffer+len, _bufferSize-len); if(_fifoOutputIndex <= _fifoInputIndex ) { _fifoInputIndex -= _fifoOutputIndex; index = _fifoOutputIndex; _fifoOutputIndex = 0; } return index; } //read one data only // bool readOneData(char& outData) // { // if (!isReadSpaceEnough(1)) // { // return false; // } // outData = _fifoBuffer[_fifoOutputIndex++]; // if (_fifoOutputIndex >= _bufferSize) // { // _fifoOutputIndex = 0; // } // return true; // } //get fifo size const unsigned int getBufferSize(){ return _bufferSize; } //clear fifo void resetFifo() { _fifoInputIndex = 0; _fifoOutputIndex = 0; //memset(_fifoBuffer, 0, sizeof(_fifoBuffer)); memset(_fifoBuffer, 0, getBufferSize()); } //resize the fifo size void resizeFifo(unsigned int len) { resetFifo(); if (len+1 == _bufferSize) { return; } if (_fifoBuffer) { //delete[]_fifoBuffer; free(_fifoBuffer); _fifoBuffer = NULL; } _bufferSize = len+1; // _fifoBuffer = new char[_bufferSize]; _fifoBuffer = (char*)malloc(sizeof(char)*_bufferSize); } private: char *_fifoBuffer; unsigned int _fifoInputIndex; unsigned int _fifoOutputIndex; unsigned int _bufferSize; void setFifoSize(unsigned int len) { _fifoBuffer = (char*)realloc(_fifoBuffer,sizeof(char)*len); } const unsigned int getWriteSpace() { if (isWriteFull()) { return 0; } auto surplus = (_fifoInputIndex >= _fifoOutputIndex) ? (_bufferSize - _fifoInputIndex + _fifoOutputIndex) : (_fifoOutputIndex - _fifoInputIndex); return surplus; } const bool isWriteSpaceEnough(unsigned int len) { return (getWriteSpace() >= len) ? true : false; } const unsigned int getReadSpace() { if (isReadEmpty()) { return 0; } auto surplus = (_fifoInputIndex >= _fifoOutputIndex) ? (_fifoInputIndex - _fifoOutputIndex) : (_bufferSize - _fifoOutputIndex + _fifoInputIndex); return surplus; } const bool isReadSpaceEnough(unsigned int len) { return (getReadSpace() >= len) ? true : false; } const unsigned int getInputSize(){ return _fifoInputIndex; } }; #endif // AUDIOFIFO_HPP
[ "suxunquan@mudu.tv" ]
suxunquan@mudu.tv
127f1071df25c20b2f6b495958ba7c7a0786233d
575b81da138e1dfb62db9643ea671d6afa4282af
/addons/ofxRPiCameraVideoGrabber/src/TextureEngine.cpp
6ee02141e2a72bf890f4bcc55bdb2bd98f7f1212
[]
no_license
finger563/vac2014
0d6603bc8d54b90f388cba006f9f2d2daa8fdf1b
db23f875174bcc2f8e1e051e17070e75db6ce63a
refs/heads/master
2016-09-11T03:24:11.396524
2014-04-08T16:58:31
2014-04-08T16:58:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
11,248
cpp
/* * TextureEngine.cpp * openFrameworksRPi * * Created by jason van cleave on 1/7/14. * Copyright 2014 jasonvancleave.com. All rights reserved. * */ #include "TextureEngine.h" TextureEngine::TextureEngine() { ready = false; textureID = 0; eglBuffer = NULL; frameCounter = 0; } void TextureEngine::setup(OMXCameraSettings omxCameraSettings) { this->omxCameraSettings = omxCameraSettings; generateEGLImage(); OMX_ERRORTYPE error = OMX_ErrorNone; OMX_CALLBACKTYPE cameraCallbacks; cameraCallbacks.EventHandler = &TextureEngine::cameraEventHandlerCallback; string cameraComponentName = "OMX.broadcom.camera"; error = OMX_GetHandle(&camera, (OMX_STRING)cameraComponentName.c_str(), this , &cameraCallbacks); if(error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "camera OMX_GetHandle FAIL error: 0x%08x", error); } OMXCameraUtils::disableAllPortsForComponent(&camera); OMX_VIDEO_PARAM_PORTFORMATTYPE portFormatType; OMX_INIT_STRUCTURE(portFormatType); portFormatType.nPortIndex = CAMERA_OUTPUT_PORT; error = OMX_GetConfig(camera, OMX_IndexParamVideoPortFormat, &portFormatType); if(error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "camera OMX_GetConfig OMX_IndexParamVideoPortFormat FAIL error: 0x%08x", error); }else { //camera color spaces /* OMX_COLOR_Format24bitRGB888 OMX_COLOR_FormatYUV420PackedPlanar OMX_COLOR_FormatYUV422PackedPlanar OMX_COLOR_FormatYCbYCr OMX_COLOR_FormatYCrYCb OMX_COLOR_FormatCbYCrY OMX_COLOR_FormatCrYCbY OMX_COLOR_FormatYUV420PackedSemiPlanar */ //egl_render color spaces /* OMX_COLOR_Format18bitRGB666 OMX_COLOR_FormatYUV420PackedPlanar OMX_COLOR_FormatYUV422PackedPlanar OMX_COLOR_Format32bitABGR8888 */ //ofLogVerbose() << "OMX_COLOR_FORMATTYPE is " << omxMaps.colorFormats[portFormatType.eColorFormat]; //OMX_COLOR_FormatYUV420PackedPlanar //ofLogVerbose() << "OMX_VIDEO_CODINGTYPE is " << omxMaps.videoCodingTypes[portFormatType.eCompressionFormat]; //OMX_VIDEO_CodingUnused ofLogVerbose() << "nIndex is " << portFormatType.nIndex; ofLogVerbose() << "xFramerate is " << portFormatType.xFramerate; //OMX_U32 nIndex; //OMX_VIDEO_CODINGTYPE eCompressionFormat; //OMX_COLOR_FORMATTYPE eColorFormat; //OMX_U32 xFramerate; } OMX_CONFIG_REQUESTCALLBACKTYPE cameraCallback; OMX_INIT_STRUCTURE(cameraCallback); cameraCallback.nPortIndex = OMX_ALL; cameraCallback.nIndex = OMX_IndexParamCameraDeviceNumber; cameraCallback.bEnable = OMX_TRUE; OMX_SetConfig(camera, OMX_IndexConfigRequestCallback, &cameraCallback); //Set the camera (always 0) OMX_PARAM_U32TYPE device; OMX_INIT_STRUCTURE(device); device.nPortIndex = OMX_ALL; device.nU32 = 0; OMX_SetParameter(camera, OMX_IndexParamCameraDeviceNumber, &device); //Set the resolution OMX_PARAM_PORTDEFINITIONTYPE portdef; OMX_INIT_STRUCTURE(portdef); portdef.nPortIndex = CAMERA_OUTPUT_PORT; OMX_GetParameter(camera, OMX_IndexParamPortDefinition, &portdef); portdef.format.image.nFrameWidth = omxCameraSettings.width; portdef.format.image.nFrameHeight = omxCameraSettings.height; portdef.format.image.nStride = omxCameraSettings.width; OMX_SetParameter(camera, OMX_IndexParamPortDefinition, &portdef); //Set the framerate OMX_CONFIG_FRAMERATETYPE framerateConfig; OMX_INIT_STRUCTURE(framerateConfig); framerateConfig.nPortIndex = CAMERA_OUTPUT_PORT; framerateConfig.xEncodeFramerate = omxCameraSettings.framerate << 16; //Q16 format - 25fps OMX_SetConfig(camera, OMX_IndexConfigVideoFramerate, &framerateConfig); } void TextureEngine::generateEGLImage() { ofAppEGLWindow *appEGLWindow = (ofAppEGLWindow *) ofGetWindowPtr(); display = appEGLWindow->getEglDisplay(); context = appEGLWindow->getEglContext(); tex.allocate(omxCameraSettings.width, omxCameraSettings.height, GL_RGBA); //tex.getTextureData().bFlipTexture = true; tex.setTextureWrap(GL_REPEAT, GL_REPEAT); textureID = tex.getTextureData().textureID; glEnable(GL_TEXTURE_2D); // setup first texture int dataSize = omxCameraSettings.width * omxCameraSettings.height * 4; GLubyte* pixelData = new GLubyte [dataSize]; memset(pixelData, 0xff, dataSize); // white texture, opaque glBindTexture(GL_TEXTURE_2D, textureID); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, omxCameraSettings.width, omxCameraSettings.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixelData); delete[] pixelData; // Create EGL Image eglImage = eglCreateImageKHR( display, context, EGL_GL_TEXTURE_2D_KHR, (EGLClientBuffer)textureID, 0); glDisable(GL_TEXTURE_2D); if (eglImage == EGL_NO_IMAGE_KHR) { ofLogError() << "Create EGLImage FAIL"; return; } else { ofLogVerbose(__func__) << "Create EGLImage PASS"; } } OMX_ERRORTYPE TextureEngine::cameraEventHandlerCallback(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_EVENTTYPE eEvent, OMX_U32 nData1, OMX_U32 nData2, OMX_PTR pEventData) { /*ofLog(OF_LOG_VERBOSE, "TextureEngine::%s - eEvent(0x%x), nData1(0x%lx), nData2(0x%lx), pEventData(0x%p)\n", __func__, eEvent, nData1, nData2, pEventData);*/ TextureEngine *grabber = static_cast<TextureEngine*>(pAppData); //ofLogVerbose(__func__) << grabber->omxMaps.eventTypes[eEvent]; switch (eEvent) { case OMX_EventParamOrConfigChanged: { return grabber->onCameraEventParamOrConfigChanged(); } default: { break; } } return OMX_ErrorNone; } OMX_ERRORTYPE TextureEngine::renderEventHandlerCallback(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_EVENTTYPE eEvent, OMX_U32 nData1, OMX_U32 nData2, OMX_PTR pEventData) { return OMX_ErrorNone; } OMX_ERRORTYPE TextureEngine::renderEmptyBufferDone(OMX_IN OMX_HANDLETYPE hComponent, OMX_IN OMX_PTR pAppData, OMX_IN OMX_BUFFERHEADERTYPE* pBuffer) { ofLogVerbose(__func__) << "renderEmptyBufferDone"; return OMX_ErrorNone; } OMX_ERRORTYPE TextureEngine::renderFillBufferDone(OMX_IN OMX_HANDLETYPE hComponent, OMX_IN OMX_PTR pAppData, OMX_IN OMX_BUFFERHEADERTYPE* pBuffer) { TextureEngine *grabber = static_cast<TextureEngine*>(pAppData); grabber->frameCounter++; OMX_ERRORTYPE error = OMX_FillThisBuffer(grabber->render, grabber->eglBuffer); return error; } OMX_ERRORTYPE TextureEngine::onCameraEventParamOrConfigChanged() { ofLogVerbose(__func__) << "onCameraEventParamOrConfigChanged"; OMX_ERRORTYPE error = OMX_SendCommand(camera, OMX_CommandStateSet, OMX_StateIdle, NULL); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "camera OMX_SendCommand OMX_StateIdle FAIL error: 0x%08x", error); } //Enable Camera Output Port OMX_CONFIG_PORTBOOLEANTYPE cameraport; OMX_INIT_STRUCTURE(cameraport); cameraport.nPortIndex = CAMERA_OUTPUT_PORT; cameraport.bEnabled = OMX_TRUE; error =OMX_SetParameter(camera, OMX_IndexConfigPortCapturing, &cameraport); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "camera enable Output Port FAIL error: 0x%08x", error); } //Set up texture renderer OMX_CALLBACKTYPE renderCallbacks; renderCallbacks.EventHandler = &TextureEngine::renderEventHandlerCallback; renderCallbacks.EmptyBufferDone = &TextureEngine::renderEmptyBufferDone; renderCallbacks.FillBufferDone = &TextureEngine::renderFillBufferDone; string componentName = "OMX.broadcom.egl_render"; OMX_GetHandle(&render, (OMX_STRING)componentName.c_str(), this , &renderCallbacks); OMXCameraUtils::disableAllPortsForComponent(&render); //Set renderer to Idle error = OMX_SendCommand(render, OMX_CommandStateSet, OMX_StateIdle, NULL); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "render OMX_SendCommand OMX_StateIdle FAIL error: 0x%08x", error); } //Create camera->egl_render Tunnel error = OMX_SetupTunnel(camera, CAMERA_OUTPUT_PORT, render, EGL_RENDER_INPUT_PORT); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "camera->egl_render OMX_SetupTunnel FAIL error: 0x%08x", error); } //Enable camera output port error = OMX_SendCommand(camera, OMX_CommandPortEnable, CAMERA_OUTPUT_PORT, NULL); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "camera enable output port FAIL error: 0x%08x", error); } //Enable render output port error = OMX_SendCommand(render, OMX_CommandPortEnable, EGL_RENDER_OUTPUT_PORT, NULL); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "render enable output port FAIL error: 0x%08x", error); } //Enable render input port error = OMX_SendCommand(render, OMX_CommandPortEnable, EGL_RENDER_INPUT_PORT, NULL); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "render enable input port FAIL error: 0x%08x", error); } //Set renderer to use texture error = OMX_UseEGLImage(render, &eglBuffer, EGL_RENDER_OUTPUT_PORT, this, eglImage); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "render OMX_UseEGLImage-----> FAIL error: 0x%08x", error); } //Start renderer error = OMX_SendCommand(render, OMX_CommandStateSet, OMX_StateExecuting, NULL); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "render OMX_StateExecuting FAIL error: 0x%08x", error); } //Start camera error = OMX_SendCommand(camera, OMX_CommandStateSet, OMX_StateExecuting, NULL); if (error != OMX_ErrorNone) { ofLog(OF_LOG_ERROR, "camera OMX_StateExecuting FAIL error: 0x%08x", error); } //start the buffer filling loop //once completed the callback will trigger and refill error = OMX_FillThisBuffer(render, eglBuffer); if(error == OMX_ErrorNone) { ofLogVerbose(__func__) << "render OMX_FillThisBuffer PASS"; ready = true; }else { ofLog(OF_LOG_ERROR, "render OMX_FillThisBuffer FAIL error: 0x%08x", error); } return error; } #if 0 //untested - I guess could be used to close manually //app and camera seem to close fine on exit void TextureEngine::close() { ready = false; OMX_ERRORTYPE error = OMX_SendCommand(camera, OMX_CommandStateSet, OMX_StateIdle, NULL); if (error != OMX_ErrorNone) { ofLogError(__func__) << "camera OMX_StateIdle FAIL"; } error = OMX_SendCommand(render, OMX_CommandStateSet, OMX_StateIdle, NULL); if (error != OMX_ErrorNone) { ofLogError(__func__) << "render OMX_StateIdle FAIL";; } error = OMX_SendCommand(camera, OMX_CommandFlush, CAMERA_OUTPUT_PORT, NULL); if (error != OMX_ErrorNone) { ofLogError(__func__) << "camera OMX_CommandFlush FAIL"; } error = OMX_SendCommand(render, OMX_CommandFlush, EGL_RENDER_INPUT_PORT, NULL); if (error != OMX_ErrorNone) { ofLogError(__func__) << "render OMX_CommandFlush FAIL"; } error = OMX_SendCommand(render, OMX_CommandFlush, EGL_RENDER_OUTPUT_PORT, NULL); if (error != OMX_ErrorNone) { ofLogError(__func__) << "render OMX_CommandFlush EGL_RENDER_OUTPUT_PORT FAIL"; } OMXCameraUtils::disableAllPortsForComponent(&render); OMXCameraUtils::disableAllPortsForComponent(&camera); error = OMX_FreeHandle(render); if (error != OMX_ErrorNone) { ofLogVerbose(__func__) << "render OMX_FreeHandle FAIL"; } error = OMX_FreeHandle(camera); if (error != OMX_ErrorNone) { ofLogError(__func__) << "camera OMX_FreeHandle FAIL"; } error = OMX_Deinit(); if (error != OMX_ErrorNone) { ofLogError(__func__) << "OMX_Deinit FAIL"; } if (eglImage != NULL) { eglDestroyImageKHR(display, eglImage); } } #endif
[ "emfinger@isis.vanderbilt.edu" ]
emfinger@isis.vanderbilt.edu
756a59c689f4ac3346e115b06ac58873d143ffb8
7d005e2b2ae45abfb75db05d593d766c6ed516c0
/18.7/Mnozh.h
e6bd72457edffc50587c2ea3fcf72e723d50428b
[]
no_license
nkhoroshavin/Labs
53a1301a30f272649b65cd3d9b1ce7a6648ab5e0
6845e338ec23d83d8ffad638fd9d3436c4b7c661
refs/heads/main
2023-05-09T11:41:33.279111
2021-05-31T05:07:32
2021-05-31T05:07:32
323,330,290
0
0
null
null
null
null
UTF-8
C++
false
false
1,802
h
#pragma once #include <iostream> #include <string> using namespace std; template <class T> class Plenty { public: Plenty(int s, T k); Plenty(const Plenty<T>& a); ~Plenty(); Plenty& operator=(const Plenty<T>& a); T& operator[](int index); Plenty operator+(const T k); int operator()(); friend ostream& operator<< <>(ostream& out, const Plenty<T>& a); friend istream& operator>> <>(istream& in, Plenty<T>& a); private: int size; T* data; }; template <class T> Plenty<T>::Plenty(int s, T k) { size = s; data = new T[size]; for (int i = 0; i < size; i++) data[i] = k; } template <class T> Plenty<T>::Plenty(const Plenty& a) { size = a.size; data = new T[size]; for (int i = 0; i < size; i++) data[i] = a.data[i]; } template <class T> Plenty<T>::~Plenty() { delete[]data; data = 0; } template <class T> Plenty<T>& Plenty<T>::operator=(const Plenty<T>& a) { if (this == &a)return *this; size = a.size; if (data != 0) delete[]data; data = new T[size]; for (int i = 0; i < size; i++) data[i] = a.data[i]; return *this; } template <class T> T& Plenty<T>::operator[](int index) { if (index < size) return data[index]; else cout << "\nError! Index>size"; } template <class T> Plenty<T> Plenty<T>::operator + (const T k) { Plenty<T> temp(size, k); for (int i = 0; i < size; ++i) temp.data[i] = data[i] + k; return temp; } template <class T> int Plenty<T>::operator ()() { return size; } template <class T> ostream& operator<< <>(ostream& out, const Plenty<T>& a) { for (int i = 0; i < a.size; ++i) out << a.data[i] << " "; return out; } template <class T> istream& operator>> <>(istream& in, Plenty<T>& a) { for (int i = 0; i < a.size; ++i) in >> a.data[i]; return in; }
[ "noreply@github.com" ]
noreply@github.com
0f8304d048f3330ed7e87842324367bf959414d9
e8c74952d968cfaecee2169db44bfa06c219e3be
/test/TestPassportProcessing.cpp
029fa5d800c3a205ed95e648321fad9c01e571c2
[ "MIT" ]
permissive
OskarBreach/advent-of-code
8f721260bb106c1a24015cd4e15669ce3a6e1cc1
360293614631c3a362f4ce6a326ad14db0ecc27c
refs/heads/main
2023-01-24T18:39:19.929100
2020-12-04T12:45:51
2020-12-04T12:45:51
317,557,465
0
0
null
null
null
null
UTF-8
C++
false
false
13,279
cpp
#include "AutoRun.h" #include "passportProcessing.h" namespace TestPassportProcessing { using gppUnit::equals; class Base : public Auto::TestCase { advent2020::passportProcessing::Passports passports{}; protected: const advent2020::passportProcessing::Passport passport1{ {"ecl", "gry"}, {"pid", "860033327"}, {"eyr", "2020"}, {"hcl", "#fffffd"}, {"byr", "1937"}, {"iyr", "2017"}, {"cid", "147"}, {"hgt", "183cm"} }; const advent2020::passportProcessing::Passport passport2{ {"iyr", "2013"}, {"ecl", "amb"}, {"cid", "350"}, {"eyr", "2023"}, {"pid", "028048884"}, {"hcl", "#cfa07d"}, {"byr", "1929"} }; const advent2020::passportProcessing::Passport passport3{ {"hcl", "#ae17e1"}, {"iyr", "2013"}, {"eyr", "2024"}, {"ecl", "brn"}, {"pid", "760753108"}, {"byr", "1931"}, {"hgt", "179cm"} }; const advent2020::passportProcessing::Passport passport4{ {"hcl", "#cfa07d"}, {"eyr", "2025"}, {"pid", "166559648"}, {"iyr", "2011"}, {"ecl", "brn"}, {"hgt", "59in"} }; void givenPassportProcessing() {} void whenBatchFileProcessed(advent2020::passportProcessing::BatchFile&& batchFile) { passports = advent2020::passportProcessing::passportsFromBatchFile(std::move(batchFile)); } void thenPassport(const advent2020::passportProcessing::Passport& actual, const advent2020::passportProcessing::Passport& expected) { expect.that(actual.size(), equals(expected.size()), "Length"); for (const auto& item: actual) { const auto& contents{ expected.at(item.first) }; confirm.that(item.second, equals(contents), item.first.c_str()); } } void thenPassports(const advent2020::passportProcessing::Passports& expected) { expect.that(passports.size(), equals(expected.size()), __FUNCTION__); for (size_t i{ 0 }; i < passports.size(); ++i) { const auto& actualPassport{ passports[i] }; const auto& expectedPassport{ expected[i] }; thenPassport(actualPassport, expectedPassport); } } void thenPassportContainsAllRequiredFields(const advent2020::passportProcessing::Passport& passport) { auto expected{ true }; auto actual{ advent2020::passportProcessing::passportContainsAllRequiredFields(passport) }; confirm.that(actual, equals(expected), __FUNCTION__); } void thenPassportMissingRequiredField(const advent2020::passportProcessing::Passport& passport) { auto expected{ false }; auto actual{ advent2020::passportProcessing::passportContainsAllRequiredFields(passport) }; confirm.that(actual, equals(expected), __FUNCTION__); } void thenPassportValid(size_t index) { auto expected{ true }; auto actual{ advent2020::passportProcessing::passportValid(passports[index]) }; confirm.that(actual, equals(expected), __FUNCTION__); } void thenPassportInvalid(size_t index) { auto expected{ false }; auto actual{ advent2020::passportProcessing::passportValid(passports[index]) }; confirm.that(actual, equals(expected), __FUNCTION__); } }; class TestExtractingSinglePassportFromBatchFile : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "ecl:gry pid:860033327 eyr:2020 hcl:#fffffd", "byr:1937 iyr:2017 cid:147 hgt:183cm" }); thenPassports({ passport1 }); } } GPPUNIT_INSTANCE; class TestExtractingOtherSinglePassportFromBatchFile : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "iyr:2013 ecl:amb cid:350 eyr:2023 pid:028048884", "hcl:#cfa07d byr:1929", ""} ); thenPassports({ passport2 }); } } GPPUNIT_INSTANCE; class TestExtractingMultiplePassportsFromBatchFile : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "ecl:gry pid:860033327 eyr:2020 hcl:#fffffd", "byr:1937 iyr:2017 cid:147 hgt:183cm", "", "iyr:2013 ecl:amb cid:350 eyr:2023 pid:028048884", "hcl:#cfa07d byr:1929", "", "hcl:#ae17e1 iyr:2013", "eyr:2024", "ecl:brn pid:760753108 byr:1931", "hgt:179cm", "", "hcl:#cfa07d eyr:2025 pid:166559648", "iyr:2011 ecl:brn hgt:59in" } ); thenPassports({ passport1, passport2, passport3, passport4 }); } } GPPUNIT_INSTANCE; class TestPassportValidity : public Base { void test() { givenPassportProcessing(); thenPassportContainsAllRequiredFields(passport1); thenPassportContainsAllRequiredFields(passport3); } } GPPUNIT_INSTANCE; class TestPassportInvalidity : public Base { void test() { givenPassportProcessing(); thenPassportMissingRequiredField(passport2); thenPassportMissingRequiredField(passport4); } } GPPUNIT_INSTANCE; class TestPassportRequiresAllKeyFields : public Base { void test() { givenPassportProcessing(); thenPassportContainsAllRequiredFields({ {"ecl", "gry"}, {"pid", "860033327"}, {"eyr", "2020"}, {"hcl", "#fffffd"}, {"byr", "1937"}, {"iyr", "2017"}, {"cid", "147"}, {"hgt", "183cm"} }); thenPassportContainsAllRequiredFields({ {"ecl", "gry"}, {"pid", "860033327"}, {"eyr", "2020"}, {"hcl", "#fffffd"}, {"byr", "1937"}, {"iyr", "2017"}, {"hgt", "183cm"} }); thenPassportMissingRequiredField({ {"ecl", "gry"}, {"pid", "860033327"}, {"eyr", "2020"}, {"hcl", "#fffffd"}, {"byr", "1937"}, {"iyr", "2017"}, {"cid", "147"} }); thenPassportMissingRequiredField({ {"ecl", "gry"}, {"pid", "860033327"}, {"eyr", "2020"}, {"hcl", "#fffffd"}, {"byr", "1937"}, {"cid", "147"}, {"hgt", "183cm"} }); thenPassportMissingRequiredField({ {"ecl", "gry"}, {"pid", "860033327"}, {"eyr", "2020"}, {"hcl", "#fffffd"}, {"iyr", "2017"}, {"cid", "147"}, {"hgt", "183cm"} }); thenPassportMissingRequiredField({ {"ecl", "gry"}, {"pid", "860033327"}, {"eyr", "2020"}, {"byr", "1937"}, {"iyr", "2017"}, {"cid", "147"}, {"hgt", "183cm"} }); thenPassportMissingRequiredField({ {"ecl", "gry"}, {"pid", "860033327"}, {"hcl", "#fffffd"}, {"byr", "1937"}, {"iyr", "2017"}, {"cid", "147"}, {"hgt", "183cm"} }); thenPassportMissingRequiredField({ {"ecl", "gry"}, {"eyr", "2020"}, {"hcl", "#fffffd"}, {"byr", "1937"}, {"iyr", "2017"}, {"cid", "147"}, {"hgt", "183cm"} }); thenPassportMissingRequiredField({ {"pid", "860033327"}, {"eyr", "2020"}, {"hcl", "#fffffd"}, {"byr", "1937"}, {"iyr", "2017"}, {"cid", "147"}, {"hgt", "183cm"} }); } } GPPUNIT_INSTANCE; class TestPassportValidationCatchesInvalidPasswords : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "eyr:1972 cid:100", "hcl:#18171d ecl:amb hgt:170 pid:186cm iyr:2018 byr:1926", "", "iyr:2019", "hcl:#602927 eyr:1967 hgt:170cm", "ecl:grn pid:012533040 byr:1946", "", "hcl:dab227 iyr:2012", "ecl:brn hgt:182cm pid:021572410 eyr:2020 byr:1992 cid:277", "", "hgt:59cm ecl:zzz", "eyr:2038 hcl:74454a iyr:2023", "pid:3556412378 byr:2007" } ); thenPassportInvalid(0); thenPassportInvalid(1); thenPassportInvalid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationPermitsValidPasswords : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:74in ecl:grn iyr:2012 eyr:2030 byr:1980", "hcl:#623a2f", "", "eyr:2029 ecl:blu cid:129 byr:1989", "iyr:2014 pid:896056539 hcl:#a97842 hgt:165cm", "", "hcl:#888785", "hgt:164cm byr:2001 iyr:2015 cid:88", "pid:545766238 ecl:hzl", "eyr:2022", "", "iyr:2010 hgt:158cm hcl:#b6652a ecl:blu byr:1944 eyr:2021 pid:093154719" } ); thenPassportValid(0); thenPassportValid(1); thenPassportValid(2); thenPassportValid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationChecksByr : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:74in ecl:grn iyr:2012 eyr:2030 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:74in ecl:grn iyr:2012 eyr:2030 byr:1919", "hcl:#623a2f", "", "pid:087499704 hgt:74in ecl:grn iyr:2012 eyr:2030 byr:2002", "hcl:#623a2f", "", "pid:087499704 hgt:74in ecl:grn iyr:2012 eyr:2030 byr:2003", "hcl:#623a2f" } ); thenPassportValid(0); thenPassportInvalid(1); thenPassportValid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationChecksIyr : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:74in ecl:grn iyr:2010 eyr:2030 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:74in ecl:grn iyr:2009 eyr:2030 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:74in ecl:grn iyr:2020 eyr:2030 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:74in ecl:grn iyr:2021 eyr:2030 byr:1920", "hcl:#623a2f", } ); thenPassportValid(0); thenPassportInvalid(1); thenPassportValid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationChecksEyr : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:74in ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:74in ecl:grn iyr:2010 eyr:2019 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:74in ecl:grn iyr:2010 eyr:2030 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:74in ecl:grn iyr:2010 eyr:2031 byr:1920", "hcl:#623a2f", } ); thenPassportValid(0); thenPassportInvalid(1); thenPassportValid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationChecksHgtCm : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:150cm ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:149cm ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:193cm ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:194cm ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", } ); thenPassportValid(0); thenPassportInvalid(1); thenPassportValid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationChecksHgtIn : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:59in ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:58in ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:76in ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:77in ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", } ); thenPassportValid(0); thenPassportInvalid(1); thenPassportValid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationChecksHcl : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:59in ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:59in ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#123abz", "", "pid:087499704 hgt:59in ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:#123abc", "", "pid:087499704 hgt:59in ecl:grn iyr:2010 eyr:2020 byr:1920", "hcl:123abc", } ); thenPassportValid(0); thenPassportInvalid(1); thenPassportValid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationChecksEcl : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:59in ecl:brn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:59in ecl:wat iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:59in ecl:amb iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:59in ecl:foo iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", } ); thenPassportValid(0); thenPassportInvalid(1); thenPassportValid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationChecksPid : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:59in ecl:brn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:0123456789 hgt:59in ecl:brn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:000000001 hgt:59in ecl:brn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:01234567 hgt:59in ecl:brn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", } ); thenPassportValid(0); thenPassportInvalid(1); thenPassportValid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; class TestPassportValidationChecksAllFieldsPresent : public Base { void test() { givenPassportProcessing(); whenBatchFileProcessed({ "pid:087499704 hgt:59in ecl:brn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:59in ecl:brn iyr:2010 eyr:2020", "hcl:#623a2f", "", "pid:000000001 hgt:59in ecl:brn iyr:2010 eyr:2020 byr:1920", "hcl:#623a2f", "", "pid:087499704 hgt:59in ecl:brn iyr:2010 byr:1920", "hcl:#623a2f", } ); thenPassportValid(0); thenPassportInvalid(1); thenPassportValid(2); thenPassportInvalid(3); } } GPPUNIT_INSTANCE; }
[ "oskar.breach@gmail.com" ]
oskar.breach@gmail.com
2eca7ffae0d3fb4ba881c665fce423a593f182a5
d8101f104d9fd09fa829eb7341a5e8d09d95cab3
/SimAna/SimAna/TrigHistCol.h
c36aed9a7f07cd0b3b2fd68cf26ee45bad69c6b2
[]
no_license
mholtrop/HPS_Analysis
f86f9f961c12c876b21844b2b4bd0417a14a6f7c
d35d120c5cffa45568743db901f388f78c09dfd7
refs/heads/master
2021-05-04T14:03:52.182291
2020-06-04T18:39:55
2020-06-04T18:39:55
63,177,131
1
1
null
null
null
null
UTF-8
C++
false
false
1,248
h
// // ElectronHists.h // SimAna // // Created by Maurik Holtrop on 5/27/19. // // #ifndef TrigHistCol_h #define TrigHistCol_h #include "SimAna.h" class TrigHistCol: public TObject { public: double threshold; SimAna *sa; vector<TH1 *> hists; TH1F *N_TrackerHits=nullptr; TH1F *N_MCParticle = nullptr; TH1F *E_PrimaryElec=nullptr; TH2F *Loc_PrimaryElec=nullptr; TH2F *ThPh_PrimaryElec=nullptr; // Ecal Info TH1F *N_EcalHits = nullptr; TH1F *Ecal_Hit_Energy=nullptr; TH2F *Ecal_Hits_Loc=nullptr; TH1F *Ecal_Seed_Energy=nullptr; TH2F *Ecal_Seed_Loc= nullptr; TH2F *Ecal_Seed_Locx_vs_Primx=nullptr; TH2F *Ecal_Seed_Locy_vs_Primy=nullptr; TH1F *Ecal_GTP_Energy = nullptr; TH1F *Ecal_Total_Energy=nullptr; TH2F *E_Seed_E_Ecal= nullptr; TH2F *E_Prim_E_Ecal= nullptr; TH2F *E_Prim_E_Seed= nullptr; // Hodoscope TH1F *N_HodoHits = nullptr; TH1F *Hodo_Hit_Energy = nullptr; TH1F *Hodo_Hit_CNT = nullptr; public: TrigHistCol(){}; TrigHistCol(SimAna *sa,double thresh=0.); virtual void InitHists(double max_E); virtual void FillHistos(void); virtual void Histadd(TH1F *); virtual void Histadd(TH2F *); void Print(void); ClassDef(TrigHistCol,1); }; #endif
[ "maurik@physics.unh.edu" ]
maurik@physics.unh.edu
fa39ebffaf06aea1d451ef12a66790461669c56b
9fb83c4af56bf96bfd88e078ae0477479bc11281
/examples/CBuilder/ExRSAKe1.cpp
64d6d0c7c29631c5fa2f1d51963c92f88982d430
[]
no_license
terrylao/lockbox2
2fc2cd17a8f85c4bdc7b87f00c66e54fecfa2863
030f157a6eebee5e53bdcee3c1718605bb01b390
refs/heads/master
2021-05-18T07:39:39.573333
2020-04-02T00:59:00
2020-04-02T00:59:00
251,183,470
4
4
null
null
null
null
UTF-8
C++
false
false
4,675
cpp
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "ExRSAKe1.h" #pragma link "LbAsym.obj" #pragma link "LbRSA.obj" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; TLbRSAKey *PublicKey; TLbRSAKey *PrivateKey; //--------------------------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TForm1::FormCreate(TObject *Sender) { PrivateKey = 0; PublicKey = 0; } //--------------------------------------------------------------------------- void __fastcall TForm1::FreeKey(TLbRSAKey *Key) { if (Key != 0) { delete Key; Key = 0; } } //--------------------------------------------------------------------------- void __fastcall TForm1::CreateKey(TLbRSAKey *Key) { FreeKey(Key); Key = new TLbRSAKey((TLbAsymKeySize) cbxKeySize->ItemIndex); } //--------------------------------------------------------------------------- void __fastcall TForm1::btnCreateKeysClick(TObject *Sender) { Screen->Cursor = crHourGlass; FreeKey(PublicKey); FreeKey(PrivateKey); StatusBar1->SimpleText = "Generating key pair, this may take a while"; try { GenerateRSAKeysEx(PrivateKey, PublicKey, TLbAsymKeySize(cbxKeySize->ItemIndex), StrToIntDef(edtIterations->Text, 20), 0); edtPublicE->Text = PublicKey->ExponentAsString; edtPublicM->Text = PublicKey->ModulusAsString; edtPrivateE->Text = PrivateKey->ExponentAsString; edtPrivateM->Text = PrivateKey->ModulusAsString; } catch (...) { } // swallow any errors Screen->Cursor = crDefault; StatusBar1->SimpleText = ""; } //--------------------------------------------------------------------------- void __fastcall TForm1::btnFreeKeysClick(TObject *Sender) { FreeKey(PrivateKey); FreeKey(PublicKey); edtPublicE->Text = ""; edtPublicM->Text = ""; edtPrivateE->Text = ""; edtPrivateM->Text = ""; } //--------------------------------------------------------------------------- void __fastcall TForm1::btnLoadPublicClick(TObject *Sender) { if (OpenDialog1->Execute()) { TFileStream *FS = new TFileStream(OpenDialog1->FileName, fmOpenRead); Screen->Cursor = crHourGlass; try { CreateKey(PublicKey); PublicKey->Passphrase = edtPublicPhrase->Text; PublicKey->LoadFromStream(FS); edtPublicE->Text = PublicKey->ExponentAsString; edtPublicM->Text = PublicKey->ModulusAsString; } catch (...) { } // swallow any errors delete FS; Screen->Cursor = crDefault; } } //--------------------------------------------------------------------------- void __fastcall TForm1::btnSavePublicClick(TObject *Sender) { if (PublicKey !=0) { if (SaveDialog1->Execute()) { TFileStream *FS = new TFileStream(SaveDialog1->FileName, fmCreate); Screen->Cursor = crHourGlass; try { PublicKey->Passphrase = edtPublicPhrase->Text; PublicKey->StoreToStream(FS); } catch (...) { } // swallow any errors delete FS; Screen->Cursor = crDefault; } } } //--------------------------------------------------------------------------- void __fastcall TForm1::btnLoadPrivateClick(TObject *Sender) { if (OpenDialog1->Execute()) { TFileStream *FS = new TFileStream(OpenDialog1->FileName, fmOpenRead); Screen->Cursor = crHourGlass; try { CreateKey(PrivateKey); PrivateKey->Passphrase = edtPrivatePhrase->Text; PrivateKey->LoadFromStream(FS); edtPrivateE->Text = PrivateKey->ExponentAsString; edtPrivateM->Text = PrivateKey->ModulusAsString; } catch (...) { } // swallow any errors delete FS; Screen->Cursor = crDefault; } } //--------------------------------------------------------------------------- void __fastcall TForm1::btnSavePrivateClick(TObject *Sender) { if (PrivateKey != 0) { if (SaveDialog1->Execute()) { TFileStream *FS = new TFileStream(SaveDialog1->FileName, fmCreate); Screen->Cursor = crHourGlass; try { PrivateKey->Passphrase = edtPrivatePhrase->Text; PrivateKey->StoreToStream(FS); } catch (...) { } // swallow any errors delete FS; Screen->Cursor = crDefault; } } } //---------------------------------------------------------------------------
[ "noreply@github.com" ]
noreply@github.com
8b89f13a2c28a7180b7679b0139ff91292f969ff
25fc976a7b56ca45602c327efb96bc8c75a729b3
/OpenGL/GL_Simplex1to4.h
882e7dea07f1197e884abe821b2eb434aa6f91c4
[]
no_license
henryeherman/BulletXcodeDemos
75c86243a570e17adcf9403d82624a43836c2f84
b25b6c1055a8fa136a3c7770c6017e819cd7b6bb
refs/heads/master
2021-01-25T11:58:06.864189
2012-06-25T06:57:57
2012-06-25T06:57:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,534
h
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ 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. */ #ifndef GL_SIMPLEX_1TO4_H #define GL_SIMPLEX_1TO4_H #include <BulletCollision/CollisionShapes/btTetrahedronShape.h> #include <BulletCollision/NarrowPhaseCollision/btSimplexSolverInterface.h> ///GL_Simplex1to4 is a class to debug a Simplex Solver with 1 to 4 points. ///Can be used by GJK. class GL_Simplex1to4 : public btBU_Simplex1to4 { btSimplexSolverInterface* m_simplexSolver; public: GL_Simplex1to4(); void calcClosest(btScalar* m); void setSimplexSolver(btSimplexSolverInterface* simplexSolver) { m_simplexSolver = simplexSolver; } }; #endif //GL_SIMPLEX_1TO4_H
[ "henry@henryeherman.net" ]
henry@henryeherman.net
0c068bbb9b28c85acd8c6f9e232f0b41dc662137
6b40e9cba1dd06cd31a289adff90e9ea622387ac
/Develop/mdk/Mint3.2/Include/MWidget.h
7b4195c4c6a8a870126ab065154cc1ea3e68598e
[]
no_license
AmesianX/SHZPublicDev
c70a84f9170438256bc9b2a4d397d22c9c0e1fb9
0f53e3b94a34cef1bc32a06c80730b0d8afaef7d
refs/heads/master
2022-02-09T07:34:44.339038
2014-06-09T09:20:04
2014-06-09T09:20:04
null
0
0
null
null
null
null
UHC
C++
false
false
20,580
h
// // MINT ( MAIET In-house wiNdows sysTem ) // //////////////////////////////////////////////////////////////////////////////// #pragma once #include "MDrawContext.h" #include "MintTypes.h" #include "MEvent.h" #include "MEventHandler.h" #include "MWLua.h" #include <string> #include <list> using namespace std; namespace mint3 { // Message process #define MNOTPROCESSED 0 #define MTRANSLATED 1 #define MRESULT unsigned int /// Draw state #define MDS_NOTDRAW 0 #define MDS_DRAW 1 // Look #define DECLARE_DEFAULT_LOOK(_CLASS) { static _CLASS look; m_pLookAndFill = &look; } #define MDEFAULT_TOOLTIPLOOK "__default_tooltip_look" #define MDEFAULT_POPUPMENULOOK "__default_popmenu_look" class MWidget; class MLookBase; class MDragData; class MScrollBar; class MPopupMenu; class MResourceMap; // 위젯 파트 정의(스트링형) #define MWP_BORDER "border" ///< Border #define MWP_TITLEBAR "titlebar" ///< Title bar #define MWP_ITEMBKGRND "itembkgrnd" ///< Item background #define MWP_CARET "caret" ///< Caret #define MWP_IMECARET "imecaret" ///< IME caret #define MWP_SELECTBAR "selectbar" ///< Select bar #define MWP_COLUMNHEADER "columnheader" ///< Column header #define MWP_UPARROW "uparrow" ///< 위쪽 화살표 #define MWP_DOWNARROW "downarrow" ///< 아래쪽 화살표 #define MWP_LEFTARROW "leftarrow" ///< 왼쪽 화살표 #define MWP_RIGHTARROW "rightarrow" ///< 오른쪽 화살표 #define MWP_THUMB "thumb" ///< Thumb 버튼 #define MWP_VERTTRACK "verttrack" ///< 수직 트랙 #define MWP_HORZTRACK "horztrack" ///< 수평 트랙 #define MWP_PROGRESSBAR "progressbar" ///< 진행막대 // 위젯 상태 정의(스트링형) #define MWS_NORMAL "normal" #define MWS_FOCUS "focus" #define MWS_DOWN "down" #define MWS_DISABLE "disable" // 위젯 상태 번호 정의(정수형) #define MWSN_NORMAL 0 #define MWSN_FOCUS 1 #define MWSN_DOWN 1 #define MWSN_DISABLE 2 // Hit test #define MHTNOWHERE 0 #define MHTCLIENT 1 #define MHTCAPTION 2 #define MHTSIZEFIRST 10 #define MHTLEFT 11 #define MHTRIGHT 12 #define MHTTOP 13 #define MHTTOPLEFT 14 #define MHTTOPRIGHT 15 #define MHTBOTTOM 16 #define MHTBOTTOMLEFT 17 #define MHTBOTTOMRIGHT 18 #define MHTSIZELAST 19 // Cursor #define MCURSOR_ARROW "arrow" #define MCURSOR_WAIT "wait" #define MCURSOR_IBEAM "ibeam" #define MCURSOR_SIZENWSE "sizenwse" #define MCURSOR_SIZENESW "sizenesw" #define MCURSOR_SIZEWE "sizewe" #define MCURSOR_SIZENS "sizens" #define MCURSOR_SIZEALL "sizeall" #define MCURSOR_HAND "hand" /// class : MWidget class MWidget : public MListener { friend class Mint; friend class MEventHandler; friend class MScriptManager; friend class MLookBase; /// Member variables protected: /// Parent and child MWidget* m_pParent; ///< Parent Widget list< MWidget*> m_Children; ///< Children Widgets list< MWidget*> m_MessageFilter; ///< Message hooking MWidget* m_pWndDisable; ///< Windows disabled because of BeginModalState /// Default variables MLookBase* m_pLookAndFill; ///< Look and fill string m_strName; ///< 인스턴스 Name string m_strText; ///< Text string m_strToolTip; ///< 툴팁 메시지 MPOINT m_ptToolTipOffset; ///< 툴팁 위치 Offset MRECT m_Rect; ///< Rect in Parent Widget MAnchorStyle m_Anchor; ///< Parent Widget에 비례해서 위치하는가? bool m_bModalState; ///< 모달 여부 int m_nModalResult; ///< 모달 결과 값 bool m_bShow; ///< Visible Flag bool m_bEnable; ///< Enable bool m_bEnableFocus; ///< Focus Enable float m_fOpacity; ///< 투명도(0.0=투명, 1.0=불투명) bool m_bShowBorder; ///< Border 표시 여부 bool m_bZOrderChangable; ///< Z Order Change by Button Click bool m_bStatic; ///< 정적 위젯인지 여부 bool m_bLButtonDown; bool m_bRButtonDown; /// Event and script MEventHandler m_EventHandler; bool m_bDeclToScript; /// Special state widget static MWidget* m_pCapturedWidget; static MWidget* m_pFocusedWidget; static MWidget* m_pMouseOverWidget; // Lua event and helper static MEventArgs m_EventArgs; static MDragEventArgs m_DragEventArgs; static MPopupEventArgs m_PopupEventArgs; // Running events static bool m_RunEventOnPosition; static bool m_RunEventOnSize; /// Member functions public: /// Constructor and Destructor MWidget( const char* szName =NULL, MWidget* pParent =NULL, MListener* pListener =NULL); virtual ~MWidget(); /// 이벤트를 처리할 핸들러 호출 MRESULT Event( MEvent* pEvent); bool DispatchModalWnd( MEvent* pEvent, MRESULT* nResult); bool DispatchMouse( MEvent* pEvent, MRESULT* nResult); bool DispatchKey( MEvent* pEvent, MRESULT* nResult); /// 단축키를 처리할 핸들러 호출 MRESULT EventHotKey( unsigned int nHotKey); /// Loop가 돌때마다 Widget System에서 처리할 일이 있을때 실행한다. void Run( DWORD dwCurrTime =0); /// 이 Widget을 비롯한 Child Widget을 그린다. void Draw( MDrawContext* pDC); // 위젯의 상태를 구한다 virtual const char* GetState(); virtual int GetStateNum(); /// 부모 위젯을 설정한다. void SetParent( MWidget* pParent); MWidget* GetParent() { return m_pParent; } /// 자식 위젯 갯수를 얻어낸다. size_t GetChildCount() { return m_Children.size(); } /// 자식 리스트를 얻는다 list< MWidget*>& GetChilList() { return m_Children; } /// 자식 위젯을 얻어낸다. MWidget* GetChild( int i); /// 자식 위젯의 인덱스를 얻어낸다. int GetChildIndex( MWidget* pWidget); /// 해당 좌표의 위젯을 찾음 MWidget* WindowFromPoint( MPOINT& pt, bool bEnFocus =false); MWidget* ToolTipWindowFromPoint( MPOINT& pt); // 모달 윈도우 실행/취소 virtual void BeginModalState(); virtual void EndModalState(); // 모달 상태를 구함 bool InModalState() const { return m_bModalState; } // 모달 결과값을 구함 int GetModalResult() const { return m_nModalResult; } /// 리스너 virtual void SetListener( MListener* pListener) { m_EventHandler.SetListener(pListener); } virtual MListener* GetListener() { return m_EventHandler.GetListener(); } /// Child Widget 추가 및 삭제 void AddChild( MWidget* pWidget); void RemoveChild( MWidget* pWidget); void DeleteChildren(); void RemoveFromParent(); /// 메시지 후킹 void AddMessageFilter( MWidget* pHooker); void DeleteMessageFilter( MWidget* pHooker); /// Look and fill void SetLookAndFill( MLookBase* pLook); void SetLookAndFill( const char* szLookAndFill); MLookBase* GetLookAndFill() { return m_pLookAndFill; } bool HasLookAndFill() { return ( m_pLookAndFill ? true : false); } /// 위젯 인스턴스 이름 얻기 string& GetName() { return m_strName; } /// 위젯 텍스트 설정 virtual void SetText( const char* szText); virtual const char* GetText() { return m_strText.c_str(); } /// 툴팁 메시지 설정 및 구함 virtual void SetToolTipText( const char* szTooltip) { m_strToolTip = szTooltip; } virtual const char* GetToolTipText() const { return m_strToolTip.c_str(); } MPOINT GetToolTipOffset() const { return m_ptToolTipOffset; } void SetToolTipOffset( MPOINT ptOffset) { m_ptToolTipOffset = ptOffset; } /// Parent Widget의 Local 좌표계에서 Rect 지정하기 void SetRect( int x, int y, int w, int h); void SetRect( MRECT& r) { SetRect(r.x, r.y, r.w, r.h); } MRECT GetRect() const { return m_Rect; } /// 위젯의 클라이언트 영역을 구함 MRECT GetClientRect(); /// 위젯의 작업 영역을 구함 MRECT GetWorkRect(); MRECT GetWorkRectOffset(); /// 위젯의 배경 영역을 구함 MRECT GetBkgrndRect(); MRECT GetBkgrndRectOffset(); /// 위젯의 원래 클라이언트 영역을 구함(삭제 예정) MRECT GetInitialClientRect() const { return MRECT(0, 0, m_Rect.w, m_Rect.h); } /// 위젯의 스크린 좌표를 구함 MRECT GetWindowRect(); /// Anchor 정보 지정하기 void SetAnchor( MAnchorStyle& anchor) { m_Anchor = anchor; } MAnchorStyle GetAnchor() const { return m_Anchor; } /// Parent Widget의 Local 좌표계에서 Position 지정하기 void SetPosition( int x, int y); void SetPosition( MPOINT& p) { SetPosition( p.x, p.y); } MPOINT GetPosition() const { return MPOINT( m_Rect.x, m_Rect.y); } /// Size 지정하기 void SetSize( int w, int h); void SetSize( MSIZE& s) { SetSize( s.w, s.h); } MSIZE GetSize() const { return MSIZE( m_Rect.w, m_Rect.h); } /// 위젯을 보이거나 감춤 bool Show( bool bShow =true); void Hide() { Show( false); } bool GetShow() const { return m_bShow; } virtual bool IsVisibled(); /// 위젯을 활성화 시킨다. void Enable( bool bEnable =true); bool GetEnable() const { return m_bEnable; } virtual bool IsEnabled(); /// 포커싱 void SetEnableFocus( bool bEnable) { m_bEnableFocus = bEnable; } bool IsEnableFocus() const { return m_bEnableFocus; } /// 위젯을 이동 가능한지 설정 virtual void SetMovable( bool bMovable) {} virtual bool IsMovable() { return false; } /// 위젯의 사이즈를 변경 가능한지 설정 virtual void SetResizable( bool bResize) {} virtual bool IsResizable() { return false; } /// 투명도 설정 void SetOpacity( float fOpacity) { m_fOpacity = max( 0.0f, min( 1.0f, fOpacity)); } float GetOpacity() { return m_fOpacity; } /// Border 표시 설정 void ShowBorder( bool bShow) { m_bShowBorder = bShow; } bool IsShowBorder() const { return m_bShowBorder; } /// Border 표시 설정 void SetStatic( bool bStatic) { m_bStatic = bStatic; } bool IsStatic() const { return m_bStatic; } /// 스크롤바 virtual MScrollBar* GetScrollBar() { return NULL; } /// 드래그 앤 드롭 virtual void EnableDragAndDrop( bool bEnable) {} virtual bool IsEnableDragAndDrop() const { return false; } // 통지 메시지를 보냄 bool SendNotify( MWidget* pSender, MEventMsg nMsg); // 유저 argument를 보냄 bool SendUserArguments( const char* szArgs, bool bSendChild =false); /// 위젯에 포커스를 설정 void SetFocus(); void ReleaseFocus(); virtual bool IsFocus() { return ((MWidget::m_pFocusedWidget == this) ? true : false); } MWidget* GetFocus() { return MWidget::m_pFocusedWidget; } /// 위젯이 메시지를 캡쳐함 void SetCapture() { MWidget::m_pCapturedWidget = this; } void ReleaseCapture() { MWidget::m_pCapturedWidget = NULL; } bool IsCapture() { return ((MWidget::m_pCapturedWidget == this) ? true : false); } MWidget* GetCapture() { return MWidget::m_pCapturedWidget; } /// 위젯에 마우스가 위치함 void SetMouseOver(); void ReleaseMouseOver(); bool IsMouseOver() { return ((MWidget::m_pMouseOverWidget == this) ? true : false); } bool IsMouseIncluded(); MWidget* GetMouseOver() { return MWidget::m_pMouseOverWidget; } // 타이머 설정 void SetTimer( int nElapse, DWORD dwEventData =0); void KillTimer(); // 이벤트 스크립트 등록 void BindScriptEvent( string& strEventName, string& strScript); bool IsBindedScript() { return m_EventHandler.Empty(); } void DeclToSctipt() { m_bDeclToScript = true; } bool IsDeclSctipt() { return m_bDeclToScript; } // Z-Order virtual void SetAlwaysTop( bool bSet) {} virtual bool GetAlwaysTop() const { return false; } void BringToTop(); // 위젯이 레이어 타입인지 여부를 구함 virtual bool IsLayered() const { return false; } protected: /// Local Coordinate를 이용한 Local Event로 변환 void MakeLocalEvent( MEvent* pLoalEvent, const MEvent* pEvent); /// Event에서 Resize부분 처리 bool EventResize( MEvent* pEvent); /// 현재 위젯을 그리는게 가능한 상태인지 여부를 구함 virtual int GetDrawState(); // 마우스 상태 초기화 virtual void InitMouseState(); /// Event caller public: void EventCommand( MWidget* pWidget, MEventMsg nMsg, const char* szArgs =NULL) { OnCommand( pWidget, nMsg, szArgs); } void EventTimer( DWORD dwEventData) { OnTimer( dwEventData); } void EventResizeLayer(); void EventLoaded() { return OnLoaded(); } bool EventDragBegin( MDragData* pDragData, MPOINT& pt); bool EventDragEnd( MDragData* pDragData, MPOINT& pt, bool bDropped) { return OnDragEnd( pDragData, pt, bDropped); } bool EventDrop( MWidget* pSender, MDragData* pDragData, MPOINT& pt) { return OnDrop( pSender, pDragData, pt); } MWidget* EventToolTip() { return OnToolTip(); } void EventInitPopupMenu( MPopupMenu* pPopupMenu) { OnInitPopupMenu( pPopupMenu); } void EventDrawItemBkgrnd( MDrawContext* pDC, int index, int subitem, MRECT& r); bool EventPreDrawItem( MDrawContext* pDC, int index, int subitem, MRECT& r); void EventDrawItem( MDrawContext* pDC, int index, int subitem, MRECT& r); /// Event handler protected: virtual bool OnPreFilterMessage( MEvent* pEvent); virtual MRESULT OnPreTranslateMsg( MEvent* pEvent); virtual bool OnEvent( MEvent* pEvent, MListener* pListener); virtual bool OnQueryHotKey( unsigned int nHotKey); virtual void OnHotKey( unsigned int nHotKey); virtual bool OnCommand( MWidget* pWidget, MEventMsg nMsg, const char* szArgs =NULL); virtual void OnLoaded(); virtual void OnChangedLookAndFill(); virtual void OnRun( DWORD dwCurrTime); virtual void OnPreDraw( MDrawContext* pDC); virtual void OnDrawBorder( MDrawContext* pDC); virtual void OnDrawItemBkgrnd( MDrawContext* pDC, int index, int subitem, MRECT& r); virtual bool OnPreDrawItem( MDrawContext* pDC, int index, int subitem, MRECT& r); virtual void OnDrawItem( MDrawContext* pDC, int index, int subitem, MRECT& r); virtual void OnDraw( MDrawContext* pDC); virtual void OnShow( bool bShow); virtual void OnEnable( bool bEnabled); virtual void OnActivate( bool bActivate); virtual void OnSetFocus(); virtual void OnKillFocus(); virtual void OnPosition( int x, int y); virtual void OnSize( int w, int h); virtual void OnLButtonDown( MEvent* pEvent); virtual void OnLButtonUp( MEvent* pEvent); virtual void OnRButtonDown( MEvent* pEvent); virtual void OnRButtonUp( MEvent* pEvent); virtual void OnMouseMove( MEvent* pEvent); virtual void OnClick( MEvent* pEvent); virtual void OnRClick( MEvent* pEvent); virtual void OnDblClick( MEvent* pEvent); virtual void OnMouseWheel( MEvent* pEvent); virtual void OnKeyDown( MEvent* pEvent); virtual void OnKeyUp( MEvent* pEvent); virtual void OnChar( MEvent* pEvent); virtual void OnScrollBarChanged( int nPos); virtual void OnSelChanged(); virtual void OnValueChanged(); virtual void OnItemClick( MEvent* pEvent, int nIndex); virtual void OnItemDblClick( MEvent* pEvent, int nIndex); virtual void OnItemRClick( MEvent* pEvent, int nIndex); virtual bool OnDragBegin( MDragData* pDragData, MPOINT& pt); virtual bool OnDragEnd( MDragData* pDragData, MPOINT& pt, bool bDropped); virtual bool OnDrop( MWidget* pSender, MDragData* pDragData, MPOINT& pt); virtual MWidget* OnToolTip(); virtual void OnOK(); virtual void OnCancel(); virtual void OnEnter(); virtual void OnLeave(); virtual bool OnSetCursor( MEvent* pEvent, string* pCursor); virtual void OnInitPopupMenu( MPopupMenu* pPopupMenu); virtual void OnTimer( DWORD dwEventData); virtual int OnNcHitTest( MEvent* pEvent); virtual bool OnUserArgument( const char* szArgument); /// Lua glue 함수 public: MWidget* glueGetParent() { return GetParent(); } const char* glueGetName() { return GetName().c_str(); } void glueSetText( const char* szText); const char* glueGetText() { return GetText(); } void glueSetToolTip( const char* szToolTip); void glueModifyToolTip(); const char* glueGetToolTip() { return GetToolTipText(); } void glueSetPosition( int x, int y) { SetPosition( x, y); } MWLua::ret_int2 glueGetPosition() const { return MWLua::ret_int2( m_Rect.x, m_Rect.y); } void glueSetSize( int w, int h) { SetSize( w, h); } MWLua::ret_int2 glueGetSize() const { return MWLua::ret_int2( m_Rect.w, m_Rect.h); } int glueGetWidth() const { return m_Rect.w; } int glueGetHeight() const { return m_Rect.h; } void glueSetRect( int x, int y, int w, int h) { SetRect( x, y, w, h); } MWLua::ret_int4 glueGetRect(); MWLua::ret_int4 glueGetClientRect(); MWLua::ret_int4 glueGetWindowRect(); bool glueShow( bool bShow) { return Show( bShow); } bool glueGetShow() const { return GetShow(); } bool glueIsVisibled() { return IsVisibled(); } void glueEnable( bool bEnable) { Enable( bEnable); } bool glueGetEnable() const { return GetEnable(); } bool glueIsEnabled() { return IsEnabled(); } void glueSetOpacity( float fOpacity) { SetOpacity( fOpacity); } float glueGetOpacity() { return GetOpacity(); } void glueShowBorder( bool bShow) { ShowBorder( bShow); } bool glueIsShowBorder() const { return IsShowBorder(); } int glueSetScrollValue( int nValue); int glueGetScrollValue(); void glueSetScrollThumbLen( int nLength); void glueSetFocus() { SetFocus(); } void glueSetStatic( bool bStatic) { SetStatic( bStatic); } bool glueIsStatic() { return IsStatic(); } bool glueIsFocus() { return IsFocus(); } bool glueIsCapture() { return IsCapture(); } bool glueIsMouseOver() { return IsMouseOver(); } bool glueIsMouseIncluded() { return IsMouseIncluded(); } void glueBringToTop() { BringToTop(); } bool glueTrackPopupMenu( const char* szPopupMenu); void glueDoModal() { return BeginModalState(); } void glueSetTimer( int nElapse, int nEventData) { SetTimer( nElapse, nEventData); } void glueKillTimer() { KillTimer(); } bool glueSendUserArgument( const char* szArgument, bool bSendChild); void glueAttachDragItem( const char* szText, const char* szImage, int nUserData); #define MINT_WIDGET "Widget" virtual const char* GetClassName() { return MINT_WIDGET; } #ifndef _PUBLISH bool m_bShowRect; void ShowRect( bool bShow) { m_bShowRect = bShow; } #endif }; /// 로컬 위치를 전역 위치로 변환 extern MPOINT MClientToScreen( MWidget* pWidget, MPOINT& p); extern MRECT MClientToScreen( MWidget* pWidget, MRECT& p); /// 전역 위치를 로컬 위치로 변환 extern MPOINT MScreenToClient( MWidget* pWidget, MPOINT& p); extern MRECT MScreenToClient( MWidget* pWidget, MRECT& p); /// &가 있는 위치를 알려준다. szText가 NULL이면 m_szText에서 &의 위치를 찾는다. int GetAndPos(const char* szText); /// & 뒤에 붙어있는 문자를 얻어낸다. char GetAndChar(const char* szText); /// &문자 제거 int RemoveAnd(char* szText); /// &문자 제거 int RemoveAnd(char* szRemovedText, const char* szText); /// &문자 제거 int RemoveAnd(char* szRemovedFrontText, char* cUnderLineChar, char* szRemovedBackText, const char* szText); /// 현재 커서 위치 얻기 MPOINT GetCursorPosition(void); } // namespace mint3
[ "shzdev@8fd9ef21-cdc5-48af-8625-ea2f38c673c4" ]
shzdev@8fd9ef21-cdc5-48af-8625-ea2f38c673c4
56888aa1995dfa508c9657123d852aebbba9862d
aa8ac042ab1fb637d958b269047e7971f0fd1c13
/XMLTVManipulate/wikimediap/wikinames.h
94e2f0205f99851bb9099edd6203368f8fe400f8
[]
no_license
jarssoft/timetower
7628b02f7eff30bf349a5a933c02c8906b6f0ffc
465d93cad53a15a6127c3f5a2a14d8824bbff958
refs/heads/master
2022-12-08T15:11:18.639931
2022-12-05T07:56:43
2022-12-05T07:56:43
121,289,587
0
0
null
null
null
null
UTF-8
C++
false
false
232
h
#ifndef WIKINAMES_H #define WIKINAMES_H #include <libxml/parser.h> #include <vector> namespace wikip { extern const xmlChar *mediawiki; extern const xmlChar *page; extern const xmlChar *title; } #endif // WIKINAMES_H
[ "jari.m.saari@gmail.com" ]
jari.m.saari@gmail.com
6266b688425e40cff1dd6d817bb00ff108f08f6e
28bdf47f711cc3bbadae50dcf4fa2a0f8494d972
/two/boar.cpp
d2286cb1e604c7efc0b71b801d1a45fcf6bc5312
[]
no_license
useful11/qt
902f3d649590be6af303c9bd740326412388667e
c5f59846181268e5119590e0a94d630edcc88ad0
refs/heads/master
2022-12-20T08:29:08.209738
2020-10-08T05:55:07
2020-10-08T05:55:07
292,707,143
0
0
null
null
null
null
UTF-8
C++
false
false
19,997
cpp
#include "boar.h" #include "ui_board.h" #include<QPainter> #include<QString> #include<QtGlobal> #include<QTime> #include<QDebug> #include<QRect> #include<QMouseEvent> #include<QPoint> #include <QWidget> board::board(QWidget *parent) : QWidget(parent), ui(new Ui::board) { ui->setupUi(this); p1.setText(QString("红方认输")); p1.resize(80,50); p1.move(880,80); p1.setParent(this); p2.setText(QString("黑方认输")); p2.resize(120,50); p2.move(880,240); p2.setParent(this); //固定窗口大小 this->setFixedSize(1200,1200); //棋盘格子长度 l=80; //棋子大小 r=30; //初始化flag flag1=-1; flag2=-1; flag3=-1; //初始化每一个棋子 for(int i=0;i<16;i++) { _a[i]._x=0; _a[i]._y=0; _a[i]._place=0; _a[i]._color=1; //0表示红色,1表示黑色 _a[i]._dead=0; //0表示仍然存活,1表示被吃掉 _a[i]._drawed=0; //0表示仍未被翻面,1表示已翻面 } _a[0]._type="将";_a[0]._id=0; _a[1]._type="士";_a[1]._id=1; _a[2]._type="士";_a[2]._id=2; _a[3]._type="象";_a[3]._id=3; _a[4]._type="象";_a[4]._id=4; _a[5]._type="马";_a[5]._id=5; _a[6]._type="马";_a[6]._id=6; _a[7]._type="车";_a[7]._id=7; _a[8]._type="车";_a[8]._id=8; _a[9]._type="炮";_a[9]._id=9; _a[10]._type="炮";_a[10]._id=10; _a[11]._type="卒";_a[11]._id=11; _a[12]._type="卒";_a[12]._id=12; _a[13]._type="卒";_a[13]._id=13; _a[14]._type="卒";_a[14]._id=14; _a[15]._type="卒";_a[15]._id=15; for(int i=16;i<32;i++) { _a[i]._x=0; _a[i]._y=0; _a[i]._place=0; _a[i]._color=0; //0表示红色,1表示黑色 _a[i]._dead=0; //0表示仍然存活,1表示被吃掉 _a[i]._drawed=0 ; //0表示仍未被翻面,1表示已翻面 } _a[16]._type="帅";_a[16]._id=16; _a[17]._type="仕";_a[17]._id=17; _a[18]._type="仕";_a[18]._id=18; _a[19]._type="相";_a[19]._id=19; _a[20]._type="相";_a[20]._id=20; _a[21]._type="马";_a[21]._id=21; _a[22]._type="马";_a[22]._id=22; _a[23]._type="车";_a[23]._id=23; _a[24]._type="车";_a[24]._id=24; _a[25]._type="炮";_a[25]._id=25; _a[26]._type="炮";_a[26]._id=26; _a[27]._type="兵";_a[27]._id=27; _a[28]._type="兵";_a[28]._id=28; _a[29]._type="兵";_a[29]._id=29; _a[30]._type="兵";_a[30]._id=30; _a[31]._type="兵";_a[31]._id=31; //初始化完成 //获得随机位置 getplace(); for(int i=0;i<32;i++) place_point(_a[i]._place,_a[i]._x,_a[i]._y); } void board::paintEvent(QPaintEvent *) { QPainter painter(this); //画棋盘 //画10条横线 for(int i=1;i<=10;i++) painter.drawLine(QPoint(l,i*l),QPoint(9*l,i*l)); //画9条竖线 for(int i=1;i<=9;i++) if(i==1||i==9) painter.drawLine(QPoint(i*l,l),QPoint(i*l,10*l)); else { painter.drawLine(QPoint(i*l,l),QPoint(i*l,5*l)); painter.drawLine(QPoint(i*l,6*l),QPoint(i*l,10*l)); } //画棋子 painter.setFont(QFont("system",25,700)); //设置棋子的字体大小 QRect rect; //显示棋面的矩形 for(int t=0;t<32;t++) //显示棋子 { rect=QRect(_a[t]._x-r,_a[t]._y-r,2*r,2*r); //每个棋子上矩形位置 if(t==flag1) //改变被鼠标点中棋子的颜色 painter.setBrush(QBrush(Qt::blue)); else painter.setBrush(QBrush(Qt::yellow)); painter.setPen(Qt::black); //初始颜色为黑色 painter.drawEllipse(QPoint(_a[t]._x,_a[t]._y),r,r);//画棋子边框,棋子半径为25 if(_a[t]._color==0) //棋子为红色 painter.setPen(Qt::red); if(_a[t]._drawed==1) //如果棋子翻转 painter.drawText(rect ,_a[t].gettext(_a[t]._id),QTextOption(Qt::AlignCenter));//显示棋面 } } void board::mouseReleaseEvent(QMouseEvent *ev) { QPoint pt=ev->pos(); int x=pt.x(); int y=pt.y(); flag3=mousepres2(x,y); if(flag3==-1) //鼠标未点击到正确位置 return; else{ //鼠标点到正确位置 if(flag2==-1) { bool ifmousepress=mousepres1(flag3);//判断鼠标点击的位置是否有某个棋子上,如果在棋子上,flag3变为该棋子序号,如果没有,flag3为棋格序号 if(ifmousepress&&_a[flag3]._drawed==0) _a[flag3]._drawed=1; else if(ifmousepress&&_a[flag3]._drawed==1) { flag1=flag3; flag2=flag3; } if(!ifmousepress) { return; } repaint(); } else{ bool ifmousepress=mousepres1(flag3);//判断鼠标点击的位置是否有某个棋子上 int pao=ifpao(ifmousepress,flag2,flag3); bool process=rightprocess(ifmousepress,pao,flag3,flag2);//判断走棋是否合法 bool geti=getit(pao,flag2,flag3); if(!ifmousepress&&process)//空格移动 {place_point(flag3,x,y); _a[flag2]._x=x; _a[flag2]._y=y; _a[flag2]._place=flag3; flag2=-1; flag1=-1; repaint(); } if(ifmousepress&&_a[flag3]._drawed==1&&_a[flag3]._color==_a[flag2]._color&&flag2==flag3)//单击选棋,再点击取消选棋 { flag1=-1; flag2=-1; flag3=-1; repaint(); } if(ifmousepress&&_a[flag3]._drawed==1&&_a[flag3]._color==_a[flag2]._color&&flag2!=flag3)//选择自己的棋子 { flag1=flag3; flag2=flag3; repaint(); } if(ifmousepress&&process&&geti&&_a[flag3]._drawed==1&&_a[flag3]._color!=_a[flag2]._color)//吃子情况 { _a[flag3]._dead=1; _a[flag2]._x=_a[flag3]._x; _a[flag2]._y=_a[flag3]._y; _a[flag2]._place=_a[flag3]._place; deadchess(_a[flag3]._id,_a[flag3]._x,_a[flag3]._y); flag2=-1; flag1=-1; repaint(); } if(ifmousepress&&_a[flag3]._drawed==0) { return; } } } } void board::getplace() { int i,j; QList<int> numbersList; qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); for(i=0;i<32;i++) { numbersList.append(qrand()%32); bool flag=true; while(flag) { for(j=0;j<i;j++) if(numbersList[i]==numbersList[j]) break; if(j<i) numbersList[i]=rand()%32; if(j==i) flag=!flag; } } for(i=0;i<32;i++) { _a[i]._place=numbersList[i]; } } void board::place_point(int a,int&x,int &y) { switch (a=a+0) { case 31:{x=8*l+l/2;y=4*l+l/2;} break; case 30:{x=7*l+l/2;y=4*l+l/2;} break; case 29:{x=6*l+l/2;y=4*l+l/2;} break; case 28:{x=5*l+l/2;y=4*l+l/2;} break; case 27:{x=4*l+l/2;y=4*l+l/2;} break; case 26:{x=3*l+l/2;y=4*l+l/2;} break; case 25:{x=2*l+l/2;y=4*l+l/2;} break; case 24:{x=l+l/2;y=4*l+l/2;}//第四列 break; case 23:{x=8*l+l/2;y=3*l+l/2;} break; case 22:{x=7*l+l/2;y=3*l+l/2;} break; case 21:{x=6*l+l/2;y=3*l+l/2;} break; case 20:{x=5*l+l/2;y=3*l+l/2;} break; case 19:{x=4*l+l/2;y=3*l+l/2;} break; case 18:{x=3*l+l/2;y=3*l+l/2;} break; case 17:{x=2*l+l/2;y=3*l+l/2;} break; case 16:{x=l+l/2;y=3*l+l/2;}//第三列 break; case 15:{x=8*l+l/2;y=2*l+l/2;} break; case 14:{x=7*l+l/2;y=2*l+l/2;} break; case 13:{x=6*l+l/2;y=2*l+l/2;} break; case 12:{x=5*l+l/2;y=2*l+l/2;} break; case 11:{x=4*l+l/2;y=2*l+l/2;} break; case 10:{x=3*l+l/2;y=2*l+l/2;} break; case 9:{x=2*l+l/2;y=2*l+l/2;} break; case 8:{x=l+l/2;y=2*l+l/2;}//第二列 break; case 7:{x=8*l+l/2;y=l+l/2;} break; case 6:{x=7*l+l/2;y=l+l/2;} break; case 5:{x=6*l+l/2;y=l+l/2;} break; case 4:{x=5*l+l/2;y=l+l/2;} break; case 3:{x=4*l+l/2;y=l+l/2;} break; case 2:{x=3*l+l/2;y=l+l/2;} break; case 1:{x=2*l+l/2;y=l+l/2;} break; case 0:{x=l+l/2;y=l+l/2;}//第一列 break; default:; break; } } bool board::mousepres1(int &a) { int i; for(i=0;i<32;i++) if(a==_a[i]._place&&_a[i]._dead==0) { a=i; break; } if(i<32) return true; else return false; } int board::mousepres2(int x, int y) { if(y>l&&y<2*l) { if(x>l&&x<2*l) return 0; if(x>2*l&&x<3*l) return 1; if(x>3*l&&x<4*l) return 2; if(x>4*l&&x<5*l) return 3; if(x>5*l&&x<6*l) return 4; if(x>6*l&&x<7*l) return 5; if(x>7*l&&x<8*l) return 6; if(x>8*l&&x<9*l) return 7; } if(y>2*l&&y<3*l) { if(x>l&&x<2*l) return 8; if(x>2*l&&x<3*l) return 9; if(x>3*l&&x<4*l) return 10; if(x>4*l&&x<5*l) return 11; if(x>5*l&&x<6*l) return 12; if(x>6*l&&x<7*l) return 13; if(x>7*l&&x<8*l) return 14; if(x>8*l&&x<9*l) return 15; } if(y>3*l&&y<4*l) { if(x>l&&x<2*l) return 16; if(x>2*l&&x<3*l) return 17; if(x>3*l&&x<4*l) return 18; if(x>4*l&&x<5*l) return 19; if(x>5*l&&x<6*l) return 20; if(x>6*l&&x<7*l) return 21; if(x>7*l&&x<8*l) return 22; if(x>8*l&&x<9*l) return 23; } if(y>4*l&&y<5*l) { if(x>l&&x<2*l) return 24; if(x>2*l&&x<3*l) return 25; if(x>3*l&&x<4*l) return 26; if(x>4*l&&x<5*l) return 27; if(x>5*l&&x<6*l) return 28; if(x>6*l&&x<7*l) return 29; if(x>7*l&&x<8*l) return 30; if(x>8*l&&x<9*l) return 31; } return -1; } bool board::rightprocess(bool a,int b,int x,int y)//y为flag2,x为flag3 { if(a) { if(_a[y]._type=="炮") //if(b==2&&(((_a[x]._place-_a[y]._place)>0)&&((_a[x]._place-_a[y]._place)<=7))||(((_a[x]._place-_a[y]._place)<0)&&((_a[x]._place-_a[y]._place)>=-7))|| //((_a[x]._place-_a[y]._place)==8)||((_a[x]._place-_a[y]._place)==16)||((_a[x]._place-_a[y]._place)==-8)||((_a[x]._place-_a[y]._place)==-16)) if(b==2) return true; else return false; if(_a[y]._type!="炮") if(((_a[x]._place-_a[y]._place)==1)||((_a[x]._place-_a[y]._place)==-1)||((_a[x]._place-_a[y]._place)==8)||((_a[x]._place-_a[y]._place)==-8)) return true; else return false; } if(!a) { int h=0; int z=0; place_point(x,h,z); if(_a[y]._type=="炮") //if((b==1||b==3)&&((((h-_a[y]._x)==0)&&((z-_a[y]._y)!=0))||(((h-_a[y]._x)!=0)&&((z-_a[y]._y)==0)))) if(b==3) return true; else return false; if(_a[y]._type!="炮") if(((((h-_a[y]._x)==l)||((h-_a[y]._x)==-l))&&((z-_a[y]._y)==0))||(((h-_a[y]._x)==0)&&(((z-_a[y]._y)==-l)||((z-_a[y]._y)==l)))) return true; else return false; } } bool board::getit( int a,int x,int y) { if(_a[x]._color!=_a[y]._color) { if(_a[x]._type=="帅"||_a[x]._type=="将") if((_a[x]._type=="帅"&&_a[y]._type=="卒")||(_a[x]._type=="将"&&_a[y]._type=="兵")) return false; else return true; if(_a[x]._type=="仕"||_a[x]._type=="士") if((_a[x]._type=="仕"&&_a[y]._type=="将")||(_a[x]._type=="士"&&_a[y]._type=="帅")) return false; else return true; if(_a[x]._type=="象"||_a[x]._type=="相") if((_a[x]._type=="相"&&_a[y]._type=="将")||(_a[x]._type=="相"&&_a[y]._type=="士")||(_a[x]._type=="象"&&_a[y]._type=="帅")||(_a[x]._type=="象"&&_a[y]._type=="仕")) return false; else return true; if(_a[x]._type=="车") if((_a[x]._type=="车"&&_a[y]._type=="炮")||(_a[x]._type=="车"&&_a[y]._type=="卒")||(_a[x]._type=="车"&&_a[y]._type=="兵")||(_a[x]._type=="车"&&_a[y]._type=="马")||(_a[x]._type=="车"&&_a[y]._type=="车")) return true; else return false; if(_a[x]._type=="马") if((_a[x]._type=="马"&&_a[y]._type=="炮")||(_a[x]._type=="马"&&_a[y]._type=="卒")||(_a[x]._type=="马"&&_a[y]._type=="兵")) return true; else return false; if(_a[x]._type=="卒"||_a[x]._type=="兵") if((_a[x]._type=="卒"&&_a[y]._type=="帅")||(_a[x]._type=="兵"&&_a[y]._type=="将")) return true; else return false; if(_a[x]._type=="炮") if((a==2)&&_a[y]._type!="马") return true; else return false; } return false; } int board::ifpao(bool a, int x, int y) { if(_a[x]._type!="炮") return 0; else{ int t=0; if(a){ t=pao_useed(_a[x]._place,_a[y]._place); } else { t=pao_useed(_a[x]._place,y); } switch(t+=0) { case 2:return 2; case 3:return 3; case 4:return 4; case 5:return 5; } } } int board::pao_useed(int x, int y)//2表示炮符合吃子条件;3表示炮与点中的位置之间无其他棋子,4表示炮与点中位置相隔两个及以上的棋子,5表示两颗棋子不在同一行列 { int a,b,a1,b1; a=x%8;//x所在的列 b=x/8;//x所在的行 a1=y%8;//y所在的列 b1=y/8;//y所在的行 int max,min; int t=0; if((a==a1&&b>b1)||(b==b1&&a>a1)) { max=x; min=y; } else if((a==a1&&b<b1)||(b==b1&&a<a1)) { max=y; min=x; } else return 5; if(a==a1) for(int i=min+8;i<max;i=i+8) for(int j=0;j<32;j++) if(_a[j]._place==i&&_a[j]._dead==0) { t=t+1; } if(b==b1) for(int i=min+1;i<max;i++) for(int j=0;j<32;j++) if(_a[j]._place==i&&_a[j]._dead==0) { t=t+1; } if(t==1) return 2; else if(t==0) return 3; else return 4; } void board::deadchess(int a, int &x, int &y) { switch (a=a+0) { case 31:{x=8*l+l/2;y=9*l+l/2;} break; case 30:{x=7*l+l/2;y=9*l+l/2;} break; case 29:{x=6*l+l/2;y=9*l+l/2;} break; case 28:{x=5*l+l/2;y=9*l+l/2;} break; case 27:{x=4*l+l/2;y=9*l+l/2;} break; case 26:{x=3*l+l/2;y=9*l+l/2;} break; case 25:{x=2*l+l/2;y=9*l+l/2;} break; case 24:{x=l+l/2;y=9*l+l/2;}//第四列 break; case 23:{x=8*l+l/2;y=8*l+l/2;} break; case 22:{x=7*l+l/2;y=8*l+l/2;} break; case 21:{x=6*l+l/2;y=8*l+l/2;} break; case 20:{x=5*l+l/2;y=8*l+l/2;} break; case 19:{x=4*l+l/2;y=8*l+l/2;} break; case 18:{x=3*l+l/2;y=8*l+l/2;} break; case 17:{x=2*l+l/2;y=8*l+l/2;} break; case 16:{x=l+l/2;y=8*l+l/2;}//第三列 break; case 15:{x=8*l+l/2;y=7*l+l/2;} break; case 14:{x=7*l+l/2;y=7*l+l/2;} break; case 13:{x=6*l+l/2;y=7*l+l/2;} break; case 12:{x=5*l+l/2;y=7*l+l/2;} break; case 11:{x=4*l+l/2;y=7*l+l/2;} break; case 10:{x=3*l+l/2;y=7*l+l/2;} break; case 9:{x=2*l+l/2;y=7*l+l/2;} break; case 8:{x=l+l/2;y=7*l+l/2;}//第二列 break; case 7:{x=8*l+l/2;y=6*l+l/2;} break; case 6:{x=7*l+l/2;y=6*l+l/2;} break; case 5:{x=6*l+l/2;y=6*l+l/2;} break; case 4:{x=5*l+l/2;y=6*l+l/2;} break; case 3:{x=4*l+l/2;y=6*l+l/2;} break; case 2:{x=3*l+l/2;y=6*l+l/2;} break; case 1:{x=2*l+l/2;y=6*l+l/2;} break; case 0:{x=l+l/2;y=6*l+l/2;}//第一列 break; default:; break; } } board::~board() { delete ui; }
[ "3202552795@qq.com" ]
3202552795@qq.com
14078239ab0e88d3c500e4793c5105002c12fe4f
d0fb3f0c258145c3e06b99c0b555056e12e48d06
/selene/img_io/IO.cpp
3584574c8d7d9f935da7075c1649fd4bc196bd11
[ "MIT" ]
permissive
js-god/selene
2767a760be0ed14cf85fdb332d5b1d340830afec
4131290135885958ca8bc5ff241d86a2da8ac66e
refs/heads/master
2020-04-14T15:25:39.930070
2019-01-01T23:47:51
2019-01-01T23:47:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
547
cpp
// This file is part of the `Selene` library. // Copyright 2017-2018 Michael Hofmann (https://github.com/kmhofmann). // Distributed under MIT license. See accompanying LICENSE file in the top-level directory. #include <selene/img_io/IO.hpp> namespace sln { namespace impl { void add_messages(const MessageLog& messages_src, MessageLog* messages_dst) { if (messages_dst == nullptr) { return; } for (const auto& msg : messages_src.messages()) { messages_dst->add_message(msg); } } } // namespace impl } // namespace sln
[ "kmhofmann@gmail.com" ]
kmhofmann@gmail.com
c20b83cec33fddca56dc3d642dba20037ba640ac
9aee810d0d9d72d3dca7920447872216a3af49fe
/AtCoder/ABC/100-199/ABC143/abc143_e.cpp
8896553372cc5822830861f3a3ff508e60702b51
[]
no_license
pulcherriman/Programming_Contest
37d014a414d473607a11c2edcb25764040edd686
715308628fc19843b8231526ad95dbe0064597a8
refs/heads/master
2023-08-04T00:36:36.540090
2023-07-30T18:31:32
2023-07-30T18:31:32
163,375,122
3
0
null
2023-01-24T11:02:11
2018-12-28T06:33:16
C++
UTF-8
C++
false
false
34,489
cpp
#ifdef _DEBUG // #define _GLIBCXX_DEBUG 1 #else #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("inline") #endif #pragma GCC target ("avx2") /* * Include Headers */ #if defined(EVAL) || defined(ONLINE_JUDGE) || defined(_DEBUG) // #include <atcoder/all> // using namespace atcoder; #endif #include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace std; /* * Additional Type Definition */ using ll=long long; using ld=long double; using ull=unsigned long long; using vb=vector<bool>; using vvb=vector<vb>; using vd=vector<ld>; using vvd=vector<vd>; using vi=vector<int>; using vvi=vector<vi>; using vl=vector<ll>; using vvl=vector<vl>; using pii=pair<int,int>; using pll=pair<ll,ll>; using vp=vector<pll>; using tl2=tuple<ll,ll>; using tl3=tuple<ll,ll,ll>; using vs=vector<string>; template<class K> using IndexedSet=__gnu_pbds::tree<K,__gnu_pbds::null_type,less<K>,__gnu_pbds::rb_tree_tag,__gnu_pbds::tree_order_statistics_node_update>; template<class K> using HashSet=__gnu_pbds::gp_hash_table<K,__gnu_pbds::null_type>; template<class K,class V> using IndexedMap=__gnu_pbds::tree<K,V,less<K>,__gnu_pbds::rb_tree_tag,__gnu_pbds::tree_order_statistics_node_update>; template<class K,class V> using HashMap=__gnu_pbds::gp_hash_table<K,V>; template<class V> using minpq = priority_queue<V, vector<V>, greater<V>>; #define all(a) begin(a),end(a) #define rall(a) rbegin(a),rend(a) #define __LOOPSWITCH(_1, _2, _3, __LOOPSWITCH, ...) __LOOPSWITCH #define rep(...) __LOOPSWITCH(__VA_ARGS__, __RANGE, __REP, __LOOP) (__VA_ARGS__) #define rrep(...) __LOOPSWITCH(__VA_ARGS__, __RRANGE, __RREP, __LOOP) (__VA_ARGS__) #define __LOOP(q) __LOOP2(q, __LINE__) #define __LOOP2(q,l) __LOOP3(q,l) #define __LOOP3(q,l) __REP(_lp ## l,q) #define __REP(i,n) __RANGE(i,0,n) #define __RANGE(i,a,n) for(ll i=((ll)a);i<((ll)n);++i) #define __RREP(i,n) __RRANGE(i,0,n) #define __RRANGE(i,a,n) for(ll i=((ll)(n)-1);i>=((ll)a);--i) #define sz(a) ((ll)(a).size()) /* * Constants */ constexpr ll LINF=1ll<<60; constexpr int INF=1<<30; constexpr double EPS=(1e-14); constexpr ll MOD=998244353ll; constexpr long double PI=3.14159265358979323846; /* * Utilities */ template<class T>constexpr bool chmax(T&a,T b){return a<b?a=b,1:0;} template<class T>constexpr bool chmin(T&a,T b){return a>b?a=b,1:0;} template<class S>S sum(vector<S>&a){return accumulate(all(a),S());} template<class S>S max(vector<S>&a){return *max_element(all(a));} template<class S>S min(vector<S>&a){return *min_element(all(a));} namespace IO { // container detection template<typename T, typename _=void> struct is_container : false_type {}; template<> struct is_container<string> : false_type {}; template<typename...Ts> struct is_container_helper {}; template<typename T> struct is_container<T, conditional_t< true, void, is_container_helper< typename T::value_type, typename T::size_type, typename T::iterator, decltype(declval<T>().size()), decltype(declval<T>().begin()), decltype(declval<T>().end()) >>> : public true_type {}; template<typename T, typename enable_if<is_container<T>{}, nullptr_t>::type = nullptr, char Separator = is_container<typename T::value_type>{} ? '\n' : ' ' > constexpr ostream&operator<<(ostream&os, T t){ if(auto b=begin(t), e=end(t) ; !t.empty()) for(os<<(*b++);b!=e;os<<Separator<<(*b++)) ; return os; } // output template<class T, class...Ts> constexpr ostream& pargs(ostream&os, T&&t, Ts&&...args); // support clang template<class S,class T>constexpr ostream&operator<<(ostream&os,pair<S,T>p){ return os<<'['<<p.first<<", "<<p.second<<']'; }; template<class...Ts>constexpr ostream&operator<<(ostream&os,tuple<Ts...>t){ return apply([&os](auto&&t,auto&&...args)->ostream&{return pargs(os, t, args...);}, t); }; template<class T, class...Ts> constexpr ostream& pargs(ostream&os, T&&t, Ts&&...args) { return ((os<<t)<<...<<(os<<' ', args)); } template<class...Ts> constexpr ostream& out(Ts...args) { return pargs(cout, args...)<<'\n'; } template<class...Ts> constexpr ostream& debug_f(Ts...args) { return pargs(cerr, args...)<<'\n'; } #ifdef _DEBUG template<class...Ts> constexpr ostream& debug(Ts...args) { return pargs(cerr, args...)<<'\n'; } #else #define debug(...) if(false)debug_f(__VA_ARGS__) #endif void Yn(bool f) { out(f?"Yes":"No"); } // input template<class T, class...Ts> constexpr istream& gargs(istream&is, T&&t, Ts&&...args) { return ((is>>t)>>...>>args); } template<class S,class T>auto&operator>>(istream&is,pair<S,T>&p){return is>>p.first>>p.second;} template<class...Ts>constexpr istream&operator>>(istream&is,tuple<Ts...>&t){ return apply([&is](auto&&t,auto&&...args)->istream&{return gargs(is, t, args...);}, t); }; template<typename...S>auto&in(S&...s){return gargs(cin, s...);} #define def(t,...) t __VA_ARGS__; in(__VA_ARGS__) template<typename T, typename enable_if<is_container<T>{}, nullptr_t>::type = nullptr> auto&operator>>(istream&is,T&t){for(auto&a:t)is>>a; return is;} } using namespace IO; class Random { public: typedef uint_fast32_t result_type; constexpr result_type operator()(){return operator()((ll)min(),(ll)max());} static constexpr result_type max(){return numeric_limits<result_type>::max();} static constexpr result_type min(){return 0;} constexpr Random(const bool&isDeterministic):y(isDeterministic?2463534242:chrono::system_clock::now().time_since_epoch().count()){} constexpr int operator()(int a,int b){return next()%(b-a)+a;} constexpr ll operator()(ll a,ll b){return (((ull)next())<<32|next())%(b-a)+a;} constexpr double operator()(double a,double b){return (b-a)*next()/4294967296.0+a;} private: result_type y; constexpr result_type next(){return y^=(y^=(y^=y<<13)>>17)<<5;} } Random(0); class Timer { #ifdef _DEBUG static constexpr uint64_t ClocksPerMsec = 3587000; #else static constexpr uint64_t ClocksPerMsec = 2987000; #endif const uint64_t start,limit; uint64_t getClocks() const{ unsigned int lo,hi; __asm__ volatile ("rdtsc" : "=a" (lo), "=d" (hi)); return((uint64_t)hi<<32)|lo; } public: Timer(uint64_t _limit=1970): start(getClocks()),limit(start+_limit*ClocksPerMsec) {} uint64_t get() const{return (getClocks()-start)/ClocksPerMsec;} operator bool()const{return getClocks()<limit;} }; void wait(const int&msec){Timer tm(msec); while(tm);} struct Mgr { static const int TLE = 2000; static inline Timer timer = Timer(TLE-20); Mgr() { ios_base::sync_with_stdio(0); cin.tie(0); cout<<fixed<<setprecision(11); cerr<<fixed<<setprecision(3); } ~Mgr(){ debug_f(timer.get(), "ms")<<flush; } } _manager; namespace std::tr1 { template<class T> struct hash_base { const static inline size_t hash_value = 0x9e3779b9; static inline size_t hash_rnd = Random(0, numeric_limits<size_t>::max()); template<class V> static size_t& do_hash(size_t&seed, V&v) { return seed ^= hash<V>{}(v) + hash_value + (seed<<6) + (seed>2); } virtual size_t operator()(T p) const = 0; }; template<class S, class T> struct hash<pair<S,T>> : public hash_base<pair<S,T>> { size_t operator()(pair<S,T> p) const { size_t seed = 0; this->do_hash(seed, p.first); this->do_hash(seed, p.second); return this->do_hash(seed, this->hash_value); } }; } #include <immintrin.h> namespace quick_floyd_warshall { namespace vectorize { // instruction set for vectorization enum class InstSet { DEFAULT, SSE4_2, AVX2, AVX512 }; std::string inst_set_to_str(InstSet inst_set) { if (inst_set == InstSet::DEFAULT) return "DEFAULT"; if (inst_set == InstSet::SSE4_2 ) return "SSE4_2"; if (inst_set == InstSet::AVX2 ) return "AVX2"; if (inst_set == InstSet::AVX512 ) return "AVX512"; return ""; } // wrapper of sse/avx intrinsics template<InstSet inst_set> class vector_base_t; template<> class vector_base_t<InstSet::SSE4_2> { public: static constexpr int SIZE = 16; using internal_vector_t = __m128i; internal_vector_t vec; vector_base_t () = default; vector_base_t (internal_vector_t vec_) : vec(vec_) {} vector_base_t (void *ptr) : vec(_mm_load_si128((internal_vector_t *) ptr)) {} vector_base_t &store(void *ptr) { _mm_store_si128((internal_vector_t *) ptr, vec); return *this; } }; template<InstSet inst_set> class vector_base_t; template<> class vector_base_t<InstSet::AVX2> { public: static constexpr int SIZE = 32; using internal_vector_t = __m256i; internal_vector_t vec; vector_base_t () = default; vector_base_t (internal_vector_t vec_) : vec(vec_) {} vector_base_t (void *ptr) : vec(_mm256_load_si256((internal_vector_t *) ptr)) {} vector_base_t &store(void *ptr) { _mm256_store_si256((internal_vector_t *) ptr, vec); return *this; } }; template<> class vector_base_t<InstSet::AVX512> { public: static constexpr int SIZE = 64; using internal_vector_t = __m512i; internal_vector_t vec; vector_base_t () = default; vector_base_t (internal_vector_t vec_) : vec(vec_) {} vector_base_t (void *ptr) : vec(_mm512_load_si512((internal_vector_t *) ptr)) {} vector_base_t &store(void *ptr) { _mm512_store_si512((internal_vector_t *) ptr, vec); return *this; } }; template<InstSet inst_set, typename T> class vector_t; /* vec.chmin_store(mem): mem[i] = min(mem[i], vec[i]) vec.chmax_store(mem): mem[i] = max(mem[i], vec[i]) */ // DEFAULT / * template<typename T> class vector_t<InstSet::DEFAULT, T> { static_assert(std::is_same<T, int16_t>::value || std::is_same<T, int32_t>::value || std::is_same<T, int64_t>::value, ""); public: static constexpr int SIZE = sizeof(T); T val; vector_t &store(void *ptr) { *((T *) ptr) = val; return *this; } vector_t (void *val) : val(*((T *)val)) {} vector_t (T val) : val(val) {} vector_t operator + (const vector_t &rhs) const { return { T(val + rhs.val) }; } vector_t operator - (const vector_t &rhs) const { return { T(val - rhs.val) }; } vector_t operator - () const { return { -val }; } friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { std::min(lhs.val, rhs.val) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { std::max(lhs.val, rhs.val) }; } vector_t &chmin_store(void *ptr) { if (*((T *) ptr) > val) store(ptr); return *this; } vector_t &chmax_store(void *ptr) { if (*((T *) ptr) < val) store(ptr); return *this; } }; // SSE4.2 / int16_t template<> class vector_t<InstSet::SSE4_2, int16_t> : public vector_base_t<InstSet::SSE4_2> { public: using vector_base_t<InstSet::SSE4_2>::vector_base_t; vector_t (int16_t val) : vector_base_t(_mm_set1_epi16(val)) {} vector_t operator + (const vector_t &rhs) const { return { _mm_add_epi16(vec, rhs.vec) }; } vector_t operator - (const vector_t &rhs) const { return { _mm_sub_epi16(vec, rhs.vec) }; } vector_t operator - () const { return { _mm_sub_epi16(_mm_setzero_si128(), vec) }; } friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { _mm_min_epi16(lhs.vec, rhs.vec) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { _mm_max_epi16(lhs.vec, rhs.vec) }; } vector_t &chmin_store(void *ptr) { min(*this, vector_t(ptr)).store(ptr); return *this; } vector_t &chmax_store(void *ptr) { max(*this, vector_t(ptr)).store(ptr); return *this; } }; // SSE4.2 / int32_t template<> class vector_t<InstSet::SSE4_2, int32_t> : public vector_base_t<InstSet::SSE4_2> { public: using vector_base_t<InstSet::SSE4_2>::vector_base_t; vector_t (int32_t val) : vector_base_t(_mm_set1_epi32(val)) {} vector_t operator + (const vector_t &rhs) const { return { _mm_add_epi32(vec, rhs.vec) }; } vector_t operator - (const vector_t &rhs) const { return { _mm_sub_epi32(vec, rhs.vec) }; } vector_t operator - () const { return { _mm_sub_epi32(_mm_setzero_si128(), vec) }; } friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { _mm_min_epi32(lhs.vec, rhs.vec) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { _mm_max_epi32(lhs.vec, rhs.vec) }; } vector_t &chmin_store(void *ptr) { min(*this, vector_t(ptr)).store(ptr); return *this; } vector_t &chmax_store(void *ptr) { max(*this, vector_t(ptr)).store(ptr); return *this; } }; // SSE4.2 / int64_t template<> class vector_t<InstSet::SSE4_2, int64_t> : public vector_base_t<InstSet::SSE4_2> { public: using vector_base_t<InstSet::SSE4_2>::vector_base_t; vector_t (int64_t val) : vector_base_t(_mm_set1_epi64((__m64) val)) {} vector_t operator + (const vector_t &rhs) const { return { _mm_add_epi64(vec, rhs.vec) }; } vector_t operator - (const vector_t &rhs) const { return { _mm_sub_epi64(vec, rhs.vec) }; } vector_t operator - () const { return { _mm_sub_epi64(_mm_setzero_si128(), vec) }; } // SSE4 doesn't have _mm_min_epi64 / _mm_max_epi64 friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { _mm_blendv_epi8(lhs.vec, rhs.vec, _mm_cmpgt_epi64(lhs.vec, rhs.vec)) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { _mm_blendv_epi8(lhs.vec, rhs.vec, _mm_cmpgt_epi64(rhs.vec, lhs.vec)) }; } vector_t &chmin_store(void *ptr) { min(*this, vector_t(ptr)).store(ptr); return *this; } vector_t &chmax_store(void *ptr) { max(*this, vector_t(ptr)).store(ptr); return *this; } }; // AVX2 / int16_t template<> class vector_t<InstSet::AVX2, int16_t> : public vector_base_t<InstSet::AVX2> { public: using vector_base_t<InstSet::AVX2>::vector_base_t; vector_t (int16_t val) : vector_base_t(_mm256_set1_epi16(val)) {} vector_t operator + (const vector_t &rhs) const { return { _mm256_add_epi16(vec, rhs.vec) }; } vector_t operator - (const vector_t &rhs) const { return { _mm256_sub_epi16(vec, rhs.vec) }; } vector_t operator - () const { return { _mm256_sub_epi16(_mm256_setzero_si256(), vec) }; } friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { _mm256_min_epi16(lhs.vec, rhs.vec) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { _mm256_max_epi16(lhs.vec, rhs.vec) }; } vector_t &chmin_store(void *ptr) { min(*this, vector_t(ptr)).store(ptr); return *this; } vector_t &chmax_store(void *ptr) { max(*this, vector_t(ptr)).store(ptr); return *this; } }; // AVX2 / int32_t template<> class vector_t<InstSet::AVX2, int32_t> : public vector_base_t<InstSet::AVX2> { public: using vector_base_t<InstSet::AVX2>::vector_base_t; vector_t (int32_t val) : vector_base_t(_mm256_set1_epi32(val)) {} vector_t operator + (const vector_t &rhs) const { return { _mm256_add_epi32(vec, rhs.vec) }; } vector_t operator - (const vector_t &rhs) const { return { _mm256_sub_epi32(vec, rhs.vec) }; } vector_t operator - () const { return { _mm256_sub_epi32(_mm256_setzero_si256(), vec) }; } friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { _mm256_min_epi32(lhs.vec, rhs.vec) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { _mm256_max_epi32(lhs.vec, rhs.vec) }; } vector_t &chmin_store(void *ptr) { min(*this, vector_t(ptr)).store(ptr); return *this; } vector_t &chmax_store(void *ptr) { max(*this, vector_t(ptr)).store(ptr); return *this; } }; // AVX2 / int64_t template<> class vector_t<InstSet::AVX2, int64_t> : public vector_base_t<InstSet::AVX2> { public: using vector_base_t<InstSet::AVX2>::vector_base_t; vector_t (int64_t val) : vector_base_t(_mm256_set1_epi64x(val)) {} vector_t operator + (const vector_t &rhs) const { return { _mm256_add_epi64(vec, rhs.vec) }; } vector_t operator - (const vector_t &rhs) const { return { _mm256_sub_epi64(vec, rhs.vec) }; } vector_t operator - () const { return { _mm256_sub_epi64(_mm256_setzero_si256(), vec) }; } // avx2 doesn't have _mm256_min_epi64 / _mm256_max_epi64 friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { _mm256_blendv_epi8(lhs.vec, rhs.vec, _mm256_cmpgt_epi64(lhs.vec, rhs.vec)) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { _mm256_blendv_epi8(lhs.vec, rhs.vec, _mm256_cmpgt_epi64(rhs.vec, lhs.vec)) }; } vector_t &chmin_store(void *ptr) { // slower because of separate load instruction in the 1st operand of cmpgt _mm256_maskstore_epi64((long long *) ptr, _mm256_cmpgt_epi64(vector_t(ptr).vec, vec), vec); return *this; } vector_t &chmax_store(void *ptr) { // faster because cmpgt allows memory address as the 2nd operand _mm256_maskstore_epi64((long long *) ptr, _mm256_cmpgt_epi64(vec, vector_t(ptr).vec), vec); return *this; } }; // AVX512 / int16_t template<> class vector_t<InstSet::AVX512, int16_t> : public vector_base_t<InstSet::AVX512> { public: using vector_base_t<InstSet::AVX512>::vector_base_t; vector_t (int16_t val) : vector_base_t(_mm512_set1_epi16(val)) {} vector_t operator + (const vector_t &rhs) const { return { _mm512_add_epi16(vec, rhs.vec) }; } vector_t operator - (const vector_t &rhs) const { return { _mm512_sub_epi16(vec, rhs.vec) }; } vector_t operator - () const { return { _mm512_sub_epi16(_mm512_setzero_si512(), vec) }; } friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { _mm512_min_epi16(lhs.vec, rhs.vec) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { _mm512_max_epi16(lhs.vec, rhs.vec) }; } vector_t &chmin_store(void *ptr) { _mm512_mask_storeu_epi16((internal_vector_t *) (ptr), _mm512_cmp_epi16_mask(vec, _mm512_load_si512((internal_vector_t *) ptr), _MM_CMPINT_LT), vec); return *this; } vector_t &chmax_store(void *ptr) { _mm512_mask_storeu_epi16((internal_vector_t *) (ptr), _mm512_cmp_epi16_mask(vec, _mm512_load_si512((internal_vector_t *) ptr), _MM_CMPINT_GT), vec); return *this; } }; // AVX512 / int32_t template<> class vector_t<InstSet::AVX512, int32_t> : public vector_base_t<InstSet::AVX512> { public: using vector_base_t<InstSet::AVX512>::vector_base_t; vector_t (int32_t val) : vector_base_t(_mm512_set1_epi32(val)) {} vector_t operator + (const vector_t &rhs) const { return { _mm512_add_epi32(vec, rhs.vec) }; } vector_t operator - (const vector_t &rhs) const { return { _mm512_sub_epi32(vec, rhs.vec) }; } vector_t operator - () const { return { _mm512_sub_epi32(_mm512_setzero_si512(), vec) }; } friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { _mm512_min_epi32(lhs.vec, rhs.vec) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { _mm512_max_epi32(lhs.vec, rhs.vec) }; } vector_t &chmin_store(void *ptr) { _mm512_mask_store_epi32((internal_vector_t *) (ptr), _mm512_cmp_epi32_mask(vec, _mm512_load_si512((internal_vector_t *) ptr), _MM_CMPINT_LT), vec); return *this; } vector_t &chmax_store(void *ptr) { _mm512_mask_store_epi32((internal_vector_t *) (ptr), _mm512_cmp_epi32_mask(vec, _mm512_load_si512((internal_vector_t *) ptr), _MM_CMPINT_GT), vec); return *this; } }; // AVX512 / int64_t template<> class vector_t<InstSet::AVX512, int64_t> : public vector_base_t<InstSet::AVX512> { public: using vector_base_t<InstSet::AVX512>::vector_base_t; vector_t (int64_t val) : vector_base_t(_mm512_set1_epi64(val)) {} vector_t operator + (const vector_t &rhs) const { return { _mm512_add_epi64(vec, rhs.vec) }; } vector_t operator - (const vector_t &rhs) const { return { _mm512_sub_epi64(vec, rhs.vec) }; } vector_t operator - () const { return { _mm512_sub_epi64(_mm512_setzero_si512(), vec) }; } friend vector_t min(const vector_t &lhs, const vector_t &rhs) { return { _mm512_min_epi64(lhs.vec, rhs.vec) }; } friend vector_t max(const vector_t &lhs, const vector_t &rhs) { return { _mm512_max_epi64(lhs.vec, rhs.vec) }; } vector_t &chmin_store(void *ptr) { _mm512_mask_store_epi64((internal_vector_t *) (ptr), _mm512_cmp_epi64_mask(vec, _mm512_load_si512((internal_vector_t *) ptr), _MM_CMPINT_LT), vec); return *this; } vector_t &chmax_store(void *ptr) { _mm512_mask_store_epi64((internal_vector_t *) (ptr), _mm512_cmp_epi64_mask(vec, _mm512_load_si512((internal_vector_t *) ptr), _MM_CMPINT_GT), vec); return *this; } }; template<InstSet inst_set, typename T> vector_t<inst_set, T> &operator += ( vector_t<inst_set, T> &lhs, const vector_t<inst_set, T> &rhs) { lhs = lhs + rhs; return lhs; } template<InstSet inst_set, typename T> vector_t<inst_set, T> &operator -= ( vector_t<inst_set, T> &lhs, const vector_t<inst_set, T> &rhs) { lhs = lhs - rhs; return lhs; } } // namespace vectorize } // namespace quick_floyd_warshall namespace quick_floyd_warshall { template <class T, class = void> struct is_complete : std::false_type {}; template <class T> struct is_complete<T, decltype(void(sizeof(T)))> : std::true_type {}; template<typename T> struct floyd_warshall_naive { using value_t = T; static constexpr T INF = std::numeric_limits<T>::max() / 2; static std::string get_description() { return "naive<int" + std::to_string(sizeof(value_t) * 8) + "_t>"; } static void run(int n, const T *input_matrix, T *output_matrix, bool symmetric = false) { (void) symmetric; T *buf = (T *) malloc(n * n * sizeof(T)); memcpy(buf, input_matrix, n * n * sizeof(T)); for (int k = 0; k < n; k++) for (int i = 0; i < n; i++) for (int j = 0; j < n; j++) buf[i * n + j] = std::min<T>(buf[i * n + j], buf[i * n + k] + buf[k * n + j]); memcpy(output_matrix, buf, n * n * sizeof(T)); free(buf); } }; using InstSet = vectorize::InstSet; template<InstSet inst_set, typename T, int unroll_type> struct floyd_warshall { public: static constexpr T INF = std::numeric_limits<T>::max() / 2; using value_t = T; static std::string get_description() { return "opt<" + vectorize::inst_set_to_str(inst_set) + ", " "int" + std::to_string(sizeof(value_t) * 8) + "_t, " + std::to_string(unroll_type) + ">"; } private: static constexpr int B = 64; // block size using vector_t = vectorize::vector_t<inst_set, T>; static_assert(is_complete<vector_t>::value, "Invalid inst_set or T"); static_assert(B % (vector_t::SIZE / sizeof(T)) == 0, "Invalid B value"); static_assert(unroll_type >= 0 && unroll_type <= 3, "Invalid unroll_type value"); /* MaxPlusMul?(a, b, c) : - [a, a + B * B), [b, b + B * B), [c, c + B * B) must not overlap - equivalent to: for all i, j in [0, B): a[i * B + j] = max(a[i * B + j], max{b[i * B + k] + c[k * B + j] | k in [0, B)}) */ static void MaxPlusMul0(T *a, T *b, T *c) { constexpr int n = B; for (int k = 0; k < n; k += 2) for (int i = 0; i < n; i += 2) { vector_t coef00(b[(i + 0) * n + (k + 0)]); vector_t coef01(b[(i + 0) * n + (k + 1)]); vector_t coef10(b[(i + 1) * n + (k + 0)]); vector_t coef11(b[(i + 1) * n + (k + 1)]); T *aa = a + i * n; T *bb = c + k * n; for (int j = 0; j < n; j += vector_t::SIZE / sizeof(T)) { vector_t t0(bb + j); vector_t t1(bb + n + j); max(t0 + coef00, t1 + coef01).chmax_store(aa + j); max(t0 + coef10, t1 + coef11).chmax_store(aa + n + j); } } } static void MaxPlusMul1(T *a, T *b, T *c) { constexpr int n = B; for (int k = 0; k < n; k += 4) for (int i = 0; i < n; i += 2) { vector_t coef00(b[(i + 0) * n + (k + 0)]); vector_t coef01(b[(i + 0) * n + (k + 1)]); vector_t coef02(b[(i + 0) * n + (k + 2)]); vector_t coef03(b[(i + 0) * n + (k + 3)]); vector_t coef10(b[(i + 1) * n + (k + 0)]); vector_t coef11(b[(i + 1) * n + (k + 1)]); vector_t coef12(b[(i + 1) * n + (k + 2)]); vector_t coef13(b[(i + 1) * n + (k + 3)]); T *aa = a + i * n; T *bb = c + k * n; for (int j = 0; j < n; j += vector_t::SIZE / sizeof(T)) { vector_t t0(bb + j); vector_t t1(bb + n + j); vector_t t2(bb + n + n + j); vector_t t3(bb + n + n + n + j); max(max(t0 + coef00, t1 + coef01), max(t2 + coef02, t3 + coef03)).chmax_store(aa + j); max(max(t0 + coef10, t1 + coef11), max(t2 + coef12, t3 + coef13)).chmax_store(aa + n + j); } } } static void MaxPlusMul2(T *a, T *b, T *c) { constexpr int n = B; for (int k = 0; k < n; k += 2) for (int i = 0; i < n; i += 4) { vector_t coef00(b[(i + 0) * n + (k + 0)]); vector_t coef01(b[(i + 0) * n + (k + 1)]); vector_t coef10(b[(i + 1) * n + (k + 0)]); vector_t coef11(b[(i + 1) * n + (k + 1)]); vector_t coef20(b[(i + 2) * n + (k + 0)]); vector_t coef21(b[(i + 2) * n + (k + 1)]); vector_t coef30(b[(i + 3) * n + (k + 0)]); vector_t coef31(b[(i + 3) * n + (k + 1)]); T *aa = a + i * n; T *bb = c + k * n; for (int j = 0; j < n; j += vector_t::SIZE / sizeof(T)) { vector_t t0(bb + j); vector_t t1(bb + n + j); max(t0 + coef00, t1 + coef01).chmax_store(aa + j); max(t0 + coef10, t1 + coef11).chmax_store(aa + n + j); max(t0 + coef20, t1 + coef21).chmax_store(aa + n + n + j); max(t0 + coef30, t1 + coef31).chmax_store(aa + n + n + n + j); } } } static void MaxPlusMul3(T *a, T *b, T *c) { constexpr int n = B; for (int k = 0; k < n; k += 4) for (int i = 0; i < n; i += 4) { vector_t coef00(b[(i + 0) * n + (k + 0)]); vector_t coef01(b[(i + 0) * n + (k + 1)]); vector_t coef02(b[(i + 0) * n + (k + 2)]); vector_t coef03(b[(i + 0) * n + (k + 3)]); vector_t coef10(b[(i + 1) * n + (k + 0)]); vector_t coef11(b[(i + 1) * n + (k + 1)]); vector_t coef12(b[(i + 1) * n + (k + 2)]); vector_t coef13(b[(i + 1) * n + (k + 3)]); vector_t coef20(b[(i + 2) * n + (k + 0)]); vector_t coef21(b[(i + 2) * n + (k + 1)]); vector_t coef22(b[(i + 2) * n + (k + 2)]); vector_t coef23(b[(i + 2) * n + (k + 3)]); vector_t coef30(b[(i + 3) * n + (k + 0)]); vector_t coef31(b[(i + 3) * n + (k + 1)]); vector_t coef32(b[(i + 3) * n + (k + 2)]); vector_t coef33(b[(i + 3) * n + (k + 3)]); T *aa = a + i * n; T *bb = c + k * n; for (int j = 0; j < n; j += vector_t::SIZE / sizeof(T)) { vector_t t0(bb + j); vector_t t1(bb + n + j); vector_t t2(bb + n + n + j); vector_t t3(bb + n + n + n + j); max(max(t0 + coef00, t1 + coef01), max(t2 + coef02, t3 + coef03)).chmax_store(aa + j); max(max(t0 + coef10, t1 + coef11), max(t2 + coef12, t3 + coef13)).chmax_store(aa + n + j); max(max(t0 + coef20, t1 + coef21), max(t2 + coef22, t3 + coef23)).chmax_store(aa + n + n + j); max(max(t0 + coef30, t1 + coef31), max(t2 + coef32, t3 + coef33)).chmax_store(aa + n + n + n + j); } } } static void FWI(T *a, T *b, T *c) { if (a != b && a != c && b != c) { if (unroll_type == 0) MaxPlusMul0(a, b, c); if (unroll_type == 1) MaxPlusMul1(a, b, c); if (unroll_type == 2) MaxPlusMul2(a, b, c); if (unroll_type == 3) MaxPlusMul3(a, b, c); return; } constexpr int n = B; for (int k = 0; k < n; k++) for (int i = 0; i < n; i++) { vector_t coef(b[i * n + k]); T *aa = a + i * n; T *bb = c + k * n; for (int j = 0; j < n; j += vector_t::SIZE / sizeof(T)) (vector_t(bb + j) + coef).chmax_store(aa + j); } } static void FWR(int n_blocks_power2, int n_blocks, int block_index0, int block_index1, int block_index2, T **block_start, bool symmetric) { if (block_index0 >= n_blocks || block_index1 >= n_blocks || block_index2 >= n_blocks) return; if (n_blocks_power2 == 1) { FWI( block_start[block_index0 * n_blocks + block_index2], block_start[block_index0 * n_blocks + block_index1], block_start[block_index1 * n_blocks + block_index2] ); } else { int half = n_blocks_power2 >> 1; if (!symmetric) { FWR(half, n_blocks, block_index0 , block_index1 , block_index2 , block_start, false); FWR(half, n_blocks, block_index0 , block_index1 , block_index2 + half, block_start, false); FWR(half, n_blocks, block_index0 + half, block_index1 , block_index2 , block_start, false); FWR(half, n_blocks, block_index0 + half, block_index1 , block_index2 + half, block_start, false); FWR(half, n_blocks, block_index0 + half, block_index1 + half, block_index2 + half, block_start, false); FWR(half, n_blocks, block_index0 + half, block_index1 + half, block_index2 , block_start, false); FWR(half, n_blocks, block_index0 , block_index1 + half, block_index2 + half, block_start, false); FWR(half, n_blocks, block_index0 , block_index1 + half, block_index2 , block_start, false); } else { // if symmetric, block_index0 = block_index1 = block_index2 FWR(half, n_blocks, block_index0 , block_index1 , block_index2 , block_start, true); FWR(half, n_blocks, block_index0 , block_index1 , block_index2 + half, block_start, false); transpose_copy(half, n_blocks, block_index0, block_index0 + half, block_start); FWR(half, n_blocks, block_index0 + half, block_index1 , block_index2 + half, block_start, false); FWR(half, n_blocks, block_index0 + half, block_index1 + half, block_index2 + half, block_start, true); FWR(half, n_blocks, block_index0 + half, block_index1 + half, block_index2 , block_start, false); transpose_copy(half, n_blocks, block_index0 + half, block_index0, block_start); FWR(half, n_blocks, block_index0 , block_index1 + half, block_index2 , block_start, false); } } } // copy [block_row_offset:block_row_offset+n)[block_column_offset:block_column_offset+n) to its transposed posititon // anything outside n_blocks * n_blocks blocks is ignored static void transpose_copy(int n, int n_blocks, int block_row_offset, int block_column_offset, T **block_start) { for (int i = block_row_offset; i < block_row_offset + n && i < n_blocks; i++) for (int j = block_column_offset; j < block_column_offset + n && j < n_blocks; j++) { T *src = block_start[i * n_blocks + j]; T *dst = block_start[j * n_blocks + i]; for (int y = 0; y < B; y++) for (int x = 0; x < B; x++) dst[x * B + y] = src[y * B + x]; } } /* rev == false : Copy the n * n elements in src to dst in the order like this(each src[i][j] is a BxB block): dst: src[0][0], src[0][1], src[1][0], src[1][1], src[0][2], src[0][3], src[1][2], src[1][3], src[2][0], src[2][1], src[3][0], src[3][1], src[2][2], src[2][3], src[3][2], src[3][3], src[0][4], src[0][5], src[1][4], src[1][5], ... and returns the pointer to the next element of the last element written in dst. Elements outside the n_blocks * n_blocks blocks will be ignored Elements in dst corresponding to elements outside the src_n * src_n but in n_blocks * n_blocks will be filled block_start[i * n_blocks + j] will point to the starting element in dst corresponding to (i, j) block rev == true : same as rev == false except that the copy direction is reversed and elements in dst where INF would be contained if !rev are untouched This function negates all the element and FWR handles everything with max instead of min. This is because chmax(mem, reg) can be implemented faster than chmin(mem, reg) with avx2+int64_t The cost of negation should be negligible for other combinations, where this trick is irrelevant */ static T *reorder(int src_n, int n_blocks_power2, T *dst_head, T *src, T **block_start, int block_row, int block_column, bool rev) { int n_blocks = (src_n + B - 1) / B; if (block_row >= n_blocks || block_column >= n_blocks) return dst_head; if (n_blocks_power2 == 1) { T *src_base = src + (block_row * B * src_n + block_column * B); for (int i = 0; i < B; i++) { if (block_row * B + i < src_n) { int length = std::min(B, src_n - block_column * B); if (!rev) { for (int j = 0; j < length; j++) dst_head[i * B + j] = -src_base[i * src_n + j]; for (int j = length; j < B; j++) dst_head[i * B + j] = -INF; } else { for (int j = 0; j < length; j++) src_base[i * src_n + j] = -dst_head[i * B + j]; } } else { if (!rev) std::fill(dst_head + i * B, dst_head + (i + 1) * B, -INF); } } block_start[block_row * n_blocks + block_column] = dst_head; return dst_head + B * B; } else { int n_blocks_p2_half = n_blocks_power2 >> 1; // split into 2x2 recursively for (int i = 0; i < 2; i++) for (int j = 0; j < 2; j++) dst_head = reorder(src_n, n_blocks_p2_half, dst_head, src, block_start, block_row + i * n_blocks_p2_half, block_column + j * n_blocks_p2_half, rev); return dst_head; } } public: static void run(int src_n, const T *input_matrix, T *output_matrix, bool symmetric = false) { assert(0 <= src_n && src_n < 65536); if (src_n == 0) return; int n_blocks = (src_n + B - 1) / B; // number of BxB blocks in a row int n_blocks_power2 = 1; // smallest power of 2 >= src_n / B while (n_blocks_power2 * B < src_n) n_blocks_power2 *= 2; // allocate and align the needed buffers const size_t reordered_needed_size = (B * n_blocks) * (B * n_blocks) * sizeof(T); size_t reordered_buffer_size = reordered_needed_size + 64; void *reordered_org = malloc(reordered_buffer_size); assert(reordered_org); void *reordered = reordered_org; assert(std::align(64, reordered_needed_size, reordered, reordered_buffer_size)); // block_start[i][j] : pointer to the starting element of the (i, j) block in t T **block_start = (T **) malloc(n_blocks * n_blocks * sizeof(T *)); std::fill(block_start, block_start + n_blocks * n_blocks, nullptr); reorder(src_n, n_blocks_power2, (T *) reordered, const_cast<T *>(input_matrix), block_start, 0, 0, false); FWR(n_blocks_power2, n_blocks, 0, 0, 0, block_start, symmetric); reorder(src_n, n_blocks_power2, (T *) reordered, output_matrix, block_start, 0, 0, true); free(reordered_org); free(block_start); } }; } // namespace quick_floyd_warshall template<class T=int64_t>struct WarshallFloyd{ using qwf = quick_floyd_warshall::floyd_warshall<quick_floyd_warshall::InstSet::AVX2, T, 3>; const T INF=qwf::INF; int n; bool symmetric=true; vector<T> edge; WarshallFloyd(int n): n(n){ edge.resize(n*n, qwf::INF); } void set_edge(int u, int v, T c, bool directed = false){ edge[u*n+v] = c; if(directed) symmetric = false; else edge[v*n+u] = c; } vector<vector<T>> calc(){ vector<vector<T>> ans(n, vector<T>(n)); vector<T> tmp(n*n); qwf::run(n, edge.data(), tmp.data(), symmetric); rep(i,n){ copy(begin(tmp)+i*n, begin(tmp)+(i+1)*n, begin(ans[i])); } return ans; } }; int main() { /**/ def(ll,n,m,l); WarshallFloyd wf(n); rep(m){ def(ll,a,b,c); a--;b--; if(c>l)continue; wf.set_edge(a,b,c); } auto dist = wf.calc(); rep(i,n)rep(j,n){ if(dist[i][j]>l)wf.set_edge(i,j,wf.INF); else wf.set_edge(i,j,1); } auto ans = wf.calc(); def(int,q); rep(q){ def(ll,s,t); s--;t--; if(ans[s][t]==wf.INF)out(-1); else out(ans[s][t]-1); } }
[ "tsukasawa_agu@yahoo.co.jp" ]
tsukasawa_agu@yahoo.co.jp
51f1b5f9ee62bd8d39af323aa62707d6edffcbf6
6d984ad95feb99663ff847e839f41ac4c5411a4c
/数据结构(王晓东版本)/一天三题/9-8-2.cpp
e100e7495c7f36735b00aa29acdeb19ef78e547f
[]
no_license
ZouZeBin/DS.github.io
30e481525f05b36d2c42ba3d106097165468ade7
564bcbda841005fdba8aaad5d6640a3552766a43
refs/heads/master
2020-06-24T23:10:05.409760
2019-10-22T11:05:19
2019-10-22T11:05:19
199,117,989
0
0
null
null
null
null
GB18030
C++
false
false
1,221
cpp
/*2算法实验题 1.2 连续整数和问题 问题描述: 大部分的正整数可以表示为两个以上连续整数之和。 实验任务: 连续整数和问题要求计算给定的正整数可以表述为多少个两个以上的连续整数之和。 数据输入: 由文件 input.txt 给出输入数据。 第一行有一个正整数。 结果输出: 将计算出的相应的连续整数分解数输出到文件 output.txt。 实验源代码: 1、 连续整数和.cpp 连续整数和.cpp : Defines the entry point for the console application.*/ // #include "stdafx.h" // #include "输入输出.h" #include <stdio.h> int a[SIZE]; int main() { int length=load(a); int i,count; for(i=0;i<length;i++) { count=0; printf("\n\n%d=\n", a[i]); for(int n1=1; n1<=a[i]/2; n1++)// n1 为等差数列第一项 { for(int n2=n1+1; n2<a[i]; n2++)// n2 为等差数列最后一项 { if((n1+n2)*(n2-n1+1) == a[i]*2)// 用等差数列公式算和 { //如果相等就输出结果 for(int t=n1; t<n2; t++) printf("%d+", t); printf("%d\n", t); count++; } } } printf("共有%d 种分解方式\n", count); save(count); } }
[ "1240125675@qq.com" ]
1240125675@qq.com
7049bfa426a39c68ed3365f1059fc17ed41fcc80
3e8571a5adbec9f6ff9fcec693f0dbbcc7df06ff
/NWNXLib/API/FunctionsMac.hpp
bbab8c92065d003df901c12ad79605e71656c1fd
[ "MIT" ]
permissive
Philos-Harak/unified
12b4fd4651a5a5f31b4606c1342f0cdf11421d32
9be98f10067b9352756f6000860e9dd115d19ad0
refs/heads/master
2021-03-30T20:49:29.518589
2018-03-11T11:59:35
2018-03-11T12:00:25
null
0
0
null
null
null
null
UTF-8
C++
false
false
359,734
hpp
#pragma once #include <cstdint> namespace NWNXLib { namespace API { namespace Functions { NWNX_EXPECT_VERSION(8162); constexpr uintptr_t C2DA__C2DACtor__0 = 0x0008A8A0; constexpr uintptr_t C2DA__C2DACtor__2 = 0x0008A530; constexpr uintptr_t C2DA__C2DADtor__0 = 0x0008AA10; constexpr uintptr_t C2DA__GetCExoStringEntry__0 = 0x0008AF00; constexpr uintptr_t C2DA__GetCExoStringEntry__1 = 0x0008B100; constexpr uintptr_t C2DA__GetCExoStringEntry__2 = 0x0008AE50; constexpr uintptr_t C2DA__GetCExoStringEntry__3 = 0x0008B250; constexpr uintptr_t C2DA__GetColumnIndex = 0x0008AD80; constexpr uintptr_t C2DA__GetFLOATEntry__0 = 0x0008B960; constexpr uintptr_t C2DA__GetFLOATEntry__1 = 0x0008B820; constexpr uintptr_t C2DA__GetFLOATEntry__2 = 0x0008B620; constexpr uintptr_t C2DA__GetFLOATEntry__3 = 0x0008B6B0; constexpr uintptr_t C2DA__GetINTEntry__0 = 0x0008BF10; constexpr uintptr_t C2DA__GetINTEntry__1 = 0x0008BDF0; constexpr uintptr_t C2DA__GetINTEntry__2 = 0x0008C110; constexpr uintptr_t C2DA__GetINTEntry__3 = 0x0008C2F0; constexpr uintptr_t C2DA__GetNextLineLength = 0x0008CB30; constexpr uintptr_t C2DA__GetNextToken = 0x0008CB60; constexpr uintptr_t C2DA__GetRowIndex = 0x0008B0A0; constexpr uintptr_t C2DA__Load2DArray = 0x0008CD60; constexpr uintptr_t C2DA__SetBlankEntry__0 = 0x0008C810; constexpr uintptr_t C2DA__SetBlankEntry__1 = 0x0008C860; constexpr uintptr_t C2DA__SetBlankEntry__2 = 0x0008CAA0; constexpr uintptr_t C2DA__SetBlankEntry__3 = 0x0008C9A0; constexpr uintptr_t C2DA__SetCExoStringEntry__0 = 0x0008B380; constexpr uintptr_t C2DA__SetCExoStringEntry__1 = 0x0008B4B0; constexpr uintptr_t C2DA__SetCExoStringEntry__2 = 0x0008B330; constexpr uintptr_t C2DA__SetCExoStringEntry__3 = 0x0008B5A0; constexpr uintptr_t C2DA__SetFLOATEntry__0 = 0x0008BD10; constexpr uintptr_t C2DA__SetFLOATEntry__1 = 0x0008BBF0; constexpr uintptr_t C2DA__SetFLOATEntry__2 = 0x0008BA00; constexpr uintptr_t C2DA__SetFLOATEntry__3 = 0x0008BA90; constexpr uintptr_t C2DA__SetINTEntry__0 = 0x0008C4D0; constexpr uintptr_t C2DA__SetINTEntry__1 = 0x0008C440; constexpr uintptr_t C2DA__SetINTEntry__2 = 0x0008C630; constexpr uintptr_t C2DA__SetINTEntry__3 = 0x0008C740; constexpr uintptr_t C2DA__SkipNewLines = 0x0008E9D0; constexpr uintptr_t C2DA__Unload2DArray = 0x0008AB30; constexpr uintptr_t CAppManager__CAppManagerCtor__0 = 0x00006280; constexpr uintptr_t CAppManager__CAppManagerDtor__0 = 0x000063E0; constexpr uintptr_t CAppManager__ConnectToServer = 0x000070B0; constexpr uintptr_t CAppManager__CreateServer = 0x00006580; constexpr uintptr_t CAppManager__DestroyScriptDebuggerPopup = 0x00007090; constexpr uintptr_t CAppManager__DestroyServer = 0x000064E0; constexpr uintptr_t CAppManager__DisplayScriptDebuggerPopup = 0x00007080; constexpr uintptr_t CAppManager__DoSaveGameScreenShot = 0x00006560; constexpr uintptr_t CAppManager__GetDungeonMasterEXERunning = 0x00006620; constexpr uintptr_t CAppManager__GetObjectTableManager = 0x00006540; constexpr uintptr_t CAppManager__GetProgressFromCodeword = 0x00006CC0; constexpr uintptr_t CAppManager__ReadProgressFromINI = 0x00006630; constexpr uintptr_t CAppManager__SetDungeonMasterEXERunning = 0x00006610; constexpr uintptr_t CAppManager__ShowServerMem = 0x00006570; constexpr uintptr_t CAppManager__SpawnExternalScriptDebugger = 0x000070A0; constexpr uintptr_t CCallbackImplTemplated12__GetCallbackSizeBytes = 0x000E5440; constexpr uintptr_t CCallbackImplTemplated12__Run = 0x000E5430; constexpr uintptr_t CCallbackImplTemplated16__GetCallbackSizeBytes = 0x000E53A0; constexpr uintptr_t CCallbackImplTemplated16__Run = 0x000E5390; constexpr uintptr_t CCallbackImplTemplated20__GetCallbackSizeBytes = 0x000E5420; constexpr uintptr_t CCallbackImplTemplated20__Run = 0x000E5410; constexpr uintptr_t CCallbackImplTemplated264__GetCallbackSizeBytes = 0x000E5380; constexpr uintptr_t CCallbackImplTemplated264__Run = 0x000E5370; constexpr uintptr_t CCallbackImplTemplated28__GetCallbackSizeBytes = 0x000E53C0; constexpr uintptr_t CCallbackImplTemplated28__Run = 0x000E53B0; constexpr uintptr_t CCallbackImplTemplated4__GetCallbackSizeBytes = 0x000E5400; constexpr uintptr_t CCallbackImplTemplated4__Run = 0x000E53F0; constexpr uintptr_t CCallbackImplTemplated8__GetCallbackSizeBytes = 0x000E53E0; constexpr uintptr_t CCallbackImplTemplated8__Run = 0x000E53D0; constexpr uintptr_t CCodeBase__CCodeBaseCtor__0 = 0x000232A0; constexpr uintptr_t CCodeBase__CCodeBaseDtor__0 = 0x00023320; constexpr uintptr_t CCodeBase__AddBinaryData = 0x00023600; constexpr uintptr_t CCodeBase__AddFloat = 0x000234F0; constexpr uintptr_t CCodeBase__AddInt = 0x00023540; constexpr uintptr_t CCodeBase__AddLocation = 0x000235A0; constexpr uintptr_t CCodeBase__AddString = 0x000235D0; constexpr uintptr_t CCodeBase__AddVector = 0x00023570; constexpr uintptr_t CCodeBase__CloseAllFiles = 0x00023670; constexpr uintptr_t CCodeBase__DeleteVar = 0x00023640; constexpr uintptr_t CCodeBase__DestroyDatabase = 0x00023690; constexpr uintptr_t CCodeBase__GetBinaryData = 0x000234B0; constexpr uintptr_t CCodeBase__GetFloat = 0x000233C0; constexpr uintptr_t CCodeBase__GetInt = 0x000233F0; constexpr uintptr_t CCodeBase__GetLocation = 0x00023450; constexpr uintptr_t CCodeBase__GetString = 0x00023480; constexpr uintptr_t CCodeBase__GetVector = 0x00023420; constexpr uintptr_t CCodeBaseInternal__CCodeBaseInternalCtor__0 = 0x000236C0; constexpr uintptr_t CCodeBaseInternal__CCodeBaseInternalDtor__0 = 0x00023800; constexpr uintptr_t CCodeBaseInternal__AddBinaryData = 0x00024BC0; constexpr uintptr_t CCodeBaseInternal__AddFloat = 0x00024430; constexpr uintptr_t CCodeBaseInternal__AddInt = 0x00024770; constexpr uintptr_t CCodeBaseInternal__AddLocation = 0x00024950; constexpr uintptr_t CCodeBaseInternal__AddString = 0x00024AD0; constexpr uintptr_t CCodeBaseInternal__AddVarEnd = 0x00024720; constexpr uintptr_t CCodeBaseInternal__AddVarStart = 0x00024510; constexpr uintptr_t CCodeBaseInternal__AddVector = 0x00024840; constexpr uintptr_t CCodeBaseInternal__CloseAllFiles = 0x000238E0; constexpr uintptr_t CCodeBaseInternal__CloseFile = 0x000239F0; constexpr uintptr_t CCodeBaseInternal__DeleteVar = 0x00024CA0; constexpr uintptr_t CCodeBaseInternal__DestroyDatabase = 0x00024DB0; constexpr uintptr_t CCodeBaseInternal__GetBinaryData = 0x00024340; constexpr uintptr_t CCodeBaseInternal__GetFile = 0x00023BC0; constexpr uintptr_t CCodeBaseInternal__GetFloat = 0x00023AE0; constexpr uintptr_t CCodeBaseInternal__GetInt = 0x00023F70; constexpr uintptr_t CCodeBaseInternal__GetLocation = 0x00024130; constexpr uintptr_t CCodeBaseInternal__GetString = 0x00024250; constexpr uintptr_t CCodeBaseInternal__GetVar = 0x00023CD0; constexpr uintptr_t CCodeBaseInternal__GetVector = 0x00024030; constexpr uintptr_t CCodeBaseInternal__OpenFile = 0x00024F60; constexpr uintptr_t CCombatInformation__CCombatInformationCtor__0 = 0x000FDB70; constexpr uintptr_t CCombatInformation__CCombatInformationDtor__0 = 0x000FDCA0; constexpr uintptr_t CCombatInformation__LoadData = 0x000FE710; constexpr uintptr_t CCombatInformation__OperatorNotEqualTo = 0x000FF6F0; constexpr uintptr_t CCombatInformation__OperatorAssignment = 0x000FF8F0; constexpr uintptr_t CCombatInformation__OperatorEqualTo = 0x000FF570; constexpr uintptr_t CCombatInformation__SaveData = 0x000FDF00; constexpr uintptr_t CCombatInformationNode__CCombatInformationNodeCtor__0 = 0x000FDA50; constexpr uintptr_t CCombatInformationNode__OperatorNotEqualTo = 0x000FDAF0; constexpr uintptr_t CCombatInformationNode__OperatorAssignment = 0x000FDB30; constexpr uintptr_t CCombatInformationNode__OperatorEqualTo = 0x000FDAB0; constexpr uintptr_t CERFFile__CERFFileCtor__0 = 0x0007F530; constexpr uintptr_t CERFFile__CERFFileDtor__0 = 0x0007F660; constexpr uintptr_t CERFFile__AddResource__0 = 0x0007F900; constexpr uintptr_t CERFFile__AddResource__1 = 0x0007F910; constexpr uintptr_t CERFFile__AddString = 0x0007FBC0; constexpr uintptr_t CERFFile__Create = 0x0007FD90; constexpr uintptr_t CERFFile__Finish = 0x00080830; constexpr uintptr_t CERFFile__Read = 0x0007FD80; constexpr uintptr_t CERFFile__ReadModuleDescription = 0x00080F30; constexpr uintptr_t CERFFile__RecalculateOffsets = 0x00080E50; constexpr uintptr_t CERFFile__RemoveResource__0 = 0x0007FBB0; constexpr uintptr_t CERFFile__RemoveResource__1 = 0x0007FA50; constexpr uintptr_t CERFFile__Reset = 0x0007F750; constexpr uintptr_t CERFFile__SetNumEntries = 0x00080110; constexpr uintptr_t CERFFile__SetVersion = 0x0007F8E0; constexpr uintptr_t CERFFile__Write = 0x00080890; constexpr uintptr_t CERFFile__WriteHeader = 0x0007FE60; constexpr uintptr_t CERFFile__WriteResource = 0x00080320; constexpr uintptr_t CERFFile__WriteStringTable = 0x0007FEF0; constexpr uintptr_t CERFKey__CERFKeyCtor__0 = 0x0007F9F0; constexpr uintptr_t CERFKey__CERFKeyDtor__0 = 0x0007F870; constexpr uintptr_t CERFKey__Read = 0x00081910; constexpr uintptr_t CERFKey__Reset = 0x000818D0; constexpr uintptr_t CERFKey__SetName = 0x000806F0; constexpr uintptr_t CERFKey__Write = 0x000807D0; constexpr uintptr_t CERFRes__CERFResCtor__0 = 0x0007FA30; constexpr uintptr_t CERFRes__CERFResDtor__0 = 0x0007F8A0; constexpr uintptr_t CERFRes__Read = 0x000819C0; constexpr uintptr_t CERFRes__Reset = 0x00081980; constexpr uintptr_t CERFRes__Write = 0x00080750; constexpr uintptr_t CERFString__CERFStringCtor__0 = 0x0007FCC0; constexpr uintptr_t CERFString__CERFStringDtor__0 = 0x0007F830; constexpr uintptr_t CERFString__GetText = 0x0007FCE0; constexpr uintptr_t CERFString__Read = 0x00081A70; constexpr uintptr_t CERFString__Reset = 0x00081A30; constexpr uintptr_t CERFString__SetText = 0x0007FD10; constexpr uintptr_t CERFString__Write = 0x000800C0; constexpr uintptr_t CExoAliasList__CExoAliasListCtor__0 = 0x00062AA0; constexpr uintptr_t CExoAliasList__CExoAliasListDtor__0 = 0x00062B20; constexpr uintptr_t CExoAliasList__Add = 0x00062BC0; constexpr uintptr_t CExoAliasList__Clear = 0x00062C80; constexpr uintptr_t CExoAliasList__Delete = 0x00062CA0; constexpr uintptr_t CExoAliasList__GetAliasPath = 0x00062D20; constexpr uintptr_t CExoAliasList__ResolveFileName = 0x00062D40; constexpr uintptr_t CExoAliasListInternal__CExoAliasListInternalCtor__0 = 0x00063600; constexpr uintptr_t CExoAliasListInternal__CExoAliasListInternalDtor__0 = 0x000636C0; constexpr uintptr_t CExoAliasListInternal__Add = 0x00063760; constexpr uintptr_t CExoAliasListInternal__Clear = 0x00063960; constexpr uintptr_t CExoAliasListInternal__Delete = 0x000639E0; constexpr uintptr_t CExoAliasListInternal__GetAliasPath = 0x00063B20; constexpr uintptr_t CExoAliasListInternal__ResolveFileName = 0x00063BA0; constexpr uintptr_t CExoArrayListTemplatedCExoString__AddUnique = 0x00011CA0; constexpr uintptr_t CExoArrayListTemplatedCExoString__Allocate = 0x00011500; constexpr uintptr_t CExoArrayListTemplatedCExoString__Insert = 0x0005DBE0; constexpr uintptr_t CExoArrayListTemplatedCExoString__OperatorAssignment = 0x0005C600; constexpr uintptr_t CExoArrayListTemplatedCExoString__SetSize = 0x000F7A60; constexpr uintptr_t CExoArrayListTemplatedCFileInfo__Allocate = 0x000611F0; constexpr uintptr_t CExoArrayListTemplatedCFileInfo__Insert = 0x0005E250; constexpr uintptr_t CExoArrayListTemplatedCNetLayerPlayerCDKeyInfo__CExoArrayListTemplatedCNetLayerPlayerCDKeyInfoDtor = 0x000AB2E0; constexpr uintptr_t CExoArrayListTemplatedCNetLayerPlayerCDKeyInfo__Allocate = 0x000AB080; constexpr uintptr_t CExoArrayListTemplatedCNetLayerPlayerCDKeyInfo__SetSize = 0x0009BB40; constexpr uintptr_t CExoArrayListTemplatedCNWItemProperty__Allocate = 0x002CA910; constexpr uintptr_t CExoArrayListTemplatedCNWItemProperty__OperatorAssignment = 0x002C97C0; constexpr uintptr_t CExoArrayListTemplatedCNWSPersonalReputation__Allocate = 0x001A7C10; constexpr uintptr_t CExoArrayListTemplatedCNWSPlayerJournalQuestUpdates__Allocate = 0x002D3830; constexpr uintptr_t CExoArrayListTemplatedCNWSScriptVar__Allocate = 0x003653F0; constexpr uintptr_t CExoArrayListTemplatedCResRef__Allocate = 0x003D5B50; constexpr uintptr_t CExoArrayListTemplatedCWorldJournalEntry__CExoArrayListTemplatedCWorldJournalEntryDtor = 0x002E6E60; constexpr uintptr_t CExoArrayListTemplatedCWorldJournalEntry__Allocate = 0x002E6BF0; constexpr uintptr_t CExoArrayListTemplatedCWorldJournalEntry__SetSize = 0x002E61C0; constexpr uintptr_t CExoArrayListTemplatedfloat__CExoArrayListTemplatedfloatDtor = 0x00296390; constexpr uintptr_t CExoArrayListTemplatedSJournalEntry__Add = 0x002D27E0; constexpr uintptr_t CExoArrayListTemplatedSJournalEntry__Allocate = 0x002D3550; constexpr uintptr_t CExoArrayListTemplatedSJournalEntry__DelIndex = 0x002D33E0; constexpr uintptr_t CExoArrayListTemplatedunsignedlong__CExoArrayListTemplatedunsignedlongDtor = 0x0005B690; constexpr uintptr_t CExoBase__CExoBaseCtor__0 = 0x0005BF00; constexpr uintptr_t CExoBase__CExoBaseDtor__0 = 0x0005C070; constexpr uintptr_t CExoBase__CheckForCD = 0x0005C850; constexpr uintptr_t CExoBase__GetAugmentedDirectoryList = 0x0005C6F0; constexpr uintptr_t CExoBase__GetDirectoryAndWorkshopList = 0x0005C2B0; constexpr uintptr_t CExoBase__GetDirectoryList = 0x0005C190; constexpr uintptr_t CExoBase__GetResourceExtension = 0x0005C790; constexpr uintptr_t CExoBase__GetResTypeFromExtension = 0x0005C7C0; constexpr uintptr_t CExoBase__LoadAliases = 0x0005C7F0; constexpr uintptr_t CExoBase__ShutDown = 0x0005C810; constexpr uintptr_t CExoBase__SpawnExternalApplication = 0x0005C830; constexpr uintptr_t CExoBaseInternal__CExoBaseInternalCtor__0 = 0x0005C870; constexpr uintptr_t CExoBaseInternal__CExoBaseInternalDtor__0 = 0x0005D470; constexpr uintptr_t CExoBaseInternal__AddAlias = 0x0005D530; constexpr uintptr_t CExoBaseInternal__CheckForCD = 0x000611E0; constexpr uintptr_t CExoBaseInternal__CreateResourceExtensionTable = 0x0005C880; constexpr uintptr_t CExoBaseInternal__GetAugmentedDirectoryList = 0x0005DCE0; constexpr uintptr_t CExoBaseInternal__GetDirectoryList = 0x0005D680; constexpr uintptr_t CExoBaseInternal__GetResourceExtension = 0x0005E3D0; constexpr uintptr_t CExoBaseInternal__GetResTypeFromExtension = 0x0005E410; constexpr uintptr_t CExoBaseInternal__LoadAliases = 0x0005E480; constexpr uintptr_t CExoBaseInternal__ShutDown = 0x00061100; constexpr uintptr_t CExoBaseInternal__SpawnExternalApplication = 0x00061110; constexpr uintptr_t CExoCriticalSection__CExoCriticalSectionCtor__0 = 0x000613A0; constexpr uintptr_t CExoCriticalSection__CExoCriticalSectionDtor__0 = 0x00061420; constexpr uintptr_t CExoCriticalSection__EnterCriticalSection = 0x000614A0; constexpr uintptr_t CExoCriticalSection__LeaveCriticalSection = 0x000614C0; constexpr uintptr_t CExoCriticalSectionInternal__CExoCriticalSectionInternalCtor__0 = 0x000614E0; constexpr uintptr_t CExoCriticalSectionInternal__CExoCriticalSectionInternalDtor__0 = 0x000615A0; constexpr uintptr_t CExoCriticalSectionInternal__EnterCriticalSection = 0x000615C0; constexpr uintptr_t CExoCriticalSectionInternal__LeaveCriticalSection = 0x000615D0; constexpr uintptr_t CExoDebug__CExoDebugCtor__0 = 0x00061600; constexpr uintptr_t CExoDebug__CExoDebugDtor__0 = 0x000616E0; constexpr uintptr_t CExoDebug__Assert = 0x00061790; constexpr uintptr_t CExoDebug__CloseLogFiles = 0x00061760; constexpr uintptr_t CExoDebug__FlushErrorFile = 0x000617D0; constexpr uintptr_t CExoDebug__FlushLogFile = 0x000617E0; constexpr uintptr_t CExoDebug__GetCurrentAllocatedMemory = 0x00061800; constexpr uintptr_t CExoDebug__GetCurrentMemoryAllocations = 0x00061830; constexpr uintptr_t CExoDebug__GetCurrentTimestamp = 0x00061920; constexpr uintptr_t CExoDebug__GetMaxAllocatedMemory = 0x00061810; constexpr uintptr_t CExoDebug__GetTotalMemoryAllocations = 0x00061820; constexpr uintptr_t CExoDebug__OpenLogFiles = 0x00061840; constexpr uintptr_t CExoDebug__SetRotateLogFile = 0x00061950; constexpr uintptr_t CExoDebug__Warning = 0x000618D0; constexpr uintptr_t CExoDebug__WriteToErrorFile = 0x000618E0; constexpr uintptr_t CExoDebug__WriteToLogFile = 0x000618F0; constexpr uintptr_t CExoDebugInternal__CExoDebugInternalCtor__0 = 0x00061970; constexpr uintptr_t CExoDebugInternal__CExoDebugInternalDtor__0 = 0x00061A10; constexpr uintptr_t CExoDebugInternal__Assert = 0x00061B20; constexpr uintptr_t CExoDebugInternal__CloseLogFiles = 0x00061A60; constexpr uintptr_t CExoDebugInternal__CreateDirectory = 0x000621C0; constexpr uintptr_t CExoDebugInternal__FlushErrorFile = 0x00061C10; constexpr uintptr_t CExoDebugInternal__FlushLogFile = 0x00061C30; constexpr uintptr_t CExoDebugInternal__GetCurrentTimestamp = 0x00062790; constexpr uintptr_t CExoDebugInternal__OpenLogFiles = 0x00061C50; constexpr uintptr_t CExoDebugInternal__Warning = 0x000622B0; constexpr uintptr_t CExoDebugInternal__WriteToErrorFile = 0x000623A0; constexpr uintptr_t CExoDebugInternal__WriteToLogFile = 0x00062590; constexpr uintptr_t CExoEncapsulatedFile__CExoEncapsulatedFileCtor__0 = 0x00072480; constexpr uintptr_t CExoEncapsulatedFile__CExoEncapsulatedFileDtor__0 = 0x00075800; constexpr uintptr_t CExoEncapsulatedFile__AddAsyncRefCount = 0x00075940; constexpr uintptr_t CExoEncapsulatedFile__AddRefCount = 0x00075910; constexpr uintptr_t CExoEncapsulatedFile__CloseAsyncFile = 0x000759D0; constexpr uintptr_t CExoEncapsulatedFile__CloseFile = 0x00075970; constexpr uintptr_t CExoEncapsulatedFile__DeleteAsyncRefCount = 0x00075AC0; constexpr uintptr_t CExoEncapsulatedFile__DeleteRefCount = 0x00075A90; constexpr uintptr_t CExoEncapsulatedFile__GetResourceSize = 0x00075AF0; constexpr uintptr_t CExoEncapsulatedFile__Initialize = 0x00075B10; constexpr uintptr_t CExoEncapsulatedFile__LoadHeader = 0x000761E0; constexpr uintptr_t CExoEncapsulatedFile__OpenAsyncFile = 0x00075EB0; constexpr uintptr_t CExoEncapsulatedFile__OpenFile__0 = 0x00075B70; constexpr uintptr_t CExoEncapsulatedFile__OpenFile__1 = 0x00075EA0; constexpr uintptr_t CExoEncapsulatedFile__ReadResource = 0x00076850; constexpr uintptr_t CExoEncapsulatedFile__ReadResourceAsync = 0x000768C0; constexpr uintptr_t CExoEncapsulatedFile__UnloadHeader = 0x00075A30; constexpr uintptr_t CExoEncrypt__EncryptString = 0x00062800; constexpr uintptr_t CExoEncrypt__GenerateChallenge = 0x00062A60; constexpr uintptr_t CExoFile__CExoFileCtor__0 = 0x00062D80; constexpr uintptr_t CExoFile__CExoFileDtor__0 = 0x00062E40; constexpr uintptr_t CExoFile__Eof = 0x00062EE0; constexpr uintptr_t CExoFile__FileOpened = 0x00062F10; constexpr uintptr_t CExoFile__Flush = 0x00062F30; constexpr uintptr_t CExoFile__GetOffset = 0x00062F60; constexpr uintptr_t CExoFile__GetSize = 0x00062F80; constexpr uintptr_t CExoFile__Read__0 = 0x00062FD0; constexpr uintptr_t CExoFile__Read__1 = 0x00062FA0; constexpr uintptr_t CExoFile__ReadAsync = 0x00062FF0; constexpr uintptr_t CExoFile__ReadAsyncBytesRead = 0x00063030; constexpr uintptr_t CExoFile__ReadAsyncComplete = 0x00063010; constexpr uintptr_t CExoFile__ReadStringLineFromBuffer = 0x000631B0; constexpr uintptr_t CExoFile__Seek = 0x000630F0; constexpr uintptr_t CExoFile__SeekBeginning = 0x00063130; constexpr uintptr_t CExoFile__SeekEnd = 0x00063170; constexpr uintptr_t CExoFile__Write__0 = 0x000630A0; constexpr uintptr_t CExoFile__Write__1 = 0x00063080; constexpr uintptr_t CExoFile__Write__2 = 0x00063050; constexpr uintptr_t CExoFileInternal__CExoFileInternalCtor__0 = 0x00063E00; constexpr uintptr_t CExoFileInternal__CExoFileInternalDtor__0 = 0x00063F60; constexpr uintptr_t CExoFileInternal__GetOffset = 0x00063FC0; constexpr uintptr_t CExoFileInternal__GetSize = 0x00063FE0; constexpr uintptr_t CExoFileInternal__Read = 0x00064000; constexpr uintptr_t CExoFileInternal__ReadAsync = 0x00064060; constexpr uintptr_t CExoFileInternal__ReadAsyncBytesRead = 0x00064110; constexpr uintptr_t CExoFileInternal__ReadAsyncComplete = 0x000640F0; constexpr uintptr_t CExoFileInternal__Write = 0x00064130; constexpr uintptr_t CExoFileThread__CExoFileThreadCtor__0 = 0x00063250; constexpr uintptr_t CExoFileThread__CExoFileThreadDtor__0 = 0x00063260; constexpr uintptr_t CExoFileThread__AsyncRead = 0x00063380; constexpr uintptr_t CExoFileThread__Read = 0x00063590; constexpr uintptr_t CExoIni__CExoIniCtor__0 = 0x000641B0; constexpr uintptr_t CExoIni__CExoIniDtor__0 = 0x00064260; constexpr uintptr_t CExoIni__ReadIniEntry = 0x000642E0; constexpr uintptr_t CExoIni__WriteIniEntry = 0x00064310; constexpr uintptr_t CExoIniInternal__CExoIniInternalCtor__0 = 0x00064340; constexpr uintptr_t CExoIniInternal__CExoIniInternalDtor__0 = 0x000647A0; constexpr uintptr_t CExoIniInternal__ReadIniEntry = 0x00064900; constexpr uintptr_t CExoIniInternal__WriteIniEntry = 0x000649D0; constexpr uintptr_t CExoKeyTable__CExoKeyTableCtor__0 = 0x00071360; constexpr uintptr_t CExoKeyTable__CExoKeyTableDtor__0 = 0x000715A0; constexpr uintptr_t CExoKeyTable__AddDirectoryContents = 0x000716D0; constexpr uintptr_t CExoKeyTable__AddEncapsulatedContents = 0x00071D70; constexpr uintptr_t CExoKeyTable__AddKey = 0x00071AC0; constexpr uintptr_t CExoKeyTable__AddKeyTableContents = 0x000728B0; constexpr uintptr_t CExoKeyTable__AddResourceImageContents = 0x00072520; constexpr uintptr_t CExoKeyTable__AllocateTable = 0x000719B0; constexpr uintptr_t CExoKeyTable__BuildNewTable = 0x00074090; constexpr uintptr_t CExoKeyTable__DeleteTableList = 0x00073D60; constexpr uintptr_t CExoKeyTable__DestroyTable = 0x00074170; constexpr uintptr_t CExoKeyTable__FindKey__0 = 0x00074510; constexpr uintptr_t CExoKeyTable__FindKey__1 = 0x000743C0; constexpr uintptr_t CExoKeyTable__GetEntryCount = 0x00073E90; constexpr uintptr_t CExoKeyTable__GetKeysOfType = 0x00074550; constexpr uintptr_t CExoKeyTable__GetRes = 0x00074800; constexpr uintptr_t CExoKeyTable__GetResID = 0x00074830; constexpr uintptr_t CExoKeyTable__GetTableEntry = 0x00074870; constexpr uintptr_t CExoKeyTable__GetTableIndex = 0x000748E0; constexpr uintptr_t CExoKeyTable__Hash = 0x00072840; constexpr uintptr_t CExoKeyTable__LocateBifFile = 0x00073FB0; constexpr uintptr_t CExoKeyTable__RebuildTable = 0x00074960; constexpr uintptr_t CExoLinkedListInternal__CExoLinkedListInternalDtor__0 = 0x00064A40; constexpr uintptr_t CExoLinkedListInternal__AddAfter = 0x00064B40; constexpr uintptr_t CExoLinkedListInternal__AddBefore = 0x00064BD0; constexpr uintptr_t CExoLinkedListInternal__AddHead = 0x00064AA0; constexpr uintptr_t CExoLinkedListInternal__AddTail = 0x00064AF0; constexpr uintptr_t CExoLinkedListInternal__GetAtPos = 0x00064C60; constexpr uintptr_t CExoLinkedListInternal__GetNext = 0x00064CB0; constexpr uintptr_t CExoLinkedListInternal__GetPrev = 0x00064D10; constexpr uintptr_t CExoLinkedListInternal__Remove = 0x00064D70; constexpr uintptr_t CExoLinkedListInternal__RemoveHead = 0x00064DF0; constexpr uintptr_t CExoLinkedListInternal__RemoveTail = 0x00064E60; constexpr uintptr_t CExoLinkedListTemplatedCLinuxFileSection__CExoLinkedListTemplatedCLinuxFileSectionDtor = 0x003E3E90; constexpr uintptr_t CExoLocString__CExoLocStringCtor__0 = 0x00064ED0; constexpr uintptr_t CExoLocString__CExoLocStringCtor__2 = 0x00064F70; constexpr uintptr_t CExoLocString__CExoLocStringDtor__0 = 0x00065060; constexpr uintptr_t CExoLocString__AddString = 0x00065160; constexpr uintptr_t CExoLocString__ClearLocString = 0x00065200; constexpr uintptr_t CExoLocString__GetString__0 = 0x00065220; constexpr uintptr_t CExoLocString__GetString__1 = 0x00065270; constexpr uintptr_t CExoLocString__GetStringCount = 0x00065580; constexpr uintptr_t CExoLocString__GetStringInternal = 0x00065530; constexpr uintptr_t CExoLocString__GetStringLength = 0x000655A0; constexpr uintptr_t CExoLocString__GetStringLoc = 0x00065550; constexpr uintptr_t CExoLocString__OperatorNotEqualTo = 0x00065120; constexpr uintptr_t CExoLocString__OperatorAssignment = 0x00064FD0; constexpr uintptr_t CExoLocString__OperatorEqualTo = 0x000650E0; constexpr uintptr_t CExoLocString__RemoveString__0 = 0x000655C0; constexpr uintptr_t CExoLocString__RemoveString__1 = 0x00065600; constexpr uintptr_t CExoLocStringInternal__CExoLocStringInternalCtor__0 = 0x00065630; constexpr uintptr_t CExoLocStringInternal__CExoLocStringInternalDtor__0 = 0x000656B0; constexpr uintptr_t CExoLocStringInternal__AddString = 0x000657D0; constexpr uintptr_t CExoLocStringInternal__Assign = 0x000658C0; constexpr uintptr_t CExoLocStringInternal__ClearLocString = 0x00065760; constexpr uintptr_t CExoLocStringInternal__Compare = 0x000659D0; constexpr uintptr_t CExoLocStringInternal__GetString__0 = 0x00065C10; constexpr uintptr_t CExoLocStringInternal__GetString__1 = 0x00065B60; constexpr uintptr_t CExoLocStringInternal__GetStringCount = 0x00065B50; constexpr uintptr_t CExoLocStringInternal__GetStringLength = 0x00065CA0; constexpr uintptr_t CExoLocStringInternal__RemoveString = 0x00065D40; constexpr uintptr_t CExoMemman__CExoMemmanDtor = 0x0006AF10; constexpr uintptr_t CExoMemman__AddFreeRecord = 0x0006B800; constexpr uintptr_t CExoMemman__Alloc = 0x0006B400; constexpr uintptr_t CExoMemman__CheckHeaps = 0x0006B600; constexpr uintptr_t CExoMemman__Clear = 0x0006B1B0; constexpr uintptr_t CExoMemman__Destroy = 0x0006B290; constexpr uintptr_t CExoMemman__DoHeapWalk = 0x0006B300; constexpr uintptr_t CExoMemman__FillRecordPtrArray = 0x0006BB40; constexpr uintptr_t CExoMemman__FinalReport = 0x0006B2C0; constexpr uintptr_t CExoMemman__Free = 0x0006B610; constexpr uintptr_t CExoMemman__GetFreeRecord = 0x0006B580; constexpr uintptr_t CExoMemman__GetHeaps = 0x0006B2F0; constexpr uintptr_t CExoMemman__OutputTypeTrackingReport = 0x0006B9F0; constexpr uintptr_t CExoMemman__PopType = 0x0006B8B0; constexpr uintptr_t CExoMemman__PushType = 0x0006B870; constexpr uintptr_t CExoMemman__ReportEntry = 0x0006B5A0; constexpr uintptr_t CExoMemman__ReportRemoval = 0x0006B790; constexpr uintptr_t CExoMemman__SnapShotReportPrint = 0x0006BBF0; constexpr uintptr_t CExoMemman__SnapShotReportWithSort = 0x0006B0D0; constexpr uintptr_t CExoMemman__StartReport = 0x0006B8F0; constexpr uintptr_t CExoPackedFile__CExoPackedFileCtor = 0x00074CD0; constexpr uintptr_t CExoPackedFile__CExoPackedFileDtor__0 = 0x00074D10; constexpr uintptr_t CExoPackedFile__GetAsyncFile = 0x00074DD0; constexpr uintptr_t CExoPackedFile__GetFile = 0x00074DC0; constexpr uintptr_t CExoRand__CExoRandCtor__0 = 0x00065E00; constexpr uintptr_t CExoRand__CExoRandDtor__0 = 0x00065E80; constexpr uintptr_t CExoRand__GetString = 0x00065F40; constexpr uintptr_t CExoRand__Rand = 0x00065F20; constexpr uintptr_t CExoRand__SignalEvent__0 = 0x00065F70; constexpr uintptr_t CExoRand__SignalEvent__1 = 0x00065F90; constexpr uintptr_t CExoRandInternal__CExoRandInternalCtor__0 = 0x00065FB0; constexpr uintptr_t CExoRandInternal__CExoRandInternalDtor__0 = 0x00066860; constexpr uintptr_t CExoRandInternal__Add = 0x00066960; constexpr uintptr_t CExoRandInternal__GenSeed = 0x00066230; constexpr uintptr_t CExoRandInternal__GetString = 0x00066240; constexpr uintptr_t CExoRandInternal__Rand = 0x000668C0; constexpr uintptr_t CExoRandInternal__ReSeed = 0x000666B0; constexpr uintptr_t CExoRandInternal__SignalEvent__0 = 0x000669E0; constexpr uintptr_t CExoRandInternal__SignalEvent__1 = 0x00066CB0; constexpr uintptr_t CExoResFile__CExoResFileCtor__0 = 0x00073E10; constexpr uintptr_t CExoResFile__CExoResFileDtor__0 = 0x00074E60; constexpr uintptr_t CExoResFile__AddAsyncRefCount = 0x00074F80; constexpr uintptr_t CExoResFile__AddRefCount = 0x00074F50; constexpr uintptr_t CExoResFile__CloseAsyncFile = 0x00075010; constexpr uintptr_t CExoResFile__CloseFile = 0x00074FB0; constexpr uintptr_t CExoResFile__DeleteAsyncRefCount = 0x000750F0; constexpr uintptr_t CExoResFile__DeleteRefCount = 0x000750C0; constexpr uintptr_t CExoResFile__GetResourceSize = 0x00075120; constexpr uintptr_t CExoResFile__Initialize = 0x00075140; constexpr uintptr_t CExoResFile__LoadHeader = 0x000753F0; constexpr uintptr_t CExoResFile__OpenAsyncFile = 0x000752D0; constexpr uintptr_t CExoResFile__OpenFile__0 = 0x000751A0; constexpr uintptr_t CExoResFile__OpenFile__1 = 0x000752C0; constexpr uintptr_t CExoResFile__ReadResource = 0x00075660; constexpr uintptr_t CExoResFile__ReadResourceAsync = 0x000756E0; constexpr uintptr_t CExoResFile__UnloadHeader = 0x00075070; constexpr uintptr_t CExoResMan__CExoResManCtor__0 = 0x00078CC0; constexpr uintptr_t CExoResMan__CExoResManDtor__0 = 0x00078F00; constexpr uintptr_t CExoResMan__AddEncapsulatedResourceFile = 0x00079140; constexpr uintptr_t CExoResMan__AddFixedKeyTableFile = 0x00079490; constexpr uintptr_t CExoResMan__AddKeyTable = 0x00079160; constexpr uintptr_t CExoResMan__AddResourceDirectory = 0x000794B0; constexpr uintptr_t CExoResMan__AddResourceImageFile = 0x00079470; constexpr uintptr_t CExoResMan__CancelRequest = 0x00078450; constexpr uintptr_t CExoResMan__CleanDirectory = 0x0007D340; constexpr uintptr_t CExoResMan__CreateDirectory = 0x0007C640; constexpr uintptr_t CExoResMan__Demand = 0x00078670; constexpr uintptr_t CExoResMan__Dump = 0x000789B0; constexpr uintptr_t CExoResMan__DumpAll = 0x0007A590; constexpr uintptr_t CExoResMan__Exists = 0x0007ABC0; constexpr uintptr_t CExoResMan__Free = 0x0007A470; constexpr uintptr_t CExoResMan__FreeChunk = 0x0007AE60; constexpr uintptr_t CExoResMan__FreeResourceData = 0x00078370; constexpr uintptr_t CExoResMan__GetEncapsulatedFileDescription = 0x0007AFE0; constexpr uintptr_t CExoResMan__GetFreeDiskSpace = 0x0007C4A0; constexpr uintptr_t CExoResMan__GetIsStaticType = 0x0007BA60; constexpr uintptr_t CExoResMan__GetKeyEntry = 0x0007AC30; constexpr uintptr_t CExoResMan__GetNewResRef = 0x0007A8B0; constexpr uintptr_t CExoResMan__GetResID = 0x0007B640; constexpr uintptr_t CExoResMan__GetResObject = 0x0007B530; constexpr uintptr_t CExoResMan__GetResOfType__0 = 0x0007B450; constexpr uintptr_t CExoResMan__GetResOfType__1 = 0x0007B0E0; constexpr uintptr_t CExoResMan__GetResRefFromFile = 0x0007B6B0; constexpr uintptr_t CExoResMan__GetResTypeFromFile = 0x0007B860; constexpr uintptr_t CExoResMan__GetTable = 0x00079830; constexpr uintptr_t CExoResMan__GetTableCount = 0x0007B990; constexpr uintptr_t CExoResMan__GetTotalPhysicalMemory = 0x0007BB70; constexpr uintptr_t CExoResMan__Malloc = 0x0007BB80; constexpr uintptr_t CExoResMan__NukeDirectory = 0x0007D3E0; constexpr uintptr_t CExoResMan__ReadRaw = 0x00078930; constexpr uintptr_t CExoResMan__Release = 0x00078A70; constexpr uintptr_t CExoResMan__ReleaseResObject = 0x0007BBF0; constexpr uintptr_t CExoResMan__RemoveEncapsulatedResourceFile = 0x000794D0; constexpr uintptr_t CExoResMan__RemoveFile = 0x0007D200; constexpr uintptr_t CExoResMan__RemoveFixedKeyTableFile = 0x00079630; constexpr uintptr_t CExoResMan__RemoveFromToBeFreedList = 0x000782D0; constexpr uintptr_t CExoResMan__RemoveKeyTable = 0x000794F0; constexpr uintptr_t CExoResMan__RemoveResourceDirectory = 0x00079650; constexpr uintptr_t CExoResMan__RemoveResourceImageFile = 0x00079610; constexpr uintptr_t CExoResMan__Request = 0x00078C20; constexpr uintptr_t CExoResMan__ResumeServicing = 0x0007BC50; constexpr uintptr_t CExoResMan__ServiceCurrentAsyncRes = 0x000798F0; constexpr uintptr_t CExoResMan__ServiceFromDirectory = 0x00079A70; constexpr uintptr_t CExoResMan__ServiceFromDirectoryRaw = 0x0007BD80; constexpr uintptr_t CExoResMan__ServiceFromEncapsulated = 0x00079E20; constexpr uintptr_t CExoResMan__ServiceFromEncapsulatedRaw = 0x0007C050; constexpr uintptr_t CExoResMan__ServiceFromImage = 0x0007A360; constexpr uintptr_t CExoResMan__ServiceFromImageRaw = 0x0007C1E0; constexpr uintptr_t CExoResMan__ServiceFromResFile = 0x0007A0B0; constexpr uintptr_t CExoResMan__ServiceFromResFileRaw = 0x0007C340; constexpr uintptr_t CExoResMan__SetResObject = 0x0007B5B0; constexpr uintptr_t CExoResMan__SetTotalResourceMemory = 0x0007BC60; constexpr uintptr_t CExoResMan__SuspendServicing = 0x0007BCA0; constexpr uintptr_t CExoResMan__Update = 0x0007BCB0; constexpr uintptr_t CExoResMan__UpdateEncapsulatedResourceFile = 0x00079670; constexpr uintptr_t CExoResMan__UpdateFixedKeyTableFile = 0x000797F0; constexpr uintptr_t CExoResMan__UpdateKeyTable = 0x00079690; constexpr uintptr_t CExoResMan__UpdateResourceDirectory = 0x00079810; constexpr uintptr_t CExoResMan__WipeDirectory = 0x0007C730; constexpr uintptr_t CExoResourceImageFile__CExoResourceImageFileCtor__0 = 0x00072780; constexpr uintptr_t CExoResourceImageFile__CExoResourceImageFileDtor__0 = 0x000769A0; constexpr uintptr_t CExoResourceImageFile__AddAsyncRefCount = 0x00076FC0; constexpr uintptr_t CExoResourceImageFile__AddRefCount = 0x00076AD0; constexpr uintptr_t CExoResourceImageFile__CloseAsyncFile = 0x00076FD0; constexpr uintptr_t CExoResourceImageFile__CloseFile = 0x00076B00; constexpr uintptr_t CExoResourceImageFile__DeleteAsyncRefCount = 0x00076FE0; constexpr uintptr_t CExoResourceImageFile__DeleteRefCount = 0x00076B50; constexpr uintptr_t CExoResourceImageFile__GetHeader = 0x000727F0; constexpr uintptr_t CExoResourceImageFile__GetKeyList = 0x00076B70; constexpr uintptr_t CExoResourceImageFile__GetKeyListEntry = 0x00072800; constexpr uintptr_t CExoResourceImageFile__GetResource = 0x00076BC0; constexpr uintptr_t CExoResourceImageFile__GetResourceListEntry = 0x00076B80; constexpr uintptr_t CExoResourceImageFile__GetResourceSize = 0x00076BA0; constexpr uintptr_t CExoResourceImageFile__Initialize = 0x00076BE0; constexpr uintptr_t CExoResourceImageFile__LoadHeader = 0x00077000; constexpr uintptr_t CExoResourceImageFile__OpenAsyncFile = 0x00076FF0; constexpr uintptr_t CExoResourceImageFile__OpenFile__0 = 0x00076C20; constexpr uintptr_t CExoResourceImageFile__OpenFile__1 = 0x00076C40; constexpr uintptr_t CExoResourceImageFile__ReadResource = 0x00076F50; constexpr uintptr_t CExoResourceImageFile__ReadResourceAsync = 0x00076FB0; constexpr uintptr_t CExoResourceImageFile__UnloadHeader = 0x00076B40; constexpr uintptr_t CExoString__CExoStringCtor__0 = 0x00066D60; constexpr uintptr_t CExoString__CExoStringCtor__2 = 0x00067080; constexpr uintptr_t CExoString__CExoStringCtor__4 = 0x00066F00; constexpr uintptr_t CExoString__CExoStringCtor__6 = 0x00066DA0; constexpr uintptr_t CExoString__CExoStringCtor__8 = 0x00066E40; constexpr uintptr_t CExoString__CExoStringCtor__10 = 0x00066FC0; constexpr uintptr_t CExoString__CExoStringDtor__0 = 0x00067160; constexpr uintptr_t CExoString__AsFLOAT = 0x00067830; constexpr uintptr_t CExoString__AsINT = 0x00067810; constexpr uintptr_t CExoString__AsTAG = 0x000686C0; constexpr uintptr_t CExoString__CompareNoCase = 0x000680C0; constexpr uintptr_t CExoString__ComparePrefixNoCase = 0x00068240; constexpr uintptr_t CExoString__CStr = 0x00067870; constexpr uintptr_t CExoString__Find__0 = 0x00067890; constexpr uintptr_t CExoString__Find__1 = 0x000679A0; constexpr uintptr_t CExoString__FindNot = 0x00067A40; constexpr uintptr_t CExoString__GetLength = 0x00067980; constexpr uintptr_t CExoString__Insert = 0x00067BF0; constexpr uintptr_t CExoString__IsEmpty = 0x00067CD0; constexpr uintptr_t CExoString__Left = 0x00067CF0; constexpr uintptr_t CExoString__LowerCase = 0x00067D70; constexpr uintptr_t CExoString__OperatorNotEqualTo__0 = 0x000673D0; constexpr uintptr_t CExoString__OperatorNotEqualTo__1 = 0x00067420; constexpr uintptr_t CExoString__OperatorMultiplication = 0x000676E0; constexpr uintptr_t CExoString__OperatorAddition = 0x00067720; constexpr uintptr_t CExoString__OperatorLesserThan__0 = 0x00067480; constexpr uintptr_t CExoString__OperatorLesserThan__1 = 0x000674C0; constexpr uintptr_t CExoString__OperatorLesserThanOrEqualTo__0 = 0x000675A0; constexpr uintptr_t CExoString__OperatorLesserThanOrEqualTo__1 = 0x000675F0; constexpr uintptr_t CExoString__OperatorAssignment__0 = 0x000671C0; constexpr uintptr_t CExoString__OperatorAssignment__1 = 0x00067270; constexpr uintptr_t CExoString__OperatorEqualTo__0 = 0x00067310; constexpr uintptr_t CExoString__OperatorEqualTo__1 = 0x00067360; constexpr uintptr_t CExoString__OperatorGreaterThan__0 = 0x00067500; constexpr uintptr_t CExoString__OperatorGreaterThan__1 = 0x00067550; constexpr uintptr_t CExoString__OperatorGreaterThanOrEqualTo__0 = 0x00067640; constexpr uintptr_t CExoString__OperatorGreaterThanOrEqualTo__1 = 0x00067690; constexpr uintptr_t CExoString__Right = 0x00067E90; constexpr uintptr_t CExoString__StripNonAlphaNumeric = 0x00068290; constexpr uintptr_t CExoString__SubString = 0x00067F10; constexpr uintptr_t CExoString__UpperCase = 0x00067FA0; constexpr uintptr_t CExoStringList__CExoStringListCtor__0 = 0x00069A40; constexpr uintptr_t CExoStringList__CExoStringListCtor__2 = 0x00069B20; constexpr uintptr_t CExoStringList__CExoStringListCtor__4 = 0x00069AA0; constexpr uintptr_t CExoStringList__CExoStringListDtor__0 = 0x00069C50; constexpr uintptr_t CExoStringList__Add = 0x00069D30; constexpr uintptr_t CExoStringList__AddSorted = 0x000687E0; constexpr uintptr_t CExoStringList__Clear = 0x0006A010; constexpr uintptr_t CExoStringList__Delete = 0x0006A080; constexpr uintptr_t CExoStringList__GetCount = 0x00069BF0; constexpr uintptr_t CExoStringList__GetDuplicate = 0x00069C00; constexpr uintptr_t CExoStringList__GetSize = 0x00069C20; constexpr uintptr_t CExoStringList__GetSorted = 0x00069C10; constexpr uintptr_t CExoStringList__GetString = 0x0006A1D0; constexpr uintptr_t CExoStringList__Insert = 0x0006A1E0; constexpr uintptr_t CExoStringList__Introduce = 0x00069860; constexpr uintptr_t CExoStringList__Merge = 0x0006A430; constexpr uintptr_t CExoStringList__OperatorMultiplication = 0x00069C30; constexpr uintptr_t CExoStringList__OperatorAssignment = 0x0006A940; constexpr uintptr_t CExoStringList__Remove = 0x0006A880; constexpr uintptr_t CExoTimers__CExoTimersCtor__0 = 0x0006AA40; constexpr uintptr_t CExoTimers__CExoTimersDtor__0 = 0x0006AAC0; constexpr uintptr_t CExoTimers__GetHighResolutionTimer = 0x0006AB60; constexpr uintptr_t CExoTimers__GetLowResolutionTimer = 0x0006AB40; constexpr uintptr_t CExoTimersInternal__CExoTimersInternalCtor__0 = 0x0006AB80; constexpr uintptr_t CExoTimersInternal__CExoTimersInternalDtor__0 = 0x0006AC20; constexpr uintptr_t CExoTimersInternal__GetHighResolutionTimer = 0x0006AC50; constexpr uintptr_t CExoTimersInternal__GetLowResolutionTimer = 0x0006AC40; constexpr uintptr_t CExtendedServerInfo__CExtendedServerInfoCtor = 0x000AADC0; constexpr uintptr_t CExtendedServerInfo__CExtendedServerInfoDtor = 0x000AAF10; constexpr uintptr_t CExtendedServerInfo__OperatorAssignment = 0x0009B6D0; constexpr uintptr_t CFactionManager__CFactionManagerCtor__0 = 0x001225D0; constexpr uintptr_t CFactionManager__CFactionManagerDtor__0 = 0x001226B0; constexpr uintptr_t CFactionManager__CreateDefaultFactions = 0x00123790; constexpr uintptr_t CFactionManager__DeleteFaction = 0x00123C20; constexpr uintptr_t CFactionManager__GetDefaultPCReputation = 0x00122860; constexpr uintptr_t CFactionManager__GetFaction = 0x00122770; constexpr uintptr_t CFactionManager__GetFactionIdByName = 0x00123C80; constexpr uintptr_t CFactionManager__GetIsNPCFaction = 0x00122840; constexpr uintptr_t CFactionManager__GetNPCFactionReputation = 0x001227E0; constexpr uintptr_t CFactionManager__LoadFactions = 0x00122CC0; constexpr uintptr_t CFactionManager__LoadReputations = 0x00122F70; constexpr uintptr_t CFactionManager__SaveFactions = 0x001234E0; constexpr uintptr_t CFactionManager__SaveReputations = 0x00123620; constexpr uintptr_t CFactionManager__SetNPCFactionReputation = 0x00122790; constexpr uintptr_t CFriendInfo__Sanitize = 0x00098110; constexpr uintptr_t CFriendPresenceInfo__CFriendPresenceInfoCtor = 0x000E5450; constexpr uintptr_t CFriendPresenceInfo__CFriendPresenceInfoDtor = 0x000E5510; constexpr uintptr_t CFriendPresenceInfo__Decode = 0x00098510; constexpr uintptr_t CFriendPresenceInfo__Encode = 0x000981B0; constexpr uintptr_t CGameEffect__CGameEffectCtor__0 = 0x0027DCA0; constexpr uintptr_t CGameEffect__CGameEffectCtor__2 = 0x0027DFC0; constexpr uintptr_t CGameEffect__CGameEffectDtor__0 = 0x0027E270; constexpr uintptr_t CGameEffect__CopyEffect = 0x0027E5E0; constexpr uintptr_t CGameEffect__GetCustomTag = 0x0027E590; constexpr uintptr_t CGameEffect__GetExpiryTime = 0x0027E570; constexpr uintptr_t CGameEffect__GetFloat = 0x0027E490; constexpr uintptr_t CGameEffect__GetInteger = 0x0027E450; constexpr uintptr_t CGameEffect__GetObjectID = 0x0027E4C0; constexpr uintptr_t CGameEffect__GetScriptEffectType = 0x0027FED0; constexpr uintptr_t CGameEffect__GetString = 0x0027E4F0; constexpr uintptr_t CGameEffect__LoadGameEffect = 0x0027EF40; constexpr uintptr_t CGameEffect__OperatorNotEqualTo = 0x0027EC60; constexpr uintptr_t CGameEffect__OperatorAssignment = 0x0027E830; constexpr uintptr_t CGameEffect__OperatorEqualTo = 0x0027EA60; constexpr uintptr_t CGameEffect__SaveGameEffect = 0x0027F7A0; constexpr uintptr_t CGameEffect__SetCreator = 0x0027EE50; constexpr uintptr_t CGameEffect__SetCustomTag = 0x0027E5C0; constexpr uintptr_t CGameEffect__SetExpiryTime = 0x0027E550; constexpr uintptr_t CGameEffect__SetFloat = 0x0027E4A0; constexpr uintptr_t CGameEffect__SetInteger = 0x0027E470; constexpr uintptr_t CGameEffect__SetLinked = 0x0027EC90; constexpr uintptr_t CGameEffect__SetNumIntegers = 0x0027DF50; constexpr uintptr_t CGameEffect__SetNumIntegersInitializeToNegativeOne = 0x0027E3E0; constexpr uintptr_t CGameEffect__SetObjectID = 0x0027E4D0; constexpr uintptr_t CGameEffect__SetString = 0x0027E520; constexpr uintptr_t CGameEffect__UpdateLinked = 0x0027ECB0; constexpr uintptr_t CGameObject__CGameObjectCtor__0 = 0x000EBE00; constexpr uintptr_t CGameObject__CGameObjectDtor__0 = 0x000EC6F0; constexpr uintptr_t CGameObject__AsNWCArea = 0x002E69A0; constexpr uintptr_t CGameObject__AsNWCAreaOfEffectObject = 0x002E6A70; constexpr uintptr_t CGameObject__AsNWCCreature = 0x002E69C0; constexpr uintptr_t CGameObject__AsNWCDoor = 0x002E6960; constexpr uintptr_t CGameObject__AsNWCItem = 0x002E69E0; constexpr uintptr_t CGameObject__AsNWCModule = 0x002E6980; constexpr uintptr_t CGameObject__AsNWCObject = 0x002E6940; constexpr uintptr_t CGameObject__AsNWCPlaceable = 0x002E6A50; constexpr uintptr_t CGameObject__AsNWCProjectile = 0x002E6A20; constexpr uintptr_t CGameObject__AsNWCSoundObject = 0x002E6AD0; constexpr uintptr_t CGameObject__AsNWCStore = 0x002E6AA0; constexpr uintptr_t CGameObject__AsNWCTrigger = 0x002E6A00; constexpr uintptr_t CGameObject__AsNWSArea = 0x002E69B0; constexpr uintptr_t CGameObject__AsNWSAreaOfEffectObject = 0x002E6A60; constexpr uintptr_t CGameObject__AsNWSCreature = 0x002E69D0; constexpr uintptr_t CGameObject__AsNWSDoor = 0x002E6970; constexpr uintptr_t CGameObject__AsNWSEncounter = 0x002E6A90; constexpr uintptr_t CGameObject__AsNWSItem = 0x002E69F0; constexpr uintptr_t CGameObject__AsNWSModule = 0x002F7BC0; constexpr uintptr_t CGameObject__AsNWSObject = 0x002E6950; constexpr uintptr_t CGameObject__AsNWSPlaceable = 0x002E6A40; constexpr uintptr_t CGameObject__AsNWSPlayerTURD = 0x002E6A30; constexpr uintptr_t CGameObject__AsNWSSoundObject = 0x002E6AC0; constexpr uintptr_t CGameObject__AsNWSStore = 0x002E6AB0; constexpr uintptr_t CGameObject__AsNWSTrigger = 0x002E6A10; constexpr uintptr_t CGameObject__AsNWSWaypoint = 0x002E6A80; constexpr uintptr_t CGameObject__ResetUpdateTimes = 0x002E6930; constexpr uintptr_t CGameObject__SetId = 0x002E6920; constexpr uintptr_t CGameObjectArray__CGameObjectArrayCtor__0 = 0x000EBE60; constexpr uintptr_t CGameObjectArray__CGameObjectArrayDtor__0 = 0x000EC010; constexpr uintptr_t CGameObjectArray__AddCharacterObjectAtPos = 0x000EC2A0; constexpr uintptr_t CGameObjectArray__AddExternalObject = 0x000EC370; constexpr uintptr_t CGameObjectArray__AddInternalObject = 0x000EC470; constexpr uintptr_t CGameObjectArray__AddObjectAtPos = 0x000EC130; constexpr uintptr_t CGameObjectArray__Clean = 0x000EC680; constexpr uintptr_t CGameObjectArray__Delete__0 = 0x000EC530; constexpr uintptr_t CGameObjectArray__Delete__1 = 0x000EC5D0; constexpr uintptr_t CGameObjectArray__GetGameObject = 0x000EC690; constexpr uintptr_t CItemRepository__CItemRepositoryCtor__0 = 0x002C1460; constexpr uintptr_t CItemRepository__CItemRepositoryDtor__0 = 0x002BFC80; constexpr uintptr_t CItemRepository__AddItem = 0x002C4240; constexpr uintptr_t CItemRepository__AddPanel = 0x002C8880; constexpr uintptr_t CItemRepository__CalculateContentsWeight = 0x002C8FC0; constexpr uintptr_t CItemRepository__CalculatePage = 0x002C8B50; constexpr uintptr_t CItemRepository__CheckFit = 0x002C88C0; constexpr uintptr_t CItemRepository__CheckItemOverlaps = 0x002C8250; constexpr uintptr_t CItemRepository__FindItemWithBaseItemId = 0x002C8B70; constexpr uintptr_t CItemRepository__FindItemWithTag = 0x002C8C80; constexpr uintptr_t CItemRepository__FindPosition = 0x002C8350; constexpr uintptr_t CItemRepository__GetItemInRepository__0 = 0x002C0FE0; constexpr uintptr_t CItemRepository__GetItemInRepository__1 = 0x002C8F00; constexpr uintptr_t CItemRepository__ItemListGetItem = 0x002C69B0; constexpr uintptr_t CItemRepository__ItemListGetItemObjectID = 0x002C0770; constexpr uintptr_t CItemRepository__MoveItem = 0x002C8DE0; constexpr uintptr_t CItemRepository__RemoveItem = 0x002C11A0; constexpr uintptr_t CLastUpdateObject__CLastUpdateObjectCtor__0 = 0x00319110; constexpr uintptr_t CLastUpdateObject__CLastUpdateObjectDtor__0 = 0x00319440; constexpr uintptr_t CLastUpdateObject__InitializeQuickbar = 0x00319660; constexpr uintptr_t CLoopingVisualEffect__GetIsBeam = 0x002E7330; constexpr uintptr_t CMemRecord__Clear = 0x0006B170; constexpr uintptr_t CNetLayer__CNetLayerCtor__0 = 0x00096F70; constexpr uintptr_t CNetLayer__CNetLayerDtor__0 = 0x00096FF0; constexpr uintptr_t CNetLayer__CleanUpEnumerateSpecific = 0x00097620; constexpr uintptr_t CNetLayer__ClearSessionInfoChanged = 0x00097940; constexpr uintptr_t CNetLayer__CloseStandardConnection = 0x00098050; constexpr uintptr_t CNetLayer__DisconnectFromSession = 0x000976C0; constexpr uintptr_t CNetLayer__DisconnectPlayer = 0x00097720; constexpr uintptr_t CNetLayer__DropConnectionToServer = 0x000976E0; constexpr uintptr_t CNetLayer__EndConnectToSession = 0x00097680; constexpr uintptr_t CNetLayer__EndEnumerateSessions = 0x00097600; constexpr uintptr_t CNetLayer__EndEnumerateSessionsSection = 0x000975D0; constexpr uintptr_t CNetLayer__EndInternetAddressTranslation = 0x00097B80; constexpr uintptr_t CNetLayer__EndPing = 0x00097890; constexpr uintptr_t CNetLayer__EndProtocol = 0x000971C0; constexpr uintptr_t CNetLayer__EndServerMode = 0x000974C0; constexpr uintptr_t CNetLayer__GetAnySessionsEnumerated = 0x00097C20; constexpr uintptr_t CNetLayer__GetAnyWindowBehind = 0x00097F30; constexpr uintptr_t CNetLayer__GetClientConnected = 0x00097BC0; constexpr uintptr_t CNetLayer__GetConnectionError = 0x000976A0; constexpr uintptr_t CNetLayer__GetConnectionsMustBeValidated = 0x000980D0; constexpr uintptr_t CNetLayer__GetDisconnectReason = 0x00097780; constexpr uintptr_t CNetLayer__GetDisconnectStrref = 0x00097750; constexpr uintptr_t CNetLayer__GetEnumerateSpecificOverRelay = 0x000987A0; constexpr uintptr_t CNetLayer__GetExoApp = 0x000970D0; constexpr uintptr_t CNetLayer__GetExoNet = 0x00097D40; constexpr uintptr_t CNetLayer__GetExpansionPackReqd = 0x00097EE0; constexpr uintptr_t CNetLayer__GetGameMasterPassword = 0x00097360; constexpr uintptr_t CNetLayer__GetGameMasterPermision = 0x00097CF0; constexpr uintptr_t CNetLayer__GetInternetAddressTranslationStatus = 0x00097B60; constexpr uintptr_t CNetLayer__GetIPBySessionId = 0x00098080; constexpr uintptr_t CNetLayer__GetLocalAdapterString = 0x00097800; constexpr uintptr_t CNetLayer__GetLocalPrivileges = 0x00097C50; constexpr uintptr_t CNetLayer__GetMessageFromStandardConnection = 0x00097FF0; constexpr uintptr_t CNetLayer__GetNumberLocalAdapters = 0x000977E0; constexpr uintptr_t CNetLayer__GetPasswordRequired = 0x00097290; constexpr uintptr_t CNetLayer__GetPlayerAddress = 0x00097CA0; constexpr uintptr_t CNetLayer__GetPlayerAddressData = 0x000978B0; constexpr uintptr_t CNetLayer__GetPlayerAddressRelayed = 0x00097CD0; constexpr uintptr_t CNetLayer__GetPlayerInfo = 0x00097C70; constexpr uintptr_t CNetLayer__GetPlayerPassword = 0x000972B0; constexpr uintptr_t CNetLayer__GetPortBySessionId = 0x00097A70; constexpr uintptr_t CNetLayer__GetRouterPortMapDescription = 0x000987F0; constexpr uintptr_t CNetLayer__GetSendUDPSocket = 0x00097DD0; constexpr uintptr_t CNetLayer__GetServerAdminPassword = 0x00097410; constexpr uintptr_t CNetLayer__GetServerConnected = 0x00097C00; constexpr uintptr_t CNetLayer__GetServerNetworkAddress = 0x00097D60; constexpr uintptr_t CNetLayer__GetSessionInfo = 0x00097A90; constexpr uintptr_t CNetLayer__GetSessionInfoChanged = 0x00097920; constexpr uintptr_t CNetLayer__GetSessionMaxPlayers = 0x00097960; constexpr uintptr_t CNetLayer__GetSessionName = 0x000979A0; constexpr uintptr_t CNetLayer__GetSessionSectionStart = 0x00097580; constexpr uintptr_t CNetLayer__GetUDPRecievePort = 0x00097A50; constexpr uintptr_t CNetLayer__Initialize = 0x000970B0; constexpr uintptr_t CNetLayer__IsConnectedToLocalhost = 0x00097700; constexpr uintptr_t CNetLayer__MessageArrived = 0x00097110; constexpr uintptr_t CNetLayer__OpenStandardConnection = 0x00097F50; constexpr uintptr_t CNetLayer__PlayerIdToConnectionId = 0x00097F00; constexpr uintptr_t CNetLayer__ProcessReceivedFrames = 0x000970F0; constexpr uintptr_t CNetLayer__RequestExtendedServerInfo = 0x00097830; constexpr uintptr_t CNetLayer__RequestServerDetails = 0x00097850; constexpr uintptr_t CNetLayer__SendMessageToAddress = 0x00097170; constexpr uintptr_t CNetLayer__SendMessageToPlayer = 0x00097140; constexpr uintptr_t CNetLayer__SendMessageToStandardConnection = 0x00098020; constexpr uintptr_t CNetLayer__SetConnectionsDisallowed = 0x000980B0; constexpr uintptr_t CNetLayer__SetConnectionsMustBeValidated = 0x000980F0; constexpr uintptr_t CNetLayer__SetDisconnectReason = 0x000977B0; constexpr uintptr_t CNetLayer__SetDisconnectStrref = 0x00097760; constexpr uintptr_t CNetLayer__SetEnumerateSpecificOverRelay = 0x000987B0; constexpr uintptr_t CNetLayer__SetExpansionPackReqd = 0x00097EC0; constexpr uintptr_t CNetLayer__SetGameMasterPassword = 0x00097390; constexpr uintptr_t CNetLayer__SetMasterServerInternetAddress = 0x00097DA0; constexpr uintptr_t CNetLayer__SetMstServerPassword = 0x00097E30; constexpr uintptr_t CNetLayer__SetPlayerPassword = 0x000972E0; constexpr uintptr_t CNetLayer__SetServerAdminPassword = 0x00097440; constexpr uintptr_t CNetLayer__SetServerLanguage = 0x000971E0; constexpr uintptr_t CNetLayer__SetSessionInfoChanged = 0x00097900; constexpr uintptr_t CNetLayer__SetSessionMaxPlayers = 0x00097980; constexpr uintptr_t CNetLayer__SetSessionName = 0x000979D0; constexpr uintptr_t CNetLayer__SetUpPlayBackConnection = 0x00097AB0; constexpr uintptr_t CNetLayer__ShutDown = 0x00097040; constexpr uintptr_t CNetLayer__ShutDownClientInterfaceWithReason = 0x00097E00; constexpr uintptr_t CNetLayer__StartConnectToSession = 0x00097640; constexpr uintptr_t CNetLayer__StartEnumerateSessions__0 = 0x000974E0; constexpr uintptr_t CNetLayer__StartEnumerateSessions__1 = 0x00097510; constexpr uintptr_t CNetLayer__StartEnumerateSessionsSection = 0x000975A0; constexpr uintptr_t CNetLayer__StartInternetAddressTranslation = 0x00097AD0; constexpr uintptr_t CNetLayer__StartPing = 0x00097870; constexpr uintptr_t CNetLayer__StartProtocol = 0x00097190; constexpr uintptr_t CNetLayer__StartServerMode = 0x00097200; constexpr uintptr_t CNetLayer__StoreMessage = 0x000978E0; constexpr uintptr_t CNetLayer__TranslateAddressFromString = 0x00097D10; constexpr uintptr_t CNetLayer__UpdateStatusLoop = 0x00097BA0; constexpr uintptr_t CNetLayerInternal__CNetLayerInternalCtor__0 = 0x0009BF70; constexpr uintptr_t CNetLayerInternal__CNetLayerInternalDtor__0 = 0x0009C580; constexpr uintptr_t CNetLayerInternal__BroadcastMessageToAddress = 0x0009E880; constexpr uintptr_t CNetLayerInternal__CheckMasterServerTimeouts = 0x000A9CA0; constexpr uintptr_t CNetLayerInternal__CleanUpEnumerateSpecific = 0x000A7980; constexpr uintptr_t CNetLayerInternal__ClearSessionInfoChanged = 0x000A8BA0; constexpr uintptr_t CNetLayerInternal__CloseStandardConnection = 0x000AAC90; constexpr uintptr_t CNetLayerInternal__ConnectionIdToSlidingWindow = 0x0009D610; constexpr uintptr_t CNetLayerInternal__ConnectToSessionLoop = 0x000A9250; constexpr uintptr_t CNetLayerInternal__CRCBlock = 0x000AAB30; constexpr uintptr_t CNetLayerInternal__CRCBuildTable = 0x0009C3E0; constexpr uintptr_t CNetLayerInternal__CRCEncodeFrame = 0x00099A00; constexpr uintptr_t CNetLayerInternal__CRCVerifyFrame = 0x0009D670; constexpr uintptr_t CNetLayerInternal__DisconnectFromSession = 0x000A92D0; constexpr uintptr_t CNetLayerInternal__DisconnectPlayer = 0x0009A610; constexpr uintptr_t CNetLayerInternal__DropConnectionToServer = 0x000A5210; constexpr uintptr_t CNetLayerInternal__EndConnectToSession = 0x000A4400; constexpr uintptr_t CNetLayerInternal__EndEnumerateSessions = 0x000A4040; constexpr uintptr_t CNetLayerInternal__EndEnumerateSessionsSection = 0x000A76D0; constexpr uintptr_t CNetLayerInternal__EndInternetAddressTranslation = 0x000A9850; constexpr uintptr_t CNetLayerInternal__EndPing = 0x000A8770; constexpr uintptr_t CNetLayerInternal__EndProtocol = 0x000A6ED0; constexpr uintptr_t CNetLayerInternal__EndServerMode = 0x0009DA30; constexpr uintptr_t CNetLayerInternal__EnumerateSessionsList = 0x000A82F0; constexpr uintptr_t CNetLayerInternal__EnumerateSessionsLoop = 0x000A7A60; constexpr uintptr_t CNetLayerInternal__FindPlayerName = 0x000A11D0; constexpr uintptr_t CNetLayerInternal__GetConnectionError = 0x000A9220; constexpr uintptr_t CNetLayerInternal__GetExoApp = 0x0009AC60; constexpr uintptr_t CNetLayerInternal__GetGameMasterPassword = 0x000A7150; constexpr uintptr_t CNetLayerInternal__GetInternetAddressTranslationStatus = 0x000A9790; constexpr uintptr_t CNetLayerInternal__GetIPBySessionId = 0x000AACB0; constexpr uintptr_t CNetLayerInternal__GetLocalAdapterString = 0x000A6F30; constexpr uintptr_t CNetLayerInternal__GetLocalPrivileges = 0x000A7250; constexpr uintptr_t CNetLayerInternal__GetMessageFromStandardConnection = 0x000AAC50; constexpr uintptr_t CNetLayerInternal__GetNumberLocalAdapters = 0x000A6F10; constexpr uintptr_t CNetLayerInternal__GetPasswordRequired = 0x000A7090; constexpr uintptr_t CNetLayerInternal__GetPlayerAddress = 0x000A94A0; constexpr uintptr_t CNetLayerInternal__GetPlayerAddressData = 0x0009EF00; constexpr uintptr_t CNetLayerInternal__GetPlayerAddressRelayed = 0x000A9520; constexpr uintptr_t CNetLayerInternal__GetPlayerPassword = 0x000A70D0; constexpr uintptr_t CNetLayerInternal__GetPortBySessionId = 0x000A8E10; constexpr uintptr_t CNetLayerInternal__GetRouterPortMapDescription = 0x000AAD90; constexpr uintptr_t CNetLayerInternal__GetSendUDPSocket = 0x000AAB10; constexpr uintptr_t CNetLayerInternal__GetServerAdminPassword = 0x000A71D0; constexpr uintptr_t CNetLayerInternal__GetServerConnected = 0x000AA740; constexpr uintptr_t CNetLayerInternal__GetServerNetworkAddress = 0x000AA780; constexpr uintptr_t CNetLayerInternal__GetServerPlayerCount = 0x000AA960; constexpr uintptr_t CNetLayerInternal__GetSessionInfo = 0x000A8F30; constexpr uintptr_t CNetLayerInternal__GetSessionMaxPlayers = 0x000A8D60; constexpr uintptr_t CNetLayerInternal__GetSessionName = 0x000A8D90; constexpr uintptr_t CNetLayerInternal__GetSessionSection = 0x0009D110; constexpr uintptr_t CNetLayerInternal__GetSessionSectionSize = 0x000AAD70; constexpr uintptr_t CNetLayerInternal__GetSessionSectionStart = 0x000A4CE0; constexpr uintptr_t CNetLayerInternal__GetUDPRecievePort = 0x000A8DE0; constexpr uintptr_t CNetLayerInternal__GetWindowSendIdByReceiveId = 0x000AAA90; constexpr uintptr_t CNetLayerInternal__HandleBNCRMessage = 0x000A1520; constexpr uintptr_t CNetLayerInternal__HandleBNCSMessage = 0x0009F320; constexpr uintptr_t CNetLayerInternal__HandleBNDMMessage = 0x000A4F70; constexpr uintptr_t CNetLayerInternal__HandleBNDPMessage = 0x000A5050; constexpr uintptr_t CNetLayerInternal__HandleBNDRMessage = 0x000A68D0; constexpr uintptr_t CNetLayerInternal__HandleBNDSMessage = 0x000A5A60; constexpr uintptr_t CNetLayerInternal__HandleBNERMessage = 0x000A45C0; constexpr uintptr_t CNetLayerInternal__HandleBNESMessage = 0x0009EA40; constexpr uintptr_t CNetLayerInternal__HandleBNLMMessage = 0x000A5850; constexpr uintptr_t CNetLayerInternal__HandleBNLRMessage = 0x000A6670; constexpr uintptr_t CNetLayerInternal__HandleBNVRMessage = 0x000A3E50; constexpr uintptr_t CNetLayerInternal__HandleBNVSMessage = 0x000A2410; constexpr uintptr_t CNetLayerInternal__HandleBNXIMessage = 0x000A52A0; constexpr uintptr_t CNetLayerInternal__HandleBNXRMessage = 0x000A6090; constexpr uintptr_t CNetLayerInternal__Initialize = 0x0009C920; constexpr uintptr_t CNetLayerInternal__IsConnectedToLocalhost = 0x000A4470; constexpr uintptr_t CNetLayerInternal__IsPlayerIpSameAsConnection = 0x000A0FE0; constexpr uintptr_t CNetLayerInternal__MessageArrived = 0x0009DAA0; constexpr uintptr_t CNetLayerInternal__NonWindowMessages = 0x0009D750; constexpr uintptr_t CNetLayerInternal__OpenStandardConnection = 0x000AABC0; constexpr uintptr_t CNetLayerInternal__PacketizeSendMessageToPlayer = 0x0009DD90; constexpr uintptr_t CNetLayerInternal__PacketizeSmallMessageToPlayer = 0x0009E290; constexpr uintptr_t CNetLayerInternal__PlacePacketInSendQueues = 0x0009AA10; constexpr uintptr_t CNetLayerInternal__PlayerIdToConnectionId = 0x0009EA00; constexpr uintptr_t CNetLayerInternal__PlayerIdToSlidingWindow = 0x0009E9A0; constexpr uintptr_t CNetLayerInternal__ProcessReceivedFrames = 0x0009D160; constexpr uintptr_t CNetLayerInternal__PurgeConnections = 0x0009E900; constexpr uintptr_t CNetLayerInternal__RequestExtendedServerInfo = 0x000A4E10; constexpr uintptr_t CNetLayerInternal__ResetEnumerateSessionsList = 0x000A7D30; constexpr uintptr_t CNetLayerInternal__SendBNCRMessage = 0x000A0A00; constexpr uintptr_t CNetLayerInternal__SendBNCSMessage = 0x0009F090; constexpr uintptr_t CNetLayerInternal__SendBNDMMessage = 0x000A9400; constexpr uintptr_t CNetLayerInternal__SendBNDPMessage = 0x000A9580; constexpr uintptr_t CNetLayerInternal__SendBNDSMessage = 0x000A8A80; constexpr uintptr_t CNetLayerInternal__SendBNESDirectMessageToAddress = 0x000A7DF0; constexpr uintptr_t CNetLayerInternal__SendBNLMMessage = 0x000A8610; constexpr uintptr_t CNetLayerInternal__SendBNVRMessage = 0x000A3C90; constexpr uintptr_t CNetLayerInternal__SendBNVSMessage = 0x000A21A0; constexpr uintptr_t CNetLayerInternal__SendDirectMessage = 0x00099AB0; constexpr uintptr_t CNetLayerInternal__SendMessageToAddress = 0x0009E810; constexpr uintptr_t CNetLayerInternal__SendMessageToPlayer = 0x0009DAE0; constexpr uintptr_t CNetLayerInternal__SendMessageToStandardConnection = 0x000AAC70; constexpr uintptr_t CNetLayerInternal__SetGameMasterPassword = 0x000A7190; constexpr uintptr_t CNetLayerInternal__SetMasterServerInternetAddress = 0x000AAAF0; constexpr uintptr_t CNetLayerInternal__SetNetworkAddressData = 0x0009EFA0; constexpr uintptr_t CNetLayerInternal__SetPlayerConnected = 0x000A12E0; constexpr uintptr_t CNetLayerInternal__SetPlayerPassword = 0x000A7110; constexpr uintptr_t CNetLayerInternal__SetServerAdminPassword = 0x000A7210; constexpr uintptr_t CNetLayerInternal__SetServerLanguage = 0x000A6EF0; constexpr uintptr_t CNetLayerInternal__SetSessionInfoChanged = 0x0009D0A0; constexpr uintptr_t CNetLayerInternal__SetSessionMaxPlayers = 0x000A8D70; constexpr uintptr_t CNetLayerInternal__SetSessionName = 0x000A8DC0; constexpr uintptr_t CNetLayerInternal__SetSlidingWindow = 0x0009CF10; constexpr uintptr_t CNetLayerInternal__SetUpPlayBackConnection = 0x0009CEF0; constexpr uintptr_t CNetLayerInternal__ShutDown = 0x0009C7F0; constexpr uintptr_t CNetLayerInternal__ShutDownClientInterfaceWithReason = 0x0009A890; constexpr uintptr_t CNetLayerInternal__StartConnectToSession = 0x000A8F70; constexpr uintptr_t CNetLayerInternal__StartEnumerateSessions = 0x000A72B0; constexpr uintptr_t CNetLayerInternal__StartEnumerateSessionsSection = 0x000A7650; constexpr uintptr_t CNetLayerInternal__StartInternetAddressTranslation = 0x000A9690; constexpr uintptr_t CNetLayerInternal__StartPing = 0x000A8470; constexpr uintptr_t CNetLayerInternal__StartProtocol = 0x000A6E70; constexpr uintptr_t CNetLayerInternal__StartServerMode = 0x000A6F60; constexpr uintptr_t CNetLayerInternal__StoreMessage = 0x000A8D40; constexpr uintptr_t CNetLayerInternal__UncompressMessage = 0x0009B140; constexpr uintptr_t CNetLayerInternal__UpdateStatusLoop = 0x000A98A0; constexpr uintptr_t CNetLayerInternal__ValidatePlayerAgainstLastSuccessfulLogin = 0x000A3D60; constexpr uintptr_t CNetLayerPlayerInfo__CNetLayerPlayerInfoCtor__0 = 0x0009B890; constexpr uintptr_t CNetLayerPlayerInfo__CNetLayerPlayerInfoDtor = 0x000AAFB0; constexpr uintptr_t CNetLayerPlayerInfo__AddCDKey = 0x0009BD40; constexpr uintptr_t CNetLayerPlayerInfo__AllKeysAuthed = 0x0009BCF0; constexpr uintptr_t CNetLayerPlayerInfo__Initialize = 0x0009BA50; constexpr uintptr_t CNetLayerPlayerInfo__SetCDKey = 0x0009BF20; constexpr uintptr_t CNetLayerPlayerInfo__StartMstTimer = 0x0009BC70; constexpr uintptr_t CNetLayerPlayerInfo__UpdateMstTimer = 0x0009BCA0; constexpr uintptr_t CNetLayerSessionInfo__CNetLayerSessionInfoCtor__0 = 0x0009B400; constexpr uintptr_t CNetLayerSessionInfo__CNetLayerSessionInfoDtor__0 = 0x0009B540; constexpr uintptr_t CNetLayerSessionInfo__Clean = 0x0009B5E0; constexpr uintptr_t CNetLayerWindow__CNetLayerWindowCtor__0 = 0x00098870; constexpr uintptr_t CNetLayerWindow__CNetLayerWindowDtor__0 = 0x00098CA0; constexpr uintptr_t CNetLayerWindow__AddToHighOutgoingQueue = 0x000993B0; constexpr uintptr_t CNetLayerWindow__AddToLowOutgoingQueue = 0x00099690; constexpr uintptr_t CNetLayerWindow__CutOutgoingBufferSize = 0x0009A8D0; constexpr uintptr_t CNetLayerWindow__DoubleOutgoingBufferSize = 0x0009A9F0; constexpr uintptr_t CNetLayerWindow__FauxNagle = 0x0009A500; constexpr uintptr_t CNetLayerWindow__FrameNumberBetween = 0x00099B70; constexpr uintptr_t CNetLayerWindow__FrameReceive = 0x00099BB0; constexpr uintptr_t CNetLayerWindow__FrameSend = 0x00099750; constexpr uintptr_t CNetLayerWindow__FrameTimeout = 0x00099FF0; constexpr uintptr_t CNetLayerWindow__Initialize = 0x00098B30; constexpr uintptr_t CNetLayerWindow__InitializeCompressionBuffers = 0x000991F0; constexpr uintptr_t CNetLayerWindow__LoadWindowWithFrames = 0x000994C0; constexpr uintptr_t CNetLayerWindow__PlaceFrameInOutgoingBuffers = 0x00099460; constexpr uintptr_t CNetLayerWindow__SetAckTimer = 0x00099150; constexpr uintptr_t CNetLayerWindow__SetFauxNagleTimer = 0x00099110; constexpr uintptr_t CNetLayerWindow__SetInFrameTimer = 0x00099190; constexpr uintptr_t CNetLayerWindow__SetOutFrameTimer = 0x00099B10; constexpr uintptr_t CNetLayerWindow__ShutDown = 0x00098DD0; constexpr uintptr_t CNetLayerWindow__TestAckTimer = 0x0009A5B0; constexpr uintptr_t CNetLayerWindow__TestFauxNagleTimer = 0x0009A470; constexpr uintptr_t CNetLayerWindow__TestInFrameTimer = 0x0009A5D0; constexpr uintptr_t CNetLayerWindow__TestOutFrameTimer = 0x0009A430; constexpr uintptr_t CNetLayerWindow__UnpacketizeFullMessages = 0x0009AC70; constexpr uintptr_t CNWArea__CNWAreaCtor = 0x000EC710; constexpr uintptr_t CNWArea__CNWAreaDtor__0 = 0x000EC830; constexpr uintptr_t CNWArea__AddStaticBoundingBox = 0x000EEE20; constexpr uintptr_t CNWArea__AddStaticObject = 0x000EC910; constexpr uintptr_t CNWArea__GetFog = 0x000EED70; constexpr uintptr_t CNWArea__GetIsIDInExcludeList = 0x000EF040; constexpr uintptr_t CNWArea__GetIsNight = 0x000EEDA0; constexpr uintptr_t CNWArea__GrowStaticObjectArray = 0x000ECE50; constexpr uintptr_t CNWArea__GrowStaticObjectTriangles = 0x000ED190; constexpr uintptr_t CNWArea__GrowStaticObjectVertices = 0x000ED030; constexpr uintptr_t CNWArea__HandleTransparentDoors = 0x000EF030; constexpr uintptr_t CNWArea__InitializeStaticObjects = 0x000ED550; constexpr uintptr_t CNWArea__IntersectLineSegments = 0x000ED5D0; constexpr uintptr_t CNWArea__NoCreaturesOnLine = 0x000EF020; constexpr uintptr_t CNWArea__NoNonWalkPolys = 0x000ED9A0; constexpr uintptr_t CNWArea__NoNonWalkPolysDetailed = 0x000EDA50; constexpr uintptr_t CNWArea__NoNonWalkPolysInDoors = 0x000EE910; constexpr uintptr_t CNWArea__RemoveStaticBoundingBox = 0x000EEF80; constexpr uintptr_t CNWArea__RemoveStaticObject = 0x000EEC20; constexpr uintptr_t CNWArea__ReplaceStaticObject = 0x000ED320; constexpr uintptr_t CNWArea__SetFog = 0x000EEDB0; constexpr uintptr_t CNWArea__SetIsNight = 0x000EEDE0; constexpr uintptr_t CNWArea__SetWind = 0x000EEE00; constexpr uintptr_t CNWBaseItem__CNWBaseItemCtor__0 = 0x000F4A60; constexpr uintptr_t CNWBaseItem__CNWBaseItemDtor__0 = 0x000F4B80; constexpr uintptr_t CNWBaseItem__GetIconResRef = 0x000F4BC0; constexpr uintptr_t CNWBaseItem__GetModelResRef = 0x000F4DF0; constexpr uintptr_t CNWBaseItem__GetNameText = 0x000F4D30; constexpr uintptr_t CNWBaseItem__GetRequiredFeat = 0x000F4D00; constexpr uintptr_t CNWBaseItem__SetRequiredFeat = 0x000F4CD0; constexpr uintptr_t CNWBaseItem__SetRequiredFeatCount = 0x000F4C80; constexpr uintptr_t CNWBaseItemArray__CNWBaseItemArrayCtor__0 = 0x000F4EB0; constexpr uintptr_t CNWBaseItemArray__CNWBaseItemArrayDtor__0 = 0x000F4EF0; constexpr uintptr_t CNWBaseItemArray__GetBaseItem = 0x000F4FD0; constexpr uintptr_t CNWBaseItemArray__Load = 0x000F5000; constexpr uintptr_t CNWCCMessageData__CNWCCMessageDataCtor__0 = 0x000F7180; constexpr uintptr_t CNWCCMessageData__CNWCCMessageDataDtor__0 = 0x000F7240; constexpr uintptr_t CNWCCMessageData__ClearData = 0x000F8660; constexpr uintptr_t CNWCCMessageData__CopyTo = 0x000F8690; constexpr uintptr_t CNWCCMessageData__GetFloat = 0x000F7560; constexpr uintptr_t CNWCCMessageData__GetInteger = 0x000F7340; constexpr uintptr_t CNWCCMessageData__GetObjectID = 0x000F77A0; constexpr uintptr_t CNWCCMessageData__GetString = 0x000F79C0; constexpr uintptr_t CNWCCMessageData__LoadData = 0x000F7D60; constexpr uintptr_t CNWCCMessageData__SaveData = 0x000F7B30; constexpr uintptr_t CNWCCMessageData__SetFloat = 0x000F7590; constexpr uintptr_t CNWCCMessageData__SetInteger = 0x000F7360; constexpr uintptr_t CNWCCMessageData__SetObjectID = 0x000F77C0; constexpr uintptr_t CNWCCMessageData__SetString = 0x000F7A10; constexpr uintptr_t CNWClass__CNWClassCtor__0 = 0x000EF050; constexpr uintptr_t CNWClass__CNWClassDtor__0 = 0x000EF530; constexpr uintptr_t CNWClass__GetAttackBonus = 0x000EF640; constexpr uintptr_t CNWClass__GetBonusFeats = 0x000EF670; constexpr uintptr_t CNWClass__GetClassFeat = 0x000F12D0; constexpr uintptr_t CNWClass__GetDescriptionText = 0x000F0FD0; constexpr uintptr_t CNWClass__GetFortSaveBonus = 0x000EF6A0; constexpr uintptr_t CNWClass__GetIsAlignmentAllowed = 0x000F1530; constexpr uintptr_t CNWClass__GetLevelFeatGranted = 0x000F1300; constexpr uintptr_t CNWClass__GetLevelGranted = 0x000F1460; constexpr uintptr_t CNWClass__GetNameLowerText = 0x000F1150; constexpr uintptr_t CNWClass__GetNamePluralText = 0x000F1210; constexpr uintptr_t CNWClass__GetNameText = 0x000F1090; constexpr uintptr_t CNWClass__GetRefSaveBonus = 0x000EF6D0; constexpr uintptr_t CNWClass__GetSpellGain = 0x000EF730; constexpr uintptr_t CNWClass__GetSpellsKnownPerLevel = 0x000EF770; constexpr uintptr_t CNWClass__GetWillSaveBonus = 0x000EF700; constexpr uintptr_t CNWClass__IsBonusFeat = 0x000F1350; constexpr uintptr_t CNWClass__IsFeatUseable = 0x000F14B0; constexpr uintptr_t CNWClass__IsGrantedFeat = 0x000F1400; constexpr uintptr_t CNWClass__IsNormalFeat = 0x000F1390; constexpr uintptr_t CNWClass__IsSkillClassSkill = 0x000F0F00; constexpr uintptr_t CNWClass__IsSkillUseable = 0x000F0F60; constexpr uintptr_t CNWClass__LoadAttackBonusTable = 0x000EF7F0; constexpr uintptr_t CNWClass__LoadBonusFeatsTable = 0x000F0620; constexpr uintptr_t CNWClass__LoadFeatsTable = 0x000EFA50; constexpr uintptr_t CNWClass__LoadSavingThrowTable = 0x000F0030; constexpr uintptr_t CNWClass__LoadSkillsTable = 0x000F0330; constexpr uintptr_t CNWClass__LoadSpellGainTable = 0x000F0860; constexpr uintptr_t CNWClass__LoadSpellKnownTable = 0x000F0BB0; constexpr uintptr_t CNWCreatureStatsUpdate__CNWCreatureStatsUpdateCtor__0 = 0x00366510; constexpr uintptr_t CNWCreatureStatsUpdate__CNWCreatureStatsUpdateDtor__0 = 0x00366680; constexpr uintptr_t CNWCreatureStatsUpdate__ClearEffectIcons = 0x003667B0; constexpr uintptr_t CNWCreatureStatsUpdate__SetCombatInformation = 0x00366840; constexpr uintptr_t CNWDomain__CNWDomainCtor__0 = 0x000F1D80; constexpr uintptr_t CNWDomain__CNWDomainDtor__0 = 0x000F1E80; constexpr uintptr_t CNWDomain__GetDescriptionText = 0x000F1EA0; constexpr uintptr_t CNWDomain__GetNameText = 0x000F1F60; constexpr uintptr_t CNWDoorSurfaceMesh__CNWDoorSurfaceMeshCtor__0 = 0x000F2020; constexpr uintptr_t CNWDoorSurfaceMesh__CNWDoorSurfaceMeshDtor__0 = 0x000F2140; constexpr uintptr_t CNWDoorSurfaceMesh__GetMeshBoundingBox = 0x000F4460; constexpr uintptr_t CNWDoorSurfaceMesh__IntersectLineSegments = 0x000F3FB0; constexpr uintptr_t CNWDoorSurfaceMesh__LoadWalkMesh = 0x000F22A0; constexpr uintptr_t CNWDoorSurfaceMesh__LoadWalkMeshString = 0x000F3190; constexpr uintptr_t CNWDoorSurfaceMesh__NoNonWalkPolysOnSurfaceMesh = 0x000F3230; constexpr uintptr_t CNWFeat__CNWFeatCtor__0 = 0x000F4740; constexpr uintptr_t CNWFeat__CNWFeatDtor__0 = 0x000F48C0; constexpr uintptr_t CNWFeat__GetDescriptionText = 0x000F48E0; constexpr uintptr_t CNWFeat__GetNameText = 0x000F49A0; constexpr uintptr_t CNWItem__CNWItemCtor__0 = 0x000F6F70; constexpr uintptr_t CNWItem__CNWItemDtor__0 = 0x000F7030; constexpr uintptr_t CNWItem__GetLayeredTextureColorPerPart = 0x000F7150; constexpr uintptr_t CNWItem__SetLayeredTextureColorPerPart = 0x000F70E0; constexpr uintptr_t CNWLevelStats__CNWLevelStatsCtor__0 = 0x000F1620; constexpr uintptr_t CNWLevelStats__CNWLevelStatsDtor__0 = 0x000F1710; constexpr uintptr_t CNWLevelStats__AddFeat = 0x000F1A10; constexpr uintptr_t CNWLevelStats__ClearFeats = 0x000F1940; constexpr uintptr_t CNWLevelStats__GetSkillRankChange = 0x000F1990; constexpr uintptr_t CNWLevelStats__SetSkillRankChange = 0x000F19D0; constexpr uintptr_t CNWMessage__CNWMessageCtor__0 = 0x000F8D90; constexpr uintptr_t CNWMessage__CNWMessageDtor__0 = 0x000F8EF0; constexpr uintptr_t CNWMessage__ClearReadMessage = 0x000F90C0; constexpr uintptr_t CNWMessage__CreateWriteMessage = 0x000FAA30; constexpr uintptr_t CNWMessage__ExtendWriteBuffer = 0x000F9820; constexpr uintptr_t CNWMessage__ExtendWriteFragmentsBuffer = 0x000F97B0; constexpr uintptr_t CNWMessage__GetWriteMessage = 0x000FB5E0; constexpr uintptr_t CNWMessage__MessageMoreDataToRead = 0x000FAA00; constexpr uintptr_t CNWMessage__MessageReadOverflow = 0x000FA9A0; constexpr uintptr_t CNWMessage__MessageReadUnderflow = 0x000FA9D0; constexpr uintptr_t CNWMessage__PeekAtWriteMessageSize = 0x000FB5C0; constexpr uintptr_t CNWMessage__ReadBit = 0x000F90E0; constexpr uintptr_t CNWMessage__ReadBits = 0x000F9130; constexpr uintptr_t CNWMessage__ReadBOOL = 0x000FA0F0; constexpr uintptr_t CNWMessage__ReadBYTE = 0x000F9070; constexpr uintptr_t CNWMessage__ReadCExoString = 0x000FA8A0; constexpr uintptr_t CNWMessage__ReadCHAR = 0x000FA110; constexpr uintptr_t CNWMessage__ReadCResRef = 0x000FA810; constexpr uintptr_t CNWMessage__ReadDOUBLE__0 = 0x000FA6E0; constexpr uintptr_t CNWMessage__ReadDOUBLE__1 = 0x000FA770; constexpr uintptr_t CNWMessage__ReadDWORD = 0x000F9F90; constexpr uintptr_t CNWMessage__ReadDWORD64 = 0x000F9F40; constexpr uintptr_t CNWMessage__ReadFLOAT__0 = 0x000FA510; constexpr uintptr_t CNWMessage__ReadFLOAT__1 = 0x000FA5F0; constexpr uintptr_t CNWMessage__ReadINT = 0x000FA330; constexpr uintptr_t CNWMessage__ReadINT64 = 0x000FA410; constexpr uintptr_t CNWMessage__ReadSHORT = 0x000FA220; constexpr uintptr_t CNWMessage__ReadSigned = 0x000FA020; constexpr uintptr_t CNWMessage__ReadUnsigned = 0x000F9C80; constexpr uintptr_t CNWMessage__ReadVOIDPtr = 0x000FA970; constexpr uintptr_t CNWMessage__ReadWORD = 0x000F9FD0; constexpr uintptr_t CNWMessage__SetReadMessage = 0x000F8FE0; constexpr uintptr_t CNWMessage__WriteBit = 0x000F9220; constexpr uintptr_t CNWMessage__WriteBits = 0x000F9270; constexpr uintptr_t CNWMessage__WriteBOOL = 0x000FAAE0; constexpr uintptr_t CNWMessage__WriteBYTE = 0x000F9AA0; constexpr uintptr_t CNWMessage__WriteCExoString = 0x000FB3C0; constexpr uintptr_t CNWMessage__WriteCHAR = 0x000FAB00; constexpr uintptr_t CNWMessage__WriteCResRef = 0x000FB310; constexpr uintptr_t CNWMessage__WriteDOUBLE__0 = 0x000FB060; constexpr uintptr_t CNWMessage__WriteDOUBLE__1 = 0x000FB180; constexpr uintptr_t CNWMessage__WriteDWORD = 0x000F9940; constexpr uintptr_t CNWMessage__WriteDWORD64 = 0x000F9890; constexpr uintptr_t CNWMessage__WriteFLOAT__0 = 0x000FADD0; constexpr uintptr_t CNWMessage__WriteFLOAT__1 = 0x000FAEE0; constexpr uintptr_t CNWMessage__WriteINT = 0x000FAC70; constexpr uintptr_t CNWMessage__WriteINT64 = 0x000FAD20; constexpr uintptr_t CNWMessage__WriteSHORT = 0x000FABB0; constexpr uintptr_t CNWMessage__WriteSigned = 0x000F9B50; constexpr uintptr_t CNWMessage__WriteUnsigned = 0x000F9320; constexpr uintptr_t CNWMessage__WriteVOIDPtr = 0x000FB510; constexpr uintptr_t CNWMessage__WriteWORD = 0x000F99F0; constexpr uintptr_t CNWNameGen__CNWNameGenCtor__0 = 0x00095660; constexpr uintptr_t CNWNameGen__CNWNameGenDtor__0 = 0x00095780; constexpr uintptr_t CNWNameGen__GetRandomName__0 = 0x00095B40; constexpr uintptr_t CNWNameGen__GetRandomName__1 = 0x00096110; constexpr uintptr_t CNWNameGen__LoadNameTable = 0x00095920; constexpr uintptr_t CNWNameGen__UnloadNameTable = 0x000958A0; constexpr uintptr_t CNWPlaceableSurfaceMesh__CNWPlaceableSurfaceMeshCtor__0 = 0x000FB6C0; constexpr uintptr_t CNWPlaceableSurfaceMesh__CNWPlaceableSurfaceMeshDtor__0 = 0x000FB860; constexpr uintptr_t CNWPlaceableSurfaceMesh__LoadWalkMesh = 0x000FBA20; constexpr uintptr_t CNWPlaceableSurfaceMesh__LoadWalkMeshString = 0x000FB980; constexpr uintptr_t CNWPlaceMeshManager__CNWPlaceMeshManagerCtor__0 = 0x000FCC40; constexpr uintptr_t CNWPlaceMeshManager__CNWPlaceMeshManagerDtor__0 = 0x000FCC80; constexpr uintptr_t CNWPlaceMeshManager__ClearWalkMeshes = 0x000FCCF0; constexpr uintptr_t CNWPlaceMeshManager__GetWalkMesh = 0x000FCF20; constexpr uintptr_t CNWPlaceMeshManager__InitializeWalkMeshes = 0x000FCDD0; constexpr uintptr_t CNWRace__CNWRaceCtor__0 = 0x000FD210; constexpr uintptr_t CNWRace__CNWRaceDtor__0 = 0x000FD2B0; constexpr uintptr_t CNWRace__GetConverNameLowerText = 0x000FD610; constexpr uintptr_t CNWRace__GetConverNameText = 0x000FD550; constexpr uintptr_t CNWRace__GetDefaultBiographyText = 0x000FD3D0; constexpr uintptr_t CNWRace__GetDescriptionText = 0x000FD310; constexpr uintptr_t CNWRace__GetNamePluralText = 0x000FD6D0; constexpr uintptr_t CNWRace__GetNameText = 0x000FD490; constexpr uintptr_t CNWRace__IsFirstLevelGrantedFeat = 0x000FDA10; constexpr uintptr_t CNWRace__LoadFeatsTable = 0x000FD790; constexpr uintptr_t CNWRules__CNWRulesCtor__0 = 0x000FFD80; constexpr uintptr_t CNWRules__CNWRulesDtor__0 = 0x00104BB0; constexpr uintptr_t CNWRules__CompareFeatName = 0x00105AB0; constexpr uintptr_t CNWRules__GetClassExpansionLevel = 0x00106180; constexpr uintptr_t CNWRules__GetDamageIndexFromFlags = 0x00105FA0; constexpr uintptr_t CNWRules__GetDifficultyOption = 0x00105E90; constexpr uintptr_t CNWRules__GetDomain = 0x00105E60; constexpr uintptr_t CNWRules__GetFamiliarExpansionLevel = 0x001061C0; constexpr uintptr_t CNWRules__GetFeat = 0x00104FF0; constexpr uintptr_t CNWRules__GetFeatExpansionLevel = 0x00105FC0; constexpr uintptr_t CNWRules__GetMasterFeatDescriptionText = 0x00105920; constexpr uintptr_t CNWRules__GetMasterFeatIcon = 0x00105A00; constexpr uintptr_t CNWRules__GetMasterFeatNameText = 0x00105840; constexpr uintptr_t CNWRules__GetMetaMagicLevelCost = 0x00105DA0; constexpr uintptr_t CNWRules__GetSkillExpansionLevel = 0x001060E0; constexpr uintptr_t CNWRules__GetSpellExpansionLevel = 0x00106110; constexpr uintptr_t CNWRules__GetWeightedDamageAmount = 0x00105EB0; constexpr uintptr_t CNWRules__IsArcaneClass = 0x001061F0; constexpr uintptr_t CNWRules__IsFeatUseable = 0x00104FC0; constexpr uintptr_t CNWRules__LoadClassInfo = 0x00102A10; constexpr uintptr_t CNWRules__LoadDifficultyInfo = 0x00104960; constexpr uintptr_t CNWRules__LoadDomainInfo = 0x00101950; constexpr uintptr_t CNWRules__LoadFeatInfo = 0x001001B0; constexpr uintptr_t CNWRules__LoadRaceInfo = 0x00103F50; constexpr uintptr_t CNWRules__LoadSkillInfo = 0x00102210; constexpr uintptr_t CNWRules__ReloadAll = 0x001053F0; constexpr uintptr_t CNWRules__RollDice = 0x00105D50; constexpr uintptr_t CNWRules__SortFeats = 0x00105810; constexpr uintptr_t CNWRules__UnloadAll = 0x00105030; constexpr uintptr_t CNWSAmbientSound__CNWSAmbientSoundCtor__0 = 0x00123FD0; constexpr uintptr_t CNWSAmbientSound__CNWSAmbientSoundDtor__0 = 0x00125060; constexpr uintptr_t CNWSAmbientSound__GetPlayersInArea = 0x00124150; constexpr uintptr_t CNWSAmbientSound__Load = 0x00124D80; constexpr uintptr_t CNWSAmbientSound__PackIntoMessage = 0x00124FB0; constexpr uintptr_t CNWSAmbientSound__PlayAmbientSound = 0x001248E0; constexpr uintptr_t CNWSAmbientSound__PlayBattleMusic = 0x00124700; constexpr uintptr_t CNWSAmbientSound__PlayMusic = 0x00124070; constexpr uintptr_t CNWSAmbientSound__Save = 0x00124ED0; constexpr uintptr_t CNWSAmbientSound__SetAmbientDayTrack = 0x001249C0; constexpr uintptr_t CNWSAmbientSound__SetAmbientDayVolume = 0x00124BA0; constexpr uintptr_t CNWSAmbientSound__SetAmbientNightTrack = 0x00124AB0; constexpr uintptr_t CNWSAmbientSound__SetAmbientNightVolume = 0x00124C90; constexpr uintptr_t CNWSAmbientSound__SetBattleMusicTrack = 0x001247F0; constexpr uintptr_t CNWSAmbientSound__SetMusicDayTrack = 0x00124530; constexpr uintptr_t CNWSAmbientSound__SetMusicDelay = 0x00124440; constexpr uintptr_t CNWSAmbientSound__SetMusicNightTrack = 0x00124610; constexpr uintptr_t CNWSArea__CNWSAreaCtor__0 = 0x001250D0; constexpr uintptr_t CNWSArea__CNWSAreaDtor__0 = 0x001258F0; constexpr uintptr_t CNWSArea__AddObjectToArea = 0x00128210; constexpr uintptr_t CNWSArea__AIUpdate = 0x00126070; constexpr uintptr_t CNWSArea__ApplyEffect = 0x001359F0; constexpr uintptr_t CNWSArea__AsNWSArea = 0x00136A00; constexpr uintptr_t CNWSArea__BudgeCreatures = 0x00136640; constexpr uintptr_t CNWSArea__ClearLineOfSight = 0x001350D0; constexpr uintptr_t CNWSArea__ComputeAwayVector = 0x00136BE0; constexpr uintptr_t CNWSArea__ComputeBestCorner = 0x00137760; constexpr uintptr_t CNWSArea__ComputeHeight = 0x001379D0; constexpr uintptr_t CNWSArea__ComputeNonVisibleLocation = 0x001395A0; constexpr uintptr_t CNWSArea__ComputePathDistance = 0x00137B60; constexpr uintptr_t CNWSArea__ComputeSafeLocation = 0x00138BA0; constexpr uintptr_t CNWSArea__ComputeSafeLocationInDirection = 0x001381E0; constexpr uintptr_t CNWSArea__CountAreaTransitionTriggers = 0x0013A410; constexpr uintptr_t CNWSArea__CountVisibleToPlayers = 0x0013A1F0; constexpr uintptr_t CNWSArea__DecreaseAILevelPriority = 0x001292A0; constexpr uintptr_t CNWSArea__DecrementPlayersInArea = 0x00128FA0; constexpr uintptr_t CNWSArea__EvaluateOverlappingTargets = 0x0013D910; constexpr uintptr_t CNWSArea__EventHandler = 0x00126480; constexpr uintptr_t CNWSArea__ExploreArea = 0x0013B7B0; constexpr uintptr_t CNWSArea__GenerateInterTilePath = 0x0013B9F0; constexpr uintptr_t CNWSArea__GetDoorCrossed = 0x001364D0; constexpr uintptr_t CNWSArea__GetFirstObjectInArea = 0x00128FC0; constexpr uintptr_t CNWSArea__GetFirstObjectIndiceByX = 0x00128110; constexpr uintptr_t CNWSArea__GetIsIDInExcludeList = 0x00134D90; constexpr uintptr_t CNWSArea__GetNextObjectInArea = 0x00129000; constexpr uintptr_t CNWSArea__GetPVPSetting = 0x001280B0; constexpr uintptr_t CNWSArea__GetSurfaceMaterial = 0x00136270; constexpr uintptr_t CNWSArea__GetTile = 0x00129040; constexpr uintptr_t CNWSArea__GoalMoveDenied = 0x0013BD60; constexpr uintptr_t CNWSArea__GridDFSearch = 0x001410C0; constexpr uintptr_t CNWSArea__GridDFSGenerateSuccessors = 0x00141440; constexpr uintptr_t CNWSArea__GridDFSTransTableGet = 0x001413A0; constexpr uintptr_t CNWSArea__GridDFSTransTableHash = 0x00141BD0; constexpr uintptr_t CNWSArea__GridDFSTransTableInitialize = 0x00141080; constexpr uintptr_t CNWSArea__GridDFSTransTablePut = 0x00141B40; constexpr uintptr_t CNWSArea__HandleTransparentDoors = 0x00134DD0; constexpr uintptr_t CNWSArea__IncreaseAILevelPriority = 0x00129110; constexpr uintptr_t CNWSArea__IncrementPlayersInArea = 0x00128D80; constexpr uintptr_t CNWSArea__InSubAreas = 0x0013D120; constexpr uintptr_t CNWSArea__IntersectingLineSegment = 0x0013C890; constexpr uintptr_t CNWSArea__InterTileDFS = 0x0013BBB0; constexpr uintptr_t CNWSArea__InterTileDFSExploreArea = 0x0013A710; constexpr uintptr_t CNWSArea__InterTileDFSGenerateSuccessors = 0x0013BEA0; constexpr uintptr_t CNWSArea__InterTileDFSSoundPath = 0x0013AED0; constexpr uintptr_t CNWSArea__LoadArea = 0x001293A0; constexpr uintptr_t CNWSArea__LoadAreaEffects = 0x0012CE10; constexpr uintptr_t CNWSArea__LoadAreaHeader = 0x00129530; constexpr uintptr_t CNWSArea__LoadCreatures = 0x0012B9A0; constexpr uintptr_t CNWSArea__LoadDoors = 0x0012AD10; constexpr uintptr_t CNWSArea__LoadEncounters = 0x0012C510; constexpr uintptr_t CNWSArea__LoadGIT__0 = 0x0012AC00; constexpr uintptr_t CNWSArea__LoadGIT__1 = 0x0012AAA0; constexpr uintptr_t CNWSArea__LoadItems = 0x0012BDD0; constexpr uintptr_t CNWSArea__LoadPlaceables = 0x0012B350; constexpr uintptr_t CNWSArea__LoadPlayers = 0x0012D630; constexpr uintptr_t CNWSArea__LoadProperties = 0x0012D420; constexpr uintptr_t CNWSArea__LoadSounds = 0x0012C900; constexpr uintptr_t CNWSArea__LoadStores = 0x0012CA80; constexpr uintptr_t CNWSArea__LoadTileSetInfo = 0x0012A2D0; constexpr uintptr_t CNWSArea__LoadTriggers = 0x0012C0E0; constexpr uintptr_t CNWSArea__LoadWaypoints = 0x0012C6C0; constexpr uintptr_t CNWSArea__NoCreaturesOnLine = 0x0013DA30; constexpr uintptr_t CNWSArea__NoNoneWalkPolysInStaticObject = 0x00141D10; constexpr uintptr_t CNWSArea__NWAreaAsNWSArea = 0x00136A10; constexpr uintptr_t CNWSArea__PackAreaIntoMessage = 0x0012D640; constexpr uintptr_t CNWSArea__PlayVisualEffect = 0x00134A90; constexpr uintptr_t CNWSArea__PlotGridPath = 0x00140500; constexpr uintptr_t CNWSArea__PlotPath = 0x0013DFF0; constexpr uintptr_t CNWSArea__PlotSoundPath = 0x00141C10; constexpr uintptr_t CNWSArea__PositionWalkable = 0x00136400; constexpr uintptr_t CNWSArea__RemoveInterTileExit = 0x0013EEB0; constexpr uintptr_t CNWSArea__RemoveObjectFromArea = 0x001289F0; constexpr uintptr_t CNWSArea__SaveArea = 0x0012F680; constexpr uintptr_t CNWSArea__SaveAreaEffects = 0x001347E0; constexpr uintptr_t CNWSArea__SaveCreatures = 0x00133820; constexpr uintptr_t CNWSArea__SaveDoors = 0x00133C80; constexpr uintptr_t CNWSArea__SaveEncounters = 0x00133FC0; constexpr uintptr_t CNWSArea__SaveGIT__0 = 0x0012F690; constexpr uintptr_t CNWSArea__SaveGIT__1 = 0x0012F830; constexpr uintptr_t CNWSArea__SaveItems = 0x00133AE0; constexpr uintptr_t CNWSArea__SavePlaceables = 0x001344A0; constexpr uintptr_t CNWSArea__SaveProperties = 0x00134980; constexpr uintptr_t CNWSArea__SaveSounds = 0x00134300; constexpr uintptr_t CNWSArea__SaveStores = 0x00134640; constexpr uintptr_t CNWSArea__SaveTriggers = 0x00133E20; constexpr uintptr_t CNWSArea__SaveWaypoints = 0x00134160; constexpr uintptr_t CNWSArea__SetCurrentWeather = 0x001262B0; constexpr uintptr_t CNWSArea__SmoothCornerOptimize = 0x0013F410; constexpr uintptr_t CNWSArea__SmoothPointsOnPath = 0x0013F170; constexpr uintptr_t CNWSArea__SmoothSelection = 0x0013FF40; constexpr uintptr_t CNWSArea__SmoothSelectNodes = 0x00140000; constexpr uintptr_t CNWSArea__TestDirectLine = 0x001371A0; constexpr uintptr_t CNWSArea__TestLineWalkable = 0x001388D0; constexpr uintptr_t CNWSArea__TestSafeLocationPoint = 0x00137C60; constexpr uintptr_t CNWSArea__UnloadArea = 0x00125CE0; constexpr uintptr_t CNWSArea__UpdatePlayerAutomaps = 0x0013B910; constexpr uintptr_t CNWSArea__UpdatePositionInObjectsArray = 0x00128DB0; constexpr uintptr_t CNWSAreaOfEffectObject__CNWSAreaOfEffectObjectCtor__0 = 0x00353550; constexpr uintptr_t CNWSAreaOfEffectObject__CNWSAreaOfEffectObjectDtor__0 = 0x00353770; constexpr uintptr_t CNWSAreaOfEffectObject__AddToArea = 0x00354F30; constexpr uintptr_t CNWSAreaOfEffectObject__AIUpdate = 0x00353C80; constexpr uintptr_t CNWSAreaOfEffectObject__AsNWSAreaOfEffectObject = 0x003581E0; constexpr uintptr_t CNWSAreaOfEffectObject__EventHandler = 0x00354DE0; constexpr uintptr_t CNWSAreaOfEffectObject__GetEffectSpellId = 0x003581F0; constexpr uintptr_t CNWSAreaOfEffectObject__GetPosition = 0x003561F0; constexpr uintptr_t CNWSAreaOfEffectObject__InAreaOfEffect = 0x00355B90; constexpr uintptr_t CNWSAreaOfEffectObject__JumpToPoint = 0x00357760; constexpr uintptr_t CNWSAreaOfEffectObject__LineSegmentIntersectAreaOfEffect = 0x003558B0; constexpr uintptr_t CNWSAreaOfEffectObject__LoadAreaEffect = 0x00356310; constexpr uintptr_t CNWSAreaOfEffectObject__LoadEffect = 0x00356A60; constexpr uintptr_t CNWSAreaOfEffectObject__MoveToPoint = 0x00357D40; constexpr uintptr_t CNWSAreaOfEffectObject__RemoveFromArea = 0x00353A80; constexpr uintptr_t CNWSAreaOfEffectObject__RemoveFromSubAreas = 0x003554A0; constexpr uintptr_t CNWSAreaOfEffectObject__SaveEffect = 0x003572C0; constexpr uintptr_t CNWSAreaOfEffectObject__SetCreator = 0x003580F0; constexpr uintptr_t CNWSAreaOfEffectObject__SetDuration = 0x003562C0; constexpr uintptr_t CNWSAreaOfEffectObject__SetEffectSpellId = 0x00358200; constexpr uintptr_t CNWSAreaOfEffectObject__SetShape = 0x00355D00; constexpr uintptr_t CNWSAreaOfEffectObject__SetTargetObjID = 0x00355DF0; constexpr uintptr_t CNWSAreaOfEffectObject__UpdateSubAreas = 0x00353F00; constexpr uintptr_t CNWSBarter__CNWSBarterCtor__0 = 0x00141E20; constexpr uintptr_t CNWSBarter__CNWSBarterDtor__0 = 0x00141F30; constexpr uintptr_t CNWSBarter__AddItem = 0x001422D0; constexpr uintptr_t CNWSBarter__CleanUp = 0x00142050; constexpr uintptr_t CNWSBarter__GetState = 0x00142BE0; constexpr uintptr_t CNWSBarter__MoveItem = 0x001426C0; constexpr uintptr_t CNWSBarter__PullItemOut = 0x001427F0; constexpr uintptr_t CNWSBarter__RemoveItem = 0x00142510; constexpr uintptr_t CNWSBarter__Reset = 0x00141EF0; constexpr uintptr_t CNWSBarter__SetListAccepted = 0x00142C90; constexpr uintptr_t CNWSBarter__SetListLocked = 0x00142900; constexpr uintptr_t CNWSClient__CNWSClientCtor__0 = 0x00143770; constexpr uintptr_t CNWSClient__CNWSClientDtor__0 = 0x001437D0; constexpr uintptr_t CNWSClient__AsNWSDungeonMaster = 0x00318560; constexpr uintptr_t CNWSClient__AsNWSPlayer = 0x00143800; constexpr uintptr_t CNWSCombatAttackData__CNWSCombatAttackDataCtor__0 = 0x00143BE0; constexpr uintptr_t CNWSCombatAttackData__CNWSCombatAttackDataDtor__0 = 0x00143F70; constexpr uintptr_t CNWSCombatAttackData__AddDamage = 0x00144240; constexpr uintptr_t CNWSCombatAttackData__ClearAttackData = 0x00143E30; constexpr uintptr_t CNWSCombatAttackData__Copy = 0x00144010; constexpr uintptr_t CNWSCombatAttackData__GetDamage = 0x00144150; constexpr uintptr_t CNWSCombatAttackData__GetTotalDamage = 0x001442B0; constexpr uintptr_t CNWSCombatAttackData__LoadData = 0x00144740; constexpr uintptr_t CNWSCombatAttackData__SaveData = 0x001443D0; constexpr uintptr_t CNWSCombatAttackData__SetBaseDamage = 0x001441F0; constexpr uintptr_t CNWSCombatAttackData__SetDamage = 0x00144200; constexpr uintptr_t CNWSCombatRound__CNWSCombatRoundCtor__0 = 0x00144DB0; constexpr uintptr_t CNWSCombatRound__CNWSCombatRoundDtor__0 = 0x001452B0; constexpr uintptr_t CNWSCombatRound__AddAction = 0x00147420; constexpr uintptr_t CNWSCombatRound__AddAttackOfOpportunity = 0x001493C0; constexpr uintptr_t CNWSCombatRound__AddCircleKickAttack = 0x001491C0; constexpr uintptr_t CNWSCombatRound__AddCleaveAttack = 0x00149090; constexpr uintptr_t CNWSCombatRound__AddCombatStepAction = 0x00146310; constexpr uintptr_t CNWSCombatRound__AddEquipAction = 0x00149500; constexpr uintptr_t CNWSCombatRound__AddParryAttack = 0x00148E40; constexpr uintptr_t CNWSCombatRound__AddParryIndex = 0x00148F70; constexpr uintptr_t CNWSCombatRound__AddReaction = 0x00148C30; constexpr uintptr_t CNWSCombatRound__AddSpecialAttack = 0x00147910; constexpr uintptr_t CNWSCombatRound__AddSpellAction = 0x00146A60; constexpr uintptr_t CNWSCombatRound__AddUnequipAction = 0x00149700; constexpr uintptr_t CNWSCombatRound__AddWhirlwindAttack = 0x001492E0; constexpr uintptr_t CNWSCombatRound__CalculateOffHandAttacks = 0x00147590; constexpr uintptr_t CNWSCombatRound__CheckActionLength = 0x00147230; constexpr uintptr_t CNWSCombatRound__CheckActionLengthAtTime = 0x00147330; constexpr uintptr_t CNWSCombatRound__ClearAllAttacks = 0x00145B20; constexpr uintptr_t CNWSCombatRound__ClearAllSpecialAttacks = 0x00148B20; constexpr uintptr_t CNWSCombatRound__DecrementPauseTimer = 0x00146F30; constexpr uintptr_t CNWSCombatRound__DecrementRoundLength = 0x00147070; constexpr uintptr_t CNWSCombatRound__EndCombatRound = 0x00146B80; constexpr uintptr_t CNWSCombatRound__GetAction = 0x001473E0; constexpr uintptr_t CNWSCombatRound__GetActionPending = 0x00147390; constexpr uintptr_t CNWSCombatRound__GetAttack = 0x00147710; constexpr uintptr_t CNWSCombatRound__GetAttackActionPending = 0x00146EE0; constexpr uintptr_t CNWSCombatRound__GetCombatStepRequired = 0x00147750; constexpr uintptr_t CNWSCombatRound__GetCurrentAttackWeapon = 0x00149890; constexpr uintptr_t CNWSCombatRound__GetExtraAttack = 0x00147560; constexpr uintptr_t CNWSCombatRound__GetNewAttackID = 0x00147DB0; constexpr uintptr_t CNWSCombatRound__GetNumSpecialAttacks = 0x00148140; constexpr uintptr_t CNWSCombatRound__GetOffHandAttack = 0x00147520; constexpr uintptr_t CNWSCombatRound__GetSpecialAttack = 0x00148230; constexpr uintptr_t CNWSCombatRound__GetSpecialAttackID = 0x001482F0; constexpr uintptr_t CNWSCombatRound__GetSpellActionPending = 0x00146E30; constexpr uintptr_t CNWSCombatRound__GetTotalAttacks = 0x00146900; constexpr uintptr_t CNWSCombatRound__GetWeaponAttackType = 0x00149A00; constexpr uintptr_t CNWSCombatRound__HasCreatureWeapons = 0x00149C50; constexpr uintptr_t CNWSCombatRound__IncrementTimer = 0x00146D30; constexpr uintptr_t CNWSCombatRound__InitializeAttackActions = 0x00145EE0; constexpr uintptr_t CNWSCombatRound__InitializeCombatModes = 0x00145AD0; constexpr uintptr_t CNWSCombatRound__InitializeNumberOfAttacks = 0x00145CA0; constexpr uintptr_t CNWSCombatRound__InsertSpecialAttack = 0x001483C0; constexpr uintptr_t CNWSCombatRound__LoadCombatRound = 0x0014A2C0; constexpr uintptr_t CNWSCombatRound__RecomputeRound = 0x00146420; constexpr uintptr_t CNWSCombatRound__RemoveAllActions = 0x001474D0; constexpr uintptr_t CNWSCombatRound__RemoveSpecialAttack = 0x00147DE0; constexpr uintptr_t CNWSCombatRound__RemoveSpellAction = 0x00148D60; constexpr uintptr_t CNWSCombatRound__SaveCombatRound = 0x00149DB0; constexpr uintptr_t CNWSCombatRound__SetCurrentAttack = 0x00147730; constexpr uintptr_t CNWSCombatRound__SetDeflectArrow = 0x001462F0; constexpr uintptr_t CNWSCombatRound__SetPauseTimer = 0x00146FD0; constexpr uintptr_t CNWSCombatRound__SetRoundPaused = 0x00146F50; constexpr uintptr_t CNWSCombatRound__SignalCombatRoundStarted = 0x00146930; constexpr uintptr_t CNWSCombatRound__StartCombatRound = 0x00145930; constexpr uintptr_t CNWSCombatRound__StartCombatRoundCast = 0x00146990; constexpr uintptr_t CNWSCombatRound__UpdateAttackTargetForAllActions = 0x00149D10; constexpr uintptr_t CNWSCombatRoundAction__CNWSCombatRoundActionCtor__0 = 0x00143860; constexpr uintptr_t CNWSCombatRoundAction__CNWSCombatRoundActionDtor__0 = 0x001438E0; constexpr uintptr_t CNWSCombatRoundAction__LoadData = 0x00143A30; constexpr uintptr_t CNWSCombatRoundAction__SaveData = 0x00143900; constexpr uintptr_t CNWSCreature__CNWSCreatureCtor__0 = 0x0014AEA0; constexpr uintptr_t CNWSCreature__CNWSCreatureDtor__0 = 0x0014C620; constexpr uintptr_t CNWSCreature__AcquireItem = 0x0018D910; constexpr uintptr_t CNWSCreature__ActionManager = 0x0014D600; constexpr uintptr_t CNWSCreature__ActivityManager = 0x0014D750; constexpr uintptr_t CNWSCreature__AddAnimalEmpathyAction = 0x0016ECF0; constexpr uintptr_t CNWSCreature__AddAppearActions = 0x001703F0; constexpr uintptr_t CNWSCreature__AddAssociate = 0x001A01E0; constexpr uintptr_t CNWSCreature__AddAttackActions = 0x00152300; constexpr uintptr_t CNWSCreature__AddCastSpellActions = 0x0014EE90; constexpr uintptr_t CNWSCreature__AddCounterSpellActions = 0x00170230; constexpr uintptr_t CNWSCreature__AddDisappearActions = 0x00170490; constexpr uintptr_t CNWSCreature__AddDriveAction = 0x0014E0C0; constexpr uintptr_t CNWSCreature__AddDropItemActions = 0x00151C50; constexpr uintptr_t CNWSCreature__AddEquipItemActions = 0x001502E0; constexpr uintptr_t CNWSCreature__AddGold = 0x00175A70; constexpr uintptr_t CNWSCreature__AddHealActions = 0x00151DE0; constexpr uintptr_t CNWSCreature__AddItemCastSpellActions = 0x0014E360; constexpr uintptr_t CNWSCreature__AddMoveToPointAction = 0x0014E240; constexpr uintptr_t CNWSCreature__AddMoveToPointActionToFront = 0x0014DFA0; constexpr uintptr_t CNWSCreature__AddPathfindingWaitActionToFront = 0x0014E190; constexpr uintptr_t CNWSCreature__AddPickPocketActions = 0x00151A00; constexpr uintptr_t CNWSCreature__AddPickUpItemActions = 0x00151B40; constexpr uintptr_t CNWSCreature__AddRepositoryMoveActions = 0x00151930; constexpr uintptr_t CNWSCreature__AddSitActions = 0x00151EF0; constexpr uintptr_t CNWSCreature__AddTauntActions = 0x0016F270; constexpr uintptr_t CNWSCreature__AddToArea = 0x00152ED0; constexpr uintptr_t CNWSCreature__AddToAssociateList = 0x0019F6B0; constexpr uintptr_t CNWSCreature__AddToInvitationsIgnored = 0x001A5860; constexpr uintptr_t CNWSCreature__AddToInvitationsOffered = 0x001A5A90; constexpr uintptr_t CNWSCreature__AddToPersonalReputationList = 0x00199440; constexpr uintptr_t CNWSCreature__AddToPVPList = 0x001A6E90; constexpr uintptr_t CNWSCreature__AddToVisibleList = 0x001990F0; constexpr uintptr_t CNWSCreature__AddTrapActions = 0x001520A0; constexpr uintptr_t CNWSCreature__AddUnequipActions = 0x00151020; constexpr uintptr_t CNWSCreature__AddUseTalentAtLocationActions = 0x00170840; constexpr uintptr_t CNWSCreature__AddUseTalentOnObjectActions = 0x00170590; constexpr uintptr_t CNWSCreature__AdjustReputation = 0x00198A10; constexpr uintptr_t CNWSCreature__AIActionAnimalEmpathy = 0x001996B0; constexpr uintptr_t CNWSCreature__AIActionAppear = 0x0019B9E0; constexpr uintptr_t CNWSCreature__AIActionAreaWait = 0x0018F890; constexpr uintptr_t CNWSCreature__AIActionAttackObject = 0x001A7D60; constexpr uintptr_t CNWSCreature__AIActionBarter = 0x001860C0; constexpr uintptr_t CNWSCreature__AIActionCastSpell = 0x00187890; constexpr uintptr_t CNWSCreature__AIActionChangeFacingObject = 0x0018A5E0; constexpr uintptr_t CNWSCreature__AIActionChangeFacingPoint = 0x0018A780; constexpr uintptr_t CNWSCreature__AIActionCheckForceFollowObject = 0x00196930; constexpr uintptr_t CNWSCreature__AIActionCheckInterAreaPathfinding = 0x0018AE20; constexpr uintptr_t CNWSCreature__AIActionCheckMoveAwayFromLocation = 0x0018ABD0; constexpr uintptr_t CNWSCreature__AIActionCheckMoveAwayFromObject = 0x0018A880; constexpr uintptr_t CNWSCreature__AIActionCheckMoveToObject = 0x0018B3F0; constexpr uintptr_t CNWSCreature__AIActionCheckMoveToObjectRadius = 0x0018B6C0; constexpr uintptr_t CNWSCreature__AIActionCheckMoveToPoint = 0x0018BB90; constexpr uintptr_t CNWSCreature__AIActionCheckMoveToPointRadius = 0x0018BE10; constexpr uintptr_t CNWSCreature__AIActionCounterSpell = 0x0019F310; constexpr uintptr_t CNWSCreature__AIActionDisappear = 0x0019BAF0; constexpr uintptr_t CNWSCreature__AIActionDisarmTrap = 0x00182BB0; constexpr uintptr_t CNWSCreature__AIActionDrive = 0x00194E50; constexpr uintptr_t CNWSCreature__AIActionDropItem = 0x001972E0; constexpr uintptr_t CNWSCreature__AIActionEncounterCreatureDestroySelf = 0x0018C090; constexpr uintptr_t CNWSCreature__AIActionEquipItem = 0x0018E000; constexpr uintptr_t CNWSCreature__AIActionExamine = 0x001863B0; constexpr uintptr_t CNWSCreature__AIActionExamineTrap = 0x00183C90; constexpr uintptr_t CNWSCreature__AIActionFlagTrap = 0x00180F80; constexpr uintptr_t CNWSCreature__AIActionForceFollowObject = 0x001966D0; constexpr uintptr_t CNWSCreature__AIActionHeal = 0x0019E0E0; constexpr uintptr_t CNWSCreature__AIActionItemCastSpell = 0x00186AD0; constexpr uintptr_t CNWSCreature__AIActionJumpToObject = 0x0018E190; constexpr uintptr_t CNWSCreature__AIActionJumpToPoint = 0x0018F220; constexpr uintptr_t CNWSCreature__AIActionMoveToPoint = 0x00190B70; constexpr uintptr_t CNWSCreature__AIActionOrientCamera = 0x00196A20; constexpr uintptr_t CNWSCreature__AIActionPickPocket = 0x0019BC00; constexpr uintptr_t CNWSCreature__AIActionPickUpItem = 0x00196AE0; constexpr uintptr_t CNWSCreature__AIActionRandomWalk = 0x001903D0; constexpr uintptr_t CNWSCreature__AIActionRecoverTrap = 0x00181970; constexpr uintptr_t CNWSCreature__AIActionRepositoryMove = 0x0018F900; constexpr uintptr_t CNWSCreature__AIActionRest = 0x0019A060; constexpr uintptr_t CNWSCreature__AIActionSetTrap = 0x001845F0; constexpr uintptr_t CNWSCreature__AIActionSit = 0x0019EEB0; constexpr uintptr_t CNWSCreature__AIActionTaunt = 0x0019B080; constexpr uintptr_t CNWSCreature__AIActionUnequipItem = 0x001981A0; constexpr uintptr_t CNWSCreature__AIActionWaitForEndOfRound = 0x00198350; constexpr uintptr_t CNWSCreature__AIUpdate = 0x001541F0; constexpr uintptr_t CNWSCreature__ApplyDeathExperience = 0x001679C0; constexpr uintptr_t CNWSCreature__ApplyDiseasePayload = 0x0017D9D0; constexpr uintptr_t CNWSCreature__ApplyOnHitAbilityDamage = 0x001B8780; constexpr uintptr_t CNWSCreature__ApplyOnHitBlindness = 0x001BACC0; constexpr uintptr_t CNWSCreature__ApplyOnHitCastSpell = 0x001B7E10; constexpr uintptr_t CNWSCreature__ApplyOnHitConfusion = 0x001B8B50; constexpr uintptr_t CNWSCreature__ApplyOnHitDaze = 0x001BB140; constexpr uintptr_t CNWSCreature__ApplyOnHitDeafness = 0x001BB4C0; constexpr uintptr_t CNWSCreature__ApplyOnHitDeathAttack = 0x001B5EC0; constexpr uintptr_t CNWSCreature__ApplyOnHitDisease = 0x001B8ED0; constexpr uintptr_t CNWSCreature__ApplyOnHitDispelMagic__0 = 0x001B8580; constexpr uintptr_t CNWSCreature__ApplyOnHitDispelMagic__1 = 0x001BB930; constexpr uintptr_t CNWSCreature__ApplyOnHitDominate = 0x001BE840; constexpr uintptr_t CNWSCreature__ApplyOnHitDoom = 0x001B90C0; constexpr uintptr_t CNWSCreature__ApplyOnHitFear = 0x001B9830; constexpr uintptr_t CNWSCreature__ApplyOnHitGreaterDispel = 0x001BBC00; constexpr uintptr_t CNWSCreature__ApplyOnHitHold = 0x001BBED0; constexpr uintptr_t CNWSCreature__ApplyOnHitKnock = 0x001BC310; constexpr uintptr_t CNWSCreature__ApplyOnHitLesserDispel = 0x001BC630; constexpr uintptr_t CNWSCreature__ApplyOnHitLevelDrain = 0x001B9BA0; constexpr uintptr_t CNWSCreature__ApplyOnHitMordysDisjunction = 0x001BC900; constexpr uintptr_t CNWSCreature__ApplyOnHitPoison = 0x001B9F90; constexpr uintptr_t CNWSCreature__ApplyOnHitSilence = 0x001BCBD0; constexpr uintptr_t CNWSCreature__ApplyOnHitSlayAlignment = 0x001BD040; constexpr uintptr_t CNWSCreature__ApplyOnHitSlayAlignmentGroup = 0x001BD410; constexpr uintptr_t CNWSCreature__ApplyOnHitSlayRacialGroup = 0x001BD800; constexpr uintptr_t CNWSCreature__ApplyOnHitSleep = 0x001BDBE0; constexpr uintptr_t CNWSCreature__ApplyOnHitSlow = 0x001BA2A0; constexpr uintptr_t CNWSCreature__ApplyOnHitStun = 0x001BA710; constexpr uintptr_t CNWSCreature__ApplyOnHitVampiricRegeneration = 0x001B8350; constexpr uintptr_t CNWSCreature__ApplyOnHitVorpal = 0x001BE120; constexpr uintptr_t CNWSCreature__ApplyOnHitWounding = 0x001BAA90; constexpr uintptr_t CNWSCreature__ApplyPoisonPayload = 0x0017E320; constexpr uintptr_t CNWSCreature__ApplyWounding = 0x00180430; constexpr uintptr_t CNWSCreature__AsNWSCreature = 0x00180D00; constexpr uintptr_t CNWSCreature__AutoCloseGUIPanels = 0x0015F0E0; constexpr uintptr_t CNWSCreature__BringAssociatesToNewFaction = 0x001A5D60; constexpr uintptr_t CNWSCreature__BroadcastAssociateCommand = 0x00152970; constexpr uintptr_t CNWSCreature__BroadcastAttackDataToParty = 0x0015D3F0; constexpr uintptr_t CNWSCreature__BroadcastAttackOfOpportunity = 0x001574C0; constexpr uintptr_t CNWSCreature__BroadcastBattleCry = 0x001529E0; constexpr uintptr_t CNWSCreature__BroadcastCombatStateToParty = 0x00152B60; constexpr uintptr_t CNWSCreature__BroadcastDamageDataToParty = 0x0016AC90; constexpr uintptr_t CNWSCreature__BroadcastDeathDataToParty = 0x0016B000; constexpr uintptr_t CNWSCreature__BroadcastFloatyData = 0x0016B2B0; constexpr uintptr_t CNWSCreature__BroadcastSavingThrowData = 0x0015D2C0; constexpr uintptr_t CNWSCreature__BroadcastSkillData = 0x0016B440; constexpr uintptr_t CNWSCreature__BroadcastSpellCast = 0x0016BD80; constexpr uintptr_t CNWSCreature__BroadcastVoiceChat = 0x0016D040; constexpr uintptr_t CNWSCreature__BroadcastWhirlwindAttack = 0x0015E010; constexpr uintptr_t CNWSCreature__BumpFriends = 0x0017D450; constexpr uintptr_t CNWSCreature__CalculateDamagePower = 0x00172110; constexpr uintptr_t CNWSCreature__CalculateDeathExperience = 0x00168380; constexpr uintptr_t CNWSCreature__CalculateMaxElementalDamage = 0x001B8300; constexpr uintptr_t CNWSCreature__CalculatePersonalReputationAdjustment = 0x00198780; constexpr uintptr_t CNWSCreature__CalculateProjectileTimeToTarget = 0x001AF170; constexpr uintptr_t CNWSCreature__CalculateSpellSaveDC = 0x0017FD90; constexpr uintptr_t CNWSCreature__CancelAction = 0x0015D750; constexpr uintptr_t CNWSCreature__CancelGoldTransfer = 0x0015B1A0; constexpr uintptr_t CNWSCreature__CancelRest = 0x0015AB70; constexpr uintptr_t CNWSCreature__CanEquipItem = 0x0018CF70; constexpr uintptr_t CNWSCreature__CanEquipMiscellaneous = 0x0018CCE0; constexpr uintptr_t CNWSCreature__CanEquipShield = 0x0018CBC0; constexpr uintptr_t CNWSCreature__CanEquipWeapon = 0x0018C180; constexpr uintptr_t CNWSCreature__CanUnEquipWeapon = 0x00198040; constexpr uintptr_t CNWSCreature__CanUseItem = 0x001A4D70; constexpr uintptr_t CNWSCreature__CheckInventoryForPlotItems = 0x0017EE00; constexpr uintptr_t CNWSCreature__CheckItemAlignmentRestrictions = 0x0018D340; constexpr uintptr_t CNWSCreature__CheckItemClassRestrictions = 0x0018D6F0; constexpr uintptr_t CNWSCreature__CheckItemRaceRestrictions = 0x0018D820; constexpr uintptr_t CNWSCreature__CheckMasterIsValid = 0x00158990; constexpr uintptr_t CNWSCreature__CheckProficiencies = 0x0018CDB0; constexpr uintptr_t CNWSCreature__CheckUseMagicDeviceSkill = 0x001A5350; constexpr uintptr_t CNWSCreature__CheckVisibleList = 0x001992B0; constexpr uintptr_t CNWSCreature__CleanInvitationLists = 0x001A5E00; constexpr uintptr_t CNWSCreature__CleanOutPersonalReputationList = 0x001A7A10; constexpr uintptr_t CNWSCreature__ClearAction = 0x0015A2B0; constexpr uintptr_t CNWSCreature__ClearActivities = 0x0014DAA0; constexpr uintptr_t CNWSCreature__ClearAutoMapData = 0x0014D4C0; constexpr uintptr_t CNWSCreature__ClearHostileActionsVersus = 0x00169B50; constexpr uintptr_t CNWSCreature__ClearPersonalReputation = 0x00199570; constexpr uintptr_t CNWSCreature__ClearVisibleList = 0x001992F0; constexpr uintptr_t CNWSCreature__ComputeAIState = 0x0014D670; constexpr uintptr_t CNWSCreature__ComputeAIStateOnAction = 0x0015E460; constexpr uintptr_t CNWSCreature__ComputeArmourClass = 0x00159980; constexpr uintptr_t CNWSCreature__ComputeModifiedMovementRate = 0x0017E640; constexpr uintptr_t CNWSCreature__ComputeSpellRange = 0x0014DE30; constexpr uintptr_t CNWSCreature__ComputeTotalEquippedWeight = 0x00158FB0; constexpr uintptr_t CNWSCreature__ComputeTotalWalkDistance = 0x001940E0; constexpr uintptr_t CNWSCreature__ComputeTotalWeightCarried = 0x0015A190; constexpr uintptr_t CNWSCreature__ConvertModeToggleQuickButton = 0x00167510; constexpr uintptr_t CNWSCreature__CopyQuickButtonsFromDM = 0x001677D0; constexpr uintptr_t CNWSCreature__CreateDefaultQuickButtons = 0x00166050; constexpr uintptr_t CNWSCreature__CreateDefaultQuickButtons_AddFeat = 0x00167690; constexpr uintptr_t CNWSCreature__CreateDefaultQuickButtons_CheckItem = 0x00167620; constexpr uintptr_t CNWSCreature__CreateDefaultQuickButtonsDM = 0x001675E0; constexpr uintptr_t CNWSCreature__CutWaypointPath = 0x0017AA80; constexpr uintptr_t CNWSCreature__DecrementSpellReadyCount = 0x00175C00; constexpr uintptr_t CNWSCreature__DesiredAttackRange = 0x0015E2F0; constexpr uintptr_t CNWSCreature__DestroyEquippedItems = 0x0015A130; constexpr uintptr_t CNWSCreature__DisplayFloatyDataToSelf = 0x0017E200; constexpr uintptr_t CNWSCreature__DMClearScripts = 0x001A26B0; constexpr uintptr_t CNWSCreature__DMResetClearedScripts = 0x001A30B0; constexpr uintptr_t CNWSCreature__DoCombatStep = 0x001A9810; constexpr uintptr_t CNWSCreature__DoDamage = 0x00171F80; constexpr uintptr_t CNWSCreature__DoListenDetection = 0x00169FC0; constexpr uintptr_t CNWSCreature__DoPerceptionUpdateOnCreature = 0x00168D10; constexpr uintptr_t CNWSCreature__DoSpotDetection = 0x0016A780; constexpr uintptr_t CNWSCreature__DoStealthDetection = 0x00169D50; constexpr uintptr_t CNWSCreature__DriveUpdateLocation = 0x00196160; constexpr uintptr_t CNWSCreature__DumpToLog = 0x0017F2A0; constexpr uintptr_t CNWSCreature__EquipItem = 0x00150D00; constexpr uintptr_t CNWSCreature__EquipMostDamagingAmmunition = 0x00175040; constexpr uintptr_t CNWSCreature__EquipMostDamagingMeleeWeapon = 0x001745C0; constexpr uintptr_t CNWSCreature__EquipMostDamagingRangedWeapon = 0x00174BB0; constexpr uintptr_t CNWSCreature__EquipMostEffectiveArmor = 0x00175680; constexpr uintptr_t CNWSCreature__EvaluateLock = 0x001591D0; constexpr uintptr_t CNWSCreature__EventHandler = 0x0015B250; constexpr uintptr_t CNWSCreature__ExternalResolveAttack = 0x001BEBC0; constexpr uintptr_t CNWSCreature__FailedOpenInformAssociates = 0x001A6E20; constexpr uintptr_t CNWSCreature__ForceMoveToPoint = 0x0015D960; constexpr uintptr_t CNWSCreature__GetActivity = 0x0014DE10; constexpr uintptr_t CNWSCreature__GetAmmunitionAvailable = 0x001AA3C0; constexpr uintptr_t CNWSCreature__GetArmorClass = 0x001717D0; constexpr uintptr_t CNWSCreature__GetAssociateId = 0x001A07F0; constexpr uintptr_t CNWSCreature__GetAttackResultHit = 0x001AC350; constexpr uintptr_t CNWSCreature__GetBarterInfo = 0x0015A250; constexpr uintptr_t CNWSCreature__GetBlind = 0x00169750; constexpr uintptr_t CNWSCreature__GetBodyBagAppearance = 0x0017EC50; constexpr uintptr_t CNWSCreature__GetCanSlayAlignment = 0x001BE320; constexpr uintptr_t CNWSCreature__GetCreatureReputation = 0x00198400; constexpr uintptr_t CNWSCreature__GetDamageFlags = 0x00172B10; constexpr uintptr_t CNWSCreature__GetDetectMode = 0x00159180; constexpr uintptr_t CNWSCreature__GetDialogInterruptable = 0x00180D80; constexpr uintptr_t CNWSCreature__GetDialogResref = 0x00180D10; constexpr uintptr_t CNWSCreature__GetDominatedCreatureId = 0x001A4700; constexpr uintptr_t CNWSCreature__GetEffectSpellId = 0x00180E00; constexpr uintptr_t CNWSCreature__GetFaction = 0x001983C0; constexpr uintptr_t CNWSCreature__GetFilteredEffectList = 0x00175C80; constexpr uintptr_t CNWSCreature__GetFirstName = 0x00180DC0; constexpr uintptr_t CNWSCreature__GetFlanked = 0x001B5E00; constexpr uintptr_t CNWSCreature__GetFlatFooted = 0x001B5D70; constexpr uintptr_t CNWSCreature__GetGender = 0x00180DA0; constexpr uintptr_t CNWSCreature__GetHasInvisbilityEffectApplied = 0x0016D260; constexpr uintptr_t CNWSCreature__GetHenchmanIndex = 0x00180360; constexpr uintptr_t CNWSCreature__GetInvisible = 0x00169780; constexpr uintptr_t CNWSCreature__GetIsAbleToPossessFamiliar = 0x00172D00; constexpr uintptr_t CNWSCreature__GetIsCreatureBumpable = 0x0017D180; constexpr uintptr_t CNWSCreature__GetIsInInvitationsIgnored = 0x001A5C00; constexpr uintptr_t CNWSCreature__GetIsInInvitationsOffered = 0x001A5710; constexpr uintptr_t CNWSCreature__GetIsInMelee = 0x001BE7F0; constexpr uintptr_t CNWSCreature__GetIsInUseRange = 0x00173990; constexpr uintptr_t CNWSCreature__GetIsPossessedFamiliar = 0x00182B60; constexpr uintptr_t CNWSCreature__GetIsWeaponEffective = 0x00175540; constexpr uintptr_t CNWSCreature__GetItemCount = 0x001714D0; constexpr uintptr_t CNWSCreature__GetJournal = 0x00173930; constexpr uintptr_t CNWSCreature__GetLastName = 0x00180DE0; constexpr uintptr_t CNWSCreature__GetListenCheckDistance = 0x00169730; constexpr uintptr_t CNWSCreature__GetLockOrientationToObject = 0x00180E30; constexpr uintptr_t CNWSCreature__GetMaxHitPoints = 0x001718B0; constexpr uintptr_t CNWSCreature__GetMode = 0x0016F8D0; constexpr uintptr_t CNWSCreature__GetMovementRateFactor = 0x00158800; constexpr uintptr_t CNWSCreature__GetNearestEnemy = 0x0016FA20; constexpr uintptr_t CNWSCreature__GetNumAssociatesOfType = 0x001A0770; constexpr uintptr_t CNWSCreature__GetNumCounterSpellingCreatures = 0x0016B5C0; constexpr uintptr_t CNWSCreature__GetNumInvited = 0x001A62B0; constexpr uintptr_t CNWSCreature__GetPortrait = 0x00180E40; constexpr uintptr_t CNWSCreature__GetPVPPlayerLikesMe = 0x001A62D0; constexpr uintptr_t CNWSCreature__GetPVPReputation = 0x001986A0; constexpr uintptr_t CNWSCreature__GetQuickbarButton = 0x001679A0; constexpr uintptr_t CNWSCreature__GetRangeWeaponEquipped = 0x0015A1C0; constexpr uintptr_t CNWSCreature__GetRelativeWeaponSize = 0x00150FD0; constexpr uintptr_t CNWSCreature__GetRunRate = 0x00168550; constexpr uintptr_t CNWSCreature__GetSpellOrHealActionQueued = 0x0016D190; constexpr uintptr_t CNWSCreature__GetSpotCheckDistance = 0x00168930; constexpr uintptr_t CNWSCreature__GetStandardFactionReputation = 0x001A7540; constexpr uintptr_t CNWSCreature__GetTileExplored = 0x00158B80; constexpr uintptr_t CNWSCreature__GetTotalEffectBonus = 0x00176700; constexpr uintptr_t CNWSCreature__GetTurnResistanceHD = 0x0017D0E0; constexpr uintptr_t CNWSCreature__GetUnarmed = 0x0015A220; constexpr uintptr_t CNWSCreature__GetUseMonkAbilities = 0x001685A0; constexpr uintptr_t CNWSCreature__GetUseRange = 0x0017CBF0; constexpr uintptr_t CNWSCreature__GetVisibleListElement = 0x001990B0; constexpr uintptr_t CNWSCreature__GetWalkRate = 0x00168500; constexpr uintptr_t CNWSCreature__GetWeaponPower = 0x00172660; constexpr uintptr_t CNWSCreature__HandleSubAreaStateChanges = 0x00193240; constexpr uintptr_t CNWSCreature__InitialisePVPList = 0x001A7410; constexpr uintptr_t CNWSCreature__InitializeQuickbar = 0x00167070; constexpr uintptr_t CNWSCreature__LearnScroll = 0x0017F7A0; constexpr uintptr_t CNWSCreature__LoadAssociateList = 0x00163390; constexpr uintptr_t CNWSCreature__LoadAutoMapData = 0x00165CA0; constexpr uintptr_t CNWSCreature__LoadCreature = 0x001637A0; constexpr uintptr_t CNWSCreature__LoadFromTemplate = 0x0015F3B0; constexpr uintptr_t CNWSCreature__LoadPersonalReputationList = 0x00161C30; constexpr uintptr_t CNWSCreature__LoadPolymorphData = 0x00164100; constexpr uintptr_t CNWSCreature__LoadQuickBarHack = 0x0017E990; constexpr uintptr_t CNWSCreature__LoadQuickButtons = 0x001645B0; constexpr uintptr_t CNWSCreature__MaxAttackRange = 0x0015E260; constexpr uintptr_t CNWSCreature__MergeItem = 0x00158DC0; constexpr uintptr_t CNWSCreature__NotifyAssociateActionToggle = 0x0016F7C0; constexpr uintptr_t CNWSCreature__PacifyCreature__0 = 0x0017CEE0; constexpr uintptr_t CNWSCreature__PacifyCreature__1 = 0x0017C660; constexpr uintptr_t CNWSCreature__PayToIdentifyItem = 0x00175B60; constexpr uintptr_t CNWSCreature__Polymorph = 0x0017AB80; constexpr uintptr_t CNWSCreature__PossessCreature = 0x001A2520; constexpr uintptr_t CNWSCreature__PossessCreatureDM = 0x001A2630; constexpr uintptr_t CNWSCreature__PossessFamiliar = 0x001A20B0; constexpr uintptr_t CNWSCreature__PostProcess = 0x00160D40; constexpr uintptr_t CNWSCreature__ProcessMasterDeathForAssociates = 0x001A4820; constexpr uintptr_t CNWSCreature__ProcessPendingCombatActions = 0x0015AD80; constexpr uintptr_t CNWSCreature__QuickbarButton_RemoveItem = 0x00174230; constexpr uintptr_t CNWSCreature__QuickbarButton_RemoveSpell = 0x00174350; constexpr uintptr_t CNWSCreature__ReadItemsFromGff = 0x00160010; constexpr uintptr_t CNWSCreature__ReadScriptsFromGff = 0x0015F750; constexpr uintptr_t CNWSCreature__RealizeAssociateList = 0x00163EA0; constexpr uintptr_t CNWSCreature__ReceiveAssociateCommand = 0x0019AD80; constexpr uintptr_t CNWSCreature__RecomputeAmbientAnimationState = 0x0015B090; constexpr uintptr_t CNWSCreature__ReconcileAutoMapData = 0x00153960; constexpr uintptr_t CNWSCreature__RelayQuickChatCommandToAssociates = 0x001A1FB0; constexpr uintptr_t CNWSCreature__RemoveAllAssociates = 0x001A7830; constexpr uintptr_t CNWSCreature__RemoveAssociate = 0x0019FCF0; constexpr uintptr_t CNWSCreature__RemoveBadEffects = 0x001713A0; constexpr uintptr_t CNWSCreature__RemoveCharmEffectsByFactionID = 0x0015DCF0; constexpr uintptr_t CNWSCreature__RemoveCharmEffectsByOBJECTID = 0x00170EE0; constexpr uintptr_t CNWSCreature__RemoveCombatInvisibilityEffects = 0x0015D660; constexpr uintptr_t CNWSCreature__RemoveCounterspeller = 0x0015AF70; constexpr uintptr_t CNWSCreature__RemoveDomination = 0x001A4680; constexpr uintptr_t CNWSCreature__RemoveDominationEffect = 0x001A0B10; constexpr uintptr_t CNWSCreature__RemoveFromArea = 0x0014D140; constexpr uintptr_t CNWSCreature__RemoveFromAssociateList = 0x0019F9D0; constexpr uintptr_t CNWSCreature__RemoveFromInvitationsOffered = 0x001A59D0; constexpr uintptr_t CNWSCreature__RemoveFromPVPList = 0x001A6F80; constexpr uintptr_t CNWSCreature__RemoveFromVisibleList = 0x00198F50; constexpr uintptr_t CNWSCreature__RemoveGold = 0x00173330; constexpr uintptr_t CNWSCreature__RemoveItem = 0x00185FF0; constexpr uintptr_t CNWSCreature__RemoveItemFromRepository = 0x001802A0; constexpr uintptr_t CNWSCreature__RemovePolymorphFromOutputCreature = 0x001808F0; constexpr uintptr_t CNWSCreature__RemoveSleepEffects = 0x00171270; constexpr uintptr_t CNWSCreature__RemoveSpellActionFromRound = 0x0017D020; constexpr uintptr_t CNWSCreature__RemoveWoundingEffects = 0x00171450; constexpr uintptr_t CNWSCreature__ReplyToInvitation = 0x001A5550; constexpr uintptr_t CNWSCreature__ReprocessAssociateList = 0x0019FC00; constexpr uintptr_t CNWSCreature__RequestBuy = 0x00172D30; constexpr uintptr_t CNWSCreature__RequestSell = 0x00172E30; constexpr uintptr_t CNWSCreature__ResetItemPossessor = 0x001A5270; constexpr uintptr_t CNWSCreature__ResetPCDominatedScripts = 0x001A4010; constexpr uintptr_t CNWSCreature__ResetUpdateTimes = 0x001541B0; constexpr uintptr_t CNWSCreature__ResolveAmmunition = 0x001AF040; constexpr uintptr_t CNWSCreature__ResolveAttack = 0x001A9460; constexpr uintptr_t CNWSCreature__ResolveAttackRoll = 0x001ABC50; constexpr uintptr_t CNWSCreature__ResolveCachedSpecialAttacks = 0x001AAED0; constexpr uintptr_t CNWSCreature__ResolveDamage = 0x001AC380; constexpr uintptr_t CNWSCreature__ResolveDamageShields = 0x001BE400; constexpr uintptr_t CNWSCreature__ResolveDeathAttack = 0x001B4BD0; constexpr uintptr_t CNWSCreature__ResolveDefensiveEffects = 0x001B5480; constexpr uintptr_t CNWSCreature__ResolveElementalDamage = 0x001B6320; constexpr uintptr_t CNWSCreature__ResolveInitiative = 0x00152CF0; constexpr uintptr_t CNWSCreature__ResolveItemCastSpell = 0x001B7840; constexpr uintptr_t CNWSCreature__ResolveMeleeAnimations = 0x001B25D0; constexpr uintptr_t CNWSCreature__ResolveMeleeAttack = 0x001AA210; constexpr uintptr_t CNWSCreature__ResolveMeleeSpecialAttack = 0x001AF220; constexpr uintptr_t CNWSCreature__ResolveOnHitEffect = 0x001B6370; constexpr uintptr_t CNWSCreature__ResolveOnHitVisuals = 0x001B7AC0; constexpr uintptr_t CNWSCreature__ResolvePostMeleeDamage = 0x001B1510; constexpr uintptr_t CNWSCreature__ResolvePostRangedDamage = 0x001ACAF0; constexpr uintptr_t CNWSCreature__ResolveRangedAnimations = 0x001AE220; constexpr uintptr_t CNWSCreature__ResolveRangedAttack = 0x001AA010; constexpr uintptr_t CNWSCreature__ResolveRangedMiss = 0x001AD470; constexpr uintptr_t CNWSCreature__ResolveRangedSpecialAttack = 0x001AB1D0; constexpr uintptr_t CNWSCreature__ResolveSafeProjectile = 0x001AEEC0; constexpr uintptr_t CNWSCreature__ResolveSituationalModifiers = 0x001AADC0; constexpr uintptr_t CNWSCreature__ResolveSneakAttack = 0x001B40C0; constexpr uintptr_t CNWSCreature__Rest = 0x00170A10; constexpr uintptr_t CNWSCreature__RestoreCutsceneVars = 0x00180410; constexpr uintptr_t CNWSCreature__RestoreItemProperties = 0x0016F670; constexpr uintptr_t CNWSCreature__RestoreItemPropertiesInRepository = 0x0016F6E0; constexpr uintptr_t CNWSCreature__RestorePolymorphToOutputCreature = 0x00180BB0; constexpr uintptr_t CNWSCreature__RunEquip = 0x00150580; constexpr uintptr_t CNWSCreature__RunUnequip = 0x001512E0; constexpr uintptr_t CNWSCreature__SaveAssociateList = 0x001620C0; constexpr uintptr_t CNWSCreature__SaveAutoMapData = 0x00165F30; constexpr uintptr_t CNWSCreature__SaveCreature = 0x001623C0; constexpr uintptr_t CNWSCreature__SavePersonalReputationList = 0x00161A30; constexpr uintptr_t CNWSCreature__SaveQuickBarHack = 0x0017EA60; constexpr uintptr_t CNWSCreature__SaveQuickButtons = 0x00165550; constexpr uintptr_t CNWSCreature__SavingThrowRoll = 0x001B2F40; constexpr uintptr_t CNWSCreature__SawTrapInformAssociates = 0x001A6320; constexpr uintptr_t CNWSCreature__SendFeedbackMessage = 0x00150200; constexpr uintptr_t CNWSCreature__SendFeedbackString = 0x0017A9B0; constexpr uintptr_t CNWSCreature__SetActivity = 0x0014D810; constexpr uintptr_t CNWSCreature__SetAllTilesExplored = 0x00153400; constexpr uintptr_t CNWSCreature__SetAnimation = 0x00159800; constexpr uintptr_t CNWSCreature__SetAssociateListenPatterns = 0x001A0BB0; constexpr uintptr_t CNWSCreature__SetAssociatesToForgetAggression = 0x001A7110; constexpr uintptr_t CNWSCreature__SetAssociateType = 0x0014C5E0; constexpr uintptr_t CNWSCreature__SetAutoMapData = 0x0017F490; constexpr uintptr_t CNWSCreature__SetBroadcastedAOOTo = 0x001574A0; constexpr uintptr_t CNWSCreature__SetCombatMode = 0x001866D0; constexpr uintptr_t CNWSCreature__SetCombatState = 0x00157420; constexpr uintptr_t CNWSCreature__SetDefensiveCastingMode = 0x00186670; constexpr uintptr_t CNWSCreature__SetDetectMode = 0x00186560; constexpr uintptr_t CNWSCreature__SetEffectSpellId = 0x00180E10; constexpr uintptr_t CNWSCreature__SetExcitedState = 0x0015DB90; constexpr uintptr_t CNWSCreature__SetGold = 0x00175A50; constexpr uintptr_t CNWSCreature__SetId = 0x0014D5C0; constexpr uintptr_t CNWSCreature__SetInTransit = 0x0017AB40; constexpr uintptr_t CNWSCreature__SetInvitedToParty = 0x0017F250; constexpr uintptr_t CNWSCreature__SetLockOrientationToObject = 0x001700B0; constexpr uintptr_t CNWSCreature__SetMode = 0x0016F9E0; constexpr uintptr_t CNWSCreature__SetMovementRateFactor = 0x0014C4F0; constexpr uintptr_t CNWSCreature__SetPCDominatedScripts = 0x001A3760; constexpr uintptr_t CNWSCreature__SetPortrait = 0x00180EB0; constexpr uintptr_t CNWSCreature__SetPortraitId = 0x00171D80; constexpr uintptr_t CNWSCreature__SetPVPPlayerLikesMe = 0x001A7020; constexpr uintptr_t CNWSCreature__SetQuickbarButton_AssociateCommand = 0x00173D20; constexpr uintptr_t CNWSCreature__SetQuickbarButton_CommandLine = 0x001740F0; constexpr uintptr_t CNWSCreature__SetQuickbarButton_DM_General_ResRefParam = 0x00174150; constexpr uintptr_t CNWSCreature__SetQuickbarButton_DungeonMaster_CreateCreature = 0x00173D70; constexpr uintptr_t CNWSCreature__SetQuickbarButton_DungeonMaster_CreateEncounter = 0x00173E70; constexpr uintptr_t CNWSCreature__SetQuickbarButton_DungeonMaster_CreateItem = 0x00173DF0; constexpr uintptr_t CNWSCreature__SetQuickbarButton_DungeonMaster_CreatePlaceable = 0x00174070; constexpr uintptr_t CNWSCreature__SetQuickbarButton_DungeonMaster_CreatePortal = 0x00173FF0; constexpr uintptr_t CNWSCreature__SetQuickbarButton_DungeonMaster_CreateTrigger = 0x00173F70; constexpr uintptr_t CNWSCreature__SetQuickbarButton_DungeonMaster_CreateWaypoint = 0x00173EF0; constexpr uintptr_t CNWSCreature__SetQuickbarButton_GeneralINTParam = 0x001741F0; constexpr uintptr_t CNWSCreature__SetQuickbarButton_GeneralNoParam = 0x001741C0; constexpr uintptr_t CNWSCreature__SetQuickbarButton_Item = 0x00173C50; constexpr uintptr_t CNWSCreature__SetQuickbarButton_Spell = 0x00173C90; constexpr uintptr_t CNWSCreature__SetQuickbarButton_SpellLikeAbility = 0x00173CE0; constexpr uintptr_t CNWSCreature__SetStandardFactionReputation = 0x001A76D0; constexpr uintptr_t CNWSCreature__SetStealthMode = 0x00186580; constexpr uintptr_t CNWSCreature__SetTileExplored = 0x00158CA0; constexpr uintptr_t CNWSCreature__SignalMeleeDamage = 0x001B27F0; constexpr uintptr_t CNWSCreature__SignalRangedDamage = 0x001AE870; constexpr uintptr_t CNWSCreature__SpawnInHeartbeatPerception = 0x001549C0; constexpr uintptr_t CNWSCreature__SplitItem = 0x00159010; constexpr uintptr_t CNWSCreature__StartBarter = 0x00173400; constexpr uintptr_t CNWSCreature__StartGuiTimingBar = 0x0017F1D0; constexpr uintptr_t CNWSCreature__StopGuiTimingBar = 0x0015B120; constexpr uintptr_t CNWSCreature__StoreCutsceneVars = 0x001803F0; constexpr uintptr_t CNWSCreature__SummonAnimalCompanion = 0x001A1080; constexpr uintptr_t CNWSCreature__SummonAssociate = 0x001A1620; constexpr uintptr_t CNWSCreature__SummonFamiliar = 0x001A1A30; constexpr uintptr_t CNWSCreature__TerminateClientSidePath = 0x00190AF0; constexpr uintptr_t CNWSCreature__TestAIStateAsMode = 0x0014D740; constexpr uintptr_t CNWSCreature__ToggleMode = 0x0016EE30; constexpr uintptr_t CNWSCreature__TransferGold = 0x00173050; constexpr uintptr_t CNWSCreature__TranslateAddress = 0x00168CB0; constexpr uintptr_t CNWSCreature__UnequipItem = 0x00150EE0; constexpr uintptr_t CNWSCreature__UnPolymorph = 0x0017BFE0; constexpr uintptr_t CNWSCreature__UnpossessCreature = 0x001A2F90; constexpr uintptr_t CNWSCreature__UnpossessCreatureDM = 0x001A3050; constexpr uintptr_t CNWSCreature__UnpossessFamiliar = 0x0019DB00; constexpr uintptr_t CNWSCreature__UnsummonMyself = 0x001A0890; constexpr uintptr_t CNWSCreature__UpdateActionQueue = 0x00157F40; constexpr uintptr_t CNWSCreature__UpdateAppearanceDependantInfo = 0x00168950; constexpr uintptr_t CNWSCreature__UpdateAppearanceForEquippedItems = 0x00172B80; constexpr uintptr_t CNWSCreature__UpdateAttributesOnEffect = 0x0015ED00; constexpr uintptr_t CNWSCreature__UpdateAutoMap = 0x001535A0; constexpr uintptr_t CNWSCreature__UpdateCombatRoundTimer = 0x001550B0; constexpr uintptr_t CNWSCreature__UpdateEffectPtrs = 0x0015E7F0; constexpr uintptr_t CNWSCreature__UpdateEncumbranceState = 0x0018DC70; constexpr uintptr_t CNWSCreature__UpdateExcitedStateTimer = 0x001551E0; constexpr uintptr_t CNWSCreature__UpdatePersonalSpace = 0x001686D0; constexpr uintptr_t CNWSCreature__UpdateSpecialAttacks = 0x0017F100; constexpr uintptr_t CNWSCreature__UpdateSubareasOnJumpPosition = 0x0018EAF0; constexpr uintptr_t CNWSCreature__UpdateSubareasOnMoveTo = 0x00192890; constexpr uintptr_t CNWSCreature__UpdateTrapCheck = 0x00155280; constexpr uintptr_t CNWSCreature__UpdateTrapCheckDM = 0x00159170; constexpr uintptr_t CNWSCreature__UpdateVisibleList = 0x00198B40; constexpr uintptr_t CNWSCreature__UseFeat = 0x0016D2D0; constexpr uintptr_t CNWSCreature__UseItem = 0x0016F390; constexpr uintptr_t CNWSCreature__UseLoreOnItem = 0x001758B0; constexpr uintptr_t CNWSCreature__UseSkill = 0x0016E610; constexpr uintptr_t CNWSCreature__ValidateCounterSpellData = 0x0016BC40; constexpr uintptr_t CNWSCreature__WalkUpdateLocation = 0x00192130; constexpr uintptr_t CNWSCreature__WalkUpdateLocationDistance = 0x00194210; constexpr uintptr_t CNWSCreature__WalkUpdateLocationTestDistance = 0x00194AB0; constexpr uintptr_t CNWSCreatureStats__CNWSCreatureStatsCtor__0 = 0x001C0430; constexpr uintptr_t CNWSCreatureStats__CNWSCreatureStatsDtor__0 = 0x001C0EA0; constexpr uintptr_t CNWSCreatureStats__AddExperience = 0x00247990; constexpr uintptr_t CNWSCreatureStats__AddFeat = 0x0023C490; constexpr uintptr_t CNWSCreatureStats__AddKnownSpell = 0x0023D7D0; constexpr uintptr_t CNWSCreatureStats__AddSpellLikeAbilityToList = 0x0023CE90; constexpr uintptr_t CNWSCreatureStats__AdjustAlignment = 0x00216420; constexpr uintptr_t CNWSCreatureStats__AdjustSpellUsesPerDay = 0x00267920; constexpr uintptr_t CNWSCreatureStats__AutoMemorizeSpells = 0x0025EC90; constexpr uintptr_t CNWSCreatureStats__CalcLevelUpNumberFeats = 0x0025A810; constexpr uintptr_t CNWSCreatureStats__CalcStatModifier = 0x00244680; constexpr uintptr_t CNWSCreatureStats__CanChooseFeat = 0x0025E800; constexpr uintptr_t CNWSCreatureStats__CanLevelUp = 0x00245E30; constexpr uintptr_t CNWSCreatureStats__CheckSpellSuitability = 0x00262AC0; constexpr uintptr_t CNWSCreatureStats__ClearFeats = 0x001C12E0; constexpr uintptr_t CNWSCreatureStats__ClearMemorizedSpellSlot = 0x0024B5B0; constexpr uintptr_t CNWSCreatureStats__ComputeFeatBonuses = 0x0025BF40; constexpr uintptr_t CNWSCreatureStats__ComputeNumberKnownSpellsLeft = 0x0024B010; constexpr uintptr_t CNWSCreatureStats__ConfirmDomainSpell = 0x0024B310; constexpr uintptr_t CNWSCreatureStats__DecrementFeatRemainingUses = 0x0024AD20; constexpr uintptr_t CNWSCreatureStats__DecrementSpellsPerDayLeft = 0x002586E0; constexpr uintptr_t CNWSCreatureStats__FeatAcquired = 0x002622B0; constexpr uintptr_t CNWSCreatureStats__FeatRequirementsMet = 0x00261630; constexpr uintptr_t CNWSCreatureStats__FeatRequirementsMetAfterLevelUp = 0x0025A940; constexpr uintptr_t CNWSCreatureStats__GetAbilityModsFromFeats = 0x0026DA70; constexpr uintptr_t CNWSCreatureStats__GetACNaturalBase = 0x001C4D40; constexpr uintptr_t CNWSCreatureStats__GetAlignmentString = 0x002446B0; constexpr uintptr_t CNWSCreatureStats__GetArmorClassVersus = 0x001C1C70; constexpr uintptr_t CNWSCreatureStats__GetAttackModifierVersus = 0x00204020; constexpr uintptr_t CNWSCreatureStats__GetAttacksPerRound = 0x001D4EA0; constexpr uintptr_t CNWSCreatureStats__GetBaseAttackBonus = 0x001D4AF0; constexpr uintptr_t CNWSCreatureStats__GetBaseFortSavingThrow = 0x002191D0; constexpr uintptr_t CNWSCreatureStats__GetBaseReflexSavingThrow = 0x0021B320; constexpr uintptr_t CNWSCreatureStats__GetBaseWillSavingThrow = 0x0021A110; constexpr uintptr_t CNWSCreatureStats__GetBonusFeat = 0x0021C280; constexpr uintptr_t CNWSCreatureStats__GetCanUseRelatedCategory = 0x002650E0; constexpr uintptr_t CNWSCreatureStats__GetCanUseSkill = 0x00247FE0; constexpr uintptr_t CNWSCreatureStats__GetCanUseSkillAfterLevelUp = 0x00268210; constexpr uintptr_t CNWSCreatureStats__GetCasterLevel = 0x002652B0; constexpr uintptr_t CNWSCreatureStats__GetCHAStat = 0x001C1960; constexpr uintptr_t CNWSCreatureStats__GetClass = 0x001C1930; constexpr uintptr_t CNWSCreatureStats__GetClassInfo = 0x0020D460; constexpr uintptr_t CNWSCreatureStats__GetClassLevel = 0x001C1B10; constexpr uintptr_t CNWSCreatureStats__GetClassNegativeLevels = 0x00216190; constexpr uintptr_t CNWSCreatureStats__GetClassString = 0x002445E0; constexpr uintptr_t CNWSCreatureStats__GetCONStat = 0x00217DD0; constexpr uintptr_t CNWSCreatureStats__GetCreatureDamageDice = 0x001E1060; constexpr uintptr_t CNWSCreatureStats__GetCreatureDamageDie = 0x001E11D0; constexpr uintptr_t CNWSCreatureStats__GetCreatureHasTalent = 0x0024B900; constexpr uintptr_t CNWSCreatureStats__GetCreatureTalentRandom = 0x0024C0A0; constexpr uintptr_t CNWSCreatureStats__GetCreatureTalentRandomFeat = 0x0024F2D0; constexpr uintptr_t CNWSCreatureStats__GetCreatureTalentRandomKnownSpell = 0x00262E20; constexpr uintptr_t CNWSCreatureStats__GetCreatureTalentRandomMemorisedSpell = 0x00263D60; constexpr uintptr_t CNWSCreatureStats__GetCreatureTalentRandomSkill = 0x0024F820; constexpr uintptr_t CNWSCreatureStats__GetCreatureTalentRandomSpell = 0x0024F1E0; constexpr uintptr_t CNWSCreatureStats__GetCreatureTalentRandomSpellFromItem = 0x0024C390; constexpr uintptr_t CNWSCreatureStats__GetCreatureTalentRandomSpellLikeAbility = 0x0024E840; constexpr uintptr_t CNWSCreatureStats__GetCriticalHitMultiplier = 0x001E1340; constexpr uintptr_t CNWSCreatureStats__GetCriticalHitRoll = 0x001E1700; constexpr uintptr_t CNWSCreatureStats__GetDamageBonus = 0x0020D4D0; constexpr uintptr_t CNWSCreatureStats__GetDamageRoll = 0x0021C2A0; constexpr uintptr_t CNWSCreatureStats__GetDEXMod = 0x001C5E50; constexpr uintptr_t CNWSCreatureStats__GetDEXStat = 0x00217D30; constexpr uintptr_t CNWSCreatureStats__GetDomain1 = 0x0023C400; constexpr uintptr_t CNWSCreatureStats__GetDomain2 = 0x0023C460; constexpr uintptr_t CNWSCreatureStats__GetEffectImmunity = 0x00265390; constexpr uintptr_t CNWSCreatureStats__GetEffectiveCRForPotentialLevel = 0x00247DD0; constexpr uintptr_t CNWSCreatureStats__GetEpicWeaponDevastatingCritical = 0x0024FDF0; constexpr uintptr_t CNWSCreatureStats__GetEpicWeaponFocus = 0x001E9140; constexpr uintptr_t CNWSCreatureStats__GetEpicWeaponOverwhelmingCritical = 0x00228ED0; constexpr uintptr_t CNWSCreatureStats__GetEpicWeaponSpecialization = 0x001FCBA0; constexpr uintptr_t CNWSCreatureStats__GetExpNeededForLevelUp = 0x00247BF0; constexpr uintptr_t CNWSCreatureStats__GetFavoredEnemyBonus = 0x0020CE20; constexpr uintptr_t CNWSCreatureStats__GetFeat = 0x0021C260; constexpr uintptr_t CNWSCreatureStats__GetFeatRemainingUses = 0x00241900; constexpr uintptr_t CNWSCreatureStats__GetFeatSourceClass = 0x002683C0; constexpr uintptr_t CNWSCreatureStats__GetFeatTotalUses = 0x00248210; constexpr uintptr_t CNWSCreatureStats__GetFortSavingThrow = 0x00217FD0; constexpr uintptr_t CNWSCreatureStats__GetFullName = 0x001C1350; constexpr uintptr_t CNWSCreatureStats__GetHasLostClassAbilities = 0x002161E0; constexpr uintptr_t CNWSCreatureStats__GetHasSilencedSpell = 0x0024B720; constexpr uintptr_t CNWSCreatureStats__GetHasStilledSpell = 0x0024B810; constexpr uintptr_t CNWSCreatureStats__GetHighestLevelKnown = 0x0024B610; constexpr uintptr_t CNWSCreatureStats__GetHighestLevelOfFeat = 0x0024AC10; constexpr uintptr_t CNWSCreatureStats__GetHitDie = 0x00258740; constexpr uintptr_t CNWSCreatureStats__GetINTStat = 0x001C19E0; constexpr uintptr_t CNWSCreatureStats__GetIsClass = 0x0020D490; constexpr uintptr_t CNWSCreatureStats__GetIsClassAvailable = 0x0025A5B0; constexpr uintptr_t CNWSCreatureStats__GetIsDomainSpell = 0x00241850; constexpr uintptr_t CNWSCreatureStats__GetIsEpitomeOfAlignment = 0x00216240; constexpr uintptr_t CNWSCreatureStats__GetIsInKnownSpellList = 0x00258100; constexpr uintptr_t CNWSCreatureStats__GetIsInSpellLikeAbilityList = 0x0024C060; constexpr uintptr_t CNWSCreatureStats__GetIsWeaponOfChoice = 0x001F02F0; constexpr uintptr_t CNWSCreatureStats__GetKnownSpell = 0x00241700; constexpr uintptr_t CNWSCreatureStats__GetLargePortrait = 0x00244440; constexpr uintptr_t CNWSCreatureStats__GetLevel = 0x001C1B60; constexpr uintptr_t CNWSCreatureStats__GetLevelStats = 0x002161C0; constexpr uintptr_t CNWSCreatureStats__GetMeetsPrestigeClassRequirements = 0x0025B2B0; constexpr uintptr_t CNWSCreatureStats__GetMeleeAttackBonus = 0x001DDD80; constexpr uintptr_t CNWSCreatureStats__GetMeleeDamageBonus = 0x001DED50; constexpr uintptr_t CNWSCreatureStats__GetMemorizedSpellInSlot = 0x00241790; constexpr uintptr_t CNWSCreatureStats__GetMemorizedSpellInSlotMetaType = 0x002418A0; constexpr uintptr_t CNWSCreatureStats__GetMemorizedSpellInSlotReady = 0x002417F0; constexpr uintptr_t CNWSCreatureStats__GetMemorizedSpellReadyCount__0 = 0x00262D30; constexpr uintptr_t CNWSCreatureStats__GetMemorizedSpellReadyCount__1 = 0x00262CB0; constexpr uintptr_t CNWSCreatureStats__GetMemorizedSpellReadyCount__2 = 0x00262C60; constexpr uintptr_t CNWSCreatureStats__GetMetamagicPrerequisitesMet = 0x00256FA0; constexpr uintptr_t CNWSCreatureStats__GetNumberKnownSpells = 0x002416C0; constexpr uintptr_t CNWSCreatureStats__GetNumberMemorizedSpellSlots = 0x00241750; constexpr uintptr_t CNWSCreatureStats__GetNumberOfBonusSpells = 0x00265170; constexpr uintptr_t CNWSCreatureStats__GetNumLevelsOfClass__0 = 0x001F5910; constexpr uintptr_t CNWSCreatureStats__GetNumLevelsOfClass__1 = 0x001D4C90; constexpr uintptr_t CNWSCreatureStats__GetPotentialLevel = 0x00247CC0; constexpr uintptr_t CNWSCreatureStats__GetPrimaryMod = 0x00262320; constexpr uintptr_t CNWSCreatureStats__GetRaceString = 0x00244500; constexpr uintptr_t CNWSCreatureStats__GetRangedAttackBonus = 0x001D6C70; constexpr uintptr_t CNWSCreatureStats__GetRangedDamageBonus = 0x001DA7F0; constexpr uintptr_t CNWSCreatureStats__GetReflexSavingThrow = 0x00218BD0; constexpr uintptr_t CNWSCreatureStats__GetSchool = 0x001C1AE0; constexpr uintptr_t CNWSCreatureStats__GetSimpleAlignmentGoodEvil = 0x001D4AC0; constexpr uintptr_t CNWSCreatureStats__GetSimpleAlignmentLawChaos = 0x001D4A90; constexpr uintptr_t CNWSCreatureStats__GetSkillRank = 0x001C5F60; constexpr uintptr_t CNWSCreatureStats__GetSmallPortrait = 0x00244380; constexpr uintptr_t CNWSCreatureStats__GetSpellFailure = 0x00267A80; constexpr uintptr_t CNWSCreatureStats__GetSpellGainWithBonus = 0x001C1430; constexpr uintptr_t CNWSCreatureStats__GetSpellGainWithBonusAfterLevelUp = 0x00267AC0; constexpr uintptr_t CNWSCreatureStats__GetSpellLikeAbilityCasterLevel = 0x00267A30; constexpr uintptr_t CNWSCreatureStats__GetSpellMinAbilityMet = 0x0024B3D0; constexpr uintptr_t CNWSCreatureStats__GetSpellResistance = 0x001DEF60; constexpr uintptr_t CNWSCreatureStats__GetSpellsOfLevelReady = 0x002686D0; constexpr uintptr_t CNWSCreatureStats__GetSpellsPerDayLeft = 0x00241680; constexpr uintptr_t CNWSCreatureStats__GetSpellUsesLeft = 0x0024BC50; constexpr uintptr_t CNWSCreatureStats__GetStatBonusesFromFeats = 0x00268770; constexpr uintptr_t CNWSCreatureStats__GetStatById = 0x00262530; constexpr uintptr_t CNWSCreatureStats__GetSTRStat = 0x00217CB0; constexpr uintptr_t CNWSCreatureStats__GetTag = 0x0023B9A0; constexpr uintptr_t CNWSCreatureStats__GetTotalACSkillMod = 0x00268650; constexpr uintptr_t CNWSCreatureStats__GetTotalCHABonus = 0x00217F90; constexpr uintptr_t CNWSCreatureStats__GetTotalCONBonus = 0x00217ED0; constexpr uintptr_t CNWSCreatureStats__GetTotalDEXBonus = 0x00217E90; constexpr uintptr_t CNWSCreatureStats__GetTotalINTBonus = 0x00217F10; constexpr uintptr_t CNWSCreatureStats__GetTotalNegativeLevels = 0x00248170; constexpr uintptr_t CNWSCreatureStats__GetTotalSTRBonus = 0x00217E50; constexpr uintptr_t CNWSCreatureStats__GetTotalWISBonus = 0x00217F50; constexpr uintptr_t CNWSCreatureStats__GetUnarmedDamageDice = 0x001E0D70; constexpr uintptr_t CNWSCreatureStats__GetUnarmedDamageDie = 0x001E0E80; constexpr uintptr_t CNWSCreatureStats__GetUnarmedDamageRoll = 0x00203D50; constexpr uintptr_t CNWSCreatureStats__GetUseMonkAttackTables = 0x001D5020; constexpr uintptr_t CNWSCreatureStats__GetWeaponFinesse = 0x001E1B90; constexpr uintptr_t CNWSCreatureStats__GetWeaponFocus = 0x001E1FF0; constexpr uintptr_t CNWSCreatureStats__GetWeaponImprovedCritical = 0x00230080; constexpr uintptr_t CNWSCreatureStats__GetWeaponSpecialization = 0x001F59F0; constexpr uintptr_t CNWSCreatureStats__GetWillSavingThrow = 0x002185D0; constexpr uintptr_t CNWSCreatureStats__GetWISStat = 0x001C1A60; constexpr uintptr_t CNWSCreatureStats__HasFeat = 0x001C5AC0; constexpr uintptr_t CNWSCreatureStats__IncrementFeatRemainingUses = 0x0024AD60; constexpr uintptr_t CNWSCreatureStats__IncrementSpellsPerDayLeft = 0x00258710; constexpr uintptr_t CNWSCreatureStats__LevelDown = 0x00244910; constexpr uintptr_t CNWSCreatureStats__LevelUp = 0x00246120; constexpr uintptr_t CNWSCreatureStats__LevelUpAutomatic = 0x0025C3B0; constexpr uintptr_t CNWSCreatureStats__ModifyAlignment = 0x002162E0; constexpr uintptr_t CNWSCreatureStats__ModifyNumberBonusSpells = 0x002651B0; constexpr uintptr_t CNWSCreatureStats__ReadSpellsFromGff = 0x0023CFD0; constexpr uintptr_t CNWSCreatureStats__ReadStatsFromGff = 0x002371D0; constexpr uintptr_t CNWSCreatureStats__ReadySpellLevel = 0x002581E0; constexpr uintptr_t CNWSCreatureStats__RemoveFeat = 0x0024ADB0; constexpr uintptr_t CNWSCreatureStats__RemoveKnownSpell = 0x0024B150; constexpr uintptr_t CNWSCreatureStats__ResetFeatRemainingUses = 0x0024ACE0; constexpr uintptr_t CNWSCreatureStats__ResetSpellLikeAbilities = 0x00262490; constexpr uintptr_t CNWSCreatureStats__ResetSpellsPerDayLeft = 0x00258320; constexpr uintptr_t CNWSCreatureStats__ResolveSpecialAttackAttackBonus = 0x0020C8F0; constexpr uintptr_t CNWSCreatureStats__ResolveSpecialAttackDamageBonus = 0x00212850; constexpr uintptr_t CNWSCreatureStats__SaveClassInfo = 0x0023FF30; constexpr uintptr_t CNWSCreatureStats__SaveStats = 0x0023EF30; constexpr uintptr_t CNWSCreatureStats__SetArcaneSpellFailure = 0x00265130; constexpr uintptr_t CNWSCreatureStats__SetCHABase = 0x0023BD80; constexpr uintptr_t CNWSCreatureStats__SetClass = 0x001C0E60; constexpr uintptr_t CNWSCreatureStats__SetClassLevel = 0x001C0E30; constexpr uintptr_t CNWSCreatureStats__SetClassNegativeLevels = 0x00244650; constexpr uintptr_t CNWSCreatureStats__SetCONBase = 0x0023BC80; constexpr uintptr_t CNWSCreatureStats__SetDEXBase = 0x0023BA60; constexpr uintptr_t CNWSCreatureStats__SetDomain1 = 0x0023C3D0; constexpr uintptr_t CNWSCreatureStats__SetDomain2 = 0x0023C430; constexpr uintptr_t CNWSCreatureStats__SetExperience = 0x0023BE30; constexpr uintptr_t CNWSCreatureStats__SetFeatRemainingUses = 0x0023C980; constexpr uintptr_t CNWSCreatureStats__SetHasLostClassAbilities = 0x00216210; constexpr uintptr_t CNWSCreatureStats__SetINTBase = 0x0023BB20; constexpr uintptr_t CNWSCreatureStats__SetMemorizedSpellInSlotReady = 0x0023EED0; constexpr uintptr_t CNWSCreatureStats__SetMemorizedSpellSlot = 0x0023DB40; constexpr uintptr_t CNWSCreatureStats__SetMovementRate = 0x0023CB80; constexpr uintptr_t CNWSCreatureStats__SetNormalBonusFlags = 0x002621D0; constexpr uintptr_t CNWSCreatureStats__SetNumberMemorizedSpellSlots = 0x0023DAE0; constexpr uintptr_t CNWSCreatureStats__SetSchool = 0x0023C3A0; constexpr uintptr_t CNWSCreatureStats__SetSkillRank = 0x0023CB50; constexpr uintptr_t CNWSCreatureStats__SetSpellFailure = 0x00267AA0; constexpr uintptr_t CNWSCreatureStats__SetSpellLikeAbilityReady = 0x002623E0; constexpr uintptr_t CNWSCreatureStats__SetSpellResistance = 0x00262AA0; constexpr uintptr_t CNWSCreatureStats__SetSpellResistancePenalty = 0x00265150; constexpr uintptr_t CNWSCreatureStats__SetStatById = 0x00262620; constexpr uintptr_t CNWSCreatureStats__SetSTRBase = 0x0023B9B0; constexpr uintptr_t CNWSCreatureStats__SetTag = 0x0023B8F0; constexpr uintptr_t CNWSCreatureStats__SetWISBase = 0x0023BBD0; constexpr uintptr_t CNWSCreatureStats__UnReadySpell = 0x00258390; constexpr uintptr_t CNWSCreatureStats__UpdateCombatInformation = 0x001D50B0; constexpr uintptr_t CNWSCreatureStats__UpdateLastStatsObject = 0x00217200; constexpr uintptr_t CNWSCreatureStats__UpdateNumberMemorizedSpellSlots = 0x0023D670; constexpr uintptr_t CNWSCreatureStats__ValidateLevelUp = 0x00259280; constexpr uintptr_t CNWSCreatureStats_ClassInfo__CNWSCreatureStats_ClassInfoCtor__0 = 0x001BEC30; constexpr uintptr_t CNWSCreatureStats_ClassInfo__CNWSCreatureStats_ClassInfoDtor__0 = 0x001BEDF0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__AddKnownSpell = 0x001BF3D0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__ClearMemorizedKnownSpells = 0x001BF0E0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__ClearMemorizedSpellSlot = 0x001BEFE0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__ConfirmDomainSpell = 0x001C0110; constexpr uintptr_t CNWSCreatureStats_ClassInfo__DecrementSpellsPerDayLeft = 0x001C02D0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetIsDomainSpell = 0x001BF760; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetKnownSpell = 0x001BF6F0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetMaxSpellsPerDayLeft = 0x001C0290; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetMemorizedSpellInSlot = 0x001BF720; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetMemorizedSpellInSlotDetails = 0x001BF7A0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetMemorizedSpellInSlotMetaType = 0x001C0210; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetMemorizedSpellInSlotReady = 0x001BFB00; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetMemorizedSpellReadyCount__0 = 0x001C01B0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetMemorizedSpellReadyCount__1 = 0x001BFBA0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetNumberBonusSpells = 0x001C0350; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetNumberKnownSpells = 0x001C0380; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetNumberMemorizedSpellSlots = 0x001BFB80; constexpr uintptr_t CNWSCreatureStats_ClassInfo__GetSpellsPerDayLeft = 0x001C0250; constexpr uintptr_t CNWSCreatureStats_ClassInfo__IncrementSpellsPerDayLeft = 0x001C02F0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__ModifyNumberBonusSpells = 0x001C03A0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__RemoveKnownSpell = 0x001BF5B0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__ResetSpellsPerDayLeft = 0x001C0310; constexpr uintptr_t CNWSCreatureStats_ClassInfo__SetMaxSpellsPerDayLeft = 0x001C02B0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__SetMemorizedSpellInSlotReady = 0x001BFB40; constexpr uintptr_t CNWSCreatureStats_ClassInfo__SetMemorizedSpellSlot = 0x001BF030; constexpr uintptr_t CNWSCreatureStats_ClassInfo__SetNumberMemorizedSpellSlots = 0x001BF7D0; constexpr uintptr_t CNWSCreatureStats_ClassInfo__SetSpellsPerDayLeft = 0x001C0270; constexpr uintptr_t CNWSDialog__CNWSDialogCtor__0 = 0x00272EB0; constexpr uintptr_t CNWSDialog__CNWSDialogDtor__0 = 0x002F3980; constexpr uintptr_t CNWSDialog__AddJournalEntry = 0x002757B0; constexpr uintptr_t CNWSDialog__CheckScript = 0x00275260; constexpr uintptr_t CNWSDialog__Cleanup = 0x00273160; constexpr uintptr_t CNWSDialog__ClearDialogOwnerInObject = 0x002730B0; constexpr uintptr_t CNWSDialog__GetSpeaker = 0x00274D70; constexpr uintptr_t CNWSDialog__GetStartEntry = 0x00275420; constexpr uintptr_t CNWSDialog__GetStartEntryOneLiner = 0x00275510; constexpr uintptr_t CNWSDialog__HandleReply = 0x002768E0; constexpr uintptr_t CNWSDialog__IsPlayerInDialog = 0x00274CF0; constexpr uintptr_t CNWSDialog__LoadDialog = 0x002738A0; constexpr uintptr_t CNWSDialog__RemovePlayer = 0x00274BD0; constexpr uintptr_t CNWSDialog__RunScript = 0x00275360; constexpr uintptr_t CNWSDialog__SendDialogEntry = 0x00275AD0; constexpr uintptr_t CNWSDialog__SendDialogReplies = 0x002760B0; constexpr uintptr_t CNWSDialog__SetDialogDelay = 0x00275620; constexpr uintptr_t CNWSDialogEntry__CNWSDialogEntryCtor = 0x00276F20; constexpr uintptr_t CNWSDoor__CNWSDoorCtor__0 = 0x00277760; constexpr uintptr_t CNWSDoor__CNWSDoorDtor__0 = 0x00277C70; constexpr uintptr_t CNWSDoor__AddToArea = 0x00278700; constexpr uintptr_t CNWSDoor__AIUpdate = 0x00279640; constexpr uintptr_t CNWSDoor__AsNWSDoor = 0x0027DBF0; constexpr uintptr_t CNWSDoor__DoDamage = 0x0027D4D0; constexpr uintptr_t CNWSDoor__EventHandler = 0x00279770; constexpr uintptr_t CNWSDoor__GetActionPoint = 0x0027D510; constexpr uintptr_t CNWSDoor__GetDialogResref = 0x0027DC00; constexpr uintptr_t CNWSDoor__GetFirstName = 0x0027DC40; constexpr uintptr_t CNWSDoor__GetNearestActionPoint = 0x0027D5F0; constexpr uintptr_t CNWSDoor__GetOpenState = 0x0027C5A0; constexpr uintptr_t CNWSDoor__LoadDoor = 0x0027AA30; constexpr uintptr_t CNWSDoor__NoNonWalkPolysInDoor = 0x0027D320; constexpr uintptr_t CNWSDoor__PostProcess = 0x0027C610; constexpr uintptr_t CNWSDoor__RemoveFromArea = 0x00278040; constexpr uintptr_t CNWSDoor__SaveDoor = 0x0027C720; constexpr uintptr_t CNWSDoor__SetOpenState = 0x0027A8D0; constexpr uintptr_t CNWSDungeonMaster__CNWSDungeonMasterCtor__0 = 0x00277010; constexpr uintptr_t CNWSDungeonMaster__CNWSDungeonMasterDtor__0 = 0x002776B0; constexpr uintptr_t CNWSDungeonMaster__AsNWSDungeonMaster = 0x00277700; constexpr uintptr_t CNWSDungeonMaster__PossessCreature = 0x00277090; constexpr uintptr_t CNWSEffectListHandler__CNWSEffectListHandlerDtor__0 = 0x002803F0; constexpr uintptr_t CNWSEffectListHandler__InitializeEffects = 0x002804E0; constexpr uintptr_t CNWSEffectListHandler__OnApplyAbilityDecrease = 0x00284680; constexpr uintptr_t CNWSEffectListHandler__OnApplyAbilityIncrease = 0x002844B0; constexpr uintptr_t CNWSEffectListHandler__OnApplyACDecrease = 0x00285A40; constexpr uintptr_t CNWSEffectListHandler__OnApplyACIncrease = 0x002854B0; constexpr uintptr_t CNWSEffectListHandler__OnApplyAppear = 0x00290520; constexpr uintptr_t CNWSEffectListHandler__OnApplyArcaneSpellFailure = 0x002913B0; constexpr uintptr_t CNWSEffectListHandler__OnApplyAreaOfEffect = 0x0028B840; constexpr uintptr_t CNWSEffectListHandler__OnApplyAttackDecrease = 0x00286070; constexpr uintptr_t CNWSEffectListHandler__OnApplyAttackIncrease = 0x00285F40; constexpr uintptr_t CNWSEffectListHandler__OnApplyBeam = 0x0028BC60; constexpr uintptr_t CNWSEffectListHandler__OnApplyBlindness = 0x0028F690; constexpr uintptr_t CNWSEffectListHandler__OnApplyBlindnessInactive = 0x0028FAD0; constexpr uintptr_t CNWSEffectListHandler__OnApplyBonusFeat = 0x00294690; constexpr uintptr_t CNWSEffectListHandler__OnApplyBonusSpellOfLevel = 0x00290590; constexpr uintptr_t CNWSEffectListHandler__OnApplyConcealment = 0x0028FE90; constexpr uintptr_t CNWSEffectListHandler__OnApplyCurse = 0x0028D070; constexpr uintptr_t CNWSEffectListHandler__OnApplyCutsceneGhost = 0x00295C60; constexpr uintptr_t CNWSEffectListHandler__OnApplyCutsceneImmobile = 0x00295CF0; constexpr uintptr_t CNWSEffectListHandler__OnApplyDamage = 0x00281510; constexpr uintptr_t CNWSEffectListHandler__OnApplyDamageDecrease = 0x00286300; constexpr uintptr_t CNWSEffectListHandler__OnApplyDamageImmunityDecrease = 0x00286DA0; constexpr uintptr_t CNWSEffectListHandler__OnApplyDamageImmunityIncrease = 0x00286AC0; constexpr uintptr_t CNWSEffectListHandler__OnApplyDamageIncrease = 0x00286200; constexpr uintptr_t CNWSEffectListHandler__OnApplyDamageReduction = 0x0028AD30; constexpr uintptr_t CNWSEffectListHandler__OnApplyDamageResistance = 0x00285110; constexpr uintptr_t CNWSEffectListHandler__OnApplyDamageShield = 0x002899E0; constexpr uintptr_t CNWSEffectListHandler__OnApplyDarkness = 0x0028FB60; constexpr uintptr_t CNWSEffectListHandler__OnApplyDeaf = 0x00287FE0; constexpr uintptr_t CNWSEffectListHandler__OnApplyDeath = 0x00283450; constexpr uintptr_t CNWSEffectListHandler__OnApplyDefensiveStance = 0x00295D80; constexpr uintptr_t CNWSEffectListHandler__OnApplyDisappear = 0x00290460; constexpr uintptr_t CNWSEffectListHandler__OnApplyDisappearAppear = 0x0028FF70; constexpr uintptr_t CNWSEffectListHandler__OnApplyDisarm = 0x00287A00; constexpr uintptr_t CNWSEffectListHandler__OnApplyDisease = 0x00289BA0; constexpr uintptr_t CNWSEffectListHandler__OnApplyDispelAllMagic = 0x00291550; constexpr uintptr_t CNWSEffectListHandler__OnApplyDispelBestMagic = 0x00291EF0; constexpr uintptr_t CNWSEffectListHandler__OnApplyEffectIcon = 0x00293650; constexpr uintptr_t CNWSEffectListHandler__OnApplyEffectImmunity = 0x002905B0; constexpr uintptr_t CNWSEffectListHandler__OnApplyEnemyAttackBonus = 0x002882A0; constexpr uintptr_t CNWSEffectListHandler__OnApplyEntangled = 0x00287100; constexpr uintptr_t CNWSEffectListHandler__OnApplyHasteInternal = 0x0028C950; constexpr uintptr_t CNWSEffectListHandler__OnApplyHasteOrSlow = 0x0028C3E0; constexpr uintptr_t CNWSEffectListHandler__OnApplyHeal = 0x00283010; constexpr uintptr_t CNWSEffectListHandler__OnApplyHitPointChangeWhenDying = 0x00292D20; constexpr uintptr_t CNWSEffectListHandler__OnApplyInvisibility = 0x0028D820; constexpr uintptr_t CNWSEffectListHandler__OnApplyItemProperty = 0x00295070; constexpr uintptr_t CNWSEffectListHandler__OnApplyKnockdown = 0x002874F0; constexpr uintptr_t CNWSEffectListHandler__OnApplyLight = 0x00292A40; constexpr uintptr_t CNWSEffectListHandler__OnApplyLimitMovementSpeed = 0x002934E0; constexpr uintptr_t CNWSEffectListHandler__OnApplyLink = 0x0028CEC0; constexpr uintptr_t CNWSEffectListHandler__OnApplyMissChance = 0x0028FE20; constexpr uintptr_t CNWSEffectListHandler__OnApplyModifyNumAttacks = 0x0028CF30; constexpr uintptr_t CNWSEffectListHandler__OnApplyMovementSpeedDecrease = 0x0028B080; constexpr uintptr_t CNWSEffectListHandler__OnApplyMovementSpeedIncrease = 0x0028ADE0; constexpr uintptr_t CNWSEffectListHandler__OnApplyNegativeLevel = 0x002892E0; constexpr uintptr_t CNWSEffectListHandler__OnApplyPetrify = 0x00294F90; constexpr uintptr_t CNWSEffectListHandler__OnApplyPoison = 0x0028A0C0; constexpr uintptr_t CNWSEffectListHandler__OnApplyPolymorph = 0x00293BC0; constexpr uintptr_t CNWSEffectListHandler__OnApplyRacialType = 0x002942F0; constexpr uintptr_t CNWSEffectListHandler__OnApplyRegenerate = 0x00289A90; constexpr uintptr_t CNWSEffectListHandler__OnApplyResurrection = 0x00284330; constexpr uintptr_t CNWSEffectListHandler__OnApplySanctuary = 0x0028DF40; constexpr uintptr_t CNWSEffectListHandler__OnApplySavingThrowDecrease = 0x00285340; constexpr uintptr_t CNWSEffectListHandler__OnApplySavingThrowIncrease = 0x002851C0; constexpr uintptr_t CNWSEffectListHandler__OnApplySeeInvisible = 0x0028EBF0; constexpr uintptr_t CNWSEffectListHandler__OnApplySetAIState = 0x00287EE0; constexpr uintptr_t CNWSEffectListHandler__OnApplySetState = 0x00288450; constexpr uintptr_t CNWSEffectListHandler__OnApplySetStateInternal = 0x002906D0; constexpr uintptr_t CNWSEffectListHandler__OnApplySilence = 0x0028D5B0; constexpr uintptr_t CNWSEffectListHandler__OnApplySkillDecrease = 0x00292BE0; constexpr uintptr_t CNWSEffectListHandler__OnApplySkillIncrease = 0x00292B00; constexpr uintptr_t CNWSEffectListHandler__OnApplySlowInternal = 0x0028CB50; constexpr uintptr_t CNWSEffectListHandler__OnApplySpecialWalkAnimation = 0x00293400; constexpr uintptr_t CNWSEffectListHandler__OnApplySpellFailure = 0x00295AA0; constexpr uintptr_t CNWSEffectListHandler__OnApplySpellImmunity = 0x0028C330; constexpr uintptr_t CNWSEffectListHandler__OnApplySpellLevelAbsorption = 0x0028C250; constexpr uintptr_t CNWSEffectListHandler__OnApplySpellResistanceDecrease = 0x0028BFF0; constexpr uintptr_t CNWSEffectListHandler__OnApplySpellResistanceIncrease = 0x0028BDA0; constexpr uintptr_t CNWSEffectListHandler__OnApplySummonCreature = 0x00284AA0; constexpr uintptr_t CNWSEffectListHandler__OnApplySwarm = 0x00294EE0; constexpr uintptr_t CNWSEffectListHandler__OnApplyTaunt = 0x002927F0; constexpr uintptr_t CNWSEffectListHandler__OnApplyTemporaryHitpoints = 0x00286460; constexpr uintptr_t CNWSEffectListHandler__OnApplyTimestop = 0x00294100; constexpr uintptr_t CNWSEffectListHandler__OnApplyTrueSeeing = 0x0028F1D0; constexpr uintptr_t CNWSEffectListHandler__OnApplyTurnResistance = 0x00294620; constexpr uintptr_t CNWSEffectListHandler__OnApplyUltraVision = 0x0028ED30; constexpr uintptr_t CNWSEffectListHandler__OnApplyVampiricRegeneration = 0x00294DD0; constexpr uintptr_t CNWSEffectListHandler__OnApplyVision = 0x002944C0; constexpr uintptr_t CNWSEffectListHandler__OnApplyVisualEffect = 0x0028B350; constexpr uintptr_t CNWSEffectListHandler__OnApplyWounding = 0x00294D30; constexpr uintptr_t CNWSEffectListHandler__OnEffectApplied = 0x00296290; constexpr uintptr_t CNWSEffectListHandler__OnEffectRemoved = 0x002962F0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveAbilityDecrease = 0x00284A60; constexpr uintptr_t CNWSEffectListHandler__OnRemoveAbilityIncrease = 0x00284630; constexpr uintptr_t CNWSEffectListHandler__OnRemoveACDecrease = 0x00285D00; constexpr uintptr_t CNWSEffectListHandler__OnRemoveACIncrease = 0x002857D0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveArcaneSpellFailure = 0x00291470; constexpr uintptr_t CNWSEffectListHandler__OnRemoveAreaOfEffect = 0x0028BB90; constexpr uintptr_t CNWSEffectListHandler__OnRemoveAttackDecrease = 0x002861C0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveAttackIncrease = 0x00286030; constexpr uintptr_t CNWSEffectListHandler__OnRemoveBeam = 0x0028BD90; constexpr uintptr_t CNWSEffectListHandler__OnRemoveBlindness = 0x0028FA10; constexpr uintptr_t CNWSEffectListHandler__OnRemoveBonusFeat = 0x00294A50; constexpr uintptr_t CNWSEffectListHandler__OnRemoveBonusSpellOfLevel = 0x002905A0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveConcealment = 0x0028FF60; constexpr uintptr_t CNWSEffectListHandler__OnRemoveCurse = 0x0028D5A0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveCutsceneGhost = 0x00295CB0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveDamageDecrease = 0x00286420; constexpr uintptr_t CNWSEffectListHandler__OnRemoveDamageImmunityDecrease = 0x00287010; constexpr uintptr_t CNWSEffectListHandler__OnRemoveDamageImmunityIncrease = 0x00286CB0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveDamageIncrease = 0x002862C0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveDamageShield = 0x00289A80; constexpr uintptr_t CNWSEffectListHandler__OnRemoveDarkness = 0x0028FD70; constexpr uintptr_t CNWSEffectListHandler__OnRemoveDisappearAppear = 0x00290100; constexpr uintptr_t CNWSEffectListHandler__OnRemoveDisarm = 0x00287ED0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveEffectIcon = 0x00293910; constexpr uintptr_t CNWSEffectListHandler__OnRemoveEffectImmunity = 0x002906C0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveEnemyAttackBonus = 0x002883B0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveEntangled = 0x00287490; constexpr uintptr_t CNWSEffectListHandler__OnRemoveHasteInternal = 0x0028CB20; constexpr uintptr_t CNWSEffectListHandler__OnRemoveHasteOrSlow = 0x0028C730; constexpr uintptr_t CNWSEffectListHandler__OnRemoveHitPointChangeWhenDying = 0x00292E90; constexpr uintptr_t CNWSEffectListHandler__OnRemoveInvisibility = 0x0028DC70; constexpr uintptr_t CNWSEffectListHandler__OnRemoveItemProperty = 0x002955F0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveKnockdown = 0x00287960; constexpr uintptr_t CNWSEffectListHandler__OnRemoveLight = 0x00292AF0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveLimitMovementSpeed = 0x002935C0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveMissChance = 0x0028FE80; constexpr uintptr_t CNWSEffectListHandler__OnRemoveModifyNumAttacks = 0x0028CFB0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveMovementSpeedDecrease = 0x0028B210; constexpr uintptr_t CNWSEffectListHandler__OnRemoveMovementSpeedIncrease = 0x0028AF40; constexpr uintptr_t CNWSEffectListHandler__OnRemoveNegativeLevel = 0x00289950; constexpr uintptr_t CNWSEffectListHandler__OnRemovePetrify = 0x00295060; constexpr uintptr_t CNWSEffectListHandler__OnRemovePolymorph = 0x00293E20; constexpr uintptr_t CNWSEffectListHandler__OnRemoveRacialType = 0x002944B0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSanctuary = 0x0028E540; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSavingThrowDecrease = 0x00285470; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSavingThrowIncrease = 0x00285300; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSeeInvisible = 0x0028ECA0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSetAIState = 0x00287F40; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSetState = 0x00289100; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSetStateInternal = 0x00291200; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSilence = 0x0028D7E0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSkillDecrease = 0x00292D10; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSkillIncrease = 0x00292BD0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSlowInternal = 0x0028CE90; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSpecialWalkAnimation = 0x00293450; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSpellFailure = 0x00295BE0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSpellImmunity = 0x0028C3D0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSpellLevelAbsorption = 0x0028C320; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSpellResistanceDecrease = 0x0028C170; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSpellResistanceIncrease = 0x0028BED0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSummonCreature = 0x002850C0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveSwarm = 0x00294F40; constexpr uintptr_t CNWSEffectListHandler__OnRemoveTaunt = 0x00292A00; constexpr uintptr_t CNWSEffectListHandler__OnRemoveTemporaryHitpoints = 0x00286570; constexpr uintptr_t CNWSEffectListHandler__OnRemoveTimestop = 0x002942A0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveTrueSeeing = 0x0028F360; constexpr uintptr_t CNWSEffectListHandler__OnRemoveTurnResistance = 0x00294680; constexpr uintptr_t CNWSEffectListHandler__OnRemoveUltraVision = 0x0028EEA0; constexpr uintptr_t CNWSEffectListHandler__OnRemoveVision = 0x00294610; constexpr uintptr_t CNWSEffectListHandler__OnRemoveVisualEffect = 0x0028B800; constexpr uintptr_t CNWSEffectListHandler__OnRemoveWounding = 0x00294DC0; constexpr uintptr_t CNWSEffectListHandler__SendFloatyEffect = 0x00296060; constexpr uintptr_t CNWSEncounter__CNWSEncounterCtor__0 = 0x002963B0; constexpr uintptr_t CNWSEncounter__CNWSEncounterDtor__0 = 0x00296D70; constexpr uintptr_t CNWSEncounter__AddCreaturesToSpawnList = 0x00299480; constexpr uintptr_t CNWSEncounter__AddToActivateAreaList = 0x00298400; constexpr uintptr_t CNWSEncounter__AddToArea = 0x00297DB0; constexpr uintptr_t CNWSEncounter__AIUpdate = 0x002971D0; constexpr uintptr_t CNWSEncounter__AsNWSEncounter = 0x0029CD90; constexpr uintptr_t CNWSEncounter__CalculatePointsFromCR = 0x00299A40; constexpr uintptr_t CNWSEncounter__CalculateSpawnPool = 0x0029C760; constexpr uintptr_t CNWSEncounter__EventHandler = 0x002974E0; constexpr uintptr_t CNWSEncounter__GetFirstName = 0x0029CDA0; constexpr uintptr_t CNWSEncounter__GetInActivateArea = 0x00298130; constexpr uintptr_t CNWSEncounter__GetInActivateAreaList = 0x002983C0; constexpr uintptr_t CNWSEncounter__LineSegmentIntersectActivateArea = 0x00298000; constexpr uintptr_t CNWSEncounter__LoadEncounter = 0x00299E90; constexpr uintptr_t CNWSEncounter__LoadFractionalCRData = 0x00296930; constexpr uintptr_t CNWSEncounter__LoadFromTemplate = 0x0029B9D0; constexpr uintptr_t CNWSEncounter__MakeSpawnList = 0x00298F50; constexpr uintptr_t CNWSEncounter__PadOutCreatureCount = 0x00299740; constexpr uintptr_t CNWSEncounter__ReadEncounterFromGff = 0x0029A0D0; constexpr uintptr_t CNWSEncounter__ReadEncounterScriptsFromGff = 0x0029B5E0; constexpr uintptr_t CNWSEncounter__RemoveFromActivateAreaList = 0x002982E0; constexpr uintptr_t CNWSEncounter__RemoveFromActiveCreatureCount = 0x00299B00; constexpr uintptr_t CNWSEncounter__RemoveFromArea = 0x00296FF0; constexpr uintptr_t CNWSEncounter__SaveEncounter = 0x0029BBA0; constexpr uintptr_t CNWSEncounter__SetActive = 0x00296BF0; constexpr uintptr_t CNWSEncounter__SetDifficulty = 0x0029CCC0; constexpr uintptr_t CNWSEncounter__SpawnEncounterCreatures = 0x002985C0; constexpr uintptr_t CNWSEncounter__SpawnIfAppropriate = 0x002979A0; constexpr uintptr_t CNWSEncounter__TallyEnemyRadiusPoints = 0x0029C930; constexpr uintptr_t CNWSEncounter__UpdateActivateAreaList = 0x00297A20; constexpr uintptr_t CNWSExpression__CNWSExpressionCtor__0 = 0x0029D100; constexpr uintptr_t CNWSExpression__CNWSExpressionDtor__0 = 0x0029D1E0; constexpr uintptr_t CNWSExpression__ClearAlternate = 0x0029D370; constexpr uintptr_t CNWSExpression__ClearGraph = 0x0029D320; constexpr uintptr_t CNWSExpression__NewNode = 0x0029D0A0; constexpr uintptr_t CNWSExpression__ParseString = 0x0029D3B0; constexpr uintptr_t CNWSExpression__TestString = 0x0029E120; constexpr uintptr_t CNWSExpressionList__CNWSExpressionListCtor__0 = 0x0029CEE0; constexpr uintptr_t CNWSExpressionList__CNWSExpressionListDtor__0 = 0x0029CF20; constexpr uintptr_t CNWSExpressionList__AddNode = 0x0029D030; constexpr uintptr_t CNWSExpressionList__AddNodeToHead = 0x0029D070; constexpr uintptr_t CNWSExpressionList__DeleteAlternate = 0x0029CFB0; constexpr uintptr_t CNWSExpressionList__DeleteList = 0x0029CF40; constexpr uintptr_t CNWSExpressionNode__CNWSExpressionNodeCtor__0 = 0x0029CE40; constexpr uintptr_t CNWSExpressionNode__CNWSExpressionNodeDtor__0 = 0x0029CEA0; constexpr uintptr_t CNWSFaction__CNWSFactionCtor__0 = 0x002FFAF0; constexpr uintptr_t CNWSFaction__CNWSFactionCtor__2 = 0x002FF080; constexpr uintptr_t CNWSFaction__CNWSFactionDtor__0 = 0x002FFD50; constexpr uintptr_t CNWSFaction__AddMember = 0x002FFDF0; constexpr uintptr_t CNWSFaction__AttemptJoin = 0x00300380; constexpr uintptr_t CNWSFaction__AttemptRemove = 0x00300430; constexpr uintptr_t CNWSFaction__ChangeMemberId = 0x00300770; constexpr uintptr_t CNWSFaction__ClearAllReputationsTowards = 0x00302140; constexpr uintptr_t CNWSFaction__GetAverageGoodEvilAlignment = 0x00301270; constexpr uintptr_t CNWSFaction__GetAverageLawChaosAlignment = 0x00301350; constexpr uintptr_t CNWSFaction__GetAverageLevel = 0x00301430; constexpr uintptr_t CNWSFaction__GetAverageReputation = 0x003011C0; constexpr uintptr_t CNWSFaction__GetAverageXP = 0x003014B0; constexpr uintptr_t CNWSFaction__GetBestAC = 0x003018D0; constexpr uintptr_t CNWSFaction__GetCreatureInParty = 0x00301B00; constexpr uintptr_t CNWSFaction__GetFactionManager = 0x002FFA20; constexpr uintptr_t CNWSFaction__GetFactionMember = 0x00302080; constexpr uintptr_t CNWSFaction__GetGold = 0x00301170; constexpr uintptr_t CNWSFaction__GetIsInvited = 0x003003E0; constexpr uintptr_t CNWSFaction__GetLeader = 0x00300480; constexpr uintptr_t CNWSFaction__GetLeastDamagedMember = 0x00300F10; constexpr uintptr_t CNWSFaction__GetMemberList = 0x003005A0; constexpr uintptr_t CNWSFaction__GetMostDamagedMember = 0x00300CA0; constexpr uintptr_t CNWSFaction__GetMostFrequentClass = 0x00301530; constexpr uintptr_t CNWSFaction__GetSingletonParty = 0x00301B40; constexpr uintptr_t CNWSFaction__GetStrongestMember = 0x00300AA0; constexpr uintptr_t CNWSFaction__GetWeakestMember = 0x00300890; constexpr uintptr_t CNWSFaction__GetWorstAC = 0x003016A0; constexpr uintptr_t CNWSFaction__Initialise = 0x002FFA50; constexpr uintptr_t CNWSFaction__InviteMember = 0x003005C0; constexpr uintptr_t CNWSFaction__RemoveMember = 0x002FF4D0; constexpr uintptr_t CNWSFaction__SendChatMessage = 0x003007B0; constexpr uintptr_t CNWSFaction__SendFactionUpdateAdd = 0x003002E0; constexpr uintptr_t CNWSFaction__SendFactionUpdateList = 0x00300650; constexpr uintptr_t CNWSFaction__SendFactionUpdateRemove = 0x003006D0; constexpr uintptr_t CNWSFaction__TransferLeadership = 0x00301BF0; constexpr uintptr_t CNWSForcedAction__CNWSForcedActionCtor__0 = 0x0029F670; constexpr uintptr_t CNWSForcedAction__CNWSForcedActionDtor__0 = 0x0029F6F0; constexpr uintptr_t CNWSForcedAction__LoadForcedAction = 0x0029F810; constexpr uintptr_t CNWSForcedAction__SaveForcedAction = 0x0029F710; constexpr uintptr_t CNWSInventory__CNWSInventoryCtor__0 = 0x002BE7E0; constexpr uintptr_t CNWSInventory__CNWSInventoryDtor__0 = 0x002BE860; constexpr uintptr_t CNWSInventory__GetArraySlotFromSlotFlag = 0x002BED80; constexpr uintptr_t CNWSInventory__GetItemInInventory = 0x002BE9C0; constexpr uintptr_t CNWSInventory__GetItemInSlot = 0x002BEB20; constexpr uintptr_t CNWSInventory__GetSlotFromItem = 0x002BEA40; constexpr uintptr_t CNWSInventory__PutItemInSlot = 0x002BF080; constexpr uintptr_t CNWSInventory__RemoveItem = 0x002BEFA0; constexpr uintptr_t CNWSItem__CNWSItemCtor__0 = 0x002BF300; constexpr uintptr_t CNWSItem__CNWSItemDtor__0 = 0x002BF6E0; constexpr uintptr_t CNWSItem__AcquireItem = 0x002CA580; constexpr uintptr_t CNWSItem__ActiveProperty = 0x002C6BC0; constexpr uintptr_t CNWSItem__AddActiveProperty = 0x002C6CB0; constexpr uintptr_t CNWSItem__AddPassiveProperty = 0x002C6E80; constexpr uintptr_t CNWSItem__AddToArea = 0x002C07A0; constexpr uintptr_t CNWSItem__AIUpdate = 0x002C0860; constexpr uintptr_t CNWSItem__ApplyItemProperties = 0x002C7130; constexpr uintptr_t CNWSItem__AsNWSItem = 0x002CA8D0; constexpr uintptr_t CNWSItem__CalculateBaseCosts = 0x002C9910; constexpr uintptr_t CNWSItem__CalculatePassiveCost = 0x002C9E70; constexpr uintptr_t CNWSItem__CloseInventory = 0x002C95D0; constexpr uintptr_t CNWSItem__CloseItemForAllPlayers = 0x002C0EE0; constexpr uintptr_t CNWSItem__CompareItem = 0x002C7240; constexpr uintptr_t CNWSItem__ComputeArmorClass = 0x002C3B30; constexpr uintptr_t CNWSItem__ComputeWeight = 0x002C3C80; constexpr uintptr_t CNWSItem__CopyItem = 0x002C7750; constexpr uintptr_t CNWSItem__EventHandler = 0x002C0960; constexpr uintptr_t CNWSItem__GetActiveProperty = 0x002C6950; constexpr uintptr_t CNWSItem__GetCost = 0x002C61E0; constexpr uintptr_t CNWSItem__GetDamageFlags = 0x002CA170; constexpr uintptr_t CNWSItem__GetFirstName = 0x002CA8E0; constexpr uintptr_t CNWSItem__GetMinEquipLevel = 0x002CA440; constexpr uintptr_t CNWSItem__GetPassiveProperty = 0x002C6980; constexpr uintptr_t CNWSItem__GetPropertyByType = 0x002C7050; constexpr uintptr_t CNWSItem__GetPropertyByTypeExists = 0x002C6BF0; constexpr uintptr_t CNWSItem__GetUsedActivePropertyUsesLeft = 0x002C6A00; constexpr uintptr_t CNWSItem__GetWeight = 0x002C92F0; constexpr uintptr_t CNWSItem__InitRepository = 0x002C1390; constexpr uintptr_t CNWSItem__LoadDataFromGff = 0x002C1700; constexpr uintptr_t CNWSItem__LoadFromTemplate = 0x002C14F0; constexpr uintptr_t CNWSItem__LoadItem = 0x002C3F30; constexpr uintptr_t CNWSItem__MergeItem = 0x002C7620; constexpr uintptr_t CNWSItem__OpenInventory = 0x002C9340; constexpr uintptr_t CNWSItem__ReadContainerItemsFromGff = 0x002C35A0; constexpr uintptr_t CNWSItem__RemoveActiveProperty = 0x002C6DD0; constexpr uintptr_t CNWSItem__RemoveFromArea = 0x002BFC90; constexpr uintptr_t CNWSItem__RemoveItemProperties = 0x002C71B0; constexpr uintptr_t CNWSItem__RemovePassiveProperty = 0x002C6FA0; constexpr uintptr_t CNWSItem__RestoreUsedActiveProperties = 0x002C37E0; constexpr uintptr_t CNWSItem__RestoreUsedActiveProperty = 0x002C6B40; constexpr uintptr_t CNWSItem__SaveContainerItems = 0x002C62D0; constexpr uintptr_t CNWSItem__SaveItem = 0x002C5160; constexpr uintptr_t CNWSItem__SaveItemProperties = 0x002C6450; constexpr uintptr_t CNWSItem__SetIdentified = 0x002C3470; constexpr uintptr_t CNWSItem__SetNumCharges = 0x002C3490; constexpr uintptr_t CNWSItem__SetPossessor = 0x002BFDB0; constexpr uintptr_t CNWSItem__SplitItem = 0x002C76B0; constexpr uintptr_t CNWSItem__UpdateUsedActiveProperties = 0x002C38F0; constexpr uintptr_t CNWSItem__UpdateVisualEffect = 0x002C4C80; constexpr uintptr_t CNWSItemPropertyHandler__CNWSItemPropertyHandlerDtor__0 = 0x002CAB80; constexpr uintptr_t CNWSItemPropertyHandler__ApplyAbilityBonus = 0x002CB1B0; constexpr uintptr_t CNWSItemPropertyHandler__ApplyACBonus = 0x002CB380; constexpr uintptr_t CNWSItemPropertyHandler__ApplyArcaneSpellFailure = 0x002D0950; constexpr uintptr_t CNWSItemPropertyHandler__ApplyAttackBonus = 0x002CF590; constexpr uintptr_t CNWSItemPropertyHandler__ApplyAttackPenalty = 0x002CF9B0; constexpr uintptr_t CNWSItemPropertyHandler__ApplyBonusFeat = 0x002CC520; constexpr uintptr_t CNWSItemPropertyHandler__ApplyBonusSpellOfLevel = 0x002CC680; constexpr uintptr_t CNWSItemPropertyHandler__ApplyChangedSavingThrow = 0x002D1580; constexpr uintptr_t CNWSItemPropertyHandler__ApplyChangedSavingThrowVsX = 0x002D12E0; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDamageBonus = 0x002CC820; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDamageImmunity = 0x002CCC30; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDamagePenalty = 0x002CCDC0; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDamageReduction = 0x002CD090; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDamageResistance = 0x002CD200; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDamageVulnerability = 0x002CD380; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDarkVision = 0x002CD510; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDecreaseAbility = 0x002CD5D0; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDecreaseAC = 0x002CD7B0; constexpr uintptr_t CNWSItemPropertyHandler__ApplyDecreaseSkill = 0x002CD970; constexpr uintptr_t CNWSItemPropertyHandler__ApplyEnhancementBonus = 0x002CB730; constexpr uintptr_t CNWSItemPropertyHandler__ApplyEnhancementPenalty = 0x002CC050; constexpr uintptr_t CNWSItemPropertyHandler__ApplyFreeAction = 0x002D0460; constexpr uintptr_t CNWSItemPropertyHandler__ApplyHaste = 0x002CDB10; constexpr uintptr_t CNWSItemPropertyHandler__ApplyHolyAvenger = 0x002CDBB0; constexpr uintptr_t CNWSItemPropertyHandler__ApplyImmunity = 0x002CE810; constexpr uintptr_t CNWSItemPropertyHandler__ApplyImprovedEvasion = 0x002CEA50; constexpr uintptr_t CNWSItemPropertyHandler__ApplyImprovedSavingThrow = 0x002CEC70; constexpr uintptr_t CNWSItemPropertyHandler__ApplyImprovedSavingThrowVsX = 0x002CED50; constexpr uintptr_t CNWSItemPropertyHandler__ApplyImprovedSpellResistance = 0x002CEB10; constexpr uintptr_t CNWSItemPropertyHandler__ApplyLight = 0x002CEE30; constexpr uintptr_t CNWSItemPropertyHandler__ApplyReducedSavingThrow = 0x002CEF70; constexpr uintptr_t CNWSItemPropertyHandler__ApplyReducedSavingThrowVsX = 0x002CF050; constexpr uintptr_t CNWSItemPropertyHandler__ApplyRegeneration = 0x002CF130; constexpr uintptr_t CNWSItemPropertyHandler__ApplySkillBonus = 0x002CF220; constexpr uintptr_t CNWSItemPropertyHandler__ApplySpecialWalk = 0x002D0810; constexpr uintptr_t CNWSItemPropertyHandler__ApplySpellImmunityLevel = 0x002D0710; constexpr uintptr_t CNWSItemPropertyHandler__ApplySpellImmunitySchool = 0x002CF480; constexpr uintptr_t CNWSItemPropertyHandler__ApplySpellImmunitySpecific = 0x002CF320; constexpr uintptr_t CNWSItemPropertyHandler__ApplyTrueSeeing = 0x002D0300; constexpr uintptr_t CNWSItemPropertyHandler__ApplyTurnResistance = 0x002D03A0; constexpr uintptr_t CNWSItemPropertyHandler__ApplyUnlimitedAmmo = 0x002CFC50; constexpr uintptr_t CNWSItemPropertyHandler__InitializeItemProperties = 0x002CAC70; constexpr uintptr_t CNWSItemPropertyHandler__OnItemPropertyApplied = 0x002D0AB0; constexpr uintptr_t CNWSItemPropertyHandler__OnItemPropertyRemoved = 0x002D0FE0; constexpr uintptr_t CNWSItemPropertyHandler__RemoveBonusSpellOfLevel = 0x002CC720; constexpr uintptr_t CNWSItemPropertyHandler__RemoveUnlimitedAmmo = 0x002D0240; constexpr uintptr_t CNWSJournal__CNWSJournalCtor__0 = 0x002D1720; constexpr uintptr_t CNWSJournal__CNWSJournalDtor__0 = 0x002D1760; constexpr uintptr_t CNWSJournal__Destroy = 0x002D3130; constexpr uintptr_t CNWSJournal__SetDate = 0x002D28A0; constexpr uintptr_t CNWSJournal__SetPicture = 0x002D3120; constexpr uintptr_t CNWSJournal__SetState = 0x002D18C0; constexpr uintptr_t CNWSJournal__SetTime = 0x002D2CE0; constexpr uintptr_t CNWSkill__CNWSkillCtor__0 = 0x00106230; constexpr uintptr_t CNWSkill__CNWSkillDtor__0 = 0x001062B0; constexpr uintptr_t CNWSkill__GetDescriptionText = 0x001062F0; constexpr uintptr_t CNWSkill__GetNameText = 0x001063B0; constexpr uintptr_t CNWSMessage__CNWSMessageCtor__0 = 0x0029F940; constexpr uintptr_t CNWSMessage__CNWSMessageDtor__0 = 0x0029F9A0; constexpr uintptr_t CNWSMessage__AddActiveItemPropertiesToMessage = 0x0031F6A0; constexpr uintptr_t CNWSMessage__AddAreaOfEffectObjectToMessage = 0x0031FE10; constexpr uintptr_t CNWSMessage__AddDoorAppearanceToMessage = 0x0031F460; constexpr uintptr_t CNWSMessage__AddItemAppearanceToMessage = 0x0031FAC0; constexpr uintptr_t CNWSMessage__AddPlaceableAppearanceToMessage = 0x0031F4A0; constexpr uintptr_t CNWSMessage__AddTriggerGeometryToMessage = 0x003354C0; constexpr uintptr_t CNWSMessage__AssignCreatureLists = 0x003206F0; constexpr uintptr_t CNWSMessage__AssignVisualEffectLists = 0x003201E0; constexpr uintptr_t CNWSMessage__CompareCreatureLists = 0x003206A0; constexpr uintptr_t CNWSMessage__CompareVisualEffectLists = 0x00320550; constexpr uintptr_t CNWSMessage__ComputeAppearanceUpdateRequired = 0x0031FE50; constexpr uintptr_t CNWSMessage__ComputeGameObjectUpdateForCategory = 0x003325B0; constexpr uintptr_t CNWSMessage__ComputeGameObjectUpdateForObject = 0x0032E320; constexpr uintptr_t CNWSMessage__ComputeGameObjectUpdateForYourself = 0x0032E450; constexpr uintptr_t CNWSMessage__ComputeGameObjectUpdateForYourselfToo = 0x0032E300; constexpr uintptr_t CNWSMessage__ComputeInventoryUpdateRequired = 0x003200C0; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_ActionQueue = 0x003239A0; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_AssociateState = 0x00322010; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_AutoMap = 0x00323A30; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_CompareSpellLikeAbility = 0x00322F40; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_GuiEffectIcons = 0x0033D3C0; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_GuiFeats = 0x00322130; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_GuiKnownSpells = 0x00322260; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_GuiKnownSpellUses = 0x003233B0; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_GuiMemorizedSpells = 0x00322850; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_GuiNumberMemorizedSpells = 0x00323B00; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_GuiSkills = 0x003220C0; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_PlayerState = 0x00323DC0; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_StoreUpdateSpellLikeAbility = 0x003231F0; constexpr uintptr_t CNWSMessage__ComputeLastUpdate_WriteSpellLikeAbility = 0x00322FF0; constexpr uintptr_t CNWSMessage__ComputeNumAutoMapUpdatesRequired = 0x00323780; constexpr uintptr_t CNWSMessage__ComputeQuickbarItemUseCountUpdateRequired = 0x0033CEC0; constexpr uintptr_t CNWSMessage__ComputeRepositoryUpdateRequired = 0x003201D0; constexpr uintptr_t CNWSMessage__ComputeUpdateRequired = 0x00320CF0; constexpr uintptr_t CNWSMessage__ComputeVisibilityLists = 0x00320950; constexpr uintptr_t CNWSMessage__CreateNewLastUpdateObject = 0x00334900; constexpr uintptr_t CNWSMessage__DeleteLastUpdateObjectsForObject = 0x003322F0; constexpr uintptr_t CNWSMessage__DeleteLastUpdateObjectsInOtherAreas = 0x00333050; constexpr uintptr_t CNWSMessage__GetLocStringServer = 0x002D3F50; constexpr uintptr_t CNWSMessage__HandlePlayerToServerAreaMessage = 0x002B7140; constexpr uintptr_t CNWSMessage__HandlePlayerToServerBarter = 0x002B80C0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerBarter_AcceptTrade = 0x002BAA80; constexpr uintptr_t CNWSMessage__HandlePlayerToServerBarter_AddItem = 0x002BA7E0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerBarter_CloseBarter = 0x002BA6D0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerBarter_LockList = 0x002BA9F0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerBarter_MoveItem = 0x002BAB90; constexpr uintptr_t CNWSMessage__HandlePlayerToServerBarter_RemoveItem = 0x002BA8E0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerBarter_StartBarter = 0x002BA640; constexpr uintptr_t CNWSMessage__HandlePlayerToServerBarter_Window = 0x002BAB10; constexpr uintptr_t CNWSMessage__HandlePlayerToServerCharacterDownload = 0x002B8B20; constexpr uintptr_t CNWSMessage__HandlePlayerToServerCharacterSheetMessage = 0x002AC680; constexpr uintptr_t CNWSMessage__HandlePlayerToServerCharListMessage = 0x002B6FA0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerChatMessage = 0x0029FAD0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerCheatMessage = 0x0029FF90; constexpr uintptr_t CNWSMessage__HandlePlayerToServerCutscene = 0x002B8D80; constexpr uintptr_t CNWSMessage__HandlePlayerToServerDialogMessage = 0x002A36C0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerDungeonMasterMessage = 0x002A3810; constexpr uintptr_t CNWSMessage__HandlePlayerToServerGameObjectUpdate = 0x002AB3F0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerGoldMessage = 0x002ADAF0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerGroupInputMessage = 0x002B0F60; constexpr uintptr_t CNWSMessage__HandlePlayerToServerGroupInputWalkToWaypoint = 0x002AD130; constexpr uintptr_t CNWSMessage__HandlePlayerToServerGuiContainerMessage = 0x002AC430; constexpr uintptr_t CNWSMessage__HandlePlayerToServerGuiInventoryMessage = 0x002AC2B0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerGuiQuickbar = 0x002B8010; constexpr uintptr_t CNWSMessage__HandlePlayerToServerGuiQuickbar_SetButton = 0x002B9100; constexpr uintptr_t CNWSMessage__HandlePlayerToServerInputAbortDriveControl = 0x002AC9B0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerInputCancelGuiTimingEvent = 0x002ACA40; constexpr uintptr_t CNWSMessage__HandlePlayerToServerInputDriveControl = 0x002AC7B0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerInputMessage = 0x002ADD10; constexpr uintptr_t CNWSMessage__HandlePlayerToServerInputWalkToWaypoint = 0x002ACA90; constexpr uintptr_t CNWSMessage__HandlePlayerToServerInventoryMessage = 0x002B3620; constexpr uintptr_t CNWSMessage__HandlePlayerToServerJournalMessage = 0x002B7C80; constexpr uintptr_t CNWSMessage__HandlePlayerToServerLevelUpMessage = 0x002B72E0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerLoginMessage = 0x002B47A0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerMapPinChangePin = 0x002BA310; constexpr uintptr_t CNWSMessage__HandlePlayerToServerMapPinDestroyMapPin = 0x002BA110; constexpr uintptr_t CNWSMessage__HandlePlayerToServerMapPinMessage = 0x002B8090; constexpr uintptr_t CNWSMessage__HandlePlayerToServerMapPinSetMapPinAt = 0x002B9D10; constexpr uintptr_t CNWSMessage__HandlePlayerToServerMessage = 0x002B4F40; constexpr uintptr_t CNWSMessage__HandlePlayerToServerModuleMessage = 0x002B5B70; constexpr uintptr_t CNWSMessage__HandlePlayerToServerParty = 0x002B6060; constexpr uintptr_t CNWSMessage__HandlePlayerToServerPlayerDeath = 0x002B81F0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerPlayerList = 0x002B8E80; constexpr uintptr_t CNWSMessage__HandlePlayerToServerPlayModuleCharacterList = 0x002B8D00; constexpr uintptr_t CNWSMessage__HandlePlayerToServerPlayModuleCharacterList_Start = 0x002BACA0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerPlayModuleCharacterList_Stop = 0x002BADD0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerPortal = 0x002B8A90; constexpr uintptr_t CNWSMessage__HandlePlayerToServerPVPListOperations = 0x002B82B0; constexpr uintptr_t CNWSMessage__HandlePlayerToServerQuickChatMessage = 0x0029FA00; constexpr uintptr_t CNWSMessage__HandlePlayerToServerServerChatMessage = 0x002B6050; constexpr uintptr_t CNWSMessage__HandlePlayerToServerServerStatusMessage = 0x002B5B30; constexpr uintptr_t CNWSMessage__HandlePlayerToServerShutDownServer = 0x002B8B70; constexpr uintptr_t CNWSMessage__HandlePlayerToServerStoreMessage = 0x002AD5C0; constexpr uintptr_t CNWSMessage__HandleServerAdminToServerMessage = 0x002BAE70; constexpr uintptr_t CNWSMessage__HasValidString = 0x00340120; constexpr uintptr_t CNWSMessage__ParseGetBool = 0x002BE750; constexpr uintptr_t CNWSMessage__ParseGetString = 0x002BE480; constexpr uintptr_t CNWSMessage__ParseToken = 0x002BE3F0; constexpr uintptr_t CNWSMessage__ReadOBJECTIDServer = 0x002D3A20; constexpr uintptr_t CNWSMessage__SelectCategoryForGameObject = 0x003324F0; constexpr uintptr_t CNWSMessage__SendPlayerToServerGuiInventory_Status = 0x003486A0; constexpr uintptr_t CNWSMessage__SendServerPlayerItemUpdate_DestroyItem = 0x00348C60; constexpr uintptr_t CNWSMessage__SendServerToAllPlayersCreatureUpdate_StripEquippedItems = 0x00348B50; constexpr uintptr_t CNWSMessage__SendServerToPlayerActivatePortal = 0x0034C5C0; constexpr uintptr_t CNWSMessage__SendServerToPlayerAIActionPlaySound = 0x0032BE60; constexpr uintptr_t CNWSMessage__SendServerToPlayerAmbientBattleMusicChange = 0x0034C390; constexpr uintptr_t CNWSMessage__SendServerToPlayerAmbientBattleMusicPlay = 0x0034C310; constexpr uintptr_t CNWSMessage__SendServerToPlayerAmbientMusicChangeTrack = 0x0034C280; constexpr uintptr_t CNWSMessage__SendServerToPlayerAmbientMusicPlay = 0x0034C170; constexpr uintptr_t CNWSMessage__SendServerToPlayerAmbientMusicSetDelay = 0x0034C1F0; constexpr uintptr_t CNWSMessage__SendServerToPlayerAmbientSoundLoopChange = 0x0034C4A0; constexpr uintptr_t CNWSMessage__SendServerToPlayerAmbientSoundLoopPlay = 0x0034C420; constexpr uintptr_t CNWSMessage__SendServerToPlayerAmbientSoundVolumeChange = 0x0034C530; constexpr uintptr_t CNWSMessage__SendServerToPlayerArea_ChangeDayNight = 0x00325850; constexpr uintptr_t CNWSMessage__SendServerToPlayerArea_ClientArea = 0x00325080; constexpr uintptr_t CNWSMessage__SendServerToPlayerArea_RecomputeStaticLighting = 0x00325900; constexpr uintptr_t CNWSMessage__SendServerToPlayerArea_SetName = 0x00325E60; constexpr uintptr_t CNWSMessage__SendServerToPlayerArea_VisualEffect = 0x003256A0; constexpr uintptr_t CNWSMessage__SendServerToPlayerArea_Weather = 0x003257B0; constexpr uintptr_t CNWSMessage__SendServerToPlayerBarterAcceptTrade = 0x0034BD80; constexpr uintptr_t CNWSMessage__SendServerToPlayerBarterCloseBarter = 0x0034BC10; constexpr uintptr_t CNWSMessage__SendServerToPlayerBarterLockList = 0x0034BCD0; constexpr uintptr_t CNWSMessage__SendServerToPlayerBarterReject = 0x0034BE30; constexpr uintptr_t CNWSMessage__SendServerToPlayerBarterStartBarter = 0x0034BB60; constexpr uintptr_t CNWSMessage__SendServerToPlayerCamera_ChangeLocation = 0x00323EF0; constexpr uintptr_t CNWSMessage__SendServerToPlayerCamera_LockDistance = 0x00324470; constexpr uintptr_t CNWSMessage__SendServerToPlayerCamera_LockPitch = 0x003243E0; constexpr uintptr_t CNWSMessage__SendServerToPlayerCamera_LockYaw = 0x00324500; constexpr uintptr_t CNWSMessage__SendServerToPlayerCamera_Restore = 0x00324270; constexpr uintptr_t CNWSMessage__SendServerToPlayerCamera_SetHeight = 0x00324340; constexpr uintptr_t CNWSMessage__SendServerToPlayerCamera_SetMode = 0x00324110; constexpr uintptr_t CNWSMessage__SendServerToPlayerCamera_Store = 0x003241A0; constexpr uintptr_t CNWSMessage__SendServerToPlayerCCMessage = 0x00344B90; constexpr uintptr_t CNWSMessage__SendServerToPlayerCharacterDownloadFail = 0x0034C860; constexpr uintptr_t CNWSMessage__SendServerToPlayerCharacterDownloadReply = 0x0034C760; constexpr uintptr_t CNWSMessage__SendServerToPlayerCharList = 0x00325F70; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_DM_Silent_Shout = 0x0032B8D0; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_DM_Talk = 0x0032AC90; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_DM_Whisper = 0x0032B010; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_Party = 0x0032B650; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_ServerTell = 0x0032A450; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_Shout = 0x0032A7D0; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_Silent_Shout = 0x0032B290; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_StrRef = 0x003294A0; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_Talk = 0x0032AB90; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_Tell = 0x0032A550; constexpr uintptr_t CNWSMessage__SendServerToPlayerChat_Whisper = 0x0032AF10; constexpr uintptr_t CNWSMessage__SendServerToPlayerChatMessage = 0x00329540; constexpr uintptr_t CNWSMessage__SendServerToPlayerChatMultiLang_Helper = 0x00329010; constexpr uintptr_t CNWSMessage__SendServerToPlayerChatMultiLangMessage = 0x00328BC0; constexpr uintptr_t CNWSMessage__SendServerToPlayerChatStrRefMessage = 0x00329160; constexpr uintptr_t CNWSMessage__SendServerToPlayerCheatDebugMode = 0x00347410; constexpr uintptr_t CNWSMessage__SendServerToPlayerCheatNasty = 0x00347270; constexpr uintptr_t CNWSMessage__SendServerToPlayerCheatPonyRide = 0x003472F0; constexpr uintptr_t CNWSMessage__SendServerToPlayerCheatRainOfCows = 0x00347380; constexpr uintptr_t CNWSMessage__SendServerToPlayerCloseStoreInventory = 0x0033ECA0; constexpr uintptr_t CNWSMessage__SendServerToPlayerCombatRoundStarted = 0x00347A00; constexpr uintptr_t CNWSMessage__SendServerToPlayerCutscene_BlackScreen = 0x003489F0; constexpr uintptr_t CNWSMessage__SendServerToPlayerCutscene_FadeFromBlack = 0x00348880; constexpr uintptr_t CNWSMessage__SendServerToPlayerCutscene_FadeToBlack = 0x003487E0; constexpr uintptr_t CNWSMessage__SendServerToPlayerCutscene_HideGui = 0x00348AC0; constexpr uintptr_t CNWSMessage__SendServerToPlayerCutscene_Status = 0x00348740; constexpr uintptr_t CNWSMessage__SendServerToPlayerCutscene_StopFade = 0x00348920; constexpr uintptr_t CNWSMessage__SendServerToPlayerDebugInfo_Area = 0x0034BA30; constexpr uintptr_t CNWSMessage__SendServerToPlayerDebugInfo_Creature = 0x0034ACC0; constexpr uintptr_t CNWSMessage__SendServerToPlayerDebugInfo_Door = 0x0034B730; constexpr uintptr_t CNWSMessage__SendServerToPlayerDebugInfo_Item = 0x0034B170; constexpr uintptr_t CNWSMessage__SendServerToPlayerDebugInfo_Placeable = 0x0034B450; constexpr uintptr_t CNWSMessage__SendServerToPlayerDebugInfo_Trigger = 0x0034B300; constexpr uintptr_t CNWSMessage__SendServerToPlayerDestroyDeathGUI = 0x0034CCF0; constexpr uintptr_t CNWSMessage__SendServerToPlayerDialogClose = 0x00340EB0; constexpr uintptr_t CNWSMessage__SendServerToPlayerDialogEntry = 0x00340BD0; constexpr uintptr_t CNWSMessage__SendServerToPlayerDialogReplies = 0x00340C90; constexpr uintptr_t CNWSMessage__SendServerToPlayerDialogReplyChosen = 0x00340DD0; constexpr uintptr_t CNWSMessage__SendServerToPlayerDungeonMasterAreaList__0 = 0x00341070; constexpr uintptr_t CNWSMessage__SendServerToPlayerDungeonMasterAreaList__1 = 0x00340F80; constexpr uintptr_t CNWSMessage__SendServerToPlayerDungeonMasterCreatorLists = 0x00342490; constexpr uintptr_t CNWSMessage__SendServerToPlayerDungeonMasterObjectList = 0x00341BC0; constexpr uintptr_t CNWSMessage__SendServerToPlayerDungeonMastersDifficultyChange = 0x00342E70; constexpr uintptr_t CNWSMessage__SendServerToPlayerDungeonMasterSearchByIdResult = 0x003412E0; constexpr uintptr_t CNWSMessage__SendServerToPlayerDungeonMasterSearchByTagResult = 0x00341390; constexpr uintptr_t CNWSMessage__SendServerToPlayerDungeonMasterUpdatePartyList__0 = 0x00342DA0; constexpr uintptr_t CNWSMessage__SendServerToPlayerDungeonMasterUpdatePartyList__1 = 0x00342CC0; constexpr uintptr_t CNWSMessage__SendServerToPlayerExamineGui_CreatureData = 0x0033F400; constexpr uintptr_t CNWSMessage__SendServerToPlayerExamineGui_DoorData = 0x00340960; constexpr uintptr_t CNWSMessage__SendServerToPlayerExamineGui_ItemData = 0x0033FA70; constexpr uintptr_t CNWSMessage__SendServerToPlayerExamineGui_PlaceableData = 0x003402B0; constexpr uintptr_t CNWSMessage__SendServerToPlayerExamineGui_TrapData = 0x00340490; constexpr uintptr_t CNWSMessage__SendServerToPlayerGameObjUpdate__0 = 0x00333B90; constexpr uintptr_t CNWSMessage__SendServerToPlayerGameObjUpdate__1 = 0x00332BC0; constexpr uintptr_t CNWSMessage__SendServerToPlayerGameObjUpdate_ObjControl = 0x00340B40; constexpr uintptr_t CNWSMessage__SendServerToPlayerGameObjUpdateFloatyText = 0x00347970; constexpr uintptr_t CNWSMessage__SendServerToPlayerGameObjUpdateVisEffect = 0x00347520; constexpr uintptr_t CNWSMessage__SendServerToPlayerGUICharacterSheet_NotPermitted = 0x0034D210; constexpr uintptr_t CNWSMessage__SendServerToPlayerGuiContainerObject_Status = 0x00348600; constexpr uintptr_t CNWSMessage__SendServerToPlayerGuiQuickbar_SetButton = 0x0034A1E0; constexpr uintptr_t CNWSMessage__SendServerToPlayerGuiTimingEvent = 0x0034CDC0; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_ConfirmDrop = 0x00343300; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_Drop = 0x00342F80; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_DropCancel = 0x00343010; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_Equip = 0x003430A0; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_EquipCancel = 0x00343140; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_LearnScroll = 0x0034CB30; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_Pickup = 0x00343430; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_PickupCancel = 0x003434C0; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_RepositoryMove = 0x003431E0; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_RepositoryMoveCancel = 0x00343270; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_SelectPage = 0x00343420; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_SelectPanel = 0x00343390; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_Unequip = 0x00343550; constexpr uintptr_t CNWSMessage__SendServerToPlayerInventory_UnequipCancel = 0x003435E0; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalAddQuest = 0x00348CF0; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalAddWorld = 0x003490D0; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalAddWorldStrref = 0x00349260; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalDeleteWorld = 0x00349320; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalDeleteWorldAll = 0x00349440; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalDeleteWorldStrref = 0x003493B0; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalFullUpdate = 0x003494D0; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalFullUpdateNotNeeded = 0x00349B90; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalRemoveQuest = 0x00348EB0; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalSetQuestPicture = 0x00348FB0; constexpr uintptr_t CNWSMessage__SendServerToPlayerJournalUpdated = 0x00349C50; constexpr uintptr_t CNWSMessage__SendServerToPlayerLevelUp_Begin = 0x00349E30; constexpr uintptr_t CNWSMessage__SendServerToPlayerLevelUp_Confirmation = 0x00349D00; constexpr uintptr_t CNWSMessage__SendServerToPlayerLoadBar_EndStallEvent = 0x00324A10; constexpr uintptr_t CNWSMessage__SendServerToPlayerLoadBar_StartStallEvent = 0x003248E0; constexpr uintptr_t CNWSMessage__SendServerToPlayerLoadBar_UpdateStallEvent = 0x00324970; constexpr uintptr_t CNWSMessage__SendServerToPlayerLogin_CharacterQuery = 0x00324590; constexpr uintptr_t CNWSMessage__SendServerToPlayerLogin_Confirm = 0x00343670; constexpr uintptr_t CNWSMessage__SendServerToPlayerLogin_Fail = 0x00343810; constexpr uintptr_t CNWSMessage__SendServerToPlayerLogin_GetWaypoint = 0x00343740; constexpr uintptr_t CNWSMessage__SendServerToPlayerLogin_NeedCharacter = 0x00324690; constexpr uintptr_t CNWSMessage__SendServerToPlayerMapPinAdded = 0x0034AA20; constexpr uintptr_t CNWSMessage__SendServerToPlayerMapPinCreated = 0x0034ABA0; constexpr uintptr_t CNWSMessage__SendServerToPlayerMapPinEnabled = 0x0034A990; constexpr uintptr_t CNWSMessage__SendServerToPlayerMessage = 0x00324030; constexpr uintptr_t CNWSMessage__SendServerToPlayerModule_DumpPlayer = 0x00324FB0; constexpr uintptr_t CNWSMessage__SendServerToPlayerModule_EndGame = 0x003247F0; constexpr uintptr_t CNWSMessage__SendServerToPlayerModule_EndStartNewModule = 0x00324F20; constexpr uintptr_t CNWSMessage__SendServerToPlayerModule_ExportReply = 0x00324C50; constexpr uintptr_t CNWSMessage__SendServerToPlayerModule_Info = 0x003438A0; constexpr uintptr_t CNWSMessage__SendServerToPlayerModule_Loading = 0x00324CD0; constexpr uintptr_t CNWSMessage__SendServerToPlayerModule_SaveGameStatus = 0x00324760; constexpr uintptr_t CNWSMessage__SendServerToPlayerModule_SetPauseState = 0x00324AB0; constexpr uintptr_t CNWSMessage__SendServerToPlayerModule_StartStartNewModule = 0x00324E50; constexpr uintptr_t CNWSMessage__SendServerToPlayerModuleUpdate_Time = 0x0034A010; constexpr uintptr_t CNWSMessage__SendServerToPlayerOpenStoreInventory = 0x0033E950; constexpr uintptr_t CNWSMessage__SendServerToPlayerParty_Invite = 0x00343980; constexpr uintptr_t CNWSMessage__SendServerToPlayerParty_List = 0x00343990; constexpr uintptr_t CNWSMessage__SendServerToPlayerParty_TransferObjectControl = 0x00343B90; constexpr uintptr_t CNWSMessage__SendServerToPlayerPartyBar_PanelButtonFlash = 0x0034CBC0; constexpr uintptr_t CNWSMessage__SendServerToPlayerPlaceableUpdate_Useable = 0x0034D6B0; constexpr uintptr_t CNWSMessage__SendServerToPlayerPlayerList_Add = 0x00343C20; constexpr uintptr_t CNWSMessage__SendServerToPlayerPlayerList_All = 0x00344090; constexpr uintptr_t CNWSMessage__SendServerToPlayerPlayerList_Delete = 0x00344640; constexpr uintptr_t CNWSMessage__SendServerToPlayerPlayerList_ReauthorizeCDKey = 0x003446F0; constexpr uintptr_t CNWSMessage__SendServerToPlayerPlayModuleCharacterListResponse = 0x0034CF10; constexpr uintptr_t CNWSMessage__SendServerToPlayerPolymorph = 0x0034D2A0; constexpr uintptr_t CNWSMessage__SendServerToPlayerPopUpGUIPanel = 0x0034BEF0; constexpr uintptr_t CNWSMessage__SendServerToPlayerPVP_Attitude_Change = 0x0034CA00; constexpr uintptr_t CNWSMessage__SendServerToPlayerQuickChat = 0x0032BDC0; constexpr uintptr_t CNWSMessage__SendServerToPlayerQuickChatMessage = 0x0032BB50; constexpr uintptr_t CNWSMessage__SendServerToPlayerSafeProjectile = 0x0033E700; constexpr uintptr_t CNWSMessage__SendServerToPlayerSaveLoad_Status = 0x00324DA0; constexpr uintptr_t CNWSMessage__SendServerToPlayerServerStatus_Status = 0x00344830; constexpr uintptr_t CNWSMessage__SendServerToPlayerSetCustomToken = 0x00328830; constexpr uintptr_t CNWSMessage__SendServerToPlayerSetCustomTokenList = 0x00328940; constexpr uintptr_t CNWSMessage__SendServerToPlayerShutDownServer = 0x0034CC60; constexpr uintptr_t CNWSMessage__SendServerToPlayerSoundObject_ChangePosition = 0x0032C110; constexpr uintptr_t CNWSMessage__SendServerToPlayerSoundObject_ChangeVolume = 0x0032C080; constexpr uintptr_t CNWSMessage__SendServerToPlayerSoundObject_Play = 0x0032BF60; constexpr uintptr_t CNWSMessage__SendServerToPlayerSoundObject_Stop = 0x0032BFF0; constexpr uintptr_t CNWSMessage__SendServerToPlayerStoreConfirmTransaction = 0x0034A150; constexpr uintptr_t CNWSMessage__SendServerToPlayerStringMessage = 0x0033EBB0; constexpr uintptr_t CNWSMessage__SendServerToPlayerUpdateActiveItemProperties = 0x00347C10; constexpr uintptr_t CNWSMessage__SendServerToPlayerUpdateActiveItemPropertiesUses = 0x00347A80; constexpr uintptr_t CNWSMessage__SendServerToPlayerUpdateBlackoutEffect = 0x0034CE80; constexpr uintptr_t CNWSMessage__SendServerToPlayerUpdateCharResponse = 0x00327CD0; constexpr uintptr_t CNWSMessage__SendServerToPlayerUpdateFogAmount = 0x003483C0; constexpr uintptr_t CNWSMessage__SendServerToPlayerUpdateFogColor = 0x00348230; constexpr uintptr_t CNWSMessage__SendServerToPlayerUpdateItemHidden = 0x00348010; constexpr uintptr_t CNWSMessage__SendServerToPlayerUpdateItemName = 0x00347E30; constexpr uintptr_t CNWSMessage__SendServerToPlayerUpdateSkyBox = 0x003480B0; constexpr uintptr_t CNWSMessage__SendServerToPlayerVoiceChat_Play = 0x00348550; constexpr uintptr_t CNWSMessage__SendServerToPlayerWhirlwindAttack = 0x0034D340; constexpr uintptr_t CNWSMessage__SendServerToPlayerWhirlwindAttackDamage = 0x0034D4F0; constexpr uintptr_t CNWSMessage__SendServerToServerAdminBannedList = 0x0034F7D0; constexpr uintptr_t CNWSMessage__SendServerToServerAdminMessage = 0x0034D920; constexpr uintptr_t CNWSMessage__SendServerToServerAdminModuleList = 0x0034D9F0; constexpr uintptr_t CNWSMessage__SendServerToServerAdminPlayerList = 0x0034F600; constexpr uintptr_t CNWSMessage__SendServerToServerAdminPortalList = 0x0034F9A0; constexpr uintptr_t CNWSMessage__SendServerToServerAdminSaveGameList = 0x0034E830; constexpr uintptr_t CNWSMessage__SendServerToServerAdminSaveStatus = 0x00351BB0; constexpr uintptr_t CNWSMessage__SendServerToServerAdminServerSettings = 0x0034FB70; constexpr uintptr_t CNWSMessage__SendServerToServerAdminServerStatus = 0x0034F1F0; constexpr uintptr_t CNWSMessage__SortObjectsForGameObjectUpdate = 0x003326F0; constexpr uintptr_t CNWSMessage__StoreValuesInLastPlayerUpdateObject = 0x0033A0D0; constexpr uintptr_t CNWSMessage__StoreValuesInLastUpdateObject = 0x003322A0; constexpr uintptr_t CNWSMessage__StoreValuesInLastUpdatePartyObject = 0x0033F210; constexpr uintptr_t CNWSMessage__TestObjectUpdateDifferences = 0x0032EAD0; constexpr uintptr_t CNWSMessage__TestObjectVisible = 0x0032E460; constexpr uintptr_t CNWSMessage__TestPartyObjectUpdateDifferences = 0x0033ED70; constexpr uintptr_t CNWSMessage__TestPlayerUpdateDifferences = 0x003355A0; constexpr uintptr_t CNWSMessage__UpdateLastUpdate_GuiEffectIcons = 0x0033E140; constexpr uintptr_t CNWSMessage__UpdateLastUpdateActionQueue = 0x00323920; constexpr uintptr_t CNWSMessage__UpdateLastUpdateAutoMap = 0x00323690; constexpr uintptr_t CNWSMessage__UpdateLastUpdateInventory = 0x0033BC10; constexpr uintptr_t CNWSMessage__UpdateLastUpdateObject = 0x00333BB0; constexpr uintptr_t CNWSMessage__UpdateLastUpdateObjectAppearance = 0x00334720; constexpr uintptr_t CNWSMessage__UpdateLastUpdateVisibilityList = 0x003209D0; constexpr uintptr_t CNWSMessage__WriteCExoLocStringServer = 0x002D3AB0; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_CharacterSheet = 0x0033C170; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_DungeonMasterAIState = 0x003338A0; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_MajorGUIPanels = 0x003332E0; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_MajorGUIPanels_HenchmanInventoryData = 0x0033B510; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_MajorGUIPanels_Inventory = 0x0033AEF0; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_MinorGUIPanels = 0x00333470; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_PartyAIState = 0x00333660; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_PlayerUpdate = 0x00335AD0; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_UpdateAppearance = 0x0032C340; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_UpdateObject = 0x0032EC00; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_UpdateQuickbarItemUseCount = 0x0033D040; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_WorkRemaining = 0x00333A90; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_WriteInventorySlotAdd = 0x0032C210; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_WriteInventorySlotDelete = 0x0032C270; constexpr uintptr_t CNWSMessage__WriteGameObjUpdate_WriteInventorySlotUpdate = 0x0032C2C0; constexpr uintptr_t CNWSMessage__WriteGuiEffectIconsUpdate = 0x0033D4C0; constexpr uintptr_t CNWSMessage__WriteOBJECTIDServer = 0x002D3A50; constexpr uintptr_t CNWSMessage__WriteRepositoryUpdate = 0x0033B690; constexpr uintptr_t CNWSMessage__WriteStoreInventoryUpdate = 0x0033BD00; constexpr uintptr_t CNWSModule__CNWSModuleCtor__0 = 0x002D43E0; constexpr uintptr_t CNWSModule__CNWSModuleDtor__0 = 0x002D5740; constexpr uintptr_t CNWSModule__AddObjectToLimbo = 0x002E47B0; constexpr uintptr_t CNWSModule__AddObjectToLookupTable = 0x002E4F60; constexpr uintptr_t CNWSModule__AddToTURDList = 0x002E0CB0; constexpr uintptr_t CNWSModule__AddTURDsToWorld = 0x002DC9F0; constexpr uintptr_t CNWSModule__AddWorldJournalEntry = 0x002E5730; constexpr uintptr_t CNWSModule__AddWorldJournalEntryStrref = 0x002E5A80; constexpr uintptr_t CNWSModule__AIUpdate = 0x002D69D0; constexpr uintptr_t CNWSModule__AsNWSModule = 0x002E6910; constexpr uintptr_t CNWSModule__CleanUpLimboList = 0x002E66F0; constexpr uintptr_t CNWSModule__ClearAreaVisitedFlags = 0x002D6570; constexpr uintptr_t CNWSModule__ComputeInterAreaPath = 0x002D6440; constexpr uintptr_t CNWSModule__DeleteWorldJournalAllEntries = 0x002E60A0; constexpr uintptr_t CNWSModule__DeleteWorldJournalEntry = 0x002E5D50; constexpr uintptr_t CNWSModule__DeleteWorldJournalEntryStrref = 0x002E5EE0; constexpr uintptr_t CNWSModule__DoUpdate = 0x002D6EC0; constexpr uintptr_t CNWSModule__EventHandler = 0x002D6F30; constexpr uintptr_t CNWSModule__FindObjectByTagOrdinal = 0x002E5590; constexpr uintptr_t CNWSModule__FindObjectByTagTypeOrdinal = 0x002D7670; constexpr uintptr_t CNWSModule__FindTagPositionInTable = 0x002E4EA0; constexpr uintptr_t CNWSModule__GenerateInterAreaDFSSuccessors = 0x002D7500; constexpr uintptr_t CNWSModule__GetArea__0 = 0x002D75D0; constexpr uintptr_t CNWSModule__GetArea__1 = 0x002D7880; constexpr uintptr_t CNWSModule__GetAreaByName = 0x002D7950; constexpr uintptr_t CNWSModule__GetAreaByTag = 0x002D7AC0; constexpr uintptr_t CNWSModule__GetFullCipher = 0x002D5020; constexpr uintptr_t CNWSModule__GetPlayerIndexInPlayerList = 0x002E4620; constexpr uintptr_t CNWSModule__GetPlayerTURDFromList = 0x002E0E60; constexpr uintptr_t CNWSModule__GetPrimaryPlayerIndex = 0x002E49C0; constexpr uintptr_t CNWSModule__GetTime = 0x002E64D0; constexpr uintptr_t CNWSModule__GetWaypoint = 0x002D7640; constexpr uintptr_t CNWSModule__GetWorldJournalIndexUnique = 0x002E62F0; constexpr uintptr_t CNWSModule__InterAreaDFS = 0x002D65D0; constexpr uintptr_t CNWSModule__IsObjectInLimbo = 0x002E66C0; constexpr uintptr_t CNWSModule__IsOfficialCampaign = 0x002DD080; constexpr uintptr_t CNWSModule__LoadLimboCreatures = 0x002DB990; constexpr uintptr_t CNWSModule__LoadModuleFinish = 0x002DC170; constexpr uintptr_t CNWSModule__LoadModuleInProgress = 0x002DBEE0; constexpr uintptr_t CNWSModule__LoadModuleStart = 0x002D7C60; constexpr uintptr_t CNWSModule__LoadTURDList = 0x002DC570; constexpr uintptr_t CNWSModule__PackModuleIntoMessage = 0x002DCCE0; constexpr uintptr_t CNWSModule__PackModuleResourcesIntoMessage = 0x002DCB10; constexpr uintptr_t CNWSModule__PackPlayerCharacterListIntoMessage = 0x002E4A60; constexpr uintptr_t CNWSModule__PlotInterAreaPath = 0x002DD290; constexpr uintptr_t CNWSModule__PlotPath = 0x002DE490; constexpr uintptr_t CNWSModule__PlotPathInArea = 0x002DD570; constexpr uintptr_t CNWSModule__PostProcess = 0x002DC680; constexpr uintptr_t CNWSModule__RemoveFromTURDList = 0x002E6340; constexpr uintptr_t CNWSModule__RemoveObjectFromLimbo = 0x002E6520; constexpr uintptr_t CNWSModule__RemoveObjectFromLookupTable = 0x002E53B0; constexpr uintptr_t CNWSModule__SaveLimboCreatures = 0x002E0AA0; constexpr uintptr_t CNWSModule__SaveModuleFAC = 0x002DF930; constexpr uintptr_t CNWSModule__SaveModuleFinish = 0x002DFD60; constexpr uintptr_t CNWSModule__SaveModuleIFOFinish = 0x002E0960; constexpr uintptr_t CNWSModule__SaveModuleIFOStart = 0x002DE8A0; constexpr uintptr_t CNWSModule__SaveModuleInProgress = 0x002E4440; constexpr uintptr_t CNWSModule__SaveModuleStart = 0x002DE540; constexpr uintptr_t CNWSModule__SavePlayers = 0x002E0FE0; constexpr uintptr_t CNWSModule__SaveStatic = 0x002E05A0; constexpr uintptr_t CNWSModule__SaveTURDList = 0x002E0BF0; constexpr uintptr_t CNWSModule__SetIntraAreaGoal = 0x002D6810; constexpr uintptr_t CNWSModule__TimeStopSanityCheck = 0x002D6D40; constexpr uintptr_t CNWSModule__UnloadModule = 0x002E4E90; constexpr uintptr_t CNWSModule__UpdateTime = 0x002D6B30; constexpr uintptr_t CNWSObject__CNWSObjectCtor = 0x002E7A30; constexpr uintptr_t CNWSObject__CNWSObjectDtor__0 = 0x002E8020; constexpr uintptr_t CNWSObject__AddAction = 0x002E8BA0; constexpr uintptr_t CNWSObject__AddActionAfterFront = 0x002EC010; constexpr uintptr_t CNWSObject__AddActionNodeParameter = 0x002E9320; constexpr uintptr_t CNWSObject__AddActionToFront = 0x002EB890; constexpr uintptr_t CNWSObject__AddCloseDoorAction = 0x002F4DC0; constexpr uintptr_t CNWSObject__AddDoCommandAction = 0x002FEDC0; constexpr uintptr_t CNWSObject__AddGiveItemActions = 0x002FEA70; constexpr uintptr_t CNWSObject__AddLockObjectAction = 0x002F50E0; constexpr uintptr_t CNWSObject__AddLoopingVisualEffect = 0x002F0DE0; constexpr uintptr_t CNWSObject__AddMatchedExpressionString = 0x002F4350; constexpr uintptr_t CNWSObject__AddOpenDoorAction = 0x002F4C30; constexpr uintptr_t CNWSObject__AddTakeItemActions = 0x002FEB60; constexpr uintptr_t CNWSObject__AddUnlockObjectAction = 0x002F4F50; constexpr uintptr_t CNWSObject__AddUseObjectAction = 0x002FE9D0; constexpr uintptr_t CNWSObject__AIActionCloseDoor = 0x002F9BE0; constexpr uintptr_t CNWSObject__AIActionDialogObject = 0x002FA870; constexpr uintptr_t CNWSObject__AIActionDoCommand = 0x002FB4D0; constexpr uintptr_t CNWSObject__AIActionGiveItem = 0x002F9290; constexpr uintptr_t CNWSObject__AIActionLockObject = 0x002FC680; constexpr uintptr_t CNWSObject__AIActionOpenDoor = 0x002F9F80; constexpr uintptr_t CNWSObject__AIActionPauseDialog = 0x002FB130; constexpr uintptr_t CNWSObject__AIActionPlayAnimation = 0x002F8FB0; constexpr uintptr_t CNWSObject__AIActionPlaySound = 0x002F8CD0; constexpr uintptr_t CNWSObject__AIActionResumeDialog = 0x002FB250; constexpr uintptr_t CNWSObject__AIActionSetCommandable = 0x002F8F60; constexpr uintptr_t CNWSObject__AIActionSpeak = 0x002F9A60; constexpr uintptr_t CNWSObject__AIActionSpeakStrRef = 0x002F99C0; constexpr uintptr_t CNWSObject__AIActionTakeItem = 0x002F97C0; constexpr uintptr_t CNWSObject__AIActionUnlockObject = 0x002FB540; constexpr uintptr_t CNWSObject__AIActionUseObject = 0x002FD700; constexpr uintptr_t CNWSObject__AIActionWait = 0x002FB3E0; constexpr uintptr_t CNWSObject__AnimationStationary = 0x002EC9E0; constexpr uintptr_t CNWSObject__ApplyEffect = 0x002EA5E0; constexpr uintptr_t CNWSObject__AsNWSObject = 0x002F7BB0; constexpr uintptr_t CNWSObject__BroadcastCounterSpellData = 0x002F5270; constexpr uintptr_t CNWSObject__BroadcastDialog = 0x002F4500; constexpr uintptr_t CNWSObject__BroadcastFloatyData = 0x002F4A00; constexpr uintptr_t CNWSObject__BroadcastFloatyDataSTRREF = 0x002F4A10; constexpr uintptr_t CNWSObject__BroadcastSafeProjectile = 0x002F5AE0; constexpr uintptr_t CNWSObject__BroadcastSpellData = 0x002F55F0; constexpr uintptr_t CNWSObject__CalculateLastSpellProjectileTime = 0x002F6450; constexpr uintptr_t CNWSObject__CalculateSpellRangedMissTarget = 0x002F6770; constexpr uintptr_t CNWSObject__ClearAction = 0x002F7BD0; constexpr uintptr_t CNWSObject__ClearAllActions = 0x002ECA20; constexpr uintptr_t CNWSObject__ClearAllHostileActions = 0x002ECBE0; constexpr uintptr_t CNWSObject__ClearMatchedExpressionStrings = 0x002E85E0; constexpr uintptr_t CNWSObject__ClearSpellEffectsOnOthers = 0x002F2AD0; constexpr uintptr_t CNWSObject__CopyScriptVars = 0x002EA350; constexpr uintptr_t CNWSObject__DeleteCurrentAIAction = 0x002EC8E0; constexpr uintptr_t CNWSObject__DoDamage = 0x002ED4E0; constexpr uintptr_t CNWSObject__DoDamageImmunity = 0x002EFC90; constexpr uintptr_t CNWSObject__DoDamageReduction = 0x002ED510; constexpr uintptr_t CNWSObject__DoDamageResistance = 0x002EE5B0; constexpr uintptr_t CNWSObject__DoSpellImmunity = 0x002F0940; constexpr uintptr_t CNWSObject__DoSpellLevelAbsorption = 0x002F0420; constexpr uintptr_t CNWSObject__GetAcceptableAction = 0x002FE350; constexpr uintptr_t CNWSObject__GetActionByGroupId = 0x002E86D0; constexpr uintptr_t CNWSObject__GetAIStateReaction = 0x002FEE40; constexpr uintptr_t CNWSObject__GetAQActionIDByID = 0x002FE380; constexpr uintptr_t CNWSObject__GetArea = 0x002F0D60; constexpr uintptr_t CNWSObject__GetCurrentHitPoints = 0x002ED4C0; constexpr uintptr_t CNWSObject__GetDamageImmunity = 0x002F0040; constexpr uintptr_t CNWSObject__GetDamageImmunityByFlags = 0x002F0130; constexpr uintptr_t CNWSObject__GetDamageLevel = 0x002F0B70; constexpr uintptr_t CNWSObject__GetDead = 0x002F2A20; constexpr uintptr_t CNWSObject__GetDialogInterruptable = 0x002F7C10; constexpr uintptr_t CNWSObject__GetDialogResref = 0x002F7BE0; constexpr uintptr_t CNWSObject__GetEffectSpellId = 0x002F7C50; constexpr uintptr_t CNWSObject__GetFirstName = 0x002F7C20; constexpr uintptr_t CNWSObject__GetGender = 0x002F2CE0; constexpr uintptr_t CNWSObject__GetHasFeatEffectApplied = 0x002F75A0; constexpr uintptr_t CNWSObject__GetIDByAQActionID = 0x002FE540; constexpr uintptr_t CNWSObject__GetIsPCDying = 0x002F4BB0; constexpr uintptr_t CNWSObject__GetLastDamageAmountByFlags = 0x002F0250; constexpr uintptr_t CNWSObject__GetLastName = 0x002F7C30; constexpr uintptr_t CNWSObject__GetListenExpressionObj = 0x002F42A0; constexpr uintptr_t CNWSObject__GetLockOrientationToObject = 0x002F7C80; constexpr uintptr_t CNWSObject__GetMaxHitPoints = 0x002F7C40; constexpr uintptr_t CNWSObject__GetMaximumDamageResistanceVsDamageFlag = 0x002EFB70; constexpr uintptr_t CNWSObject__GetNearestObjectByName = 0x002F3FD0; constexpr uintptr_t CNWSObject__GetNewGroupID = 0x002E8B70; constexpr uintptr_t CNWSObject__GetNodeById = 0x002E8860; constexpr uintptr_t CNWSObject__GetNumActionGroups = 0x002E8900; constexpr uintptr_t CNWSObject__GetPortrait = 0x002F7C90; constexpr uintptr_t CNWSObject__GetPortraitId = 0x002F7D20; constexpr uintptr_t CNWSObject__GetPositionByGroupIndex = 0x002E87A0; constexpr uintptr_t CNWSObject__GetReputation = 0x002FE570; constexpr uintptr_t CNWSObject__GetScriptLocation = 0x002F4AC0; constexpr uintptr_t CNWSObject__HasSpellEffectApplied = 0x002F4B10; constexpr uintptr_t CNWSObject__IsDialogDelay = 0x002F2DF0; constexpr uintptr_t CNWSObject__LoadActionQueue = 0x002E96B0; constexpr uintptr_t CNWSObject__LoadEffectList = 0x002E9520; constexpr uintptr_t CNWSObject__LoadListenData = 0x002EB240; constexpr uintptr_t CNWSObject__LoadObjectState = 0x002E94C0; constexpr uintptr_t CNWSObject__LoadVarTable = 0x002E9680; constexpr uintptr_t CNWSObject__PlaySoundSet = 0x002F3390; constexpr uintptr_t CNWSObject__RemoveEffect = 0x002F10B0; constexpr uintptr_t CNWSObject__RemoveEffectByCreator = 0x002F1530; constexpr uintptr_t CNWSObject__RemoveEffectById = 0x002EE2F0; constexpr uintptr_t CNWSObject__RemoveEffectBySpellId = 0x002F4B60; constexpr uintptr_t CNWSObject__RemoveEffectTarget = 0x002F1270; constexpr uintptr_t CNWSObject__RemoveGroup = 0x002E89C0; constexpr uintptr_t CNWSObject__RemoveLoopingVisualEffect = 0x002F0F80; constexpr uintptr_t CNWSObject__RemoveObjectFromDialog = 0x002F3F70; constexpr uintptr_t CNWSObject__RemoveSomeEffectsOfDurationType = 0x002F1590; constexpr uintptr_t CNWSObject__ReplyDialog = 0x002F3AB0; constexpr uintptr_t CNWSObject__ReportOverflow = 0x002F7610; constexpr uintptr_t CNWSObject__RunActions = 0x002F7E60; constexpr uintptr_t CNWSObject__RunDialogOneLiner = 0x002F3600; constexpr uintptr_t CNWSObject__SaveActionQueue = 0x002EA060; constexpr uintptr_t CNWSObject__SaveEffectList = 0x002E9F30; constexpr uintptr_t CNWSObject__SaveListenData = 0x002EB150; constexpr uintptr_t CNWSObject__SaveObjectState = 0x002E9ED0; constexpr uintptr_t CNWSObject__SaveVarTable = 0x002EA030; constexpr uintptr_t CNWSObject__SendDialogEntry = 0x002F34D0; constexpr uintptr_t CNWSObject__SendDialogReplies = 0x002F3990; constexpr uintptr_t CNWSObject__SetAnimation = 0x002ED4A0; constexpr uintptr_t CNWSObject__SetArea = 0x002F2CB0; constexpr uintptr_t CNWSObject__SetDamageImmunity = 0x002F0070; constexpr uintptr_t CNWSObject__SetDialogDelay = 0x002F2D00; constexpr uintptr_t CNWSObject__SetDialogOwner = 0x002F3480; constexpr uintptr_t CNWSObject__SetEffectSpellId = 0x002F7C60; constexpr uintptr_t CNWSObject__SetGroupInterruptable = 0x002E9440; constexpr uintptr_t CNWSObject__SetLastHostileActor = 0x002F78E0; constexpr uintptr_t CNWSObject__SetListenExpression = 0x002EB440; constexpr uintptr_t CNWSObject__SetLockOrientationToObject = 0x002F7C70; constexpr uintptr_t CNWSObject__SetOrientation = 0x002F0C60; constexpr uintptr_t CNWSObject__SetPortrait = 0x002F7CD0; constexpr uintptr_t CNWSObject__SetPortraitId = 0x002EB690; constexpr uintptr_t CNWSObject__SetPosition = 0x002F0C80; constexpr uintptr_t CNWSObject__SpawnBodyBag = 0x002F71B0; constexpr uintptr_t CNWSObject__SpellCastAndImpact = 0x002F5D70; constexpr uintptr_t CNWSObject__StartDialog = 0x002F2E80; constexpr uintptr_t CNWSObject__StopDialog = 0x002F3E10; constexpr uintptr_t CNWSObject__TerminateAISliceAfterAction = 0x002FE320; constexpr uintptr_t CNWSObject__TestActionList = 0x002E93D0; constexpr uintptr_t CNWSObject__TestListenExpression = 0x002F42E0; constexpr uintptr_t CNWSObject__UpdateAttributesOnEffect = 0x002F7D40; constexpr uintptr_t CNWSObject__UpdateDialog = 0x002F3B40; constexpr uintptr_t CNWSObject__UpdateEffectList = 0x002F1600; constexpr uintptr_t CNWSObject__UpdateEffectPtrs = 0x002F7D30; constexpr uintptr_t CNWSObjectActionNode__CNWSObjectActionNodeCtor__0 = 0x002E7750; constexpr uintptr_t CNWSObjectActionNode__CNWSObjectActionNodeDtor__0 = 0x002E78D0; constexpr uintptr_t CNWSpell__CNWSpellCtor__0 = 0x00106470; constexpr uintptr_t CNWSpell__CNWSpellCtor__2 = 0x0010A130; constexpr uintptr_t CNWSpell__CNWSpellDtor__0 = 0x001068B0; constexpr uintptr_t CNWSpell__GetSpellHasSomaticComponent = 0x00106A70; constexpr uintptr_t CNWSpell__GetSpellHasVerbalComponent = 0x001069D0; constexpr uintptr_t CNWSpell__GetSpellLevel = 0x00106950; constexpr uintptr_t CNWSpell__GetSpellNameText = 0x00106BC0; constexpr uintptr_t CNWSpell__GetSubRadialSpell = 0x00106B10; constexpr uintptr_t CNWSpell__SetSubRadialSpell = 0x00106B40; constexpr uintptr_t CNWSpell__SetSubRadialSpellCount = 0x00106B70; constexpr uintptr_t CNWSpellArray__CNWSpellArrayCtor__0 = 0x00106C80; constexpr uintptr_t CNWSpellArray__CNWSpellArrayDtor__0 = 0x00106CC0; constexpr uintptr_t CNWSpellArray__GetSpell = 0x00106E40; constexpr uintptr_t CNWSpellArray__Load = 0x00106E70; constexpr uintptr_t CNWSpellArray__OperatorMultiplication = 0x0010A080; constexpr uintptr_t CNWSPlaceable__CNWSPlaceableCtor__0 = 0x00302220; constexpr uintptr_t CNWSPlaceable__CNWSPlaceableDtor__0 = 0x00302870; constexpr uintptr_t CNWSPlaceable__AcquireItem = 0x00305530; constexpr uintptr_t CNWSPlaceable__AcquireItemsFromObject = 0x00308F80; constexpr uintptr_t CNWSPlaceable__AddCastSpellActions = 0x0030AC30; constexpr uintptr_t CNWSPlaceable__AddToArea = 0x003075A0; constexpr uintptr_t CNWSPlaceable__AIActionCastSpell = 0x0030AD60; constexpr uintptr_t CNWSPlaceable__AIUpdate = 0x00308CB0; constexpr uintptr_t CNWSPlaceable__AsNWSPlaceable = 0x0030B250; constexpr uintptr_t CNWSPlaceable__CalculateActionPoints = 0x00307280; constexpr uintptr_t CNWSPlaceable__CloseInventory = 0x0030A800; constexpr uintptr_t CNWSPlaceable__ClosePlaceableForAllPlayers = 0x00308BF0; constexpr uintptr_t CNWSPlaceable__DoDamage = 0x0030A9C0; constexpr uintptr_t CNWSPlaceable__DropItemsIntoArea = 0x0030AA00; constexpr uintptr_t CNWSPlaceable__EventHandler = 0x00307930; constexpr uintptr_t CNWSPlaceable__GetBodyBagAppearance = 0x0030AFD0; constexpr uintptr_t CNWSPlaceable__GetDialogResref = 0x0030B260; constexpr uintptr_t CNWSPlaceable__GetEffectSpellId = 0x0030B2B0; constexpr uintptr_t CNWSPlaceable__GetFirstName = 0x0030B2A0; constexpr uintptr_t CNWSPlaceable__GetItemCount = 0x0030B160; constexpr uintptr_t CNWSPlaceable__GetLightIsOn = 0x00305470; constexpr uintptr_t CNWSPlaceable__GetNearestActionPoint = 0x0030AB10; constexpr uintptr_t CNWSPlaceable__LoadBodyBag = 0x00305830; constexpr uintptr_t CNWSPlaceable__LoadFromTemplate = 0x00303000; constexpr uintptr_t CNWSPlaceable__LoadPlaceable = 0x003031A0; constexpr uintptr_t CNWSPlaceable__OpenInventory = 0x0030A590; constexpr uintptr_t CNWSPlaceable__PostProcess = 0x00305740; constexpr uintptr_t CNWSPlaceable__RemoveFromArea = 0x00302CA0; constexpr uintptr_t CNWSPlaceable__RemoveItem = 0x00308F10; constexpr uintptr_t CNWSPlaceable__SavePlaceable = 0x00306150; constexpr uintptr_t CNWSPlaceable__SetEffectSpellId = 0x0030B2C0; constexpr uintptr_t CNWSPlaceable__SetLightIsOn = 0x00305390; constexpr uintptr_t CNWSPlaceable__SetOrientation = 0x00307160; constexpr uintptr_t CNWSPlayer__CNWSPlayerCtor__0 = 0x0030C580; constexpr uintptr_t CNWSPlayer__CNWSPlayerDtor__0 = 0x0030C8E0; constexpr uintptr_t CNWSPlayer__AddArea = 0x00318240; constexpr uintptr_t CNWSPlayer__AddDMAbilities = 0x0030F460; constexpr uintptr_t CNWSPlayer__AllocateAreas = 0x003181D0; constexpr uintptr_t CNWSPlayer__AsNWSPlayer = 0x00318570; constexpr uintptr_t CNWSPlayer__BackupServerCharacter = 0x00311960; constexpr uintptr_t CNWSPlayer__CleanMyTURDs = 0x0030DBD0; constexpr uintptr_t CNWSPlayer__ClearPlayerLastUpdateObject = 0x0030CBD0; constexpr uintptr_t CNWSPlayer__ClearPlayerOnDestroyGame = 0x0030CC70; constexpr uintptr_t CNWSPlayer__CreateNewPlayerLastUpdateObject = 0x00318280; constexpr uintptr_t CNWSPlayer__DropTURD = 0x0030CFF0; constexpr uintptr_t CNWSPlayer__EatTURD = 0x0030D400; constexpr uintptr_t CNWSPlayer__GetCharacterInfoFromIFO = 0x00310280; constexpr uintptr_t CNWSPlayer__GetGameObject = 0x0030B6F0; constexpr uintptr_t CNWSPlayer__GetIsAllowedToSave = 0x0030DCD0; constexpr uintptr_t CNWSPlayer__GetLastUpdateObject = 0x0030DC30; constexpr uintptr_t CNWSPlayer__GetPlayerName = 0x0030D390; constexpr uintptr_t CNWSPlayer__HasExpansionPack = 0x00317A80; constexpr uintptr_t CNWSPlayer__LoadCharacterFromIFO = 0x0030EBE0; constexpr uintptr_t CNWSPlayer__LoadCreatureData = 0x0030DE80; constexpr uintptr_t CNWSPlayer__LoadDMCharacter = 0x00310460; constexpr uintptr_t CNWSPlayer__LoadLocalCharacter = 0x0030DD30; constexpr uintptr_t CNWSPlayer__LoadServerCharacter = 0x003105E0; constexpr uintptr_t CNWSPlayer__LoadTURDInfoFromIFO = 0x0030FF40; constexpr uintptr_t CNWSPlayer__PackCreatureIntoMessage = 0x00317CA0; constexpr uintptr_t CNWSPlayer__PermittedToDisplayCharacterSheet = 0x003182F0; constexpr uintptr_t CNWSPlayer__RestoreCameraSettings = 0x003183C0; constexpr uintptr_t CNWSPlayer__SaveServerCharacter = 0x003107D0; constexpr uintptr_t CNWSPlayer__SetAreaTransitionBMP = 0x0030DD00; constexpr uintptr_t CNWSPlayer__SetGameObject = 0x0030D880; constexpr uintptr_t CNWSPlayer__StoreCameraSettings = 0x00318380; constexpr uintptr_t CNWSPlayer__StripAllInvalidItemPropertiesInInventory = 0x00317B00; constexpr uintptr_t CNWSPlayer__StripAllInvalidItemPropertiesOnItem = 0x00318400; constexpr uintptr_t CNWSPlayer__ValidateCharacter = 0x00311B50; constexpr uintptr_t CNWSPlayer__ValidateCharacter_SetNormalBonusFlags = 0x00317BE0; constexpr uintptr_t CNWSPlayerCharSheetGUI__ComputeCharacterSheetUpdateRequired = 0x0030B7B0; constexpr uintptr_t CNWSPlayerCharSheetGUI__SetCreatureDisplayed = 0x0030B740; constexpr uintptr_t CNWSPlayerContainerGUI__CNWSPlayerContainerGUICtor__0 = 0x0030C020; constexpr uintptr_t CNWSPlayerContainerGUI__SetNextPage = 0x0030C490; constexpr uintptr_t CNWSPlayerContainerGUI__SetOpen = 0x0030C2D0; constexpr uintptr_t CNWSPlayerContainerGUI__SetPreviousPage = 0x0030C510; constexpr uintptr_t CNWSPlayerInventoryGUI__CNWSPlayerInventoryGUICtor__0 = 0x0030BFA0; constexpr uintptr_t CNWSPlayerInventoryGUI__CNWSPlayerInventoryGUIDtor__0 = 0x0030C0D0; constexpr uintptr_t CNWSPlayerInventoryGUI__SetOpen = 0x0030C190; constexpr uintptr_t CNWSPlayerInventoryGUI__SetOwner = 0x0030C330; constexpr uintptr_t CNWSPlayerInventoryGUI__SetPanel = 0x0030C3B0; constexpr uintptr_t CNWSPlayerLastUpdateObject__CNWSPlayerLastUpdateObjectCtor__0 = 0x00319700; constexpr uintptr_t CNWSPlayerLastUpdateObject__CNWSPlayerLastUpdateObjectDtor__0 = 0x00319AA0; constexpr uintptr_t CNWSPlayerLastUpdateObject__AddKnownSpell = 0x0031A6A0; constexpr uintptr_t CNWSPlayerLastUpdateObject__ClearActionQueue = 0x0031AE80; constexpr uintptr_t CNWSPlayerLastUpdateObject__ClearAutoMapData = 0x0031A3D0; constexpr uintptr_t CNWSPlayerLastUpdateObject__ClearEffectIcons = 0x0031A410; constexpr uintptr_t CNWSPlayerLastUpdateObject__ClearKnownSpells = 0x0031A0A0; constexpr uintptr_t CNWSPlayerLastUpdateObject__ClearKnownSpellUsesLeft = 0x0031ADC0; constexpr uintptr_t CNWSPlayerLastUpdateObject__ClearMemorizedSpells = 0x0031A2D0; constexpr uintptr_t CNWSPlayerLastUpdateObject__ClearSpellAddDeleteLists = 0x0031ACA0; constexpr uintptr_t CNWSPlayerLastUpdateObject__ClearVisibilityList = 0x0031A4A0; constexpr uintptr_t CNWSPlayerLastUpdateObject__GetIsDomainSpell = 0x0031A950; constexpr uintptr_t CNWSPlayerLastUpdateObject__GetKnownSpell = 0x0031A890; constexpr uintptr_t CNWSPlayerLastUpdateObject__GetKnownSpellUsesLeft = 0x0031AE20; constexpr uintptr_t CNWSPlayerLastUpdateObject__GetMemorizedSpell = 0x0031A8D0; constexpr uintptr_t CNWSPlayerLastUpdateObject__GetMemorizedSpellMetaType = 0x0031A990; constexpr uintptr_t CNWSPlayerLastUpdateObject__GetMemorizedSpellReadied = 0x0031A910; constexpr uintptr_t CNWSPlayerLastUpdateObject__InitializeAutoMapData = 0x0031B160; constexpr uintptr_t CNWSPlayerLastUpdateObject__ResetAutoMapData = 0x0031B280; constexpr uintptr_t CNWSPlayerLastUpdateObject__SetKnownSpellUsesLeft = 0x0031AE50; constexpr uintptr_t CNWSPlayerLastUpdateObject__SetMemorizedSpellReadied = 0x0031A9D0; constexpr uintptr_t CNWSPlayerLastUpdateObject__SetMemorizedSpellSlot = 0x0031A5E0; constexpr uintptr_t CNWSPlayerLastUpdateObject__SetNumberMemorizedSpellSlots = 0x0031AA10; constexpr uintptr_t CNWSPlayerLUOInventory__CNWSPlayerLUOInventoryCtor__0 = 0x003185D0; constexpr uintptr_t CNWSPlayerLUOInventory__CNWSPlayerLUOInventoryDtor__0 = 0x00318990; constexpr uintptr_t CNWSPlayerLUOInventory__ClearBarter = 0x00318940; constexpr uintptr_t CNWSPlayerLUOInventory__ClearContainer = 0x00318900; constexpr uintptr_t CNWSPlayerLUOInventory__ClearRepository = 0x003188C0; constexpr uintptr_t CNWSPlayerLUOInventory__ClearSlots = 0x00318850; constexpr uintptr_t CNWSPlayerLUOInventory__ClearStore = 0x00318BC0; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListAddHead = 0x00319080; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListGetItem = 0x00318C00; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListGetItemObjectID = 0x00318CE0; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListGetNext = 0x00318EA0; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListGetNumber = 0x00318FA0; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListGetPrev = 0x00318F20; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListGetUpdateItem = 0x00318D60; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListRemove = 0x00319000; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListSetEnd = 0x00318E40; constexpr uintptr_t CNWSPlayerLUOInventory__ItemListSetStart = 0x00318DE0; constexpr uintptr_t CNWSPlayerStoreGUI__CNWSPlayerStoreGUICtor__0 = 0x0030B330; constexpr uintptr_t CNWSPlayerStoreGUI__CloseStore = 0x0030B5B0; constexpr uintptr_t CNWSPlayerStoreGUI__OpenStore = 0x0030B3B0; constexpr uintptr_t CNWSPlayerTURD__CNWSPlayerTURDCtor__0 = 0x0031B3D0; constexpr uintptr_t CNWSPlayerTURD__CNWSPlayerTURDDtor__0 = 0x0031B4F0; constexpr uintptr_t CNWSPlayerTURD__AddToArea = 0x0031C310; constexpr uintptr_t CNWSPlayerTURD__AIUpdate = 0x0031B8F0; constexpr uintptr_t CNWSPlayerTURD__AsNWSPlayerTURD = 0x0031D370; constexpr uintptr_t CNWSPlayerTURD__ClearAutomapData = 0x0031B810; constexpr uintptr_t CNWSPlayerTURD__CopyAutomapData = 0x0031D200; constexpr uintptr_t CNWSPlayerTURD__CopyEffectList = 0x0031D000; constexpr uintptr_t CNWSPlayerTURD__EventHandler = 0x0031B900; constexpr uintptr_t CNWSPlayerTURD__GetFirstName = 0x0031D380; constexpr uintptr_t CNWSPlayerTURD__GetLastName = 0x0031D390; constexpr uintptr_t CNWSPlayerTURD__LoadAutoMapData = 0x0031C7B0; constexpr uintptr_t CNWSPlayerTURD__LoadTURD = 0x0031B910; constexpr uintptr_t CNWSPlayerTURD__RemoveFromArea = 0x0031B7C0; constexpr uintptr_t CNWSPlayerTURD__SaveAutoMapData = 0x0031CF00; constexpr uintptr_t CNWSPlayerTURD__SaveTURD = 0x0031C9D0; constexpr uintptr_t CNWSPlayerTURD__SetPersonalReputation = 0x0031C690; constexpr uintptr_t CNWSPlayerTURD__SetReputation = 0x0031C410; constexpr uintptr_t CNWSRules__CNWSRulesCtor__0 = 0x0031D3F0; constexpr uintptr_t CNWSRules__CNWSRulesDtor__0 = 0x0031D450; constexpr uintptr_t CNWSScriptVarTable__CNWSScriptVarTableDtor__0 = 0x003643F0; constexpr uintptr_t CNWSScriptVarTable__DeleteIndex = 0x00363CE0; constexpr uintptr_t CNWSScriptVarTable__DestroyFloat = 0x00364740; constexpr uintptr_t CNWSScriptVarTable__DestroyInt = 0x003645A0; constexpr uintptr_t CNWSScriptVarTable__DestroyLocation = 0x00364920; constexpr uintptr_t CNWSScriptVarTable__DestroyObject = 0x00364880; constexpr uintptr_t CNWSScriptVarTable__DestroyString = 0x003647E0; constexpr uintptr_t CNWSScriptVarTable__GetFloat = 0x00363DF0; constexpr uintptr_t CNWSScriptVarTable__GetInt = 0x00363D80; constexpr uintptr_t CNWSScriptVarTable__GetLocation = 0x00363FA0; constexpr uintptr_t CNWSScriptVarTable__GetObject = 0x00363F20; constexpr uintptr_t CNWSScriptVarTable__GetString = 0x00363E70; constexpr uintptr_t CNWSScriptVarTable__LoadVarTable = 0x003649C0; constexpr uintptr_t CNWSScriptVarTable__MatchIndex = 0x00363B20; constexpr uintptr_t CNWSScriptVarTable__SaveVarTable = 0x00364EF0; constexpr uintptr_t CNWSScriptVarTable__SetFloat = 0x00364310; constexpr uintptr_t CNWSScriptVarTable__SetInt = 0x00364060; constexpr uintptr_t CNWSScriptVarTable__SetLocation = 0x003643A0; constexpr uintptr_t CNWSScriptVarTable__SetObject = 0x00364370; constexpr uintptr_t CNWSScriptVarTable__SetString = 0x00364340; constexpr uintptr_t CNWSSoundObject__CNWSSoundObjectCtor__0 = 0x00351D70; constexpr uintptr_t CNWSSoundObject__CNWSSoundObjectDtor__0 = 0x00351F10; constexpr uintptr_t CNWSSoundObject__AddToArea = 0x00352B90; constexpr uintptr_t CNWSSoundObject__AIUpdate = 0x00351FF0; constexpr uintptr_t CNWSSoundObject__AsNWSSoundObject = 0x003534F0; constexpr uintptr_t CNWSSoundObject__ChangePosition = 0x00353370; constexpr uintptr_t CNWSSoundObject__ChangeVolume = 0x00353240; constexpr uintptr_t CNWSSoundObject__EventHandler = 0x00352000; constexpr uintptr_t CNWSSoundObject__GetPeopleInSoundRange = 0x003534D0; constexpr uintptr_t CNWSSoundObject__Load = 0x00352010; constexpr uintptr_t CNWSSoundObject__PackIntoMessage = 0x00352CE0; constexpr uintptr_t CNWSSoundObject__Play = 0x00353060; constexpr uintptr_t CNWSSoundObject__RemoveFromArea = 0x00352C90; constexpr uintptr_t CNWSSoundObject__Save = 0x003527F0; constexpr uintptr_t CNWSSoundObject__Stop = 0x00353150; constexpr uintptr_t CNWSSpellScriptData__LoadData = 0x0017C990; constexpr uintptr_t CNWSSpellScriptData__SaveData = 0x0017C840; constexpr uintptr_t CNWSStats_Spell__CNWSStats_SpellCtor__0 = 0x001BF0C0; constexpr uintptr_t CNWSStats_SpellLikeAbility__CNWSStats_SpellLikeAbilityCtor__0 = 0x001C03F0; constexpr uintptr_t CNWSStore__CNWSStoreCtor__0 = 0x003582D0; constexpr uintptr_t CNWSStore__CNWSStoreDtor__0 = 0x00358630; constexpr uintptr_t CNWSStore__AcquireItem = 0x0035B6D0; constexpr uintptr_t CNWSStore__AddCustomer = 0x0035BE70; constexpr uintptr_t CNWSStore__AddItemToInventory = 0x0035A4E0; constexpr uintptr_t CNWSStore__AddToArea = 0x0035B1D0; constexpr uintptr_t CNWSStore__AIUpdate = 0x0035B3E0; constexpr uintptr_t CNWSStore__AsNWSStore = 0x0035C2E0; constexpr uintptr_t CNWSStore__CalculateItemBuyPrice = 0x0035B3F0; constexpr uintptr_t CNWSStore__CalculateItemSellPrice = 0x0035B560; constexpr uintptr_t CNWSStore__EventHandler = 0x0035B270; constexpr uintptr_t CNWSStore__GetAppropriateListId = 0x0035A4A0; constexpr uintptr_t CNWSStore__GetCustomer = 0x0035C0D0; constexpr uintptr_t CNWSStore__GetCustomerBuyRate = 0x0035B4F0; constexpr uintptr_t CNWSStore__GetCustomerSellRate = 0x0035B620; constexpr uintptr_t CNWSStore__GetIsRestrictedBuyItem = 0x0035BBF0; constexpr uintptr_t CNWSStore__GetItemInInventory__0 = 0x0035C1E0; constexpr uintptr_t CNWSStore__GetItemInInventory__1 = 0x0035C110; constexpr uintptr_t CNWSStore__LoadFromTemplate = 0x00358A10; constexpr uintptr_t CNWSStore__LoadStore = 0x00358BB0; constexpr uintptr_t CNWSStore__RemoveCustomer = 0x0035C040; constexpr uintptr_t CNWSStore__RemoveFromArea = 0x00358970; constexpr uintptr_t CNWSStore__RemoveItem = 0x0035B670; constexpr uintptr_t CNWSStore__RemoveItemFromInventory = 0x0035BB20; constexpr uintptr_t CNWSStore__SaveStore = 0x0035AA60; constexpr uintptr_t CNWSStore__SellItem = 0x0035B8B0; constexpr uintptr_t CNWSSysAdmin__CNWSSysAdminCtor__0 = 0x0035C340; constexpr uintptr_t CNWSSysAdmin__CNWSSysAdminDtor__0 = 0x0035C3A0; constexpr uintptr_t CNWSSysAdmin__AsNWSSysAdmin = 0x0035C400; constexpr uintptr_t CNWSTile__CNWSTileCtor__0 = 0x0035C460; constexpr uintptr_t CNWSTile__CNWSTileDtor__0 = 0x0035C560; constexpr uintptr_t CNWSTile__AddTrigger = 0x0035C640; constexpr uintptr_t CNWSTile__ClearLineOfSight = 0x0035C7B0; constexpr uintptr_t CNWSTile__ClippedLineSegmentWalkable = 0x0035C9E0; constexpr uintptr_t CNWSTile__ComputeClippedLineSegment = 0x0035CB70; constexpr uintptr_t CNWSTile__ComputeHeight = 0x0035CEA0; constexpr uintptr_t CNWSTile__FindClosestRegion = 0x0035CF60; constexpr uintptr_t CNWSTile__GetExit = 0x0035D010; constexpr uintptr_t CNWSTile__GetExitNumber = 0x0035D0B0; constexpr uintptr_t CNWSTile__GetRegionCoords = 0x0035D140; constexpr uintptr_t CNWSTile__GetRegionEntrance = 0x0035D1E0; constexpr uintptr_t CNWSTile__GetSurfaceMaterial = 0x0035D790; constexpr uintptr_t CNWSTile__GetTileData = 0x0035D280; constexpr uintptr_t CNWSTile__GetTotalExits = 0x0035D290; constexpr uintptr_t CNWSTile__GetWalkMesh = 0x0035D760; constexpr uintptr_t CNWSTile__IntersectLineSegments = 0x0035D540; constexpr uintptr_t CNWSTile__InTrigger = 0x0035D2C0; constexpr uintptr_t CNWSTile__LoadWalkMesh = 0x0035D740; constexpr uintptr_t CNWSTile__NoNonWalkPolysOnTile = 0x0035D830; constexpr uintptr_t CNWSTile__PlotIntraTilePath = 0x0035D9B0; constexpr uintptr_t CNWSTile__SetMainLightColor = 0x0035DD50; constexpr uintptr_t CNWSTile__SetSourceLightColor = 0x0035DD80; constexpr uintptr_t CNWSTile__SetTileData = 0x0035DD40; constexpr uintptr_t CNWSTransition__LoadFromGff = 0x0035E050; constexpr uintptr_t CNWSTransition__LookupTarget = 0x0035DE00; constexpr uintptr_t CNWSTransition__SaveToGff = 0x0035E140; constexpr uintptr_t CNWSTransition__SetTarget__0 = 0x0035DF50; constexpr uintptr_t CNWSTransition__SetTarget__1 = 0x0035DF00; constexpr uintptr_t CNWSTransition__Unlink = 0x0035DFE0; constexpr uintptr_t CNWSTrigger__CNWSTriggerCtor__0 = 0x0035E220; constexpr uintptr_t CNWSTrigger__CNWSTriggerDtor__0 = 0x0035E580; constexpr uintptr_t CNWSTrigger__AddToArea = 0x0035EC50; constexpr uintptr_t CNWSTrigger__AIUpdate = 0x0035F200; constexpr uintptr_t CNWSTrigger__AsNWSTrigger = 0x00363AB0; constexpr uintptr_t CNWSTrigger__CalculateNearestPoint = 0x0035FA00; constexpr uintptr_t CNWSTrigger__ComputeBoundingBox = 0x0035F0D0; constexpr uintptr_t CNWSTrigger__CreateNewGeometry__0 = 0x00363520; constexpr uintptr_t CNWSTrigger__CreateNewGeometry__1 = 0x00363760; constexpr uintptr_t CNWSTrigger__EventHandler = 0x0035FC10; constexpr uintptr_t CNWSTrigger__GetCanFireTrapOnObject = 0x00360330; constexpr uintptr_t CNWSTrigger__GetClosestPointWithinTrigger = 0x0035F510; constexpr uintptr_t CNWSTrigger__GetFacingPosition = 0x0035F320; constexpr uintptr_t CNWSTrigger__GetFirstName = 0x00363AC0; constexpr uintptr_t CNWSTrigger__GetScriptName = 0x0035F300; constexpr uintptr_t CNWSTrigger__GetTargetArea = 0x0035F4B0; constexpr uintptr_t CNWSTrigger__InTrigger = 0x0035F850; constexpr uintptr_t CNWSTrigger__LineSegmentIntersectTrigger = 0x003604A0; constexpr uintptr_t CNWSTrigger__LoadFromTemplate = 0x003605D0; constexpr uintptr_t CNWSTrigger__LoadTrigger = 0x00361590; constexpr uintptr_t CNWSTrigger__OnEnterTrap = 0x00360010; constexpr uintptr_t CNWSTrigger__RemoveFromArea = 0x0035E820; constexpr uintptr_t CNWSTrigger__SaveTrigger = 0x00362C60; constexpr uintptr_t CNWSWaypoint__CNWSWaypointCtor__0 = 0x003655E0; constexpr uintptr_t CNWSWaypoint__CNWSWaypointDtor__0 = 0x003656B0; constexpr uintptr_t CNWSWaypoint__AddToArea = 0x003658D0; constexpr uintptr_t CNWSWaypoint__AIUpdate = 0x003659F0; constexpr uintptr_t CNWSWaypoint__AsNWSWaypoint = 0x003664A0; constexpr uintptr_t CNWSWaypoint__EventHandler = 0x00365A00; constexpr uintptr_t CNWSWaypoint__GetFirstName = 0x003664B0; constexpr uintptr_t CNWSWaypoint__LoadFromTemplate = 0x00365A90; constexpr uintptr_t CNWSWaypoint__LoadWaypoint = 0x00365C30; constexpr uintptr_t CNWSWaypoint__RemoveFromArea = 0x00365810; constexpr uintptr_t CNWSWaypoint__SaveWaypoint = 0x00366230; constexpr uintptr_t CNWTile__CNWTileCtor__0 = 0x0010A230; constexpr uintptr_t CNWTile__CNWTileDtor__0 = 0x0010A2F0; constexpr uintptr_t CNWTile__GetAnimLoop = 0x0010A6C0; constexpr uintptr_t CNWTile__GetLocation = 0x0010A320; constexpr uintptr_t CNWTile__GetMainLightColor = 0x0010A680; constexpr uintptr_t CNWTile__GetSourceLightColor = 0x0010A6A0; constexpr uintptr_t CNWTile__RotateCanonicalToReal = 0x0010A410; constexpr uintptr_t CNWTile__RotateCanonicalToRealTile = 0x0010A350; constexpr uintptr_t CNWTile__RotateRealToCanonical = 0x0010A560; constexpr uintptr_t CNWTile__RotateRealToCanonicalTile = 0x0010A4A0; constexpr uintptr_t CNWTile__SetAnimLoop = 0x0010A740; constexpr uintptr_t CNWTile__SetID = 0x0010A5F0; constexpr uintptr_t CNWTile__SetMainLightColor = 0x0010A6F0; constexpr uintptr_t CNWTile__SetOrientation = 0x0010A670; constexpr uintptr_t CNWTile__SetPosition = 0x0010A600; constexpr uintptr_t CNWTile__SetReplaceTexture = 0x0010A730; constexpr uintptr_t CNWTile__SetSourceLightColor = 0x0010A710; constexpr uintptr_t CNWTileData__CNWTileDataCtor__0 = 0x0010A760; constexpr uintptr_t CNWTileData__CNWTileDataDtor__0 = 0x0010AB40; constexpr uintptr_t CNWTileData__AddPropertyMethodString = 0x0010ADD0; constexpr uintptr_t CNWTileData__GetCornerType = 0x0010B000; constexpr uintptr_t CNWTileData__GetEdgeType = 0x0010B0D0; constexpr uintptr_t CNWTileData__GetMapIcon = 0x0010B140; constexpr uintptr_t CNWTileData__GetModelResRef = 0x0010AE60; constexpr uintptr_t CNWTileData__GetPropertyMethodStringList = 0x0010AE40; constexpr uintptr_t CNWTileData__SetCornerType = 0x0010AEF0; constexpr uintptr_t CNWTileData__SetEdgeType = 0x0010B070; constexpr uintptr_t CNWTileData__SetMapIcon = 0x0010B180; constexpr uintptr_t CNWTileData__SetModelResRef = 0x0010AEA0; constexpr uintptr_t CNWTileSet__CNWTileSetCtor__0 = 0x0010B1D0; constexpr uintptr_t CNWTileSet__CNWTileSetDtor__0 = 0x0010B650; constexpr uintptr_t CNWTileSet__GetCornerType = 0x0010B8A0; constexpr uintptr_t CNWTileSet__GetEdgeType = 0x0010B8F0; constexpr uintptr_t CNWTileSet__GetEnvMapResRef = 0x0010B940; constexpr uintptr_t CNWTileSet__GetHeightTransition = 0x0010B980; constexpr uintptr_t CNWTileSet__GetTileData = 0x0010B990; constexpr uintptr_t CNWTileSet__LoadTileSet = 0x0010BAB0; constexpr uintptr_t CNWTileSet__ParseLine = 0x0010C9A0; constexpr uintptr_t CNWTileSet__SetTileValue = 0x0010CB70; constexpr uintptr_t CNWTileSet__UnloadTileSet = 0x0010B780; constexpr uintptr_t CNWTileSetManager__CNWTileSetManagerCtor__0 = 0x0010CF50; constexpr uintptr_t CNWTileSetManager__CNWTileSetManagerDtor__0 = 0x0010D0C0; constexpr uintptr_t CNWTileSetManager__ClearTilePathNodes = 0x0010D120; constexpr uintptr_t CNWTileSetManager__ComputePathNodeInformation = 0x0010D510; constexpr uintptr_t CNWTileSetManager__ComputePathNodeRotation = 0x0010EC30; constexpr uintptr_t CNWTileSetManager__GetTilePathNode = 0x0010D480; constexpr uintptr_t CNWTileSetManager__InitializeTilePathNodes = 0x0010CFF0; constexpr uintptr_t CNWTileSetManager__RegisterTileSet = 0x0010D240; constexpr uintptr_t CNWTileSetManager__UnregisterTileSet = 0x0010D3D0; constexpr uintptr_t CNWTileSurfaceMesh__CNWTileSurfaceMeshCtor__0 = 0x0010ED90; constexpr uintptr_t CNWTileSurfaceMesh__CNWTileSurfaceMeshDtor__0 = 0x0010F180; constexpr uintptr_t CNWTileSurfaceMesh__CheckAABBNode = 0x00113C20; constexpr uintptr_t CNWTileSurfaceMesh__CheckAABBNodeOneWay = 0x00114240; constexpr uintptr_t CNWTileSurfaceMesh__ClearLineOfSight = 0x00114460; constexpr uintptr_t CNWTileSurfaceMesh__ClearLineOfSightOneWay = 0x001144D0; constexpr uintptr_t CNWTileSurfaceMesh__ClearSubdivision = 0x0010F370; constexpr uintptr_t CNWTileSurfaceMesh__ClippedLineSegmentWalkable = 0x0010F480; constexpr uintptr_t CNWTileSurfaceMesh__ComputeClippedLineSegment = 0x00112CC0; constexpr uintptr_t CNWTileSurfaceMesh__ComputeHeight = 0x001139D0; constexpr uintptr_t CNWTileSurfaceMesh__ComputePathNodes = 0x00114540; constexpr uintptr_t CNWTileSurfaceMesh__ComputeTriangleAdjacency = 0x001145B0; constexpr uintptr_t CNWTileSurfaceMesh__ConvertToTileOrientation = 0x0011A4C0; constexpr uintptr_t CNWTileSurfaceMesh__EstimateDistanceToTarget = 0x00114940; constexpr uintptr_t CNWTileSurfaceMesh__FindClosestRegion = 0x001149D0; constexpr uintptr_t CNWTileSurfaceMesh__FindRegionViaTriangle = 0x00114D00; constexpr uintptr_t CNWTileSurfaceMesh__FindTriangle = 0x00112FF0; constexpr uintptr_t CNWTileSurfaceMesh__GenerateBestIntraTileExit = 0x00114EF0; constexpr uintptr_t CNWTileSurfaceMesh__GetExit = 0x00116EA0; constexpr uintptr_t CNWTileSurfaceMesh__GetExitNumber = 0x00116F30; constexpr uintptr_t CNWTileSurfaceMesh__GetLOSMaterials = 0x0010F070; constexpr uintptr_t CNWTileSurfaceMesh__GetPathNode = 0x00117040; constexpr uintptr_t CNWTileSurfaceMesh__GetPathNodeOrientation = 0x00117050; constexpr uintptr_t CNWTileSurfaceMesh__GetRegionCoords = 0x00117060; constexpr uintptr_t CNWTileSurfaceMesh__GetRegionEntrance = 0x001170D0; constexpr uintptr_t CNWTileSurfaceMesh__GetSurfaceMaterial = 0x00113950; constexpr uintptr_t CNWTileSurfaceMesh__GetTopLevelVertexGeometry = 0x001133A0; constexpr uintptr_t CNWTileSurfaceMesh__GetTotalExits = 0x00117190; constexpr uintptr_t CNWTileSurfaceMesh__GetTriangleAdjacency = 0x00113400; constexpr uintptr_t CNWTileSurfaceMesh__GetTriangleCentroid = 0x001171D0; constexpr uintptr_t CNWTileSurfaceMesh__GetTriangleVertices = 0x00113330; constexpr uintptr_t CNWTileSurfaceMesh__GetVertexGeometry__0 = 0x001172B0; constexpr uintptr_t CNWTileSurfaceMesh__GetVertexGeometry__1 = 0x00117270; constexpr uintptr_t CNWTileSurfaceMesh__GetWalkMesh = 0x001172F0; constexpr uintptr_t CNWTileSurfaceMesh__IntersectLineSegments = 0x00113470; constexpr uintptr_t CNWTileSurfaceMesh__IntraTileDFS = 0x00117330; constexpr uintptr_t CNWTileSurfaceMesh__IntraTileDFSGenerateSuccessors = 0x00117830; constexpr uintptr_t CNWTileSurfaceMesh__LoadDefaultWalkMesh = 0x00118E50; constexpr uintptr_t CNWTileSurfaceMesh__LoadWalkMesh = 0x00110060; constexpr uintptr_t CNWTileSurfaceMesh__LoadWalkMeshString = 0x001193A0; constexpr uintptr_t CNWTileSurfaceMesh__NoNonWalkPolysOnTile = 0x00116140; constexpr uintptr_t CNWTileSurfaceMesh__PlotIntraTilePath = 0x00119440; constexpr uintptr_t CNWTileSurfaceMesh__PolyHit = 0x00113F30; constexpr uintptr_t CNWTileSurfaceMesh__PrintAABBTreeToPrintLog = 0x00119050; constexpr uintptr_t CNWTileSurfaceMesh__RunSubdivision = 0x0011A030; constexpr uintptr_t CNWTileSurfaceMesh__SetPathNode = 0x0011A4B0; constexpr uintptr_t CNWTileSurfaceMesh__SetWalkMesh = 0x0011A540; constexpr uintptr_t CNWTileSurfaceMesh__Subdivide = 0x00119E20; constexpr uintptr_t CNWTileSurfaceMesh__TestLineForWalkableOnArea = 0x00118C90; constexpr uintptr_t CNWTileSurfaceMesh__TestLineForWalkableOnTile = 0x00118AB0; constexpr uintptr_t CNWTileSurfaceMeshAABBNode__CNWTileSurfaceMeshAABBNodeDtor = 0x0011A590; constexpr uintptr_t CNWTileSurfaceMeshHashTableEntry__CNWTileSurfaceMeshHashTableEntryCtor__0 = 0x0010ECD0; constexpr uintptr_t CNWTileSurfaceMeshHashTableEntry__Fetch = 0x0010ED30; constexpr uintptr_t CNWTileSurfaceMeshHashTableEntry__Store = 0x0010ED60; constexpr uintptr_t CNWVirtualMachineCommands__CNWVirtualMachineCommandsDtor__0 = 0x00366860; constexpr uintptr_t CNWVirtualMachineCommands__CopyGameDefinedStructure = 0x003ABC50; constexpr uintptr_t CNWVirtualMachineCommands__CreateGameDefinedStructure = 0x003AC190; constexpr uintptr_t CNWVirtualMachineCommands__DebugGUIGetMessageFrom = 0x003ADAD0; constexpr uintptr_t CNWVirtualMachineCommands__DebugGUISendMessageTo = 0x003ADA90; constexpr uintptr_t CNWVirtualMachineCommands__DebugGUIStart = 0x003AD5E0; constexpr uintptr_t CNWVirtualMachineCommands__DebugGUIStop = 0x003ADA50; constexpr uintptr_t CNWVirtualMachineCommands__DebugGUIUpdate = 0x003ADB60; constexpr uintptr_t CNWVirtualMachineCommands__DestroyGameDefinedStructure = 0x003AC0A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommand = 0x003AB930; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionCounterSpell = 0x00394B70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionDoCommand = 0x00383970; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionEquipMostDamagingMelee = 0x0038AB90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionEquipMostDamagingRanged = 0x0038AC50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionEquipMostEffectiveArmor = 0x0038AF90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionExamine = 0x003A0AB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionExchangeItem = 0x003782A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionFollowObject = 0x00379C80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionInteractObject = 0x00385730; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionJumpToObject = 0x0037C1B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionJumpToPoint = 0x0037D7D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionLockActions = 0x0038F270; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionMoveAwayFromLocation = 0x00387A60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionPauseConversation = 0x0037CE00; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionRandomWalk = 0x0036D2B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionRest = 0x0038ADE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionResumeConversation = 0x0037CEC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionSit = 0x0037C080; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionStartConversation = 0x0037CB50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionUseFeat = 0x00383340; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionUseSkill = 0x00383470; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActionUseTalent = 0x00384480; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandActivatePortal = 0x0038E2B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAddItemProperty = 0x0039AC70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAddJournalQuestEntry = 0x00388280; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAddToParty = 0x00394EB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAdjustAlignment = 0x0037C730; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAdjustReputation = 0x0037D470; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAmbientSound = 0x0038BB80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandApplyEffectAtPoint = 0x0037DD20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandApplyEffectOnObject = 0x0037E010; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAreaManagement = 0x003A9710; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAssignCommand = 0x0036BFD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAssociateAccess = 0x003880C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAttack = 0x0036F1C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandAutoMapExplorationManagement = 0x003AB1D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandBeginConversation = 0x003811C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandBlackScreen = 0x0039D8D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandBootPC = 0x003949D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandCastSpell = 0x00371FC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandChangeFaction = 0x0037A970; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandClearAllActions = 0x0036C380; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandCloseDoor = 0x00371A50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandCopyItem = 0x00395B70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandCopyItemAndModify = 0x0039FBB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandCopyObject = 0x00398370; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandCreateItemOnObject = 0x0036E8B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandCreateObject = 0x0037F180; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandCreateTrapAtLocation = 0x003A4A60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandCreateTrapOnObject = 0x003A5460; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDayNightCycle = 0x003A11F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDecrementFeatUses = 0x003952A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDecrementSpellUses = 0x003953A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDelayCommand = 0x0036C0C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDeleteCampaignVariable = 0x00399300; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDeleteVar = 0x003824E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDestroyCampaignDatabase = 0x003971E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDestroyObject = 0x0037F000; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDistanceConversions = 0x0037DF70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDoDoorAction = 0x00385F60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDoSinglePlayerAutoSave = 0x00391010; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDoTouchAttack = 0x00378D50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandDoWhirlwindAttack = 0x0039E190; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectAbilityDecrease = 0x0038C570; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectAbilityIncrease = 0x00374100; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectACDecrease = 0x0038CC20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectACIncrease = 0x00375C90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectAppear = 0x0038F160; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectAreaEffect = 0x0037A570; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectAttackDecrease = 0x0038C710; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectAttackIncrease = 0x00376170; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectBeam = 0x0037CF80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectBlindness = 0x0038DEF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectComplex = 0x00377790; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectConcealment = 0x0038D720; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectCutsceneGhost = 0x003A17E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDamage = 0x00373D70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDamageDecrease = 0x0038C8C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDamageImmunityDecrease = 0x0038CAA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDamageImmunityIncrease = 0x00382A60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDamageIncrease = 0x00376500; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDamageReduction = 0x00376320; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDamageResistance = 0x003742A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDamageShield = 0x0038F500; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDarkness = 0x0038D8D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDisappear = 0x0038F050; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDisappearAppear = 0x0038EE90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectDisease = 0x003808B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectEthereal = 0x0039E940; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectHeal = 0x00373C00; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectHitPointChangeWhenDying = 0x0038A0F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectImmunity = 0x003827C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectInvisibility = 0x0038D5D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectLinkEffects = 0x0037C4B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectMissChance = 0x0038EBC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectModifyAttacks = 0x0038F340; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectMovementSpeedDecrease = 0x0038CE10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectMovementSpeedIncrease = 0x00379A30; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectNegativeLevel = 0x0038DA50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectPetrify = 0x00395A40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectPoison = 0x003807A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectResurrection = 0x00374470; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSanctuary = 0x0038DBD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSavingThrowDecrease = 0x0038CF70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSavingThrowIncrease = 0x00375F90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSeeInvisible = 0x0038DE30; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSkillDecrease = 0x0038D150; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSkillIncrease = 0x003871E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSpellFailure = 0x0039D250; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSpellImmunity = 0x00379330; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSpellLevelAbsorption = 0x0038E0F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSpellResistanceDecrease = 0x0038D310; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSpellResistanceIncrease = 0x0037D580; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSummonCreature = 0x00374580; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectSwarm = 0x00390BE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectTemporaryHP = 0x003848F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectTrueSeeing = 0x0038DD70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectTurnResistance = 0x00394070; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectUltravision = 0x0038D990; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEffectVisualEffect = 0x0037B320; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEndGame = 0x00394920; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEquipItem = 0x0036ECA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEventActivateItem = 0x0038B780; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEventConversation = 0x00383A20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEventSpellCastAt = 0x0037FF70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandEventUserDefined = 0x003781D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandExecuteScript = 0x0036C290; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandExploreAreaForPlayer = 0x0038AE80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandExportAllCharacters = 0x00394390; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandExportSingleCharacter = 0x0039F140; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandFindSubString = 0x003737F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandFloatingText = 0x003919E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandFloatToInt = 0x0037E720; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandFloatToString = 0x00379460; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandForceRest = 0x003A1FF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGet2DAString = 0x0039E790; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAbilityModifier = 0x00385880; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAbilityScore = 0x003784A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAC = 0x00375E80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetActionMode = 0x0036C670; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAge = 0x00390340; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAILevel = 0x0039EA60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAlignment = 0x003767C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAnimalCompanionCreatureType = 0x00390530; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAnimalCompanionName = 0x003906E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAOEObjectCreator = 0x00382410; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAppearanceType = 0x00395180; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetArcaneSpellFailure = 0x003A09E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetArea = 0x0036DCD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAreaSize = 0x003A66F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAssociate = 0x00387FA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAssociateType = 0x003A10A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAttackTarget = 0x00384BA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAttemptedAttackTarget = 0x00387E70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetAttemptedSpellTarget = 0x003894E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetBaseAttackBonus = 0x0039D960; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetBaseItemType = 0x0038A9A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetBattleTrack = 0x00394C00; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetBlockingDoor = 0x00385BA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCalendarDay = 0x0036D030; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCalendarMonth = 0x0036CFB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCalendarYear = 0x0036CF30; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCampaignFloat = 0x003972A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCampaignInt = 0x003975C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCampaignLocation = 0x00397C40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCampaignString = 0x00398000; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCampaignVector = 0x003978E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCasterLevel = 0x003747E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetChallengeRating = 0x003902A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetClassInformation = 0x00386A10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetColor = 0x003A8650; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCommandable = 0x00379970; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCreatureBodyPart = 0x003A3480; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCreatureHasTalent = 0x00384120; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCreatureSize = 0x0038EDF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCreatureTailType = 0x003A38B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCreatureTalent = 0x00384240; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCreatureWingType = 0x003A31F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCurrentAction = 0x00391670; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCutsceneCameraMoveRate = 0x003A0CE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetCutsceneMode = 0x003A2720; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetDamageDealtByType = 0x00386C70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetDayTrack = 0x003943C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetDeity = 0x0038FCF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetDescription = 0x003A7300; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetDialogSoundLength = 0x0039D610; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetDistanceBetween = 0x00379640; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetDistanceBetweenLocations = 0x00383AA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetDistanceToObject = 0x00371710; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetDroppableFlag = 0x00395F60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffect = 0x00374A80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffectCasterLevel = 0x003A8EE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffectCreator = 0x00375140; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffectDuration = 0x003A8F90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffectDurationRemaining = 0x003A9070; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffectDurationType = 0x00374FC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffectSpellId = 0x00384070; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffectSubType = 0x00375080; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffectTag = 0x003A8CD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEffectType = 0x0037A4B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEmotions = 0x0037E870; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEncounterData = 0x00382BE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetEnteringObject = 0x0036DDF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFacing = 0x0036E190; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionAverageGoodEvilAlignment = 0x0037BA70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionAverageLawChaosAlignment = 0x0037BB40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionAverageLevel = 0x0037BC10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionAverageReputation = 0x0037B980; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionAverageXP = 0x0037BCE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionBestAC = 0x0037BF80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionEqual = 0x0037A890; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionGold = 0x0037B8B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionLeader = 0x00394730; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionLeastDamagedMember = 0x0037B7B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionMember = 0x00389B60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionMostDamagedMember = 0x0037B6B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionMostFrequentClass = 0x0037BDB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionNthNearestMember = 0x003ADB70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionStrongestMember = 0x0037B5B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionWeakestMember = 0x0037B4B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFactionWorstAC = 0x0037BE80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFamiliarCreatureType = 0x00390490; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFamiliarName = 0x003905D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFogAmount = 0x003A2C70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFogColor = 0x003A2930; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFootstepType = 0x003A2F40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetFortitudeSavingThrow = 0x0038FF10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetGameDifficulty = 0x00391100; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetGoingToBeAttackedBy = 0x0037D2E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetGold = 0x0038B450; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetGoldPieceValue = 0x003846D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetGroundHeight = 0x003AB380; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHardness = 0x003A3B40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHasFeat = 0x003830F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHasFeatEffect = 0x00393CD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHasInventory = 0x00394CA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHasSkill = 0x00383230; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHasSpell = 0x00389600; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHasSpellEffect = 0x00383F80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHenchman = 0x003874B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHiddenWhenEquipped = 0x003AAF80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHitDice = 0x00379B90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetHitpoints = 0x00372930; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIdentified = 0x003859C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetImmortal = 0x0039E0F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetInfiniteFlag = 0x003A6590; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetInPersistentObject = 0x00381970; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetInventoryDisturbItem = 0x00387430; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetInventoryDisturbType = 0x003873A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsAreaAboveGround = 0x0039FA70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsAreaInterior = 0x0039EE40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsAreaNatural = 0x0039F9D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsCreatureDisarmable = 0x003A1E50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsDawn = 0x0038B090; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsDay = 0x0038AFD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsDMPossessed = 0x0039F880; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsDoorActionPossible = 0x00385C00; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsDusk = 0x0038B0F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsEncounterCreature = 0x0038B150; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsImmune = 0x00382900; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsInCombat = 0x00384FD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsInTrigger = 0x003A1C50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsNight = 0x0038B030; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsOpen = 0x0038BFC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsPossessedFamiliar = 0x0039ECD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsRacialTypePlayable = 0x003847B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsReactionType = 0x0038DFC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsResting = 0x003908B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsSkillSuccessful = 0x0039CF20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsTalentValid = 0x003879B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsTrapped = 0x00393F80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetIsWeaponEffective = 0x0038B6C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemACValue = 0x0038ACF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemAppearance = 0x003A07F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemCharges = 0x0039AAB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemCursedFlag = 0x003A0E40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemHasItemProperty = 0x0038AA40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemInInventory = 0x00386310; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemInSlot = 0x00379790; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemPossessedBy = 0x0036E450; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemPossessor = 0x0036E300; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemProperty = 0x0039B260; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemPropertyDuration = 0x003A9490; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemPropertyDurationRemaining = 0x003A9580; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemPropertyDurationType = 0x0039B570; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemPropertyInfo = 0x0039B650; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemPropertyTag = 0x003A91F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemPropertyType = 0x0039B490; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetItemStackSize = 0x0039A840; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetJournalQuestExperience = 0x00389CC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetKeyRequiredFeedbackMessage = 0x003A6170; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastAssociateCommand = 0x00385070; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastAttacker = 0x0036F100; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastAttackMode = 0x00384E40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastAttackType = 0x00384C40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastClosedBy = 0x003818B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastDamager = 0x00386E50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastDisarmed = 0x00386F20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastDisturbed = 0x00386FE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastEquipped = 0x0039FB10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastHostileActor = 0x003941A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastKiller = 0x0038BCD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastLocked = 0x00387080; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastOpenedBy = 0x00389540; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastPCRested = 0x00390950; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastPerceived = 0x003815D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastPerception = 0x00381680; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastRestEventType = 0x00390AD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastSpeaker = 0x00381110; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastSpellCastClass = 0x003A15F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastTrapDetected = 0x0038F460; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastUnlocked = 0x00387130; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastUsedBy = 0x003857D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLastWeaponUsed = 0x00385690; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLeavingObject = 0x0036DF30; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLimitAbilityBonus = 0x003AB540; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLimitAbilityPenalty = 0x003AB590; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLimitAttackBonus = 0x003AB450; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLimitDamageBonus = 0x003AB4A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLimitSavingThrowBonus = 0x003AB4F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLimitSkillBonus = 0x003AB5E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLocation = 0x0037D690; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLocked = 0x00385520; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLockInfo = 0x003939D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetLootable = 0x003A0C40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetMaster = 0x00384F30; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetMatchedString = 0x0037AF40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetMatchedStringsCount = 0x0037B280; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetMatchedStringsNum = 0x0037C110; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetMaxHenchmen = 0x003A1040; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetMetaMagicFeat = 0x00375730; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetModeState = 0x003950B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetModule = 0x0037F120; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetModuleItemStuff = 0x00382E60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetModuleName = 0x00394630; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetMovementRate = 0x003903E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetName = 0x003809C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetNearestObject = 0x0036F2A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetNearestTrap = 0x0038F6A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetNightTrack = 0x00394460; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetNumStackedItems = 0x0038E650; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetObjectByTag = 0x0037C640; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetObjectInArea = 0x003752E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetObjectInShape = 0x003768F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetObjectType = 0x003757B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetObjectValid = 0x003718E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetObjectVisibility = 0x00383630; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPC = 0x00393F00; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPCChatMessage = 0x003A8310; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPCChatSpeaker = 0x003A82B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPCChatVolume = 0x003A8400; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPCIPAddress = 0x00388D80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPCLevellingUp = 0x00393C70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPCPlayerName = 0x00388F70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPCPublicCDKey = 0x00388AD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPCSpeaker = 0x0037EA00; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPhenoType = 0x003A23E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPickpocketableFlag = 0x003A2DE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPlaceableIllumination = 0x00393E60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPlayerConnectionRelayed = 0x00388EB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPlotFlag = 0x0038D420; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPortraitId = 0x003A6DE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPortraitResRef = 0x003A6F60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetPosition = 0x0036E090; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetRacialType = 0x00375890; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetReflexAdjustedDamage = 0x00383BE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetReflexSavingThrow = 0x00390170; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetReputation = 0x0037D380; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetResRef = 0x00395890; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSittingCreature = 0x0037D240; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSkillRank = 0x00384A60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSkyBox = 0x003A2800; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSpellCast = 0x003800B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSpellCasterItem = 0x0038BD50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSpellId = 0x003803F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSpellResistance = 0x003A1150; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSpellSaveDC = 0x00375AC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSpellTargetLoc = 0x0037E380; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSpellTargetObject = 0x00371EF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStartingPackage = 0x003A1BB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStat = 0x00387910; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStolenFlag = 0x003960D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStrByStrRef = 0x0037EAC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStringLeft = 0x00373470; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStringLength = 0x00373080; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStringLowerCase = 0x00373240; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStringRight = 0x00373350; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStringUpperCase = 0x00373130; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetStrRefSoundDuration = 0x00394DA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSubRace = 0x0038FE00; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSubString = 0x003736B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetSurfaceMaterial = 0x003AB2C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTag = 0x00379DF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTileLightColor = 0x00391390; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTimeHour = 0x0036D0B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTimeMillisecond = 0x0036D230; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTimeMinute = 0x0036D130; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTimeSecond = 0x0036D1B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTotalDamageDealt = 0x00386D80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTransitionTarget = 0x0037C3E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTrapInfo = 0x00391CA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetTurnResistanceHD = 0x0038ED50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetUseableFlag = 0x00396010; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetUserDefinedEventNumber = 0x003802D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetVar = 0x00372A60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetWaypointByTag = 0x0037C300; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetWeaponRanged = 0x00390F50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetWeather = 0x0039F930; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetWeight = 0x0039E020; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetWillSavingThrow = 0x00390040; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetXP = 0x0038A800; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGetXPScale = 0x003A6070; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGiveGoldToCreature = 0x00385110; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandGiveXPToCreature = 0x0038A650; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIncrementRemainingFeatUses = 0x0039F060; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandInsertString = 0x00373590; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIntToFloat = 0x0037E6B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIntToHexString = 0x0038A8D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIntToString = 0x00375200; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIsAIState = 0x003788D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIsDM = 0x0038B540; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIsEffectValid = 0x00374ED0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIsInConversation = 0x0038C470; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIsItemPropertyValid = 0x0039B180; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIsListening = 0x0037AB20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandIsPC = 0x0037DEE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandItemActivated = 0x0038BDD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandItemPropertyEffect = 0x0039B840; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandLevelUpHenchman = 0x0039DDD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandLineOfSight = 0x003A12D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandLocation = 0x0037DB90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandLocationAccess = 0x0037E530; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandLockCamera = 0x003A6470; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandMath = 0x00373910; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandModuleAccess = 0x00383770; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandMoveAwayFromObject = 0x0036DAE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandMoveToObject = 0x0036D7E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandMoveToPoint = 0x0036D410; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandMusicBackground = 0x0038B960; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandMusicBattle = 0x0038BA90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandObjectToString = 0x003826C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandOpenDoor = 0x00371970; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandOpenInventory = 0x0039DAB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandOpenStore = 0x00389A10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPersonalReputationAccess = 0x0038A420; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPickUpItem = 0x0036EF50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPlayAnimation = 0x00370BB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPlaySound = 0x00371D10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPlaySoundByStrRef = 0x0039F200; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPopUpGUIPanel = 0x0038A230; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPrintFloat = 0x0036BBA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPrintInteger = 0x0036BDD0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPrintLogEntry = 0x00394500; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPrintObject = 0x0036BED0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPrintString = 0x0036BA40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPrintVector = 0x003789C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandPutDownItem = 0x0036F020; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRandom = 0x0036B9B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRandomName = 0x003804A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRecomputeStaticLighting = 0x00391310; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRemoveEffect = 0x00374CA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRemoveFromParty = 0x00394FF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRemoveItemProperty = 0x0039AF30; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRemoveJournalQuestEntry = 0x00388760; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandResistSpell = 0x00379F90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRestoreBaseAttackBonus = 0x003A1760; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRestoreCameraFacing = 0x0039DD20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRetrieveCampaignObject = 0x00399D40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandRollDice = 0x003755D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSavingThrow = 0x00375960; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSendMessageToAllDMs = 0x003947F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSendMessageToPC = 0x00389370; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSendMessageToPCByStrRef = 0x0039EEE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetActionMode = 0x0036C590; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetAILevel = 0x0039EB00; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetAreaTransitionBMP = 0x0037CA40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetAssociateListenPatterns = 0x00385610; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetBaseAttackBonus = 0x003A16A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCalendar = 0x0036CB40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCameraHeight = 0x003A21D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCameraLocation = 0x00371B10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCameraMode = 0x003907F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCampaignFloat = 0x00396180; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCampaignInt = 0x003964A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCampaignLocation = 0x00396AF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCampaignString = 0x00396EA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCampaignVector = 0x003967C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetColor = 0x003A87C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCommandable = 0x003798A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCreatureAppearanceType = 0x003A1A20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCreatureBodyPart = 0x003A3650; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCreatureTailType = 0x003A3970; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCreatureWingType = 0x003A32B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCustomToken = 0x00382F60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCutsceneCameraMoveRate = 0x003A0D80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetCutsceneMode = 0x0039D3A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetDeity = 0x0039F770; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetDescription = 0x003A7ED0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetDislike = 0x00389200; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetDroppableFlag = 0x0039DF80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetEncounterData = 0x00382D20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetFacing = 0x0036C750; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetFade = 0x0039D710; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetFogAmount = 0x003A2AC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetFogColor = 0x003A2560; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetFootstepType = 0x003A3090; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetHardness = 0x003A3C10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetHiddenWhenEquipped = 0x003AAE40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetIdentified = 0x00385A60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetImmortal = 0x0039DA10; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetInfiniteFlag = 0x003A6640; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetIsDestroyable = 0x003851E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetItemCharges = 0x0039AB50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetItemCursedFlag = 0x003A0EF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetItemStackSize = 0x0039A8E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetKeyRequiredFeedbackMessage = 0x003A62E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLike = 0x00389090; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLimitAbilityBonus = 0x003AB7B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLimitAbilityPenalty = 0x003AB830; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLimitAttackBonus = 0x003AB630; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLimitDamageBonus = 0x003AB6B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLimitSavingThrowBonus = 0x003AB730; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLimitSkillBonus = 0x003AB8B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetListening = 0x0037ABE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetListenString = 0x0037AC90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLocked = 0x00385390; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLockInfo = 0x003A3F80; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetLootable = 0x003A0B70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetMapPinEnabled = 0x00389F60; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetMaxHenchmen = 0x003A0F90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetName = 0x003A6870; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetPanelButtonFlash = 0x003915A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetPCChatMessage = 0x003A8480; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetPCChatVolume = 0x003A8540; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetPhenoType = 0x003A2490; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetPickpocketableFlag = 0x003A2EA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetPlaceableIllumination = 0x00393DC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetPlotFlag = 0x0038D4E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetPortraitId = 0x003A6EA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetPortraitResRef = 0x003A7080; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetSavingThrow = 0x003A5EB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetSkyBox = 0x003A2290; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetStolenFlag = 0x003A1F40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetSubRace = 0x0039F660; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetSubType = 0x00375BA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetTag = 0x003A89B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetTileLightColor = 0x00391150; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetTime = 0x0036CDA0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetTransitionTarget = 0x003AAD40; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetTrapInfo = 0x003A4360; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetUseableFlag = 0x003A71E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetVar = 0x00372D50; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetWeather = 0x003909B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetXP = 0x0038A720; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSetXPScale = 0x003A60D0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSignalEvent = 0x003780B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSoundObjectPlay = 0x0038B1F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSoundObjectSetPosition = 0x0038B390; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSoundObjectSetVolume = 0x0038B2F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSoundObjectStop = 0x0038B270; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSpawnScriptDebugger = 0x00395250; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSpeakOneLinerConversation = 0x0037E230; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSpeakString = 0x003708B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSpeakStrRef = 0x0037EC20; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandStandardFactionReputationAccess = 0x003917C0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandStartNewModule = 0x00390B30; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandStopFade = 0x0039D840; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandStoreCameraFacing = 0x0039DC70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandStoreCampaignObject = 0x00399600; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandStoreGet = 0x003A1890; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandStoreSet = 0x003A1950; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandStringConversions = 0x0037E790; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSummonAssociate = 0x00385B00; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandSurrenderToEnemies = 0x0038E6F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandTagEffect = 0x003A8DC0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandTagItemProperty = 0x003A9340; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandTakeGoldFromCreature = 0x0038C0B0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandTalent = 0x00383E90; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandTalentAccess = 0x00387ED0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandTestString = 0x0037ADE0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandTileExplorationManagement = 0x003AB030; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandTimeConversions = 0x003766E0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandUnequipItem = 0x0036EE70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandUnpossessFamiliar = 0x0039ED70; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandVector = 0x00378AF0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandVectorConversions = 0x00378BB0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandVectorMagnitude = 0x003756A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandVectorNormalize = 0x003783A0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandVersusEffect = 0x00387590; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandVoiceChat = 0x0038B5F0; constexpr uintptr_t CNWVirtualMachineCommands__ExecuteCommandWait = 0x0037C930; constexpr uintptr_t CNWVirtualMachineCommands__GetDebuggerLabelName = 0x003AC310; constexpr uintptr_t CNWVirtualMachineCommands__GetEngineStructureWatchView = 0x003AC3E0; constexpr uintptr_t CNWVirtualMachineCommands__GetEqualGameDefinedStructure = 0x003ABFF0; constexpr uintptr_t CNWVirtualMachineCommands__GetGameDefinedStructureName = 0x003AC280; constexpr uintptr_t CNWVirtualMachineCommands__GetObjectWatchView = 0x003AC900; constexpr uintptr_t CNWVirtualMachineCommands__GetTableFromArmorPart = 0x003ADB80; constexpr uintptr_t CNWVirtualMachineCommands__InitializeCommands = 0x00366910; constexpr uintptr_t CNWVirtualMachineCommands__LoadGameDefinedStructure = 0x003ABE50; constexpr uintptr_t CNWVirtualMachineCommands__ReportError = 0x003ABA20; constexpr uintptr_t CNWVirtualMachineCommands__RunScriptCallback = 0x003AB980; constexpr uintptr_t CNWVirtualMachineCommands__SaveGameDefinedStructure = 0x003ABD80; constexpr uintptr_t CObjectLookupTable__CObjectLookupTableCtor__0 = 0x0011A700; constexpr uintptr_t CObjectLookupTable__CObjectLookupTableDtor__0 = 0x0011A7A0; constexpr uintptr_t CObjectLookupTable__AddID = 0x0011A7E0; constexpr uintptr_t CObjectLookupTable__GetIDFromIndex = 0x0011A860; constexpr uintptr_t CObjectLookupTable__GetIndexFromID = 0x0011A870; constexpr uintptr_t CObjectLookupTable__GetUpdate = 0x0011A950; constexpr uintptr_t CObjectLookupTable__Touch = 0x0011A8B0; constexpr uintptr_t CObjectLookupTable__Update = 0x0011A980; constexpr uintptr_t CObjectTableManager__CObjectTableManagerCtor__0 = 0x0011A9D0; constexpr uintptr_t CObjectTableManager__CObjectTableManagerDtor__0 = 0x0011AA10; constexpr uintptr_t CObjectTableManager__AddID = 0x0011AD00; constexpr uintptr_t CObjectTableManager__ClearAll = 0x0011AA70; constexpr uintptr_t CObjectTableManager__CreateNewPlayer = 0x0011AB30; constexpr uintptr_t CObjectTableManager__GetIDFromIndex = 0x0011AE20; constexpr uintptr_t CObjectTableManager__GetIndexFromID = 0x0011AEE0; constexpr uintptr_t CObjectTableManager__RemovePlayer = 0x0011ABE0; constexpr uintptr_t CObjectTableManager__Touch = 0x0011AC30; constexpr uintptr_t CPathfindInfoIntraTileSuccessors__CPathfindInfoIntraTileSuccessorsCtor__0 = 0x000DDA80; constexpr uintptr_t CPathfindInformation__CPathfindInformationCtor__0 = 0x000DDB00; constexpr uintptr_t CPathfindInformation__CPathfindInformationDtor__0 = 0x000DE470; constexpr uintptr_t CPathfindInformation__ComputeStepTolerance = 0x000DEE60; constexpr uintptr_t CPathfindInformation__CreateFirstTileFValueAlternatives = 0x000DEC80; constexpr uintptr_t CPathfindInformation__DeleteFirstTileFValueAlternatives = 0x000DE590; constexpr uintptr_t CPathfindInformation__FlipStartEndPoints = 0x000DEDF0; constexpr uintptr_t CPathfindInformation__FlipTempEndPoints = 0x000DEE30; constexpr uintptr_t CPathfindInformation__GetFirstTileFValueAlternatives = 0x000DEC00; constexpr uintptr_t CPathfindInformation__Initialize = 0x000DDE40; constexpr uintptr_t CPathfindInformation__ResetAtEndOfPath = 0x000DE660; constexpr uintptr_t CPathfindInformation__ResetGridSearchData = 0x000DE950; constexpr uintptr_t CPathfindInformation__ResetInterAreaPathSearchData = 0x000DE790; constexpr uintptr_t CPathfindInformation__ResetInterAreaSearchData = 0x000DE730; constexpr uintptr_t CPathfindInformation__ResetInterTileSearchData = 0x000DEAC0; constexpr uintptr_t CPathfindInformation__ResetIntraTileSearchData = 0x000DEBA0; constexpr uintptr_t CPathfindInformation__ResetWayPointData = 0x000DE9E0; constexpr uintptr_t CPathfindInformation__SetFirstTileFValueAlternatives = 0x000DEC40; constexpr uintptr_t CPathfindInformation__Shutdown = 0x000DE480; constexpr uintptr_t CrashReporter_Linux__CrashReporter_LinuxCtor__0 = 0x0049F640; constexpr uintptr_t CrashReporter_Linux__CrashReporter_LinuxDtor__0 = 0x0049F740; constexpr uintptr_t CrashReporter_Linux__CanWriteCallstack = 0x0049F940; constexpr uintptr_t CrashReporter_Linux__CanWriteMinidump = 0x0049F950; constexpr uintptr_t CrashReporter_Linux__CanWriteSystemFiles = 0x0049F960; constexpr uintptr_t CrashReporter_Linux__InternalCrashHandler = 0x0049F6A0; constexpr uintptr_t CrashReporter_Linux__WriteCallstack = 0x0049F890; constexpr uintptr_t CrashReporter_Linux__WriteSystemFiles = 0x0049F900; constexpr uintptr_t CRes__CResCtor__0 = 0x00078030; constexpr uintptr_t CRes__CResCtor__2 = 0x00078110; constexpr uintptr_t CRes__CResDtor__0 = 0x000781B0; constexpr uintptr_t CRes__CancelRequest = 0x00078420; constexpr uintptr_t CRes__Demand = 0x00078640; constexpr uintptr_t CRes__Dump = 0x00078960; constexpr uintptr_t CRes__GetData = 0x000789F0; constexpr uintptr_t CRes__GetDemands = 0x00078A00; constexpr uintptr_t CRes__GetFixedResourceDataOffset = 0x0007D490; constexpr uintptr_t CRes__GetFixedResourceSize = 0x0007D480; constexpr uintptr_t CRes__GetID = 0x00078A20; constexpr uintptr_t CRes__GetRequests = 0x00078A10; constexpr uintptr_t CRes__GetSize = 0x00078A30; constexpr uintptr_t CRes__OnResourceFreed = 0x0007D4A0; constexpr uintptr_t CRes__OnResourceServiced = 0x0007D4B0; constexpr uintptr_t CRes__ReadRaw = 0x000788C0; constexpr uintptr_t CRes__Release = 0x00078A40; constexpr uintptr_t CRes__Request = 0x00078BC0; constexpr uintptr_t CRes__SetID = 0x00078C70; constexpr uintptr_t CRes2DA__CRes2DACtor__0 = 0x00081A80; constexpr uintptr_t CRes2DA__CRes2DADtor__0 = 0x00081B20; constexpr uintptr_t CRes2DA__Get2DADataPtr = 0x00081B90; constexpr uintptr_t CRes2DA__Get2DAHeaderPtr = 0x00081B80; constexpr uintptr_t CRes2DA__Get2DASize = 0x00081BA0; constexpr uintptr_t CRes2DA__IsLoaded = 0x00081BB0; constexpr uintptr_t CRes2DA__OnResourceFreed = 0x00081BC0; constexpr uintptr_t CRes2DA__OnResourceServiced = 0x00081BF0; constexpr uintptr_t CResARE__CResAREDtor__0 = 0x00136B40; constexpr uintptr_t CResDWK__CResDWKCtor__0 = 0x0011AFD0; constexpr uintptr_t CResDWK__CResDWKDtor__0 = 0x0011B070; constexpr uintptr_t CResDWK__GetDWKDataPtr = 0x0011B0D0; constexpr uintptr_t CResDWK__GetDWKSize = 0x0011B0E0; constexpr uintptr_t CResDWK__IsLoaded = 0x0011B0F0; constexpr uintptr_t CResDWK__OnResourceFreed = 0x0011B100; constexpr uintptr_t CResDWK__OnResourceServiced = 0x0011B130; constexpr uintptr_t CResGFF__CResGFFCtor__0 = 0x00081C50; constexpr uintptr_t CResGFF__CResGFFCtor__2 = 0x00081E70; constexpr uintptr_t CResGFF__CResGFFDtor__0 = 0x00082010; constexpr uintptr_t CResGFF__AddDataField = 0x00085540; constexpr uintptr_t CResGFF__AddDataLayoutField = 0x00085310; constexpr uintptr_t CResGFF__AddDataLayoutList = 0x00085600; constexpr uintptr_t CResGFF__AddField = 0x00085010; constexpr uintptr_t CResGFF__AddLabel = 0x000853E0; constexpr uintptr_t CResGFF__AddList = 0x000870C0; constexpr uintptr_t CResGFF__AddListElement = 0x000871F0; constexpr uintptr_t CResGFF__AddStruct = 0x00084F60; constexpr uintptr_t CResGFF__AddStructToStruct = 0x000874E0; constexpr uintptr_t CResGFF__CreateGFFFile = 0x00088D40; constexpr uintptr_t CResGFF__FinalizeSetup = 0x00084620; constexpr uintptr_t CResGFF__GetDataField = 0x000848C0; constexpr uintptr_t CResGFF__GetDataFromFile = 0x000856D0; constexpr uintptr_t CResGFF__GetDataFromPointer = 0x000857A0; constexpr uintptr_t CResGFF__GetDataLayoutField = 0x000848F0; constexpr uintptr_t CResGFF__GetDataLayoutList = 0x00084920; constexpr uintptr_t CResGFF__GetElementType = 0x00085820; constexpr uintptr_t CResGFF__GetField = 0x00084760; constexpr uintptr_t CResGFF__GetFieldByLabel = 0x00084950; constexpr uintptr_t CResGFF__GetFieldCount__0 = 0x00085860; constexpr uintptr_t CResGFF__GetFieldCount__1 = 0x00084B00; constexpr uintptr_t CResGFF__GetFieldLabel = 0x00085960; constexpr uintptr_t CResGFF__GetFieldSize = 0x000859C0; constexpr uintptr_t CResGFF__GetFieldStringID = 0x00085970; constexpr uintptr_t CResGFF__GetFieldType = 0x000858A0; constexpr uintptr_t CResGFF__GetGFFFileInfo = 0x000857C0; constexpr uintptr_t CResGFF__GetLabel = 0x000847F0; constexpr uintptr_t CResGFF__GetList = 0x00085B70; constexpr uintptr_t CResGFF__GetListCount = 0x00085CA0; constexpr uintptr_t CResGFF__GetListElement = 0x00085D70; constexpr uintptr_t CResGFF__GetStruct = 0x00084720; constexpr uintptr_t CResGFF__GetStructFromStruct = 0x00085EA0; constexpr uintptr_t CResGFF__GetTopLevelStruct = 0x00085F90; constexpr uintptr_t CResGFF__GetTotalSize = 0x00089830; constexpr uintptr_t CResGFF__InitializeForWriting = 0x00084B50; constexpr uintptr_t CResGFF__IsDataInPlace = 0x00084B20; constexpr uintptr_t CResGFF__OnResourceFreed = 0x000846B0; constexpr uintptr_t CResGFF__OnResourceServiced = 0x00082300; constexpr uintptr_t CResGFF__Pack = 0x00089130; constexpr uintptr_t CResGFF__PrepareHeader = 0x00082430; constexpr uintptr_t CResGFF__ReadFieldBYTE = 0x00085FB0; constexpr uintptr_t CResGFF__ReadFieldCExoLocString = 0x00086C90; constexpr uintptr_t CResGFF__ReadFieldCExoString = 0x00086B50; constexpr uintptr_t CResGFF__ReadFieldCHAR = 0x000860A0; constexpr uintptr_t CResGFF__ReadFieldCResRef = 0x000869C0; constexpr uintptr_t CResGFF__ReadFieldDOUBLE = 0x000868A0; constexpr uintptr_t CResGFF__ReadFieldDWORD = 0x00086370; constexpr uintptr_t CResGFF__ReadFieldDWORD64 = 0x00086640; constexpr uintptr_t CResGFF__ReadFieldFLOAT = 0x00086550; constexpr uintptr_t CResGFF__ReadFieldINT = 0x00086460; constexpr uintptr_t CResGFF__ReadFieldINT64 = 0x00086770; constexpr uintptr_t CResGFF__ReadFieldSHORT = 0x00086280; constexpr uintptr_t CResGFF__ReadFieldVOID = 0x00086F70; constexpr uintptr_t CResGFF__ReadFieldWORD = 0x00086190; constexpr uintptr_t CResGFF__ReleaseResource = 0x000821E0; constexpr uintptr_t CResGFF__ValidateAndSetup = 0x000825F0; constexpr uintptr_t CResGFF__WriteFieldBYTE = 0x00087600; constexpr uintptr_t CResGFF__WriteFieldCExoLocString = 0x00088910; constexpr uintptr_t CResGFF__WriteFieldCExoString = 0x00088740; constexpr uintptr_t CResGFF__WriteFieldCHAR = 0x00087730; constexpr uintptr_t CResGFF__WriteFieldCResRef = 0x000883C0; constexpr uintptr_t CResGFF__WriteFieldDOUBLE = 0x000881F0; constexpr uintptr_t CResGFF__WriteFieldDWORD = 0x00087AC0; constexpr uintptr_t CResGFF__WriteFieldDWORD64 = 0x00087D20; constexpr uintptr_t CResGFF__WriteFieldFLOAT = 0x000880C0; constexpr uintptr_t CResGFF__WriteFieldINT = 0x00087BF0; constexpr uintptr_t CResGFF__WriteFieldINT64 = 0x00087EF0; constexpr uintptr_t CResGFF__WriteFieldSHORT = 0x00087990; constexpr uintptr_t CResGFF__WriteFieldVOID = 0x00088C30; constexpr uintptr_t CResGFF__WriteFieldWORD = 0x00087860; constexpr uintptr_t CResGFF__WriteGFFData = 0x000893C0; constexpr uintptr_t CResGFF__WriteGFFFile__0 = 0x000896C0; constexpr uintptr_t CResGFF__WriteGFFFile__1 = 0x00089050; constexpr uintptr_t CResGFF__WriteGFFToPointer = 0x00089510; constexpr uintptr_t CResGFFFieldIDHash__Hash = 0x000771A0; constexpr uintptr_t CResGFFFieldIDHash__Initialize = 0x00077010; constexpr uintptr_t CResHelperTemplatedCRes2DA2017__CResHelperTemplatedCRes2DA2017Dtor__0 = 0x0008EA90; constexpr uintptr_t CResHelperTemplatedCRes2DA2017__SetResRef = 0x0008A6A0; constexpr uintptr_t CResHelperTemplatedCResARE2012__CResHelperTemplatedCResARE2012Dtor__0 = 0x00136A30; constexpr uintptr_t CResHelperTemplatedCResARE2012__SetResRef = 0x001256E0; constexpr uintptr_t CResHelperTemplatedCResDWK2052__CResHelperTemplatedCResDWK2052Dtor__0 = 0x000F4630; constexpr uintptr_t CResHelperTemplatedCResDWK2052__SetResRef = 0x000F2FE0; constexpr uintptr_t CResHelperTemplatedCResIFO2014__CResHelperTemplatedCResIFO2014Dtor__0 = 0x002E6AE0; constexpr uintptr_t CResHelperTemplatedCResIFO2014__SetResRef = 0x002D5570; constexpr uintptr_t CResHelperTemplatedCResLTR2036__CResHelperTemplatedCResLTR2036Dtor__0 = 0x00096530; constexpr uintptr_t CResHelperTemplatedCResLTR2036__SetResRef = 0x00095990; constexpr uintptr_t CResHelperTemplatedCResNCS2010__CResHelperTemplatedCResNCS2010Dtor__0 = 0x000D7250; constexpr uintptr_t CResHelperTemplatedCResNCS2010__SetResRef = 0x000D1160; constexpr uintptr_t CResHelperTemplatedCResNDB2064__CResHelperTemplatedCResNDB2064Dtor__0 = 0x000B4E40; constexpr uintptr_t CResHelperTemplatedCResNDB2064__SetResRef = 0x000D7490; constexpr uintptr_t CResHelperTemplatedCResNSS2009__CResHelperTemplatedCResNSS2009Dtor__0 = 0x000B4F50; constexpr uintptr_t CResHelperTemplatedCResNSS2009__SetResRef = 0x000AC750; constexpr uintptr_t CResHelperTemplatedCResPWK2053__CResHelperTemplatedCResPWK2053Dtor__0 = 0x000FCB30; constexpr uintptr_t CResHelperTemplatedCResPWK2053__SetResRef = 0x000FC980; constexpr uintptr_t CResHelperTemplatedCResSET2013__CResHelperTemplatedCResSET2013Dtor__0 = 0x0010CE40; constexpr uintptr_t CResHelperTemplatedCResSET2013__SetResRef = 0x0010B450; constexpr uintptr_t CResHelperTemplatedCResWOK2016__CResHelperTemplatedCResWOK2016Dtor__0 = 0x0011A5F0; constexpr uintptr_t CResHelperTemplatedCResWOK2016__SetResRef = 0x001191F0; constexpr uintptr_t CResIFO__CResIFODtor__0 = 0x002E6F60; constexpr uintptr_t CResLTR__CResLTRCtor__0 = 0x00096640; constexpr uintptr_t CResLTR__CResLTRDtor__0 = 0x00096760; constexpr uintptr_t CResLTR__OnResourceFreed = 0x000967C0; constexpr uintptr_t CResLTR__OnResourceServiced = 0x00096A40; constexpr uintptr_t CResNCS__CResNCSCtor__0 = 0x000AB3E0; constexpr uintptr_t CResNCS__CResNCSDtor__0 = 0x000AB460; constexpr uintptr_t CResNCS__GetNCSDataPtr = 0x000AB4C0; constexpr uintptr_t CResNCS__GetNCSSize = 0x000AB4D0; constexpr uintptr_t CResNCS__IsLoaded = 0x000AB4E0; constexpr uintptr_t CResNCS__OnResourceFreed = 0x000AB4F0; constexpr uintptr_t CResNCS__OnResourceServiced = 0x000AB520; constexpr uintptr_t CResNDB__CResNDBCtor__0 = 0x000AB550; constexpr uintptr_t CResNDB__CResNDBDtor__0 = 0x000AB5D0; constexpr uintptr_t CResNDB__GetNDBDataPtr = 0x000AB630; constexpr uintptr_t CResNDB__GetNDBSize = 0x000AB640; constexpr uintptr_t CResNDB__IsLoaded = 0x000AB650; constexpr uintptr_t CResNDB__OnResourceFreed = 0x000AB660; constexpr uintptr_t CResNDB__OnResourceServiced = 0x000AB690; constexpr uintptr_t CResNSS__CResNSSCtor__0 = 0x000AB6C0; constexpr uintptr_t CResNSS__CResNSSDtor__0 = 0x000AB740; constexpr uintptr_t CResNSS__GetNSSDataPtr = 0x000AB7A0; constexpr uintptr_t CResNSS__GetNSSSize = 0x000AB7B0; constexpr uintptr_t CResNSS__IsLoaded = 0x000AB7C0; constexpr uintptr_t CResNSS__OnResourceFreed = 0x000AB7D0; constexpr uintptr_t CResNSS__OnResourceServiced = 0x000AB800; constexpr uintptr_t CResPWK__CResPWKCtor__0 = 0x0011B160; constexpr uintptr_t CResPWK__CResPWKDtor__0 = 0x0011B200; constexpr uintptr_t CResPWK__GetPWKDataPtr = 0x0011B260; constexpr uintptr_t CResPWK__GetPWKSize = 0x0011B270; constexpr uintptr_t CResPWK__IsLoaded = 0x0011B280; constexpr uintptr_t CResPWK__OnResourceFreed = 0x0011B290; constexpr uintptr_t CResPWK__OnResourceServiced = 0x0011B2C0; constexpr uintptr_t CResRef__CResRefCtor__0 = 0x000771F0; constexpr uintptr_t CResRef__CResRefCtor__2 = 0x00077270; constexpr uintptr_t CResRef__CResRefCtor__4 = 0x000774D0; constexpr uintptr_t CResRef__CResRefCtor__6 = 0x000776B0; constexpr uintptr_t CResRef__CResRefCtor__8 = 0x000778A0; constexpr uintptr_t CResRef__CopyToString__0 = 0x00077A10; constexpr uintptr_t CResRef__CopyToString__1 = 0x00077A70; constexpr uintptr_t CResRef__GetLength = 0x00077B10; constexpr uintptr_t CResRef__GetResRef__0 = 0x00077AA0; constexpr uintptr_t CResRef__GetResRef__1 = 0x00078010; constexpr uintptr_t CResRef__GetResRefStr = 0x00077AB0; constexpr uintptr_t CResRef__IsValid = 0x00077AF0; constexpr uintptr_t CResRef__OperatorUndefined = 0x00077E00; constexpr uintptr_t CResRef__OperatorNotEqualTo__0 = 0x00077C20; constexpr uintptr_t CResRef__OperatorNotEqualTo__1 = 0x00077D20; constexpr uintptr_t CResRef__OperatorNotEqualTo__2 = 0x00077BC0; constexpr uintptr_t CResRef__OperatorAdditionAssignment = 0x00077E80; constexpr uintptr_t CResRef__OperatorAssignment__0 = 0x00077330; constexpr uintptr_t CResRef__OperatorAssignment__1 = 0x00077520; constexpr uintptr_t CResRef__OperatorAssignment__2 = 0x00077700; constexpr uintptr_t CResRef__OperatorAssignment__3 = 0x00077E20; constexpr uintptr_t CResRef__OperatorEqualTo__0 = 0x00077CA0; constexpr uintptr_t CResRef__OperatorEqualTo__1 = 0x00077D90; constexpr uintptr_t CResRef__OperatorEqualTo__2 = 0x00077BF0; constexpr uintptr_t CResSET__CResSETCtor__0 = 0x0011B2F0; constexpr uintptr_t CResSET__CResSETDtor__0 = 0x0011B390; constexpr uintptr_t CResSET__CopySETData = 0x0011B490; constexpr uintptr_t CResSET__CreateSectionTable = 0x0011B830; constexpr uintptr_t CResSET__GetNextLine = 0x0011C0F0; constexpr uintptr_t CResSET__GetSectionEntryValue = 0x0011BFF0; constexpr uintptr_t CResSET__GetSETDataPtr = 0x0011B4D0; constexpr uintptr_t CResSET__GetSETSize = 0x0011B4E0; constexpr uintptr_t CResSET__IsLoaded = 0x0011B4F0; constexpr uintptr_t CResSET__OnResourceFreed = 0x0011B500; constexpr uintptr_t CResSET__OnResourceServiced = 0x0011B6F0; constexpr uintptr_t CResSET__SkipWhiteSpace = 0x0011C0D0; constexpr uintptr_t CResTGA__CResTGACtor__0 = 0x00089870; constexpr uintptr_t CResTGA__CResTGADtor__0 = 0x00089950; constexpr uintptr_t CResTGA__CopyTGAData = 0x000899B0; constexpr uintptr_t CResTGA__GetTGAAttrib = 0x000899F0; constexpr uintptr_t CResTGA__GetTGAColorMapPtr = 0x00089A30; constexpr uintptr_t CResTGA__GetTGADataPtr = 0x00089A40; constexpr uintptr_t CResTGA__GetTGAHeaderPtr = 0x00089A50; constexpr uintptr_t CResTGA__GetTGASize = 0x00089A60; constexpr uintptr_t CResTGA__IsColorMapped = 0x00089A70; constexpr uintptr_t CResTGA__IsCompressed = 0x00089A80; constexpr uintptr_t CResTGA__IsLoaded = 0x00089A90; constexpr uintptr_t CResTGA__OnResourceFreed = 0x00089AA0; constexpr uintptr_t CResTGA__OnResourceServiced = 0x00089B10; constexpr uintptr_t CResTGA__ReadColorMappedRLETGA = 0x00089F00; constexpr uintptr_t CResTGA__ReadUnmappedRLETGA = 0x0008A0E0; constexpr uintptr_t CResTGA__Write = 0x0008A350; constexpr uintptr_t CResWOK__CResWOKCtor__0 = 0x0011C150; constexpr uintptr_t CResWOK__CResWOKDtor__0 = 0x0011C1D0; constexpr uintptr_t CResWOK__GetWOKDataPtr = 0x0011C230; constexpr uintptr_t CResWOK__GetWOKSize = 0x0011C240; constexpr uintptr_t CResWOK__IsLoaded = 0x0011C250; constexpr uintptr_t CResWOK__OnResourceFreed = 0x0011C260; constexpr uintptr_t CResWOK__OnResourceServiced = 0x0011C290; constexpr uintptr_t CScriptCompiler__CScriptCompilerCtor__0 = 0x000AC960; constexpr uintptr_t CScriptCompiler__CScriptCompilerDtor__0 = 0x000B02C0; constexpr uintptr_t CScriptCompiler__AddStructureToStack = 0x000C55D0; constexpr uintptr_t CScriptCompiler__AddSymbolToLabelList = 0x000BC110; constexpr uintptr_t CScriptCompiler__AddSymbolToQueryList = 0x000B8AD0; constexpr uintptr_t CScriptCompiler__AddToGlobalVariableList = 0x000CFAB0; constexpr uintptr_t CScriptCompiler__AddToSymbolTableVarStack = 0x000B7D70; constexpr uintptr_t CScriptCompiler__AddUserDefinedIdentifier = 0x000CF030; constexpr uintptr_t CScriptCompiler__AddVariableToStack = 0x000B7BB0; constexpr uintptr_t CScriptCompiler__CheckForBadLValue = 0x000C9340; constexpr uintptr_t CScriptCompiler__CleanUpAfterCompile = 0x000B5DC0; constexpr uintptr_t CScriptCompiler__CleanUpAfterCompiles = 0x000B2940; constexpr uintptr_t CScriptCompiler__CleanUpDuringCompile = 0x000CFCB0; constexpr uintptr_t CScriptCompiler__ClearAllSymbolLists = 0x000B7A90; constexpr uintptr_t CScriptCompiler__ClearCompiledScriptCode = 0x000B2AA0; constexpr uintptr_t CScriptCompiler__ClearSwitchLabelList = 0x000B9700; constexpr uintptr_t CScriptCompiler__ClearUserDefinedIdentifiers = 0x000B7790; constexpr uintptr_t CScriptCompiler__CompileFile = 0x000B2AE0; constexpr uintptr_t CScriptCompiler__CompileScriptChunk = 0x000B2F50; constexpr uintptr_t CScriptCompiler__CompileScriptConditional = 0x000B30D0; constexpr uintptr_t CScriptCompiler__CreateScriptParseTreeNode = 0x000C90F0; constexpr uintptr_t CScriptCompiler__DeleteCompileStack = 0x000CFD80; constexpr uintptr_t CScriptCompiler__DeleteParseTree = 0x000B2380; constexpr uintptr_t CScriptCompiler__DeleteScriptParseTreeNode = 0x000C90D0; constexpr uintptr_t CScriptCompiler__DetermineLocationOfCode = 0x000B5EB0; constexpr uintptr_t CScriptCompiler__DuplicateScriptParseTree = 0x000C9240; constexpr uintptr_t CScriptCompiler__EndLineNumberAtBinaryInstruction = 0x000B9C30; constexpr uintptr_t CScriptCompiler__FinalizeFinalCode = 0x000B7460; constexpr uintptr_t CScriptCompiler__FoundReturnStatementOnAllBranches = 0x000C5440; constexpr uintptr_t CScriptCompiler__GenerateCodeForSwitchLabels = 0x000B9BA0; constexpr uintptr_t CScriptCompiler__GenerateDebuggerTypeAbbreviation = 0x000C5A30; constexpr uintptr_t CScriptCompiler__GenerateFinalCodeFromParseTree = 0x000B5060; constexpr uintptr_t CScriptCompiler__GenerateIdentifierList = 0x000C5C20; constexpr uintptr_t CScriptCompiler__GenerateIdentifiersFromConstantVariables = 0x000B9890; constexpr uintptr_t CScriptCompiler__GenerateParseTree = 0x000C9390; constexpr uintptr_t CScriptCompiler__GetCompiledScriptCode = 0x000B3230; constexpr uintptr_t CScriptCompiler__GetFunctionNameFromSymbolSubTypes = 0x000B9020; constexpr uintptr_t CScriptCompiler__GetHashEntryByName = 0x000B2180; constexpr uintptr_t CScriptCompiler__GetIdentifierByName = 0x000B7B00; constexpr uintptr_t CScriptCompiler__GetNewScriptParseTreeNode = 0x000C9000; constexpr uintptr_t CScriptCompiler__GetStructureField = 0x000C5370; constexpr uintptr_t CScriptCompiler__GetStructureSize = 0x000BD1D0; constexpr uintptr_t CScriptCompiler__HandleIdentifierToken = 0x000C7170; constexpr uintptr_t CScriptCompiler__HandleToken = 0x000C71C0; constexpr uintptr_t CScriptCompiler__HashManagerAdd = 0x000B1DA0; constexpr uintptr_t CScriptCompiler__HashManagerDelete = 0x000B1A60; constexpr uintptr_t CScriptCompiler__HashString__0 = 0x000B20E0; constexpr uintptr_t CScriptCompiler__HashString__1 = 0x000B1D10; constexpr uintptr_t CScriptCompiler__Initialize = 0x000AD9C0; constexpr uintptr_t CScriptCompiler__InitializeFinalCode = 0x000B73F0; constexpr uintptr_t CScriptCompiler__InitializeIncludeFile = 0x000B22D0; constexpr uintptr_t CScriptCompiler__InitializePreDefinedStructures = 0x000B2010; constexpr uintptr_t CScriptCompiler__InitializeSwitchLabelList = 0x000B9110; constexpr uintptr_t CScriptCompiler__InsertGlobalVariablesInParseTree = 0x000B5B80; constexpr uintptr_t CScriptCompiler__InstallLoader = 0x000B5340; constexpr uintptr_t CScriptCompiler__InVisitGenerateCode = 0x000BC2B0; constexpr uintptr_t CScriptCompiler__ModifySRStackReturnTree = 0x000C8FD0; constexpr uintptr_t CScriptCompiler__OutputError = 0x000B3260; constexpr uintptr_t CScriptCompiler__OutputIdentifierError = 0x000B8EC0; constexpr uintptr_t CScriptCompiler__OutputWalkTreeError = 0x000B5CB0; constexpr uintptr_t CScriptCompiler__ParseCharacterAlphabet = 0x000C7200; constexpr uintptr_t CScriptCompiler__ParseCharacterAmpersand = 0x000C73B0; constexpr uintptr_t CScriptCompiler__ParseCharacterAsterisk = 0x000C7530; constexpr uintptr_t CScriptCompiler__ParseCharacterCarat = 0x000C8010; constexpr uintptr_t CScriptCompiler__ParseCharacterColon = 0x000C8210; constexpr uintptr_t CScriptCompiler__ParseCharacterComma = 0x000C8110; constexpr uintptr_t CScriptCompiler__ParseCharacterEllipsis = 0x000C8170; constexpr uintptr_t CScriptCompiler__ParseCharacterEqualSign = 0x000C7DB0; constexpr uintptr_t CScriptCompiler__ParseCharacterExclamationPoint = 0x000C7D10; constexpr uintptr_t CScriptCompiler__ParseCharacterHyphen = 0x000C77E0; constexpr uintptr_t CScriptCompiler__ParseCharacterLeftAngle = 0x000C7C20; constexpr uintptr_t CScriptCompiler__ParseCharacterLeftBrace = 0x000C78A0; constexpr uintptr_t CScriptCompiler__ParseCharacterLeftBracket = 0x000C7960; constexpr uintptr_t CScriptCompiler__ParseCharacterLeftSquareBracket = 0x000C7A20; constexpr uintptr_t CScriptCompiler__ParseCharacterNumeric = 0x000C7020; constexpr uintptr_t CScriptCompiler__ParseCharacterPercentSign = 0x000C7F10; constexpr uintptr_t CScriptCompiler__ParseCharacterPeriod = 0x000C7090; constexpr uintptr_t CScriptCompiler__ParseCharacterPlusSign = 0x000C7E50; constexpr uintptr_t CScriptCompiler__ParseCharacterQuestionMark = 0x000C81B0; constexpr uintptr_t CScriptCompiler__ParseCharacterQuotationMark = 0x000C7770; constexpr uintptr_t CScriptCompiler__ParseCharacterRightAngle = 0x000C7AE0; constexpr uintptr_t CScriptCompiler__ParseCharacterRightBrace = 0x000C7900; constexpr uintptr_t CScriptCompiler__ParseCharacterRightBracket = 0x000C79C0; constexpr uintptr_t CScriptCompiler__ParseCharacterRightSquareBracket = 0x000C7A80; constexpr uintptr_t CScriptCompiler__ParseCharacterSemicolon = 0x000C7FB0; constexpr uintptr_t CScriptCompiler__ParseCharacterSlash = 0x000C72D0; constexpr uintptr_t CScriptCompiler__ParseCharacterTilde = 0x000C80B0; constexpr uintptr_t CScriptCompiler__ParseCharacterVerticalBar = 0x000C7470; constexpr uintptr_t CScriptCompiler__ParseCommentedOutCharacter = 0x000C75D0; constexpr uintptr_t CScriptCompiler__ParseFloatFromTokenString = 0x000C6F30; constexpr uintptr_t CScriptCompiler__ParseIdentifierFile = 0x000C6CE0; constexpr uintptr_t CScriptCompiler__ParseNextCharacter = 0x000C83C0; constexpr uintptr_t CScriptCompiler__ParseSource = 0x000CFDF0; constexpr uintptr_t CScriptCompiler__ParseStringCharacter = 0x000C76A0; constexpr uintptr_t CScriptCompiler__PopSRStack = 0x000C8F00; constexpr uintptr_t CScriptCompiler__PostVisitGenerateCode = 0x000BD230; constexpr uintptr_t CScriptCompiler__PreVisitGenerateCode = 0x000BA7C0; constexpr uintptr_t CScriptCompiler__PrintBinaryAddress = 0x000B8C30; constexpr uintptr_t CScriptCompiler__PrintParseIdentifierFileError = 0x000C6BE0; constexpr uintptr_t CScriptCompiler__PrintParseSourceError = 0x000CFB20; constexpr uintptr_t CScriptCompiler__PushSRStack = 0x000C8D80; constexpr uintptr_t CScriptCompiler__RemoveFromSymbolTableVarStack = 0x000C4620; constexpr uintptr_t CScriptCompiler__ResolveDebuggingInformation = 0x000B6520; constexpr uintptr_t CScriptCompiler__ResolveDebuggingInformationForIdentifier = 0x000C5870; constexpr uintptr_t CScriptCompiler__ResolveLabels = 0x000B5FF0; constexpr uintptr_t CScriptCompiler__SetAutomaticCleanUpAfterCompiles = 0x000B2920; constexpr uintptr_t CScriptCompiler__SetCompileConditionalFile = 0x000B28E0; constexpr uintptr_t CScriptCompiler__SetCompileConditionalOrMain = 0x000B2900; constexpr uintptr_t CScriptCompiler__SetCompileDebugLevel = 0x000B2470; constexpr uintptr_t CScriptCompiler__SetCompileSymbolicOutput = 0x000B24B0; constexpr uintptr_t CScriptCompiler__SetGenerateDebuggerOutput = 0x000B2490; constexpr uintptr_t CScriptCompiler__SetIdentifierSpecification = 0x000B24D0; constexpr uintptr_t CScriptCompiler__SetOptimizeBinaryCodeLength = 0x000B28C0; constexpr uintptr_t CScriptCompiler__SetOutputAlias = 0x000B28A0; constexpr uintptr_t CScriptCompiler__ShutDown = 0x000B15C0; constexpr uintptr_t CScriptCompiler__ShutdownIncludeFile = 0x000B2330; constexpr uintptr_t CScriptCompiler__StartLineNumberAtBinaryInstruction = 0x000BC0A0; constexpr uintptr_t CScriptCompiler__Test_CompareDirectoryContents = 0x000B3D10; constexpr uintptr_t CScriptCompiler__Test_CompareFileInclusion = 0x000B4670; constexpr uintptr_t CScriptCompiler__Test_CompileAllScriptsInDirectory = 0x000B34E0; constexpr uintptr_t CScriptCompiler__TestIdentifierToken = 0x000C8270; constexpr uintptr_t CScriptCompiler__TokenInitialize = 0x000C8D60; constexpr uintptr_t CScriptCompiler__TraverseTreeForSwitchLabels = 0x000B9150; constexpr uintptr_t CScriptCompiler__ValidateLocationOfIdentifier = 0x000B8C70; constexpr uintptr_t CScriptCompiler__WalkParseTree = 0x000B5BC0; constexpr uintptr_t CScriptCompiler__WriteDebuggerOutputToFile = 0x000B66D0; constexpr uintptr_t CScriptCompiler__WriteFinalCodeToFile = 0x000B74F0; constexpr uintptr_t CScriptCompiler__WriteResolvedOutput = 0x000B65B0; constexpr uintptr_t CScriptCompilerIdListEntry__CScriptCompilerIdListEntryCtor__0 = 0x000AB830; constexpr uintptr_t CScriptCompilerIdListEntry__CScriptCompilerIdListEntryDtor__0 = 0x000AB940; constexpr uintptr_t CScriptCompilerIdListEntry__ExpandParameterSpace = 0x000ABB00; constexpr uintptr_t CScriptEvent__CScriptEventCtor__0 = 0x0031D4B0; constexpr uintptr_t CScriptEvent__CScriptEventDtor__0 = 0x0031D570; constexpr uintptr_t CScriptEvent__CopyScriptEvent = 0x0031DF20; constexpr uintptr_t CScriptEvent__GetFloat = 0x0031DA20; constexpr uintptr_t CScriptEvent__GetInteger = 0x0031D800; constexpr uintptr_t CScriptEvent__GetObjectID = 0x0031DC60; constexpr uintptr_t CScriptEvent__GetString = 0x0031DE80; constexpr uintptr_t CScriptEvent__LoadEvent = 0x0031E940; constexpr uintptr_t CScriptEvent__OperatorNotEqualTo = 0x0031F430; constexpr uintptr_t CScriptEvent__OperatorEqualTo = 0x0031F310; constexpr uintptr_t CScriptEvent__SaveEvent = 0x0031E700; constexpr uintptr_t CScriptEvent__SetFloat = 0x0031DA50; constexpr uintptr_t CScriptEvent__SetInteger = 0x0031D820; constexpr uintptr_t CScriptEvent__SetObjectID = 0x0031DC80; constexpr uintptr_t CScriptEvent__SetString = 0x0031DED0; constexpr uintptr_t CScriptLocation__CScriptLocationCtor__0 = 0x002E7000; constexpr uintptr_t CScriptLocation__CScriptLocationDtor__0 = 0x002E7080; constexpr uintptr_t CScriptLocation__CopyScriptLocation = 0x002E70A0; constexpr uintptr_t CScriptLocation__LoadLocation = 0x002E70E0; constexpr uintptr_t CScriptLocation__SaveLocation = 0x002E7210; constexpr uintptr_t CScriptParseTreeNode__CScriptParseTreeNodeDtor = 0x000B4BE0; constexpr uintptr_t CScriptParseTreeNode__Clean = 0x000B4C50; constexpr uintptr_t CScriptParseTreeNodeBlock__CScriptParseTreeNodeBlockCtor = 0x000CFF50; constexpr uintptr_t CScriptSourceFile__CScriptSourceFileCtor__0 = 0x000AC5C0; constexpr uintptr_t CScriptSourceFile__CScriptSourceFileDtor__0 = 0x000B4AD0; constexpr uintptr_t CScriptSourceFile__LoadScript = 0x000AC6C0; constexpr uintptr_t CScriptSourceFile__UnloadScript = 0x000AC900; constexpr uintptr_t CScriptTalent__CScriptTalentCtor__0 = 0x002E7440; constexpr uintptr_t CScriptTalent__CScriptTalentDtor__0 = 0x002E74A0; constexpr uintptr_t CScriptTalent__CopyScriptTalent = 0x002E74C0; constexpr uintptr_t CScriptTalent__Equals = 0x002E7700; constexpr uintptr_t CScriptTalent__LoadTalent = 0x002E75D0; constexpr uintptr_t CScriptTalent__SaveTalent = 0x002E7500; constexpr uintptr_t CServerAIBodyBagInfo__LoadBodyBag = 0x003B6ED0; constexpr uintptr_t CServerAIBodyBagInfo__SaveBodyBag = 0x003B6E20; constexpr uintptr_t CServerAIEventNode__LoadNode = 0x003B0410; constexpr uintptr_t CServerAIEventNode__SaveNode = 0x003AFEA0; constexpr uintptr_t CServerAIList__CServerAIListCtor__0 = 0x003ADD50; constexpr uintptr_t CServerAIList__CServerAIListDtor__0 = 0x003ADDB0; constexpr uintptr_t CServerAIList__AddObject = 0x003ADDF0; constexpr uintptr_t CServerAIList__GetNextObject = 0x003AE340; constexpr uintptr_t CServerAIList__RemoveObject = 0x003AE0E0; constexpr uintptr_t CServerAIMaster__CServerAIMasterCtor__0 = 0x003AE3A0; constexpr uintptr_t CServerAIMaster__CServerAIMasterDtor__0 = 0x003AE690; constexpr uintptr_t CServerAIMaster__AddEventAbsoluteTime = 0x003AFCE0; constexpr uintptr_t CServerAIMaster__AddEventAbsoluteTimeViaTail = 0x003AFBE0; constexpr uintptr_t CServerAIMaster__AddEventDeltaTime = 0x003AF0C0; constexpr uintptr_t CServerAIMaster__AddObject = 0x003AF340; constexpr uintptr_t CServerAIMaster__AdjustTargetAndWitnessReputations = 0x003B0B30; constexpr uintptr_t CServerAIMaster__AppendToScriptsRun = 0x003B70B0; constexpr uintptr_t CServerAIMaster__ClearEventQueue = 0x003AF300; constexpr uintptr_t CServerAIMaster__ClearScriptsRun = 0x003AF2F0; constexpr uintptr_t CServerAIMaster__DeleteEventData = 0x003AF1F0; constexpr uintptr_t CServerAIMaster__EventPending = 0x003AEFF0; constexpr uintptr_t CServerAIMaster__GetPendingEvent = 0x003AF040; constexpr uintptr_t CServerAIMaster__GetScriptsRun = 0x003B6F90; constexpr uintptr_t CServerAIMaster__LoadEventQueue = 0x003B0330; constexpr uintptr_t CServerAIMaster__LoadReputationAdjustments = 0x003B2010; constexpr uintptr_t CServerAIMaster__OnEffectApplied = 0x003B0A90; constexpr uintptr_t CServerAIMaster__OnEffectRemoved = 0x003B0AB0; constexpr uintptr_t CServerAIMaster__OnItemPropertyApplied = 0x003B0AD0; constexpr uintptr_t CServerAIMaster__OnItemPropertyRemoved = 0x003B0B00; constexpr uintptr_t CServerAIMaster__RemoveObject = 0x003AF920; constexpr uintptr_t CServerAIMaster__SaveEventQueue = 0x003AFDE0; constexpr uintptr_t CServerAIMaster__SetAILevel = 0x003AFBB0; constexpr uintptr_t CServerAIMaster__SetExoAppInternal = 0x003AE910; constexpr uintptr_t CServerAIMaster__UpdateState = 0x003AE920; constexpr uintptr_t CServerExoApp__CServerExoAppCtor__0 = 0x003B7140; constexpr uintptr_t CServerExoApp__CServerExoAppDtor__0 = 0x003B71E0; constexpr uintptr_t CServerExoApp__AddCDKeyToBannedList = 0x003B8810; constexpr uintptr_t CServerExoApp__AddCharListRequest = 0x003B86B0; constexpr uintptr_t CServerExoApp__AddExportPlayersCharacterRequest = 0x003B7610; constexpr uintptr_t CServerExoApp__AddIPToBannedList = 0x003B8710; constexpr uintptr_t CServerExoApp__AddPlayerNameToBannedList = 0x003B8790; constexpr uintptr_t CServerExoApp__AddSubNetProfileSendSize = 0x003B8E60; constexpr uintptr_t CServerExoApp__AddToExclusionList = 0x003B8570; constexpr uintptr_t CServerExoApp__AdmitNetworkAddress = 0x003B7E10; constexpr uintptr_t CServerExoApp__AdmitPlayerName = 0x003B7F30; constexpr uintptr_t CServerExoApp__CheckStickyPlayerNameReserved = 0x003B8C90; constexpr uintptr_t CServerExoApp__ClearExportPlayerCharacterRequests = 0x003B7800; constexpr uintptr_t CServerExoApp__ContinueMessageProcessing = 0x003B7FF0; constexpr uintptr_t CServerExoApp__ExportAllPlayers = 0x003B7850; constexpr uintptr_t CServerExoApp__GetAbilityBonusLimit = 0x003B8FA0; constexpr uintptr_t CServerExoApp__GetAbilityPenaltyLimit = 0x003B8FE0; constexpr uintptr_t CServerExoApp__GetActiveExclusionList = 0x003B85D0; constexpr uintptr_t CServerExoApp__GetActivePauseState = 0x003B8520; constexpr uintptr_t CServerExoApp__GetActiveTimer = 0x003B7CE0; constexpr uintptr_t CServerExoApp__GetApplicationId = 0x003B86D0; constexpr uintptr_t CServerExoApp__GetAreaByGameObjectID = 0x003B7AA0; constexpr uintptr_t CServerExoApp__GetAreaOfEffectByGameObjectID = 0x003B7B20; constexpr uintptr_t CServerExoApp__GetAttackBonusLimit = 0x003B8EE0; constexpr uintptr_t CServerExoApp__GetAutoSavePending = 0x003B7910; constexpr uintptr_t CServerExoApp__GetBannedListString = 0x003B8150; constexpr uintptr_t CServerExoApp__GetCDKeys = 0x003B9150; constexpr uintptr_t CServerExoApp__GetClientObjectByObjectId = 0x003B83C0; constexpr uintptr_t CServerExoApp__GetClientObjectByPlayerId = 0x003B83E0; constexpr uintptr_t CServerExoApp__GetClientsRequiredToDisableCPUSleep = 0x003B8EA0; constexpr uintptr_t CServerExoApp__GetCodeBase = 0x003B82F0; constexpr uintptr_t CServerExoApp__GetConnectionLib = 0x003B82D0; constexpr uintptr_t CServerExoApp__GetCreatureByGameObjectID = 0x003B7A60; constexpr uintptr_t CServerExoApp__GetCreatureDeathLogging = 0x003B8E80; constexpr uintptr_t CServerExoApp__GetDamageBonusLimit = 0x003B8F20; constexpr uintptr_t CServerExoApp__GetDebugMode = 0x003B7D80; constexpr uintptr_t CServerExoApp__GetDifficultyOption = 0x003B8690; constexpr uintptr_t CServerExoApp__GetDoorByGameObjectID = 0x003B7B00; constexpr uintptr_t CServerExoApp__GetEncounterByGameObjectID = 0x003B7B60; constexpr uintptr_t CServerExoApp__GetExportCharacterPending = 0x003B75D0; constexpr uintptr_t CServerExoApp__GetExportPlayersCharacterRequests = 0x003B77F0; constexpr uintptr_t CServerExoApp__GetExtendedServerInfo__0 = 0x003B90C0; constexpr uintptr_t CServerExoApp__GetExtendedServerInfo__1 = 0x003B73F0; constexpr uintptr_t CServerExoApp__GetFactionOfObject = 0x003B84A0; constexpr uintptr_t CServerExoApp__GetFirstPCObject = 0x003B8D80; constexpr uintptr_t CServerExoApp__GetFPS = 0x003B9090; constexpr uintptr_t CServerExoApp__GetGameObject = 0x003B7A00; constexpr uintptr_t CServerExoApp__GetGameSpyEnabled = 0x003B8E20; constexpr uintptr_t CServerExoApp__GetHostedPublicInternetAddressAndPort = 0x003B9060; constexpr uintptr_t CServerExoApp__GetImportingChar = 0x003B78B0; constexpr uintptr_t CServerExoApp__GetIsCDKeyOnBannedList = 0x003B8B10; constexpr uintptr_t CServerExoApp__GetIsControlledByPlayer = 0x003B8470; constexpr uintptr_t CServerExoApp__GetIsIPOnBannedList = 0x003B8A10; constexpr uintptr_t CServerExoApp__GetIsMultiPlayer = 0x003B8DE0; constexpr uintptr_t CServerExoApp__GetIsPlayerNameOnBannedList = 0x003B8A90; constexpr uintptr_t CServerExoApp__GetItemByGameObjectID = 0x003B7A40; constexpr uintptr_t CServerExoApp__GetLoadingModule = 0x003B7870; constexpr uintptr_t CServerExoApp__GetModule = 0x003B73D0; constexpr uintptr_t CServerExoApp__GetModuleByGameObjectID = 0x003B7A80; constexpr uintptr_t CServerExoApp__GetModuleDescription = 0x003B7320; constexpr uintptr_t CServerExoApp__GetModuleLanguage = 0x003B7BE0; constexpr uintptr_t CServerExoApp__GetModuleName = 0x003B7410; constexpr uintptr_t CServerExoApp__GetMoveToModulePending = 0x003B7500; constexpr uintptr_t CServerExoApp__GetMoveToModuleString = 0x003B7550; constexpr uintptr_t CServerExoApp__GetMultiplayerEnabled = 0x003B8630; constexpr uintptr_t CServerExoApp__GetNetLayer = 0x003B7C40; constexpr uintptr_t CServerExoApp__GetNextPCObject = 0x003B8DA0; constexpr uintptr_t CServerExoApp__GetNWSMessage = 0x003B7C60; constexpr uintptr_t CServerExoApp__GetObjectArray = 0x003B79E0; constexpr uintptr_t CServerExoApp__GetPauseState = 0x003B84F0; constexpr uintptr_t CServerExoApp__GetPauseTimer = 0x003B7D40; constexpr uintptr_t CServerExoApp__GetPlaceableByGameObjectID = 0x003B7AE0; constexpr uintptr_t CServerExoApp__GetPlaceMeshManager = 0x003B7CC0; constexpr uintptr_t CServerExoApp__GetPlayerAddressData = 0x003B8310; constexpr uintptr_t CServerExoApp__GetPlayerIDByGameObjectID = 0x003B7BA0; constexpr uintptr_t CServerExoApp__GetPlayerLanguage = 0x003B7BC0; constexpr uintptr_t CServerExoApp__GetPlayerList = 0x003B7C20; constexpr uintptr_t CServerExoApp__GetPlayerListString = 0x003B8120; constexpr uintptr_t CServerExoApp__GetPortalListString = 0x003B8180; constexpr uintptr_t CServerExoApp__GetReloadModuleWhenEmpty = 0x003B8670; constexpr uintptr_t CServerExoApp__GetSavingThrowBonusLimit = 0x003B8F60; constexpr uintptr_t CServerExoApp__GetServerAIMaster = 0x003B7C00; constexpr uintptr_t CServerExoApp__GetServerInfo = 0x003B7300; constexpr uintptr_t CServerExoApp__GetServerMode = 0x003B7CA0; constexpr uintptr_t CServerExoApp__GetSkillBonusLimit = 0x003B9020; constexpr uintptr_t CServerExoApp__GetSoundObjectByGameObjectID = 0x003B7B80; constexpr uintptr_t CServerExoApp__GetStickyCombatModesEnabled = 0x003B8EC0; constexpr uintptr_t CServerExoApp__GetStoreByGameObjectID = 0x003B7A20; constexpr uintptr_t CServerExoApp__GetSysAdminList = 0x003B7C80; constexpr uintptr_t CServerExoApp__GetTimestopTimer = 0x003B7D20; constexpr uintptr_t CServerExoApp__GetTriggerByGameObjectID = 0x003B7AC0; constexpr uintptr_t CServerExoApp__GetWaypointByGameObjectID = 0x003B7B40; constexpr uintptr_t CServerExoApp__GetWorldTimer = 0x003B7D00; constexpr uintptr_t CServerExoApp__GSClientAddServer = 0x003B90F0; constexpr uintptr_t CServerExoApp__GSClientChatMessage = 0x003B90E0; constexpr uintptr_t CServerExoApp__GSClientClearServers = 0x003B9120; constexpr uintptr_t CServerExoApp__GSClientGroupRoomAdded = 0x003B90D0; constexpr uintptr_t CServerExoApp__GSClientRemoveServer = 0x003B9100; constexpr uintptr_t CServerExoApp__GSClientUpdateConnectionPhase = 0x003B9130; constexpr uintptr_t CServerExoApp__GSClientUpdateServer = 0x003B9110; constexpr uintptr_t CServerExoApp__HandleGameSpyToServerMessage = 0x003B82B0; constexpr uintptr_t CServerExoApp__HandleMessage = 0x003B7DA0; constexpr uintptr_t CServerExoApp__HandleOldServerVaultMigration = 0x003B8B90; constexpr uintptr_t CServerExoApp__Initialize = 0x003B7DD0; constexpr uintptr_t CServerExoApp__InitiateModuleForPlayer = 0x003B8430; constexpr uintptr_t CServerExoApp__IsOnActiveExclusionList = 0x003B85F0; constexpr uintptr_t CServerExoApp__IsOnExclusionList = 0x003B86F0; constexpr uintptr_t CServerExoApp__IsPlayerNameSticky = 0x003B8C70; constexpr uintptr_t CServerExoApp__LoadCharacterFinish = 0x003B79A0; constexpr uintptr_t CServerExoApp__LoadCharacterStart = 0x003B7930; constexpr uintptr_t CServerExoApp__LoadGame = 0x003B7490; constexpr uintptr_t CServerExoApp__LoadModule = 0x003B8070; constexpr uintptr_t CServerExoApp__LoadPrimaryPlayer = 0x003B79C0; constexpr uintptr_t CServerExoApp__MainLoop = 0x003B7DF0; constexpr uintptr_t CServerExoApp__MovePlayerToArea = 0x003B8450; constexpr uintptr_t CServerExoApp__OnCDChange = 0x003B81B0; constexpr uintptr_t CServerExoApp__OnExit = 0x003B81D0; constexpr uintptr_t CServerExoApp__OnGainFocus = 0x003B81F0; constexpr uintptr_t CServerExoApp__OnLostFocus = 0x003B8210; constexpr uintptr_t CServerExoApp__OnVideoChange = 0x003B8230; constexpr uintptr_t CServerExoApp__PlayerListChange = 0x003B7FB0; constexpr uintptr_t CServerExoApp__PushMessageOverWall = 0x003B8DC0; constexpr uintptr_t CServerExoApp__RemoveCDKeyFromBannedList = 0x003B8990; constexpr uintptr_t CServerExoApp__RemoveFromExclusionList = 0x003B85A0; constexpr uintptr_t CServerExoApp__RemoveIPFromBannedList = 0x003B8890; constexpr uintptr_t CServerExoApp__RemovePCFromWorld = 0x003B8010; constexpr uintptr_t CServerExoApp__RemovePlayerNameFromBannedList = 0x003B8910; constexpr uintptr_t CServerExoApp__ResolvePlayerByFirstName = 0x003B8610; constexpr uintptr_t CServerExoApp__RestartNetLayer = 0x003B8380; constexpr uintptr_t CServerExoApp__RunModule = 0x003B8100; constexpr uintptr_t CServerExoApp__SaveGame = 0x003B7440; constexpr uintptr_t CServerExoApp__SendCharacterQuery = 0x003B7470; constexpr uintptr_t CServerExoApp__SetAbilityBonusLimit = 0x003B8FC0; constexpr uintptr_t CServerExoApp__SetAbilityPenaltyLimit = 0x003B9000; constexpr uintptr_t CServerExoApp__SetApplicationIdsMatch = 0x003B9140; constexpr uintptr_t CServerExoApp__SetAttackBonusLimit = 0x003B8F00; constexpr uintptr_t CServerExoApp__SetAutoSavePending = 0x003B78F0; constexpr uintptr_t CServerExoApp__SetDamageBonusLimit = 0x003B8F40; constexpr uintptr_t CServerExoApp__SetDebugMode = 0x003B7D60; constexpr uintptr_t CServerExoApp__SetEndGamePending = 0x003B7580; constexpr uintptr_t CServerExoApp__SetEndGameString = 0x003B75A0; constexpr uintptr_t CServerExoApp__SetExportCharacterPending = 0x003B75F0; constexpr uintptr_t CServerExoApp__SetForceUpdate = 0x003B8290; constexpr uintptr_t CServerExoApp__SetGameSpyEnabled = 0x003B8E00; constexpr uintptr_t CServerExoApp__SetGameSpyReporting = 0x003B8250; constexpr uintptr_t CServerExoApp__SetImportingChar = 0x003B78D0; constexpr uintptr_t CServerExoApp__SetLoadingModule = 0x003B7890; constexpr uintptr_t CServerExoApp__SetMoveToModulePending = 0x003B74E0; constexpr uintptr_t CServerExoApp__SetMoveToModuleString = 0x003B7520; constexpr uintptr_t CServerExoApp__SetNetworkAddressBan = 0x003B7EA0; constexpr uintptr_t CServerExoApp__SetPauseState = 0x003B8540; constexpr uintptr_t CServerExoApp__SetReloadModuleWhenEmpty = 0x003B8650; constexpr uintptr_t CServerExoApp__SetSavingThrowBonusLimit = 0x003B8F80; constexpr uintptr_t CServerExoApp__SetSkillBonusLimit = 0x003B9040; constexpr uintptr_t CServerExoApp__SetWeGotDisconnected = 0x003B9160; constexpr uintptr_t CServerExoApp__Shutdown = 0x003B8030; constexpr uintptr_t CServerExoApp__ShutdownNetLayer = 0x003B8360; constexpr uintptr_t CServerExoApp__ShutDownToMainMenu = 0x003B90B0; constexpr uintptr_t CServerExoApp__StartNewModule = 0x003B74C0; constexpr uintptr_t CServerExoApp__StartServices = 0x003B8340; constexpr uintptr_t CServerExoApp__StopServices = 0x003B83A0; constexpr uintptr_t CServerExoApp__StripColorTokens = 0x003B8E40; constexpr uintptr_t CServerExoApp__TogglePauseState = 0x003B84C0; constexpr uintptr_t CServerExoApp__Uninitialize = 0x003B8270; constexpr uintptr_t CServerExoApp__UnloadModule = 0x003B8050; constexpr uintptr_t CServerExoApp__ValidatePlayerLogin = 0x003B8410; constexpr uintptr_t CServerExoApp__VomitServerOptionsToLog = 0x003B7FD0; constexpr uintptr_t CServerExoAppInternal__CServerExoAppInternalCtor__0 = 0x003B91C0; constexpr uintptr_t CServerExoAppInternal__CServerExoAppInternalDtor__0 = 0x003B98A0; constexpr uintptr_t CServerExoAppInternal__AddCDKeyToBannedList = 0x003D2F70; constexpr uintptr_t CServerExoAppInternal__AddCharListRequest = 0x003D2B20; constexpr uintptr_t CServerExoAppInternal__AddIPToBannedList = 0x003D2E30; constexpr uintptr_t CServerExoAppInternal__AddPendingAuthorization = 0x003D08E0; constexpr uintptr_t CServerExoAppInternal__AddPlayerNameToBannedList = 0x003D2ED0; constexpr uintptr_t CServerExoAppInternal__AddSubNetProfile = 0x003C75A0; constexpr uintptr_t CServerExoAppInternal__AddSubNetProfileRecvSize = 0x003C1770; constexpr uintptr_t CServerExoAppInternal__AddSubNetProfileSendSize = 0x003D5970; constexpr uintptr_t CServerExoAppInternal__AddToExclusionList = 0x003D2580; constexpr uintptr_t CServerExoAppInternal__AdmitNetworkAddress = 0x003B9EA0; constexpr uintptr_t CServerExoAppInternal__AdmitPlayerName = 0x003B9EB0; constexpr uintptr_t CServerExoAppInternal__CheckMasterServerTranslation = 0x003C3B70; constexpr uintptr_t CServerExoAppInternal__CheckStickyPlayerNameReserved = 0x003D4650; constexpr uintptr_t CServerExoAppInternal__ConnectionLibMainLoop = 0x003C3DC0; constexpr uintptr_t CServerExoAppInternal__ContinueMessageProcessing = 0x003D0190; constexpr uintptr_t CServerExoAppInternal__CopyModuleToCurrentGame = 0x003C1F00; constexpr uintptr_t CServerExoAppInternal__CreateServerVaultLostAndFound = 0x003D52B0; constexpr uintptr_t CServerExoAppInternal__DealWithLoadGameError = 0x003C3730; constexpr uintptr_t CServerExoAppInternal__EndGame = 0x003BCAB0; constexpr uintptr_t CServerExoAppInternal__ExportAllPlayers = 0x003C14A0; constexpr uintptr_t CServerExoAppInternal__ExportPlayer = 0x003C1580; constexpr uintptr_t CServerExoAppInternal__GetActiveExclusionList = 0x003D27D0; constexpr uintptr_t CServerExoAppInternal__GetActivePauseState = 0x003C35A0; constexpr uintptr_t CServerExoAppInternal__GetActiveTimer = 0x003D2260; constexpr uintptr_t CServerExoAppInternal__GetAreaByGameObjectID = 0x003C6400; constexpr uintptr_t CServerExoAppInternal__GetAreaOfEffectByGameObjectID = 0x003D0620; constexpr uintptr_t CServerExoAppInternal__GetBannedListString = 0x003D1B90; constexpr uintptr_t CServerExoAppInternal__GetClientObjectByObjectId = 0x003B9EC0; constexpr uintptr_t CServerExoAppInternal__GetClientObjectByPlayerId = 0x003B9F90; constexpr uintptr_t CServerExoAppInternal__GetCreatureByGameObjectID = 0x003D03A0; constexpr uintptr_t CServerExoAppInternal__GetDifficultyOption = 0x003D2AE0; constexpr uintptr_t CServerExoAppInternal__GetDoorByGameObjectID = 0x003D05A0; constexpr uintptr_t CServerExoAppInternal__GetEncounterByGameObjectID = 0x003D0720; constexpr uintptr_t CServerExoAppInternal__GetExtendedServerInfo = 0x003C2690; constexpr uintptr_t CServerExoAppInternal__GetFactionOfObject = 0x003D0D00; constexpr uintptr_t CServerExoAppInternal__GetFirstPCObject = 0x003D51B0; constexpr uintptr_t CServerExoAppInternal__GetGameObject = 0x003D0240; constexpr uintptr_t CServerExoAppInternal__GetHostedPublicInternetAddressAndPort = 0x003D59F0; constexpr uintptr_t CServerExoAppInternal__GetIsCDKeyOnBannedList = 0x003D39C0; constexpr uintptr_t CServerExoAppInternal__GetIsIPOnBannedList = 0x003D3550; constexpr uintptr_t CServerExoAppInternal__GetIsPlayerNameOnBannedList = 0x003D3780; constexpr uintptr_t CServerExoAppInternal__GetItemByGameObjectID = 0x003D0320; constexpr uintptr_t CServerExoAppInternal__GetModule = 0x003BA0C0; constexpr uintptr_t CServerExoAppInternal__GetModuleByGameObjectID = 0x003D0420; constexpr uintptr_t CServerExoAppInternal__GetModuleExists = 0x003C2160; constexpr uintptr_t CServerExoAppInternal__GetModuleLanguage = 0x003D08C0; constexpr uintptr_t CServerExoAppInternal__GetModuleName = 0x003BA130; constexpr uintptr_t CServerExoAppInternal__GetNextPCObject = 0x003D5220; constexpr uintptr_t CServerExoAppInternal__GetPauseState = 0x003D2160; constexpr uintptr_t CServerExoAppInternal__GetPlaceableByGameObjectID = 0x003D0520; constexpr uintptr_t CServerExoAppInternal__GetPlayerAddressData = 0x003C2660; constexpr uintptr_t CServerExoAppInternal__GetPlayerIDByGameObjectID = 0x003D2A10; constexpr uintptr_t CServerExoAppInternal__GetPlayerLanguage = 0x003D0820; constexpr uintptr_t CServerExoAppInternal__GetPlayerListString = 0x003D0E10; constexpr uintptr_t CServerExoAppInternal__GetPortalListString = 0x003D20D0; constexpr uintptr_t CServerExoAppInternal__GetServerInfoFromIniFile = 0x003CA490; constexpr uintptr_t CServerExoAppInternal__GetSoundObjectByGameObjectID = 0x003D07A0; constexpr uintptr_t CServerExoAppInternal__GetStoreByGameObjectID = 0x003D02A0; constexpr uintptr_t CServerExoAppInternal__GetTriggerByGameObjectID = 0x003D04A0; constexpr uintptr_t CServerExoAppInternal__GetWaypointByGameObjectID = 0x003D06A0; constexpr uintptr_t CServerExoAppInternal__HandleGameSpyToServerMessage = 0x003D08D0; constexpr uintptr_t CServerExoAppInternal__HandleMessage = 0x003C15E0; constexpr uintptr_t CServerExoAppInternal__HandleOldServerVaultMigration = 0x003D3A40; constexpr uintptr_t CServerExoAppInternal__Initialize = 0x003C17F0; constexpr uintptr_t CServerExoAppInternal__InitializeNetLayer = 0x003C82E0; constexpr uintptr_t CServerExoAppInternal__InitiateModuleForPlayer = 0x003C5AF0; constexpr uintptr_t CServerExoAppInternal__IsOnActiveExclusionList = 0x003D2370; constexpr uintptr_t CServerExoAppInternal__IsOnExclusionList = 0x003D2430; constexpr uintptr_t CServerExoAppInternal__IsPlayerNameSticky = 0x003D4630; constexpr uintptr_t CServerExoAppInternal__LoadCharacterFinish = 0x003C0DB0; constexpr uintptr_t CServerExoAppInternal__LoadCharacterStart = 0x003BFD30; constexpr uintptr_t CServerExoAppInternal__LoadGame = 0x003BA970; constexpr uintptr_t CServerExoAppInternal__LoadModule = 0x003BAC40; constexpr uintptr_t CServerExoAppInternal__LoadPrimaryPlayer = 0x003C1440; constexpr uintptr_t CServerExoAppInternal__MainLoop = 0x003C27D0; constexpr uintptr_t CServerExoAppInternal__MarkUpdateClientsForObject = 0x003CFDE0; constexpr uintptr_t CServerExoAppInternal__MovePlayerToArea = 0x003C6480; constexpr uintptr_t CServerExoAppInternal__OnCDChange = 0x003C66B0; constexpr uintptr_t CServerExoAppInternal__OnExit = 0x003C66C0; constexpr uintptr_t CServerExoAppInternal__OnGainFocus = 0x003C66D0; constexpr uintptr_t CServerExoAppInternal__OnLostFocus = 0x003C66E0; constexpr uintptr_t CServerExoAppInternal__OnVideoChange = 0x003C66F0; constexpr uintptr_t CServerExoAppInternal__PlayerListChange = 0x003C6700; constexpr uintptr_t CServerExoAppInternal__PushMessageOverWall = 0x003D5270; constexpr uintptr_t CServerExoAppInternal__QuarantineInvalidCharacter = 0x003BDCF0; constexpr uintptr_t CServerExoAppInternal__ReadBannedLists = 0x003CEDC0; constexpr uintptr_t CServerExoAppInternal__RemoveCDKeyFromBannedList = 0x003D3390; constexpr uintptr_t CServerExoAppInternal__RemoveFromExclusionList = 0x003D2690; constexpr uintptr_t CServerExoAppInternal__RemoveIPFromBannedList = 0x003D3010; constexpr uintptr_t CServerExoAppInternal__RemovePCFromWorld = 0x003C77E0; constexpr uintptr_t CServerExoAppInternal__RemovePendingAuthorization = 0x003D01B0; constexpr uintptr_t CServerExoAppInternal__RemovePlayerNameFromBannedList = 0x003D31D0; constexpr uintptr_t CServerExoAppInternal__RemoveSubNetProfile = 0x003C7BB0; constexpr uintptr_t CServerExoAppInternal__ReprocessExclusionListActions = 0x003D2180; constexpr uintptr_t CServerExoAppInternal__ResolvePlayerByFirstName = 0x003D2810; constexpr uintptr_t CServerExoAppInternal__RestartNetLayer = 0x003C82D0; constexpr uintptr_t CServerExoAppInternal__RunModule = 0x003C7FA0; constexpr uintptr_t CServerExoAppInternal__SaveGame = 0x003BA1F0; constexpr uintptr_t CServerExoAppInternal__SendCharacterQuery = 0x003C0D20; constexpr uintptr_t CServerExoAppInternal__SendEnhancedHeartbeatToMasterServer = 0x003D0940; constexpr uintptr_t CServerExoAppInternal__SendEnteringStartNewModuleMessage = 0x003BDC70; constexpr uintptr_t CServerExoAppInternal__SendExitingStartNewModuleMessage = 0x003BDCB0; constexpr uintptr_t CServerExoAppInternal__SendHeartbeatToRelay = 0x003D0C20; constexpr uintptr_t CServerExoAppInternal__SendStartStallEvent = 0x003BA930; constexpr uintptr_t CServerExoAppInternal__SetEstimatedSaveSize = 0x003C2010; constexpr uintptr_t CServerExoAppInternal__SetGameSpyReporting = 0x003CFC00; constexpr uintptr_t CServerExoAppInternal__SetNetworkAddressBan = 0x003C81F0; constexpr uintptr_t CServerExoAppInternal__SetPauseState = 0x003C1C70; constexpr uintptr_t CServerExoAppInternal__Shutdown = 0x003C5150; constexpr uintptr_t CServerExoAppInternal__ShutdownNetLayer = 0x003C8280; constexpr uintptr_t CServerExoAppInternal__ShutdownServerProfiles = 0x003CFC10; constexpr uintptr_t CServerExoAppInternal__StallEventSaveGame = 0x003C38C0; constexpr uintptr_t CServerExoAppInternal__StartNewModule = 0x003BD6B0; constexpr uintptr_t CServerExoAppInternal__StartServices = 0x003C8540; constexpr uintptr_t CServerExoAppInternal__StartShutdownTimer = 0x003D0210; constexpr uintptr_t CServerExoAppInternal__StopServices = 0x003CE7F0; constexpr uintptr_t CServerExoAppInternal__StorePlayerCharacters = 0x003BD7E0; constexpr uintptr_t CServerExoAppInternal__StripColorTokens = 0x003D5670; constexpr uintptr_t CServerExoAppInternal__Test_Unit_Script_Compile = 0x003D5380; constexpr uintptr_t CServerExoAppInternal__Test_Unit_Script_Run = 0x003D5530; constexpr uintptr_t CServerExoAppInternal__TogglePauseState = 0x003D2130; constexpr uintptr_t CServerExoAppInternal__Uninitialize = 0x003D0180; constexpr uintptr_t CServerExoAppInternal__UnloadModule = 0x003C1800; constexpr uintptr_t CServerExoAppInternal__UnlockBiowareModule = 0x003BCBB0; constexpr uintptr_t CServerExoAppInternal__UpdateAutoSaveTimer = 0x003C3670; constexpr uintptr_t CServerExoAppInternal__UpdateClientGameObjects = 0x003C35C0; constexpr uintptr_t CServerExoAppInternal__UpdateClientGameObjectsForPlayer = 0x003CFEB0; constexpr uintptr_t CServerExoAppInternal__UpdateClientsForObject = 0x003D00D0; constexpr uintptr_t CServerExoAppInternal__UpdateLogHeartbeatTimer = 0x003C5A30; constexpr uintptr_t CServerExoAppInternal__UpdateShutdownTimer = 0x003C4F80; constexpr uintptr_t CServerExoAppInternal__UpdateWindowTitle = 0x003C2150; constexpr uintptr_t CServerExoAppInternal__ValidateCreateServerCharacter = 0x003BDFA0; constexpr uintptr_t CServerExoAppInternal__ValidatePlayerLogin = 0x003C13F0; constexpr uintptr_t CServerExoAppInternal__VomitServerOptionsToLog = 0x003CDF80; constexpr uintptr_t CServerExoAppInternal__WriteServerInfoToIniFile = 0x003CF2B0; constexpr uintptr_t CServerInfo__CServerInfoCtor__0 = 0x0011C2C0; constexpr uintptr_t CServerInfo__CServerInfoDtor = 0x003D5A40; constexpr uintptr_t CServerInfo__FindOptionIndex = 0x0011CC50; constexpr uintptr_t CServerInfo__SetDifficultyLevel = 0x0011CCC0; constexpr uintptr_t CStoreCustomer__CStoreCustomerCtor__0 = 0x00358270; constexpr uintptr_t CTlkFile__CTlkFileCtor__0 = 0x0007D4C0; constexpr uintptr_t CTlkFile__ReadHeader = 0x0007D620; constexpr uintptr_t CTlkTable__CTlkTableCtor__0 = 0x0007D660; constexpr uintptr_t CTlkTable__CTlkTableDtor__0 = 0x0007D720; constexpr uintptr_t CTlkTable__ClearCustomTokens = 0x0007F420; constexpr uintptr_t CTlkTable__CloseFile = 0x0007D900; constexpr uintptr_t CTlkTable__CloseFileAlternate = 0x0007D890; constexpr uintptr_t CTlkTable__ExoIsDBCSLeadByte = 0x0007D970; constexpr uintptr_t CTlkTable__FetchInternal = 0x0007DA80; constexpr uintptr_t CTlkTable__GetLanguageVersion = 0x0007DA50; constexpr uintptr_t CTlkTable__GetSimpleString = 0x0007E4C0; constexpr uintptr_t CTlkTable__GetTokenValue = 0x0007F520; constexpr uintptr_t CTlkTable__OpenFile__0 = 0x0007E570; constexpr uintptr_t CTlkTable__OpenFile__1 = 0x0007EE30; constexpr uintptr_t CTlkTable__OpenFileAlternate = 0x0007F180; constexpr uintptr_t CTlkTable__ParseStr = 0x0007DFC0; constexpr uintptr_t CTlkTable__RemapFontName = 0x0007D980; constexpr uintptr_t CTlkTable__SetCustomToken = 0x0007F1B0; constexpr uintptr_t CTlkTable__SetUseLargeDialogFont = 0x0007F4D0; constexpr uintptr_t CTwoDimArrays__CTwoDimArraysCtor__0 = 0x0011CD20; constexpr uintptr_t CTwoDimArrays__CTwoDimArraysDtor__0 = 0x0011CE00; constexpr uintptr_t CTwoDimArrays__ClearCached2DAs = 0x0011D880; constexpr uintptr_t CTwoDimArrays__GetCached2DA = 0x001220D0; constexpr uintptr_t CTwoDimArrays__GetEpicAttackBonus = 0x001220A0; constexpr uintptr_t CTwoDimArrays__GetEpicFortSaveBonus = 0x00122010; constexpr uintptr_t CTwoDimArrays__GetEpicRefSaveBonus = 0x00122040; constexpr uintptr_t CTwoDimArrays__GetEpicWillSaveBonus = 0x00122070; constexpr uintptr_t CTwoDimArrays__GetIPRPCostTable = 0x00121FF0; constexpr uintptr_t CTwoDimArrays__Load2DArrays = 0x0011D930; constexpr uintptr_t CTwoDimArrays__LoadEpicAttacks = 0x00120D80; constexpr uintptr_t CTwoDimArrays__LoadEpicSaves = 0x00120B80; constexpr uintptr_t CTwoDimArrays__LoadIPRPCostTables = 0x001208A0; constexpr uintptr_t CTwoDimArrays__UnLoad2DArrays = 0x00120EC0; constexpr uintptr_t CTwoDimArrays__UnLoadIPRPCostTables = 0x00121F70; constexpr uintptr_t CTwoDimArrays__Update2DACache = 0x00122580; constexpr uintptr_t CVirtualMachine__CVirtualMachineCtor__0 = 0x000D1820; constexpr uintptr_t CVirtualMachine__CVirtualMachineDtor__0 = 0x000D2350; constexpr uintptr_t CVirtualMachine__Debugger = 0x000D4E80; constexpr uintptr_t CVirtualMachine__DeleteScript = 0x000D2740; constexpr uintptr_t CVirtualMachine__DeleteScriptSituation = 0x000D67E0; constexpr uintptr_t CVirtualMachine__ExecuteCode = 0x000D2840; constexpr uintptr_t CVirtualMachine__GetRunScriptReturnValue = 0x000D5F80; constexpr uintptr_t CVirtualMachine__GetScriptLog = 0x000D5580; constexpr uintptr_t CVirtualMachine__InitializeScript = 0x000D27D0; constexpr uintptr_t CVirtualMachine__LoadScriptSituation_Internal = 0x000D64E0; constexpr uintptr_t CVirtualMachine__PopInstructionPtr = 0x000D4F60; constexpr uintptr_t CVirtualMachine__PushInstructionPtr = 0x000D4FA0; constexpr uintptr_t CVirtualMachine__ReadScriptFile = 0x000D51E0; constexpr uintptr_t CVirtualMachine__RunScript = 0x000D55E0; constexpr uintptr_t CVirtualMachine__RunScriptFile = 0x000D5BB0; constexpr uintptr_t CVirtualMachine__RunScriptSituation = 0x000D5CF0; constexpr uintptr_t CVirtualMachine__SaveScriptSituation_Internal = 0x000D6250; constexpr uintptr_t CVirtualMachine__SetCommandImplementer = 0x000D6840; constexpr uintptr_t CVirtualMachine__SetDebugGUIFlag = 0x000D6820; constexpr uintptr_t CVirtualMachine__SetUpScriptSituation = 0x000D5EA0; constexpr uintptr_t CVirtualMachine__StackPopCommand_Internal = 0x000D6080; constexpr uintptr_t CVirtualMachine__StackPopEngineStructure = 0x000D5FB0; constexpr uintptr_t CVirtualMachine__StackPopFloat = 0x000D5190; constexpr uintptr_t CVirtualMachine__StackPopInteger = 0x000D4F10; constexpr uintptr_t CVirtualMachine__StackPopObject = 0x000D6030; constexpr uintptr_t CVirtualMachine__StackPopString = 0x000D4FD0; constexpr uintptr_t CVirtualMachine__StackPopVector = 0x000D5030; constexpr uintptr_t CVirtualMachine__StackPushEngineStructure = 0x000D4E10; constexpr uintptr_t CVirtualMachine__StackPushFloat = 0x000D4D50; constexpr uintptr_t CVirtualMachine__StackPushInteger = 0x000D4CD0; constexpr uintptr_t CVirtualMachine__StackPushObject = 0x000D4D10; constexpr uintptr_t CVirtualMachine__StackPushString = 0x000D4D90; constexpr uintptr_t CVirtualMachine__StackPushVector = 0x000D5100; constexpr uintptr_t CVirtualMachine__Test_RunAllScriptsInDirectory = 0x000D6870; constexpr uintptr_t CVirtualMachineCache__CVirtualMachineCacheDtor__0 = 0x000D1470; constexpr uintptr_t CVirtualMachineCache__ClearAllFiles = 0x000D1540; constexpr uintptr_t CVirtualMachineCache__PrecacheFile = 0x000D1600; constexpr uintptr_t CVirtualMachineDebuggerInstance__CVirtualMachineDebuggerInstanceCtor__0 = 0x000D7720; constexpr uintptr_t CVirtualMachineDebuggerInstance__CVirtualMachineDebuggerInstanceDtor__0 = 0x000D7A40; constexpr uintptr_t CVirtualMachineDebuggerInstance__DebuggerDisplayCurrentLocation = 0x000D9F40; constexpr uintptr_t CVirtualMachineDebuggerInstance__DebuggerMainLoop = 0x000DA280; constexpr uintptr_t CVirtualMachineDebuggerInstance__DebuggerSingleStep = 0x000DA7A0; constexpr uintptr_t CVirtualMachineDebuggerInstance__FindEmptyWatchViewEntry = 0x000DC940; constexpr uintptr_t CVirtualMachineDebuggerInstance__FindWatchViewEntry = 0x000DD030; constexpr uintptr_t CVirtualMachineDebuggerInstance__GenerateCallStackParameterView = 0x000DC120; constexpr uintptr_t CVirtualMachineDebuggerInstance__GenerateCallStackView = 0x000DC240; constexpr uintptr_t CVirtualMachineDebuggerInstance__GenerateDebugVariableLocationForParameter = 0x000DC0A0; constexpr uintptr_t CVirtualMachineDebuggerInstance__GenerateFunctionIDFromInstructionPointer = 0x000DB2C0; constexpr uintptr_t CVirtualMachineDebuggerInstance__GenerateLineNumberFromInstructionPointer = 0x000DB300; constexpr uintptr_t CVirtualMachineDebuggerInstance__GenerateStackSizeAtInstructionPointer = 0x000DBDC0; constexpr uintptr_t CVirtualMachineDebuggerInstance__GenerateTypeName = 0x000DBA80; constexpr uintptr_t CVirtualMachineDebuggerInstance__GenerateTypeSize = 0x000DB9E0; constexpr uintptr_t CVirtualMachineDebuggerInstance__GenerateTypeValueFromStackLocation = 0x000DBC40; constexpr uintptr_t CVirtualMachineDebuggerInstance__GetNextDebugVariable = 0x000DBFD0; constexpr uintptr_t CVirtualMachineDebuggerInstance__LoadDebugInfo = 0x000D8680; constexpr uintptr_t CVirtualMachineDebuggerInstance__LoadDebugInfoLine = 0x000DB260; constexpr uintptr_t CVirtualMachineDebuggerInstance__LoadScriptLine = 0x000DB1C0; constexpr uintptr_t CVirtualMachineDebuggerInstance__ParseAndExecuteMessage = 0x000DA340; constexpr uintptr_t CVirtualMachineDebuggerInstance__ReadIntegerFromInput = 0x000DA840; constexpr uintptr_t CVirtualMachineDebuggerInstance__ReadStringFromInput = 0x000DA8A0; constexpr uintptr_t CVirtualMachineDebuggerInstance__SendCallStackWindowUpdateCommands = 0x000DC690; constexpr uintptr_t CVirtualMachineDebuggerInstance__SendCodeWindowUpdateCommands = 0x000DB3A0; constexpr uintptr_t CVirtualMachineDebuggerInstance__SendLabelsAndKeywords = 0x000DB6E0; constexpr uintptr_t CVirtualMachineDebuggerInstance__SendWatchWindowEntry = 0x000DD0D0; constexpr uintptr_t CVirtualMachineDebuggerInstance__SendWatchWindowUpdateCommands = 0x000DA9F0; constexpr uintptr_t CVirtualMachineDebuggerInstance__ShutDownDebugger = 0x000DA230; constexpr uintptr_t CVirtualMachineDebuggerInstance__SpawnDebugger = 0x000D8430; constexpr uintptr_t CVirtualMachineDebuggerInstance__ToggleWatchWindowExpansion = 0x000DA970; constexpr uintptr_t CVirtualMachineDebugLoader__CVirtualMachineDebugLoaderDtor__0 = 0x000B4D30; constexpr uintptr_t CVirtualMachineDebugLoader__DemandDebugInfo = 0x000D7360; constexpr uintptr_t CVirtualMachineDebugLoader__GetDataPtr = 0x000D7640; constexpr uintptr_t CVirtualMachineDebugLoader__GetSize = 0x000D7670; constexpr uintptr_t CVirtualMachineDebugLoader__ReleaseDebugInfo = 0x000D76A0; constexpr uintptr_t CVirtualMachineFile__CVirtualMachineFileCtor__0 = 0x000D0EC0; constexpr uintptr_t CVirtualMachineFile__CVirtualMachineFileDtor__0 = 0x000D0FC0; constexpr uintptr_t CVirtualMachineFile__GetData = 0x000D1430; constexpr uintptr_t CVirtualMachineFile__LoadFile = 0x000D1360; constexpr uintptr_t CVirtualMachineFile__UnloadFile = 0x000D13D0; constexpr uintptr_t CVirtualMachineScript__CVirtualMachineScriptDtor = 0x000D71D0; constexpr uintptr_t CVirtualMachineStack__CVirtualMachineStackCtor__0 = 0x000D0020; constexpr uintptr_t CVirtualMachineStack__CVirtualMachineStackDtor__0 = 0x000D00A0; constexpr uintptr_t CVirtualMachineStack__AddToTopOfStack = 0x000D01D0; constexpr uintptr_t CVirtualMachineStack__AssignLocationToLocation = 0x000D0340; constexpr uintptr_t CVirtualMachineStack__ClearStack = 0x000D00B0; constexpr uintptr_t CVirtualMachineStack__CopyFromStack = 0x000D04C0; constexpr uintptr_t CVirtualMachineStack__GetBasePointer = 0x000D0DC0; constexpr uintptr_t CVirtualMachineStack__GetStackPointer = 0x000D0DE0; constexpr uintptr_t CVirtualMachineStack__InitializeStack = 0x000D01C0; constexpr uintptr_t CVirtualMachineStack__LoadStack = 0x000D0A40; constexpr uintptr_t CVirtualMachineStack__ModifyIntegerAtLocation = 0x000D0490; constexpr uintptr_t CVirtualMachineStack__SaveStack = 0x000D0840; constexpr uintptr_t CVirtualMachineStack__SetBasePointer = 0x000D0DD0; constexpr uintptr_t CVirtualMachineStack__SetStackPointer = 0x000D0DF0; constexpr uintptr_t CWorldTimer__CWorldTimerCtor__0 = 0x003D5CB0; constexpr uintptr_t CWorldTimer__CWorldTimerDtor__0 = 0x003D5FD0; constexpr uintptr_t CWorldTimer__AddWorldTimes = 0x003D64E0; constexpr uintptr_t CWorldTimer__AdvanceToTime = 0x003D70A0; constexpr uintptr_t CWorldTimer__CompareWorldTimes = 0x003D6530; constexpr uintptr_t CWorldTimer__ConvertFromCalendarDay = 0x003D6130; constexpr uintptr_t CWorldTimer__ConvertFromTimeOfDay = 0x003D61A0; constexpr uintptr_t CWorldTimer__ConvertToCalendarDay = 0x003D6080; constexpr uintptr_t CWorldTimer__ConvertToTimeOfDay = 0x003D60D0; constexpr uintptr_t CWorldTimer__GetCalendarDayFromSeconds = 0x003D6FC0; constexpr uintptr_t CWorldTimer__GetSnapshotTime = 0x003D6050; constexpr uintptr_t CWorldTimer__GetSnapshotTimeDifference = 0x003D6060; constexpr uintptr_t CWorldTimer__GetTimeDifferenceFromWorldTime = 0x003D62C0; constexpr uintptr_t CWorldTimer__GetTimeOfDayFromSeconds = 0x003D7010; constexpr uintptr_t CWorldTimer__GetWorldTime = 0x003D6380; constexpr uintptr_t CWorldTimer__GetWorldTimeCalendarDay = 0x003D66A0; constexpr uintptr_t CWorldTimer__GetWorldTimeCalendarDayString = 0x003D6730; constexpr uintptr_t CWorldTimer__GetWorldTimeDay = 0x003D6CD0; constexpr uintptr_t CWorldTimer__GetWorldTimeHour = 0x003D6D80; constexpr uintptr_t CWorldTimer__GetWorldTimeMillisecond = 0x003D6F10; constexpr uintptr_t CWorldTimer__GetWorldTimeMinute = 0x003D6E00; constexpr uintptr_t CWorldTimer__GetWorldTimeMonth = 0x003D6C10; constexpr uintptr_t CWorldTimer__GetWorldTimeSecond = 0x003D6E80; constexpr uintptr_t CWorldTimer__GetWorldTimeTimeOfDay = 0x003D68A0; constexpr uintptr_t CWorldTimer__GetWorldTimeTimeOfDayString = 0x003D6910; constexpr uintptr_t CWorldTimer__GetWorldTimeYear = 0x003D6B60; constexpr uintptr_t CWorldTimer__PauseWorldTimer = 0x003D6580; constexpr uintptr_t CWorldTimer__ResetTimer = 0x003D64A0; constexpr uintptr_t CWorldTimer__SetFixedSnapshotRate = 0x003D6F90; constexpr uintptr_t CWorldTimer__SetMinutesPerHour = 0x003D5D80; constexpr uintptr_t CWorldTimer__SetSnapshotTime = 0x003D5FF0; constexpr uintptr_t CWorldTimer__SetWorldTime__0 = 0x003D6210; constexpr uintptr_t CWorldTimer__SetWorldTime__1 = 0x003D5DB0; constexpr uintptr_t CWorldTimer__SubtractWorldTimes = 0x003D6440; constexpr uintptr_t CWorldTimer__TranslateWorldTimeToString = 0x003D6A40; constexpr uintptr_t CWorldTimer__UnpauseWorldTimer = 0x003D6620; constexpr uintptr_t ICrashReporter__ExposeFile = 0x0049F500; constexpr uintptr_t ICrashReporter__WriteMinidump = 0x0049F970; constexpr uintptr_t Matrix__getquaternion = 0x00090CB0; constexpr uintptr_t monty__montyDtor = 0x00018DB0; constexpr uintptr_t NWPlayerCharacterList_st__NWPlayerCharacterList_stCtor = 0x0034D840; constexpr uintptr_t Plane__Transform = 0x00090EE0; constexpr uintptr_t Quaternion__OperatorMultiplicationAssignment = 0x00091970; constexpr uintptr_t SJournalEntry__SJournalEntryCtor = 0x002D34B0; constexpr uintptr_t SMstDigiDistInfo__SMstDigiDistInfoDtor = 0x0001CE10; constexpr uintptr_t Vector__Normalize = 0x0008F850; constexpr uintptr_t Vector__OperatorMultiplicationAssignment = 0x0008FA70; constexpr uintptr_t Vector__OperatorDivisionAssignment = 0x0008FAB0; constexpr uintptr_t Vector__OperatorAdditionAssignment = 0x0008F9F0; constexpr uintptr_t Vector__OperatorSubtractionAssignment = 0x0008FA30; constexpr uintptr_t Vector4__Normalize = 0x00090250; } } }
[ "liarethnwn@gmail.com" ]
liarethnwn@gmail.com
0c1ade3b7b1442e257ea075f5876bfa09860cf2b
0545fde5a5e0aa51c7157619c2f03175651a9a54
/smten-minisat/minisat/core/Solver.cc
68ecd6a15ae4d759257a3ff173a01543c64ab8cf
[ "BSD-2-Clause", "MIT" ]
permissive
niravhdave/smten
7ce23a7c93da35a5e23f30c08bc550521aad9c71
16dd37fb0ee3809408803d4be20401211b6c4027
refs/heads/master
2021-01-14T13:43:48.539043
2014-07-23T21:08:00
2014-07-23T21:08:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
30,537
cc
/***************************************************************************************[Solver.cc] Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson Copyright (c) 2007-2010, Niklas Sorensson 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 <math.h> #include "mtl/Sort.h" #include "core/Solver.h" using namespace SmtenMinisat; //================================================================================================= // Options: static const char* _cat = "CORE"; static DoubleOption opt_var_decay (_cat, "var-decay", "The variable activity decay factor", 0.95, DoubleRange(0, false, 1, false)); static DoubleOption opt_clause_decay (_cat, "cla-decay", "The clause activity decay factor", 0.999, DoubleRange(0, false, 1, false)); static DoubleOption opt_random_var_freq (_cat, "rnd-freq", "The frequency with which the decision heuristic tries to choose a random variable", 0, DoubleRange(0, true, 1, true)); static DoubleOption opt_random_seed (_cat, "rnd-seed", "Used by the random variable selection", 91648253, DoubleRange(0, false, HUGE_VAL, false)); static IntOption opt_ccmin_mode (_cat, "ccmin-mode", "Controls conflict clause minimization (0=none, 1=basic, 2=deep)", 2, IntRange(0, 2)); static IntOption opt_phase_saving (_cat, "phase-saving", "Controls the level of phase saving (0=none, 1=limited, 2=full)", 2, IntRange(0, 2)); static BoolOption opt_rnd_init_act (_cat, "rnd-init", "Randomize the initial activity", false); static BoolOption opt_luby_restart (_cat, "luby", "Use the Luby restart sequence", true); static IntOption opt_restart_first (_cat, "rfirst", "The base restart interval", 100, IntRange(1, INT32_MAX)); static DoubleOption opt_restart_inc (_cat, "rinc", "Restart interval increase factor", 2, DoubleRange(1, false, HUGE_VAL, false)); static DoubleOption opt_garbage_frac (_cat, "gc-frac", "The fraction of wasted memory allowed before a garbage collection is triggered", 0.20, DoubleRange(0, false, HUGE_VAL, false)); //================================================================================================= // Constructor/Destructor: Solver::Solver() : // Parameters (user settable): // verbosity (0) , var_decay (opt_var_decay) , clause_decay (opt_clause_decay) , random_var_freq (opt_random_var_freq) , random_seed (opt_random_seed) , luby_restart (opt_luby_restart) , ccmin_mode (opt_ccmin_mode) , phase_saving (opt_phase_saving) , rnd_pol (false) , rnd_init_act (opt_rnd_init_act) , garbage_frac (opt_garbage_frac) , restart_first (opt_restart_first) , restart_inc (opt_restart_inc) // Parameters (the rest): // , learntsize_factor((double)1/(double)3), learntsize_inc(1.1) // Parameters (experimental): // , learntsize_adjust_start_confl (100) , learntsize_adjust_inc (1.5) // Statistics: (formerly in 'SolverStats') // , solves(0), starts(0), decisions(0), rnd_decisions(0), propagations(0), conflicts(0) , dec_vars(0), clauses_literals(0), learnts_literals(0), max_literals(0), tot_literals(0) , ok (true) , cla_inc (1) , var_inc (1) , watches (WatcherDeleted(ca)) , qhead (0) , simpDB_assigns (-1) , simpDB_props (0) , order_heap (VarOrderLt(activity)) , progress_estimate (0) , remove_satisfied (true) // Resource constraints: // , conflict_budget (-1) , propagation_budget (-1) , asynch_interrupt (false) {} Solver::~Solver() { } //================================================================================================= // Minor methods: // Creates a new SAT variable in the solver. If 'decision' is cleared, variable will not be // used as a decision variable (NOTE! This has effects on the meaning of a SATISFIABLE result). // Var Solver::newVar(bool sign, bool dvar) { int v = nVars(); watches .init(mkLit(v, false)); watches .init(mkLit(v, true )); assigns .push(l_Undef); vardata .push(mkVarData(CRef_Undef, 0)); //activity .push(0); activity .push(rnd_init_act ? drand(random_seed) * 0.00001 : 0); seen .push(0); polarity .push(sign); decision .push(); trail .capacity(v+1); setDecisionVar(v, dvar); return v; } bool Solver::addClause_(vec<Lit>& ps) { assert(decisionLevel() == 0); if (!ok) return false; // Check if clause is satisfied and remove false/duplicate literals: sort(ps); Lit p; int i, j; for (i = j = 0, p = lit_Undef; i < ps.size(); i++) if (value(ps[i]) == l_True || ps[i] == ~p) return true; else if (value(ps[i]) != l_False && ps[i] != p) ps[j++] = p = ps[i]; ps.shrink(i - j); if (ps.size() == 0) return ok = false; else if (ps.size() == 1){ uncheckedEnqueue(ps[0]); return ok = (propagate() == CRef_Undef); }else{ CRef cr = ca.alloc(ps, false); clauses.push(cr); attachClause(cr); } return true; } void Solver::attachClause(CRef cr) { const Clause& c = ca[cr]; assert(c.size() > 1); watches[~c[0]].push(Watcher(cr, c[1])); watches[~c[1]].push(Watcher(cr, c[0])); if (c.learnt()) learnts_literals += c.size(); else clauses_literals += c.size(); } void Solver::detachClause(CRef cr, bool strict) { const Clause& c = ca[cr]; assert(c.size() > 1); if (strict){ remove(watches[~c[0]], Watcher(cr, c[1])); remove(watches[~c[1]], Watcher(cr, c[0])); }else{ // Lazy detaching: (NOTE! Must clean all watcher lists before garbage collecting this clause) watches.smudge(~c[0]); watches.smudge(~c[1]); } if (c.learnt()) learnts_literals -= c.size(); else clauses_literals -= c.size(); } void Solver::removeClause(CRef cr) { Clause& c = ca[cr]; detachClause(cr); // Don't leave pointers to free'd memory! if (locked(c)) vardata[var(c[0])].reason = CRef_Undef; c.mark(1); ca.free(cr); } bool Solver::satisfied(const Clause& c) const { for (int i = 0; i < c.size(); i++) if (value(c[i]) == l_True) return true; return false; } // Revert to the state at given level (keeping all assignment at 'level' but not beyond). // void Solver::cancelUntil(int level) { if (decisionLevel() > level){ for (int c = trail.size()-1; c >= trail_lim[level]; c--){ Var x = var(trail[c]); assigns [x] = l_Undef; if (phase_saving > 1 || (phase_saving == 1) && c > trail_lim.last()) polarity[x] = sign(trail[c]); insertVarOrder(x); } qhead = trail_lim[level]; trail.shrink(trail.size() - trail_lim[level]); trail_lim.shrink(trail_lim.size() - level); } } //================================================================================================= // Major methods: Lit Solver::pickBranchLit() { Var next = var_Undef; // Random decision: if (drand(random_seed) < random_var_freq && !order_heap.empty()){ next = order_heap[irand(random_seed,order_heap.size())]; if (value(next) == l_Undef && decision[next]) rnd_decisions++; } // Activity based decision: while (next == var_Undef || value(next) != l_Undef || !decision[next]) if (order_heap.empty()){ next = var_Undef; break; }else next = order_heap.removeMin(); return next == var_Undef ? lit_Undef : mkLit(next, rnd_pol ? drand(random_seed) < 0.5 : polarity[next]); } /*_________________________________________________________________________________________________ | | analyze : (confl : Clause*) (out_learnt : vec<Lit>&) (out_btlevel : int&) -> [void] | | Description: | Analyze conflict and produce a reason clause. | | Pre-conditions: | * 'out_learnt' is assumed to be cleared. | * Current decision level must be greater than root level. | | Post-conditions: | * 'out_learnt[0]' is the asserting literal at level 'out_btlevel'. | * If out_learnt.size() > 1 then 'out_learnt[1]' has the greatest decision level of the | rest of literals. There may be others from the same level though. | |________________________________________________________________________________________________@*/ void Solver::analyze(CRef confl, vec<Lit>& out_learnt, int& out_btlevel) { int pathC = 0; Lit p = lit_Undef; // Generate conflict clause: // out_learnt.push(); // (leave room for the asserting literal) int index = trail.size() - 1; do{ assert(confl != CRef_Undef); // (otherwise should be UIP) Clause& c = ca[confl]; if (c.learnt()) claBumpActivity(c); for (int j = (p == lit_Undef) ? 0 : 1; j < c.size(); j++){ Lit q = c[j]; if (!seen[var(q)] && level(var(q)) > 0){ varBumpActivity(var(q)); seen[var(q)] = 1; if (level(var(q)) >= decisionLevel()) pathC++; else out_learnt.push(q); } } // Select next clause to look at: while (!seen[var(trail[index--])]); p = trail[index+1]; confl = reason(var(p)); seen[var(p)] = 0; pathC--; }while (pathC > 0); out_learnt[0] = ~p; // Simplify conflict clause: // int i, j; out_learnt.copyTo(analyze_toclear); if (ccmin_mode == 2){ uint32_t abstract_level = 0; for (i = 1; i < out_learnt.size(); i++) abstract_level |= abstractLevel(var(out_learnt[i])); // (maintain an abstraction of levels involved in conflict) for (i = j = 1; i < out_learnt.size(); i++) if (reason(var(out_learnt[i])) == CRef_Undef || !litRedundant(out_learnt[i], abstract_level)) out_learnt[j++] = out_learnt[i]; }else if (ccmin_mode == 1){ for (i = j = 1; i < out_learnt.size(); i++){ Var x = var(out_learnt[i]); if (reason(x) == CRef_Undef) out_learnt[j++] = out_learnt[i]; else{ Clause& c = ca[reason(var(out_learnt[i]))]; for (int k = 1; k < c.size(); k++) if (!seen[var(c[k])] && level(var(c[k])) > 0){ out_learnt[j++] = out_learnt[i]; break; } } } }else i = j = out_learnt.size(); max_literals += out_learnt.size(); out_learnt.shrink(i - j); tot_literals += out_learnt.size(); // Find correct backtrack level: // if (out_learnt.size() == 1) out_btlevel = 0; else{ int max_i = 1; // Find the first literal assigned at the next-highest level: for (int i = 2; i < out_learnt.size(); i++) if (level(var(out_learnt[i])) > level(var(out_learnt[max_i]))) max_i = i; // Swap-in this literal at index 1: Lit p = out_learnt[max_i]; out_learnt[max_i] = out_learnt[1]; out_learnt[1] = p; out_btlevel = level(var(p)); } for (int j = 0; j < analyze_toclear.size(); j++) seen[var(analyze_toclear[j])] = 0; // ('seen[]' is now cleared) } // Check if 'p' can be removed. 'abstract_levels' is used to abort early if the algorithm is // visiting literals at levels that cannot be removed later. bool Solver::litRedundant(Lit p, uint32_t abstract_levels) { analyze_stack.clear(); analyze_stack.push(p); int top = analyze_toclear.size(); while (analyze_stack.size() > 0){ assert(reason(var(analyze_stack.last())) != CRef_Undef); Clause& c = ca[reason(var(analyze_stack.last()))]; analyze_stack.pop(); for (int i = 1; i < c.size(); i++){ Lit p = c[i]; if (!seen[var(p)] && level(var(p)) > 0){ if (reason(var(p)) != CRef_Undef && (abstractLevel(var(p)) & abstract_levels) != 0){ seen[var(p)] = 1; analyze_stack.push(p); analyze_toclear.push(p); }else{ for (int j = top; j < analyze_toclear.size(); j++) seen[var(analyze_toclear[j])] = 0; analyze_toclear.shrink(analyze_toclear.size() - top); return false; } } } } return true; } /*_________________________________________________________________________________________________ | | analyzeFinal : (p : Lit) -> [void] | | Description: | Specialized analysis procedure to express the final conflict in terms of assumptions. | Calculates the (possibly empty) set of assumptions that led to the assignment of 'p', and | stores the result in 'out_conflict'. |________________________________________________________________________________________________@*/ void Solver::analyzeFinal(Lit p, vec<Lit>& out_conflict) { out_conflict.clear(); out_conflict.push(p); if (decisionLevel() == 0) return; seen[var(p)] = 1; for (int i = trail.size()-1; i >= trail_lim[0]; i--){ Var x = var(trail[i]); if (seen[x]){ if (reason(x) == CRef_Undef){ assert(level(x) > 0); out_conflict.push(~trail[i]); }else{ Clause& c = ca[reason(x)]; for (int j = 1; j < c.size(); j++) if (level(var(c[j])) > 0) seen[var(c[j])] = 1; } seen[x] = 0; } } seen[var(p)] = 0; } void Solver::uncheckedEnqueue(Lit p, CRef from) { assert(value(p) == l_Undef); assigns[var(p)] = lbool(!sign(p)); vardata[var(p)] = mkVarData(from, decisionLevel()); trail.push_(p); } /*_________________________________________________________________________________________________ | | propagate : [void] -> [Clause*] | | Description: | Propagates all enqueued facts. If a conflict arises, the conflicting clause is returned, | otherwise CRef_Undef. | | Post-conditions: | * the propagation queue is empty, even if there was a conflict. |________________________________________________________________________________________________@*/ CRef Solver::propagate() { CRef confl = CRef_Undef; int num_props = 0; watches.cleanAll(); while (qhead < trail.size()){ Lit p = trail[qhead++]; // 'p' is enqueued fact to propagate. vec<Watcher>& ws = watches[p]; Watcher *i, *j, *end; num_props++; for (i = j = (Watcher*)ws, end = i + ws.size(); i != end;){ // Try to avoid inspecting the clause: Lit blocker = i->blocker; if (value(blocker) == l_True){ *j++ = *i++; continue; } // Make sure the false literal is data[1]: CRef cr = i->cref; Clause& c = ca[cr]; Lit false_lit = ~p; if (c[0] == false_lit) c[0] = c[1], c[1] = false_lit; assert(c[1] == false_lit); i++; // If 0th watch is true, then clause is already satisfied. Lit first = c[0]; Watcher w = Watcher(cr, first); if (first != blocker && value(first) == l_True){ *j++ = w; continue; } // Look for new watch: for (int k = 2; k < c.size(); k++) if (value(c[k]) != l_False){ c[1] = c[k]; c[k] = false_lit; watches[~c[1]].push(w); goto NextClause; } // Did not find watch -- clause is unit under assignment: *j++ = w; if (value(first) == l_False){ confl = cr; qhead = trail.size(); // Copy the remaining watches: while (i < end) *j++ = *i++; }else uncheckedEnqueue(first, cr); NextClause:; } ws.shrink(i - j); } propagations += num_props; simpDB_props -= num_props; return confl; } /*_________________________________________________________________________________________________ | | reduceDB : () -> [void] | | Description: | Remove half of the learnt clauses, minus the clauses locked by the current assignment. Locked | clauses are clauses that are reason to some assignment. Binary clauses are never removed. |________________________________________________________________________________________________@*/ struct reduceDB_lt { ClauseAllocator& ca; reduceDB_lt(ClauseAllocator& ca_) : ca(ca_) {} bool operator () (CRef x, CRef y) { return ca[x].size() > 2 && (ca[y].size() == 2 || ca[x].activity() < ca[y].activity()); } }; void Solver::reduceDB() { int i, j; double extra_lim = cla_inc / learnts.size(); // Remove any clause below this activity sort(learnts, reduceDB_lt(ca)); // Don't delete binary or locked clauses. From the rest, delete clauses from the first half // and clauses with activity smaller than 'extra_lim': for (i = j = 0; i < learnts.size(); i++){ Clause& c = ca[learnts[i]]; if (c.size() > 2 && !locked(c) && (i < learnts.size() / 2 || c.activity() < extra_lim)) removeClause(learnts[i]); else learnts[j++] = learnts[i]; } learnts.shrink(i - j); checkGarbage(); } void Solver::removeSatisfied(vec<CRef>& cs) { int i, j; for (i = j = 0; i < cs.size(); i++){ Clause& c = ca[cs[i]]; if (satisfied(c)) removeClause(cs[i]); else cs[j++] = cs[i]; } cs.shrink(i - j); } void Solver::rebuildOrderHeap() { vec<Var> vs; for (Var v = 0; v < nVars(); v++) if (decision[v] && value(v) == l_Undef) vs.push(v); order_heap.build(vs); } /*_________________________________________________________________________________________________ | | simplify : [void] -> [bool] | | Description: | Simplify the clause database according to the current top-level assigment. Currently, the only | thing done here is the removal of satisfied clauses, but more things can be put here. |________________________________________________________________________________________________@*/ bool Solver::simplify() { assert(decisionLevel() == 0); if (!ok || propagate() != CRef_Undef) return ok = false; if (nAssigns() == simpDB_assigns || (simpDB_props > 0)) return true; // Remove satisfied clauses: removeSatisfied(learnts); if (remove_satisfied) // Can be turned off. removeSatisfied(clauses); checkGarbage(); rebuildOrderHeap(); simpDB_assigns = nAssigns(); simpDB_props = clauses_literals + learnts_literals; // (shouldn't depend on stats really, but it will do for now) return true; } /*_________________________________________________________________________________________________ | | search : (nof_conflicts : int) (params : const SearchParams&) -> [lbool] | | Description: | Search for a model the specified number of conflicts. | NOTE! Use negative value for 'nof_conflicts' indicate infinity. | | Output: | 'l_True' if a partial assigment that is consistent with respect to the clauseset is found. If | all variables are decision variables, this means that the clause set is satisfiable. 'l_False' | if the clause set is unsatisfiable. 'l_Undef' if the bound on number of conflicts is reached. |________________________________________________________________________________________________@*/ lbool Solver::search(int nof_conflicts) { assert(ok); int backtrack_level; int conflictC = 0; vec<Lit> learnt_clause; starts++; for (;;){ CRef confl = propagate(); if (confl != CRef_Undef){ // CONFLICT conflicts++; conflictC++; if (decisionLevel() == 0) return l_False; learnt_clause.clear(); analyze(confl, learnt_clause, backtrack_level); cancelUntil(backtrack_level); if (learnt_clause.size() == 1){ uncheckedEnqueue(learnt_clause[0]); }else{ CRef cr = ca.alloc(learnt_clause, true); learnts.push(cr); attachClause(cr); claBumpActivity(ca[cr]); uncheckedEnqueue(learnt_clause[0], cr); } varDecayActivity(); claDecayActivity(); if (--learntsize_adjust_cnt == 0){ learntsize_adjust_confl *= learntsize_adjust_inc; learntsize_adjust_cnt = (int)learntsize_adjust_confl; max_learnts *= learntsize_inc; if (verbosity >= 1) printf("| %9d | %7d %8d %8d | %8d %8d %6.0f | %6.3f %% |\n", (int)conflicts, (int)dec_vars - (trail_lim.size() == 0 ? trail.size() : trail_lim[0]), nClauses(), (int)clauses_literals, (int)max_learnts, nLearnts(), (double)learnts_literals/nLearnts(), progressEstimate()*100); } }else{ // NO CONFLICT if (nof_conflicts >= 0 && conflictC >= nof_conflicts || !withinBudget()){ // Reached bound on number of conflicts: progress_estimate = progressEstimate(); cancelUntil(0); return l_Undef; } // Simplify the set of problem clauses: if (decisionLevel() == 0 && !simplify()) return l_False; if (learnts.size()-nAssigns() >= max_learnts) // Reduce the set of learnt clauses: reduceDB(); Lit next = lit_Undef; while (decisionLevel() < assumptions.size()){ // Perform user provided assumption: Lit p = assumptions[decisionLevel()]; if (value(p) == l_True){ // Dummy decision level: newDecisionLevel(); }else if (value(p) == l_False){ analyzeFinal(~p, conflict); return l_False; }else{ next = p; break; } } if (next == lit_Undef){ // New variable decision: decisions++; next = pickBranchLit(); if (next == lit_Undef) // Model found: return l_True; } // Increase decision level and enqueue 'next' newDecisionLevel(); uncheckedEnqueue(next); } } } double Solver::progressEstimate() const { double progress = 0; double F = 1.0 / nVars(); for (int i = 0; i <= decisionLevel(); i++){ int beg = i == 0 ? 0 : trail_lim[i - 1]; int end = i == decisionLevel() ? trail.size() : trail_lim[i]; progress += pow(F, i) * (end - beg); } return progress / nVars(); } /* Finite subsequences of the Luby-sequence: 0: 1 1: 1 1 2 2: 1 1 2 1 1 2 4 3: 1 1 2 1 1 2 4 1 1 2 1 1 2 4 8 ... */ static double luby(double y, int x){ // Find the finite subsequence that contains index 'x', and the // size of that subsequence: int size, seq; for (size = 1, seq = 0; size < x+1; seq++, size = 2*size+1); while (size-1 != x){ size = (size-1)>>1; seq--; x = x % size; } return pow(y, seq); } // NOTE: assumptions passed in member-variable 'assumptions'. lbool Solver::solve_() { model.clear(); conflict.clear(); if (!ok) return l_False; solves++; max_learnts = nClauses() * learntsize_factor; learntsize_adjust_confl = learntsize_adjust_start_confl; learntsize_adjust_cnt = (int)learntsize_adjust_confl; lbool status = l_Undef; if (verbosity >= 1){ printf("============================[ Search Statistics ]==============================\n"); printf("| Conflicts | ORIGINAL | LEARNT | Progress |\n"); printf("| | Vars Clauses Literals | Limit Clauses Lit/Cl | |\n"); printf("===============================================================================\n"); } // Search: int curr_restarts = 0; while (status == l_Undef){ double rest_base = luby_restart ? luby(restart_inc, curr_restarts) : pow(restart_inc, curr_restarts); status = search(rest_base * restart_first); if (!withinBudget()) break; curr_restarts++; } if (verbosity >= 1) printf("===============================================================================\n"); if (status == l_True){ // Extend & copy model: model.growTo(nVars()); for (int i = 0; i < nVars(); i++) model[i] = value(i); }else if (status == l_False && conflict.size() == 0) ok = false; cancelUntil(0); return status; } //================================================================================================= // Writing CNF to DIMACS: // // FIXME: this needs to be rewritten completely. static Var mapVar(Var x, vec<Var>& map, Var& max) { if (map.size() <= x || map[x] == -1){ map.growTo(x+1, -1); map[x] = max++; } return map[x]; } void Solver::toDimacs(FILE* f, Clause& c, vec<Var>& map, Var& max) { if (satisfied(c)) return; for (int i = 0; i < c.size(); i++) if (value(c[i]) != l_False) fprintf(f, "%s%d ", sign(c[i]) ? "-" : "", mapVar(var(c[i]), map, max)+1); fprintf(f, "0\n"); } void Solver::toDimacs(const char *file, const vec<Lit>& assumps) { FILE* f = fopen(file, "wr"); if (f == NULL) fprintf(stderr, "could not open file %s\n", file), exit(1); toDimacs(f, assumps); fclose(f); } void Solver::toDimacs(FILE* f, const vec<Lit>& assumps) { // Handle case when solver is in contradictory state: if (!ok){ fprintf(f, "p cnf 1 2\n1 0\n-1 0\n"); return; } vec<Var> map; Var max = 0; // Cannot use removeClauses here because it is not safe // to deallocate them at this point. Could be improved. int cnt = 0; for (int i = 0; i < clauses.size(); i++) if (!satisfied(ca[clauses[i]])) cnt++; for (int i = 0; i < clauses.size(); i++) if (!satisfied(ca[clauses[i]])){ Clause& c = ca[clauses[i]]; for (int j = 0; j < c.size(); j++) if (value(c[j]) != l_False) mapVar(var(c[j]), map, max); } // Assumptions are added as unit clauses: cnt += assumptions.size(); fprintf(f, "p cnf %d %d\n", max, cnt); for (int i = 0; i < assumptions.size(); i++){ assert(value(assumptions[i]) != l_False); fprintf(f, "%s%d 0\n", sign(assumptions[i]) ? "-" : "", mapVar(var(assumptions[i]), map, max)+1); } for (int i = 0; i < clauses.size(); i++) toDimacs(f, ca[clauses[i]], map, max); if (verbosity > 0) printf("Wrote %d clauses with %d variables.\n", cnt, max); } //================================================================================================= // Garbage Collection methods: void Solver::relocAll(ClauseAllocator& to) { // All watchers: // // for (int i = 0; i < watches.size(); i++) watches.cleanAll(); for (int v = 0; v < nVars(); v++) for (int s = 0; s < 2; s++){ Lit p = mkLit(v, s); // printf(" >>> RELOCING: %s%d\n", sign(p)?"-":"", var(p)+1); vec<Watcher>& ws = watches[p]; for (int j = 0; j < ws.size(); j++) ca.reloc(ws[j].cref, to); } // All reasons: // for (int i = 0; i < trail.size(); i++){ Var v = var(trail[i]); if (reason(v) != CRef_Undef && (ca[reason(v)].reloced() || locked(ca[reason(v)]))) ca.reloc(vardata[v].reason, to); } // All learnt: // for (int i = 0; i < learnts.size(); i++) ca.reloc(learnts[i], to); // All original: // for (int i = 0; i < clauses.size(); i++) ca.reloc(clauses[i], to); } void Solver::garbageCollect() { // Initialize the next region to a size corresponding to the estimated utilization degree. This // is not precise but should avoid some unnecessary reallocations for the new region: ClauseAllocator to(ca.size() - ca.wasted()); relocAll(to); if (verbosity >= 2) printf("| Garbage collection: %12d bytes => %12d bytes |\n", ca.size()*ClauseAllocator::Unit_Size, to.size()*ClauseAllocator::Unit_Size); to.moveTo(ca); }
[ "ruhler@csail.mit.edu" ]
ruhler@csail.mit.edu
3dd016d773eaa4920444467e9278be7bcfcd169f
877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a
/app/src/main/cpp/dir35201/file35211.cpp
4edfcff00dbaeb7e5fbac67a2dd62dc1e900705f
[]
no_license
tgeng/HugeProject
829c3bdfb7cbaf57727c41263212d4a67e3eb93d
4488d3b765e8827636ce5e878baacdf388710ef2
refs/heads/master
2022-08-21T16:58:54.161627
2020-05-28T01:54:03
2020-05-28T01:54:03
267,468,475
0
0
null
null
null
null
UTF-8
C++
false
false
115
cpp
#ifndef file35211 #error "macro file35211 must be defined" #endif static const char* file35211String = "file35211";
[ "tgeng@google.com" ]
tgeng@google.com
d5b944ef6c7eadce5502b14a86e52bfb17a8eb8f
a7764174fb0351ea666faa9f3b5dfe304390a011
/drv/StepGeom/StepGeom_HArray2OfSurfacePatch_0.cxx
dedc8628179b21f2a7e9ff2ee859e08b23fadcca
[]
no_license
uel-dataexchange/Opencascade_uel
f7123943e9d8124f4fa67579e3cd3f85cfe52d91
06ec93d238d3e3ea2881ff44ba8c21cf870435cd
refs/heads/master
2022-11-16T07:40:30.837854
2020-07-08T01:56:37
2020-07-08T01:56:37
276,290,778
0
0
null
null
null
null
UTF-8
C++
false
false
1,836
cxx
// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #include <StepGeom_HArray2OfSurfacePatch.hxx> #ifndef _Standard_Type_HeaderFile #include <Standard_Type.hxx> #endif #ifndef _Standard_RangeError_HeaderFile #include <Standard_RangeError.hxx> #endif #ifndef _Standard_OutOfRange_HeaderFile #include <Standard_OutOfRange.hxx> #endif #ifndef _Standard_OutOfMemory_HeaderFile #include <Standard_OutOfMemory.hxx> #endif #ifndef _Standard_DimensionMismatch_HeaderFile #include <Standard_DimensionMismatch.hxx> #endif #ifndef _StepGeom_SurfacePatch_HeaderFile #include <StepGeom_SurfacePatch.hxx> #endif #ifndef _StepGeom_Array2OfSurfacePatch_HeaderFile #include <StepGeom_Array2OfSurfacePatch.hxx> #endif IMPLEMENT_STANDARD_TYPE(StepGeom_HArray2OfSurfacePatch) IMPLEMENT_STANDARD_SUPERTYPE_ARRAY() STANDARD_TYPE(MMgt_TShared), STANDARD_TYPE(Standard_Transient), IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END() IMPLEMENT_STANDARD_TYPE_END(StepGeom_HArray2OfSurfacePatch) IMPLEMENT_DOWNCAST(StepGeom_HArray2OfSurfacePatch,Standard_Transient) IMPLEMENT_STANDARD_RTTI(StepGeom_HArray2OfSurfacePatch) #define ItemHArray2 Handle_StepGeom_SurfacePatch #define ItemHArray2_hxx <StepGeom_SurfacePatch.hxx> #define TheArray2 StepGeom_Array2OfSurfacePatch #define TheArray2_hxx <StepGeom_Array2OfSurfacePatch.hxx> #define TCollection_HArray2 StepGeom_HArray2OfSurfacePatch #define TCollection_HArray2_hxx <StepGeom_HArray2OfSurfacePatch.hxx> #define Handle_TCollection_HArray2 Handle_StepGeom_HArray2OfSurfacePatch #define TCollection_HArray2_Type_() StepGeom_HArray2OfSurfacePatch_Type_() #include <TCollection_HArray2.gxx>
[ "shoka.sho2@excel.co.jp" ]
shoka.sho2@excel.co.jp
ec87915e7e93bd1369f2c6e35f1da5c3aceb0ff3
7b6313d1c4e0e8a5bf34fc8ac163ad446bc69354
/bitmanipulation/sumVsxor[hackerrank].cpp
e75cc8547a500969e78167b389674ce9e9d4e850
[]
no_license
menuka-maharjan/competitive_programming
c6032ae3ddcbc974e0e62744989a2aefa30864b2
22d0cea0f96d8bd6dc4d81b146ba20ea627022dd
refs/heads/master
2023-05-01T05:23:09.641733
2021-05-23T16:22:21
2021-05-23T16:22:21
332,250,476
0
0
null
null
null
null
UTF-8
C++
false
false
535
cpp
#include <bits/stdc++.h> using namespace std; int findmsbfirst1(long long int n) { long long int f=1; for(int i=55;i>=0;i--) { if((n &(f<<i))) { return i; } } return 0; } int main() { long long int n; long long int res=1; cin>>n; int msb=findmsbfirst1(n); int count=0; for(int i=0;i<msb;i++) { long long int f =1; if((n & (f<<i))==0){ count++; } } long long int f=1; cout<<(f<<count); }
[ "maharjanmenuka8@gmail.com" ]
maharjanmenuka8@gmail.com
99008926fcc60bb04a72c55f318ce6aafaca89f9
05358543c2a6be61b4f6072a262dfb75b480ae83
/Project/build-Database_shcedule-Desktop-Debug/ui_main_menu.h
59d25a315465bdd0a48d341f768f953059ecbc74
[]
no_license
paknikolay/DBProject
cb8ec400254327e1eeca0bec65d3c7a6714fd368
08f3962c6f52e985ab3f620e60214459ecb1bb56
refs/heads/master
2021-01-19T09:05:38.411569
2018-04-10T20:16:35
2018-04-10T20:16:35
87,723,092
0
1
null
2017-04-22T15:12:24
2017-04-09T16:37:46
C++
UTF-8
C++
false
false
2,097
h
/******************************************************************************** ** Form generated from reading UI file 'main_menu.ui' ** ** Created by: Qt User Interface Compiler version 5.6.1 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ********************************************************************************/ #ifndef UI_MAIN_MENU_H #define UI_MAIN_MENU_H #include <QtCore/QVariant> #include <QtWidgets/QAction> #include <QtWidgets/QApplication> #include <QtWidgets/QButtonGroup> #include <QtWidgets/QHeaderView> #include <QtWidgets/QMainWindow> #include <QtWidgets/QMenuBar> #include <QtWidgets/QStatusBar> #include <QtWidgets/QToolBar> #include <QtWidgets/QWidget> QT_BEGIN_NAMESPACE class Ui_Main_menu { public: QMenuBar *menuBar; QToolBar *mainToolBar; QWidget *centralWidget; QStatusBar *statusBar; void setupUi(QMainWindow *Main_menu) { if (Main_menu->objectName().isEmpty()) Main_menu->setObjectName(QStringLiteral("Main_menu")); Main_menu->resize(400, 300); menuBar = new QMenuBar(Main_menu); menuBar->setObjectName(QStringLiteral("menuBar")); Main_menu->setMenuBar(menuBar); mainToolBar = new QToolBar(Main_menu); mainToolBar->setObjectName(QStringLiteral("mainToolBar")); Main_menu->addToolBar(mainToolBar); centralWidget = new QWidget(Main_menu); centralWidget->setObjectName(QStringLiteral("centralWidget")); Main_menu->setCentralWidget(centralWidget); statusBar = new QStatusBar(Main_menu); statusBar->setObjectName(QStringLiteral("statusBar")); Main_menu->setStatusBar(statusBar); retranslateUi(Main_menu); QMetaObject::connectSlotsByName(Main_menu); } // setupUi void retranslateUi(QMainWindow *Main_menu) { Main_menu->setWindowTitle(QApplication::translate("Main_menu", "Main_menu", 0)); } // retranslateUi }; namespace Ui { class Main_menu: public Ui_Main_menu {}; } // namespace Ui QT_END_NAMESPACE #endif // UI_MAIN_MENU_H
[ "noreply@github.com" ]
noreply@github.com
cadf331d18c2629f979dd1eb22867d1bfdda64ea
6b265b404d74b09e1b1e3710e8ea872cd50f4263
/CPlusPlus/Basics/talk.cpp
4250835e2dc659834b5d91fba0a0800d3e3dcd2b
[ "CC-BY-4.0" ]
permissive
gjbex/training-material
cdc189469ae2c7d43784ecdcb4bcca10ecbc21ae
e748466a2af9f3388a8b0ed091aa061dbfc752d6
refs/heads/master
2023-08-17T11:02:27.322865
2023-04-27T14:42:55
2023-04-27T14:42:55
18,587,808
130
60
CC-BY-4.0
2023-08-03T07:07:25
2014-04-09T06:35:58
Jupyter Notebook
UTF-8
C++
false
false
484
cpp
#include <iostream> int main() { const std::string question {"Who are you?"}; const std::string greeting {"Hi "}; const std::string bye {"Bye!"}; std::string name; std::cout << "Type 'quit' or press Ctrl-d to exit" << std::endl; std::cout << question << std::endl; while (std::cin >> name) { if (name == "quit") break; std::cout << greeting << name << "!" << std::endl; } std::cout << bye << std::endl; return 0; }
[ "geertjan.bex@uhasselt.be" ]
geertjan.bex@uhasselt.be
2f4deacede6ad95fd284f31668d75023d6bd88bb
61fcc3fc81cb5ab59f8e857f0ecab472917f04b1
/test/yosupo/determinantofmatrix.test.cpp
660b575f8f116cd6d28b8da37ac7d5aed01a914c
[]
no_license
morioprog/cpplib
4a4e6b9c0eb5dd3d8306041580e4c6c76b65d11e
71697ee35e8da1c7ae706e323304c170ad1851d6
refs/heads/master
2023-01-30T22:31:01.629203
2020-12-12T15:14:07
2020-12-12T15:14:07
257,325,284
0
0
null
2020-10-27T10:20:23
2020-04-20T15:33:06
C++
UTF-8
C++
false
false
335
cpp
#define PROBLEM "https://judge.yosupo.jp/problem/matrix_det" #include "../../template/main.hpp" #include "../../math/modint.hpp" #include "../../math/matrix/matrix.hpp" using mint = ModInt<998244353>; signed main() { int N; cin >> N; Matrix<mint> mat(N); cin >> mat; cout << mat.determinant() << endl; }
[ "morio.prog@gmail.com" ]
morio.prog@gmail.com
4b5ec43d35bf66b02f95fcf34741d9d00c677a25
83788a17bcfbee006989566c8b2349a4d309cb96
/models/Base.hpp
8a4da8c9df8ce15172d47a0617ceb13e7256f85a
[ "MIT" ]
permissive
AvaN0x/IUT-UMLDesigner
48dbefd395778bf790186ed1eec9f24386995bdd
aa03d0b7406bcb6c06dc24ba2f853393de3b3233
refs/heads/main
2023-03-21T23:00:10.256073
2021-03-15T09:52:31
2021-03-15T09:52:31
345,593,466
3
0
null
null
null
null
UTF-8
C++
false
false
479
hpp
#ifndef DEF_IUT_CPP_BASE_HPP #define DEF_IUT_CPP_BASE_HPP #include <ostream> namespace iut_cpp { class Wrapper; class Base { public: virtual const Wrapper &toJava() const = 0; }; class Wrapper { friend std::ostream &operator<<(std::ostream &stream, Wrapper const &w); protected: virtual void print(std::ostream &stream) const = 0; }; std::ostream &operator<<(std::ostream &stream, Wrapper const &w); } #endif
[ "clement.ricatte57@gmail.com" ]
clement.ricatte57@gmail.com
325156a7f8e37cce9fa966c947037865d63a54b6
ddf02cc63c553d5ab4ae4fd3fcfe2b6b393bc2f3
/Proyecto/md5.cpp
f0b2c855620d5b4bafb333b9a382f8cf835b31a7
[]
no_license
mikedm195/Multinucleo
bc921dc2e50776a3a476e744020504f47a4290fd
f37acafc36229a29a057af6623d009d0a365398e
refs/heads/master
2020-12-01T16:36:41.055690
2016-11-01T00:26:22
2016-11-01T00:26:22
66,650,778
0
0
null
null
null
null
UTF-8
C++
false
false
9,350
cpp
#include "md5.h" #include <cstdio> // Constantes para las transformaciones #define S11 7 #define S12 12 #define S13 17 #define S14 22 #define S21 5 #define S22 9 #define S23 14 #define S24 20 #define S31 4 #define S32 11 #define S33 16 #define S34 23 #define S41 6 #define S42 10 #define S43 15 #define S44 21 /////////////////////////////////////////////// // Funcón básica de MD5, F inline MD5::uint4 MD5::F(uint4 x, uint4 y, uint4 z) { return x&y | ~x&z; } // Funcón básica de MD5, G inline MD5::uint4 MD5::G(uint4 x, uint4 y, uint4 z) { return x&z | y&~z; } // Funcón básica de MD5, H inline MD5::uint4 MD5::H(uint4 x, uint4 y, uint4 z) { return x^y^z; } // Funcón básica de MD5, I inline MD5::uint4 MD5::I(uint4 x, uint4 y, uint4 z) { return y ^ (x | ~z); } // rotación a la izquierda de n bits inline MD5::uint4 MD5::rotate_left(uint4 x, int n) { return (x << n) | (x >> (32-n)); } // Funciones para los rounds 1 a 4 // Función FF inline void MD5::FF(uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) { a = rotate_left(a+ F(b,c,d) + x + ac, s) + b; } //función GG inline void MD5::GG(uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) { a = rotate_left(a + G(b,c,d) + x + ac, s) + b; } //Función HH inline void MD5::HH(uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) { a = rotate_left(a + H(b,c,d) + x + ac, s) + b; } // Funcion II inline void MD5::II(uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) { a = rotate_left(a + I(b,c,d) + x + ac, s) + b; } ////////////////////////////////////////////// // Constructor de default MD5::MD5() { // inicializar init(); } ////////////////////////////////////////////// // Constructor con un parámatero MD5::MD5(const std::string &text) { // inicializar init(); // Cambiar el texto y su longitud de acuerdo a los parametros del constructor update(text.c_str(), text.length()); // Finalizar finalize(); } ////////////////////////////// // Función de inicialización void MD5::init() { finalized=false; count[0] = 0; count[1] = 0; // Constantes mágicas de MD5 state[0] = 0x67452301; state[1] = 0xefcdab89; state[2] = 0x98badcfe; state[3] = 0x10325476; } ////////////////////////////// // Cambiar formato de la entrada, se aasume que la longitud es multiplo de 4 void MD5::decode(uint4 output[], const uint1 input[], size_type len) { for (unsigned int i = 0, j = 0; j < len; i++, j += 4) output[i] = ((uint4)input[j]) | (((uint4)input[j+1]) << 8) | (((uint4)input[j+2]) << 16) | (((uint4)input[j+3]) << 24); } ////////////////////////////// // Cambiar formato de salida, se asume que la longitud es multiplo de 4 void MD5::encode(uint1 output[], const uint4 input[], size_type len) { for (size_type i = 0, j = 0; j < len; i++, j += 4) { output[j] = input[i] & 0xff; output[j+1] = (input[i] >> 8) & 0xff; output[j+2] = (input[i] >> 16) & 0xff; output[j+3] = (input[i] >> 24) & 0xff; } } ////////////////////////////// // Algoritmo MD5 para mun bloque void MD5::transform(const uint1 block[blocksize]) { //inicializar las unidades iniciales. uint4 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; decode (x, block, blocksize); /* Round 1 */ FF (a, b, c, d, x[ 0], S11, 0xd76aa478); /* 1 */ FF (d, a, b, c, x[ 1], S12, 0xe8c7b756); /* 2 */ FF (c, d, a, b, x[ 2], S13, 0x242070db); /* 3 */ FF (b, c, d, a, x[ 3], S14, 0xc1bdceee); /* 4 */ FF (a, b, c, d, x[ 4], S11, 0xf57c0faf); /* 5 */ FF (d, a, b, c, x[ 5], S12, 0x4787c62a); /* 6 */ FF (c, d, a, b, x[ 6], S13, 0xa8304613); /* 7 */ FF (b, c, d, a, x[ 7], S14, 0xfd469501); /* 8 */ FF (a, b, c, d, x[ 8], S11, 0x698098d8); /* 9 */ FF (d, a, b, c, x[ 9], S12, 0x8b44f7af); /* 10 */ FF (c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */ FF (b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */ FF (a, b, c, d, x[12], S11, 0x6b901122); /* 13 */ FF (d, a, b, c, x[13], S12, 0xfd987193); /* 14 */ FF (c, d, a, b, x[14], S13, 0xa679438e); /* 15 */ FF (b, c, d, a, x[15], S14, 0x49b40821); /* 16 */ /* Round 2 */ GG (a, b, c, d, x[ 1], S21, 0xf61e2562); /* 17 */ GG (d, a, b, c, x[ 6], S22, 0xc040b340); /* 18 */ GG (c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */ GG (b, c, d, a, x[ 0], S24, 0xe9b6c7aa); /* 20 */ GG (a, b, c, d, x[ 5], S21, 0xd62f105d); /* 21 */ GG (d, a, b, c, x[10], S22, 0x2441453); /* 22 */ GG (c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */ GG (b, c, d, a, x[ 4], S24, 0xe7d3fbc8); /* 24 */ GG (a, b, c, d, x[ 9], S21, 0x21e1cde6); /* 25 */ GG (d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */ GG (c, d, a, b, x[ 3], S23, 0xf4d50d87); /* 27 */ GG (b, c, d, a, x[ 8], S24, 0x455a14ed); /* 28 */ GG (a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */ GG (d, a, b, c, x[ 2], S22, 0xfcefa3f8); /* 30 */ GG (c, d, a, b, x[ 7], S23, 0x676f02d9); /* 31 */ GG (b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */ /* Round 3 */ HH (a, b, c, d, x[ 5], S31, 0xfffa3942); /* 33 */ HH (d, a, b, c, x[ 8], S32, 0x8771f681); /* 34 */ HH (c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */ HH (b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */ HH (a, b, c, d, x[ 1], S31, 0xa4beea44); /* 37 */ HH (d, a, b, c, x[ 4], S32, 0x4bdecfa9); /* 38 */ HH (c, d, a, b, x[ 7], S33, 0xf6bb4b60); /* 39 */ HH (b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */ HH (a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */ HH (d, a, b, c, x[ 0], S32, 0xeaa127fa); /* 42 */ HH (c, d, a, b, x[ 3], S33, 0xd4ef3085); /* 43 */ HH (b, c, d, a, x[ 6], S34, 0x4881d05); /* 44 */ HH (a, b, c, d, x[ 9], S31, 0xd9d4d039); /* 45 */ HH (d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */ HH (c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */ HH (b, c, d, a, x[ 2], S34, 0xc4ac5665); /* 48 */ /* Round 4 */ II (a, b, c, d, x[ 0], S41, 0xf4292244); /* 49 */ II (d, a, b, c, x[ 7], S42, 0x432aff97); /* 50 */ II (c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */ II (b, c, d, a, x[ 5], S44, 0xfc93a039); /* 52 */ II (a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */ II (d, a, b, c, x[ 3], S42, 0x8f0ccc92); /* 54 */ II (c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */ II (b, c, d, a, x[ 1], S44, 0x85845dd1); /* 56 */ II (a, b, c, d, x[ 8], S41, 0x6fa87e4f); /* 57 */ II (d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */ II (c, d, a, b, x[ 6], S43, 0xa3014314); /* 59 */ II (b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */ II (a, b, c, d, x[ 4], S41, 0xf7537e82); /* 61 */ II (d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */ II (c, d, a, b, x[ 2], S43, 0x2ad7d2bb); /* 63 */ II (b, c, d, a, x[ 9], S44, 0xeb86d391); /* 64 */ // Actualizar variables de inicio del siguiente bloque state[0] += a; state[1] += b; state[2] += c; state[3] += d; // borrar x memset(x, 0, sizeof x); } ////////////////////////////// // Función para poder aplicar MD5 a un String predefinido, Se tiene que completar la variable con bloques para que la longitud concuerde con las especificaciones void MD5::update(const unsigned char input[], size_type length) { size_type index = count[0] / 8 % blocksize; if ((count[0] += (length << 3)) < (length << 3)) count[1]++; count[1] += (length >> 29); size_type firstpart = 64 - index; size_type i; if (length >= firstpart) { memcpy(&buffer[index], input, firstpart); transform(buffer); for (i = firstpart; i + blocksize <= length; i += blocksize) transform(&input[i]); index = 0; } else i = 0; memcpy(&buffer[index], &input[i], length-i); } void MD5::update(const char input[], size_type length) { update((const unsigned char*)input, length); } // Finalizar el digest MD5 y regresa la memoria a 0s MD5& MD5::finalize() { static unsigned char padding[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; if (!finalized) { unsigned char bits[8]; encode(bits, count, 8); size_type index = count[0] / 8 % 64; size_type padLen = (index < 56) ? (56 - index) : (120 - index); update(padding, padLen); update(bits, 8); encode(digest, state, 16); memset(buffer, 0, sizeof buffer); memset(count, 0, sizeof count); finalized=true; } return *this; } ////////////////////////////// // Regresar el digest hexadecimal en String std::string MD5::hexdigest() const { if (!finalized) return ""; char buf[33]; for (int i=0; i<16; i++) sprintf(buf+i*2, "%02x", digest[i]); buf[32]=0; return std::string(buf); } ////////////////////////////// // Sobrecarga de operador << std::ostream& operator<<(std::ostream& out, MD5 md5) { return out << md5.hexdigest(); } ////////////////////////////// // Función de encriptación que manda llamar al constructor std::string md5(const std::string str) { MD5 md5 = MD5(str); return md5.hexdigest(); }
[ "mikedm195@gmail.com" ]
mikedm195@gmail.com
92688fe8c77b1160daa517399cef8a904a82e87c
a09400aa22a27c7859030ec470b5ddee93e0fdf0
/stalkerengine/include/engine/editor_environment_suns_gradient.hpp
0201893eca1a0178ed9b5b2c4b677d24d78e5e4f
[]
no_license
BearIvan/Stalker
4f1af7a9d6fc5ed1597ff13bd4a34382e7fdaab1
c0008c5103049ce356793b37a9d5890a996eed23
refs/heads/master
2022-04-04T02:07:11.747666
2020-02-16T10:51:57
2020-02-16T10:51:57
160,668,112
1
1
null
null
null
null
UTF-8
C++
false
false
1,309
hpp
//////////////////////////////////////////////////////////////////////////// // Module : editor_environment_suns_gradient.hpp // Created : 26.01.2008 // Modified : 26.01.2008 // Author : Dmitriy Iassenev // Description : editor environment suns gradient class //////////////////////////////////////////////////////////////////////////// #ifndef EDITOR_WEATHER_SUNS_GRADIENT_HPP_INCLUDED #define EDITOR_WEATHER_SUNS_GRADIENT_HPP_INCLUDED #ifdef INGAME_EDITOR #include <boost/noncopyable.hpp> namespace editor { class property_holder; class property_holder_collection; namespace environment { namespace suns { class manager; class gradient : private boost::noncopyable { public: gradient(); void load(CInifile& config, shared_str const& section); void save(CInifile& config, shared_str const& section); void fill(manager const& manager, editor::property_holder* holder, editor::property_holder_collection* collection); private: bool use_getter(); void use_setter(bool value); private: bool m_use; float m_opacity; float m_radius; shared_str m_shader; shared_str m_texture; }; // class gradient } // namespace suns } // namespace environment } // namespace editor #endif // #ifdef INGAME_EDITOR #endif // ifndef EDITOR_WEATHER_SUNS_GRADIENT_HPP_INCLUDED
[ "i-sobolevskiy@mail.ru" ]
i-sobolevskiy@mail.ru
4ab8e9a25ac06236697a861966590a8665329317
fffce11a0148fa831c4a8567e1075a3da6b8032c
/src/controller.cpp
650ba743569bee56c20ab457fe2e391b4807c4f9
[]
no_license
KunalGhosh02/snake-game-sdl
f0f14cf72b47d25e176c4ddecad4f426233badd8
c29973e3e9280deb6098fe063521bd8d7482c7a5
refs/heads/master
2022-09-12T14:53:02.422362
2020-06-04T05:30:39
2020-06-04T05:30:39
269,004,902
2
0
null
null
null
null
UTF-8
C++
false
false
1,429
cpp
#include "controller.h" #include <iostream> #include "snake.h" #ifdef __WIN32__ #include "SDL.h" #elif __linux__ #include <SDL2/SDL.h> #endif void Controller::ChangeDirection(Snake &snake, Snake::Direction input, Snake::Direction opposite) const { if (snake.direction != opposite || snake.size == 1) snake.direction = input; return; } void Controller::HandleInput(bool &running, Snake &snake) const { SDL_Event e; while (SDL_PollEvent(&e)) { if (e.type == SDL_QUIT) { running = false; } else if (e.type == SDL_KEYDOWN) { switch (e.key.keysym.sym) { case SDLK_UP: ChangeDirection(snake, Snake::Direction::kUp, Snake::Direction::kDown); break; case SDLK_DOWN: ChangeDirection(snake, Snake::Direction::kDown, Snake::Direction::kUp); break; case SDLK_LEFT: ChangeDirection(snake, Snake::Direction::kLeft, Snake::Direction::kRight); break; case SDLK_RIGHT: ChangeDirection(snake, Snake::Direction::kRight, Snake::Direction::kLeft); break; } } } }
[ "kunalghosh.res@gmail.com" ]
kunalghosh.res@gmail.com
7fbd24532b133ce038fc6877ebd642e298144edf
06e8d9cda482a7d23672658dbcf7e7d7ab264bc7
/include/RavEngine/ScriptComponent.hpp
c59dbdac76291ae283a1d0d4e0197dedc98e95c4
[ "Apache-2.0" ]
permissive
futureCoder/RavEngine
516b81ea2bcb9636862eb99214728c4da5a33d9d
8a831cc565a3893ed87d9661221bf5d27299881a
refs/heads/master
2023-05-31T01:03:50.136607
2021-06-16T20:29:50
2021-06-16T20:29:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,964
hpp
#pragma once #include "Component.hpp" #include "Transform.hpp" #include "Queryable.hpp" namespace RavEngine { class World; /** Define an Entity-side Script which can contain code. Subclass to add behavior. Be sure to invoke the base class constructor! */ class ScriptComponent : public Component, public Queryable<ScriptComponent> { public: /** Override to provide cleanup behavior. */ virtual ~ScriptComponent() {} /** Invoked when the owning entity of this script has been added to the world. */ virtual void Start() {}; /** Called by the world when the owning entity has been despawned, but before despawn work has begun. It may not be deallocated immediately after depending on reference counts. However it is best to stop or destroy anything possible. */ virtual void Stop() {} /** Invoked as the last step of the systems execution on a background thread. Any cross-object access must be appropriately protected. @param fpsScale the frame rate scalar for this frame. */ virtual void Tick(float fpsScale) = 0; /** Mark the current entity for destruction. It will be destroyed after the current frame. @return true if the entity was successfully marked for destruction, false otherwise */ bool Destroy(); /** Check if the owning Entity has been spawned @return true if the entity is in the world, false otherwise */ bool IsInWorld(); /** @return true if the current ScriptComponent is attached to an Entity, false otherwise. */ inline bool IsAttached() { return !getOwner().expired(); } /** Shortcut to get the transform component of the attached entity @throws if the script is not attached to any entity. */ Ref<Transform> transform(); /** Get the current world for the attached entity */ Ref<World> GetWorld(); inline Ref<Entity> GetEntity(){ return getOwner().lock(); } }; }
[ "ravbuganimations@gmail.com" ]
ravbuganimations@gmail.com
0630d0d48c034078eb1fe3b96391e5bcf337c613
3d1cd6e91cbb94b598bc5c8edea824fc56de54b9
/RasterEdge.cpp
fe7e3d2e3d4e97ab844c180f09bef45ccd5d77ac
[]
no_license
jipe/sdl_breakout
f69dbe4e82b6002509461487d9a0b33f9fbbe34f
2c7969e6057d3862f01854de9127b484aba9a1c2
refs/heads/master
2021-01-02T18:42:01.070889
2020-04-07T14:40:38
2020-04-07T14:40:38
239,747,876
0
1
null
2020-04-07T13:31:14
2020-02-11T11:40:58
C++
UTF-8
C++
false
false
936
cpp
#include "RasterEdge.h" #include "RasterPoint.h" #include "vector.h" #include "math.h" #include <cmath> RasterEdge::RasterEdge(const RasterPoint& p1, const RasterPoint& p2) : y(p1.y), y_max(p2.y), dx(p2.x - p1.x), dy(p2.y - p1.y), floor_dx_dy(static_cast<int>(floor(static_cast<float>(dx) / static_cast<float>(dy)))), f(0), df(dy * floor_dx_dy - dx), x(p1.x), interpolation_factor(1.0f / static_cast<float>(abs(dy))), color(p1.color), normal(p1.normal), texture_coord(p1.texture_coord), d_color(interpolation_factor * (p2.color - p1.color)), d_normal(interpolation_factor * (p2.normal - p1.normal)), d_texture_coord(interpolation_factor * (p2.texture_coord - p1.texture_coord)) { } void RasterEdge::nextLine() { y++; x += floor_dx_dy; f += df; if (f < 0) { f += dy; x++; } color += d_color; normal += d_normal; texture_coord += d_texture_coord; }
[ "jimmy.petersen@defiant.dk" ]
jimmy.petersen@defiant.dk
de91292af87f3bf81579f0132335560b32ed1f31
477f08db8422865fb27777808f4f71d470d543b7
/framework/services/Heartbeat.cpp
e725a739bca1e02cf88e1483172c47bae3dcd59b
[]
no_license
raumzeitlabor/esper
ad341bd6bae2ed7acaa52690358a3e0814aa569c
099341c4880ee9fddc1b273f368c71bd236cd766
refs/heads/develop
2021-01-18T16:56:57.806389
2017-08-12T23:04:45
2017-08-12T23:04:45
100,477,223
0
1
null
2017-08-16T10:22:34
2017-08-16T10:22:34
null
UTF-8
C++
false
false
1,083
cpp
#include "Heartbeat.h" #include "../Device.h" const char HEARTBEAT_NAME[] = "heartbeat"; Heartbeat::Heartbeat(Device* const device) : Service(device) { // Receive heartbeat messages this->device->registerSubscription(HEARTBEAT_TOPIC, Device::MessageCallback(&Heartbeat::onMessageReceived, this)); // Reboot the system if heartbeat was missing this->timer.initializeMs(120000, TimerDelegate(&Device::reboot, device)); } Heartbeat::~Heartbeat() { } void Heartbeat::onStateChanged(const State& state) { switch (state) { case State::CONNECTED: { LOG.log("Start awaiting heartbeats"); this->timer.start(); break; } case State::DISCONNECTED: { // Heartbeats are likely to miss if disconnected LOG.log("Stop awaiting heartbeats"); this->timer.stop(); break; } } } void Heartbeat::onMessageReceived(const String& topic, const String& message) { // Handle incoming heartbeat LOG.log("Heartbeat"); this->timer.restart(); }
[ "fooker@lab.sh" ]
fooker@lab.sh