Passing the content of a file as a buffer directly to the API to create an archive?

61 views
Skip to first unread message

Jean-Colas Prunier

unread,
Jun 8, 2023, 11:27:49 AM6/8/23
to alembic-discussion

I am getting into a situation where I don't have direct access to the file system where the alembic file is stored. All I can do is load the entire content of the file to memory and pass the resulting buffer to some function (that would initialize the archive).

What I remember from the time I had looked at the code in detail, is that the function where the file(s) is(are) opened,  stores the entire content of the file to memory. So that's probably where I'd need to be.

If there's no option for doing this in the current API, I will look into creating one then, but thought I would ask before doing so. Thank you.

Lucas Miller

unread,
Jun 8, 2023, 2:39:11 PM6/8/23
to alembic-d...@googlegroups.com
Do you have access to a std::istream like interface to access your data?  (or can you create an interface like this around the API to access it?)

If so you could use it to read the data like:


Lucas

--
You received this message because you are subscribed to the Google Groups "alembic-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alembic-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alembic-discussion/e00e56ac-1a31-4ce2-965c-de5b09915c19n%40googlegroups.com.

Jean-Colas Prunier

unread,
Jun 9, 2023, 4:39:33 AM6/9/23
to alembic-discussion
Thanks Lucas for your answer. I will investigate a bit more and let you know once I have found a solution.

Btw didn't forget about providing some specs for lights. Just busy sadly right now. But on the todo list).

Reply all
Reply to author
Forward
0 new messages