Home
last modified time | relevance | path

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

12345678910>>...77

/third_party/node/test/fixtures/wpt/encoding/
Diso-2022-jp-decoder.any.js1 function decode(input, output, desc) { function
9 assert_equals(d.decode(view), output)
12 decode([0x1b, 0x24], "�$", "Error ESC")
13 decode([0x1b, 0x24, 0x50], "�$P", "Error ESC, character")
14 decode([0x1b, 0x28, 0x42, 0x50], "P", "ASCII ESC, character")
15 decode([0x1b, 0x28, 0x42, 0x1b, 0x28, 0x42, 0x50], "�P", "Double ASCII ESC, character")
16 decode([0x50, 0x1b, 0x28, 0x42, 0x50], "PP", "character, ASCII ESC, character")
17 decode([0x5C, 0x5D, 0x7E], "\\]~", "characters")
18 decode([0x0D, 0x0E, 0x0F, 0x10], "\x0D��\x10", "SO / SI")
20 decode([0x1b, 0x28, 0x4A, 0x5C, 0x5D, 0x7E], "¥]‾", "Roman ESC, characters")
[all …]
Dtextdecoder-fatal-streaming.any.js12 decoder.decode(new Uint8Array(testCase.sequence));
16 new TextDecoder(testCase.encoding).decode(new Uint8Array([testCase.sequence])),
28 assert_equals(decoder.decode(odd, {stream: true}), '');
29 assert_equals(decoder.decode(odd), '\u0000');
32 decoder.decode(even, {stream: true});
33 decoder.decode(odd)
37 decoder.decode(odd, {stream: true});
38 decoder.decode(even);
41 assert_equals(decoder.decode(even, {stream: true}), '\u0000');
42 assert_equals(decoder.decode(even), '\u0000');
/third_party/ltp/testcases/kernel/syscalls/ptrace/
Dsimple_tracer.c40 #define decode(reg) _decode(#reg, pt->reg) macro
48 decode(p0); in decode_regs()
49 decode(r0); in decode_regs()
50 decode(r1); in decode_regs()
51 decode(r2); in decode_regs()
52 decode(r3); in decode_regs()
53 decode(r4); in decode_regs()
54 decode(r5); in decode_regs()
59 decode(eax); in decode_regs()
60 decode(ebx); in decode_regs()
[all …]
/third_party/mbedtls/tests/suites/
Dtest_suite_base64.data91 Base64 decode (Illegal character)
94 Base64 decode (Too much equal signs)
97 Base64 decode (Invalid char after equal signs)
100 Base64 decode (Space inside string)
103 Base64 decode "Zm9vYmFy" (no newline nor '\0' at end)
106 Base64 decode "Zm9vYmFy\n" (LF at end)
109 Base64 decode "Zm9vYmFy\r\n" (CRLF at end)
112 Base64 decode "Zm9vYmFy\r" (CR at end)
115 Base64 decode "Zm9vYmFy " (SP at end)
118 Base64 decode "Zm9vYmFy \n" (SP+LF at end)
[all …]
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
Dread_sockaddr.rs66 let decode = *storage.cast::<c::sockaddr_in>(); in read_sockaddr() localVariable
68 Ipv4Addr::from(u32::from_be(decode.sin_addr.s_addr)), in read_sockaddr()
69 u16::from_be(decode.sin_port), in read_sockaddr()
76 let decode = *storage.cast::<c::sockaddr_in6>(); in read_sockaddr() localVariable
78 Ipv6Addr::from(decode.sin6_addr.in6_u.u6_addr8), in read_sockaddr()
79 u16::from_be(decode.sin6_port), in read_sockaddr()
80 u32::from_be(decode.sin6_flowinfo), in read_sockaddr()
81 decode.sin6_scope_id, in read_sockaddr()
91 let decode = *storage.cast::<c::sockaddr_un>(); in read_sockaddr() localVariable
93 decode.sun_path[len - 1 - offsetof_sun_path], in read_sockaddr()
[all …]
/third_party/rust/crates/rustix/src/backend/libc/net/
Dread_sockaddr.rs109 let decode = *storage.cast::<c::sockaddr_in>(); in read_sockaddr() localVariable
111 Ipv4Addr::from(u32::from_be(in_addr_s_addr(decode.sin_addr))), in read_sockaddr()
112 u16::from_be(decode.sin_port), in read_sockaddr()
119 let decode = *storage.cast::<c::sockaddr_in6>(); in read_sockaddr() localVariable
121 let s6_addr = decode.sin6_addr.s6_addr; in read_sockaddr()
123 let s6_addr = decode.sin6_addr.u.Byte; in read_sockaddr()
125 let sin6_scope_id = decode.sin6_scope_id; in read_sockaddr()
127 let sin6_scope_id = decode.Anonymous.sin6_scope_id; in read_sockaddr()
130 u16::from_be(decode.sin6_port), in read_sockaddr()
131 u32::from_be(decode.sin6_flowinfo), in read_sockaddr()
[all …]
/third_party/nghttp2/src/
Dbase64_test.cc65 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode()
67 CU_ASSERT("\xff" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode()
71 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode()
74 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode()
78 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode()
81 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode()
85 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode()
88 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode()
93 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode()
95 CU_ASSERT("" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode()
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/chapters/
Dvideo_decode_h264_extensions.adoc5 [[decode-h264]]
8 Video decode operations using an <<decode-h264-profile,H.264 decode
9 profile>> can: be used to decode elementary video stream sequences compliant
20 This process is performed according to the <<decode-operation-steps,video
21 decode operation steps>> with the codec-specific semantics defined in
27 the <<decode-h264-active-sps,active SPS>> specifying the
28 <<decode-h264-sps, H.264 sequence parameter set>>.
30 <<decode-h264-active-pps,active PPS>> specifying the <<decode-h264-pps,
33 <<decode-h264-picture-info,H.264 picture information>>.
35 <<decode-h264-reference-info,H.264 reference information>>
[all …]
Dvideo_decode_extensions.adoc5 [[video-decode-operations]]
8 [[decode-output-picture]]
9 Video decode operations consume compressed video data from a video bitstream
16 Such decode output pictures can be shared with the <<dpb,Decoded Picture
28 Video decode operations may: access the following resources in the
32 corresponding to the list of <<decode-active-reference-picture-info,
36 <<decode-output-picture-info,decode output picture>> and
37 <<decode-reconstructed-picture-info,reconstructed picture>> with access
46 * If the image subresource is used in the video decode operation only as
47 <<decode-output-picture,decode output picture>>, then it must: be in the
[all …]
Dvideo_decode_h265_extensions.adoc5 [[decode-h265]]
8 Video decode operations using an <<decode-h265-profile,H.265 decode
9 profile>> can: be used to decode elementary video stream sequences compliant
20 This process is performed according to the <<decode-operation-steps,video
21 decode operation steps>> with the codec-specific semantics defined in
27 <<decode-h265-active-vps,active VPS>> specifying the <<decode-h265-vps,
30 the <<decode-h265-active-sps,active SPS>> specifying the
31 <<decode-h265-sps, H.265 sequence parameter set>>.
33 <<decode-h265-active-pps,active PPS>> specifying the <<decode-h265-pps,
36 <<decode-h265-picture-info,H.265 picture information>>.
[all …]
/third_party/python/Lib/test/
Dtest_codecs.py78 part1 = d.decode(s[:i])
87 self.assertTrue(not d.decode(state[0]))
94 part2 = d.decode(s[i:], True)
129 result += d.decode(bytes([c]))
132 self.assertEqual(d.decode(b"", True), "")
139 result += d.decode(bytes([c]))
142 self.assertEqual(d.decode(b"", True), "")
414 self.assertRaises(UnicodeDecodeError, test_sequence.decode,
419 self.assertEqual(test_sequence.decode(self.encoding,
422 self.assertEqual(test_sequence.decode(self.encoding, "ignore"),
[all …]
Dtest_multibytecodec.py37 self.assertEqual(b''.decode(enc), '')
235 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0\xcc\xbd'),
237 self.assertEqual(decoder.decode(b'\xe3 \xb8\xb6\xc0\xbb'),
239 self.assertEqual(decoder.decode(b''), '')
243 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c')
244 self.assertRaises(UnicodeDecodeError, decoder.decode, b'', True)
245 self.assertEqual(decoder.decode(b'\xcc'), '\uc774')
247 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c')
248 self.assertRaises(UnicodeDecodeError, decoder.decode,
250 self.assertEqual(decoder.decode(b'\xcc'), '\uc774')
[all …]
Dtest_uu.py46 return self.buffer.getvalue().decode(self._encoding, self._errors)
80 uu.decode(inp, out)
88 uu.decode(inp, out)
95 uu.decode(inp, out)
104 uu.decode(inp, out)
131 uu.decode(inp, out, quiet=True)
136 decoded = codecs.decode(encodedtext, "uu_codec")
159 sys.stdin = FakeIO(plaintext.decode("ascii"))
163 encodedtextwrapped(0o666, "t1").decode("ascii"))
166 sys.stdin = FakeIO(encodedtextwrapped(0o666, "t1").decode("ascii"))
[all …]
Dtest_codeccallbacks.py186 self.assertEqual(sin.decode("utf-8", "test.relaxedutf8"), sout)
190 self.assertRaises(UnicodeDecodeError, sin.decode,
238 s.decode("ascii", "test.handler1"),
242 s.decode("ascii", "test.handler2"),
247 b"\\u3042\\u3xxx".decode("unicode-escape", "test.handler1"),
252 b"\\u3042\\u3xx".decode("unicode-escape", "test.handler1"),
764 bytes.decode,
834 self.assertRaises(LookupError, b"\xff".decode, "ascii", "test.unknown")
839 self.assertRaises(TypeError, b"\xff".decode, "ascii", "test.baddecodereturn1")
840 self.assertRaises(TypeError, b"\\".decode, "unicode-escape", "test.baddecodereturn1")
[all …]
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
Dbasicauth.c50 char *decode; in MHD_basic_auth_get_username_password() local
60 if (NULL == (decode = BASE64Decode (header))) in MHD_basic_auth_get_username_password()
69 if (NULL == (separator = strchr (decode, ':'))) in MHD_basic_auth_get_username_password()
75 free (decode); in MHD_basic_auth_get_username_password()
78 if (NULL == (user = strdup (decode))) in MHD_basic_auth_get_username_password()
80 free (decode); in MHD_basic_auth_get_username_password()
83 user[separator - decode] = '\0'; /* cut off at ':' */ in MHD_basic_auth_get_username_password()
93 free (decode); in MHD_basic_auth_get_username_password()
98 free (decode); in MHD_basic_auth_get_username_password()
/third_party/vk-gl-cts/external/vulkan-docs/src/proposals/
DVK_KHR_video_decode_queue.adoc10 This document outlines a proposal to enable performing video decode operations in Vulkan.
14 Integrating video decode operations into Vulkan applications enable a wide set of new usage scenari…
28 1. Rely on external sharing capabilities to interact with existing video decode APIs
43decode capable queue families in general, if needed, before querying more details about the indivi…
49 * The new video decode command introduced by this extension
51 For the full list of individual commands supported by video decode queues, and whether any command …
56decode profiles are defined using a `VkVideoProfileInfoKHR` structure that specifies a `videoCodec…
77decode profiles that only differ in terms of video decode usage hints, and it also affects video p…
82 …IPELINE_STAGE_2_VIDEO_DECODE_BIT_KHR` flag to enable synchronizing video decode operations with re…
84 …ntroduced to indicate reads and writes, respectively, performed by the video decode pipeline stage:
[all …]
/third_party/node/test/parallel/
Dtest-whatwg-encoding-custom-textdecoder.js24 const res = dec.decode(buf);
31 res += dec.decode(buf.slice(0, 8), { stream: true });
32 res += dec.decode(buf.slice(8));
41 const res = dec.decode(buf);
48 res += dec.decode(buf.slice(0, 8), { stream: true });
49 res += dec.decode(buf.slice(8));
58 assert.throws(() => dec.decode(buf.slice(0, 8)),
69 dec.decode(buf.slice(0, 8), { stream: true });
70 dec.decode(buf.slice(8));
94 const res = dec.decode(Buffer.from('test€', 'utf-16le'));
[all …]
Dtest-punycode.js39 assert.strictEqual(punycode.decode('tda'), 'ü');
40 assert.strictEqual(punycode.decode('Goethe-'), 'Goethe');
41 assert.strictEqual(punycode.decode('Bcher-kva'), 'Bücher');
43 punycode.decode(
48 assert.strictEqual(punycode.decode('wgv71a119e'), '日本語');
49 assert.strictEqual(punycode.decode('x73l'), '��');
51 punycode.decode(' ');
54 punycode.decode('α-');
57 punycode.decode('あ');
214 decode: (test) => assert.strictEqual(
[all …]
Dtest-stream-writev.js29 for (let decode = 0; decode < 2; decode++) {
32 queue.push([!!decode, !!uncork, !!multi]);
47 function test(decode, uncork, multi, next) { argument
48 console.log(`# decode=${decode} uncork=${uncork} multi=${multi}`);
61 const w = new stream.Writable({ decodeStrings: decode });
64 const expectChunks = decode ? [
/third_party/typescript/tests/ts_extra_tests/tool/
Dtestcfg.py169 … out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore"), filename)
174 if "TESTCASE SUCCESS" not in out.decode("utf-8", errors="ignore"):
205 …if self.__error_code() in out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignor…
212 … self.detail_result = out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore")
228 …out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore"), self.__get_js_basenam…
234 if "TESTCASE SUCCESS" not in out.decode("utf-8", errors="ignore"):
249 …if self.__error_type() in out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignor…
256 … self.detail_result = out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore")
266 out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore"),
273 if "TESTCASE SUCCESS" not in out.decode("utf-8", errors="ignore"):
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dradeon_uvd.c1103 dec->msg->body.decode.stream_type = dec->stream_type; in ruvd_end_frame()
1104 dec->msg->body.decode.decode_flags = 0x1; in ruvd_end_frame()
1105 dec->msg->body.decode.width_in_samples = dec->base.width; in ruvd_end_frame()
1106 dec->msg->body.decode.height_in_samples = dec->base.height; in ruvd_end_frame()
1110 dec->msg->body.decode.width_in_samples = in ruvd_end_frame()
1111 align(dec->msg->body.decode.width_in_samples, 16) / 16; in ruvd_end_frame()
1112 dec->msg->body.decode.height_in_samples = in ruvd_end_frame()
1113 align(dec->msg->body.decode.height_in_samples, 16) / 16; in ruvd_end_frame()
1117 dec->msg->body.decode.dpb_size = dec->dpb.res->buf->size; in ruvd_end_frame()
1118 dec->msg->body.decode.bsd_size = bs_size; in ruvd_end_frame()
[all …]
/third_party/python/Lib/test/test_email/
Dtest_contentmanager.py303 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
316 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), '\n')
329 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
342 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
357 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
370 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
387 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
405 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
418 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
431 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
[all …]
/third_party/python/Lib/email/
Dcontentmanager.py65 content = msg.get_payload(decode=True)
67 return content.decode(charset, errors=errors)
72 return msg.get_payload(decode=True)
138 encoded_lines.append(binascii.b2a_base64(thisline).decode('ascii'))
151 return '7bit', normal_body(lines).decode('ascii')
155 return '8bit', normal_body(lines).decode('ascii', 'surrogateescape')
157 sniff_qp = quoprimime.body_encode(sniff.decode('latin-1'),
168 data = normal_body(lines).decode('ascii')
170 data = normal_body(lines).decode('ascii', 'surrogateescape')
172 data = quoprimime.body_encode(normal_body(lines).decode('latin-1'),
[all …]
/third_party/flutter/engine/flutter/shell/platform/darwin/common/framework/Source/
Dflutter_codecs_unittest.mm11 ASSERT_TRUE([codec decode:nil] == nil);
17 ASSERT_TRUE([[codec decode:[NSData data]] isEqualTo:@""]);
24 NSString* decoded = [codec decode:encoded];
32 NSString* decoded = [codec decode:encoded];
40 NSString* decoded = [codec decode:encoded];
47 ASSERT_TRUE([codec decode:nil] == nil);
54 NSArray* decoded = [codec decode:encoded];
62 NSDictionary* decoded = [codec decode:encoded];
/third_party/node/deps/npm/node_modules/decode-uri-component/
Dreadme.md1 # decode-uri-component
3decode-uri-component.svg?branch=master)](https://travis-ci.org/SamVerschueren/decode-uri-component…
19 $ npm install --save decode-uri-component
26 const decodeUriComponent = require('decode-uri-component');

12345678910>>...77