@@ -133,14 +133,14 @@ cc.FileUtils = cc.Class.extend({
133133 this . _searchResolutionsOrderArray . push ( "" ) ;
134134 } ,
135135 /**
136- * Get resource file data
136+ * Get Byte Array from file
137137 * @function
138138 * @param {String } fileName The resource file name which contain the path
139139 * @param {String } mode mode The read mode of the file
140140 * @param {Number } size If get the file data succeed the it will be the data size,or it will be 0
141141 * @warning If you get the file data succeed,you must delete it after used.
142142 */
143- getFileData :function ( fileName , mode , size ) {
143+ getByteArrayFromFile :function ( fileName , mode , size ) {
144144 if ( this . _fileDataCache . hasOwnProperty ( fileName ) )
145145 return this . _fileDataCache [ fileName ] ;
146146
@@ -249,10 +249,10 @@ cc.FileUtils = cc.Class.extend({
249249 } ,
250250
251251 //////////////////////////////////////////////////////////////////////////
252- // Notification support when getFileData from invalid file path.
252+ // Notification support when getByteArrayFromFile from invalid file path.
253253 //////////////////////////////////////////////////////////////////////////
254254 /**
255- * Notification support when getFileData from invalid file path.
255+ * Notification support when getByteArrayFromFile from invalid file path.
256256 * @function
257257 * @type {Boolean }
258258 */
@@ -444,7 +444,7 @@ cc.FileUtils = cc.Class.extend({
444444 * @function
445445 * @param {String } resourcePath The absolute resource path
446446 * @warning Don't call this function in android and iOS, it has not effect.<br/>
447- * In android, if you want to read file other than apk, you shoud use invoke getFileData (), and pass the<br/>
447+ * In android, if you want to read file other than apk, you shoud use invoke getByteArrayFromFile (), and pass the<br/>
448448 * absolute path.
449449 * @deprecated
450450 */
0 commit comments