Update src/Functions/byteSwap.cpp

Co-authored-by: Priyansh Agrawal <agrawal.priyansh@yahoo.in>
This commit is contained in:
Robert Schulze 2023-10-10 23:45:23 +02:00 committed by GitHub
parent 31ae84604f
commit 96e3a4f9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ The above example can be worked out in the following manner:
2. Reverse the bytes, i.e. C7 C7 FB CD -> CD FB C7 C7
3. Convert the result back to an integer assuming big-endian, i.e. CD FB C7 C7 -> 3455829959
One use-case of this function is reversing IPv5s:
One use-case of this function is reversing IPv4s:
```result
toIPv4(byteSwap(toUInt32(toIPv4('205.251.199.199'))))