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