nn::friends::CTR::UnscrambleLocalFriendCode FunctionResult UnscrambleLocalFriendCode( LocalFriendCode * pLocalFriendCodeList, const uds::CTR::ScrambledLocalFriendCode * pScrambledLocalFriendCodeList, size_t size = 1 );
| Name | Description | |
|---|---|---|
| out | pLocalFriendCodeList | Specifies a pointer to the buffer storing the decoded local friend code. |
| in | pScrambledLocalFriendCodeList | Specifies a pointer to a list of encoded local friend codes. |
| in | size | Specifies the number of buffer elements in the encoded local friend code list. |
| Value | Description |
|---|---|
Result::IsSuccess |
Process succeeded. |
ResultInvalidPointer |
Invalid pointer passed as argument. |
ResultTooLarge |
The value passed as the argument is too large. |
ResultNotInitialized |
The friend presence library is not initialized. |
| Other | Another result may be returned, depending on the internal state of the daemon and other factors. |
Decodes a friend's encoded local friend code.
When an encoded local friend code for someone who is not a friend is specified, an invalid local friend code is returned. The function still returns success in this case.
CONFIDENTIAL