CHtmlStream( UINT nGrowBytes = 4096 );
CHtmlStream( BYTE* lpBuffer, UINT nBufferSize, UINT nGrowBytes = 0 );
Parameters
nGrowBytes
The memory allocation increment in bytes.
lpBuffer
Pointer to a buffer that receives information of the size nBufferSize.
nBufferSize
An integer that specifies the size of the file buffer, in bytes.
Remarks
This member function is called by the framework during the construction of a CHtmlStream object.
Normally, a CHtmlStream object is created automatically and handed to you by CHttpServer::ConstructStream. You can change the behavior of the CHtmlStream object associated with a CHttpServerContext object by overriding CHttpServer::ConstructStream. For example, you might want to set nGrowBytes to a specific value. Use caution if you set nGrowBytes, because it will affect the performance of your code. The nGrowBytes parameter tells MFC how rapidly to increase the memory block associated with the stream. If the value is large, your code will be faster, but it will waste memory. If the value is small, your code will use less memory, but it will waste time by allocating memory more frequently.
CHtmlStream Overview | Class Members | Hierarchy Chart
See Also CHtmlStream::InitStream, CHtmlStream::Attach, CHtmlStream::Alloc