Home
last modified time | relevance | path

Searched refs:pack_into (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_struct.py427 s.pack_into(writable_buf, 0, test_string)
432 s.pack_into(writable_buf, 10, test_string)
438 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 0,
440 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 2,
445 self.assertRaises((TypeError, struct.error), struct.pack_into, b'', sb,
452 pack_into = lambda *args: struct.pack_into(fmt, *args) function
455 pack_into(writable_buf, 0, test_string)
460 pack_into(writable_buf, 10, test_string)
466 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 0,
468 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 2,
[all …]
Dtest_call.py97 self.assertRaisesRegex(TypeError, msg, struct.pack_into, x=2)
Dtest_buffer.py635 struct.pack_into(fmt, buf, j*itemsize, v)
2541 struct.pack_into(fmt, nd, 0, item)
2552 struct.pack_into(fmt, nd, itemsize, v)
/external/python/cpython3/Lib/multiprocessing/
Dshared_memory.py333 struct.pack_into(
340 struct.pack_into(
346 struct.pack_into(
352 struct.pack_into(
407 struct.pack_into(
415 struct.pack_into(
470 struct.pack_into(new_format, self.shm.buf, offset, encoded_value)
/external/python/cpython2/Lib/test/
Dtest_struct.py443 s.pack_into(writable_buf, 0, test_string)
448 s.pack_into(writable_buf, 10, test_string)
454 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 0,
456 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 2,
461 self.assertRaises((TypeError, struct.error), struct.pack_into, b'', sb,
477 pack_into = lambda *args: struct.pack_into(fmt, *args) function
480 pack_into(writable_buf, 0, test_string)
485 pack_into(writable_buf, 10, test_string)
491 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 0,
493 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 2,
/external/flatbuffers/python/flatbuffers/
Dencode.py42 packer_type.pack_into(buf, head, n)
/external/python/cpython3/Modules/
D_testbuffer.c304 PyObject *structobj, *pack_into; in pack_from_list() local
323 pack_into = PyObject_GetAttrString(structobj, "pack_into"); in pack_from_list()
324 if (pack_into == NULL) { in pack_from_list()
332 Py_DECREF(pack_into); in pack_from_list()
371 tmp = PyObject_CallObject(pack_into, args); in pack_from_list()
387 Py_DECREF(pack_into); in pack_from_list()
397 PyObject *structobj = NULL, *pack_into = NULL, *args = NULL; in pack_single() local
424 pack_into = PyObject_GetAttrString(structobj, "pack_into"); in pack_single()
425 if (pack_into == NULL) in pack_single()
452 x = PyObject_CallObject(pack_into, args); in pack_single()
[all …]
D_struct.c2191 pack_into(PyObject *self, PyObject *const *args, Py_ssize_t nargs) in pack_into() function
2282 {"pack_into", (PyCFunction)(void(*)(void))pack_into, METH_FASTCALL, pack_into_doc},
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_channel_unittest.py347 struct.pack_into(packet_format,
361 struct.pack_into(fragment_header_format,
/external/python/cpython2/Doc/library/
Dstruct.rst47 .. function:: pack_into(fmt, buffer, offset, v1, v2, ...)
378 .. method:: pack_into(buffer, offset, v1, v2, ...)
380 Identical to the :func:`pack_into` function, using the compiled format.
Dfunctions.rst340 '__package__', '_clearcache', 'calcsize', 'error', 'pack', 'pack_into',
/external/python/cpython3/Doc/library/
Dstruct.rst58 .. function:: pack_into(format, buffer, offset, v1, v2, ...)
429 .. method:: pack_into(buffer, offset, v1, v2, ...)
431 Identical to the :func:`pack_into` function, using the compiled format.
Dfunctions.rst402 '_clearcache', 'calcsize', 'error', 'pack', 'pack_into',
/external/python/cpython2/Modules/
D_struct.c1904 pack_into(PyObject *self, PyObject *args) in pack_into() function
1983 {"pack_into", pack_into, METH_VARARGS, pack_into_doc},
/external/python/cpython2/Misc/NEWS.d/
D2.7.10rc1.rst388 struct.pack_into() now supports new buffer protocol (in particular accepts
D2.7.4rc1.rst1462 Enhance error messages of struct.pack and struct.pack_into. Patch by Matti
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a1.rst2556 Fix possible overflow when organize struct.pack_into error message. Patch
3010 Improve struct.pack_into() exception messages for problems with the buffer
/external/python/cpython2/Doc/whatsnew/
D2.5.rst1560 ``pack_into(buffer, offset, v1, v2, ...)`` and ``unpack_from(buffer,
/external/python/cpython3/Doc/whatsnew/
D2.5.rst1561 ``pack_into(buffer, offset, v1, v2, ...)`` and ``unpack_from(buffer,
/external/python/cpython3/Misc/
DHISTORY5718 struct.pack_into. Patch by Matti Mäki.