@@ -8,13 +8,11 @@ namespace SC
8
8
{
9
9
struct Buffer ;
10
10
struct String ;
11
- template <typename T>
12
- struct Vector ;
13
11
} // namespace SC
14
12
// ! @addtogroup group_file
15
13
// ! @{
16
14
17
- // / @brief Wraps a SC::FileDescriptor to open it and use strings / containers .
15
+ // / @brief Wraps a SC::FileDescriptor to open it and use strings / buffers .
18
16
// / Example usage:
19
17
// / \snippet Libraries/File/Tests/FileTest.cpp FileSnippet
20
18
struct SC ::File
@@ -52,18 +50,6 @@ struct SC::File
52
50
// / @return Valid Result if file is opened successfully
53
51
[[nodiscard]] Result open (StringView path, OpenMode mode, OpenOptions options);
54
52
55
- // / @brief Reads into a given dynamic buffer until End of File (EOF) is signaled.
56
- // / It works also for non-seekable file descriptors (stdout / in / err).
57
- // / @param destination A destination buffer to write to (it will be resized as needed)
58
- // / @return Valid result if read succeeded until EOF
59
- [[nodiscard]] Result readUntilEOF (Vector<char >& destination);
60
-
61
- // / @brief Reads into a given dynamic buffer until End of File (EOF) is signaled.
62
- // / It works also for non-seekable file descriptors (stdout / in / err).
63
- // / @param destination A destination buffer to write to (it will be resized as needed)
64
- // / @return Valid result if read succeeded until EOF
65
- [[nodiscard]] Result readUntilEOF (Vector<uint8_t >& destination);
66
-
67
53
// / @brief Reads into a given dynamic buffer until End of File (EOF) is signaled.
68
54
// / It works also for non-seekable file descriptors (stdout / in / err).
69
55
// / @param destination A destination buffer to write to (it will be resized as needed)
@@ -79,8 +65,6 @@ struct SC::File
79
65
private:
80
66
struct Internal ;
81
67
struct ReadResult ;
82
- template <typename T>
83
- Result readUntilEOFTemplate (Vector<T>& destination);
84
68
Result readUntilEOFTemplate (Buffer& destination);
85
69
};
86
70
0 commit comments