String literal type s in FunC supports bit padding.
I'm sure that we should also support that for Tact's rawSlice(), because otherwise it won't be possible to define slices with binary data of length not divisible by 4.
This padding basically removes all the trailing zeros and also the last 1 bit before them. So, for example, 4a is 0100 1010 and 4a_ is 0100 10.
This is a follow-up on #787
String literal type
s
in FunC supports bit padding. I'm sure that we should also support that for Tact'srawSlice()
, because otherwise it won't be possible to define slices with binary data of length not divisible by 4.This padding basically removes all the trailing zeros and also the last
1
bit before them. So, for example,4a
is0100 1010
and4a_
is0100 10
.