function [fcnH, userData] = getRemoteFromSPMD( obj )
;%#ok undocumented

%getRemoteFromSPMD Internal functionality to support distributed

    
%   Copyright 2008-2020 The MathWorks, Inc.

fcnH = @distributedutil.getDistributedFromSpmd;
userData = {size( obj ), underlyingType( obj ), issparse( obj ), iBytes( obj )};
end

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Helper to extract the local size in bytes of this codistributed
function b = iBytes( obj )
lp = getLocalPart( obj ); %#ok<NASGU> used by "whos"
w  = whos( 'lp' );
b  = w.bytes;
end
