Class ReadMemory.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<ByteBuffer,RuntimeException>
uk.ac.manchester.spinnaker.messages.scp.ReadMemory.Response
- All Implemented Interfaces:
Supplier<ByteBuffer>
- Enclosing class:
- ReadMemory
protected final class ReadMemory.Response extends PayloadedResponse<ByteBuffer,RuntimeException>
An SCP response to a request to read a region of memory on a chip. Note
that it is up to the caller to manage the buffer position of the returned
response if it is to be read from multiple times.
-
Field Summary
Fields inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPResponse
result, sdpHeader, sequence
-
Method Summary
Modifier and Type Method Description protected ByteBuffer
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<ByteBuffer,RuntimeException>
- Parameters:
buffer
- The buffer to parse. Little-endian.- Returns:
- The data read, in a little-endian read-only buffer.
-