@@ -48,9 +48,9 @@ pub mod message {
4848
4949 impl :: pilota:: pb:: Message for Person {
5050 #[ inline]
51- fn encoded_len ( & self ) -> usize {
52- 0 + :: pilota:: pb:: encoding:: faststr:: encoded_len ( 1 , & self . name )
53- + :: pilota:: pb:: encoding:: int32:: encoded_len ( 2 , & self . age )
51+ fn encoded_len ( & self , ctx : & mut :: pilota :: pb :: EncodeLengthContext ) -> usize {
52+ 0 + :: pilota:: pb:: encoding:: faststr:: encoded_len ( ctx , 1 , & self . name )
53+ + :: pilota:: pb:: encoding:: int32:: encoded_len ( ctx , 2 , & self . age )
5454 }
5555
5656 #[ allow( unused_variables) ]
@@ -66,6 +66,7 @@ pub mod message {
6666 wire_type : :: pilota:: pb:: encoding:: WireType ,
6767 buf : & mut :: pilota:: Bytes ,
6868 ctx : & mut :: pilota:: pb:: encoding:: DecodeContext ,
69+ is_root : bool ,
6970 ) -> :: core:: result:: Result < ( ) , :: pilota:: pb:: DecodeError > {
7071 const STRUCT_NAME : & ' static str = stringify ! ( Person ) ;
7172
@@ -116,9 +117,9 @@ pub mod message {
116117
117118 impl :: pilota:: pb:: Message for Company {
118119 #[ inline]
119- fn encoded_len ( & self ) -> usize {
120- 0 + :: pilota:: pb:: encoding:: faststr:: encoded_len ( 1 , & self . name )
121- + :: pilota:: pb:: encoding:: message:: encoded_len_repeated ( 2 , & self . employees )
120+ fn encoded_len ( & self , ctx : & mut :: pilota :: pb :: EncodeLengthContext ) -> usize {
121+ 0 + :: pilota:: pb:: encoding:: faststr:: encoded_len ( ctx , 1 , & self . name )
122+ + :: pilota:: pb:: encoding:: message:: encoded_len_repeated ( ctx , 2 , & self . employees )
122123 }
123124
124125 #[ allow( unused_variables) ]
@@ -136,6 +137,7 @@ pub mod message {
136137 wire_type : :: pilota:: pb:: encoding:: WireType ,
137138 buf : & mut :: pilota:: Bytes ,
138139 ctx : & mut :: pilota:: pb:: encoding:: DecodeContext ,
140+ is_root : bool ,
139141 ) -> :: core:: result:: Result < ( ) , :: pilota:: pb:: DecodeError > {
140142 const STRUCT_NAME : & ' static str = stringify ! ( Company ) ;
141143
@@ -182,7 +184,7 @@ pub mod message {
182184
183185 impl :: pilota:: pb:: Message for Self_ {
184186 #[ inline]
185- fn encoded_len ( & self ) -> usize {
187+ fn encoded_len ( & self , ctx : & mut :: pilota :: pb :: EncodeLengthContext ) -> usize {
186188 0
187189 }
188190
@@ -196,6 +198,7 @@ pub mod message {
196198 wire_type : :: pilota:: pb:: encoding:: WireType ,
197199 buf : & mut :: pilota:: Bytes ,
198200 ctx : & mut :: pilota:: pb:: encoding:: DecodeContext ,
201+ is_root : bool ,
199202 ) -> :: core:: result:: Result < ( ) , :: pilota:: pb:: DecodeError > {
200203 match tag {
201204 _ => :: pilota:: pb:: encoding:: skip_field ( wire_type, tag, buf, ctx) ,
0 commit comments