GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: disable fast methods for `buffer.write` · nodejs/node@e071651

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_buffer.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_buffer.cc‎

Copy file name to clipboardExpand all lines: src/node_buffer.cc
+3-15Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,21 +1554,9 @@ void Initialize(Local<Object> target,
15541554
SetMethod(context, target, "hexWrite", StringWrite<HEX>);
15551555
SetMethod(context, target, "ucs2Write", StringWrite<UCS2>);
15561556

1557-
SetFastMethod(context,
1558-
target,
1559-
"asciiWriteStatic",
1560-
SlowWriteString<ASCII>,
1561-
&fast_write_string);
1562-
SetFastMethod(context,
1563-
target,
1564-
"latin1WriteStatic",
1565-
SlowWriteString<LATIN1>,
1566-
&fast_write_string);
1567-
SetFastMethod(context,
1568-
target,
1569-
"utf8WriteStatic",
1570-
SlowWriteString<UTF8>,
1571-
&fast_write_string);
1557+
SetMethod(context, target, "asciiWriteStatic", SlowWriteString<ASCII>);
1558+
SetMethod(context, target, "latin1WriteStatic", SlowWriteString<LATIN1>);
1559+
SetMethod(context, target, "utf8WriteStatic", SlowWriteString<UTF8>);
15721560

15731561
SetMethod(context, target, "getZeroFillToggle", GetZeroFillToggle);
15741562
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.