witty-crayon-22786
11/07/2019, 1:00 AMwitty-crayon-22786
11/07/2019, 1:01 AMhundreds-breakfast-49010
11/07/2019, 1:01 AMstr
witty-crayon-22786
11/07/2019, 1:01 AMwitty-crayon-22786
11/07/2019, 1:01 AMhundreds-breakfast-49010
11/07/2019, 1:02 AM*const raw::c_char
, and pass a normal python string in that position, the FFI lib will make sure I don't do something wierd with memory?witty-crayon-22786
11/07/2019, 1:02 AM*const raw::c_char
, it will be garbage collected before it hits the rust codewitty-crayon-22786
11/07/2019, 1:02 AMhundreds-breakfast-49010
11/07/2019, 1:02 AMwitty-crayon-22786
11/07/2019, 1:03 AMwitty-crayon-22786
11/07/2019, 1:03 AMwitty-crayon-22786
11/07/2019, 1:04 AM*const raw::c_char
is fine as an argument, because the caller still has it on their stackwitty-crayon-22786
11/07/2019, 1:04 AMwitty-crayon-22786
11/07/2019, 1:04 AMwitty-crayon-22786
11/07/2019, 1:05 AMValue
, and then using externs
to get things.hundreds-breakfast-49010
11/07/2019, 1:05 AMValue
witty-crayon-22786
11/07/2019, 1:05 AMexterns::*Buffer
types'witty-crayon-22786
11/07/2019, 1:05 AMwitty-crayon-22786
11/07/2019, 1:06 AM