NumPy

numpy.record.tobytes

method

record.tobytes()