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