@@ -44,74 +44,72 @@ enum class Mode : std::uint32_t {
4444 AppendPlusBinary = 11 ,
4545};
4646
47- // / Checks if the debugger is connected.
47+ // / @brief Checks if the debugger is connected.
4848bool IsConnected (void );
4949
50- // / Opens a file and returns a handle.
50+ // / @brief Opens a file and returns a handle.
5151// / @param name The span of the name of the file to open.
5252// / @param mode The mode to open the file in.
5353Handle Open (core::Span<char const > name, Mode mode);
5454
55- // / Closes a file.
55+ // / @brief Closes a file.
5656// / @param handle The handle of the file to close.
5757// / @return 0 on success, -1 on error.
5858Result Close (Handle handle);
5959
60- // / Writes data to a file.
60+ // / @brief Writes data to a file.
6161// / @param handle The handle of the file to write to.
62- // / @param buffer The data to write.
63- // / @param len The length of the data to write.
62+ // / @param buffer The span over the buffer to write from
6463// / @return The number of bytes written, or -1 on error.
6564Result Write (Handle handle, core::Span<char const > buffer);
6665
67- // / Writes a single character to a file
66+ // / @brief Writes a single character to a file
6867// / @param c The character to write.
6968void Write (char c);
7069
71- // / Writes a string to a file.
70+ // / @brief Writes a string to a file.
7271// / @param string The string to write.
7372void Write (const char string[]);
7473
75- // / Reads data from a file.
74+ // / @brief Reads data from a file.
7675// / @param handle The handle of the file to read from.
77- // / @param buffer The buffer to read the data into.
78- // / @param len The length of the data to read.
76+ // / @param buffer The span over the buffer to read the data into
7977// / @return The number of bytes read, or -1 on error.
8078Result Read (Handle handle, core::Span<char > buffer);
8179
82- // / Reads a character from a file.
80+ // / @brief Reads a character from a file.
8381char Read (void );
8482
85- // / Checks if a value is an error.
83+ // / @brief Checks if a value is an error.
8684// / @return True if the value is an error, false otherwise.
8785bool IsError (int32_t value);
8886
89- // / Checks if a file handle is a TTY.
87+ // / @brief Checks if a file handle is a TTY.
9088// / @param handle The handle of the file to check.
9189// / @return True if the file is a TTY, false otherwise.
9290bool IsTTY (int handle);
9391
94- // / Seeks to a position in a file.
92+ // / @brief Seeks to a position in a file.
9593// / @param handle The handle of the file to seek in.
9694// / @param position The position to seek to.
9795// / @return The new position on success, or -1 on error.
9896Result Seek (Handle handle, uint32_t position);
9997
100- // / Gets the length of a file.
98+ // / @brief Gets the length of a file.
10199// / @param handle The handle of the file to get the length of.
102100// / @return The length of the file, or -1 on error.
103101int32_t Length (Handle handle);
104102
105- // / Gets A temporary name for a file.
106- // / @param name[out] The location to store the name of the file
103+ // / @brief Gets A temporary name for a file.
104+ // / @param name The location to store the name of the file
107105// / @param id The ID of the temporary file.
108106Result TempName (core::Span<char const > name, uint32_t id);
109107
110- // / Removes a file from the Host File System
108+ // / @brief Removes a file from the Host File System
111109// / @param name The span of the name of the file to remove
112110Result Remove (core::Span<char const > name);
113111
114- // / Renames a file on the Host File System
112+ // / @brief Renames a file on the Host File System
115113// / @param old_file The span of the current file name
116114// / @param new_file The span of the new file name
117115// / @return 0 on success, -1 on error
@@ -136,10 +134,10 @@ uint32_t GetCommandLine(core::Span<char> buffer);
136134
137135// / @brief Information about the heap and stack blocks
138136struct BlockInfo {
139- uint32_t heap_base;
140- uint32_t heap_limit;
141- uint32_t stack_base;
142- uint32_t stack_limit;
137+ uint32_t heap_base; // /< Base address of heap
138+ uint32_t heap_limit; // /< Limit address of heap
139+ uint32_t stack_base; // /< Base address of stack
140+ uint32_t stack_limit; // /< Limit address of stack
143141};
144142
145143// / @param[out] info The block information to fill in
0 commit comments