public class SubMessageHeader extends Object
Constructor and Description |
---|
SubMessageHeader(int kind)
Constructs this SubMessageHeader with given kind and
DEFAULT_ENDIANESS_FLAG.
|
SubMessageHeader(int kind,
int flags)
Constructs this SubMessageHeader with given kind and flags.
|
Modifier and Type | Method and Description |
---|---|
boolean |
endiannessFlag()
Get the endianness for SubMessage.
|
byte |
getSubMessageKind()
Get the kind of SubMessage
|
int |
getSubMessageLength()
Get the length of the sub message.
|
String |
toString() |
void |
writeTo(RTPSByteBuffer bb)
Writes this SubMessageHeader into RTPSByteBuffer
|
public SubMessageHeader(int kind)
kind
- Kind of SubMessagepublic SubMessageHeader(int kind, int flags)
kind
- Kind of SubMessageflags
- flags of this SubMessageHeaderpublic void writeTo(RTPSByteBuffer bb)
bb
- RTPSByteBuffer to write topublic boolean endiannessFlag()
public int getSubMessageLength()
public byte getSubMessageKind()
Copyright © 2016. All rights reserved.