diff options
Diffstat (limited to 'src/com/mbien/opencl/CLUtils.java')
-rw-r--r-- | src/com/mbien/opencl/CLUtils.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLUtils.java b/src/com/mbien/opencl/CLUtils.java new file mode 100644 index 00000000..c19292b6 --- /dev/null +++ b/src/com/mbien/opencl/CLUtils.java @@ -0,0 +1,13 @@ +package com.mbien.opencl; + +/** + * + * @author Michael Bien + */ +class CLUtils { + + public static String clString2JavaString(byte[] chars, int clLength) { + return clLength==0 ? "" : new String(chars, 0, clLength-1); + } + +} |