ID EN
Struct

pack_into

Python 3.11

Pack the values v1, v2, … according to the format string format and write the packed bytes into the writable buffer buffer starting at position offset. Note that offset is a required argument.

Syntax

PYTHON
struct.pack_into(format, buffer, offset, v1, v2, ...)