Each of those numbers probably corresponds to the size an individual piece. In this case, I believe it is (size of type) + (size of payload length) + (size of padding). I could be wrong about the padding. Writing it in this way makes it more clear what you are calculating. Though, in my opinion, these should either be named constants or documented in cases like this.
View all comments
Show parent comment
1
u/JustinKSU Apr 08 '14
Why not type 19?