-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Buffer protocol proposal #3261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Buffer protocol proposal #3261
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
ff82d64
Add buffer protocol
mrkn add4635
Modify for some review comments
mrkn 0a40fd8
Per-object buffer availability
mrkn 185476f
Rename to MemoryView from Buffer and make compilable
mrkn 12bc6ea
Support integral repeat count in memory view format
mrkn c97f9b8
Support 'x' for padding bytes
mrkn 12dd500
Add rb_memory_view_parse_item_format
mrkn 11426bc
Check type in rb_memory_view_register
mrkn ccbb0c9
Update dependencies in common.mk
mrkn a3b750e
Add test of MemoryView
mrkn aa6aaf1
Add test of rb_memory_view_init_as_byte_array
mrkn 08c54b7
Add native size format test
mrkn 0166ec6
Add MemoryView test utilities
mrkn 51ee869
Add test of rb_memory_view_fill_contiguous_strides
mrkn 934edd7
Skip spaces in format string
mrkn 1b842a1
Support endianness specifiers
mrkn 39a2a3f
Update documentation
mrkn 01c3e0f
Support alignment
mrkn 71800fc
Use RUBY_ALIGNOF
mrkn bdb94a0
Fix format parser to follow the pack format
mrkn 72fee2b
Support the _ modifier
mrkn 3d9bdce
Parse count specifiers in get_format_size function.
mrkn bff9105
Use STRUCT_ALIGNOF
mrkn cfad9fe
Fix test
mrkn be8a1ce
Fix test
mrkn 13de9f7
Fix total size for the case with tail padding
mrkn 184fbef
Fix rb_memory_view_get_item_pointer
mrkn d264358
Fix rb_memory_view_parse_item_format again
mrkn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add rb_memory_view_parse_item_format
- Loading branch information
commit 12dd5005e56545bd80cf4afb3a57ca6529036cde
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems no padding after the last component.
I guess that the size of "lc" would be 5.
But it should be 8 to align next item.