'Calculate size of a data record.'

def _col_size(self, k=None):

    if (len(self._col_sizes) == 0):
        self._col_sizes = lmap((lambda x: self._calcsize(x)), self._header['typlist'])
    if (k == None):
        return self._col_sizes
    else:
        return self._col_sizes[k]
