/external/libchrome/base/ |
D | pickle_unittest.cc | 43 void VerifyResult(const Pickle& pickle) { in VerifyResult() argument 44 PickleIterator iter(pickle); in VerifyResult() 113 Pickle pickle; in TEST() local 115 pickle.WriteBool(testbool1); in TEST() 116 pickle.WriteBool(testbool2); in TEST() 117 pickle.WriteInt(testint); in TEST() 118 pickle.WriteLong(testlong); in TEST() 119 pickle.WriteUInt16(testuint16); in TEST() 120 pickle.WriteUInt32(testuint32); in TEST() 121 pickle.WriteInt64(testint64); in TEST() [all …]
|
/external/libchrome/ipc/ |
D | ipc_message_protobuf_utils_unittest.cc | 91 base::Pickle pickle; in TEST() local 92 IPC::WriteParam(&pickle, message); in TEST() 94 base::PickleIterator iter(pickle); in TEST() 96 ASSERT_TRUE(IPC::ReadParam(&pickle, &iter, &output)); in TEST() 111 base::Pickle pickle; in TEST() local 112 IPC::WriteParam(&pickle, message); in TEST() 114 base::PickleIterator iter(pickle); in TEST() 116 ASSERT_TRUE(IPC::ReadParam(&pickle, &iter, &output)); in TEST() 126 base::Pickle pickle; in TEST() local 127 IPC::WriteParam(&pickle, message); in TEST() [all …]
|
D | ipc_message_utils_unittest.cc | 115 base::Pickle pickle; in TEST() local 116 IPC::WriteParam(&pickle, opt); in TEST() 123 base::PickleIterator iter(pickle); in TEST() 124 EXPECT_TRUE(IPC::ReadParam(&pickle, &iter, &unserialized_opt)); in TEST() 130 base::Pickle pickle; in TEST() local 131 IPC::WriteParam(&pickle, opt); in TEST() 138 base::PickleIterator iter(pickle); in TEST() 139 EXPECT_TRUE(IPC::ReadParam(&pickle, &iter, &unserialized_opt)); in TEST() 211 base::Pickle pickle; in TEST() local 212 IPC::WriteParam(&pickle, token); in TEST() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_pickle.py | 1 import pickle 19 return pickle.dumps(arg, proto) 23 return pickle.loads(buf) 25 module = pickle 28 bad_mark_errors = (IndexError, pickle.UnpicklingError, 30 truncated_errors = (pickle.UnpicklingError, EOFError, 39 bad_mark_errors = (IndexError, pickle.UnpicklingError, 41 truncated_errors = (pickle.UnpicklingError, EOFError, 48 u = pickle.Unpickler(f) 55 p = pickle.Pickler(f, proto) [all …]
|
D | test_cfgparser.py | 615 import pickle 617 for proto in range(pickle.HIGHEST_PROTOCOL + 1): 618 pickled = pickle.dumps(e1, proto) 619 e2 = pickle.loads(pickled) 624 import pickle 626 for proto in range(pickle.HIGHEST_PROTOCOL + 1): 627 pickled = pickle.dumps(e1, proto) 628 e2 = pickle.loads(pickled) 635 import pickle 637 for proto in range(pickle.HIGHEST_PROTOCOL + 1): [all …]
|
D | test_xpickle.py | 11 import pickle 45 return pickle.loads(buf) 53 return pickle.dumps(arg, proto) 143 pickle = self.dumps(value, 0) 144 got = self.loads(pickle) 149 pickle = self.dumps(value, proto) 150 got = self.loads(pickle) 195 module = pickle 208 module = pickle 221 module = pickle [all …]
|
D | pickletester.py | 3 import pickle 24 assert pickle.HIGHEST_PROTOCOL == cPickle.HIGHEST_PROTOCOL == 2 25 protocols = range(pickle.HIGHEST_PROTOCOL + 1) 80 def opcode_in_pickle(code, pickle): argument 81 for op, dummy, dummy in pickletools.genops(pickle): 87 def count_opcode(code, pickle): argument 89 for op, dummy, dummy in pickletools.genops(pickle): 1085 pickle = self.dumps(n, proto) 1086 got = self.loads(pickle) 1103 pickle = self.dumps(value, proto) [all …]
|
/external/v8/tools/clang/plugins/tests/ |
D | ipc.cpp | 64 void WriteParam(base::Pickle* pickle, const T& value) { in WriteParam() argument 65 ParamTraits<T>::Write(pickle, value); in WriteParam() 80 static void Write(base::Pickle* pickle, const Data& p) { in Write() 82 WriteParam(pickle, p.value); // OK in Write() 83 WriteParam(pickle, p.size); // ERROR in Write() 94 static void Write(base::Pickle* pickle, const Container<T>& container) { in Write() 96 IPC::WriteParam(pickle, container.value); // NOT CHECKED in Write() 97 WriteParam(pickle, container.value); // NOT CHECKED in Write() 100 IPC::WriteParam<T>(pickle, container.value); // NOT CHECKED in Write() 101 WriteParam<T>(pickle, container.value); // NOT CHECKED in Write() [all …]
|
/external/python/cpython3/Doc/library/ |
D | pickletools.rst | 1 :mod:`pickletools` --- Tools for pickle developers 5 :synopsis: Contains extensive comments about the pickle protocols and 6 pickle-machine opcodes, as well as some useful functions. 14 :mod:`pickle` module, some lengthy comments about the implementation, and a 16 are useful for Python core developers who are working on the :mod:`pickle`; 17 ordinary users of the :mod:`pickle` module probably won't find the 26 disassemble the contents of one or more pickle files. Note that if 27 you want to see the Python object stored in the pickle rather than the 28 details of pickle format, you may want to use ``-m pickle`` instead. 29 However, when the pickle file that you want to examine comes from an [all …]
|
D | copyreg.rst | 1 :mod:`copyreg` --- Register :mod:`pickle` support functions 5 :synopsis: Register pickle support functions. 10 module: pickle 16 specific objects. The :mod:`pickle` and :mod:`copy` modules use those functions 28 .. function:: pickle(type, function, constructor=None) 39 See the :mod:`pickle` module for more details on the interface 41 :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler 42 object or subclass of :class:`pickle.Pickler` can also be used for 48 The example below would like to show how to register a pickle function and how 51 >>> import copyreg, copy, pickle [all …]
|
D | pickle.rst | 1 :mod:`pickle` --- Python object serialization 4 .. module:: pickle 10 **Source code:** :source:`Lib/pickle.py` 22 The :mod:`pickle` module implements binary protocols for serializing and 33 The :mod:`pickle` module is not secure against erroneous or maliciously 45 general :mod:`pickle` should always be the preferred way to serialize Python 49 The :mod:`pickle` module differs from :mod:`marshal` in several significant ways: 51 * The :mod:`pickle` module keeps track of the objects it has already serialized, 60 serialized. :mod:`pickle` stores such objects only once, and ensures that all 65 instances. :mod:`pickle` can save and restore class instances transparently, [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_pickletools.py | 1 import pickle 10 return pickletools.optimize(pickle.dumps(arg, proto)) 13 return pickle.loads(buf, **kwds) 24 for proto in range(pickle.HIGHEST_PROTOCOL + 1): 25 pickled = pickle.dumps(data, proto) 26 unpickled = pickle.loads(pickled) 31 unpickled2 = pickle.loads(pickled2) 34 self.assertNotIn(pickle.LONG_BINGET, pickled2) 35 self.assertNotIn(pickle.LONG_BINPUT, pickled2) 52 self.assertIn(pickle.BINPUT, pickled) [all …]
|
D | test_list.py | 3 import pickle 83 for proto in range(pickle.HIGHEST_PROTOCOL + 1): 86 d = pickle.dumps((itorig, orig), proto) 87 it, a = pickle.loads(d) 94 d = pickle.dumps((itorig, orig), proto) 95 it, a = pickle.loads(d) 103 d = pickle.dumps((itorig, orig), proto) 104 it, a = pickle.loads(d) 111 d = pickle.dumps((itorig, orig), proto) 112 it, a = pickle.loads(d) [all …]
|
D | test_pickle.py | 4 import pickle 31 dump = staticmethod(pickle._dump) 32 dumps = staticmethod(pickle._dumps) 33 load = staticmethod(pickle._load) 34 loads = staticmethod(pickle._loads) 35 Pickler = pickle._Pickler 36 Unpickler = pickle._Unpickler 41 unpickler = pickle._Unpickler 43 truncated_errors = (pickle.UnpicklingError, EOFError, 55 pickler = pickle._Pickler [all …]
|
D | pickletester.py | 7 import pickle 24 from pickle import bytes_types 32 protocols = range(pickle.HIGHEST_PROTOCOL + 1) 36 def opcode_in_pickle(code, pickle): argument 37 for op, dummy, dummy in pickletools.genops(pickle): 43 def count_opcode(code, pickle): argument 45 for op, dummy, dummy in pickletools.genops(pickle): 834 self.assertEqual(self.loads(pickle.BINSTRING + 836 b'x' * 300 + pickle.STOP, 863 self.check_unpickling_error((pickle.UnpicklingError, OverflowError), [all …]
|
/external/python/cpython2/Doc/library/ |
D | pickletools.rst | 1 :mod:`pickletools` --- Tools for pickle developers 5 :synopsis: Contains extensive comments about the pickle protocols and pickle-machine 16 :mod:`pickle` module, some lengthy comments about the implementation, and a few 18 useful for Python core developers who are working on the :mod:`pickle` and 19 :mod:`cPickle` implementations; ordinary users of the :mod:`pickle` module 23 .. function:: dis(pickle, out=None, memo=None, indentlevel=4) 25 Outputs a symbolic disassembly of the pickle to the file-like object *out*, 26 defaulting to ``sys.stdout``. *pickle* can be a string or a file-like object. 27 *memo* can be a Python dictionary that will be used as the pickle's memo; it can 33 .. function:: genops(pickle) [all …]
|
D | copy_reg.rst | 1 :mod:`copy_reg` --- Register :mod:`pickle` support functions 5 :synopsis: Register pickle support functions. 13 module: pickle 18 specific objects. The :mod:`pickle`, :mod:`cPickle`, and :mod:`copy` modules 30 .. function:: pickle(type, function[, constructor]) 34 handled differently; see the documentation for the :mod:`pickle` module for 43 See the :mod:`pickle` module for more details on the interface expected of 49 The example below would like to show how to register a pickle function and how 52 >>> import copy_reg, copy, pickle 61 >>> copy_reg.pickle(C, pickle_c) [all …]
|
D | pickle.rst | 1 :mod:`pickle` --- Python object serialization 12 .. module:: pickle 17 The :mod:`pickle` module implements a fundamental, but powerful algorithm for 25 This documentation describes both the :mod:`pickle` module and the 30 The :mod:`pickle` module is not secure against erroneous or maliciously 38 The :mod:`pickle` module has an optimized cousin called the :mod:`cPickle` 40 1000 times faster than :mod:`pickle`. However it does not support subclassing 46 where necessary. In the following discussions, we use the term "pickle" to 47 collectively describe the :mod:`pickle` and :mod:`cPickle` modules. 52 general :mod:`pickle` should always be the preferred way to serialize Python [all …]
|
/external/libchrome/base/metrics/ |
D | histogram_base_unittest.cc | 46 Pickle pickle; in TEST_F() local 47 histogram->SerializeInfo(&pickle); in TEST_F() 49 PickleIterator iter(pickle); in TEST_F() 55 PickleIterator iter2(pickle); in TEST_F() 71 Pickle pickle; in TEST_F() local 72 histogram->SerializeInfo(&pickle); in TEST_F() 74 PickleIterator iter(pickle); in TEST_F() 80 PickleIterator iter2(pickle); in TEST_F() 93 Pickle pickle; in TEST_F() local 94 histogram->SerializeInfo(&pickle); in TEST_F() [all …]
|
D | histogram_delta_serialization.cc | 62 Pickle pickle(it->data(), checked_cast<int>(it->size())); in DeserializeAndAddSamples() local 63 PickleIterator iter(pickle); in DeserializeAndAddSamples() 74 Pickle pickle; in RecordDelta() local 75 histogram.SerializeInfo(&pickle); in RecordDelta() 76 snapshot.Serialize(&pickle); in RecordDelta() 78 std::string(static_cast<const char*>(pickle.data()), pickle.size())); in RecordDelta()
|
/external/python/cpython2/Lib/bsddb/test/ |
D | test_dbtables.py | 26 pickle = cPickle variable 28 import pickle 30 import pickle 69 self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159, 1)}) 71 self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159, 82 colval = pickle.loads(values[0][colname]) 84 colval = pickle.loads(bytes(values[0][colname], "iso8859-1")) 98 {col0: pickle.dumps(8, 1), col1: 'no', col2: 'Penguin'}, 99 {col0: pickle.dumps(-1, 1), col1: 'no', col2: 'Turkey'}, 100 {col0: pickle.dumps(9, 1), col1: 'yes', col2: 'SR-71A Blackbird'} [all …]
|
D | test_pickle.py | 3 import pickle 34 def _base_test_pickle_DBError(self, pickle): argument 44 pickledEgg = pickle.dumps(egg) 46 rottenEgg = pickle.loads(pickledEgg) 56 self._base_test_pickle_DBError(pickle=pickle) 60 self._base_test_pickle_DBError(pickle=cPickle)
|
/external/python/cpython3/Lib/test/test_email/ |
D | test_pickleable.py | 4 import pickle 33 for proto in range(pickle.HIGHEST_PROTOCOL + 1): 34 p = pickle.dumps(header, proto) 35 h = pickle.loads(p) 69 for proto in range(pickle.HIGHEST_PROTOCOL + 1): 70 p = pickle.dumps(msg, proto) 71 msg2 = pickle.loads(p)
|
/external/python/pyasn1/tests/type/ |
D | test_useful.py | 8 import pickle 87 serialised = pickle.dumps(old_asn1) 89 new_asn1 = pickle.loads(serialised) 95 serialised = pickle.dumps(old_asn1) 97 new_asn1 = pickle.loads(serialised) 126 serialised = pickle.dumps(old_asn1) 128 new_asn1 = pickle.loads(serialised) 134 serialised = pickle.dumps(old_asn1) 136 new_asn1 = pickle.loads(serialised)
|
/external/scapy/doc/scapy/ |
D | Makefile | 14 .PHONY: help clean html web pickle htmlhelp latex changes linkcheck 34 pickle: target 35 mkdir -p _build/pickle _build/doctrees 36 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle 42 web: pickle
|