Home
last modified time | relevance | path

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

123456

/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/boringssl/src/ssl/test/runner/
Dhandshake_server.go171 c.writeRecord(recordTypeHandshake, helloVerifyRequest.marshal())
446 hs.writeClientHash(hs.clientHello.marshal())
614 oldClientHelloBytes := hs.clientHello.marshal()
615 hs.writeServerHash(helloRetryRequest.marshal())
616 c.writeRecord(recordTypeHandshake, helloRetryRequest.marshal())
637 hs.writeClientHash(newClientHello.marshal())
703 …o, hs.sessionState, binderToVerify, oldClientHelloBytes, helloRetryRequest.marshal()); err != nil {
814 hs.writeServerHash(hs.hello.marshal())
816 helloBytes := hs.hello.marshal()
822 c.writeRecord(recordTypeHandshake, hs.hello.marshal())
[all …]
Dhandshake_client.go424 helloBytes = v2Hello.marshal()
442 helloBytes = hello.marshal()
512 helloBytes = hello.marshal()
608 …on, hello, pskCipherSuite, session.masterSecret, helloBytes, helloRetryRequest.marshal(), c.config)
610 secondHelloBytes = hello.marshal()
700 hs.writeServerHash(helloRetryRequest.marshal())
703 hs.writeServerHash(hs.serverHello.marshal())
872 hs.writeServerHash(encryptedExtensions.marshal())
911 hs.writeServerHash(certReq.marshal())
927 hs.writeServerHash(compressedCertMsg.marshal())
[all …]
Dhandshake_messages.go370 func (m *clientHelloMsg) marshal() []byte { func
994 func (m *serverHelloMsg) marshal() []byte { func
1062 m.extensions.marshal(extensions)
1176 func (m *encryptedExtensionsMsg) marshal() []byte { func
1186 m.extensions.marshal(extensions)
1231 func (m *serverExtensions) marshal(extensions *byteBuilder) { func
1494 func (m *helloRetryRequestMsg) marshal() []byte { func
1637 func (m *certificateMsg) marshal() (x []byte) { func
1767 func (m *compressedCertificateMsg) marshal() (x []byte) { func
1807 func (m *serverKeyExchangeMsg) marshal() []byte { func
[all …]
/external/mesa3d/src/mapi/glapi/gen/
Dmarshal_XML.py59 self.marshal = element.get('marshal')
67 if self.marshal not in (None, 'draw'):
68 return self.marshal
80 …if p.is_pointer() and not (p.count or p.counter) and not (self.marshal == 'draw' and p.name == 'in…
/external/wayland/tests/
Dconnection-test.c165 marshal(struct marshal_data *data, const char *format, int size, ...) in marshal() function
196 marshal(&data, "i", 12, 42); in TEST()
199 marshal(&data, "u", 12, 55); in TEST()
202 marshal(&data, "s", 20, "frappo"); in TEST()
207 marshal(&data, "o", 12, &object); in TEST()
210 marshal(&data, "n", 12, &object); in TEST()
213 marshal(&data, "?n", 12, NULL); in TEST()
218 marshal(&data, "a", 20, &array); in TEST()
282 marshal(&data, "?o", 12, NULL); in TEST()
285 marshal(&data, "?a", 12, NULL); in TEST()
[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/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/Lib/plat-mac/
Dappletrawmain.py14 import marshal
58 __code__ = marshal.load(_fp)
63 del argvemulator, os, sys, marshal, _dir, _fp
/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/cpython2/Tools/pynche/
DSwitchboard.py46 import marshal
66 self.__optiondb = marshal.load(fp)
125 marshal.dump(self.__optiondb, fp)
/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/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__)
/external/syzkaller/vendor/google.golang.org/grpc/encoding/proto/
Dproto.go53 func marshal(v interface{}, cb *cachedProtoBuffer) ([]byte, error) { func
74 out, err := marshal(v, cb)
/external/python/cpython2/Tools/freeze/
Dmakefreeze.py1 import marshal
47 str = marshal.dumps(m.__code__)

123456