OCaml Forge
SCM

Detail: [#1380] Bind extract(), set_pathname() and open_memory() (from strings or bigarrays)

Patches: Browse | Download .csv | Monitor

[#1380] Bind extract(), set_pathname() and open_memory() (from strings or bigarrays)

Date:
2014-03-16 18:54
Priority:
3
State:
Open
Submitted by:
Adrien Nader (camarade_tux)
Assigned to:
Nobody (None)
Resolution:
None
Version:
None
Component:
None
 
Summary:
Bind extract(), set_pathname() and open_memory() (from strings or bigarrays)

Detailed description
This patch adds support for the three aforementionned functions.

Followup

Message
Date: 2014-10-12 14:02
Sender: Adrien Nader

Bigarrays are not working. My usecase for them had vanished until yesterday so I hadn't been dogfooding as much as I was doing with the other APIs.

The call to archive_read_open_memory is wrong (so wrong and dreamt up that I wonder how I did it); fix is:
- res = archive_read_open_memory(*ptr, ba->proxy->data, ba->proxy->size);
+ res = archive_read_open_memory(*ptr, ba->data, caml_ba_byte_size(ba));

Changes:

Field Old Value Date By
File Added252: 0002-Bind-extract-set_pathname-and-read_open_memory-strin.patch2014-03-16 18:54camarade_tux