function luaZ.init(Q,b,V,M)if not b then return end local h={}h.reader=b h.data=V or""h.name=M if not V or V==""then h.n=0 else h.n=#V end h.p=0 return h end

function luaZ:init(reader, data, name)
  if not reader then return end
  local z = {}
  z.reader = reader
  z.data = data or ""
  z.name = name
  -- set up additional data for reading
  if not data or data == "" then z.n = 0 else z.n = #data end
  z.p = 0
  return z
end
