|
@ -2048,12 +2048,11 @@ class Hash : public ObjectWrap { |
|
|
return args.This(); |
|
|
return args.This(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static Handle<Value> |
|
|
static Handle<Value> HashUpdate(const Arguments& args) { |
|
|
HashUpdate(const Arguments& args) { |
|
|
|
|
|
Hash *hash = ObjectWrap::Unwrap<Hash>(args.This()); |
|
|
|
|
|
|
|
|
|
|
|
HandleScope scope; |
|
|
HandleScope scope; |
|
|
|
|
|
|
|
|
|
|
|
Hash *hash = ObjectWrap::Unwrap<Hash>(args.This()); |
|
|
|
|
|
|
|
|
enum encoding enc = ParseEncoding(args[1]); |
|
|
enum encoding enc = ParseEncoding(args[1]); |
|
|
ssize_t len = DecodeBytes(args[0], enc); |
|
|
ssize_t len = DecodeBytes(args[0], enc); |
|
|
|
|
|
|
|
@ -2068,6 +2067,8 @@ class Hash : public ObjectWrap { |
|
|
|
|
|
|
|
|
int r = hash->HashUpdate(buf, len); |
|
|
int r = hash->HashUpdate(buf, len); |
|
|
|
|
|
|
|
|
|
|
|
delete[] buf; |
|
|
|
|
|
|
|
|
return args.This(); |
|
|
return args.This(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|