diff options
author | Sverker Eriksson <[email protected]> | 2017-10-16 17:56:46 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-10-17 15:26:20 +0200 |
commit | 890fb3bc90cdab64506cd4a43ca0a04727b5b7ea (patch) | |
tree | 649cb79c0a8c614979f5feb995899c2c097aa805 /erts/preloaded | |
parent | f0695a70cdaa4fe0fc0e7c58fb791483af0efa1a (diff) | |
download | otp-890fb3bc90cdab64506cd4a43ca0a04727b5b7ea.tar.gz otp-890fb3bc90cdab64506cd4a43ca0a04727b5b7ea.tar.bz2 otp-890fb3bc90cdab64506cd4a43ca0a04727b5b7ea.zip |
erts: Add 'used' option to binary_to_term/2
Diffstat (limited to 'erts/preloaded')
-rw-r--r-- | erts/preloaded/src/erlang.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl index f796ea64d3..4ae76cb309 100644 --- a/erts/preloaded/src/erlang.erl +++ b/erts/preloaded/src/erlang.erl @@ -417,9 +417,11 @@ binary_to_term(_Binary) -> erlang:nif_error(undefined). %% binary_to_term/2 --spec binary_to_term(Binary, Opts) -> term() when +-spec binary_to_term(Binary, Opts) -> term() | {term(), Used} when Binary :: ext_binary(), - Opts :: [safe]. + Opt :: safe | used, + Opts :: [Opt], + Used :: pos_integer(). binary_to_term(_Binary, _Opts) -> erlang:nif_error(undefined). |