summaryrefslogtreecommitdiff
path: root/memory_view.c
Commit message (Collapse)AuthorAgeFilesLines
* memory_view.c: Add _memory_view_entry member in rb_memory_view_t (#5088)Kenta Murata2021-11-081-3/+4
|
* memory_view.c: Rename private to private_data for C++ (#4812)Kenta Murata2021-09-061-1/+1
| | | | | | | | | | | * memory_view.c: Rename private to private_data for C++ * doc/memory_view.md: Update document * Fix doc/memory_view.md Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
* Moved exported symbols in internal/util.h to ruby/util.hNobuyoshi Nakada2021-08-241-1/+1
| | | | [Feature #18051]
* Adjust styles [ci skip]Nobuyoshi Nakada2021-06-171-2/+4
| | | | | | | | | * --braces-after-func-def-line * --dont-cuddle-else * --procnames-start-lines * --space-after-for * --space-after-if * --space-after-while
* Fix trivial -Wundef warningsBenoit Daloze2021-05-041-2/+2
| | | | | | * See [Feature #17752] Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
* Fix some typos by spell checkerRyuta Kamizono2021-04-261-1/+1
|
* [memory_view] Acquire VM lock while running exported_object_registry_freeKenta Murata2020-12-231-2/+2
| | | | exported_object_registry is freed at exit, so this change is just in case.
* [memory_view] Make some rb_memroy_view_t members constKenta Murata2020-12-231-2/+4
|
* [memory_view][fiddle] Rename len to byte_size in rb_memory_view_tKenta Murata2020-12-231-1/+1
|
* [memory_view][fiddle] Use bool for boolean return valueKenta Murata2020-12-231-11/+11
|
* [memory_view] Make MemoryView API Ractor-safe (#3911)Kenta Murata2020-12-161-55/+42
| | | | | | | | | | | * memory_view.c: make Ractor-safe * test/ruby/test_memory_view.rb: Add test_ractor * memory_view: fix typo * memory_view.c: Use st_update in unregster_exported_object * memory_view: update dependency
* memory_view.c: Add rb_memory_view_get_item and ↵Kenta Murata2020-12-101-0/+36
| | | | rb_memory_view_prepare_item_desc (#3871)
* memory_view.c: Add rb_memory_view_extract_item_members (#3855)Kenta Murata2020-12-081-2/+208
|
* Revert "memory_view.c: Add rb_memory_view_extract_item_members"Kenta Murata2020-12-071-223/+2
| | | | | | | | This reverts the following three commits. - ce707079c153f389d861c91a8dccc510fab0e245 - 1a76bb56b0ba99a19d1373c4c8ebac42e7b6f27c - 51500eedefa492699668ced3e07e330a9a4d53ee
* memory_view.c: suppress uninitialized warningKenta Murata2020-12-071-1/+1
|
* memory_view.c: Add rb_memory_view_extract_item_membersKenta Murata2020-12-061-2/+223
|
* memory_view.c: Fix endianness of n, N, v, VKenta Murata2020-12-041-0/+4
|
* memory_view.c: Check availability in rb_memory_view_getKenta Murata2020-12-021-0/+4
|
* Keep references of memory-view-exported objects (#3816)Kenta Murata2020-11-301-5/+129
| | | | | | | | | * memory_view.c: remove a reference in view->obj at rb_memory_view_release * memory_view.c: keep references of memory-view-exported objects * Update common.mk * memory_view.c: Use st_update
* Use rb_intern_const instead of rb_intern in Init functionsNobuyoshi Nakada2020-10-211-1/+1
| | | | | | | | | ``` find . -name \*.o -exec nm {} + |& sed '/Init_.*\.rbimpl_id/!d;s/^.* b //;s/\.[1-9][0-9]*$//;s/\.rbimpl_id$//' | uniq ``` should be empty.
* STRUCT_ALIGNOF: use RUBY_ALIGNOF卜部昌平2020-10-061-2/+1
| | | | | This was a workaround for RUBY_ALIGNOF's glitch, which has already been fixed. See also https://github.com/ruby/ruby/pull/3570
* memory_view.h: use bool卜部昌平2020-10-061-10/+10
| | | | | Because `bool` is already used in the header there is no reason to hesitate.
* memory_view.c: Use ssize_t for ndim in memory_view (#3615)Kenta Murata2020-10-021-2/+2
| | | | | * memory_view.c: Use ssize_t for ndim in memory_view * include/ruby/memory_view.h: Fix the type of item_size argument
* memory_view.c: prevent "warning: instance variable __memory_view__ not ↵Kenta Murata2020-09-251-3/+4
| | | | initialized"
* Buffer protocol proposal (#3261)Kenta Murata2020-09-251-0/+506
* Add buffer protocol * Modify for some review comments * Per-object buffer availability * Rename to MemoryView from Buffer and make compilable * Support integral repeat count in memory view format * Support 'x' for padding bytes * Add rb_memory_view_parse_item_format * Check type in rb_memory_view_register * Update dependencies in common.mk * Add test of MemoryView * Add test of rb_memory_view_init_as_byte_array * Add native size format test * Add MemoryView test utilities * Add test of rb_memory_view_fill_contiguous_strides * Skip spaces in format string * Support endianness specifiers * Update documentation * Support alignment * Use RUBY_ALIGNOF * Fix format parser to follow the pack format * Support the _ modifier * Parse count specifiers in get_format_size function. * Use STRUCT_ALIGNOF * Fix test * Fix test * Fix total size for the case with tail padding * Fix rb_memory_view_get_item_pointer * Fix rb_memory_view_parse_item_format again