We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b5248c commit c8a74bcCopy full SHA for c8a74bc
2 files changed
README.md
@@ -17,7 +17,8 @@ Not everything might be correct so you can pull request a fix to them if they re
17
| magic | 16 bytes | An array of unsigned 8-bit integers with a specific sequence `[0x00, 0xFF, 0xFF, 0x00, 0xFE, 0xFE, 0xFE, 0xFE, 0xFD, 0xFD, 0xFD, 0xFD, 0x12, 0x34, 0x56, 0x78]` used to identify offline packets |
18
| zero-padding | variable | Null bytes used for padding with a size of your choice |
19
| bool | 1 byte | Written or read as a single uint8, with a value of 0 or 1 (Zero represents false, and One represents true) |
20
-| 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> |
+| address | 7-29 bytes | <table>
21
+<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> |
22
| 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 |
23
| float | 4 bytes | IEEE 754 single-precision floating-point number |
24
0 commit comments