Bool type conversion error in encode method #641
Unanswered
JackTong0312
asked this question in
Q&A
Replies: 1 comment
-
Hi @tongxuerui , sorry, but I don't know what the error is just from the snippet you included. It looks like we were missing a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
required bool dynamic_screen_size = 5 [default = true];
encode
if (message.dynamicScreenSize === true) {
writer.uint32(40).bool(message.dynamicScreenSize);
}
Beta Was this translation helpful? Give feedback.
All reactions