public final class Read10Cdb extends ReadCdb
READ (10)
SCSI command.
The READ (10)
command requests that the device server to read the specified logical block(s) and
transfer them to the data-in buffer.
Each logical block read includes user data and, if the medium is formatted with protection information enabled, protection information. Each logical block transferred includes user data and may include protection information, based on the RDPROTECT field and the medium format.
Constructor and Description |
---|
Read10Cdb(ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
protected long |
deserializeLogicalBlockAddress(ByteBuffer buffer)
Deserializes the value of the
ReadOrWriteCdb.logicalBlockAddress field. |
protected int |
deserializeTransferLength(ByteBuffer buffer)
Deserializes the value of the
ReadOrWriteCdb.transferLength field. |
boolean |
disablePageOut() |
boolean |
getForceUnitAccess() |
boolean |
getForceUnitAccessNonVolatile() |
int |
getGroupNumber() |
protected int |
getLogicalBlockAddressFieldIndex()
Returns the index position of the first byte used for encoding the
ReadOrWriteCdb.logicalBlockAddress field. |
int |
getReadProtect() |
protected int |
getTransferLengthFieldIndex()
Returns the index position of the first byte used for encoding the
ReadOrWriteCdb.transferLength field. |
addIllegalFieldPointerForLogicalBlockAddress, addIllegalFieldPointerForTransferLength, getLogicalBlockAddress, getTransferLength
addIllegalFieldPointer, addIllegalFieldPointer, getIllegalFieldPointers, getScsiOperationCode, isNormalACA
public Read10Cdb(ByteBuffer buffer)
protected long deserializeLogicalBlockAddress(ByteBuffer buffer)
ReadOrWriteCdb
ReadOrWriteCdb.logicalBlockAddress
field.deserializeLogicalBlockAddress
in class ReadOrWriteCdb
buffer
- the ByteBuffer
containing the CDBReadOrWriteCdb.logicalBlockAddress
fieldprotected int deserializeTransferLength(ByteBuffer buffer)
ReadOrWriteCdb
ReadOrWriteCdb.transferLength
field.deserializeTransferLength
in class ReadOrWriteCdb
buffer
- the ByteBuffer
containing the CDBReadOrWriteCdb.transferLength
fieldpublic int getReadProtect()
public boolean disablePageOut()
public boolean getForceUnitAccess()
public boolean getForceUnitAccessNonVolatile()
public int getGroupNumber()
protected int getLogicalBlockAddressFieldIndex()
ReadOrWriteCdb
ReadOrWriteCdb.logicalBlockAddress
field.getLogicalBlockAddressFieldIndex
in class ReadOrWriteCdb
ReadOrWriteCdb.logicalBlockAddress
fieldprotected int getTransferLengthFieldIndex()
ReadOrWriteCdb
ReadOrWriteCdb.transferLength
field.getTransferLengthFieldIndex
in class ReadOrWriteCdb
ReadOrWriteCdb.transferLength
fieldCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.