File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -430,9 +430,18 @@ class AutoFile
430430 /* * Implementation detail, only used internally. */
431431 std::size_t detail_fread (Span<std::byte> dst);
432432
433+ /* * Wrapper around fseek(). Will throw if seeking is not possible. */
433434 void seek (int64_t offset, int origin);
435+
436+ /* * Find position within the file. Will throw if unknown. */
434437 int64_t tell ();
435438
439+ /* * Wrapper around FileCommit(). */
440+ bool Commit ();
441+
442+ /* * Wrapper around TruncateFile(). */
443+ bool Truncate (unsigned size);
444+
436445 //
437446 // Stream subset
438447 //
@@ -453,9 +462,6 @@ class AutoFile
453462 ::Unserialize (*this , obj);
454463 return *this ;
455464 }
456-
457- bool Commit ();
458- bool Truncate (unsigned size);
459465};
460466
461467/* * Wrapper around an AutoFile& that implements a ring buffer to
You can’t perform that action at this time.
0 commit comments