public class ScsiRead10 extends CommandBlockWrapper
The actual data is transferred in the data phase.
CommandBlockWrapper.DirectiondCbwDataTransferLength| Constructor and Description |
|---|
ScsiRead10()
Constructs a new read command without any information.
|
ScsiRead10(int blockAddress,
int transferBytes,
int blockSize)
Constructs a new read command with the given information.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(int blockAddress,
int transferBytes,
int blockSize) |
void |
serialize(java.nio.ByteBuffer buffer)
Serializes the command block wrapper for transmission.
|
java.lang.String |
toString() |
getdCbwDataTransferLength, getdCbwTag, getDirection, setdCbwTagpublic ScsiRead10()
init(int, int, int) before transfering command to device.public ScsiRead10(int blockAddress,
int transferBytes,
int blockSize)
blockAddress - The logical block address the read should start.transferBytes - The bytes which should be transferred.blockSize - The block size of the mass storage device.public void init(int blockAddress,
int transferBytes,
int blockSize)
public void serialize(java.nio.ByteBuffer buffer)
CommandBlockWrapperThis method should be called in every subclass right before the specific SCSI command serializes itself to the buffer!
serialize in class CommandBlockWrapperbuffer - The buffer were the serialized data should be copied to.public java.lang.String toString()
toString in class java.lang.Object