[Numpy-discussion] Using np.frombuffer and cffi.buffer on array of C structs (problem with struct member padding)
Chris Barker - NOAA Federal
chris.barker at noaa.gov
Thu Jan 25 11:33:05 EST 2018
The numpy dtype constructor takes an “align” keyword that will pad it for
you.
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.dtype.html
-CHB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180125/b7dde84f/attachment.html>
More information about the NumPy-Discussion
mailing list