What is new Bytef[int] in C++?
<p>I have a code snippet below, I'm not quite sure what the last line does. More specifically what's a Bytef[]? </p>

<pre><code>FILE* read_file_handle = fopen(read_filename, "rb");
fseek(read_file_handle, 0, SEEK_END);
size_t no_bytes_to_read = ftell(read_file_handle);
Bytef* read_buffer = new Bytef[no_bytes_to_read];
</code></pre>

<p>What is the Bytef[] do? And, if anyone knows, when porting that to PHP, how would I do that?
I thought it might be an array, but such a variable has never been defined and with the <em>new</em> keyword it just wouldn't make sense.</p>

<p>Can anyone help?</p>

<p>Hosh</p>

<p>EDIT:
Okay so thanks to the user Default it seems to be something defined within zlib.
It's defined as <code>typedef Byte FAR Bytef;</code> in <a href="http://www.kneuro.net/cgi-bin/lxr/http/source/arch/ppc/coffboot/zlib.h?a=alpha#L124" rel="nofollow">this file on line 124</a>
Anyone know what the type of Bytef is according to that?
Byte has been defined as a char (<code>typedef unsigned char Byte;</code>) and FAR has been defined: <code>#define FAR</code>
Any help?</p>
