erlang:binary_to_term/1
把二进制数据转为一个原始 erlang 数据
用法:
binary_to_term(Binary) -> term()
把二进制数据 Binary 转为一个原始 Erlang 数据
binary_to_term(term_to_binary([a, b, c])).
binary_to_term(<<131,104,3,100,0,1,97,100,0,1,98,100,0,1,99>>).
把二进制数据转为一个原始 erlang 数据
用法:
binary_to_term(Binary) -> term()
把二进制数据 Binary 转为一个原始 Erlang 数据
binary_to_term(term_to_binary([a, b, c])).
binary_to_term(<<131,104,3,100,0,1,97,100,0,1,98,100,0,1,99>>).