DenoDDeno
Powered by
javiJ
Deno•4y ago•
4 replies
javi

FFI Difference between buffer and pointer

I’ve been using interchangeably
Deno.UnsafePointer.of(new Uint8Array())
Deno.UnsafePointer.of(new Uint8Array())
with type
pointer
pointer
and
new Uint8Array()
new Uint8Array()
with type buffer. Is there any major difference? Per se I don’t use
char[]
char[]
arrays, just pointers.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

rust ffi buffer overflow
scarfSscarf / help
3y ago
FFI: How to pass a pointer to a char pointer?
LeokumaLLeokuma / help
3y ago
Deno Pointer FFI error, malloc(): invalid size (unsorted)
b0yediti0nBb0yediti0n / help
7mo ago