Home | History | Annotate | Download | only in DxeNetLib

Lines Matching defs:String

441   @param Format  The ASCII format string.

443 by the Format string.
2195 to a unicode string. Callers are responsible for freeing the string storage.
2199 string. It takes 2 unicode characters to represent a 1 byte binary buffer.
2207 @param[out] MacString The pointer to store the address of the string
2210 @retval EFI_SUCCESS Convert the mac address a unicode string successfully.
2228 CHAR16 *String;
2246 String = AllocateZeroPool ((2 * HwAddressSize + 5 + 1) * sizeof (CHAR16));
2247 if (String == NULL) {
2250 *MacString = String;
2253 // Convert the MAC address into a unicode string.
2257 String += UnicodeValueToString (String, PREFIX_ZERO | RADIX_HEX, *(HwAddress++), 2);
2265 *String++ = L'\\';
2266 String += UnicodeValueToString (String, PREFIX_ZERO | RADIX_HEX, VlanId, 4);
2270 // Null terminate the Unicode string
2272 *String = L'\0';
2698 Convert one Null-terminated ASCII string (decimal dotted) to EFI_IPv4_ADDRESS.
2700 @param[in] String The pointer to the Ascii string.
2704 @retval EFI_INVALID_PARAMETER The string is mal-formated or Ip4Address is NULL.
2710 IN CONST CHAR8 *String,
2719 if ((String == NULL) || (Ip4Address == NULL)) {
2723 Ip4Str = (CHAR8 *) String;
2746 // Convert the string to IPv4 address. AsciiStrDecimalToUintn stops at the
2764 Convert one Null-terminated ASCII string to EFI_IPv6_ADDRESS. The format of the
2765 string is defined in RFC 4291 - Text Pepresentation of Addresses.
2767 @param[in] String The pointer to the Ascii string.
2771 @retval EFI_INVALID_PARAMETER The string is mal-formated or Ip6Address is NULL.
2777 IN CONST CHAR8 *String,
2795 if ((String == NULL) || (Ip6Address == NULL)) {
2799 Ip6Str = (CHAR8 *) String;
2892 // Convert the string to IPv6 address. AsciiStrHexToUintn stops at the first
2961 Convert one Null-terminated Unicode string (decimal dotted) to EFI_IPv4_ADDRESS.
2963 String The pointer to the Ascii string.
2967 @retval EFI_INVALID_PARAMETER The string is mal-formated or Ip4Address is NULL.
2974 IN CONST CHAR16 *String,
2981 if ((String == NULL) || (Ip4Address == NULL)) {
2985 Ip4Str = (CHAR8 *) AllocatePool ((StrLen (String) + 1) * sizeof (CHAR8));
2990 UnicodeStrToAsciiStr (String, Ip4Str);
3001 Convert one Null-terminated Unicode string to EFI_IPv6_ADDRESS. The format of
3002 the string is defined in RFC 4291 - Text Pepresentation of Addresses.
3004 @param[in] String The pointer to the Ascii string.
3008 @retval EFI_INVALID_PARAMETER The string is mal-formated or Ip6Address is NULL.
3015 IN CONST CHAR16 *String,
3022 if ((String == NULL) || (Ip6Address == NULL)) {
3026 Ip6Str = (CHAR8 *) AllocatePool ((StrLen (String) + 1) * sizeof (CHAR8));
3031 UnicodeStrToAsciiStr (String, Ip6Str);
3041 Convert one Null-terminated Unicode string to EFI_IPv6_ADDRESS and prefix length.
3042 The format of the string is defined in RFC 4291 - Text Pepresentation of Addresses
3045 @param[in] String The pointer to the Ascii string.
3050 @retval EFI_INVALID_PARAMETER The string is mal-formated or Ip6Address is NULL.
3057 IN CONST CHAR16 *String,
3068 if ((String == NULL) || (Ip6Address == NULL) || (PrefixLength == NULL)) {
3072 Ip6Str = (CHAR8 *) AllocatePool ((StrLen (String) + 1) * sizeof (CHAR8));
3077 UnicodeStrToAsciiStr (String, Ip6Str);
3080 // Get the sub string describing prefix length.
3094 // Get the sub string describing IPv6 address and convert it.
3104 // If input string doesn't indicate the prefix length, return 0xff.
3109 // Convert the string to prefix length
3140 Convert one EFI_IPv6_ADDRESS to Null-terminated Unicode string.
3144 @param[out] String The buffer to return the converted string.
3145 @param[in] StringSize The length in bytes of the input String.
3147 @retval EFI_SUCCESS Convert to string successfully.
3156 OUT CHAR16 *String,
3169 if (Ip6Address == NULL || String == NULL || StringSize == 0) {
3238 StrCpyS (String, StringSize / sizeof (CHAR16), Buffer);
3263 CHAR8 *String;
3298 // 1. Formatted section; 2. Unformatted string section. So, 2 steps are needed
3305 String = (CHAR8 *) (Smbios.Raw + Smbios.Hdr->Length);
3308 // Step 2: Skip over unformated string section.
3312 // Each string is terminated with a NULL(00h) BYTE and the sets of strings
3315 for ( ; *String != 0; String++) {
3318 if (*(UINT8*)++String == 0) {
3322 Smbios.Raw = (UINT8 *)++String;