Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
ea89b50d
Commit
ea89b50d
authored
Aug 14, 2017
by
Kenton Varda
Committed by
GitHub
Aug 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #535 from zombiezen/canonicaloffset
Specify canonicalization rule for zero-sized struct pointers
parents
b3411054
36fba611
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
encoding.md
doc/encoding.md
+1
-0
No files found.
doc/encoding.md
View file @
ea89b50d
...
@@ -351,6 +351,7 @@ A canonical Cap'n Proto message must adhere to the following rules:
...
@@ -351,6 +351,7 @@ A canonical Cap'n Proto message must adhere to the following rules:
*
Similarly, for a struct list, if a trailing word in a section of all structs in the list is zero,
*
Similarly, for a struct list, if a trailing word in a section of all structs in the list is zero,
then it must be truncated from all structs in the list. (All structs in a struct list must have
then it must be truncated from all structs in the list. (All structs in a struct list must have
equal sizes, hence a trailing zero can only be removed if it is zero in all elements.)
equal sizes, hence a trailing zero can only be removed if it is zero in all elements.)
*
Any struct pointer pointing to a zero-sized struct should have an offset of -1.
*
Canonical messages are not packed. However, packing can still be applied for transmission
*
Canonical messages are not packed. However, packing can still be applied for transmission
purposes; the message must simply be unpacked before checking signatures.
purposes; the message must simply be unpacked before checking signatures.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment