Skip to content

Commit

Permalink
Filesystem: Fixed typo in param naming
Browse files Browse the repository at this point in the history
  • Loading branch information
geky committed Mar 14, 2017
1 parent 90fc0b9 commit 18bab4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions features/filesystem/File.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ class File : public FileHandle {
* @return The number of bytes read, 0 at end of file, negative error on failure
*/

virtual ssize_t read(void *buffer, size_t len);
virtual ssize_t read(void *buffer, size_t size);

/** Write the contents of a buffer to a file
*
* @param buffer The buffer to write from
* @param size The number of bytes to write
* @return The number of bytes written, negative error on failure
*/
virtual ssize_t write(const void *buffer, size_t len);
virtual ssize_t write(const void *buffer, size_t size);

/** Flush any buffers associated with the file
*
Expand Down
4 changes: 2 additions & 2 deletions features/filesystem/FileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class FileSystem : public FileBase {
* @param size The number of bytes to read
* @return The number of bytes read, 0 at end of file, negative error on failure
*/
virtual ssize_t file_read(fs_file_t file, void *buffer, size_t len) = 0;
virtual ssize_t file_read(fs_file_t file, void *buffer, size_t size) = 0;

/** Write the contents of a buffer to a file
*
Expand All @@ -127,7 +127,7 @@ class FileSystem : public FileBase {
* @param size The number of bytes to write
* @return The number of bytes written, negative error on failure
*/
virtual ssize_t file_write(fs_file_t file, const void *buffer, size_t len) = 0;
virtual ssize_t file_write(fs_file_t file, const void *buffer, size_t size) = 0;

/** Flush any buffers associated with the file
*
Expand Down
4 changes: 2 additions & 2 deletions platform/FileHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ class FileHandle {
* @param size The number of bytes to read
* @return The number of bytes read, 0 at end of file, negative error on failure
*/
virtual ssize_t read(void *buffer, size_t len) = 0;
virtual ssize_t read(void *buffer, size_t size) = 0;

/** Write the contents of a buffer to a file
*
* @param buffer The buffer to write from
* @param size The number of bytes to write
* @return The number of bytes written, negative error on failure
*/
virtual ssize_t write(const void *buffer, size_t len) = 0;
virtual ssize_t write(const void *buffer, size_t size) = 0;

/** Move the file position to a given offset from from a given location
*
Expand Down

0 comments on commit 18bab4e

Please sign in to comment.