Home
last modified time | relevance | path

Searched refs:marshal (Results 1 – 25 of 174) sorted by relevance

1234567

/external/python/cpython2/Lib/test/
Dtest_marshal.py4 import marshal
20 s = marshal.dumps(expected)
21 got = marshal.loads(s)
23 marshal.dump(expected, file(test_support.TESTFN, "wb"))
24 got = marshal.load(file(test_support.TESTFN, "rb"))
46 got = marshal.loads(s)
55 new = marshal.loads(marshal.dumps(b))
58 marshal.dump(b, file(test_support.TESTFN, "wb"))
59 new = marshal.load(file(test_support.TESTFN, "rb"))
71 s = marshal.dumps(f)
[all …]
Dtest_getargs.py15 import marshal
25 self.assertRaises(UnicodeError, marshal.loads, arg)
Dsortperf.py11 import marshal
31 marshal.dump(result, fp)
43 result = marshal.load(fp)
Dtest_imp.py69 import marshal
70 imp.reload(marshal)
/external/python/cpython3/Lib/test/
Dtest_marshal.py4 import marshal
17 new = marshal.loads(marshal.dumps(sample, *extra))
21 marshal.dump(sample, f, *extra)
23 new = marshal.load(f)
44 got = marshal.loads(s)
51 got = marshal.loads(b'I\xfe\xdc\xba\x98\x76\x54\x32\x10')
53 got = marshal.loads(b'I\x01\x23\x45\x67\x89\xab\xcd\xef')
55 got = marshal.loads(b'I\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f')
57 got = marshal.loads(b'I\xf7\xe6\xd5\xc4\xb3\xa2\x91\x80')
75 s = marshal.dumps(f, 2)
[all …]
Dsortperf.py11 import marshal
31 marshal.dump(result, fp)
43 result = marshal.load(fp)
/external/grpc-grpc/src/ruby/lib/grpc/generic/
Dclient_stub.rb148 def request_response(method, req, marshal, unmarshal, argument
154 c = new_active_call(method, marshal, unmarshal,
225 def client_streamer(method, requests, marshal, unmarshal, argument
231 c = new_active_call(method, marshal, unmarshal,
316 def server_streamer(method, req, marshal, unmarshal, argument
323 c = new_active_call(method, marshal, unmarshal,
438 def bidi_streamer(method, requests, marshal, unmarshal, argument
445 c = new_active_call(method, marshal, unmarshal,
485 def new_active_call(method, marshal, unmarshal, argument
497 ActiveCall.new(call, marshal, unmarshal, deadline,
Dservice.rb164 marshal = desc.marshal_proc
170 request_response(route, req, marshal, unmarshal, metadata)
175 client_streamer(route, reqs, marshal, unmarshal, metadata)
180 server_streamer(route, req, marshal, unmarshal, metadata, &blk)
185 bidi_streamer(route, reqs, marshal, unmarshal, metadata, &blk)
/external/mesa3d/src/mapi/glapi/gen/
Dmarshal_XML.py59 self.marshal = element.get('marshal')
68 if self.marshal not in (None, 'draw'):
69 return self.marshal
82 and not (self.marshal == 'draw'
Dgl_marshal.py204 p.size_string(marshal = 1), p.get_base_type_string(),
209 p.size_string(marshal = 1), p.get_base_type_string(),
251 … out('variable_data += {0};'.format(p.size_string(False, marshal = 1)))
253 out('variable_data += {0};'.format(p.size_string(False, marshal = 1)))
289 out('int {0}_size = {1};'.format(p.name, p.size_string(marshal = 1)))
/external/starlark-go/lib/proto/cmd/star2proto/
Dstar2proto.go116 var marshal func(protoreflect.ProtoMessage) ([]byte, error)
119 marshal = proto.Marshal
122 marshal = prototext.MarshalOptions{Multiline: true, Indent: "\t"}.Marshal
125 marshal = protojson.MarshalOptions{Multiline: true, Indent: "\t"}.Marshal
130 data, err := marshal(msg)
/external/boringssl/src/ssl/test/runner/
Dhandshake_client.go465 helloBytes = v2Hello.marshal()
483 helloBytes = hello.marshal()
556 helloBytes = hello.marshal()
660 …on, hello, pskCipherSuite, session.masterSecret, helloBytes, helloRetryRequest.marshal(), c.config)
662 secondHelloBytes = hello.marshal()
763 hs.writeServerHash(helloRetryRequest.marshal())
772 hs.writeServerHash(hs.serverHello.marshal())
930 hs.writeServerHash(hs.serverHello.marshal())
950 hs.writeServerHash(encryptedExtensions.marshal())
985 hs.writeServerHash(certReq.marshal())
[all …]
Dhandshake_server.go170 c.writeRecord(recordTypeHandshake, helloVerifyRequest.marshal())
442 hs.writeClientHash(hs.clientHello.marshal())
612 oldClientHelloBytes := hs.clientHello.marshal()
613 hs.writeServerHash(helloRetryRequest.marshal())
615 data := helloRetryRequest.marshal()
618 c.writeRecord(recordTypeHandshake, helloRetryRequest.marshal())
640 hs.writeClientHash(newClientHello.marshal())
698 …o, hs.sessionState, binderToVerify, oldClientHelloBytes, helloRetryRequest.marshal()); err != nil {
834 helloBytes := hs.hello.marshal()
862 hs.writeServerHash(encryptedExtensions.marshal())
[all …]
Dhandshake_messages.go359 func (m *clientHelloMsg) marshal() []byte { func
1111 func (m *serverHelloMsg) marshal() []byte { func
1179 m.extensions.marshal(extensions)
1294 return serverHelloECHConf.marshal()
1303 func (m *encryptedExtensionsMsg) marshal() []byte { func
1313 m.extensions.marshal(extensions)
1362 func (m *serverExtensions) marshal(extensions *byteBuilder) { func
1658 func (m *clientEncryptedExtensionsMsg) marshal() (x []byte) { func
1727 func (m *helloRetryRequestMsg) marshal() []byte { func
1870 func (m *certificateMsg) marshal() (x []byte) { func
[all …]
/external/libchrome/third_party/jinja2/
Dbccache.py22 import marshal
32 marshal_dump = marshal.dump
33 marshal_load = marshal.load
38 marshal.dump(code, f)
40 f.write(marshal.dumps(code))
44 return marshal.load(f)
45 return marshal.loads(f.read())
/external/python/cpython2/Lib/plat-mac/
Dappletrawmain.py14 import marshal
58 __code__ = marshal.load(_fp)
63 del argvemulator, os, sys, marshal, _dir, _fp
/external/wayland/tests/
Dconnection-test.c200 marshal(struct marshal_data *data, const char *format, int size, ...) in marshal() function
231 marshal(&data, "i", 12, 42); in TEST()
234 marshal(&data, "u", 12, 55); in TEST()
237 marshal(&data, "s", 20, "frappo"); in TEST()
242 marshal(&data, "o", 12, &object); in TEST()
245 marshal(&data, "n", 12, &object); in TEST()
248 marshal(&data, "?n", 12, NULL); in TEST()
253 marshal(&data, "a", 20, &array); in TEST()
317 marshal(&data, "?o", 12, NULL); in TEST()
320 marshal(&data, "?a", 12, NULL); in TEST()
[all …]
/external/python/cpython3/Doc/library/
Dmarshal.rst1 :mod:`marshal` --- Internal Python object serialization
4 .. module:: marshal
23 :mod:`shelve`. The :mod:`marshal` module exists mainly to support reading and
25 Therefore, the Python maintainers reserve the right to modify the marshal format
29 supports a substantially wider range of objects than marshal.
33 The :mod:`marshal` module is not intended to be secure against erroneous or
73 (e.g. because the data has a different Python version's incompatible marshal
115 around in a self-contained form. Strictly speaking, "to marshal" means to
Dpersistence.rst8 persistent form on disk. The :mod:`pickle` and :mod:`marshal` modules can turn
21 marshal.rst
/external/python/cpython2/Doc/library/
Dmarshal.rst2 :mod:`marshal` --- Internal Python object serialization
5 .. module:: marshal
23 :mod:`shelve`. The :mod:`marshal` module exists mainly to support reading and
25 Therefore, the Python maintainers reserve the right to modify the marshal format
29 supports a substantially wider range of objects than marshal.
33 The :mod:`marshal` module is not intended to be secure against erroneous or
87 (e.g. because the data has a different Python version's incompatible marshal
132 around in a self-contained form. Strictly speaking, "to marshal" means to
Dpersistence.rst9 persistent form on disk. The :mod:`pickle` and :mod:`marshal` modules can turn
24 marshal.rst
/external/python/cpython3/Tools/pynche/
DSwitchboard.py45 import marshal
65 self.__optiondb = marshal.load(fp)
124 marshal.dump(self.__optiondb, fp)
/external/python/cpython2/Tools/pynche/
DSwitchboard.py46 import marshal
66 self.__optiondb = marshal.load(fp)
125 marshal.dump(self.__optiondb, fp)
/external/python/cpython2/Tools/compiler/
Ddumppyc.py3 import marshal
17 co = marshal.load(f)
/external/python/cpython3/Tools/freeze/
Dmakefreeze.py1 import marshal
46 str = marshal.dumps(m.__code__)

1234567