Lines Matching refs:pack_into
427 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,
535 self.assertRaises(struct.error, struct.pack_into, '12345', store, 0)
541 self.assertRaises(struct.error, struct.pack_into, 'c12345', store, 0,
550 self.assertRaises(struct.error, struct.pack_into, '14s42', store, 0,
589 struct.pack_into('b', bytearray(1), 5, 1)
604 struct.pack_into('<I', byte_list, -2, 123)
609 struct.pack_into('<B', byte_list, -11, 123)
629 struct.pack_into('<I', bytearray(10), sys.maxsize, 1)