<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sirocco</author_name>
  <author_url>https://blog.hatena.ne.jp/sirocco/</author_url>
  <blog_title>sirocco の書いてもすぐに忘れるメモ</blog_title>
  <blog_url>https://sirocco.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>以前、Win32 APIのMultiByteToWideChar、WideCharToMultiByteを使って UTF-16 ⇔ Shift-JIS 変換するコードを書きましたが、コードの一部にCで記述した部分があります。本当はCを全く使わないでHaskellで書きたかったのですが問題があって出来ませんでした。何故かというといわゆる「ポインタ渡し」が出来なかったのです。 Cで関数を呼ぶ場合、関数とデータのやり取りをするのに、まず、領域を確保し、関数にそのアドレスを渡します。関数はそのアドレスが示すデータを書き変えることによりデータを渡します。この方法を行いたいのです。Haskellの変数は値…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20130419%2F1366322756&quot; title=&quot;Foreign.Marshal.Alloc.malloc、Foreign.Storable.peek、pokeを使ってみる。 - sirocco の書いてもすぐに忘れるメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-04-19 07:05:56</published>
  <title>Foreign.Marshal.Alloc.malloc、Foreign.Storable.peek、pokeを使ってみる。</title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20130419/1366322756</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
