mirror of
https://github.com/vacp2p/specs.git
synced 2026-01-09 15:28:03 -05:00
docs(readme): decoding the header
This commit is contained in:
committed by
Steven Allen
parent
34c138b342
commit
ee861b9797
@@ -22,8 +22,8 @@ The header is an unsigned base128 varint, as defined in the [protocol buffers sp
|
||||
|
||||
```
|
||||
header = readUvarint()
|
||||
flag = head & 0x07
|
||||
id = flag >> 3
|
||||
flag = header & 0x07
|
||||
id = header >> 3
|
||||
```
|
||||
|
||||
### Flag Values
|
||||
|
||||
Reference in New Issue
Block a user