public final class ReadCapacity16ParameterData extends ReadCapacityParameterData
READ CAPACITY (16)
parameter data is sent in response to a successful READ CAPACITY (16)
SCSI command.
Only the fields common to all ReadCapacityParameterData
can be set in the constructor. All other fields and
flags are zero
. This means that the initiator is told that the device does not support protection
information (protection type 0), maps each logical block directly to one physical block, beginning with the first
one.
logicalBlockLengthInBytes, returnedLogicalBlockAddress
Constructor and Description |
---|
ReadCapacity16ParameterData(long returnedLogicalBlockAddress,
int logicalBlockLengthInBytes) |
Modifier and Type | Method and Description |
---|---|
void |
serialize(ByteBuffer byteBuffer,
int index)
Inserts a serialized representation of the object into the specified
ByteBuffer . |
int |
size()
Returns the size in bytes of the object's serialized representation.
|
public ReadCapacity16ParameterData(long returnedLogicalBlockAddress, int logicalBlockLengthInBytes)
public void serialize(ByteBuffer byteBuffer, int index)
ISerializable
ByteBuffer
. The serialized object
will occupy the byte positions from index to index + ISerializable.size()
- 1.byteBuffer
- where to insert the serialized object representationindex
- the position of the first byte of the serialized object in the ByteBuffer
public int size()
ISerializable
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.