If it is NULL, the output function is called instead. This function is faster than output, as it takes an ErlIOVec directly, which requires no copying of the data. The port is to be in binary mode, see erlang:open_port/2. ErlIOVec contains both a SysIOVec, suitable for . A driver in Erlang is a library written in C, which is linked to the Erlang emulator and called from Erlang. Drivers can be used when C is more suitable than Erlang, to speed up things, or to provide access to OS resources not directly accessible from Erlang. A driver can be dynamically loaded, as a shared library (known as a DLL on Windows), or statically loaded, linked with the . Any Erlang term. Exports erase (Key) - Result OTP Types Key = key () Result = boolean () Erase the name for the persistent term with key Key. The return value will be true if there was a persistent term with the key Key, and false if there was no persistent term associated with the key.
There are several ways to send a binary created with driver_alloc_binary(). From the control callback, a binary can be returned provided that set_port_control_flags() has been called with the flag value PORT_CONTROL_FLAG_BINARY. A single binary can be sent with driver_output_binary(). Using erl_drv_output_term() or erl_drv_send_term(), a binary can be included in an Erlang term. Any Erlang term. Exports erase (Key) - Result OTP Types Key = key () Result = boolean () Erase the name for the persistent term with key Key. The return value will be true if there was a persistent term with the key Key, and false if there was no persistent term associated with the key. If it is NULL, the output function is called instead. This function is faster than output, as it takes an ErlIOVec directly, which requires no copying of the data. The port is to be in binary mode, see erlang:open_port/2. ErlIOVec contains both a SysIOVec, suitable for writev, and one or more binaries.
C++¶ · EPI (license LGPL) · eixx (license Apache2) · C/C++ Generic Erlang Port Driver (license MIT) · C++11 NIFPP (license Boost). The final output message would thus be "Hello!\n". Another widely used token is ~p, which will print an Erlang term in a nice way (adding in indentation. Functions to deal with Erlang's memory allocators, or particularly, to try to present ets_alloc: ETS data allocator; driver_alloc: Driver data allocator.
0コメント