streams: reorder/document functions

This commit is contained in:
Pieter Wuille 2024-09-19 07:57:45 -04:00
parent 67a3d59076
commit caac06f784

View file

@ -430,9 +430,18 @@ public:
/** Implementation detail, only used internally. */ /** Implementation detail, only used internally. */
std::size_t detail_fread(Span<std::byte> dst); std::size_t detail_fread(Span<std::byte> dst);
/** Wrapper around fseek(). Will throw if seeking is not possible. */
void seek(int64_t offset, int origin); void seek(int64_t offset, int origin);
/** Find position within the file. Will throw if unknown. */
int64_t tell(); int64_t tell();
/** Wrapper around FileCommit(). */
bool Commit();
/** Wrapper around TruncateFile(). */
bool Truncate(unsigned size);
// //
// Stream subset // Stream subset
// //
@ -453,9 +462,6 @@ public:
::Unserialize(*this, obj); ::Unserialize(*this, obj);
return *this; return *this;
} }
bool Commit();
bool Truncate(unsigned size);
}; };
/** Wrapper around an AutoFile& that implements a ring buffer to /** Wrapper around an AutoFile& that implements a ring buffer to