chunkType = 0; $this->chunkStreamId = 0; $this->timestamp = 0; $this->length = 0; $this->type = 0; $this->streamId = 0; $this->hasAbsTimestamp = false; $this->bytesRead = 0; $this->payload = null; } public function free() { $this->payload = null; } public function isReady() { return $this->bytesRead == $this->length; } }