GameFramework.ResourceReadProxy.ReadAsArray C# (CSharp) Method

ReadAsArray() public static method

public static ReadAsArray ( string filePath ) : byte[]
filePath string
return byte[]
        public static byte[] ReadAsArray(string filePath)
        {
            byte[] buffer = null;
            try {
                if (OnReadAsArray != null) {
                    buffer = OnReadAsArray(filePath);
                } else {
                    LogSystem.Error("ReadFileByEngine handler have not register: {0}", filePath);
                }
            } catch (Exception e) {
                LogSystem.Error("Exception:{0}\n", e.Message);
                Helper.LogCallStack();
                return null;
            }
            return buffer;
        }