lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great bil til once stated:
> 
> The price for "T" would be, that all the keys should best be inside your
> blob string, this will bloat up your
> blob by about 100-200 bytes in this case, quite much of course ... As your
> message string is maximum 250 bytes wide, this will bloat your blob string
> by minimum 100%, so this is quite much ... .

  Um ... what?

  This example:

      result.id     = 'SUBMIT_SM'
      result.source = {}
      result.dest   = {}
      
      result.service_type,
      result.source.addr_ton,
      result.source.addr_npi,
      result.source.addr,
      result.dest.addr_ton,
      result.dest.addr_npi,
      result.dest.addr,
      result.esm_class,
      result.protocol_id,
      result.prority,
      result.schedule_time,
      result.validity_period,
      result.registered_delivery,
      result.replace_if_present,
      result.data_coding,
      result.sm_default_msg_id,
      result.message,
      pos = string.unpack(">zI1I1zI1I1zI1I1I1zzI1I1I1I1s1",blob,13)

Is pulled from a project at work to unpack an SMS message.  What you appear
to be talking about is serializing a Lua table, which is completely
different from what I use string.pack()/string.unpack() for.

> Sorry concerning further hints from your side, which I somehow did not
> understand yet completely or which I overlooked in your blogs, 
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Um ... what?

> can you best
> send them also in form of such a lua code snippet, so that I see where you
> see possible problems which still cannot be handled? 
> (I did not receive any Email from your side...).
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Um ... what?

> Sent from: http://lua.2524044.n2.nabble.com/Lua-l-f2524044.html

  From that page:

	This forum is an archive for the mailing list lua-l@lists.lua.org
	(more options) Messages posted here will be sent to this mailing
	list.

  I'm reading this via email.  I'm using my email client to repond to this. 
I'm not writing a "blog".  

  -spc