{"image_url":null,"title":"ffi\u3092\u4f7f\u3063\u3066C\u306e\u95a2\u6570\u3092Ruby\u304b\u3089\u547c\u3073\u51fa\u3059","author_name":"t-cyrill","height":"190","url":"https://t-cyrill.hatenablog.jp/entry/2016/01/30/020509","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ft-cyrill.hatenablog.jp%2Fentry%2F2016%2F01%2F30%2F020509\" title=\"ffi\u3092\u4f7f\u3063\u3066C\u306e\u95a2\u6570\u3092Ruby\u304b\u3089\u547c\u3073\u51fa\u3059 - \u306a\u3093\u304b\u304b\u304d\u305f\u3044\" 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","version":"1.0","author_url":"https://blog.hatena.ne.jp/t-cyrill/","blog_title":"\u306a\u3093\u304b\u304b\u304d\u305f\u3044","provider_name":"Hatena Blog","categories":["Ruby","\u6280\u8853\u7cfb"],"width":"100%","blog_url":"https://t-cyrill.hatenablog.jp/","published":"2016-01-30 02:05:09","type":"rich","description":"ruby-ffi \u306f \u52d5\u7684\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u547c\u3073\u51fa\u305b\u308bRuby\u306e\u62e1\u5f35\u3067\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092native extension \u3067\u66f8\u304b\u306a\u304f\u3066\u3082\u826f\u3044\u611f\u3058\u306b\u547c\u3073\u51fa\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u4fbf\u5229\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3002 Ruby\u3067\u306f libffi \u3092\u7c21\u5358\u306b\u4f7f\u3048\u308b\u306e\u3067\u3061\u3087\u3063\u3068\u9811\u5f35\u308c\u3070C\u306e\u30b3\u30fc\u30c9\u3092\u547c\u3073\u51fa\u305b\u308b\u3002 FFI = foreign function interface\u3001\u4ed6\u8a00\u8a9e\u306e\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9 C\u3067\u66f8\u304b\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u95a2\u6570\u3092 native extension \u3092\u30d3\u30eb\u30c9\u3057\u306a\u304f\u3066\u3082\u547c\u3073\u51fa\u305b\u3066\u4fbf\u5229\u3060\u3063\u305f\u308a\u3059\u308b\u3002 \u53bb\u5e74\u66f8\u3044\u305f\u8a18\u4e8b\u3067libffi\u3092\u4f7f\u3063\u3066\u3001MP4v2Tag\u306e\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3066\u307f\u305f\u3051\u3069\u3001\u3042\u3093\u307e\u308a\u7d30\u304b\u3044\u2026"}