public abstract class Page_0FormatModePage extends ModePage
pageLength
Constructor and Description |
---|
Page_0FormatModePage(boolean parametersSaveable,
int pageCode,
int pageLength)
The abstract constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
serializePageLength(ByteBuffer buffer,
int index)
Serializes the PAGE LENGTH field.
|
protected void |
serializeSubPageCode(ByteBuffer buffer,
int index)
This method serializes the SUBPAGE CODE field, if the mode page format says this field exists (only for the
sub_page mode page format).
|
serialize, serializeModeParameters, size
public Page_0FormatModePage(boolean parametersSaveable, int pageCode, int pageLength)
parametersSaveable
- the value of the PARAMETERS SAVEABLE bitpageCode
- determines the kind of information contained in the MODE PAGEpageLength
- the value of the PAGE LENGTH fieldprotected final void serializePageLength(ByteBuffer buffer, int index)
ModePage
serializePageLength
in class ModePage
buffer
- where to insert the serialized object representationindex
- the position of the first byte of the serialized object in the ByteBuffer
protected final void serializeSubPageCode(ByteBuffer buffer, int index)
ModePage
serializeSubPageCode
in class ModePage
buffer
- where to insert the serialized object representationindex
- the position of the first byte of the serialized object in the ByteBuffer
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.