Arquivos
hhvm/hphp/runtime/ext/ext_zlib.h
T
Owen Yamauchi 0fd0fa814c Get rid of ext_hhvm_noinline.cpp, part 1
Post-hphpc, declaring builtins as inline is useless, which obviates the
need for this layer.

This doesn't fully delete the file, because I wanted to keep mindless
parts and use-your-brain parts separate. This is the mindless part. The
remaining functions in noinline.cpp are no-inline wrappers around
(a) a function that isn't defined in an extension, call_user_func_array,
and (b) calling polymorphic is_* functions, which can probably mostly go
away now. But I wanted to exercise more care around those, so they'll
come in a followup diff.
2013-04-01 13:41:49 -07:00

71 linhas
3.0 KiB
C++

/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
| Copyright (c) 1997-2010 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
*/
#ifndef __EXT_ZLIB_H__
#define __EXT_ZLIB_H__
#include <runtime/base/base_includes.h>
#include <runtime/ext/ext_file.h>
namespace HPHP {
///////////////////////////////////////////////////////////////////////////////
// zlib functions
Variant f_readgzfile(CStrRef filename, bool use_include_path = false);
Variant f_gzfile(CStrRef filename, bool use_include_path = false);
Variant f_gzcompress(CStrRef data, int level = -1);
Variant f_gzuncompress(CStrRef data, int limit = 0);
Variant f_gzdeflate(CStrRef data, int level = -1);
Variant f_gzinflate(CStrRef data, int limit = 0);
Variant f_gzencode(CStrRef data, int level = -1,
int encoding_mode = k_FORCE_GZIP);
Variant f_gzdecode(CStrRef data);
String f_zlib_get_coding_type();
Variant f_qlzcompress(CStrRef data, int level = 1);
Variant f_qlzuncompress(CStrRef data, int level = 1);
Variant f_sncompress(CStrRef data);
Variant f_snuncompress(CStrRef data);
Variant f_nzcompress(CStrRef uncompressed);
Variant f_nzuncompress(CStrRef compressed);
Variant f_lz4compress(CStrRef uncompressed);
Variant f_lz4hccompress(CStrRef uncompressed);
Variant f_lz4uncompress(CStrRef compressed);
///////////////////////////////////////////////////////////////////////////////
// stream functions
Object f_gzopen(CStrRef filename, CStrRef mode, bool use_include_path = false);
bool f_gzclose(CObjRef zp);
Variant f_gzread(CObjRef zp, int64_t length = 0);
Variant f_gzseek(CObjRef zp, int64_t offset, int64_t whence = k_SEEK_SET);
Variant f_gztell(CObjRef zp);
bool f_gzeof(CObjRef zp);
bool f_gzrewind(CObjRef zp);
Variant f_gzgetc(CObjRef zp);
Variant f_gzgets(CObjRef zp, int64_t length = 1024);
Variant f_gzgetss(CObjRef zp, int64_t length = 0,
CStrRef allowable_tags = null_string);
Variant f_gzpassthru(CObjRef zp);
Variant f_gzputs(CObjRef zp, CStrRef str, int64_t length = 0);
Variant f_gzwrite(CObjRef zp, CStrRef str, int64_t length = 0);
///////////////////////////////////////////////////////////////////////////////
}
#endif // __EXT_ZLIB_H__