SciPy

numpy.ma.MaskType.nbytes

MaskType.nbytes

length of item in bytes