Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб WTF is FFI? Pt. 3 — Using libclang to parse a C library в хорошем качестве

WTF is FFI? Pt. 3 — Using libclang to parse a C library 2 года назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



WTF is FFI? Pt. 3 — Using libclang to parse a C library

Foreign function interface, or "FFI", is a way to access data and call functions from native dynamic libraries (like C, C++, and Rust). In this episode, we use libclang and FFI to parse a C library. We cover cursors, cursor types, walking through a C library, and more. View the source code from this episode's demo here: https://github.com/aapoalas/deno-ffi-... 0:00 Intro 2:40 Loading libclang 8:00 Setting up `createIndex` 11:39 Setting up `createTranslationUnitFromSourceFile` 13:36 Showing pointer of header file 20:40 Setting up Cursors to parse file 30:20 Traversing cursors to parse file 41:57 Traversing into our namespace “lib” 43:49 Adding recursion into our visitChildren function 46:15 Adding console log to show the traversal of our namespace This is part of a longer series where Andy and Aapo talk about FFI, how to use it with Deno, and advance use cases. If you have any questions or comments, please leave them below. We want to make sure this is useful to you. You can learn more about Deno FFI from this resource created and maintained by Aapo: https://denonomicon.deno.dev/ Please report any issues or feedback by creating an issue here: https://github.com/denoland/deno/issues Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Website: https://deno.land GitHub: https://github.com/denoland Discord:   / discord   Twitter:   / deno_land  

Comments