Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 25 of 155) sorted by relevance

1234567

/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/representation/
H A Dencoder.rs76 match state.encode(&mut dst[cur..]) { in encode()
106 .encode(&mut dst[cur..]) in encode()
229 Self::Indexed(s) => s.encode(dst), in encode()
256 .encode(dst) in encode()
279 .encode(dst) in encode()
302 .encode(dst) in encode()
325 .encode(dst) in encode()
348 .encode(dst) in encode()
371 .encode(dst) in encode()
394 .encode(dst) in encode()
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dbase64.rs16 pub(crate) fn encode(input: &[u8]) -> Vec<u8> { in encode() function
52 use crate::util::base64::encode;
62 assert_eq!(encode(b"this is an example"), b"dGhpcyBpcyBhbiBleGFtcGxl"); in ut_util_base64_encode()
63 assert_eq!(encode(b"hello"), b"aGVsbG8="); in ut_util_base64_encode()
64 assert_eq!(encode(b""), b""); in ut_util_base64_encode()
65 assert_eq!(encode(b"a"), b"YQ=="); in ut_util_base64_encode()
66 assert_eq!(encode(b"ab"), b"YWI="); in ut_util_base64_encode()
67 assert_eq!(encode(b"abc"), b"YWJj"); in ut_util_base64_encode()
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_defconfig_patch.py51 if self.new_demo_config[-1].encode("utf-8") in lines:
53 index_num = lines.index(self.new_demo_config[-1].encode("utf-8"))
54 if ("+" + self.new_demo_config[-1]).encode("utf-8") in lines:
56 index_num = lines.index(("+" + self.new_demo_config[-1]).encode("utf-8"))
59 if lines[index_num - 1] == self.new_demo_config[0].encode("utf-8"):
61 lines.remove(self.new_demo_config[-1].encode("utf-8"))
63 if lines[index_num - 1] == ("+" + self.new_demo_config[0]).encode("utf-8"):
65 lines.remove(("+" + self.new_demo_config[-1]).encode("utf-8"))
94 if line.find("CONFIG_DRIVERS_HDF_INPUT=y".encode('utf-8')) >= 0:
96 elif line.find(self.new_demo_config[-1].encode('utf-8')) >= 0:
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/format/
H A Dencoder.rs77 pub(crate) fn encode( in encode() method
359 .encode(dst) in encode()
381 .encode(dst) in encode()
411 .encode(dst) in encode()
433 .encode(dst) in encode()
465 .encode(dst) in encode()
512 .encode(dst) in encode()
544 .encode(dst) in encode()
585 .encode(dst) in encode()
617 .encode(dst) in encode()
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h1/request/
H A Dencoder.rs311 match self.method_part.encode(dst)? { in method_encode()
324 match self.method_sp_part.encode(dst)? { in method_sp_encode()
338 match self.uri_part.encode(dst)? { in uri_encode()
351 match self.uri_sp_part.encode(dst)? { in uri_sp_encode()
364 match self.version_part.encode(dst)? { in version_encode()
377 match self.version_crlf_part.encode(dst)? { in version_crlf_encode()
390 match self.headers_part.encode(dst)? { in header_encode()
403 match self.headers_crlf_part.encode(dst)? { in header_crlf_encode()
429 fn encode(&mut self, buf: &mut [u8]) -> TokenResult<usize> { in encode() method
590 match crlf.encode(buf)? { in encode_crlf()
[all …]
/ohos5.0/base/update/packaging_tools/
H A Dupdate_package.py129 save_patch = update_bin_obj.name.encode("utf-8")
133 private_key = OPTIONS_MANAGER.private_key.encode("utf-8")
191 binascii.a2b_hex(digest.encode('utf-8')))
192 component_list[idx].file_path = file_path.encode("utf-8")
197 component_list[idx].version = component[4].encode("utf-8")
243 head_list.software_version = head_value_list[2].encode("utf-8")
244 head_list.date = head_value_list[3].encode("utf-8")
245 head_list.time = head_value_list[4].encode("utf-8")
264 component_list[i].file_path = component.encode("utf-8")
266 (opera_script_dict[component]).encode("utf-8")
[all …]
H A Dcreate_hashdata.py135 self.hashdata += struct.pack(HASH_DATA_HEADER_FMT, component_name.encode(),
200 hash_check_file_p.write(("hash info:").encode())
203 str(self.component_num), str(self.block_size))).encode())
207 hash_check_file_p.write(("%s\n" % (self.hashdata_list[offset][0])).encode())
209 … str(self.hashdata_list[offset][1]), str(self.hashdata_list[offset][2]))).encode())
215 hashdata_hexstr)).encode())
220 hash_check_file_p.write(("hash sign:").encode())
221 hash_check_file_p.write(signdata_hexstr.encode())
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dstream_impl.cpp28 …std::unique_ptr<char[]>, size_t> DecodeString(const std::string& buffer, const std::string& encode) in DecodeString() argument
39 if (encode == "utf-8") { in DecodeString()
63 int64_t offset, const std::string& encode) in GetWriteArg() argument
67 auto [decodeState, bufferGuard, bufLen] = DecodeString(buffer, encode); in GetWriteArg()
196 …int64_t> StreamImpl::WriteCur(const std::string& buffer, int64_t length, const std::string& encode) in WriteCur() argument
202 GetWriteArg(buffer, length, 0.0, encode); in WriteCur()
217 const std::string& encode) in Write() argument
223 GetWriteArg(buffer, length, offset, encode); in Write()
H A Dstream_ffi.cpp45 RetDataI64 FfiOHOSStreamWriteCur(int64_t id, const char* buffer, int64_t length, const char* encode) in FfiOHOSStreamWriteCur() argument
54 auto [state, writeLen] = instance->WriteCur(buffer, length, encode); in FfiOHOSStreamWriteCur()
64 …OHOSStreamWrite(int64_t id, const char* buffer, int64_t length, int64_t offset, const char* encode) in FfiOHOSStreamWrite() argument
73 auto [state, writeLen] = instance->Write(buffer, length, offset, encode); in FfiOHOSStreamWrite()
H A Dstream_impl.h29 int64_t offset, const std::string& encode);
44 …tuple<int, int64_t> WriteCur(const std::string& buffer, int64_t length, const std::string& encode);
47 const std::string& encode);
H A Dstream_ffi.h27 …tDataI64 FfiOHOSStreamWriteCur(int64_t id, const char* buffer, int64_t length, const char* encode);
29 const char* buffer, int64_t length, int64_t offset, const char* encode);
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/
H A Dencoder.rs143 if let Ok(cur) = SetCap::new(max_size).encode(&mut encoder_buf[..]) { in set_capacity()
218 .encode(&mut prefix_buf[..]) in get_prefix()
225 .encode(&mut prefix_buf[cur_prefix..]) in get_prefix()
229 .encode(&mut prefix_buf[cur_prefix..]) in get_prefix()
254 pub fn encode(
277 (cur_encoder, cur_stream) = encoder.encode(
317 …let (cur1,cur2,_) = _encoder.encode(&mut $encoder_buf[$encoder_cur..],&mut stream_buf[stream_cur..…
505 let (cur1, cur2, _) = encoder.encode( in test_ack()
531 let (cur1, cur2, _) = encoder.encode( in encode_post_name()
543 let (cur1, cur2, _) = encoder.encode( in encode_post_name()
[all …]
/ohos5.0/base/update/packaging_tools/test/
H A Dtest_image_class.py68 default_zero_block = ('\0' * 4096).encode()
69 fill_data = ('\0' * 4096).encode()[:4]
75 fill_data = ('\1' * 4096).encode()[:4]
90 default_zero_block = ('\0' * 4096).encode()
91 data = ('\0' * 4096).encode()
100 data = ('\1' * 4096).encode()
/ohos5.0/build/lite/
H A Dgen_module_notice_file.py24 from utils import encode
136 f.write("Software: {}\n\n".format(encode(nf_dict["software"])))
138 encode(nf_dict["copyright"])))
140 encode(nf_dict["license_name"]),
141 encode(nf_dict["license_content"])))
/ohos5.0/drivers/interface/codec/image/v2_0/
H A DICodecImage.idl164 * @brief Start heif image encode.
166 * You can use this API to start heif image encode.
168 * @param inputImgs Indicates input images for the heif image encode {@link ImageItem} obtained.
169 * @param inputMetas Indicates encode parameters of the image encode {@link MetaItem} obtained.
170 * @param refs Indicates reference relations of the heif image encode {@link ItemRef} obtained.
171 * @param output Indicates output buffer of the heif image encode {@link SharedBuffer} obtained.
172 * @param filledLen Indicates filled length of output buffer if heif image encode succeed.
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/
H A Dmod.rs21 mod encode; module
31 pub use encode::{MimeMultiEncoder, MimePartEncoder};
/ohos5.0/drivers/interface/distributed_camera/v1_0/
H A DDCameraTypes.idl105 * Unspecified encode type.
109 * H.264 encode type.
113 * H.265 encode type
117 * JPEG encode type
121 * mpeg4-es encode type
/ohos5.0/drivers/interface/distributed_camera/v1_1/
H A DDCameraTypes.idl105 * Unspecified encode type.
109 * H.264 encode type.
113 * H.265 encode type
117 * JPEG encode type
121 * mpeg4-es encode type
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/distributed_camera_v1_0/foo/distributed_camera/v1_0/
H A DDCameraTypes.idl105 * Unspecified encode type.
109 * H.264 encode type.
113 * H.265 encode type
117 * JPEG encode type
121 * mpeg4-es encode type
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/
H A Dencoder.rs1353 let first_encoded = encoder.encode(&mut first_buf).unwrap(); in ut_data_frame_encoding()
1396 let first_encoded = frame_encoder.encode(&mut buf).unwrap(); in ut_headers_frame_encoding()
1436 let first_encoded = encoder.encode(&mut first_buf).unwrap(); in ut_settings_frame_encoding()
1439 let third_encoded = encoder.encode(&mut third_buf).unwrap(); in ut_settings_frame_encoding()
1498 let first_encoded = encoder.encode(&mut first_buf).unwrap(); in ut_ping_frame_encoding()
1569 let first_encoding = encoder.encode(&mut first_buf).unwrap(); in ut_continue_frame_encoding()
1615 let first_encoded = frame_encoder.encode(&mut buf).unwrap(); in ut_rst_stream_frame_encoding()
1660 let first_encoded = frame_encoder.encode(&mut buf).unwrap(); in ut_window_update_frame_encoding()
1700 let encoded = encoder.encode(&mut buf).unwrap(); in ut_priority_frame_encoding()
1761 let first_encoded = encoder.encode(&mut first_buf).unwrap(); in ut_goaway_frame_encoding()
[all …]
/ohos5.0/commonlibrary/ets_utils/js_api_module/buffer/
H A Djs_buffer.cpp80 EncodingType Buffer::GetEncodingType(std::string encode) in GetEncodingType() argument
82 if (encode == "hex") { in GetEncodingType()
84 } else if (encode == "base64url") { in GetEncodingType()
86 } else if (encode == "ascii") { in GetEncodingType()
88 } else if (encode == "base64") { in GetEncodingType()
90 } else if (encode == "latin1") { in GetEncodingType()
92 } else if (encode == "binary") { in GetEncodingType()
94 } else if (encode == "utf16le") { in GetEncodingType()
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameradata/feedingsmoother/derived/
H A Ddcamera_time_statistician.cpp27 int64_t encode = frameInfo.timePonit.finishEncode - frameInfo.timePonit.startEncode; in CalProcessTime() local
34 averEncodeTime_ = CalAverValue(encode, encodeTimeSum_); in CalProcessTime()
44 ", averScale %{public}" PRId64", averRecv2Feed %{public}" PRId64, encode, trans, in CalProcessTime()
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/
H A Dencoder.rs49 pub(crate) fn encode(&mut self, dst: &mut [u8]) -> usize { in encode() method
52 let size = encoder.encode(dst, self.use_huffman); in encode()
87 cur += _encoder.encode(&mut vec[cur..]); in ut_hpack_encoder()
/ohos5.0/docs/zh-cn/application-dev/media/image/
H A Dimage-encoding-native.md26 ![Invoking relationship of image native encode](figures/image-encode-native.png)
/ohos5.0/base/telephony/sms_mms/test/gtest/
H A Dzero_branch_sms_test.cpp880 auto encode = std::make_shared<GsmUserDataEncode>(udPdu); variable
883 EXPECT_TRUE(encode->EncodeUcs2Pdu(*encodeBuffer, userData));
887 EXPECT_EQ(encode->EncodeUcs2Pdu(*encodeBuffer, userData), 0);
1040 EXPECT_EQ(encode->EncodeSubmitPdu(*encodeBuffer, nullptr), 0);
1041 EXPECT_EQ(encode->EncodeSubmitPdu(*encodeBuffer, pSubmit), 1);
1042 EXPECT_EQ(encode->EncodeDeliverPdu(*encodeBuffer, nullptr), 0);
1123 encode->EncodeSubmitTpduType(*encodeBuffer, pSubmit);
1125 encode->EncodeSubmitTpduType(*encodeBuffer, pSubmit);
1127 encode->EncodeSubmitTpduType(*encodeBuffer, pSubmit);
1129 encode->EncodeSubmitTpduType(*encodeBuffer, pSubmit);
[all …]

1234567