code: def get_memory_size(self):
          
          n = sys.getsizeof(self)
          n += sys.getsizeof(self.padding)
          n += total_size(self.start_addr)
          n += total_size(self._buf)
          n += sys.getsizeof(self._offset)
          return n
docs: Returns the approximate memory footprint for data.