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
430
430
/* * Implementation detail, only used internally. */
431
431
std::size_t detail_fread (Span<std::byte> dst);
432
432
433
+ /* * Wrapper around fseek(). Will throw if seeking is not possible. */
433
434
void seek (int64_t offset, int origin);
435
+
436
+ /* * Find position within the file. Will throw if unknown. */
434
437
int64_t tell ();
435
438
439
+ /* * Wrapper around FileCommit(). */
440
+ bool Commit ();
441
+
442
+ /* * Wrapper around TruncateFile(). */
443
+ bool Truncate (unsigned size);
444
+
436
445
//
437
446
// Stream subset
438
447
//
@@ -453,9 +462,6 @@ class AutoFile
453
462
::Unserialize (*this , obj);
454
463
return *this ;
455
464
}
456
-
457
- bool Commit ();
458
- bool Truncate (unsigned size);
459
465
};
460
466
461
467
/* * Wrapper around an AutoFile& that implements a ring buffer to
You can’t perform that action at this time.
0 commit comments