-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Complete an IP address with 0s #10183
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
Complete an IP address with 0s #10183
Conversation
…lete an IP address with 0s.
👋 Hello rowingdude, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
Test Results 56 files 56 suites 5m 11s ⏱️ Results for commit 27fb6ea. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
Why at all? Heavy code changes in a code part which is mandatory and not trivial. |
I saw a to do in the comments and made the addition. I’m sorry it’s not
what you're looking for
…On Sat, Aug 17, 2024 at 06:31 Jason2866 ***@***.***> wrote:
Why at all? Heavy code changes in a code part which is mandatory and not
trivial.
Don't fix ain't broke. No benefit and code size increases.
—
Reply to this email directly, view it on GitHub
<#10183 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL35JKLTM5S6AQT3EGJSG23ZR4Q7BAVCNFSM6AAAAABMUMB2KWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUHAZDANRWGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This |
The general idea was to take any partial IP address such as 192. and complete it with 0s, so 192. becomes 192.0.0.0 and so on up to a full address.
I created a second function, parseIPv4Part to check the validity of each section of the IP address we're assessing, it simply checks the value and returns a true or false, we complete on false.