# Source code for spinnman.processes.get_heap_process

# Copyright (c) 2017-2019 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

import struct
import functools
from spinnman.processes import AbstractMultiConnectionProcess
from spinnman.model import HeapElement
from spinnman.messages.spinnaker_boot import SystemVariableDefinition

_HEAP_POINTER = struct.Struct("<4xI")

[docs]class GetHeapProcess(AbstractMultiConnectionProcess):
__slots__ = [
"_blocks",

def __init__(self, connection_selector):
"""
:param connection_selector:
:type connection_selector:
AbstractMultiConnectionProcessConnectionSelector
"""
super().__init__(connection_selector)

self._blocks = list()

response.data, response.offset)[0]

response.data, response.offset)[0]

response.data, response.offset)
self._blocks.append(HeapElement(

self._send_request(
self._finish()
self.check_for_error()

"""
:param SystemVariableDefinition pointer:
:rtype: list(HeapElement)
"""