blob: 176c8eef096923b5c6f3950dd289ce1b03845872 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
[;1m-spec term_to_iovec(Term, Options) -> ext_iovec()[0m
[;1m when[0m
[;1m Term :: term(),[0m
[;1m Options ::[0m
[;1m [compressed |[0m
[;1m {compressed, Level :: 0..9} |[0m
[;1m {minor_version, Version :: 0..2}].[0m
[;;4mSince[0m:
OTP 23.0
Returns the encoding of [;;4mTerm[0m according to the Erlang external
term format as [;;4mext_iovec()[0m.
This function produce the same encoding as [;;4mterm_to_binary/2[0m, but
with another return type. The call [;;4m[0m
[;;4miolist_to_binary(term_to_iovec(Term, Opts))[0m will produce exactly
the same result as [;;4mterm_to_binary(Term, Opts)[0m.
Currently recognised options are all options recognised by [;;4m[0m
[;;4mterm_to_binary/2[0m.
[;;4mterm_to_iovec()[0m is a pure optimization of the functionality [;;4m[0m
[;;4mterm_to_binary()[0m provide. [;;4mterm_to_iovec()[0m can for example refer
directly to off heap binaries instead of copying the binary data
into the result.
See also [;;4mterm_to_binary/2[0m.
|