public function readNextKeyValuePair( $truncatedString ) : ContainerElement {
        $keyBytes = $this->extractKeyBytes( $truncatedString );
        $remainingBytes = substr( $truncatedString, $keyBytes->getLength() );
        $data = $this->readData( $remainingBytes );
        return new ContainerElement($keyBytes, $data);
    }