<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/include/ruby/memory_view.h, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>memory_view: Avoid using bit field</title>
<updated>2023-09-08T22:30:04+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2023-09-06T04:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=90dad2b12849b9151f62b1f3a9ac6090aadc8cc8'/>
<id>90dad2b12849b9151f62b1f3a9ac6090aadc8cc8</id>
<content type='text'>
Bit field's memory layout is implementation-defined.

See also:
https://wiki.sei.cmu.edu/confluence/display/c/EXP11-C.+Do+not+make+assumptions+regarding+the+layout+of+structures+with+bit-fields

If memory layout is implementation-defined, it's difficult to use from
FFI library such as Ruby-FFI.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bit field's memory layout is implementation-defined.

See also:
https://wiki.sei.cmu.edu/confluence/display/c/EXP11-C.+Do+not+make+assumptions+regarding+the+layout+of+structures+with+bit-fields

If memory layout is implementation-defined, it's difficult to use from
FFI library such as Ruby-FFI.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix -Wundef warnings</title>
<updated>2022-10-26T09:57:26+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-26T01:53:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a14611cd54d2ac02daad5ccfe99fc3ec9b0818bd'/>
<id>a14611cd54d2ac02daad5ccfe99fc3ec9b0818bd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>memory_view.c: Add _memory_view_entry member in rb_memory_view_t (#5088)</title>
<updated>2021-11-08T03:52:09+00:00</updated>
<author>
<name>Kenta Murata</name>
<email>mrkn@users.noreply.github.com</email>
</author>
<published>2021-11-08T03:52:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3501e0cbb5b6043b851686d2649e5ff7e9cf2b77'/>
<id>3501e0cbb5b6043b851686d2649e5ff7e9cf2b77</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>include/ruby/memory_view.h: add doxygen</title>
<updated>2021-09-10T11:00:06+00:00</updated>
<author>
<name>卜部昌平</name>
<email>shyouhei@ruby-lang.org</email>
</author>
<published>2021-09-06T14:35:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6204b0dd99fe244636d98666df7bce70cc79e3ca'/>
<id>6204b0dd99fe244636d98666df7bce70cc79e3ca</id>
<content type='text'>
I'm just applying doc/memory_view.md as a doxygen comment. [ci skip]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I'm just applying doc/memory_view.md as a doxygen comment. [ci skip]
</pre>
</div>
</content>
</entry>
<entry>
<title>memory_view.c: Rename private to private_data for C++ (#4812)</title>
<updated>2021-09-06T07:01:52+00:00</updated>
<author>
<name>Kenta Murata</name>
<email>mrkn@users.noreply.github.com</email>
</author>
<published>2021-09-06T07:01:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f8bb2d9b2724b4a74322ac82d27c32a61153e8dd'/>
<id>f8bb2d9b2724b4a74322ac82d27c32a61153e8dd</id>
<content type='text'>
* 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 &lt;kou@cozmixng.org&gt;

Co-authored-by: Sutou Kouhei &lt;kou@cozmixng.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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 &lt;kou@cozmixng.org&gt;

Co-authored-by: Sutou Kouhei &lt;kou@cozmixng.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[memory_view] Fix a comment</title>
<updated>2020-12-25T11:11:01+00:00</updated>
<author>
<name>Kenta Murata</name>
<email>mrkn@mrkn.jp</email>
</author>
<published>2020-12-24T16:47:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7a4b8d8700ebbe8cefcce05311338448ee0fb5b5'/>
<id>7a4b8d8700ebbe8cefcce05311338448ee0fb5b5</id>
<content type='text'>
A consumer of a MemoryView no longer guards the original object.
[ci skip]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A consumer of a MemoryView no longer guards the original object.
[ci skip]
</pre>
</div>
</content>
</entry>
<entry>
<title>[memory_view] Fix some grammar issues in a comment</title>
<updated>2020-12-24T00:32:54+00:00</updated>
<author>
<name>Kenta Murata</name>
<email>mrkn@mrkn.jp</email>
</author>
<published>2020-12-24T00:32:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=05a756b3323d23b8f6ec899eaa83f7172ada0999'/>
<id>05a756b3323d23b8f6ec899eaa83f7172ada0999</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[memory_view] Make some rb_memroy_view_t members const</title>
<updated>2020-12-23T00:24:55+00:00</updated>
<author>
<name>Kenta Murata</name>
<email>mrkn@mrkn.jp</email>
</author>
<published>2020-12-22T15:43:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=01ab29cc285ec92c07cd67db6f8616690bd217f8'/>
<id>01ab29cc285ec92c07cd67db6f8616690bd217f8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[memory_view][fiddle] Rename len to byte_size in rb_memory_view_t</title>
<updated>2020-12-23T00:24:53+00:00</updated>
<author>
<name>Kenta Murata</name>
<email>mrkn@mrkn.jp</email>
</author>
<published>2020-12-22T15:33:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=74652e640a3ef50eb5442eb98438e3d634a4faf7'/>
<id>74652e640a3ef50eb5442eb98438e3d634a4faf7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[memory_view][fiddle] Use bool for boolean return value</title>
<updated>2020-12-23T00:05:07+00:00</updated>
<author>
<name>Kenta Murata</name>
<email>mrkn@mrkn.jp</email>
</author>
<published>2020-12-22T08:33:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=05014dcb887681d986105653ab527da2c4ff7774'/>
<id>05014dcb887681d986105653ab527da2c4ff7774</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
