X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Fheavy_file_ops.h;h=d728c43bbb723ea633bf91c312f121e800c5787a;hb=bdad028197585398525f28ef9fbe709b3c42077b;hp=028bb8e2be41f0542bd28a891e2848d7a979cf5b;hpb=b08342525706b55bb9434ecef060373793243089;p=feisty_meow.git diff --git a/nucleus/library/filesystem/heavy_file_ops.h b/nucleus/library/filesystem/heavy_file_ops.h index 028bb8e2..d728c43b 100644 --- a/nucleus/library/filesystem/heavy_file_ops.h +++ b/nucleus/library/filesystem/heavy_file_ops.h @@ -30,6 +30,7 @@ class file_transfer_header : public basis::packable { public: basis::astring _filename; //!< the name of the file being transferred. +//hmmm: consider adding full length here so we know it. double _byte_start; //!< the starting location in the file being sent. int _length; //!< the length of the transferred piece. file_time _time; //!< the timestamp on the file. @@ -80,14 +81,14 @@ public: //!< method can be exported for use by shared libs. static basis::outcome copy_file(const basis::astring &source, const basis::astring &destination, - int copy_chunk_factor = copy_chunk_factor()); + int copy_chunk_factor = heavy_file_operations::copy_chunk_factor()); //!< copies a file from the "source" location to the "destination". /*!< the outcomes could be from this class or from common::outcomes. the "copy_chunk_factor" is the read buffer size to use while copying. */ static basis::outcome write_file_chunk(const basis::astring &target, double byte_start, const basis::byte_array &chunk, bool truncate = true, - int copy_chunk_factor = copy_chunk_factor()); + int copy_chunk_factor = heavy_file_operations::copy_chunk_factor()); //!< stores a chunk of bytes into the "target" file. /*!< writes the content stored in "chunk" into the file "target" at the position "byte_start". the entire "chunk" will be used, which means the