Skip to content

Commit

Permalink
WebIDL: Implement ByteString type to access Canvas Bitmap on JS
Browse files Browse the repository at this point in the history
  • Loading branch information
TFSThiagoBR98 committed Feb 15, 2022
1 parent 7901f39 commit e1434bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/webidl_binder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## JavascriptSubtitlesOctopus
## Patched to:
## - add integer pointers (IntPtr)
## - implement ByteString type
## From https://github.com/emscripten-core/emscripten/blob/f36f9fcaf83db93e6a6d0f0cdc47ab6379ade139/tools/webidl_binder.py

# Copyright 2014 The Emscripten Authors. All rights reserved.
Expand Down Expand Up @@ -327,6 +328,8 @@ def base_type_to_c(t):
ret = 'char'
elif t == 'Octet':
ret = 'unsigned char'
elif t == 'ByteString':
ret = 'unsigned char*'
elif t == 'Void':
ret = 'void'
elif t == 'String':
Expand Down

0 comments on commit e1434bc

Please sign in to comment.