Ryan Dahl
77fc61d539
Default value for second arg of Buffer#slice
2010-09-14 15:39:27 -07:00
Ryan Dahl
b8bfbdab48
Rename SlowBuffer in binding
2010-09-09 11:03:51 -07:00
Ryan Dahl
5bc4efe820
Remove blobs, simplify SlowBuffer
...
Implement SlowBuffer.prototype.slice in js
2010-09-09 11:03:51 -07:00
Ryan Dahl
ba2e4a2306
Simplify fast buffer constructor
2010-09-09 11:03:50 -07:00
Ryan Dahl
3e9f636b64
Improve long buffer test
2010-09-09 11:03:50 -07:00
Ryan Dahl
17ba821e60
defineProperty is slow, don't use it for fastbuffer
2010-09-09 11:03:50 -07:00
Ryan Dahl
d3fcd1c75a
Expose SlowBuffer
2010-09-09 11:03:50 -07:00
Ryan Dahl
8b4f1e05f9
Expose Buffer.poolSize
2010-09-09 11:03:50 -07:00
Ryan Dahl
5506f99dfa
map charsWritten to fast buffer
2010-09-09 11:03:49 -07:00
Ryan Dahl
7b772f3f68
More fast buffer work
2010-09-09 11:03:48 -07:00
Ryan Dahl
d5bdda74c1
fast buffer bounds checking in copy()
2010-09-09 11:03:48 -07:00
Tim-Smart
6ea99721f1
string.length !== Buffer.byteLength(string)
2010-09-09 11:03:48 -07:00
Ryan Dahl
2dda6be799
Fast Buffer safe constructor
2010-09-09 11:03:48 -07:00
Ryan Dahl
b87669cbf4
Fix fastbuffer style
...
Fix style
2010-09-09 11:03:48 -07:00
Tim-Smart
2b07c9fcae
Some silly fixes to buffer.js
2010-09-09 11:03:47 -07:00
Tim-Smart
746d487da8
FastBuffer implementation. API needs migration
2010-09-09 11:03:47 -07:00
Ryan Dahl
51ecba8da9
Add get/set methods to Buffer
2010-08-19 23:29:06 -07:00
Dmitry Baranovskiy
8ab3c3e7c3
Added ability to pass offset to buffer write and toString methods as a string, i.e. '2' and encoding as anything
2010-07-25 20:16:37 -07:00
Ryan Dahl
2c1ca4078d
Implement buffer.write for base64
...
There might be an off-by-one on the returned value.
2010-07-23 16:36:52 -07:00
Ryan Dahl
528015e0d8
Implement buffer.toString('base64')
2010-07-23 13:52:44 -07:00
Peter Griess
56f200af5d
Fix Buffer.toString() on 0-length slices.
...
- Buffer.toString('ascii', 0, 0) incorrectly returns the entire contents
of the buffer. Fix this.
- Provide similar behavior to Buffer.write() and Buffer.copy() when
dealing with 0-length in valid and invalid byte ranges.
2010-07-20 15:38:10 -07:00
Ryan Dahl
02729d4af7
instanceof Buffer to Buffer.isBuffer()
2010-07-15 15:58:35 -07:00
Blake Mizerany
898afbaf34
Buffer.prototype.write: Indifferent order preference of encoding and offset
2010-06-29 19:56:07 -07:00
Ryan Dahl
08a09bb50a
Use some more Binary/F methods for Buffer
2010-04-08 16:31:02 -07:00
Ryan Dahl
bb00fef3cd
Change Buffer.toString to conform to CommonJS Binary/F
...
Also add Buffer.inspect
2010-03-26 08:36:08 -07:00
Ryan Dahl
6740dd48b3
Change Buffer toString() output
2010-03-25 09:50:49 -07:00
Ryan Dahl
025116f8d0
Move Buffer into own module
2010-03-19 20:58:24 -07:00