public final class ShortLogicalBlockDescriptor extends LogicalBlockDescriptor
ModeParameterList objects. This short format must be used if the LONG LBA bit is not set in the
ModeParameterList objects's header.LongLogicalBlockDescriptorlogicalBlockLength, numberOfLogicalBlocks| Constructor and Description |
|---|
ShortLogicalBlockDescriptor(long numberOfLogicalBlocks,
int logicalBlockLength)
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 ShortLogicalBlockDescriptor(long numberOfLogicalBlocks,
int logicalBlockLength)
numberOfLogicalBlocks - the number of equal-length logical blocks into which the storage medium is dividedlogicalBlockLength - the length in bytes of the logical blockspublic void serialize(ByteBuffer byteBuffer, int index)
ISerializableByteBuffer. 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 ByteBufferpublic int size()
ISerializableCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.