Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_struct.py426 s.pack_into(writable_buf, 0, test_string)
431 s.pack_into(writable_buf, 10, test_string)
437 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 0,
439 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 2,
444 self.assertRaises((TypeError, struct.error), struct.pack_into, b'', sb,
451 pack_into = lambda *args: struct.pack_into(fmt, *args) function
454 pack_into(writable_buf, 0, test_string)
459 pack_into(writable_buf, 10, test_string)
465 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 0,
467 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 2,
[all …]
Dtest_call.py197 self.assertRaisesRegex(TypeError, msg, struct.pack_into, x=2)
Dtest_buffer.py628 struct.pack_into(fmt, buf, j*itemsize, v)
2515 struct.pack_into(fmt, nd, 0, item)
2526 struct.pack_into(fmt, nd, itemsize, v)
/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.py40 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.c2154 pack_into(PyObject *self, PyObject *const *args, Py_ssize_t nargs) in pack_into() function
2245 {"pack_into", (PyCFunction)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, ...)
434 .. method:: pack_into(buffer, offset, v1, v2, ...)
436 Identical to the :func:`pack_into` function, using the compiled format.
Dfunctions.rst376 '_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.rst2561 Fix possible overflow when organize struct.pack_into error message. Patch
3015 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.