Pass const references instead of pointers in decoder event blocks