UTF16LE
UTF16LE
Section titled “UTF16LE”Canonical source:
protos/lib/text/UTF16LE.protosat locked revisione99b712ecf658a527b1fe82c8beba2c1286d8dc9.
// THE LICENSED WORK IS PROVIDED UNDER THE TERMS OF THE ADAPTIVE PUBLIC LICENSE// ("LICENSE") AS FIRST COMPLETED BY: Guillermo Adrián Molina. ANY USE, PUBLIC// DISPLAY, PUBLIC PERFORMANCE, REPRODUCTION OR DISTRIBUTION OF, OR PREPARATION OF// DERIVATIVE WORKS BASED ON, THE LICENSED WORK CONSTITUTES RECIPIENT'S ACCEPTANCE// OF THIS LICENSE AND ITS TERMS, WHETHER OR NOT SUCH RECIPIENT READS THE TERMS OF// THE LICENSE. "LICENSED WORK" AND "RECIPIENT" ARE DEFINED IN THE LICENSE. A COPY// OF THE LICENSE IS LOCATED IN THE TEXT FILE ENTITLED "LICENSE.TXT" ACCOMPANYING// THE CONTENTS OF THIS FILE. IF A COPY OF THE LICENSE DOES NOT ACCOMPANY THIS// FILE, A COPY OF THE LICENSE MAY ALSO BE OBTAINED AT THE FOLLOWING WEB SITE:// https://github.com/guillermomolina/protos//// Software distributed under the License is distributed on an "AS IS" basis,// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for// the specific language governing rights and limitations under the License.
//! UTF-16LE text encoding helpers: one-shot conversion and UTF-16LE text-I/O wrappers.
/// Encodes `text` with `Encoding.UTF16LE`, answering a fresh Bytes value.encode: (text) => { Encoding.UTF16LE.encode(text)}
/// Decodes `bytes` with `Encoding.UTF16LE`, answering a String.decode: (bytes) => { Encoding.UTF16LE.decode(bytes)}
/// Answers a fresh borrowing TextReader that decodes `source` as UTF-16LE.reader: (source) => { TextReader(source, Encoding.UTF16LE)}
/// Answers a fresh owning TextReader that decodes `source` as UTF-16LE.owningReader: (source) => { TextReader.owning(source, Encoding.UTF16LE)}
/// Answers a fresh borrowing TextWriter that encodes to `target` as UTF-16LE.writer: (target) => { TextWriter(target, Encoding.UTF16LE)}
/// Answers a fresh owning TextWriter that encodes to `target` as UTF-16LE.owningWriter: (target) => { TextWriter.owning(target, Encoding.UTF16LE)}