// Return the prepared instance
return $indexInstance;
}
+
+ /**
+ * Adds given hash to an index file
+ *
+ * @param $groupId Name of stack to add hash for
+ * @param $data Hash and gap position to be added to the index
+ * @return void
+ */
+ public function addHashToIndex ($groupId, array $data) {
+ $this->partialStub('groupId=' . $groupId . ',data=' . print_r($data, TRUE));
+ }
+
+ /**
+ * Searches for next suitable gap the given length of data can fit in
+ * including padding bytes.
+ *
+ * @param $length Length of raw data
+ * @return $seekPosition Found next gap's seek position
+ */
+ public function searchNextGap ($length) {
+ $this->partialStub('length=' . $length);
+ }
}
// [EOF]