创建一个内存对象。函数原型:
swoole_buffer->__construct(int $size = 128);
参数$size指定了缓冲区内存的初始尺寸。当申请的内存容量不够时swoole底层会自动扩容。