mirror of
https://github.com/uNetworking/uWebSockets.js.git
synced 2026-04-18 11:00:25 -04:00
Update addon.cpp
This commit is contained in:
@@ -45,13 +45,8 @@ void SlowByteLengthUtf8(const FunctionCallbackInfo<Value>& args) {
|
||||
printf("calling slow\n");
|
||||
}
|
||||
|
||||
uint32_t FastByteLengthUtf8(Local<Value> receiver, const v8::FastOneByteString& source) {
|
||||
|
||||
printf("calling fast\n");
|
||||
|
||||
void FastByteLengthUtf8(Local<Value> receiver, const v8::FastOneByteString& source) {
|
||||
fwrite(source.data, 1, source.length, stdout);
|
||||
|
||||
return source.length;
|
||||
}
|
||||
|
||||
v8::CFunction fast_byte_length_utf8(v8::CFunction::Make(FastByteLengthUtf8));
|
||||
|
||||
Reference in New Issue
Block a user