Home
last modified time | relevance | path

Searched refs:hexstr (Results 1 – 21 of 21) sorted by relevance

/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
DPoloUtil.java95 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/
Dbinascii.c.h422 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/
Descape.c166 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/
Dtest_md5.py10 def hexstr(s): function
22 self.assertEqual(hexstr(md5(s).digest()), expected)
41 self.assertEqual(hexstr(m.digest()), h)
Dtest_hashlib.py28 def hexstr(s): function
147 self.assertTrue(hexstr(h.digest()) == h.hexdigest())
/external/google-breakpad/src/client/linux/microdump_writer/
Dmicrodump_writer.cc126 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/
Dbinascii.rst153 .. 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/
Dbinascii.rst147 .. 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/
Dbinascii.c1152 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.c995 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/
DmMisc.bas157 Public Function toBytes(ByVal hexstr, Optional strRet As Boolean = False)
180 str = Replace(hexstr, vbCr, Empty)
/external/one-true-awk/
Dproto.h46 extern int hexstr(uschar **);
Db.c234 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()
DFIXES765 fixed silly bug in hex parsing in hexstr().
/external/python/cpython3/Lib/test/
Dtest_hashlib.py46 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.c1054 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/
DNVPTXAsmPrinter.cpp1725 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/
Dl2.py600 … prn=lambda s_r: conf.padding_layer in s_r[1] and hexstr(s_r[1][conf.padding_layer].load),
/external/scapy/scapy/
Dpacket.py551 def hexstr(x): function
559 …return pyx.text.text(XDSTART+x*XMUL, (YDUMP-y)*YMUL, r"\tt{%s}"%hexstr(txt), [pyx.text.size.Large])
Dutils.py166 def hexstr(x, onlyasc=0, onlyhex=0): function
/external/scapy/test/
Dregression.uts285 = Test hexstr function
286 hexstr(b"A\x00\xFFB") == "41 00 ff 42 A..B"