UrlEncodeToBytes()

HttpUtility::UrlEncodeToBytes(const String&) method

Encodes URI fragment.

static System::ArrayPtr<uint8_t> System::Web::HttpUtility::UrlEncodeToBytes(const String &str)

Arguments

ParameterTypeDescription
strconst String&URI fragment to encode.

Return Value

Encoded URI fragment.

HttpUtility::UrlEncodeToBytes(const String&, const System::SharedPtr<Text::Encoding>&) method

Encodes URI fragment.

static System::ArrayPtr<uint8_t> System::Web::HttpUtility::UrlEncodeToBytes(const String &str, const System::SharedPtr<Text::Encoding> &e)

Arguments

ParameterTypeDescription
strconst String&URI fragment to encode.
econst System::SharedPtr<Text::Encoding>&Encoding to use.

Return Value

Encoded URI fragment.

HttpUtility::UrlEncodeToBytes(const System::ArrayPtr<uint8_t>&) method

Encodes URI fragment.

static System::ArrayPtr<uint8_t> System::Web::HttpUtility::UrlEncodeToBytes(const System::ArrayPtr<uint8_t> &bytes)

Arguments

ParameterTypeDescription
bytesconst System::ArrayPtr<uint8_t>&URI fragment to encode.

Return Value

Encoded URI fragment.

HttpUtility::UrlEncodeToBytes(const System::ArrayPtr<uint8_t>&, int32_t, int32_t) method

Encodes URI fragment.

static System::ArrayPtr<uint8_t> System::Web::HttpUtility::UrlEncodeToBytes(const System::ArrayPtr<uint8_t> &bytes, int32_t offset, int32_t count)

Arguments

ParameterTypeDescription
bytesconst System::ArrayPtr<uint8_t>&URI fragment to encode.
offsetint32_tOffset in the given byte array.
countint32_tNumber of bytes to read from.

Return Value

Encoded URI fragment.

See Also