]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.team.ui/src/org/simantics/team/internal/Kraa.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.team.ui / src / org / simantics / team / internal / Kraa.java
diff --git a/bundles/org.simantics.team.ui/src/org/simantics/team/internal/Kraa.java b/bundles/org.simantics.team.ui/src/org/simantics/team/internal/Kraa.java
new file mode 100644 (file)
index 0000000..d5ad57d
--- /dev/null
@@ -0,0 +1,22 @@
+package org.simantics.team.internal;\r
+\r
+import java.nio.ByteBuffer;\r
+import java.nio.DoubleBuffer;\r
+\r
+public class Kraa {\r
+\r
+    /**\r
+     * @param args\r
+     */\r
+    public static void main(String[] args) {\r
+        byte[] bytes = {63, -16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, -16, 0, 0, 0, 0, 0, 0, 64, 49, 0, 0, 0, 0, 0, 0, 64, 104, 32, 0, 0, 0, 0, 0};\r
+        ByteBuffer bf = ByteBuffer.wrap(bytes);\r
+        DoubleBuffer buf = bf.asDoubleBuffer();\r
+        for (int i=0; i<bytes.length/8; ++i) \r
+            System.out.println("" + buf.get());\r
+        \r
+        // TODO Auto-generated method stub\r
+\r
+    }\r
+\r
+}\r