Closed Bug 1512155 Opened 2 years ago Closed 2 years ago

Introduce a movable type that combines mozilla::UniquePtr<T[]> and its length

Categories

(Core :: MFBT, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

Details

Attachments

(1 file)

AFAICT, we don't have a type between mozilla::Array and mozilla::Vector in terms of length dynamism. The HTML parser could use a type that's like Span in terms of machine representation but that owns its pointee, so I'm proposing one for MFBT instead of adding a parser-only type.
Pushed by hsivonen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5344a9d4ec9c
Introduce a movable type that combines mozilla::UniquePtr<T[]> and its length. r=froydnj
https://hg.mozilla.org/mozilla-central/rev/5344a9d4ec9c
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.