Factor out begin_of_bytes().
Implement &=.
Add the implementations of |= and ^=.