{"width":"100%","image_url":null,"height":"190","url":"https://ruby-trunk-changes.hatenablog.com/entry/20111011/ruby_extension_library_howto_tmp_buffer","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fruby-trunk-changes.hatenablog.com%2Fentry%2F20111011%2Fruby_extension_library_howto_tmp_buffer\" title=\"Ruby \u306e\u62e1\u5f35\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3092\u9632\u3050\u30e1\u30e2\u30ea\u78ba\u4fdd\u306e\u65b9\u6cd5 - ruby trunk changes\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"nagachika","description":"Ruby \u306e\u62e1\u5f35\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u66f8\u304f\u6642\u306b\u306f\u3001Ruby \u306e\u51e6\u7406\u3092\u547c\u3073\u51fa\u3059\u3068\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u306b\u6c17\u3092\u3064\u3051\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b some_func \u3068\u3044\u3046\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059 wrapper method \u3092\u5b9a\u7fa9\u3057\u305f\u3068\u3057\u307e\u3059\u3002 extern int some_func(int len, int *ary); VALUE sample_func(VALUE self, VALUE arg) { int *buf; int len, i, result; if (!RB_TYPE_P(arg, T_ARRAY)) rb_raise(rb_eArgError, \"arg must be\u2026","provider_name":"Hatena Blog","type":"rich","categories":["ruby"],"title":"Ruby \u306e\u62e1\u5f35\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3092\u9632\u3050\u30e1\u30e2\u30ea\u78ba\u4fdd\u306e\u65b9\u6cd5","blog_title":"ruby trunk changes","author_url":"https://blog.hatena.ne.jp/nagachika/","version":"1.0","blog_url":"https://ruby-trunk-changes.hatenablog.com/","published":"2011-10-11 00:00:01","provider_url":"https://hatena.blog"}