public class ScsiWrite10 extends CommandBlockWrapper
The actual data is transferred in the data phase.
CommandBlockWrapper.DirectiondCbwDataTransferLength| Constructor and Description |
|---|
ScsiWrite10()
Constructs a new write command without any information.
|
ScsiWrite10(int blockAddress,
int transferBytes,
int blockSize)
Constructs a new write 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 ScsiWrite10()
init(int, int, int) before transfering command to device.public ScsiWrite10(int blockAddress,
int transferBytes,
int blockSize)
blockAddress - The logical block address the write 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