| /commonlibrary/c_utils/base/include/ |
| D | sorted_vector.h | 30 template <class TYPE, bool AllowDuplicate = true> 33 using value_type = TYPE; 35 using iterator = typename std::vector<TYPE>::iterator; 36 using const_iterator = typename std::vector<TYPE>::const_iterator; 43 SortedVector(const SortedVector<TYPE, false>& rhs); 45 SortedVector(const SortedVector<TYPE, true>& rhs); 47 SortedVector(const std::vector<TYPE>& orivect); 58 * @param TYPE Indicates the type of items. 61 SortedVector<TYPE, AllowDuplicate>& operator=(const SortedVector<TYPE, false>& rhs); 62 SortedVector<TYPE, AllowDuplicate>& operator=(const SortedVector<TYPE, true>& rhs); [all …]
|
| /commonlibrary/ets_utils/js_util_module/util/test/ |
| D | test_uuid.cpp | 28 * @tc.type: FUNC 36 napi_typedarray_type type = napi_int8_array; variable 41 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset); 47 * @tc.type: FUNC 55 napi_typedarray_type type = napi_int8_array; variable 60 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset); 66 * @tc.type: FUNC 74 napi_typedarray_type type = napi_int8_array; variable 79 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset); 85 * @tc.type: FUNC [all …]
|
| D | test_util.cpp | 36 #define ASSERT_CHECK_VALUE_TYPE(env, value, type) \ argument 41 ASSERT_EQ(valueType, type); \ 46 * @tc.type: FUNC 57 * @tc.type: FUNC 68 * @tc.type: FUNC 74 napi_typedarray_type type = napi_int8_array; variable 79 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset); 85 * @tc.type: FUNC 91 napi_typedarray_type type = napi_int8_array; variable 96 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset); [all …]
|
| /commonlibrary/ets_utils/js_util_module/util/ |
| D | js_types.h | 46 * Check whether the entered value is of arraybuffer type. 54 * Check whether the entered value is a built-in arraybufferview auxiliary type. 62 * Check whether the entered value is an arguments object type. 70 * Check whether the entered value is of arraybuffer type. 78 * Check whether the input value is an asynchronous function type. 86 * Check whether the entered value is a bigint64array type. 94 * Check whether the entered value is a biguint64array type. 102 * Check whether the entered value is a Boolean object type. 110 * Check whether the entered value is Boolean or number or string or symbol object type. 118 * Check whether the entered value is of DataView type. [all …]
|
| D | js_base64.h | 33 enum Type { enum 51 Type valueType = BASIC; 64 Type valueType = BASIC; 100 napi_value EncodeSync(napi_env env, napi_value src, Type valueType); 108 napi_value EncodeToStringSync(napi_env env, napi_value src, Type valueType); 116 napi_value DecodeSync(napi_env env, napi_value src, Type valueType); 124 napi_value Encode(napi_env env, napi_value src, Type valueType); 132 napi_value EncodeToString(napi_env env, napi_value src, Type valueType); 140 napi_value Decode(napi_env env, napi_value src, Type valueType); 143 … unsigned char *DecodeAchieve(napi_env env, const char *input, size_t inputLen, Type valueType); [all …]
|
| D | js_base64.cpp | 45 napi_value Base64::EncodeSync(napi_env env, napi_value src, Type valueType) in EncodeSync() 47 napi_typedarray_type type; in EncodeSync() local 50 napi_get_typedarray_info(env, src, &type, &length, &resultData, nullptr, nullptr); in EncodeSync() 51 if (type != napi_uint8_array || length == 0) { in EncodeSync() 53 … "Parameter error. The type of Parameter must be Uint8Array and the length greater than zero."); in EncodeSync() 78 napi_value Base64::EncodeToStringSync(napi_env env, napi_value src, Type valueType) in EncodeToStringSync() 80 napi_typedarray_type type; in EncodeToStringSync() local 83 napi_get_typedarray_info(env, src, &type, &length, &resultData, nullptr, nullptr); in EncodeToStringSync() 84 if (type != napi_uint8_array || length == 0) { in EncodeToStringSync() 86 … "Parameter error. The type of Parameter must be Uint8Array and the length greater than zero."); in EncodeToStringSync() [all …]
|
| D | js_types.cpp | 54 napi_typedarray_type type = napi_int8_array; in IsArrayBufferView() local 59 napi_status rstSta = napi_get_typedarray_info(env, src, &type, &length, in IsArrayBufferView() 62 switch (type) { in IsArrayBufferView() 188 napi_valuetype type = napi_undefined; in IsExternal() local 190 napi_typeof(env, src, &type); in IsExternal() 191 if (type == napi_valuetype::napi_external) { in IsExternal() 199 bool Types::GetTypeArrayInfo(napi_env env, napi_value src, napi_typedarray_type &type) const in GetTypeArrayInfo() 208 napi_get_typedarray_info(env, src, &type, &length, in GetTypeArrayInfo() 219 napi_typedarray_type type = napi_int8_array; in IsFloat32Array() local 220 if (GetTypeArrayInfo(env, src, type)) { in IsFloat32Array() [all …]
|
| /commonlibrary/c_utils/docs/zh-cn/ |
| D | c-utils-guide-sortedVector.md | 13 | | **SortedVector**(const SortedVector< TYPE, false >& rhs)<br>拷贝构造函数,不允许出现重复元素。 | 14 | | **SortedVector**(const SortedVector< TYPE, true >& rhs)<br>拷贝构造函数,允许出现重复元素。 | 15 | | **SortedVector**(const std::vector< TYPE >& orivect) | 17 | ssize_t | **Add**(const TYPE& item)<br>在正确的位置添加一个新元素`item`。 | 18 | const TYPE* | **Array**() const<br>返回一个指向vector的第一个元素的const指针,用于访问vector的元素。 | 19 | const TYPE& | **Back**() const<br>返回vector末尾元素的引用。 | 24 | TYPE* | **EditArray**()<br>返回一个指向vector的第一个元素的非const指针,用于访问vector的元素。 | 25 | TYPE& | **EditItemAt**(size_t index)<br>返回vector的`index`对应的元素值。 | 29 | const TYPE& | **Front**() const<br>返回vector起始元素的引用。 | 30 | ssize_t | **IndexOf**(const TYPE& item) const<br>查找vector中元素值为`item`的索引。 | [all …]
|
| /commonlibrary/ets_utils/ |
| D | hisysevent.yaml | 17 …__BASE: {type: FAULT, level: CRITICAL, desc: Scheduling exceptions using ffrt or UV, preserve: tru… 18 PID: {type: INT32, desc: pid} 19 TID: {type: INT32, desc: tid} 20 METHOD: {type: STRING, desc: method name} 21 FUNCTION_NAME: {type: STRING, desc: The interface name of ffrt or uv} 22 TYPE: {type: STRING, desc: Types of ffrt or uv} 23 MESSAGE: {type: STRING, desc: Reported information} 24 CODE: {type: INT32, desc: Error code} 25 WAIT_TIME: {type: STRING, desc: Waiting time}
|
| /commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/ |
| D | winapi.rs | 20 pub type HANDLE = isize; 21 pub type DWORD = c_ulong; 22 pub type ULONG_PTR = usize; 23 pub type BOOL = c_int; 24 pub type ULONG = c_ulong; 25 pub type PULONG = *mut ULONG; 26 pub type UCHAR = c_uchar; 27 pub type PVOID = *mut c_void; 28 pub type ADDRESS_FAMILY = USHORT; 29 pub type CHAR = c_char; [all …]
|
| /commonlibrary/rust/ylong_runtime/ylong_runtime/src/iter/parallel/ |
| D | mod.rs | 27 /// Splits data into two parts of the same type 47 /// Type that can be splitted 48 type Data: ParSplit; 60 type Data = T; 68 /// Type of data that can be splitted 69 type Data: ParSplit + 'a; 79 type Data = <&'a T as IntoParIter>::Data; 87 /// Type of data that can be splitted. 88 type Data: ParSplit + 'a; 98 type Data = <&'a mut T as IntoParIter>::Data; [all …]
|
| /commonlibrary/ets_utils/js_api_module/xml/src/ |
| D | js_xml.ts | 79 throw new BusinessError(`Parameter error.The type of ${obj} must be object`); 92 throw new BusinessError(`Parameter error.The type of ${inputStr} must be string`); 102 throw new BusinessError(`Parameter error.The type of ${name} must be string`); 108 throw new BusinessError(`Parameter error.The type of ${value} must be string`); 120 throw new BusinessError(`Parameter error.The type of ${name} must be string`); 143 throw new BusinessError(`Parameter error.The type of ${name} must be string`); 165 throw new BusinessError(`Parameter error.The type of ${prefix} must be string`); 171 throw new BusinessError(`Parameter error.The type of ${ns} must be string`); 182 let error = new BusinessError(`Parameter error.The type of ${text} must be string`); 197 throw new BusinessError(`Parameter error.The type of ${text} must be string`); [all …]
|
| /commonlibrary/ets_utils/js_api_module/convertxml/ |
| D | js_convertxml.cpp | 110 if (curNode->type == xmlElementType::XML_PI_NODE && !options_.ignoreInstruction) { in GetPrevNodeList() 111 SetKeyValue(env, elementsObject, options_.type, GetNodeType(curNode->type)); in GetPrevNodeList() 120 if (curNode->type == xmlElementType::XML_COMMENT_NODE && !options_.ignoreComment) { in GetPrevNodeList() 121 SetKeyValue(env, elementsObject, options_.type, GetNodeType(curNode->type)); in GetPrevNodeList() 129 if (curNode->type == xmlElementType::XML_DTD_NODE && !options_.ignoreDoctype) { in GetPrevNodeList() 130 SetKeyValue(env, elementsObject, options_.type, GetNodeType(curNode->type)); in GetPrevNodeList() 140 if (curNode->type == XML_ENTITY_DECL) { in SetAttributes() 159 if (curNode->type == xmlElementType::XML_PI_NODE && !options_.ignoreInstruction) { in SetXmlElementType() 164 } else if (curNode->type == xmlElementType::XML_COMMENT_NODE && !options_.ignoreComment) { in SetXmlElementType() 169 … } else if (curNode->type == xmlElementType::XML_CDATA_SECTION_NODE && !options_.ignoreCdata) { in SetXmlElementType() [all …]
|
| /commonlibrary/ets_utils/js_api_module/buffer/test/ |
| D | test_napi.cpp | 33 #define ASSERT_CHECK_VALUE_TYPE(env, value, type) \ argument 38 ASSERT_EQ(valueType, type); \ 50 * @tc.type: FUNC 63 * @tc.type: FUNC 79 * @tc.type: FUNC 100 * @tc.type: FUNC 115 * @tc.type: FUNC 152 * @tc.type: FUNC 168 * @tc.type: FUNC 180 * @tc.type: FUNC [all …]
|
| /commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ |
| D | foreign.rs | 20 type CStruct; 21 /// A reference to the rust type. 22 type Ref: ForeignRef<CStruct = Self::CStruct>; 24 /// The raw C struct pointer to rust type. 32 type CStruct; 57 type CStruct = $ctype:ty; 71 type CStruct = $ctype; 72 type Ref = $borrowed; 94 type Target = $borrowed; 126 … // A type implementing `ForeignRef` should simply be a newtype wrapper around `ForeignRefWrapper`. [all …]
|
| /commonlibrary/utils_lite/include/ |
| D | utils_list.h | 372 * @param type [IN] Structure name. 381 #define OFFSET_OF_FIELD(type, field) ((unsigned int)&((type *)0)->field) argument 395 * @param type [IN] Structure name. 403 #define UTILS_OFF_SET_OF(type, member) ((unsigned int)&((type *)0)->member) argument 420 * @param type [IN] Structure name. 428 #define UTILS_DL_LIST_ENTRY(item, type, member) \ argument 429 ((type *)(void *)((char *)(item) - UTILS_OFF_SET_OF(type, member))) 433 * @brief Iterate over a doubly linked list of given type. 436 * This API is used to iterate over a doubly linked list of given type. 444 * @param type [IN] Structure name. [all …]
|
| /commonlibrary/rust/ylong_http/ylong_http/examples/ |
| D | mimebody_multi.rs | 26 // Content-Type: multipart/mixed; 48 // Content-type: text/plain; charset=US-ASCII 55 // Content-Type: multipart/parallel; boundary=unique-boundary-2 58 // Content-Type: audio/basic 65 // Content-Type: image/jpeg 73 // Content-type: text/enriched 82 // Content-Type: message/rfc822 87 // Content-Type: Text/plain; charset=ISO-8859-1 118 Content-Type: Text/plain; charset=ISO-8859-1 in main() 135 .header("Content-type", "text/plain; charset=US-ASCII") in main() [all …]
|
| /commonlibrary/rust/ylong_http/ |
| D | OAT.xml | 34 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilte… 35 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPoli… 36 3. policyitem type: 41 … "filetype" is used to check file type in the specified path, supported file types: archive, binary 48 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is us… 61 …<filteritem type="filename" name=".*.pem" desc="Testing of API for HTTPS configuration certificate… 62 <filteritem type="filename" name=".*.png" desc="png for http"/> 65 <filteritem type="filename" name=".*.toml" desc="toml treats as readme file"/> 68 <filteritem type="filename" name=".*.toml" desc="toml treats as readme file"/>
|
| /commonlibrary/ets_utils/js_util_module/json/src/ |
| D | json_js.ts | 26 type TransformsFunc = (this: Object, key: string, value: Object) => Object | undefined | null; 27 type ReplacerType = (number | string)[] | null | TransformsFunc; 47 let error = new BusinessError(`Parameter error. The type of ${text} must be string`); 52 let error = new BusinessError(`Parameter error. The type of ${reviver} must be a method`); 119 …let error = new BusinessError(`Parameter error. The type of ${replacer} must be a method or array`… 124 … let error = new BusinessError(`Parameter error. The type of ${space} must be a string or number`); 128 … let error = new BusinessError(`Parameter error. The type of ${space} must be a string or number`); 151 let error = new BusinessError(`Parameter error. The type of ${value} must be object`); 155 let error = new BusinessError(`Parameter error. The type of ${value} must be json object`); 159 … let error = new BusinessError(`Parameter error. The type of ${key} must be string and not empty`); [all …]
|
| /commonlibrary/rust/ylong_http/ylong_http/src/h3/ |
| D | stream.rs | 18 /// HTTP3 control stream type code. 20 /// HTTP3 push stream type code. 22 /// qpack encoder stream type code. 24 /// qpack decoder stream type code. 81 type Target = core::slice::Iter<'a, FrameKind>; 95 type Item = &'a FrameKind; 103 type Item = FrameKind; 111 type Item = FrameKind; 112 type IntoIter = FramesIntoIter;
|
| /commonlibrary/ets_utils/js_sys_module/test/ |
| D | test_process.cpp | 32 #define ASSERT_CHECK_VALUE_TYPE(env, value, type) \ argument 37 ASSERT_EQ(valueType, type); \ 81 * @tc.type: FUNC 100 * @tc.type: FUNC 126 * @tc.type: FUNC 152 * @tc.type: FUNC 175 * @tc.type: FUNC 198 * @tc.type: FUNC 217 * @tc.type: FUNC 236 * @tc.type: FUNC [all …]
|
| /commonlibrary/rust/ylong_json/docs/ |
| D | user_guide.md | 19 // the &str type. 48 …type in the JSON text implements the third-party library `serde::Deserialize` trait, you can direc… 85 A subscript of type &str or String can be used to find a key-value pair in Object; 86 A Subscript of type usize can be used to find a key-value pair in an Array. 104 // Since json is itself a table, you can use the &str type to obtain 108 // You can use the &str type to obtain a common reference to the "array" member, and 109 // then use the usize type to obtain a common reference to the corresponding element. 116 // When searching for the Array type, if the subscript exceeds the Array length, 177 // When trying to obtain a mutable reference to a member of the Array type, if the 190 // When using a subscript of &str type or String type to obtain a mutable reference to [all …]
|
| /commonlibrary/rust/ylong_runtime/ |
| D | OAT.xml | 34 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilte… 35 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPoli… 36 3. policyitem type: 41 … "filetype" is used to check file type in the specified path, supported file types: archive, binary 48 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is us… 61 <filteritem type="filename" name=".*.png" desc="png figures for runtime"/> 64 …<filteritem type="filename" name=".*.toml" desc="toml files are treated the same as readme files"/> 67 …<filteritem type="filename" name=".*.toml" desc="toml files are treated the same as readme files"/>
|
| /commonlibrary/ets_utils/js_util_module/util/src/ |
| D | util_js.ts | 36 type AnyType = Object | null | undefined; 61 encodeSync(src: Uint8Array, options?: Type): Uint8Array; 62 encodeToStringSync(src: Uint8Array, options?: Type): string; 63 decodeSync(src: Uint8Array | string, options?: Type): Uint8Array; 64 encode(src: Uint8Array, options?: Type): Promise<Uint8Array>; 65 encodeToString(src: Uint8Array, options?: Type): Promise<string>; 66 decode(src: Uint8Array | string, options?: Type): Promise<Uint8Array>; 73 enum Type { enum 86 encodeSync(src: Uint8Array, options: Type = Type.BASIC): Uint8Array { 110 encodeToStringSync(src: Uint8Array, options: Type = Type.BASIC): string { [all …]
|
| /commonlibrary/ets_utils/js_api_module/xml/test/ |
| D | test_xml.cpp | 36 #define ASSERT_CHECK_VALUE_TYPE(env, value, type) \ argument 41 ASSERT_EQ(valueType, type); \ 176 * @tc.type: FUNC 193 * @tc.type: FUNC 212 * @tc.type: FUNC 231 * @tc.type: FUNC 252 * @tc.type: FUNC 273 * @tc.type: FUNC 291 * @tc.type: FUNC 310 * @tc.type: FUNC [all …]
|