[erlang-questions] Decoding integers serialised by Erlang

Sverker Eriksson <>
Tue Nov 19 11:23:46 CET 2013


http://www.erlang.org/doc/apps/erts/erl_ext_dist.html#id86712

The external format is platform independent.

/Sverker, Erlang/OTP


On 11/19/2013 10:17 AM, Rabbe Fogelholm wrote:
> The ei library has functions for decoding Erlang terms in binary 
> format. One of
> these functions is ei_get_type(const char *buf, const int *index, int 
> *type, int *size).
> The returned value for "type" may be ERL_SMALL_INTEGER_EXT, which 
> indicates that
> the data is an 8-bit item.
>
> My question: Do the 8 bits represent an integer 0..255? Or -128..127? 
> And, is the
> representation always the same, or does it depend on the platform that 
> the encoding
> took place on?
>
> Rabbe Fogelholm, Ericsson AB
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>



More information about the erlang-questions mailing list