Skip to content

Commit 1636ec9

Browse files
authored
Update README.md
1 parent 344140a commit 1636ec9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Not everything might be correct so you can pull request a fix to them if they re
1818
| zero-padding | variable | Null bytes used for padding with a size of your choice |
1919
| bool | 1 byte | Written or read as a single uint8, with a value of 0 or 1 (Zero represents false, and One represents true) |
2020
| address | 7-29 bytes | <table> <thead> <th>Field/Condition</th> <th>Body</th> </thead> <tbody> <tr> <td>address version</td> <td>DataType: uint8.</br>Field will be referenced as "version" below</td> </tr> <tr> <td>version is 4</td> <td> <table> <thead> <th>Field</th> <th>Type</th> <th>Endianness</th> <th>Note</th> </thead> <tbody> <tr> <td>address</td> <td>uint32</td> <td>Big Endian</td> <td>Decoding: ~(address) then do endian stuff with it</td> </tr> <tr> <td>port</td> <td>uint16</td> <td>Big Endian</td> <td></td> </tr> </tbody> </table> </td> </tr> <tr> <td>version is 6</td> <td> <table> <thead> <th>Field</th> <th>Type</th> <th>Endianness</th> </thead> <tbody> <tr> <td>address family</td> <td>uint16</td> <td>Little Endian</td> </tr> <tr> <td>port</td> <td>uint16</td> <td>Big Endian</td> </tr> <tr> <td>flow info</td> <td>uint32</td> <td>Big Endian</td> </tr> <tr> <td>address</td> <td>uint8[16]</td> <td></td> </tr> <tr> <td>scope id</td> <td>uint32</td> <td>Big Endian</td> </tr> </tbody> </table> </td> </tr> </tbody> </table> |
21-
| bit | 1 bit | 1/2/3 bits cannot be written inside the buffer if not 8bits which means 1 bit into buffer would be 0b10000000 written as uint8 |
21+
| bit | 1 bit | a bit can be 1 or 0 where it is written as uint8 extended by 0s until 8 bits (bits are written in msb order) |
2222
| float | 4 bytes | IEEE 754 single-precision floating-point number |
2323

2424
## Minecraft

0 commit comments

Comments
 (0)