Beaver.Native.OpaquePtr (beaver v0.3.4)

This module defines functions working with opaque pointer, usually a void* in C.

Summary

Functions

read the N bytes starting from the pointer and returns an Erlang binary

read the N bytes starting from the pointer and return a resource

Types

@type t() :: %Beaver.Native.OpaquePtr{bag: term(), ref: term()}

Functions

Link to this function

to_binary(opaque_ptr, len)

read the N bytes starting from the pointer and returns an Erlang binary

Link to this function

to_resource(mod, opaque_ptr, offset \\ 0)

read the N bytes starting from the pointer and return a resource