public function endChunk() 
    {
        // Compute Crc32 for type + data
        $data = $this->buffer;
        $crc = crc32($data);

        $this->buffer = 
            $this->chunkPreviousBuffer .
            
            // Length
            pack('N', strlen($data) - 4) .

            // Content 
            $data .

            // Crc32
            pack('N', $crc);
    }