-
Android 我在Demo中将
|
Beta Was this translation helpful? Give feedback.
Answered by
lingol
May 17, 2021
Replies: 1 comment
-
Yep. It's OK to ignore that size of a string when encoding only one value. However, when encoding a list of strings, that size is required for each string value inside. For the clarity of code, we make that logic the same. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mrdcn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep. It's OK to ignore that size of a string when encoding only one value. However, when encoding a list of strings, that size is required for each string value inside. For the clarity of code, we make that logic the same.