demo/connections/third-party/qr/qr.js
function writeBuffer() {
      fs.write(fd, buff, 0, buff.length, 0, function (error) {
        fs.close(fd);

        callback(error);
      });
    }
function writeBuffer() {
      fs.write(fd, buff, 0, buff.length, 0, function (error) {
        fs.close(fd);

        callback(error);
      });
    }
function writeBuffer ( ) { fs . write ( fd , buff , 0 , buff . length , 0 , function ( error ) { fs . close ( fd ) ; callback ( error ) ; } ) ; }
Write the buffer to the open file stream once both prerequisites are met.
Write the buffer to the open file stream once both prerequisites are met .