'Returns the size (in bytes) of the HDU\'s data part.'

@property
def size(self):

    if (self._buffer is not None):
        return (len(self._buffer) - self._data_offset)
    return (self._file.size - self._data_offset)
