{"categories":["Ruby","gems"],"published":"2010-07-07 20:07:50","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoqisofon.hatenablog.com%2Fentry%2F20100707%2F1278500870\" title=\" RSTRING(str)-&gt;ptr \u3068 RSTRING(str)-&gt;len \u306e ptr \u3068 len \u304c\u7121\u3044\u305d\u3046\u3060\u3002 - \u60f3\u50cf\u529b\u306e\u6b20\u5982\u306f\u6df1\u523b\u306a\u6b20\u70b9\u306e\u4e00\u3064\u3067\u3042\u308b\u3002\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u60f3\u50cf\u529b\u306e\u6b20\u5982\u306f\u6df1\u523b\u306a\u6b20\u70b9\u306e\u4e00\u3064\u3067\u3042\u308b\u3002","width":"100%","provider_name":"Hatena Blog","image_url":null,"provider_url":"https://hatena.blog","author_name":"noqisofon","blog_url":"https://noqisofon.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/noqisofon/","description":"RSTRING \u306f\u3001 #define RSTRING(obj) (R_CAST(RString)(obj)) \u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3002 obj \u3063\u3066\u3001VALUE \u578b\u3060\u3063\u305f\u3093\u3060\u3063\u3051\uff1f \u591a\u5206\u3001R_CAST \u3060\u3057\u3001\u30ad\u30e3\u30b9\u30c8\u3057\u3066\u308b\u3093\u3060\u308d\u3046\u3002 RString \u304c\u3001Ruby \u3067\u306e\u6587\u5b57\u5217\u306e\u5b9f\u4f53\u3060\u3063\u305f\u306e\u304b\u301c\u3002 RString \u69cb\u9020\u4f53\u306f\u3001\u3053\u3093\u306a\u98a8\u306b\u306a\u3063\u3066\u3044\u308b: struct RString { struct RBasic basic; union { struct { long len; char *ptr; union { long capa; VALUE shared; } aux; } heap; cha\u2026","version":"1.0","title":" RSTRING(str)->ptr \u3068 RSTRING(str)->len \u306e ptr \u3068 len \u304c\u7121\u3044\u305d\u3046\u3060\u3002","type":"rich","height":"190","url":"https://noqisofon.hatenablog.com/entry/20100707/1278500870"}