/third_party/node/test/fixtures/x509-escaping/ |
H A D | create-certs.js | 47 const null_ = Null_.encode('der'); 53 const subjectCommonName = PrintableString.encode('evil.example.com', 'der'); 85 value: PrintableString.encode('DE', 'der') 91 value: UTF8String.encode('Hannover', 'der') 105 value: PrintableString.encode('DE', 'der') 111 value: UTF8String.encode('München', 'der') 125 value: PrintableString.encode('DE', 'der') 131 value: UTF8String.encode('Berlin, DNS:good.example.com', 'der') 145 value: PrintableString.encode('DE', 'der') 151 value: UTF8String.encode('Berli [all...] |
/third_party/node/deps/v8/src/ic/ |
H A D | handler-configuration-inl.h | 37 int config = KindBits::encode(Kind::kNormal); in LoadNormal() 42 int config = KindBits::encode(Kind::kGlobal); in LoadGlobal() 47 int config = KindBits::encode(Kind::kInterceptor); in LoadInterceptor() 52 int config = KindBits::encode(Kind::kSlow); in LoadSlow() 57 int config = KindBits::encode(Kind::kField) | in LoadField() 58 IsInobjectBits::encode(field_index.is_inobject()) | in LoadField() 59 IsDoubleBits::encode(field_index.is_double()) | in LoadField() 60 FieldIndexBits::encode(field_index.index()); in LoadField() 66 int config = KindBits::encode(Kind::kField) | IsWasmStructBits::encode(tru in LoadWasmStructField() [all...] |
/third_party/python/Lib/test/ |
H A D | test_multibytecodec.py | 39 self.assertEqual(''.encode(enc), b'') 43 self.assertEqual('abcd'.encode(enc), b'abcd') 57 self.assertEqual(data.encode(enc, "test.ignore"), b'') 84 self.assertEqual(encoder.encode('\ud30c\uc774\uc36c \ub9c8\uc744'), 87 self.assertEqual(encoder.encode('\u2606\u223c\u2606', True), 90 self.assertEqual(encoder.encode('', True), b'') 91 self.assertEqual(encoder.encode('', False), b'') 101 self.assertEqual(encoder.encode('\u00e6\u0300'), b'\xab\xc4') 102 self.assertEqual(encoder.encode('\u00e6'), b'') 103 self.assertEqual(encoder.encode('\u030 [all...] |
H A D | test_codecs.py | 104 part1 = d.encode(u[:i]) 108 part2 = d.encode(u[i:], True) 121 for (c, partialresult) in zip(input.encode(self.encoding), partialresults, strict=True): 132 for (c, partialresult) in zip(input.encode(self.encoding), partialresults, strict=True): 142 for (c, partialresult) in zip(input.encode(self.encoding), partialresults, strict=True): 150 encoded = input.encode(self.encoding) 158 stream = io.BytesIO(input.encode(self.encoding)) 222 stream = io.BytesIO(data.encode(self.encoding)) 327 stream = io.BytesIO("".join(s).encode(self.encoding)) 364 s = (s1+s2+s3).encode(sel 3385 def encode(self, text, errors="strict"): global() member in LocaleCodecTest [all...] |
H A D | multibytecodec_support.py | 29 self.encode = self.codec.encode 48 self.assertEqual(native, self.encode(u)[0]) 55 func = self.encode 67 '%a.encode(%r, %r)=%a != %a' 79 self.encode(s, "xmlcharrefreplace")[0], 107 self.assertEqual(self.encode(sin, 114 enc = self.encode("abc" + self.unmappedunicode + "def", "test.cjktest")[0] 123 self.assertRaises(TypeError, self.encode, self.unmappedunicode, 130 self.assertEqual(self.encode('abc [all...] |
H A D | test_cgi.py | 44 fp = BytesIO(buf.encode('latin-1')) # FieldStorage expects bytes 108 fake_stdin = BytesIO(data.encode(encoding)) 121 fp = BytesIO(POSTDATA.encode('latin1')) 122 env = {'boundary': BOUNDARY.encode('latin1'), 137 fp = BytesIO(POSTDATA.encode('latin1')) 138 env = {'boundary': 'JfISa01'.encode('latin1')} 151 fp = BytesIO(POSTDATA.encode('utf8')) 152 env = {'boundary': BOUNDARY.encode('latin1'), 153 'CONTENT-LENGTH': str(len(POSTDATA.encode('utf8')))} 158 self.assertEqual("\u2603".encode('utf [all...] |
H A D | test_codeccallbacks.py | 88 s.encode("ascii", "xmlcharrefreplace"), 92 s.encode("latin-1", "xmlcharrefreplace"), 116 self.assertEqual(sin.encode("ascii", "test.xmlcharnamereplace"), sout) 118 self.assertEqual(sin.encode("latin-1", "test.xmlcharnamereplace"), sout) 120 self.assertEqual(sin.encode("iso-8859-15", "test.xmlcharnamereplace"), sout) 144 self.assertEqual(sin.encode("ascii", "test.uninamereplace"), sout) 147 self.assertEqual(sin.encode("latin-1", "test.uninamereplace"), sout) 150 self.assertEqual(sin.encode("iso-8859-15", "test.uninamereplace"), sout) 157 self.assertEqual(sin.encode("ascii", "backslashreplace"), sout) 160 self.assertEqual(sin.encode("lati [all...] |
/third_party/ffmpeg/tests/fate/ |
H A D | aac.mak | 151 FATE_AAC_ENCODE += fate-aac-aref-encode 152 fate-aac-aref-encode: ./tests/data/asynth-44100-2.wav 153 fate-aac-aref-encode: CMD = enc_dec_pcm adts wav s16le $(REF) -c:a aac -aac_coder fast -aac_is 0 -aac_pns 0 -aac_ms 0 -aac_tns 0 -b:a 512k -fflags +bitexact -flags +bitexact 154 fate-aac-aref-encode: CMP = stddev 155 fate-aac-aref-encode: REF = ./tests/data/asynth-44100-2.wav 156 fate-aac-aref-encode: CMP_SHIFT = -4096 157 fate-aac-aref-encode: CMP_TARGET = 596 158 fate-aac-aref-encode: SIZE_TOLERANCE = 2464 159 fate-aac-aref-encode: FUZZ = 89 161 FATE_AAC_ENCODE += fate-aac-ln-encode [all...] |
H A D | ac3.mak | 71 FATE_AC3-$(call ENCDEC, AC3, AC3) += fate-ac3-encode 72 fate-ac3-encode: CMD = enc_dec_pcm ac3 wav s16le $(subst $(SAMPLES),$(TARGET_SAMPLES),$(REF)) -c:a ac3 -b:a 128k 73 fate-ac3-encode: CMP_SHIFT = -1024 74 fate-ac3-encode: CMP_TARGET = 404.53 75 fate-ac3-encode: SIZE_TOLERANCE = 488 78 FATE_EAC3-$(call ENCDEC, EAC3, EAC3) += fate-eac3-encode 79 fate-eac3-encode: CMD = enc_dec_pcm eac3 wav s16le $(subst $(SAMPLES),$(TARGET_SAMPLES),$(REF)) -c:a eac3 -b:a 128k 80 fate-eac3-encode: CMP_SHIFT = -1024 81 fate-eac3-encode: CMP_TARGET = 516.94 82 fate-eac3-encode [all...] |
H A D | wma.mak | 41 FATE_WMA_ENCODE-$(call ENCDEC, WMAV1, ASF) += fate-wmav1-encode 42 fate-wmav1-encode: CMD = enc_dec_pcm asf wav s16le $(subst $(SAMPLES),$(TARGET_SAMPLES),$(REF)) -c:a wmav1 -b:a 128k 43 fate-wmav1-encode: CMP_SHIFT = 8192 44 fate-wmav1-encode: CMP_TARGET = 299.99 45 fate-wmav1-encode: SIZE_TOLERANCE = 4632 47 FATE_WMA_ENCODE-$(call ENCDEC, WMAV2, ASF) += fate-wmav2-encode 48 fate-wmav2-encode: CMD = enc_dec_pcm asf wav s16le $(subst $(SAMPLES),$(TARGET_SAMPLES),$(REF)) -c:a wmav2 -b:a 128k 49 fate-wmav2-encode: CMP_SHIFT = 8192 50 fate-wmav2-encode: CMP_TARGET = 267.92 51 fate-wmav2-encode [all...] |
H A D | voice.mak | 4 FATE_G722-$(call ENCMUX, ADPCM_G722, WAV) += fate-g722-encode 5 fate-g722-encode: tests/data/asynth-16000-1.wav 6 fate-g722-encode: SRC = tests/data/asynth-16000-1.wav 7 fate-g722-encode: CMD = enc_dec_pcm wav framemd5 s16le $(SRC) -c:a g722 39 FATE_G726 += fate-g726-encode-2bit 40 fate-g726-encode-2bit: CMD = enc_dec_pcm wav framemd5 s16le $(SRC) -c:a g726 -b:a 16k 42 FATE_G726 += fate-g726-encode-3bit 43 fate-g726-encode-3bit: CMD = enc_dec_pcm wav framemd5 s16le $(SRC) -c:a g726 -b:a 24k 45 FATE_G726 += fate-g726-encode-4bit 46 fate-g726-encode [all...] |
/third_party/node/deps/v8/src/objects/ |
H A D | scope-info.cc | 219 ScopeTypeBits::encode(scope->scope_type()) | in Create() 220 SloppyEvalCanExtendVarsBit::encode(sloppy_eval_can_extend_vars) | in Create() 221 LanguageModeBit::encode(scope->language_mode()) | in Create() 222 DeclarationScopeBit::encode(scope->is_declaration_scope()) | in Create() 223 ReceiverVariableBits::encode(receiver_info) | in Create() 224 ClassScopeHasPrivateBrandBit::encode(has_brand) | in Create() 225 HasSavedClassVariableBit::encode(should_save_class_variable_index) | in Create() 226 HasNewTargetBit::encode(has_new_target) | in Create() 227 FunctionVariableBits::encode(function_name_info) | in Create() 228 HasInferredFunctionNameBit::encode(has_inferred_function_nam in Create() [all...] |
H A D | property-details.h | 271 : value_(KindField::encode(kind) | in PropertyDetails() 272 LocationField::encode(PropertyLocation::kField) | in PropertyDetails() 273 AttributesField::encode(attributes) | in PropertyDetails() 277 ConstnessField::encode(PropertyConstness::kMutable) | in PropertyDetails() 278 DictionaryStorageField::encode(dictionary_index) | in PropertyDetails() 279 PropertyCellTypeField::encode(cell_type)) {} in PropertyDetails() 285 : value_(KindField::encode(kind) | in PropertyDetails() 286 LocationField::encode(PropertyLocation::kField) | in PropertyDetails() 287 AttributesField::encode(attributes) | in PropertyDetails() 288 ConstnessField::encode(constnes in PropertyDetails() [all...] |
/third_party/node/test/parallel/ |
H A D | test-punycode.js | 35 assert.strictEqual(punycode.encode('ü'), 'tda'); 36 assert.strictEqual(punycode.encode('Goethe'), 'Goethe-'); 37 assert.strictEqual(punycode.encode('Bücher'), 'Bcher-kva'); 39 punycode.encode( 44 assert.strictEqual(punycode.encode('日本語'), 'wgv71a119e'); 45 assert.strictEqual(punycode.encode('?'), 'x73l'); 218 encode: (test) => assert.strictEqual( 219 punycode.encode(test.decoded), 255 assert.strictEqual(punycode.ucs2.encode([0x61]), 'a'); 257 assert.strictEqual(punycode.ucs2.encode([ [all...] |
/third_party/skia/src/utils/ |
H A D | SkBase64.cpp | 113 const char* encode; 115 encode = default_encode; 117 encode = encodeMap; 130 *dst++ = encode[a]; 131 *dst++ = encode[b]; 132 *dst++ = encode[c]; 133 *dst++ = encode[d]; 145 *dst++ = encode[a >> 2]; 146 *dst++ = encode[(k1 | a << 4) & 0x3F]; 147 *dst++ = encode[k [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
H A D | IceRegistersX8632.h | 33 /// to binary encode register operands in instructions. 35 #define X(val, encode, name, base, scratch, preserved, stackptr, frameptr, \ 45 /// binary encode register operands in instructions. 47 #define X(val, encode, name, base, scratch, preserved, stackptr, frameptr, \ 50 Encoded_##val = encode, 57 /// binary encode register operands in instructions. 59 #define X(val, encode, name, base, scratch, preserved, stackptr, frameptr, \ 62 Encoded_##val = encode, 69 /// binary encode register operands in instructions. 71 #define X(val, encode, nam [all...] |
H A D | IceRegistersARM32.h | 28 /// to binary encode register operands in instructions. 30 #define X(val, encode, name, cc_arg, scratch, preserved, stackptr, frameptr, \ 42 /// binary encode register operands in instructions. 44 #define X(val, encode, name, cc_arg, scratch, preserved, stackptr, frameptr, \ 46 Encoded_##val = encode, 53 /// to binary encode register operands in instructions. 55 #define X(val, encode, name, cc_arg, scratch, preserved, stackptr, frameptr, \ 57 Encoded_##val = encode, 64 /// to binary encode register operands in instructions. 66 #define X(val, encode, nam [all...] |
H A D | IceRegistersX8664.h | 33 /// to binary encode register operands in instructions. 35 #define X(val, encode, name, base, scratch, preserved, stackptr, frameptr, \ 45 /// binary encode register operands in instructions. 47 #define X(val, encode, name, base, scratch, preserved, stackptr, frameptr, \ 50 Encoded_##val = encode, 57 /// binary encode register operands in instructions. 59 #define X(val, encode, name, base, scratch, preserved, stackptr, frameptr, \ 62 Encoded_##val = encode, 69 /// binary encode register operands in instructions. 71 #define X(val, encode, nam [all...] |
/third_party/protobuf/ruby/tests/ |
H A D | encode_decode_test.rb | 17 from = A::B::C::TestUnknown.encode(unknown_msg) 20 to = A::B::C::TestMessage.encode(m) 27 from = A::B::C::TestUnknown.encode(unknown_msg) 30 to = A::B::C::TestMessage.encode(m.optional_msg) 37 from = A::B::C::TestUnknown.encode(unknown_msg) 40 to = A::B::C::TestMessage.encode(m.repeated_msg[0]) 47 from = A::B::C::TestUnknown.encode(unknown_msg) 50 to = A::B::C::TestMessage.encode(m.map_string_msg['']) 57 from = A::B::C::TestUnknown.encode(unknown_msg) 60 to = A::B::C::TestMessage.encode( [all...] |
/third_party/node/deps/v8/src/interpreter/ |
H A D | bytecode-flags.cc | 19 uint8_t result = FlagsBits::encode(runtime_flags); in Encode() 20 result |= FastCloneSupportedBit::encode(use_fast_shallow_clone); in Encode() 27 uint8_t result = FlagsBits::encode(runtime_flags); in Encode() 28 result |= FastCloneSupportedBit::encode(fast_clone_supported); in Encode() 35 uint8_t result = PretenuredBit::encode(pretenure); in Encode() 37 result |= FastNewClosureBit::encode(true); in Encode() 83 return LanguageModeBit::encode(language_mode) | in Encode() 84 LookupHoistingModeBit::encode(static_cast<bool>(lookup_hoisting_mode)); in Encode()
|
/third_party/lzma/CPP/7zip/Common/ |
H A D | CreateCoder.cpp | 163 bool encode,
in FindMethod_Index() 172 if ((encode ? codec.CreateEncoder : codec.CreateDecoder)
in FindMethod_Index() 190 if ((encode ? codec.EncoderIsAssigned : codec.DecoderIsAssigned)
in FindMethod_Index() 208 CMethodId methodId, bool encode)
in FindMethod_Index() 214 if (codec.Id == methodId && (encode ? codec.CreateEncoder : codec.CreateDecoder))
in FindMethod_Index() 226 if (codec.Id == methodId && (encode ? codec.EncoderIsAssigned : codec.DecoderIsAssigned))
in FindMethod_Index() 334 unsigned i, bool encode,
in CreateCoder_Index() 347 if (encode)
in CreateCoder_Index() 383 if (encode)
in CreateCoder_Index() 426 unsigned index, bool encode,
in CreateCoder_Index() 160 FindMethod_Index( DECL_EXTERNAL_CODECS_LOC_VARS const AString &name, bool encode, CMethodId &methodId, UInt32 &numStreams, bool &isFilter) FindMethod_Index() argument 206 FindMethod_Index( DECL_EXTERNAL_CODECS_LOC_VARS CMethodId methodId, bool encode) FindMethod_Index() argument 332 CreateCoder_Index( DECL_EXTERNAL_CODECS_LOC_VARS unsigned i, bool encode, CMyComPtr<ICompressFilter> &filter, CCreatedCoder &cod) CreateCoder_Index() argument 424 CreateCoder_Index( DECL_EXTERNAL_CODECS_LOC_VARS unsigned index, bool encode, CCreatedCoder &cod) CreateCoder_Index() argument 447 CreateCoder_Id( DECL_EXTERNAL_CODECS_LOC_VARS CMethodId methodId, bool encode, CMyComPtr<ICompressFilter> &filter, CCreatedCoder &cod) CreateCoder_Id() argument 460 CreateCoder_Id( DECL_EXTERNAL_CODECS_LOC_VARS CMethodId methodId, bool encode, CCreatedCoder &cod) CreateCoder_Id() argument 483 CreateCoder_Id( DECL_EXTERNAL_CODECS_LOC_VARS CMethodId methodId, bool encode, CMyComPtr<ICompressCoder> &coder) CreateCoder_Id() argument 497 CreateFilter( DECL_EXTERNAL_CODECS_LOC_VARS CMethodId methodId, bool encode, CMyComPtr<ICompressFilter> &filter) CreateFilter() argument [all...] |
/third_party/elfutils/libelf/ |
H A D | note_xlate.h | 30 elf_cvt_note (void *dest, const void *src, size_t len, int encode, in elf_cvt_note() argument 41 encode); in elf_cvt_note() 42 const Elf32_Nhdr *n = encode ? src : dest; in elf_cvt_note() 89 elf_cvt_note4 (void *dest, const void *src, size_t len, int encode) in elf_cvt_note4() argument 91 elf_cvt_note (dest, src, len, encode, false); in elf_cvt_note4() 95 elf_cvt_note8 (void *dest, const void *src, size_t len, int encode) in elf_cvt_note8() argument 97 elf_cvt_note (dest, src, len, encode, true); in elf_cvt_note8()
|
/third_party/python/Lib/encodings/ |
H A D | utf_8_sig.py | 14 def encode(input, errors='strict'): function 31 def encode(self, input, final=False): member in IncrementalEncoder 89 del self.encode 93 def encode(self, input, errors='strict'): member in StreamWriter 94 self.encode = codecs.utf_8_encode 95 return encode(input, errors) 124 encode=encode,
|
H A D | mbcs.py | 18 encode = mbcs_encode variable 24 def encode(self, input, final=False): member in IncrementalEncoder 31 encode = mbcs_encode variable in StreamWriter 41 encode=encode,
|
H A D | oem.py | 12 encode = oem_encode variable 18 def encode(self, input, final=False): member in IncrementalEncoder 25 encode = oem_encode variable in StreamWriter 35 encode=encode,
|