toots / buffer-browserify

node's buffer module, but for the browser.
MIT License
52 stars 33 forks source link

limited slicing implementation #23

Closed husio-org closed 11 years ago

husio-org commented 11 years ago

Slicing, limited working implementation. Updating the slice will NOT update the parent, but otherwise works fine.

AndreasMadsen commented 11 years ago

@toots could you merge this and release a new version?

toots commented 11 years ago

Hi, Could you also add tests? Thanks!

AndreasMadsen commented 11 years ago

This failed before this PR:

test('buffer.slice sets indexes', function (t) {
  t.equal((new Buffer('hallo')).slice(0, 5).toString(), 'hallo');
  t.end();
});