#How to use a function in FFI that needs a size_t argument

1 messages · Page 1 of 1 (latest)

onyx panther
#

I am using bun:ffi to use some c libraries, and many of the functions asks for size_t arguments or return size_t values. is it possible with current bun:ffi?

nova rain
#

size_t is u64 on 64 bit systems

#

actually, we have usize in our thing. use that

manic holly
#

i think size_t is also in there

#

as an alias