encodeUtf16 function

List<int?> encodeUtf16(
  1. String str
)

Produce a list of UTF-16 encoded bytes. This method prefixes the resulting bytes with a big-endian byte-order-marker.

Implementation

List<int?> encodeUtf16(String str) => encodeUtf16be(str, true);