summaryrefslogtreecommitdiff
path: root/include/ruby/memory_view.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wundef warningsNobuyoshi Nakada2022-10-261-1/+1
|
* memory_view.c: Add _memory_view_entry member in rb_memory_view_t (#5088)Kenta Murata2021-11-081-4/+8
|
* include/ruby/memory_view.h: add doxygen卜部昌平2021-09-101-18/+176
| | | | I'm just applying doc/memory_view.md as a doxygen comment. [ci skip]
* 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>
* [memory_view] Fix a commentKenta Murata2020-12-251-3/+1
| | | | | A consumer of a MemoryView no longer guards the original object. [ci skip]
* [memory_view] Fix some grammar issues in a commentKenta Murata2020-12-241-4/+4
|
* [memory_view] Make some rb_memroy_view_t members constKenta Murata2020-12-231-4/+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-8/+8
|
* include/ruby/memory_view.h: fix the return type of ↵Kenta Murata2020-12-101-1/+1
| | | | rb_memory_view_prepare_item_desc
* include/ruby/memory_view.h: fix typoKenta Murata2020-12-101-1/+1
|
* memory_view.c: Add rb_memory_view_get_item and ↵Kenta Murata2020-12-101-2/+6
| | | | rb_memory_view_prepare_item_desc (#3871)
* memory_view.c: Add rb_memory_view_extract_item_members (#3855)Kenta Murata2020-12-081-1/+2
|
* Revert "memory_view.c: Add rb_memory_view_extract_item_members"Kenta Murata2020-12-071-2/+1
| | | | | | | | This reverts the following three commits. - ce707079c153f389d861c91a8dccc510fab0e245 - 1a76bb56b0ba99a19d1373c4c8ebac42e7b6f27c - 51500eedefa492699668ced3e07e330a9a4d53ee
* memory_view.c: Fix the argument type of rb_memory_view_extract_item_membersKenta Murata2020-12-061-1/+1
|
* memory_view.c: Add rb_memory_view_extract_item_membersKenta Murata2020-12-061-1/+2
|
* Keep references of memory-view-exported objects (#3816)Kenta Murata2020-11-301-0/+4
| | | | | | | | | * 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
* include/ruby/memory_view.h: annotate functions卜部昌平2020-10-061-0/+5
|
* rb_memory_view_is_contiguous: convert into an inline function卜部昌平2020-10-061-4/+14
|
* memory_view.h: use bool卜部昌平2020-10-061-5/+5
| | | | | 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.h: brush up the description in the commentKenta Murata2020-09-251-2/+7
|
* Buffer protocol proposal (#3261)Kenta Murata2020-09-251-0/+136
* 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