lua-users home
lua-l archive

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


On Mon, Sep 15, 2008 at 9:23 AM, Jeff Wise <jwise@sealyrealty.com> wrote:
> Again, the data looks like '5A', nnnn, other data
> Where the nnnn is a two byte signed integer (and hi-order byte, low-order
> byte, not Intel format). For example, many length fields are X'2008' meaning
> 8200 bytes. The objective is to count these records. This is complicated by
> the fact that the "other data" may contain '5A' bytes.

if the data can contain '5A' bytes, then it's useless as a marker.
ignore it, and don't waste time trying to use it.  you have the real
size count, use that to calculate the substring you have to pick.


-- 
Javier