{"version":"1.0","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2021%2F04%2F20%2F222737\" title=\"CRuby (4) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","url":"https://randommemory.hatenablog.com/entry/2021/04/20/222737","provider_name":"Hatena Blog","categories":["Ruby"],"height":"190","author_url":"https://blog.hatena.ne.jp/derwind/","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","blog_url":"https://randommemory.hatenablog.com/","published":"2021-04-20 22:27:37","type":"rich","title":"CRuby (4)","description":"CRuby (3) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6 \u306e\u7d9a\u304d\u3002\u3082\u3046\u5c11\u3057\u6587\u5b57\u5217\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u305f\u3044\u3002https://github.com/ruby/ruby/blob/v3_0_1/string.c#L230-L258 \u306b\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u304c\u3042\u308b\u3002238 \u884c\u76ee\u3067 https://github.com/ruby/ruby/blob/v3_0_1/include/ruby/internal/core/rstring.h#L149-L175\u3001\u3064\u307e\u308a static inline char *RSTRING_PTR(VALUE str) { char *ptr = rbimpl_rstring_getmem(\u2026","author_name":"derwind","image_url":null}