When transferring weights, the SourceMesh bone attriubtes will be copied over to the TargetMesh, replacing any existing one, and transferred weights will be indexing the copied bone attributes.
TargetBones
When transferring weights, if the TargetMesh has bone attributes, then the transferred SourceMesh weights will be reindexed with respect to the TargetMesh bones.