numpy.ma
numpy.ma.MaskedArray.torecords
numpy.ma.MaskedArray.tobytes
MaskedArray.
tostring
This function is a compatibility alias for tobytes. Despite its name it returns bytes not strings.