Skip to content

Commit caac06f

Browse files
committed
streams: reorder/document functions
1 parent 67a3d59 commit caac06f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/streams.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)