[LayaAir 1.0]Laya有没有将base64字符串转Laya.Byte的方法?

Laya有没有将base64字符串转Laya.Byte的方法?
已邀请:

Aar0n

赞同来自:

Base64Tool 类 看里面方法
public static function encodeByte(byte:ByteEx, start:int = 0, end:int = -1):String
        {
            if (end < 0)
            {
                end = byte.length;
            }
            return encode(byte.buffer.slice(start,end));
        }
        
        /**
         * 解码成Byte
         * @param base64
         * @return
         *
         */
        public static function decodeToByte(base64:String):ByteEx
        {
            return new ByteEx(decode(base64));
        }

要回复问题请先

商务合作
商务合作