You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/Interoperability.md
+62-60Lines changed: 62 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -276,66 +276,68 @@ An example in this sense are the `numpy` numeric types (e.g., `numpy.int32`) whi
276
276
277
277
#### Supported messages
278
278
279
-
The naming convention for the `register_interop_behavior` keyword arguments follows _snake_case_ naming, i.e.: the Truffle Interop `fitsInLong` message
280
-
becomes `fits_in_long`. Following is the list of currently supported interop messages:
281
-
282
-
| Truffle Message | Extension argument name | Argument type |
| fitsInBigInteger | fits_in_big_integer | function |
294
-
| fitsInByte | fits_in_byte | function |
295
-
| fitsInDouble | fits_in_double | function |
296
-
| fitsInFloat | fits_in_float | function |
297
-
| fitsInInt | fits_in_int | function |
298
-
| fitsInLong | fits_in_long | function |
299
-
| fitsInShort | fits_in_short | function |
300
-
| asBigInteger | as_big_integer | function |
301
-
| asBoolean | as_boolean | function |
302
-
| asByte | as_byte | function |
303
-
| asDate | as_date | function |
304
-
| asDouble | as_double | function |
305
-
| asDuration | as_duration | function |
306
-
| asFloat | as_float | function |
307
-
| asInt | as_int | function |
308
-
| asLong | as_long | function |
309
-
| asShort | as_short | function |
310
-
| asString | as_string | function |
311
-
| asTime | as_time | function |
312
-
| asTimeZone | as_time_zone | function |
313
-
| execute | execute | function |
314
-
| readArrayElement | read_array_element | function |
315
-
| getArraySize | get_array_size | function |
316
-
| hasArrayElements | has_array_elements | bool |
317
-
| isArrayElementReadable | is_array_element_readable | function |
318
-
| isArrayElementModifiable | is_array_element_modifiable | function |
319
-
| isArrayElementInsertable | is_array_element_insertable | function |
320
-
| isArrayElementRemovable | is_array_element_removable | function |
321
-
| removeArrayElement | remove_array_element | function |
322
-
| writeArrayElement | write_array_element | function |
323
-
| hasIterator | has_iterator | bool |
324
-
| hasIteratorNextElement | has_iterator_next_element | function |
325
-
| getIterator | get_iterator | function |
326
-
| getIteratorNextElement | get_iterator_next_element | function |
327
-
| hasHashEntries | has_hash_entries | bool |
328
-
| getHashEntriesIterator | get_hash_entries_iterator | function |
329
-
| getHashKeysIterator | get_hash_keys_iterator | function |
330
-
| getHashSize | get_hash_size | function |
331
-
| getHashValuesIterator | get_hash_values_iterator | function |
332
-
| isHashEntryReadable | is_hash_entry_readable | function |
333
-
| isHashEntryModifiable | is_hash_entry_modifiable | function |
334
-
| isHashEntryInsertable | is_hash_entry_insertable | function |
335
-
| isHashEntryRemovable | is_hash_entry_removable | function |
336
-
| readHashValue | read_hash_value | function |
337
-
| writeHashEntry | write_hash_entry | function |
338
-
| removeHashEntry | remove_hash_entry | function |
279
+
The majority (with some exceptions) of the Truffle Interop messages are supported by the interop behavior extension API, as seen in the table below.
280
+
The naming convention for the `register_interop_behavior` keyword arguments follows the _snake_case_ naming convention, i.e.: the Truffle Interop `fitsInLong` message
281
+
becomes `fits_in_long` and so on. Each message can be extended with a **pure python function** (default keyword arguments, free vars and cell vars are not allowed) or a **boolean constant**.
282
+
Following is the list of currently supported interop messages:
0 commit comments