public class PduUtil extends Object
| Constructor and Description |
|---|
PduUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateByteSizeOfAddress(Address value)
Calculates the byte size of an Address.
|
static int |
calculateByteSizeOfNullTerminatedString(String value)
Calculates size of a "C-String" by returning the length of the String
plus 1 (for the NULL byte).
|
static boolean |
isRequestCommandId(int commandId) |
static boolean |
isResponseCommandId(int commandId) |
public static int calculateByteSizeOfNullTerminatedString(String value)
value - public static int calculateByteSizeOfAddress(Address value)
value - public static boolean isRequestCommandId(int commandId)
public static boolean isResponseCommandId(int commandId)
Copyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.