Browse Source

Add padBytesRight author & displayFilesAsHTML desc

toby 8 năm trước cách đây
mục cha
commit
0eef1d972a
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/js/core/Utils.js

+ 5 - 0
src/js/core/Utils.js

@@ -96,6 +96,8 @@ var Utils = {
     /**
     /**
      * Adds trailing bytes to a byteArray.
      * Adds trailing bytes to a byteArray.
      *
      *
+     * @author tlwr [toby@toby.codes]
+     *
      * @param {byteArray} arr - byteArray to add trailing bytes to.
      * @param {byteArray} arr - byteArray to add trailing bytes to.
      * @param {number} numBytes - Maximum width of the array.
      * @param {number} numBytes - Maximum width of the array.
      * @param {Integer} [padByte=0] - The byte to pad with.
      * @param {Integer} [padByte=0] - The byte to pad with.
@@ -959,6 +961,9 @@ var Utils = {
 
 
     /**
     /**
      * Formats a list of files or directories.
      * Formats a list of files or directories.
+     * A File is an object with a "fileName" and optionally a "contents".
+     * If the fileName ends with "/" and the contents is of length 0 then
+     * it is considered a directory.
      *
      *
      * @author tlwr [toby@toby.codes]
      * @author tlwr [toby@toby.codes]
      *
      *