Exemple #1
0
        static EsfCodec CodecFromCode(uint code)
        {
            EsfCodec codec = null;

            switch (code)
            {
            case 0xABCE:
                codec = new AbceCodec();
                break;

            case 0xABCF:
                codec = new AbcfFileCodec();
                break;

            case 0xABCA:
                codec = new AbcaFileCodec();
                break;
            }
            return(codec);
        }
Exemple #2
0
        private static EsfCodec CodecFromCode(uint code)
        {
            EsfCodec result = null;

            switch (code)
            {
            case 43982u:
                result = new AbceCodec();
                break;

            case 43983u:
                result = new AbcfFileCodec();
                break;

            case 43978u:
                result = new AbcaFileCodec();
                break;
            }

            return(result);
        }