Searched refs:encode (Results 1 - 7 of 7) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_pytypes.py73 assert m.str_from_string().encode().decode() == "baz"
74 assert m.str_from_bytes().encode().decode() == "boo"
H A Dtest_builtin_casters.py109 assert m.string_length(u'💩'.encode("utf8")) == 4
/gem5/ext/ply/test/
H A Dtestlex.py18 result = result.encode('ascii')
20 expected = expected.encode('ascii')
/gem5/src/python/m5/ext/pyfdt/
H A Dpyfdt.py197 blob += chars.encode('ascii') + pack('b', 0)
499 blob += self.get_name().encode('ascii') + pack('b', 0)
793 blob_dt + blob_strings.encode('ascii')
/gem5/ext/mcpat/
H A DxmlParser.h717 * standard text (using "encode"). To retrieve the original binary data from the
736 XMLSTR encode(unsigned char *inByteBuf, unsigned int inByteLen, char formatted=0); ///< returns a pointer to an internal buffer containing the base64 string containing the binary data encoded from "inByteBuf"
/gem5/configs/common/cores/arm/
H A DHPI.py96 def encode(opcode_string): function in function:encode_opcode
100 return encode
/gem5/ext/ply/ply/
H A Dyacc.py2804 sig.update(self.start.encode('latin-1'))
2806 sig.update("".join(["".join(p) for p in self.prec]).encode('latin-1'))
2808 sig.update(" ".join(self.tokens).encode('latin-1'))
2811 sig.update(f[3].encode('latin-1'))

Completed in 35 milliseconds