-
-
Save aurimasniekis/a2662d66233402947bb339a35c5c82ac to your computer and use it in GitHub Desktop.
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
# Lib | |
fun cf_string_get_c_string = CFStringGetCString(CfStringRef, UInt8*, CfIndex, UInt32) : Boolean | |
# Call | |
result = IOKit.cf_string_get_c_string(cf_path.as(IOKit::CfStringRef), out name, 300, IOKit::CFStringEncodingASCII) | |
pp String.new(name) | |
# Error | |
no overload matches 'String.new' with type UInt8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment