private static int ubyteToInt(byte ub) {
    return ub & 0xFF;
  }
Convert the given unsigned byte to an int. The returned value will be in the range [0..255]
inclusive
geode-core/src/main/java/org/apache/geode/internal/InternalDataSerializer.java