Class 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 int
      static int getshort​(byte[] bytes, int offset)
      returns the code short at a specific offset as an int
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CodeByteUtils

        private CodeByteUtils()
    • 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 bytes
        offset - 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 bytes
        offset - the offset into the code
        Returns:
        the short as an int