/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/ |
D | PoloUtil.java | 95 public static byte[] hexStringToBytes(String hexstr) { in hexStringToBytes() argument 96 if (hexstr == null || hexstr.length() == 0 || (hexstr.length() % 2) != 0) { in hexStringToBytes() 100 byte[] result = new byte[hexstr.length() / 2]; in hexStringToBytes() 102 result[i] = (byte) Integer.parseInt(hexstr.substring(2 * i, 2 * (i + 1)), in hexStringToBytes()
|
/external/python/cpython3/Modules/clinic/ |
D | binascii.c.h | 422 binascii_a2b_hex_impl(PyObject *module, Py_buffer *hexstr); 428 Py_buffer hexstr = {NULL, NULL}; in binascii_a2b_hex() local 430 if (!PyArg_Parse(arg, "O&:a2b_hex", ascii_buffer_converter, &hexstr)) { in binascii_a2b_hex() 433 return_value = binascii_a2b_hex_impl(module, &hexstr); in binascii_a2b_hex() 437 if (hexstr.obj) in binascii_a2b_hex() 438 PyBuffer_Release(&hexstr); in binascii_a2b_hex() 455 binascii_unhexlify_impl(PyObject *module, Py_buffer *hexstr); 461 Py_buffer hexstr = {NULL, NULL}; in binascii_unhexlify() local 463 if (!PyArg_Parse(arg, "O&:unhexlify", ascii_buffer_converter, &hexstr)) { in binascii_unhexlify() 466 return_value = binascii_unhexlify_impl(module, &hexstr); in binascii_unhexlify() [all …]
|
/external/curl/lib/ |
D | escape.c | 166 char hexstr[3]; in Curl_urldecode() local 168 hexstr[0] = string[1]; in Curl_urldecode() 169 hexstr[1] = string[2]; in Curl_urldecode() 170 hexstr[2] = 0; in Curl_urldecode() 172 hex = strtoul(hexstr, &ptr, 16); in Curl_urldecode()
|
/external/python/cpython2/Lib/test/ |
D | test_md5.py | 10 def hexstr(s): function 22 self.assertEqual(hexstr(md5(s).digest()), expected) 41 self.assertEqual(hexstr(m.digest()), h)
|
D | test_hashlib.py | 28 def hexstr(s): function 147 self.assertTrue(hexstr(h.digest()) == h.hexdigest())
|
/external/google-breakpad/src/client/linux/microdump_writer/ |
D | microdump_writer.cc | 126 char hexstr[sizeof(T) * 2 + 1]; in LogAppend() local 128 hexstr[i] = HEX[static_cast<uint8_t>(value) & 0x0F]; in LogAppend() 129 hexstr[sizeof(T) * 2] = '\0'; in LogAppend() 130 LogAppend(hexstr); in LogAppend()
|
/external/python/cpython3/Doc/library/ |
D | binascii.rst | 153 .. function:: a2b_hex(hexstr) 154 unhexlify(hexstr) 156 Return the binary data represented by the hexadecimal string *hexstr*. This 157 function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even number
|
/external/python/cpython2/Doc/library/ |
D | binascii.rst | 147 .. function:: a2b_hex(hexstr) 148 unhexlify(hexstr) 150 Return the binary data represented by the hexadecimal string *hexstr*. This 151 function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even number
|
/external/python/cpython3/Modules/ |
D | binascii.c | 1152 binascii_a2b_hex_impl(PyObject *module, Py_buffer *hexstr) in binascii_a2b_hex_impl() argument 1161 argbuf = hexstr->buf; in binascii_a2b_hex_impl() 1162 arglen = hexstr->len; in binascii_a2b_hex_impl() 1206 binascii_unhexlify_impl(PyObject *module, Py_buffer *hexstr) in binascii_unhexlify_impl() argument 1209 return binascii_a2b_hex_impl(module, hexstr); in binascii_unhexlify_impl()
|
D | _tkinter.c | 995 PyObject *hexstr; in asBignumObj() local 1000 hexstr = _PyLong_Format(value, 16); in asBignumObj() 1001 if (hexstr == NULL) in asBignumObj() 1003 hexchars = PyUnicode_AsUTF8(hexstr); in asBignumObj() 1005 Py_DECREF(hexstr); in asBignumObj() 1012 Py_DECREF(hexstr); in asBignumObj() 1016 Py_DECREF(hexstr); in asBignumObj()
|
/external/capstone/bindings/vb6/ |
D | mMisc.bas | 157 Public Function toBytes(ByVal hexstr, Optional strRet As Boolean = False) 180 str = Replace(hexstr, vbCr, Empty)
|
/external/one-true-awk/ |
D | proto.h | 46 extern int hexstr(uschar **);
|
D | b.c | 234 int hexstr(uschar **pp) /* find and eval hex string at pp, return new p */ in hexstr() function 273 c = hexstr(&p); /* this adds a null if number is invalid */ in quoted()
|
D | FIXES | 765 fixed silly bug in hex parsing in hexstr().
|
/external/python/cpython3/Lib/test/ |
D | test_hashlib.py | 46 def hexstr(s): function 220 self.assertEqual(hexstr(h.digest(16)), h.hexdigest(16)) 223 self.assertEqual(hexstr(h.digest()), h.hexdigest())
|
/external/python/cpython2/Modules/ |
D | _tkinter.c | 1054 PyObject *hexstr; in asBignumObj() local 1059 hexstr = _PyLong_Format(value, 16, 0, 1); in asBignumObj() 1060 if (hexstr == NULL) in asBignumObj() 1062 hexchars = PyString_AsString(hexstr); in asBignumObj() 1064 Py_DECREF(hexstr); in asBignumObj() 1071 Py_DECREF(hexstr); in asBignumObj() 1075 Py_DECREF(hexstr); in asBignumObj()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 1725 std::string hexstr(utohexstr(API.getZExtValue())); in printFPConstant() local 1727 if (hexstr.length() < numHex) in printFPConstant() 1728 O << std::string(numHex - hexstr.length(), '0'); in printFPConstant()
|
/external/scapy/scapy/layers/ |
D | l2.py | 600 … prn=lambda s_r: conf.padding_layer in s_r[1] and hexstr(s_r[1][conf.padding_layer].load),
|
/external/scapy/scapy/ |
D | packet.py | 551 def hexstr(x): function 559 …return pyx.text.text(XDSTART+x*XMUL, (YDUMP-y)*YMUL, r"\tt{%s}"%hexstr(txt), [pyx.text.size.Large])
|
D | utils.py | 166 def hexstr(x, onlyasc=0, onlyhex=0): function
|
/external/scapy/test/ |
D | regression.uts | 285 = Test hexstr function 286 hexstr(b"A\x00\xFFB") == "41 00 ff 42 A..B"
|