Left-truncates at the first index mark, so the resulting data as aligned at * the index. */
| 142 | /* Left-truncates at the first index mark, so the resulting data as aligned at |
| 143 | * the index. */ |
| 144 | Bytes stripPartialRotation(const Bytes& fldata) |
| 145 | { |
| 146 | for (unsigned i = 0; i < fldata.size(); i++) |
| 147 | { |
| 148 | uint8_t b = fldata[i]; |
| 149 | if (b & F_BIT_INDEX) |
| 150 | return fldata.slice(i); |
| 151 | } |
| 152 | return fldata; |
| 153 | } |