Class CodeByteUtils

java.lang.Object
com.mebigfatguy.fbcontrib.utils.CodeByteUtils

public final class CodeByteUtils extends 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
     
  • Method Summary

    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 Details

    • CodeByteUtils

      private CodeByteUtils()
  • Method Details

    • 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