Package com.mebigfatguy.fbcontrib.utils
Class CodeByteUtils
- java.lang.Object
-
- com.mebigfatguy.fbcontrib.utils.CodeByteUtils
-
public final class CodeByteUtils extends java.lang.Object
a collection of static methods for working with retrieving arbitrary code bytes in a code byte array
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CodeByteUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getbyte(byte[] bytes, int offset)
returns the code byte at a specific offset as an intstatic int
getshort(byte[] bytes, int offset)
returns the code short at a specific offset as an int
-
-
-
Method Detail
-
getbyte
public static int getbyte(byte[] bytes, int offset)
returns the code byte at a specific offset as an int- Parameters:
bytes
- the code bytesoffset
- the offset into the code- Returns:
- the byte as an int
-
getshort
public static int getshort(byte[] bytes, int offset)
returns the code short at a specific offset as an int- Parameters:
bytes
- the code bytesoffset
- the offset into the code- Returns:
- the short as an int
-
-