------------------------------------------------------------------------
-- create a chunk reader from a source string
------------------------------------------------------------------------

function luaZ:make_getS(buff)
  local b = buff
  return function() -- chunk reader anonymous function here
    if not b then return nil end
    local data = b
    b = nil
    return data
  end
end
