-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use visitor to traverse resource tree
- Loading branch information
Jan Starke
committed
Jun 28, 2021
1 parent
04ac43e
commit 6d83b2c
Showing
14 changed files
with
339 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pub fn utf16_from_slice(slice: &[u8], mut offset: usize, length: usize) -> String { | ||
let mut name_chars = Vec::new(); | ||
for _ in 0..length { | ||
name_chars.push(slice[offset] as u16 | ((slice[offset+1] as u16)<<8 as u8)); | ||
offset += 2; | ||
} | ||
String::from_utf16_lossy(&name_chars[..]) | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.