Skip to content

adishavit/emscripten_buffers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passing JavaScript Buffers to C/C++ Functions

Emscripten provides multiple ways of passing TypedBuffers to emscriptened code.
Many of these way incur internal and hidden copying of the data.
Here are some of them with some minimal profiling code.

Usage

  1. Set your emscripten paths in build.sh
  2. Run ./build.sh
  3. Open index.html in your browser.
  4. Check the browser developer console to see the results.

Alternatively, see it live here (the page appears blank, open console to see results).

About

Measurements for passing buffers to emscriptened functions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published