Join Slack
Powered by
How come `"hello".cstr.size == "hello".length + 2`...
# kotlin-native
t
tunedal
09/24/2017, 5:00 PM
How come
"hello".cstr.size == "hello".length + 2
? Shouldn't it just have one more byte for the NUL?
tunedal
09/24/2017, 8:44 PM
Ah, fixed in version 0.3.2 it seems, probably by commit 7fadfa5a0. So now I can just subtract 1 to get the number of actual bytes, right?
o
olonho
09/25/2017, 5:13 AM
Yes, it was fixed
Open in Slack
Previous
Next