mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
streams: reorder/document functions
This commit is contained in:
parent
67a3d59076
commit
caac06f784
1 changed files with 9 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue