Setting bone positions using C++

for my project I am trying to use shared memory to pull floats which I will use to set my characters bone position. What would be the best way to go about doing that. I have already created a class which pulls the information from the shared memory, but I can’t find a way to apply those transformations to my character. What would be the best way to go about doing that?
I have tried to google around, but I am confused as to where to put the code provided and was hoping someone could provide me some input.

Thanks everyone in advance

The best answer I can give you is this
A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums”. This is usually specified in Blueprints.

If you want to manipulate bones directly through C++, your character needs to derive from UPoseableMeshComponent instead of USkeletalMeshComponent. Here’s an answer which might help:

EDIT: UPoseableMeshComponent::SetBoneLocationByName might help you with that