]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/index/file_stack/class_FileStackIndex.php
Continued:
[core.git] / inc / classes / main / index / file_stack / class_FileStackIndex.php
index e313ad83c96120f925affd9826222ed0665653fb..307d39963ea64829cd974a1fed28c1283b98edb0 100644 (file)
@@ -48,6 +48,28 @@ class FileStackIndex extends BaseIndex implements IndexableStack, Registerable {
                // 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]