The Equality Case of the Kraft and the Kraft-McMillan Inequalities