|
@ -29,6 +29,7 @@ |
|
|
#include "req_wrap.h" |
|
|
#include "req_wrap.h" |
|
|
|
|
|
|
|
|
#include <stdlib.h> // abort() |
|
|
#include <stdlib.h> // abort() |
|
|
|
|
|
#include <limits.h> // INT_MAX |
|
|
|
|
|
|
|
|
#define SLAB_SIZE (1024 * 1024) |
|
|
#define SLAB_SIZE (1024 * 1024) |
|
|
|
|
|
|
|
@ -293,12 +294,6 @@ Handle<Value> StreamWrap::WriteBuffer(const Arguments& args) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum WriteEncoding { |
|
|
|
|
|
kAscii, |
|
|
|
|
|
kUtf8, |
|
|
|
|
|
kUcs2 |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
template <WriteEncoding encoding> |
|
|
template <WriteEncoding encoding> |
|
|
Handle<Value> StreamWrap::WriteStringImpl(const Arguments& args) { |
|
|
Handle<Value> StreamWrap::WriteStringImpl(const Arguments& args) { |
|
|
HandleScope scope; |
|
|
HandleScope scope; |
|
|