<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<p> Hello,</p>
<p>I am adding support for working with <b>vsimem</b> files from JS
buffers to <b>node-gdal-next </b>and I have a couple of
questions.</p>
<ul>
<li>There is an example for working with <b>vsimem</b> files at
<a class="moz-txt-link-freetext" href="https://gdal.org/api/cpl.html#_CPPv424VSIInstallMemFileHandlerv">https://gdal.org/api/cpl.html#_CPPv424VSIInstallMemFileHandlerv</a>
- it says that a <b>VSIFile</b> handle is to be immediately
closed with <b>VSIFClose</b> after obtaining it. For me it I
get a segfault if I do this, but works perfectly if I do not.</li>
<li>It seems that I am supposed to call <b>VSIInstallMemFileHandler</b>
before using vsimem files, but they seem to work anyway. So, my
question is do I need to call it and is there any downside to
calling it if I am not using vsimem files (ie can I call it all
the time)?<br>
</li>
</ul>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Momtchil Momtchev <a class="moz-txt-link-rfc2396E" href="mailto:momtchil@momtchev.com"><momtchil@momtchev.com></a>
</pre>
</body>
</html>