function bytes = getDataSizeInBytes( obj )
%getDataSizeInBytes Return the total number of bytes in a codistributed array.
%   BYTES = getDataSizeInBytes(A) returns the total number of bytes occupied
%   by the data in array A, as shown in the output from WHOS.
%   
%   See also: size, numel, whos, CODISTRIBUTED.
%   


%   Copyright 2021 The MathWorks, Inc.

bytes = parallel.internal.array.getNumberOfBytes(getLocalPart(obj));
