Class ScsiReadCapacityResponse
- java.lang.Object
-
- com.github.mjdev.libaums.driver.scsi.commands.ScsiReadCapacityResponse
-
public class ScsiReadCapacityResponse extends java.lang.ObjectRepresents the response of a read capacity request.The response data is received in the data phase
- See Also:
ScsiReadCapacity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBlockLength()Returns the size of each block in the block device.intgetLogicalBlockAddress()Returns the address of the last accessible block on the block device.static ScsiReadCapacityResponseread(java.nio.ByteBuffer buffer)Constructs a new object with the given data.
-
-
-
Method Detail
-
read
public static ScsiReadCapacityResponse read(java.nio.ByteBuffer buffer)
Constructs a new object with the given data.- Parameters:
buffer- The data where theScsiReadCapacityResponse()is located.- Returns:
- The parsed
ScsiReadCapacityResponse().
-
getLogicalBlockAddress
public int getLogicalBlockAddress()
Returns the address of the last accessible block on the block device.The size of the device is then last accessible block + 0!
- Returns:
- The last block address.
-
getBlockLength
public int getBlockLength()
Returns the size of each block in the block device.- Returns:
- The block size in bytes.
-
-