GetWorkBufferSizeForNewsUrl

nn::news::CTR::user::GetWorkBufferSizeForNewsUr Function

Syntax

size_t GetWorkBufferSizeForNewsUrl(
     const wchar_t * message,
     const u8 * url
);

Parameters

Name Description
in message Specifies the message body. Use UTF-16LE and keep the string length within MESSAGE_LEN (including the null terminator). The buffer size of this and url combined must be 6,000 bytes or smaller.
in url Specifies the URL. Use UTF-8 and keep the string length within MESSAGE_URL_URL_SIZE (including the null terminator). The buffer size of this and message combined must be 6,000 bytes or smaller.

Return Values

Returns the work buffer size. If incorrect data have been specified, the function returns 0.

Description

Calculates the work buffer size for posting a notification with an embedded URL.

Revision History

2011/09/29
Initial version.

CONFIDENTIAL