Package org.activecomponents.udp
Class SUdpUtil
- java.lang.Object
- 
- org.activecomponents.udp.SUdpUtil
 
- 
 public class SUdpUtil extends java.lang.ObjectUtility functions and variables
- 
- 
Field SummaryFields Modifier and Type Field Description static java.security.SecureRandomRANDOMRandom number source.
 - 
Constructor SummaryConstructors Constructor Description SUdpUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.SecureRandomgetSecRandom()Gets the secure PRNG.static intintFromByteArray(byte[] buffer, int offset)Reads an integer value from a byte array buffer in network byte order.static voidintIntoByteArray(byte[] buffer, int offset, int val)Writes an integer value into a byte array buffer in network byte order.static longlongFromByteArray(byte[] buffer, int offset)Reads a long value from a byte array buffer in network byte order.static voidlongIntoByteArray(byte[] buffer, int offset, long val)Writes a long value into a byte array buffer in network byte order.static shortshortFromByteArray(byte[] buffer, int offset)Reads a short value from a byte array buffer in network byte order.static voidshortIntoByteArray(byte[] buffer, int offset, short val)Writes a short value into a byte array buffer in network byte order.
 
- 
- 
- 
Method Detail- 
shortIntoByteArraypublic static final void shortIntoByteArray(byte[] buffer, int offset, short val)Writes a short value into a byte array buffer in network byte order.- Parameters:
- buffer- The buffer.
- offset- The offset.
- val- The value.
 
 - 
shortFromByteArraypublic static final short shortFromByteArray(byte[] buffer, int offset)Reads a short value from a byte array buffer in network byte order.- Parameters:
- buffer- The buffer.
- offset- The offset.
- Returns:
- The value.
 
 - 
intIntoByteArraypublic static final void intIntoByteArray(byte[] buffer, int offset, int val)Writes an integer value into a byte array buffer in network byte order.- Parameters:
- buffer- The buffer.
- offset- The offset.
- val- The value.
 
 - 
intFromByteArraypublic static final int intFromByteArray(byte[] buffer, int offset)Reads an integer value from a byte array buffer in network byte order.- Parameters:
- buffer- The buffer.
- offset- The offset.
- Returns:
- The value.
 
 - 
longIntoByteArraypublic static final void longIntoByteArray(byte[] buffer, int offset, long val)Writes a long value into a byte array buffer in network byte order.- Parameters:
- buffer- The buffer.
- offset- The offset.
- val- The value.
 
 - 
longFromByteArraypublic static final long longFromByteArray(byte[] buffer, int offset)Reads a long value from a byte array buffer in network byte order.- Parameters:
- buffer- The buffer.
- offset- The offset.
- Returns:
- The value.
 
 - 
getSecRandompublic static final java.security.SecureRandom getSecRandom() Gets the secure PRNG.- Returns:
- Secure PRNG.
 
 
- 
 
-