This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " JavaScript implementation of the IPFS specification" ,
5
5
"scripts" : {
6
- "postinstall" : " lerna bootstrap && npm run build -- --scope=ipfs-grpc-protocol " ,
6
+ "postinstall" : " lerna bootstrap" ,
7
7
"link" : " lerna link" ,
8
8
"reset" : " lerna run clean && rm -rf packages/*/node_modules node_modules" ,
9
9
"test" : " lerna run test" ,
Original file line number Diff line number Diff line change 41
41
"merge-options" : " ^2.0.0"
42
42
},
43
43
"devDependencies" : {
44
- "aegir" : " ^28.0 .0" ,
44
+ "aegir" : " ^28.2 .0" ,
45
45
"typescript" : " ^4.0.3"
46
46
}
47
47
}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ A one-byte field.
24
24
25
25
### Header
26
26
27
- A five-byte field.
27
+ A five-byte field that contains one byte signifying if it's a Header or a Trailer and four bytes that contain the length of the following data .
28
28
29
29
| byte index | Meaning |
30
30
| --------------| ---|
@@ -33,7 +33,13 @@ A five-byte field.
33
33
34
34
### Message data
35
35
36
- A protocol buffer message
36
+ A protocol buffer message, the length of which is defined in the header
37
37
38
38
### Trailer
39
39
40
+ A five-byte field that contains one byte signifying if it's a Header or a Trailer and four bytes that contain the length of the following data.
41
+
42
+ | byte index | Meaning |
43
+ | --------------| ---|
44
+ | 0 | 0: This is a header, 128: This is a footer |
45
+ | 1-4 | A big-endian 32-bit integer that specifies the length of the trailer |
You can’t perform that action at this time.
0 commit comments