-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file util other functions spec and header #258
base: master
Are you sure you want to change the base?
Conversation
MOCKABLE_FUNCTION(, bool, file_util_set_file_pointer_ex, HANDLE, handle_input, LARGE_INTEGER, distance_to_move, PLARGE_INTEGER, new_file_pointer, uint32_t, move_method); | ||
``` | ||
|
||
If there are any failures, `file_util_set_file_pointer_ex` shall fail and return false. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing the description sentence, here and below #Resolved
|
||
`file_util_set_end_of_file` shall succeed and return true. | ||
|
||
### file_util_write_file_ex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We decided to implement a CreateThreadpoolIO. Then the write file function would go within that. So that is something I will be working on implementing now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that makes sense, I suppose this will be updated with some additional parameter which is an OVERLAPPED*
on win32 and something equivalent on Linux
MOCKABLE_FUNCTION(, bool, file_util_get_file_size, PLARGE_INTEGER*, file_size, HANDLE, handle_input); | ||
``` | ||
|
||
`file_util_get_file_size_ex` implements the GetFileSizeEx function in Linux. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MOCKABLE_FUNCTION(, bool, file_util_get_file_size, PLARGE_INTEGER*, file_size, HANDLE, handle_input); | ||
``` | ||
|
||
`file_util_get_file_size_ex` implements the GetFileSizeEx function in Linux. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
If there are any failures, `file_util_get_file_size_ex` shall fail and return false. | ||
|
||
`file_util_get_file_size_ex` shall succeed and return true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should go after the "shall call stat
..." line #Resolved
No description provided.