Ryan Dahl
3768aaaea4
Create a public Buffer constructor for use in addons.
15 years ago
Felix Geisendörfer
0a539865dd
Support arrays and strings in buffer constructor
This is be very useful for testing code that deals with buffers.
15 years ago
Ryan Dahl
8e5b91c79b
Revert "Check for strings.h"
This reverts commit 032f651824
.
15 years ago
Ryan Dahl
032f651824
Check for strings.h
15 years ago
kriskowal
8d1f1186ca
Fixed/Completed buffer copy range checks.
15 years ago
Ryan Dahl
5281f29012
Use new method of getting chars written for UTF8
15 years ago
Ryan Dahl
41ef1717e0
Upgrade V8 to 2.2.3.1
15 years ago
Ryan Dahl
b8c0349750
Fix triple buffer slice bug
15 years ago
Ryan Dahl
38041fcaa0
Try out Flatten API
Speeds up WriteUtf8 significantly when dealing with strings made by the
concatenation of many others.
15 years ago
Ryan Dahl
53dd9fe200
Fix bug in buffer.utf8Write() which included \u0000
15 years ago
Ryan Dahl
85487c82d0
Blob struct should not contain actual data
This is to allow eventual realloc without messing up the data_ references in
all the slices.
15 years ago
Ryan Dahl
b72ffc0e07
Add buffer.copy
15 years ago
Ryan Dahl
ac684f3583
Add legacy 'binary' encoding/decoding methods to Buffer
15 years ago
Ryan Dahl
3a993d8897
Buffer.utf8ByteLength -> Buffer.byteLength
15 years ago
Ryan Dahl
0c64768cb4
Don't error out when buffer.utf8Write() doesn't fit
15 years ago
Ryan Dahl
177de8fefc
Fix some gcc warnings
15 years ago
Ryan Dahl
3d10852c33
Disable AsciiSliceExt
Seems faster and less buggy?
15 years ago
Ryan Dahl
c1a0ade7e7
Further net2 compatibilities
15 years ago
Ryan Dahl
1660db6b87
Inline Buffer::HasInstance
15 years ago
Ryan Dahl
4f56d8ae24
Rename Buffer.utf8Length to Buffer.utf8ByteLength
15 years ago
Ryan Dahl
785531691b
Add buffer.unpack
15 years ago
Ryan Dahl
bf803f478b
Reimplment Buffers
15 years ago
Ryan Dahl
741e3fa91b
HTTP works somewhat on net2 now
However it's not working very well: Hitting a 'hello world' server with many
requests (ab -t 60 -c 10) will cause it to crash with the following error.
Obtained 3 stack frames.
./node(_Z11print_tracev+0x1c) [0x80d1b3c]
./node(_ZN4node6Parser7ExecuteERKN2v89ArgumentsE+0x69) [0x80d3759]
./node [0x811f44b]
TypeError: Already parsing a buffer
at Socket.<anonymous> (/home/ryan/projects/node/lib/http2.js:393:20)
at IOWatcher.callback (/home/ryan/projects/node/lib/net.js:81:12)
at node.js:985:9
at node.js:989:1
15 years ago
Ryan Dahl
bffa18befc
Expose buffer_root()
15 years ago
Ryan Dahl
bddd6e9ca3
Implement stream.send()
15 years ago
Ryan Dahl
1da15d623e
Fix buffer bug, implement tcp recv
15 years ago
Ryan Dahl
469e2648e5
More bindings, beginning tcp server code in js
15 years ago
Ryan Dahl
630bb7a012
Rename blob to buffer.
15 years ago
Ryan Dahl
0afed52329
initial blobs
15 years ago