public final class ModeParameterHeader10 extends ModeParameterHeader
ModeParameterHeader
sub-class. Instances of this class are sent in response to MODE SENSE (10)
SCSI commands and have a serialized length of 8 bytes.LongLogicalBlockDescriptor
blockDescriptorLength, deviceSpecificParameter, mediumType, modeDataLength
Constructor and Description |
---|
ModeParameterHeader10(int modeDataLength,
int blockDescriptorLength,
boolean longLba)
The constructor.
|
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 ModeParameterHeader10(int modeDataLength, int blockDescriptorLength, boolean longLba)
modeDataLength
- the total length in bytes of all MODE DATA list elementsblockDescriptorLength
- the total length in bytes of all BLOCK DESCRIPTOR list elementslongLba
- if true
then the LONG LBA MODE PAREMETER LOGICAL BLOCK DESCRIPTOR format will be usedLongLogicalBlockDescriptor
,
ShortLogicalBlockDescriptor
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.