%% %CopyrightBegin%
%%
%% SPDX-License-Identifier: Apache-2.0
%%
%% Copyright Ericsson AB 2021-2025. All Rights Reserved.
%%
%% %CopyrightEnd%

[;1m  binary_to_term(Binary)[0m

  Returns an Erlang term that is the result of decoding binary
  object [;;4mBinary[0m, which must be encoded according to the Erlang
  external term format.

    > Bin = term_to_binary(hello).
    <<131,100,0,5,104,101,108,108,111>>
    > hello = binary_to_term(Bin).
    hello

  [;;4mWarning[0m

    When decoding binaries from untrusted sources, the untrusted
    source may submit data in a way to create resources, such as
    atoms and remote references, that cannot be garbage collected
    and lead to Denial of Service attack. In such cases, consider
    using [;;4mbinary_to_term/2[0m with the [;;4msafe[0m option.

  See also [;;4mterm_to_binary/1[0m and [;;4mbinary_to_term/2[0m.
