- put_marker(pb, LSE);
- put_bits(pb, 16, 13);
- put_bits(pb, 8, 1);
- put_bits(pb, 16, state->maxval);
- put_bits(pb, 16, state->T1);
- put_bits(pb, 16, state->T2);
- put_bits(pb, 16, state->T3);
- put_bits(pb, 16, state->reset);
+ put_marker_byteu(pb, LSE);
+ bytestream2_put_be16u(pb, 13);
+ bytestream2_put_byteu(pb, 1);
+ bytestream2_put_be16u(pb, state->maxval);
+ bytestream2_put_be16u(pb, state->T1);
+ bytestream2_put_be16u(pb, state->T2);
+ bytestream2_put_be16u(pb, state->T3);
+ bytestream2_put_be16u(pb, state->reset);