Class CLUtil


  • public class CLUtil
    extends Object
    Author:
    Michael Bien
    • Constructor Detail

      • CLUtil

        public CLUtil()
    • Method Detail

      • clString2JavaString

        public static String clString2JavaString​(byte[] chars,
                                                 int clLength)
      • clString2JavaString

        public static String clString2JavaString​(ByteBuffer chars,
                                                 int clLength)
      • clBoolean

        public static boolean clBoolean​(int clBoolean)
        Returns true if clBoolean == CL.CL_TRUE.
      • clBoolean

        public static int clBoolean​(boolean b)
        Returns b ? CL.CL_TRUE : CL.CL_FALSE
      • obtainPlatformProperties

        public static Map<String,​String> obtainPlatformProperties​(CLPlatform platform)
        Reads all platform properties and returns them as key-value map.
      • obtainDeviceProperties

        public static Map<String,​String> obtainDeviceProperties​(CLDevice dev)
        Reads all device properties and returns them as key-value map.