Applies the `len`-byte bitmask `mask` to `buf`, in 1-byte chunks.
| 112 | |
| 113 | // Applies the `len`-byte bitmask `mask` to `buf`, in 1-byte chunks. |
| 114 | static inline void MaskBytesSmall(uint8_t *buf, const uint8_t *mask, |
| 115 | const size_t len) { |
| 116 | for (size_t i = 0; i < len; i++) { |
| 117 | buf[i] &= mask[i]; |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | // Applies the `len`-byte bitmask `mask` to `buf`, in 8-byte chunks if able, |
| 122 | // otherwise, falls back to 1-byte chunks. |
no outgoing calls