public class UbRpcTools extends Object
Modifier and Type | Field and Description |
---|---|
protected static eu.javaexperience.resource.pool.TrackedLimitedResourcePool<PacketAssembler> |
PA_POOL |
Constructor and Description |
---|
UbRpcTools() |
Modifier and Type | Method and Description |
---|---|
static void |
appendElements(PacketAssembler pa,
Object... elements) |
static eu.javaexperience.interfaces.simple.getBy.GetBy1<Boolean,UartbusPacketDispatch> |
createRequestPacketAcceptor(Integer targetAddress,
byte[] path) |
static Object |
extractOrThrowResult(Method method,
byte[] bs) |
protected static Object[] |
extractStruct(Object o) |
static boolean |
isUartbusDataType(Class o) |
static boolean |
isUartbusDataType(Object o) |
static String |
loadString(UbRemoteString str) |
static String |
loadString(UbRemoteString str,
int maxGetLength) |
static Object |
readType(PacketReader reader,
Class reqType) |
static Object |
readType(PacketReader reader,
Class reqClass,
Type reqType) |
static byte[] |
toPacket(int to,
int from,
Object... elements) |
protected static Object |
tryExtractStruct(Class c,
Type t,
PacketReader pr) |
protected static final eu.javaexperience.resource.pool.TrackedLimitedResourcePool<PacketAssembler> PA_POOL
public static Object extractOrThrowResult(Method method, byte[] bs) throws eu.javaexperience.nativ.posix.PosixErrnoException
eu.javaexperience.nativ.posix.PosixErrnoException
protected static Object tryExtractStruct(Class c, Type t, PacketReader pr)
public static Object readType(PacketReader reader, Class reqType)
public static Object readType(PacketReader reader, Class reqClass, Type reqType)
public static boolean isUartbusDataType(Class o)
public static boolean isUartbusDataType(Object o)
public static void appendElements(PacketAssembler pa, Object... elements) throws IOException
IOException
public static byte[] toPacket(int to, int from, Object... elements)
public static eu.javaexperience.interfaces.simple.getBy.GetBy1<Boolean,UartbusPacketDispatch> createRequestPacketAcceptor(Integer targetAddress, byte[] path)
public static String loadString(UbRemoteString str)
public static String loadString(UbRemoteString str, int maxGetLength)
Copyright © 2020. All rights reserved.