summaryrefslogtreecommitdiffstatshomepage
path: root/py/nativeglue.c
diff options
context:
space:
mode:
authorDaniël van de Giessen <daniel@dvdgiessen.nl>2022-11-23 14:26:26 +0100
committerDamien George <damien@micropython.org>2023-09-01 14:50:49 +1000
commitd1f288c041c85793de17da9f8b38ff20af2a6f1d (patch)
tree5a0799ead918d7aff98f12b4ecc13e2d0eae1a0b /py/nativeglue.c
parente0a148060025a75f4051e5009d9dc3728cb2bc75 (diff)
downloadmicropython-d1f288c041c85793de17da9f8b38ff20af2a6f1d.tar.gz
micropython-d1f288c041c85793de17da9f8b38ff20af2a6f1d.zip
py/modstruct: Support pad bytes in struct format.
This adds support for the x format code in struct.pack and struct.unpack. The primary use case for this is ignoring bytes while unpacking. When interfacing with existing systems, it may often happen that you either have fields in a struct that aren't properly specified or you simply don't care about them. Being able to easily skip them is useful. Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'py/nativeglue.c')
0 files changed, 0 insertions, 0 deletions