native parser #writeHeadBytes now really takes the masking