X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Ffilesystem%2Fbinary%2Fclass_BinaryFile.php;fp=framework%2Fmain%2Finterfaces%2Ffilesystem%2Fbinary%2Fclass_BinaryFile.php;h=04bc74993a781a5721cbd209edaea0f0e83cc9d5;hb=6dd6e82fe8514a88af39fbbec5c4e3a73956f308;hp=5dcd2c4f198eb2fc09cc0af8bc71132fedd0eedc;hpb=93c10cd8bbd88a27bdcd0e65956298666218f150;p=core.git diff --git a/framework/main/interfaces/filesystem/binary/class_BinaryFile.php b/framework/main/interfaces/filesystem/binary/class_BinaryFile.php index 5dcd2c4f..04bc7499 100644 --- a/framework/main/interfaces/filesystem/binary/class_BinaryFile.php +++ b/framework/main/interfaces/filesystem/binary/class_BinaryFile.php @@ -110,6 +110,14 @@ interface BinaryFile extends Filesystem { */ function getFileSize (); + /** + * Checks whether the abstracted file only contains gaps by counting all + * gaps' bytes together and compare it to total length. + * + * @return $isGapsOnly Whether the abstracted file only contains gaps + */ + function isFileGapsOnly(); + /** * Searches for next suitable gap the given length of data can fit in * including padding bytes.