Closed Bug 1512991 Opened 5 years ago Closed 4 years ago

give JSONWriteFunc a Write(const char*, size_t) overload

Categories

(Core :: MFBT, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox65 --- wontfix
firefox78 --- fixed

People

(Reporter: froydnj, Assigned: fronkc1)

Details

Attachments

(1 file)

We have the length available for the string we're writing in many of the places we want to call into a subclass of JSONWriteFunc; it seems wasteful to throw that information away and have to recompute it via `strlen` or something similar in a lower layer.
Assignee: nobody → fronkc1
Status: NEW → ASSIGNED
Pushed by bballo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5a5c681effef
Add JsonWriteFunc::Write to take string length. r=botond
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: