Class PascalByteString
java.lang.Object
org.apache.plc4x.java.opcua.readwrite.PascalByteString
- All Implemented Interfaces:
Message,Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintbyte[]inthashCode()voidserialize(WriteBuffer writeBuffer) static PascalByteStringstaticParse(ReadBuffer readBuffer) static PascalByteStringstaticParse(ReadBuffer readBuffer, Object... args) toString()
-
Field Details
-
stringLength
protected final int stringLength -
stringValue
protected final byte[] stringValue
-
-
Constructor Details
-
PascalByteString
public PascalByteString(int stringLength, byte[] stringValue)
-
-
Method Details
-
getStringLength
public int getStringLength() -
getStringValue
public byte[] getStringValue() -
serialize
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
public static PascalByteString staticParse(ReadBuffer readBuffer, Object... args) throws ParseException - Throws:
ParseException
-
staticParse
- Throws:
ParseException
-
equals
-
hashCode
public int hashCode() -
toString
-