com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib
Class MessageParameterSerializer

java.lang.Object
  extended by com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.MessageParameterSerializer

public final class MessageParameterSerializer
extends Object

Serializes message parameters.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Method Summary
static ISerializableType convert(Object value)
          Converts a Java type to an ISerializableType.
static ISerializableType deserializeParameter(int paramOffset, FastByteBuffer buffer)
          Deserializes a parameter out of a byte array.
static int serializeParameter(int paramOffset, FastByteBuffer buffer, ISerializableType parameter)
          Serializes a parameter in a buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convert

public static ISerializableType convert(Object value)
Converts a Java type to an ISerializableType.

Parameters:
value - The Java type. null is not allowed.
Returns:
The ISerializableType.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

deserializeParameter

public static ISerializableType deserializeParameter(int paramOffset,
                                                     FastByteBuffer buffer)
Deserializes a parameter out of a byte array.

Parameters:
paramOffset - The offset where the header in the message is located.
buffer - The buffer containing the message.
Returns:
The deserialized message parameter.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

serializeParameter

public static int serializeParameter(int paramOffset,
                                     FastByteBuffer buffer,
                                     ISerializableType parameter)
Serializes a parameter in a buffer.

Parameters:
paramOffset - The index where the parameter must be located.
buffer - The buffer where the parameter should be serialized in.
parameter - The parameter which should be serialized.
Returns:
The amount of bytes written.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.