Skip to content

Commit

Permalink
updates example
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Llamas committed Jul 25, 2012
1 parent 2181442 commit 9e384fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/skipBytes.js → examples/skip.js
Expand Up @@ -13,8 +13,8 @@ var handleError = function (bufferedReader, error, cb){
new BufferedReader ("file").skip (2, function (error, skipped){
if (error) return handleError (null, error, function (){ /* Error correctly managed. */ });

//Skipped 0x00, 0x01
//Prints 2
//Skipped 0x00, 0x11
//Prints: 2
console.log (skipped);

this.readBytes (3, function (error, bytes, bytesRead){
Expand Down

0 comments on commit 9e384fa

Please sign in to comment.