/commonlibrary/ets_utils/js_util_module/util/ |
D | js_types.h | 51 napi_value IsAnyArrayBuffer(napi_env env, napi_value src) const; 59 napi_value IsArrayBufferView(napi_env env, napi_value src) const; 67 napi_value IsArgumentsObject(napi_env env, napi_value src) const; 75 napi_value IsArrayBuffer(napi_env env, napi_value src) const; 83 napi_value IsAsyncFunction(napi_env env, napi_value src) const; 91 napi_value IsBigInt64Array(napi_env env, napi_value src) const; 99 napi_value IsBigUint64Array(napi_env env, napi_value src) const; 107 napi_value IsBooleanObject(napi_env env, napi_value src) const; 115 napi_value IsBoxedPrimitive(napi_env env, napi_value src) const; 123 napi_value IsDataView(napi_env env, napi_value src) const; [all …]
|
D | js_types.cpp | 23 napi_value Types::IsAnyArrayBuffer(napi_env env, napi_value src) const in IsAnyArrayBuffer() 28 napi_status napiRst = napi_is_arraybuffer(env, src, &rstFlag); in IsAnyArrayBuffer() 34 napiRst = napi_is_shared_array_buffer(env, src, &rstFlag); in IsAnyArrayBuffer() 42 napi_value Types::IsArrayBufferView(napi_env env, napi_value src) const in IsArrayBufferView() 47 napi_status rstStatus = napi_typeof(env, src, &valuetype); in IsArrayBufferView() 53 napi_status napiRst = napi_is_dataview(env, src, &rstFlag); in IsArrayBufferView() 63 napi_status rstSta = napi_get_typedarray_info(env, src, &type, &length, in IsArrayBufferView() 87 napi_value Types::IsArgumentsObject(napi_env env, napi_value src) const in IsArgumentsObject() 91 napi_typeof(env, src, &result); in IsArgumentsObject() 93 NAPI_CALL(env, napi_is_arguments_object(env, src, &flag)); in IsArgumentsObject() [all …]
|
D | js_base64.h | 84 napi_value EncodeSync(napi_env env, napi_value src); 92 napi_value EncodeToStringSync(napi_env env, napi_value src); 100 napi_value DecodeSync(napi_env env, napi_value src); 108 napi_value Encode(napi_env env, napi_value src); 116 napi_value EncodeToString(napi_env env, napi_value src); 124 napi_value Decode(napi_env env, napi_value src);
|
D | js_textencoder.cpp | 33 napi_value TextEncoder::Encode(napi_env env, napi_value src) const in Encode() 37 EncodeIntoChinese(env, src, encoding_, buffer); in Encode() 40 if (napi_get_value_string_utf8(env, src, nullptr, 0, &bufferSize) != napi_ok) { in Encode() 45 … if (napi_get_value_string_utf8(env, src, buffer.data(), bufferSize + 1, &bufferSize) != napi_ok) { in Encode() 64 napi_value TextEncoder::EncodeInto(napi_env env, napi_value src, napi_value dest) const in EncodeInto() argument 78 NativeValue *nativeValue = reinterpret_cast<NativeValue*>(src); in EncodeInto()
|
D | js_base64.cpp | 41 napi_value Base64::EncodeSync(napi_env env, napi_value src) in EncodeSync() argument 48 …NAPI_CALL(env, napi_get_typedarray_info(env, src, &type, &length, &resultData, &resultBuffer, &byt… in EncodeSync() 71 napi_value Base64::EncodeToStringSync(napi_env env, napi_value src) in EncodeToStringSync() argument 78 …NAPI_CALL(env, napi_get_typedarray_info(env, src, &type, &length, &resultData, &resultBuffer, &byt… in EncodeToStringSync() 143 napi_value Base64::DecodeSync(napi_env env, napi_value src) in DecodeSync() argument 146 napi_typeof(env, src, &valuetype); in DecodeSync() 154 …NAPI_CALL(env, napi_get_typedarray_info(env, src, &type, &length, &resultData, &resultBuffer, &byt… in DecodeSync() 158 napi_get_value_string_utf8(env, src, nullptr, 0, &prolen); in DecodeSync() 171 napi_get_value_string_utf8(env, src, inputString, prolen + 1, &prolen); in DecodeSync() 296 napi_value Base64::Encode(napi_env env, napi_value src) in Encode() argument [all …]
|
D | js_textencoder.h | 51 napi_value Encode(napi_env env, napi_value src) const; 60 napi_value EncodeInto(napi_env env, napi_value src, napi_value dest) const;
|
/commonlibrary/c_utils/base/ |
D | BUILD.gn | 58 "src/string_ex.cpp", 59 "src/unicode_ex.cpp", 60 "src/directory_ex.cpp", 61 "src/datetime_ex.cpp", 62 "src/refbase.cpp", 63 "src/parcel.cpp", 64 "src/semaphore_ex.cpp", 65 "src/thread_pool.cpp", 66 "src/file_ex.cpp", 67 "src/mapped_file.cpp", [all …]
|
/commonlibrary/memory_utils/libpurgeablemem/ |
D | BUILD.gn | 31 "c/src/purgeable_mem_builder_c.c", 32 "c/src/purgeable_mem_c.c", 33 "c/src/purgeable_memory.c", 34 "common/src/pm_state_c.c", 35 "common/src/ux_page_table_c.c", 36 "cpp/src/purgeable_ashmem.cpp", 37 "cpp/src/purgeable_mem.cpp", 38 "cpp/src/purgeable_mem_base.cpp", 39 "cpp/src/purgeable_mem_builder.cpp", 40 "cpp/src/purgeable_resource_manager.cpp", [all …]
|
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/ |
D | headers.rs | 41 pub(crate) src: Vec<u8>, field 51 src: vec![], in new() 61 self.src = name.into_bytes(); in check_next() 72 self.src = b":".to_vec(); in check_next() 79 self.src = v.to_vec(); in check_next() 82 self.src = vec![]; in check_next() 89 self.src = b"\r\n".to_vec(); in check_next() 106 match data_copy(&self.src, &mut self.src_idx, dst)? { in encode() 123 pub(crate) src: Vec<u8>, field 133 src: vec![], in new() [all …]
|
/commonlibrary/ets_utils/js_util_module/util/test/ |
D | test_util.cpp | 103 napi_value src = nullptr; variable 104 napi_create_string_utf8(env, "84bdf796-66cc-4655-9b89-d6218d100f9c", NAPI_AUTO_LENGTH, &src); 105 napi_value arr = OHOS::Util::DoParseUUID(env, src); 122 napi_value src = nullptr; variable 124 napi_create_string_utf8(env, input.c_str(), NAPI_AUTO_LENGTH, &src); 125 napi_value arr = OHOS::Util::DoParseUUID(env, src); 142 napi_value src = nullptr; variable 144 napi_create_string_utf8(env, input.c_str(), NAPI_AUTO_LENGTH, &src); 145 napi_value arr = OHOS::Util::DoParseUUID(env, src); 248 napi_value src = nullptr; variable [all …]
|
/commonlibrary/utils_lite/file/src/file_impl_hal/ |
D | file.c | 61 int UtilsFileCopy(const char* src, const char* dest) in UtilsFileCopy() argument 63 if ((src == NULL) || (dest == NULL)) { in UtilsFileCopy() 66 int fpSrc = UtilsFileOpen(src, O_RDONLY_FS, 0); in UtilsFileCopy() 102 int UtilsFileMove(const char* src, const char* dest) in UtilsFileMove() argument 104 int ret = UtilsFileCopy(src, dest); in UtilsFileMove() 106 ret = UtilsFileDelete(src); in UtilsFileMove()
|
/commonlibrary/c_utils/base/src/ |
D | unicode_ex.cpp | 218 uint32_t Utf8ToUtf32CodePoint(const char* src, size_t length) in Utf8ToUtf32CodePoint() argument 224 return src[0]; in Utf8ToUtf32CodePoint() 226 unicode = src[0] & 0x1f; in Utf8ToUtf32CodePoint() 227 Utf8ShiftAndMask(&unicode, src[1]); in Utf8ToUtf32CodePoint() 230 unicode = src[0] & 0x0f; in Utf8ToUtf32CodePoint() 231 Utf8ShiftAndMask(&unicode, src[1]); in Utf8ToUtf32CodePoint() 232 Utf8ShiftAndMask(&unicode, src[2]); in Utf8ToUtf32CodePoint() 235 unicode = src[0] & 0x07; in Utf8ToUtf32CodePoint() 236 Utf8ShiftAndMask(&unicode, src[1]); in Utf8ToUtf32CodePoint() 237 Utf8ShiftAndMask(&unicode, src[2]); in Utf8ToUtf32CodePoint() [all …]
|
/commonlibrary/utils_lite/js/builtin/filekit/src/ |
D | nativeapi_fs.cpp | 96 char* src = JSI::GetStringProperty(args, FILE_SOURCE_URI); in ExecuteCopyFile() local 100 int ret = GetFullPath(src, g_uriFullPath, sizeof(g_uriFullPath)); in ExecuteCopyFile() 101 JSI::ReleaseString(src); in ExecuteCopyFile() 145 char* src = JSI::GetStringProperty(args, FILE_URI); in ExecuteDeleteAccess() local 146 int ret = GetFullPath(src, g_uriFullPath, sizeof(g_uriFullPath)); in ExecuteDeleteAccess() 147 JSI::ReleaseString(src); in ExecuteDeleteAccess() 244 char* src = JSI::GetStringProperty(args, FILE_URI); in ExecuteGetFileInfo() local 248 int ret = GetFullPath(src, g_uriFullPath, sizeof(g_uriFullPath)); in ExecuteGetFileInfo() 259 JSI::ReleaseString(src); in ExecuteGetFileInfo() 263 JSI::SetStringProperty(result, FILE_URI, src); in ExecuteGetFileInfo() [all …]
|
/commonlibrary/utils_lite/js/builtin/ |
D | CMakeLists.txt | 35 ${PARAM_FRAMEWORKS_PATH}/parameter/src 45 aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/common/src COMMON) 46 aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/deviceinfokit/src DEVICEINFO) 47 aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/filekit/src FILEKIT) 48 aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/kvstorekit/src KVSTOREKIT) 51 ${PARAM_FRAMEWORKS_PATH}/parameter/src/parameter_common.c 52 ${PARAM_FRAMEWORKS_PATH}/parameter/src/param_impl_posix/param_impl_posix.c
|
/commonlibrary/rust/ylong_http/ylong_http/src/huffman/ |
D | mod.rs | 44 pub(crate) fn huffman_encode(src: &[u8], dst: &mut Vec<u8>) { in huffman_encode() 75 for byte in src.iter() { in huffman_encode() 127 pub(crate) fn huffman_decode(src: &[u8], dst: &mut Vec<u8>) -> Result<(), HuffmanDecodeError> { in huffman_decode() 155 let (state, flags) = huffman_decode_inner(src, dst, 0, 0)?; in huffman_decode() 171 src: &[u8], in huffman_decode_inner() 178 for byte in src.iter() { in huffman_decode_inner() 225 pub(crate) fn decode(&mut self, src: &[u8]) -> Result<(), HuffmanDecodeError> { in decode() 227 huffman_decode_inner(src, &mut self.vec, self.state, self.flags)?; in decode()
|
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/decode/ |
D | multi.rs | 387 src: Vec<u8>, field 399 src: vec![], in new() 411 src: vec![], in new_as_part() 424 self.src.extend_from_slice(unparsed); in outermost_first_boundary() 427 TokenStatus::Complete((src, unparsed)) => { in outermost_first_boundary() 429 self.src.extend_from_slice(src); in outermost_first_boundary() 431 let s = unsafe { std::str::from_utf8_unchecked(&self.src).trim() }; in outermost_first_boundary() 441 self.src = vec![]; in outermost_first_boundary() 455 self.src.extend_from_slice(unparsed); in inner_first_boundary() 458 TokenStatus::Complete((src, unparsed)) => { in inner_first_boundary() [all …]
|
/commonlibrary/utils_lite/js/builtin/simulator/ |
D | BUILD.gn | 26 "//commonlibrary/utils_lite/js/builtin/common/src/nativeapi_common.cpp", 38 sources = [ "//commonlibrary/utils_lite/js/builtin/deviceinfokit/src/nativeapi_deviceinfo.cpp" ] 72 "//commonlibrary/utils_lite/js/builtin/filekit/src/nativeapi_fs.cpp", 73 "//commonlibrary/utils_lite/js/builtin/filekit/src/nativeapi_fs_impl.c", 91 "//commonlibrary/utils_lite/js/builtin/kvstorekit/src/nativeapi_kv.cpp", 92 "//commonlibrary/utils_lite/js/builtin/kvstorekit/src/nativeapi_kv_impl.c",
|
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/encode/ |
D | part.rs | 64 src: Vec<u8>, field 88 src: vec![], in from_part() 100 self.src = vec![]; in check_next() 106 self.src = b"\r\n".to_vec(); in check_next() 108 self.src = vec![]; in check_next() 124 self.src = vec![]; in check_next() 146 match data_copy(&self.src, &mut self.src_idx, dst)? { in crlf_encode()
|
/commonlibrary/rust/ylong_runtime/ |
D | README_zh.md | 53 | └── src # FFRT ffi封装 56 | |── src # ylong_io 源码 63 | |── src # ylong_runtime 源码 86 └── src # ylong_runtime 过程宏实现
|
/commonlibrary/ets_utils/platform/default/ |
D | util_helper.cpp | 77 void EncodeIntoChinese(napi_env env, napi_value src, std::string encoding, std::string& buffer) in EncodeIntoChinese() argument 81 napi_get_value_string_utf8(env, src, nullptr, 0, &inputSize); // 0:buffer size in EncodeIntoChinese() 83 napi_get_value_string_utf8(env, src, input.data(), inputSize + 1, &inputSize); in EncodeIntoChinese()
|
/commonlibrary/utils_lite/include/ |
D | utils_file.h | 254 int UtilsFileCopy(const char* src, const char* dest); 267 int UtilsFileMove(const char* src, const char* dest);
|
/commonlibrary/ets_utils/js_util_module/util/src/ |
D | util_js.ts | 46 encodeSync(src: Uint8Array): Uint8Array; 47 encodeToStringSync(src: Uint8Array, options?: Type): string; 48 decodeSync(src: Uint8Array | string, options?: Type): Uint8Array; 49 encode(src: Uint8Array): Promise<Uint8Array>; 50 encodeToString(src: Uint8Array, options?: Type): Promise<string>; 51 decode(src: Uint8Array | string, options?: Type): Promise<Uint8Array>; 69 encodeSync(src: Uint8Array): Uint8Array { 70 let result: Uint8Array = this.base64.encodeSync(src); 91 encodeToStringSync(src: Uint8Array, options?: Type): string { 92 let resultString: string = this.base64.encodeToStringSync(src); [all …]
|
/commonlibrary/utils_lite/js/builtin/filekit/include/ |
D | nativeapi_fs_impl.h | 38 int DeleteFileImpl(const char* src); 39 int CopyFileImpl(const char* src, const char* dest);
|
/commonlibrary/memory_utils/libpurgeablemem/test/ |
D | purgeable_c_test.cpp | 33 char src; member 42 bool ModifyData_(void *data, size_t size, char src, char dst); 198 bool ModifyData_(void *data, size_t size, char src, char dst) in ModifyData_() argument 203 if (str[i] == src) { in ModifyData_() 214 std::cout << "inter " << __func__ << ": " << para->src << "->" << para->dst << in ModifyAlphabetX2Y() 216 bool ret = ModifyData_(data, size, para->src, para->dst); in ModifyAlphabetX2Y()
|
/commonlibrary/ets_utils/platform/ohos/ |
D | util_helper.cpp | 51 void EncodeIntoChinese(napi_env env, napi_value src, std::string encoding, std::string& buffer) in EncodeIntoChinese() argument 54 NativeValue *nativeValue = reinterpret_cast<NativeValue*>(src); in EncodeIntoChinese()
|