[erlang-questions] erlang atom data length is not enough

Bengt Kleberg bengt.kleberg@REDACTED
Thu Jan 8 08:29:33 CET 2009


Greetings,

In the Erlang documentation, 9.2 System limits, it is written that the
maximum number of characters in an atom is 255.
What are you sending from Erlang?


bengt

On Thu, 2009-01-08 at 10:52 +0530, prasantha kumara wrote:
> 
> Hi all.
> i have sent a data steam which is 2048byte long to the c node from the
> erlang node.
> i want to process them in the c node.to do that i cast it to ta erl
> atom using ERL_ATOM_PTR().becouse i suppose to get he byte by byte
> using a c pointer.
> 
> the code i have writtenis as follows
> 
> argp = erl_element(2, tuplep);
> unsigned char* pp;
> pp=ERL_ATOM_PTR(argp);
> int i;
> for(i=0;i<10;i++){     
> pp=a[0];
> printf(" %d  ",*(pp+i));
> }
> but it can prints only 255 bytes from the byte stream .can any body
> help me get the total byte steam.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list