Class Define

java.lang.Object
br.net.dd.netherwingcore.common.Define

public final class Define extends Object
Core definitions and constants for NetherwingCore.
  • Field Details

  • Method Details

    • formatStringView

      public static String formatStringView(String str)
      Helper method for string view formatting In C++: STRING_VIEW_FMT_ARG(str) -> static_cast((str).length()), (str).data() In Java: Just use the string directly with %s
    • stringViewFmtArg

      public static String stringViewFmtArg(String str)
      Helper method to create string view format arguments
      Parameters:
      str - the string to format
      Returns:
      formatted string
    • toUnsignedString

      public static String toUnsignedString(long value)
      Convert signed long to unsigned string representation
    • toUnsignedLong

      public static long toUnsignedLong(int value)
      Convert signed int to unsigned long
    • toUnsignedInt

      public static int toUnsignedInt(short value)
      Convert signed short to unsigned int
    • toUnsignedInt

      public static int toUnsignedInt(byte value)
      Convert signed byte to unsigned int