public final class ReportLunsParameterData extends Object implements IResponseData
REPORT LUNS
SCSI commands. They contain
a zero or more logical unit numbers (LUNs) that identify some or all of the target's logical units, depending on the
REPORT
LUNS
parameters.Constructor and Description |
---|
ReportLunsParameterData(LogicalUnitNumber... luns)
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 ReportLunsParameterData(LogicalUnitNumber... luns)
luns
- the LUNs to reportpublic void serialize(ByteBuffer byteBuffer, int index)
ISerializable
ByteBuffer
. The serialized object
will occupy the byte positions from index to index + ISerializable.size()
- 1.serialize
in interface ISerializable
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
size
in interface ISerializable
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.