Write op to raw struct