Lines Matching refs:pack_into
426 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,
534 self.assertRaises(struct.error, struct.pack_into, '12345', store, 0)
540 self.assertRaises(struct.error, struct.pack_into, 'c12345', store, 0,
549 self.assertRaises(struct.error, struct.pack_into, '14s42', store, 0,
588 struct.pack_into('b', bytearray(1), 5, 1)
595 struct.pack_into('<I', byte_list, -2, 123)
600 struct.pack_into('<B', byte_list, -11, 123)
610 struct.pack_into('<I', bytearray(10), sys.maxsize, 1)