<?php
// Own namespace
-namespace Org\Mxchange\CoreFramework\Filesystem\Stack;
+namespace Org\Mxchange\CoreFramework\Stack\File;
// Import framework stuff
-use Org\Mxchange\CoreFramework\Stacker\Stackable;
+use Org\Mxchange\CoreFramework\Stack\Stackable;
/**
* A Stackable file interface
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
interface StackableFile extends Stackable {
+ /**
+ * Magic for this stack
+ */
+ const STACK_MAGIC = 'STACKv0.1';
+
+ /**
+ * Name of array index for gap position
+ */
+ const ARRAY_NAME_GAP_POSITION = 'gap';
+
+ /**
+ * Name of array index for hash
+ */
+ const ARRAY_NAME_HASH = 'hash';
+
+ /**
+ * Name of array index for length of raw data
+ */
+ const ARRAY_NAME_DATA_LENGTH = 'length';
+
/**
* Seeks to given position
*
* @param $seekPosition Seek position in file
* @return $status Status of this operation
*/
- function seek ($seekPosition);
+ function seek (int $seekPosition);
/**
* Size of file stack