Home
last modified time | relevance | path

Searched refs:pack_into (Results 1 - 6 of 6) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_struct.py430 s.pack_into(writable_buf, 0, test_string)
435 s.pack_into(writable_buf, 10, test_string)
441 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 0,
443 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 2,
448 self.assertRaises((TypeError, struct.error), struct.pack_into, b'', sb,
455 pack_into = lambda *args: struct.pack_into(fmt, *args)
458 pack_into(writable_buf, 0, test_string)
463 pack_into(writable_buf, 10, test_string)
469 self.assertRaises((ValueError, struct.error), pack_into, small_bu
[all...]
H A Dtest_call.py117 msg = r"^_struct[.]pack_into\(\) takes no keyword arguments$"
118 self.assertRaisesRegex(TypeError, msg, struct.pack_into, x=2)
H A Dtest_buffer.py636 struct.pack_into(fmt, buf, j*itemsize, v)
2542 struct.pack_into(fmt, nd, 0, item)
2553 struct.pack_into(fmt, nd, itemsize, v)
/third_party/python/Lib/multiprocessing/
H A Dshared_memory.py335 struct.pack_into(
342 struct.pack_into(
348 struct.pack_into(
354 struct.pack_into(
409 struct.pack_into(
417 struct.pack_into(
472 struct.pack_into(new_format, self.shm.buf, offset, encoded_value)
/third_party/python/Modules/
H A 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()
[all...]
H A D_struct.c1936 "S.pack_into(buffer, offset, v1, v2, ...)\n\
1959 "pack_into expected buffer argument"); in s_pack_into()
1963 "pack_into expected offset argument"); in s_pack_into()
1967 "pack_into expected %zd items for packing (got %zd)", in s_pack_into()
2016 "pack_into requires a buffer of at least %zu bytes for " in s_pack_into()
2070 {"pack_into", _PyCFunction_CAST(s_pack_into), METH_FASTCALL, s_pack_into__doc__},
2223 "pack_into(format, buffer, offset, v1, v2, ...)\n\
2231 pack_into(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in pack_into() function
2322 {"pack_into", _PyCFunction_CAST(pack_into), METH_FASTCAL
[all...]

Completed in 18 milliseconds