Example #1
0
        public byte[] Bytes()
        {
            var commandDataLength = new IntHex(
                new Lc(_commandApduBody)
                ).Value();

            return(_commandApduBody
                   .Bytes()
                   .Skip(1)
                   .Take(commandDataLength)
                   .ToArray());
        }
Example #2
0
        public byte[] Bytes()
        {
            var exceptedDataLength = new IntHex(
                new Le(
                    new CommandApduBody(_rawCommandApdu)
                    )
                ).Value();

            //  If Le is not available, leave building DO ‘97’ out.
            if (exceptedDataLength == 0)
            {
                return(new Binary().Bytes());
            }

            return(new DO97(exceptedDataLength).Bytes());
        }