BTree index on disk
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / internal / tmf / core / trace / TmfExperimentLocation.java
index bbd7b650dfdcfbaf2624ac6461057f140538833f..4f6edec3c4b2b34c7e9c4a0c0ce8eeabb4e5ebc1 100644 (file)
@@ -14,6 +14,8 @@
 
 package org.eclipse.linuxtools.internal.tmf.core.trace;
 
+import java.nio.ByteBuffer;
+
 import org.eclipse.linuxtools.tmf.core.trace.location.ITmfLocation;
 
 
@@ -106,4 +108,13 @@ public final class TmfExperimentLocation implements ITmfLocation {
         return fLocation;
     }
 
+    @Override
+    public void serialize(ByteBuffer bufferOut) {
+        ITmfLocation[] locations = fLocation.getLocations();
+        long[] ranks = fLocation.getRanks();
+        for (int i = 0; i < locations.length; ++i) {
+            locations[i].serialize(bufferOut);
+            bufferOut.putLong(ranks[i]);
+        }
+    }
 }
This page took 0.023887 seconds and 5 git commands to generate.