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 11, 2024
1 parent 849ec71 commit 3fac226
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ void SlowByteLengthUtf8(const FunctionCallbackInfo<Value>& args) {
}

uint32_t FastByteLengthUtf8(Local<Value> receiver, const v8::FastOneByteString& source) {


fwrite(source.data, 1, source.length, stdout);

return source.length;
}

Expand Down

0 comments on commit 3fac226

Please sign in to comment.