How to set the default chunk size for a custom PHP stream wrapper

796 Views Asked by At

When using a stream wrapper for PHP, the chunk size can be set on the client side with stream_set_chunk_size

However, is there anyway to specify the chunk size from a custom stream wrapper implementation itself?

For example, an implementation of stream_write receives the set of bytes, but the byte length is default 8192 bytes. I'm wondering if it's possible to change that default byte length.

0

There are 0 best solutions below