Home
last modified time | relevance | path

Searched refs:decode (Results 1 – 25 of 176) sorted by relevance

12345678

/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/representation/
H A Ddecoder.rs57 .decode(&mut self.buf) in decode()
169 match self.inner.decode(buf) { in decode()
207 match self.inner.decode(buf) { in decode()
571 use crate::util::test_util::decode;
586 match $decoder.decode() { in ut_repr_decoder()
592 match $decoder.decode() { in ut_repr_decoder()
788 match finish.decode() { in ut_finish_decode()
800 match finish.decode() { in ut_finish_decode()
812 match finish.decode() { in ut_finish_decode()
824 match finish.decode() { in ut_finish_decode()
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/format/
H A Ddecoder.rs43 pub(crate) fn decode( in decode() method
55 .decode(buf) in decode()
82 pub(crate) fn decode( in decode() method
95 .decode(buf) in decode()
211 match self.inner.decode(buf) { in decode()
240 match self.inner.decode(buf) { in decode()
255 .decode(&buf[buf_index..]); in decode()
298 match self.inner.decode(buf) { in decode()
351 fn decode( in decode() method
431 fn decode(
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/decode/
H A Dpart.rs17 use crate::body::mime::decode::BoundaryTag;
70 pub(crate) fn decode<'a>( in decode() method
109 let (elem, rest) = self.headers_decoder.decode(buf)?; in headers_decode()
193 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_part_decoder_new_by_crlf()
205 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_part_decoder_new_by_crlf()
217 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_part_decoder_new_by_crlf()
244 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_part_decoder_new_by_lf()
256 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_part_decoder_new_by_lf()
268 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_part_decoder_new_by_lf()
289 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_part_decoder_decode()
[all …]
H A Dmulti.rs19 use crate::body::mime::decode::BoundaryTag;
115 pub fn decode<'a>( in decode() method
157 let (elem, rest) = headers_decoder.decode(buf)?; in unknown_decode()
202 let (elem, rest) = part_decoder.decode(buf)?; in part_decode()
544 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_multi_decoder_new()
570 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_multi_decoder_one_part()
603 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_multi_decoder_one_part_no_headers()
635 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_multi_decoder_one_part_no_body()
668 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_multi_decoder_several_parts()
708 let (elem, rest) = decoder.decode(buf).unwrap(); in ut_mime_multi_decoder_several_parts_has_lwsp()
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/
H A Dheaders.rs158 pub(crate) fn decode<'a>( in decode() method
333 let (headers, rest) = decoder.decode(buf).unwrap(); in ut_decode_headers_new()
340 let (headers, rest) = decoder.decode(buf).unwrap(); in ut_decode_headers_new()
356 let (headers, rest) = decoder.decode(buf).unwrap(); in ut_decode_headers_new2()
363 let (headers, rest) = decoder.decode(buf).unwrap(); in ut_decode_headers_new2()
380 let (headers, rest) = decoder.decode(buf).unwrap(); in ut_decode_headers_decode()
395 let (headers, rest) = decoder.decode(buf).unwrap(); in ut_decode_headers_decode()
410 let (headers, rest) = decoder.decode(buf).unwrap(); in ut_decode_headers_decode()
434 let (headers, rest) = decoder.decode(buf).unwrap(); in ut_decode_headers_decode2()
458 let (headers, rest) = decoder.decode(&buf[0..3]).unwrap(); in ut_decode_headers_decode3()
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/response/
H A Dmod.rs122 let result = decoder.decode(response_str).unwrap().unwrap(); in ut_response_version()
141 let result = decoder.decode(response_str).unwrap().unwrap(); in ut_response_status_code()
159 let result = decoder.decode(response_str).unwrap().unwrap(); in ut_response_headers()
185 let result = decoder.decode(response_str).unwrap().unwrap(); in ut_response_body()
203 let result = decoder.decode(response_str).unwrap().unwrap(); in ut_response_body_mut()
220 let result = decoder.decode(response_str).unwrap().unwrap(); in ut_response_into_parts()
241 let result = decoder.decode(response_str).unwrap().unwrap(); in ut_response_from_raw_parts()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/streamdepacketizer_fuzzer/
H A Dstreamdepacketizer_fuzzer.cpp39 Communication::SoftBus::StreamDepacketizer decode(1); in DepacketizeHeaderTest() local
40 decode.DepacketizeHeader((const char *)tmp); in DepacketizeHeaderTest()
53 Communication::SoftBus::StreamDepacketizer decode(1); in DepacketizeBufferTest() local
54 decode.DepacketizeBuffer((char *)tmp, sizeof(tmp)); in DepacketizeBufferTest()
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/huffman/
H A Dmod.rs225 pub(crate) fn decode(&mut self, src: &[u8]) -> Result<(), HuffmanDecodeError> { in decode() method
249 use crate::util::test_util::decode;
264 assert_eq!(vec, decode($res).unwrap()) in ut_huffman_encode()
315 huffman_decode(decode($ctn).unwrap().as_slice(), &mut vec).unwrap(); in ut_huffman_decode()
371 let bytes = decode(cont).unwrap(); in ut_huffman_decoder()
372 assert!(decoder.decode(&bytes).is_ok()); in ut_huffman_decoder()
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/
H A Dmod.rs20 mod decode; module
29 pub use decode::MimeMultiDecoder;
30 pub(crate) use decode::MimePartDecoder;
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/
H A Dchunk.rs1617 let res = decoder.decode(&chunk_body_bytes[..1]); in ut_chunk_body_decode_0()
1629 let res = decoder.decode(&chunk_body_bytes[1..2]); in ut_chunk_body_decode_0()
1641 let res = decoder.decode(&chunk_body_bytes[2..2]); in ut_chunk_body_decode_0()
1973 let res = decoder.decode(chunk_body_bytes); in ut_chunk_body_decode_3()
1997 let res = decoder.decode(chunk_body_bytes); in ut_chunk_body_decode_4()
2019 let res = decoder.decode(chunk_body_bytes); in ut_chunk_body_decode_5()
2098 let res = decoder.decode(&buf[39..41]); //\r\n in ut_chunk_body_decode_7()
2110 let res = decoder.decode(&buf[41..]); //\r\n in ut_chunk_body_decode_7()
2137 let res = decoder.decode(&buf[0..2]); // 01 in ut_chunk_body_decode_8()
2173 let res = decoder.decode(&buf[39..41]); //\r\n in ut_chunk_body_decode_8()
[all …]
H A Dtext.rs346 pub fn decode<'a>(&mut self, buf: &'a [u8]) -> (Text<'a>, &'a [u8]) { in decode() method
624 let (text, left) = decoder.decode(&bytes[..4]); in ut_text_body_decoder_decode()
629 let (text, left) = decoder.decode(&bytes[4..11]); in ut_text_body_decoder_decode()
634 let (text, left) = decoder.decode(&bytes[11..26]); in ut_text_body_decoder_decode()
639 let (text, left) = decoder.decode(&bytes[26..]); in ut_text_body_decoder_decode()
647 let (text, left) = decoder.decode(bytes); in ut_text_body_decoder_decode()
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/codec_image_v1_0/foo/codec/image/v1_0/
H A DICodecImage.idl34 *You can use these APIs to allocate input buffer, and decode image
100 * @brief Start jpeg image decode.
102 * You can use this API to start jpeg image decode.
104 …* @param inBuffer Indicates input buffer of the jpeg image decode {@link CodecImageBuffer} obtaine…
105 …* @param outBuffer Indicates output buffer of the jpeg image decode {@link CodecImageBuffer} obtai…
106 * @param decInfo Indicates decode information of the image decode {@link JpegDecInfo} obtained.
141 * You can use this API to free input buffer for image decode.
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/util/
H A Dutf8_decode.h48 constexpr inline uint32_t decode(uint32_t* state, uint32_t* codep, unsigned char byte) in BASE_BEGIN_NAMESPACE()
69 decode(&state, &codepoint, static_cast<unsigned char>(**buf)); in GetCharUtf8()
95 if (!decode(&state, &codepoint, static_cast<unsigned char>(*s))) { in CountGlyphsUtf8()
/ohos5.0/build/ohos/images/mkimage/
H A Dmkextimage.py90 res[2].decode() + res[3].decode())
117 res[2].decode() + res[3].decode())
H A Dmkf2fsimage.py82 res[2].decode() + res[3].decode())
116 res[2].decode() + res[3].decode())
H A Dmkcpioimage.py88 res[2].decode(), res[3].decode()]))
127 res[2].decode(), res[3].decode()]))
H A Djudge_updater_image.py34 res[2].decode(), res[3].decode()]))
37 lib_info = res[2].decode().split()
/ohos5.0/drivers/interface/codec/image/v1_0/
H A DICodecImage.idl34 *You can use these APIs to allocate input buffer, and decode image
100 * @brief Start jpeg image decode.
102 * You can use this API to start jpeg image decode.
104 …* @param inBuffer Indicates input buffer of the jpeg image decode {@link CodecImageBuffer} obtaine…
105 …* @param outBuffer Indicates output buffer of the jpeg image decode {@link CodecImageBuffer} obtai…
106 * @param decInfo Indicates decode information of the image decode {@link JpegDecInfo} obtained.
142 * You can use this API to free input buffer for image decode.
/ohos5.0/drivers/interface/codec/image/v2_0/
H A DICodecImage.idl34 *You can use these APIs to allocate input buffer, and decode image
103 * @brief Start jpeg image decode.
105 * You can use this API to start jpeg image decode.
107 …* @param inBuffer Indicates input buffer of the jpeg image decode {@link CodecImageBuffer} obtaine…
108 …* @param outBuffer Indicates output buffer of the jpeg image decode {@link CodecImageBuffer} obtai…
109 * @param decInfo Indicates decode information of the image decode {@link JpegDecInfo} obtained.
147 * You can use this API to free input buffer for image decode.
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/
H A Ddecoder.rs129 match decoder.decode(&buf[cnt..], &mut self.inst_state)? { in decode_ins()
196 match decoder.decode(&buf[cnt..], &mut self.repr_state)? { in decode_repr()
592 use crate::util::test_util::decode;
645 let text = decode($input).unwrap().as_slice().to_vec(); in ut_qpack_decoder()
736 let ins = decode("4a637573746f6d2d6b65790c637573746f6d2d76616c7565") in ut_qpack_decoder()
759 let ins = decode("02").unwrap().as_slice().to_vec(); in ut_qpack_decoder()
781 let ins = decode("810d637573746f6d2d76616c756532") in ut_qpack_decoder()
800 let text = decode("00").unwrap().as_slice().to_vec(); //510b2f696e6465782e68746d6c in ut_qpack_decoder()
804 let text2 = decode("00510b2f696e6465782e68746d6c") in ut_qpack_decoder()
956 let ins = decode("3fbd01").unwrap().as_slice().to_vec(); in ut_qpack_decoder()
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/
H A Ddecoder.rs223 self.hpack.decode(buf) in hpack_decode()
348 pub fn decode(&mut self, buf: &[u8]) -> Result<Frames, H2Error> { in decode() method
891 use crate::util::test_util::decode;
1026 let frame_bytes = decode($frame_hex).expect("convert frame hex to bytes failed !");
1086 let decoded_frames = decoder.decode(frame_bytes.as_slice());
1151 let decoded_frames = decoder.decode(&frame_bytes[..8]).unwrap(); in ut_frame_decoder_with_segmented_data_frame()
1153 let decoded_frames = decoder.decode(&frame_bytes[8..12]).unwrap(); in ut_frame_decoder_with_segmented_data_frame()
1155 let decoded_frames = decoder.decode(&frame_bytes[12..24]).unwrap(); in ut_frame_decoder_with_segmented_data_frame()
1167 let decoded_frames = decoder.decode(&frame_bytes[24..]).unwrap(); in ut_frame_decoder_with_segmented_data_frame()
1263 let decoded_frames = decoder.decode(frame_bytes.as_slice()).unwrap(); in ut_frame_decoder_with_series_request_frames()
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/tests/
H A Dsdv_http_error.rs48 decoder.decode(b"HTTP/1.3 304 OK\r\nCon").err().unwrap() in sdv_client_send_request_repeatedly()
55 decoder.decode(b"HTTP/1.3 304 OK\r\nCon").err().unwrap() in sdv_client_send_request_repeatedly()
/ohos5.0/build/scripts/
H A Dcheck_mac_system_and_cpu.py33 if "Darwin" in res[2].strip().decode():
43 host_cpu = res[2].strip().decode().split("brand_string:")[-1]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/
H A Ddecoder.rs55 pub(crate) fn decode(&mut self, buf: &[u8]) -> Result<(), H2Error> { in decode() method
62 match decoder.decode()? { in decode()
207 use crate::util::test_util::decode;
273 let text = decode($input).unwrap(); in ut_hpack_decoder()
274 assert!($hpack.decode(text.as_slice()).is_ok()); in ut_hpack_decoder()
607 let res = decoder.decode(&buf); in ut_decode_literal_non_utf8_header_value()
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameradata/feedingsmoother/derived/
H A Ddcamera_time_statistician.cpp29 int64_t decode = frameInfo.timePonit.finishDecode - frameInfo.timePonit.startDecode; in CalProcessTime() local
36 averDecodeTime_ = CalAverValue(decode, decodeTimeSum_); in CalProcessTime()
45 decode, decode2Scale, scale, recv2Feed, averEncodeTime_, averTransTime_, averDecodeTime_, in CalProcessTime()

12345678