From 1b2cea397131a36a39b18c6ce8c6944bf11db4c7 Mon Sep 17 00:00:00 2001
From: Filipe David Manana
Calculates, without doing the encoding, the maximum byte size for + a term encoded in the Erlang external term format. The following + condition applies always:
++
+> Size1 = byte_size(term_to_binary(Term)), +> Size2 = erlang:external_size(Term), +> true = Size1 =< Size2. +true ++ +
This is equivalent to a call to: erlang:external_size(Term, [])
+
Calculates, without doing the encoding, the maximum byte size for + a term encoded in the Erlang external term format. The following + condition applies always:
++
+> Size1 = byte_size(term_to_binary(Term, Options)), +> Size2 = erlang:external_size(Term, Options), +> true = Size1 =< Size2. +true ++ +
The option