flexible data encode for emitter