byteMask should be based on bitsPerByte