public final class SCSICommandDescriptorBlockParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
createReadCapacityMessage()
Creates the Command Descriptor Block for a Read Capacity Message.
|
static ByteBuffer |
createReadMessage(int logicalBlockAddress,
short transferLength)
Creates the Command Descriptor Block for a Read Message.
|
static ByteBuffer |
createWriteMessage(int logicalBlockAddress,
short transferLength)
Creates the Command Descriptor Block for a Write Message.
|
public static final ByteBuffer createReadMessage(int logicalBlockAddress, short transferLength)
logicalBlockAddress - The Logical Block Address to begin the read operation.transferLength - The transfer length field specifies the number of contiguous
logical blocks of data to be transferred. A transfer length of
zero indicates that 256 logical blocks shall be
transferred. Any other value indicates the number of logical
blocks that shall be transferred.ByteBuffer object with the above data.public static final ByteBuffer createWriteMessage(int logicalBlockAddress, short transferLength)
logicalBlockAddress - The Logical Block Address to begin the read operation.transferLength - The transfer length field specifies the number of contiguous
logical blocks of data to be transferred. A transfer length of
zero indicates that 256 logical blocks shall be transferred.
Any other value indicates the number of logical blocks that
shall be transferred.ByteBuffer object with the above data.public static final ByteBuffer createReadCapacityMessage()
ByteBuffer object with the above data.Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.