Skip to content

Commit

Permalink
Update addon.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed May 12, 2024
1 parent 7a1bc97 commit 1ce6a7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ void SlowByteLengthUtf8(const FunctionCallbackInfo<Value>& args) {
printf("calling slow\n");
}

/*
void FastByteLengthUtf8(Local<Value> receiver, const v8::FastOneByteString& source) {
fwrite(source.data, 1, source.length, stdout);
}*/

void FastByteLengthUtf8(Local<Value> receiver, Local<Value> &val) {
//fwrite(source.data, 1, source.length, stdout);
}

v8::CFunction fast_byte_length_utf8(v8::CFunction::Make(FastByteLengthUtf8));
Expand Down

0 comments on commit 1ce6a7b

Please sign in to comment.