Home
last modified time | relevance | path

Searched refs:unpack_from (Results 1 - 12 of 12) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_struct.py402 self.assertEqual(s.unpack_from(data), (b'abcd',))
403 self.assertEqual(s.unpack_from(data, 2), (b'cd01',))
404 self.assertEqual(s.unpack_from(data, 4), (b'0123',))
406 self.assertEqual(s.unpack_from(data, i), (data[i:i+4],))
408 self.assertRaises(struct.error, s.unpack_from, data, i)
411 self.assertEqual(struct.unpack_from(fmt, data), (b'abcd',))
412 self.assertEqual(struct.unpack_from(fmt, data, 2), (b'cd01',))
413 self.assertEqual(struct.unpack_from(fmt, data, 4), (b'0123',))
415 self.assertEqual(struct.unpack_from(fmt, data, i), (data[i:i+4],))
417 self.assertRaises(struct.error, struct.unpack_from, fm
[all...]
H A Dtest_buffer.py896 initlst = [struct.unpack_from(fmt, contig, n*itemsize)
916 initlst = [struct.unpack_from(fmt, contig, n*itemsize)
931 initlst = [struct.unpack_from(fmt, contig, n*itemsize)
/third_party/python/Lib/multiprocessing/
H A Dshared_memory.py364 struct.unpack_from(
377 v = struct.unpack_from(
393 transform_code = struct.unpack_from(
428 (v,) = struct.unpack_from(
478 return struct.unpack_from("q", self.shm.buf, 0)[0]
/third_party/python/Modules/
H A D_testbuffer.c574 PyObject *x, *unpack_from, *mview; in unpack_single() local
581 unpack_from = PyObject_GetAttrString(structmodule, "unpack_from"); in unpack_single()
582 if (unpack_from == NULL) in unpack_single()
587 Py_DECREF(unpack_from); in unpack_single()
591 x = PyObject_CallFunction(unpack_from, "sO", fmt, mview); in unpack_single()
592 Py_DECREF(unpack_from); in unpack_single()
610 unpack_rec(PyObject *unpack_from, char *ptr, PyObject *mview, char *item, in unpack_rec() argument
623 x = PyObject_CallFunctionObjArgs(unpack_from, mview, NULL); in unpack_rec()
642 x = unpack_rec(unpack_from, nextpt in unpack_rec()
660 PyObject *structobj = NULL, *unpack_from = NULL; ndarray_as_list() local
[all...]
/third_party/mesa3d/src/gallium/tools/trace/
H A Ddump_state.py44 from struct import unpack_from namespace
46 def unpack_from(fmt, buf, offset=0): function
407 x, y, z, w = unpack_from(format, data, offset)
522 index, = unpack_from(format, data, offset)
570 attribute = unpack_from(format, data, offset)
/third_party/skia/third_party/icu/
H A Dmake_data_cpp.py27 yield s.unpack_from(mm, offset)[0]
/third_party/python/Lib/
H A Dwave.py116 self.chunksize = struct.unpack_from(strflag+'L', file.read(4))[0]
376 wFormatTag, self._nchannels, self._framerate, dwAvgBytesPerSec, wBlockAlign = struct.unpack_from('<HHLLH', chunk.read(14))
381 sampwidth = struct.unpack_from('<H', chunk.read(2))[0]
H A Dchunk.py69 self.chunksize = struct.unpack_from(strflag+'L', file.read(4))[0]
H A Dtarfile.py235 unsigned_chksum = 256 + sum(struct.unpack_from("148B8x356B", buf))
236 signed_chksum = 256 + sum(struct.unpack_from("148b8x356b", buf))
/third_party/python/Modules/clinic/
H A D_struct.c.h83 "unpack_from($self, /, buffer, offset=0)\n"
96 {"unpack_from", _PyCFunction_CAST(Struct_unpack_from), METH_FASTCALL|METH_KEYWORDS, Struct_unpack_from__doc__},
107 static _PyArg_Parser _parser = {NULL, _keywords, "unpack_from", 0}; in Struct_unpack_from()
121 _PyArg_BadArgument("unpack_from", "argument 'buffer'", "contiguous buffer", args[0]); in Struct_unpack_from()
158 "invocation of unpack_from().\n"
268 "unpack_from($module, format, /, buffer, offset=0)\n"
278 {"unpack_from", _PyCFunction_CAST(unpack_from), METH_FASTCALL|METH_KEYWORDS, unpack_from__doc__},
285 unpack_from(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in unpack_from() function
289 static _PyArg_Parser _parser = {NULL, _keywords, "unpack_from", in unpack_from()
[all...]
/third_party/python/Lib/test/libregrtest/
H A Dwin_utils.py52 _unpack=struct.unpack_from):
/third_party/python/Objects/
H A Dmemoryobject.c1927 for unpacking. An unpacker can handle the format passed to unpack_from().
1931 PyObject *unpack_from; /* Struct.unpack_from(format) */ member
1947 x->unpack_from = NULL; in unpacker_new()
1959 Py_XDECREF(x->unpack_from); in unpacker_free()
1997 x->unpack_from = PyObject_GetAttrString(structobj, "unpack_from"); in struct_get_unpacker()
1998 if (x->unpack_from == NULL) in struct_get_unpacker()
2032 v = PyObject_CallOneArg(x->unpack_from, x->mview); in struct_unpack_single()

Completed in 20 milliseconds