Seperate ExtismPointer from handle
Closed this issue · 1 comments
G4Vi commented
ExtismPointer can currently refers to three different things:
- a pointer in extism memory
- an offset in input memory
- a pointer in extism memory to the start of data in a memory block
By introducing a new type ExtismHandle
for the last item, the api can be made easier to use correctly.
- Add new type to header
ExtismHandle
- Get all tests and examples running.
- Update docs
- Make extism
length
fast again.
PR: #18
G4Vi commented
Once extism_length_unsafe
is available, the pdk can be updated to use it for extism_length
(as it takes an ExtismHandle
here) and this can be completed.