static string UnforgeEntrypoint(ForgedReader reader)
        {
            var ep = reader.ReadInt32(1);

            switch (ep)
            {
            case 0: return("default");

            case 1: return("root");

            case 2: return("do");

            case 3: return("set_delegate");

            case 4: return("remove_delegate");

            case 255: return(reader.ReadString(1));

            default: throw new ArgumentException($"Unrecognized endpoint type {ep}");
            }
        }