Beaver.Native.OpaquePtr (beaver v0.2.19)

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

Link to this section 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

Link to this section Types

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

Link to this section 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