Le vendredi 27 décembre 2024 à 22:48 -0800, Shane Carr a écrit :
> I see 2 potential issues:
>
> 1. You should use udata_setCommonData not udata_setAppData
> 2. You should pass in the whole file, including the header, not just
> the part returned by udata_getMemory. Try passing the return value of
> udata_open to udata_setCommonData.
Hello,
I had tried udata_setAppData() but it doesn't seems to work, either
with `return data;` or `return udata_getMemory(data);`
But it works when I'm using it with mmap'ed memory.
udata_setCommonData() worked too with mmap'ed memory, but only if the
archive was also opened with udata_open(), which was rather strange.
Thanks for help, anyway, I no load with udata_setAppData(mmaped_data)
Regards,
--
Bastien