Permalink
Switch branches/tags
Nothing to show
Commits on Mar 22, 2017
  1. version bump

    committed Mar 22, 2017
Commits on Mar 21, 2017
  1. Merge pull request #29 from ElliotChong/patch-1

    Prevent data from leaking into a new Buffer
    committed on GitHub Mar 21, 2017
  2. Prevent data from leaking into a new Buffer

    Fixes a leak per the Node.js docs @ https://nodejs.org/api/buffer.html#buffer_new_buffer_size
    
    Ideally Buffer.alloc() would be utilized in place of new Buffer(); however, I'm not sure which version of Node introduced that API so for backwards compatibility sake I added an API check and fallback to `buf.fill(0)` for older Node versions.
    ElliotChong committed on GitHub Mar 21, 2017
Commits on Jan 23, 2017
  1. Update index.js

    committed on GitHub Jan 23, 2017
Commits on Jul 24, 2016
  1. version bump

    committed Jul 24, 2016
Commits on Jul 15, 2016
  1. fix #25

    committed on GitHub Jul 15, 2016
Commits on Mar 13, 2016
  1. version bump

    committed Mar 13, 2016
  2. fix #23

    committed Mar 13, 2016
Commits on Mar 12, 2016
  1. Merge pull request #22 from purell/master

    Improvement
    committed Mar 12, 2016
Commits on Mar 10, 2016
  1. fix charnt by charsnt in Sample

    purell committed Mar 10, 2016
  2. Improvement

    Support float and double
    
    Assign a buffer to the struct revised to prevent invalid buffer
    
    Create a new variant of char (charsnt) that force string to be null
    terminated and remaining buffer part set to \0.
    
    Update README
    
    Update sample
    purell committed Mar 10, 2016
Commits on Jul 14, 2014
Commits on Jul 13, 2014
  1. Merge pull request #17 from silvinci/master

    Fix samples and readme
    committed Jul 13, 2014
  2. Update perfTest.js

    buschtoens committed Jul 13, 2014
  3. Update sample.js

    buschtoens committed Jul 13, 2014
  4. Update README.md

    buschtoens committed Jul 13, 2014
  5. Merge pull request #16 from silvinci/master

    Make `Struct` the default export
    committed Jul 13, 2014
  6. version bump

    buschtoens committed Jul 13, 2014
Commits on Jun 3, 2014
Commits on May 23, 2014
Commits on Feb 26, 2014
  1. Merge pull request #10 from toksea/master

    fix ''Struct.chars() not support encoding'' issue (issue#9)
    committed Feb 26, 2014
Commits on Sep 29, 2013
  1. version bump

    committed Sep 29, 2013
  2. remove comments

    committed Sep 29, 2013
Commits on Sep 5, 2013
  1. reformatting

    committed Sep 5, 2013
  2. more features added

    set array field support
    set struct field support
    smarter set method (object / embedded object / buffer)
    set charsfield append a "\0"
    zh99998 committed Sep 5, 2013
Commits on Sep 1, 2013
  1. updated readme

    committed Sep 1, 2013
  2. use Object.defineProperty

    committed Sep 1, 2013
Commits on Aug 31, 2013
Commits on Jun 5, 2013
  1. Merge pull request #5 from jeffharrell/master

    Removing JavaScript debugger statements
    committed Jun 5, 2013