JSFileApi: Difference between revisions

162 bytes added ,  11 October 2011
(Renamed modules/constructors)
Line 249: Line 249:
       * @param {ArrayBuffer} buf The buffer which will receive the data.
       * @param {ArrayBuffer} buf The buffer which will receive the data.
       * @param {number} offset The position in the array at which to start putting data, in bytes.
       * @param {number} offset The position in the array at which to start putting data, in bytes.
       * @param {number} size The maximal number of bytes to read. This method can read less bytes if the file is shorter.
       * @param {number} size The maximal number of bytes to read. This method can read less bytes if (and only if) the file is shorter.
       * @return {number} The number of bytes read.
       * @return {number} The number of bytes read.
       * @throws {RawFileException} In case of file error.
       * @throws {RawFileException} In case of file error.
Line 258: Line 258:
  //Windows: [ReadFile]  http://msdn.microsoft.com/en-us/library/windows/desktop/aa365467%28v=VS.85%29.aspx
  //Windows: [ReadFile]  http://msdn.microsoft.com/en-us/library/windows/desktop/aa365467%28v=VS.85%29.aspx
     },
     },
 
 
    /**
      * As [read], but allocate the buffer
      *
      * @return {ArrayBuffer} The buffer
      */
    readBuf: function(size) {
    },
 
     /**
     /**
       * As [read], but read from a given position and do not advance.
       * As [read], but read from a given position and do not advance.
184

edits