encapsulated function getDataSize import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Communication.SharedMemory; input SharedMemory sm; output Integer length; end getDataSize;