From: <sv...@op...> - 2024-03-15 07:39:27
|
Author: manx Date: Fri Mar 15 08:39:13 2024 New Revision: 20326 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20326 Log: [Ref] mpt/io_read/filereader.hpp: Enable GetLength() and BytesLeft() FileReader free functions. These should never have been made completely unavailable. Modified: trunk/OpenMPT/src/mpt/io_read/filereader.hpp Modified: trunk/OpenMPT/src/mpt/io_read/filereader.hpp ============================================================================== --- trunk/OpenMPT/src/mpt/io_read/filereader.hpp Thu Mar 14 20:37:51 2024 (r20325) +++ trunk/OpenMPT/src/mpt/io_read/filereader.hpp Fri Mar 15 08:39:13 2024 (r20326) @@ -99,21 +99,17 @@ return f.HasFastGetLength(); } -#if 0 // Returns size of the mapped file in bytes. template <typename TFileCursor> MPT_FILECURSOR_DEPRECATED typename TFileCursor::pos_type GetLength(const TFileCursor & f) { return f.GetLength(); } -#endif -#if 0 // Return byte count between cursor position and end of file, i.e. how many bytes can still be read. template <typename TFileCursor> MPT_FILECURSOR_DEPRECATED typename TFileCursor::pos_type BytesLeft(const TFileCursor & f) { return f.BytesLeft(); } -#endif template <typename TFileCursor> bool EndOfFile(const TFileCursor & f) { |