BKE_armature_mat_pose_to_bone (and avoids the need to get an Object pointer!). Note the former just calls the later internally, in this case.
BKE_armature_mat_pose_to_bone (and avoids the need to get an Object pointer!). Note the former just calls the later internally, in this case.