(name)
return max(3, len(name)) + 1
Calculate size of scalar record in bytes.
Calculate size of scalar record in bytes.
Calculate size of scalar record in bytes .
def _record_size(name):
        """Calculate size of scalar record in bytes."""
        # first two bytes: chars of name or 0 if name is one byte long
        return max(3, len(name)) + 1
def _record_size ( name ) : # first two bytes: chars of name or 0 if name is one byte long return max ( 3 , len ( name ) ) + 1