WebAssembly / stringref

Other
37 stars 2 forks source link

stringview_wtf16.encode returns number of written code units #36

Closed wingo closed 2 years ago

wingo commented 2 years ago

Since the operand is a maximum number of code units to write, it makes sense to return the number of code units actually written, for the same reason as string.encode_wtf16.

See #24.