Class SDRAMDeAlloc.Response
java.lang.Object
uk.ac.manchester.spinnaker.messages.scp.SCPResponse
uk.ac.manchester.spinnaker.messages.scp.CheckOKResponse
uk.ac.manchester.spinnaker.messages.scp.PayloadedResponse<Integer,MemoryAllocationFailedException>
uk.ac.manchester.spinnaker.messages.scp.SDRAMDeAlloc.Response
- Enclosing class:
- SDRAMDeAlloc
protected final class SDRAMDeAlloc.Response extends PayloadedResponse<Integer,MemoryAllocationFailedException>
An SCP response to a request to deallocate SDRAM.
-
Field Summary
Fields inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPResponse
result, sdpHeader, sequence
-
Method Summary
Modifier and Type Method Description protected Integer
parse(ByteBuffer buffer)
Parse the payload of a response.
-
Method Details
-
parse
Description copied from class:PayloadedResponse
Parse the payload of a response. The buffer will be positioned after the checked header.- Specified by:
parse
in classPayloadedResponse<Integer,MemoryAllocationFailedException>
- Parameters:
buffer
- The buffer to parse. Little-endian.- Returns:
- The number of allocated blocks that have been freed from the appID given, or one when the direct block of space to deallocate was given.
- Throws:
MemoryAllocationFailedException
-