unsafe fn char16_to_string (string_in: *const efi::Char16) -> String {
  let string_in_u16 = string_in as *const u16;

  // Count the chars in the string.
  let mut string_len: isize = 0;
  while *(string_in_u16.offset(string_len)) != 0 {
    string_len += 1;
  }

  String::from_utf16_lossy(slice::from_raw_parts(string_in_u16, string_len as usize))
}
// Quick helper to assist with CHAR16 -> String.
// TODO: Put this in a single impl.
Quick helper to assist with CHAR16 -> String.
TODO: Put this in a single impl.
Quick helper to assist with CHAR16 - > String . TODO : Put this in a single impl .
unsafe fn char16_to_string (string_in: *const efi::Char16) -> String {
  let string_in_u16 = string_in as *const u16;
  // Count the chars in the string.
  let mut string_len: isize = 0;
  while *(string_in_u16.offset(string_len)) != 0 {
    string_len += 1;
  }
  String::from_utf16_lossy(slice::from_raw_parts(string_in_u16, string_len as usize))
}
unsafe fn char16_to_string ( string_in : * const efi :: Char16 ) -> String { let string_in_u16 = string_in as * const u16 ; // Count the chars in the string. let mut string_len : isize = 0 ; while * ( string_in_u16 . offset ( string_len ) ) != 0 { string_len += 1 ; } String :: from_utf16_lossy ( slice :: from_raw_parts ( string_in_u16 , string_len as usize ) ) }
Quick helper to assist with CHAR16 -> String.
Quick helper to assist with CHAR16 - > String .
string_in
*const efi::Char16
string_in
*const efi::Char16