-
Notifications
You must be signed in to change notification settings - Fork 3
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
Move value parsing into its own function #18
Conversation
Codecov Report
@@ Coverage Diff @@
## main #18 +/- ##
==========================================
+ Coverage 52.18% 52.44% +0.25%
==========================================
Files 4 4
Lines 389 389
==========================================
+ Hits 203 204 +1
+ Misses 186 185 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
while data.tell() < data_len: | ||
string = read_null_terminated_wstring(data) | ||
if string == "": | ||
break | ||
|
||
multi_string.append(string) |
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.
while data.tell() < data_len: | |
string = read_null_terminated_wstring(data) | |
if string == "": | |
break | |
multi_string.append(string) | |
while string := read_null_terminated_wstring(data): | |
multi_string.append(string) |
Wouldn't something like this do the same thing?
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.
Wouldn't that just error at the end of the data?
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.
I also don't intend to make much changes to how the function works.
No description provided.