encapsulated function getBufferSize import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Packaging.SerialPackager; input SerialPackager pkg; output Integer bufferSize; end getBufferSize;