write(string, offset = 0, length = this.length) {
    return new TextEncoder().encodeInto(
      string,
      this.subarray(offset, offset + length),
    ).written;
  }
/**
   * Writes string to buf at offset according to the character encoding in
   * encoding. The length parameter is the number of bytes to write. If buf did
   * not contain enough space to fit the entire string, only part of string will
   * be written. However, partially encoded characters will not be written.
   */
Writes string to buf at offset according to the character encoding in
encoding. The length parameter is the number of bytes to write. If buf did
not contain enough space to fit the entire string, only part of string will
be written. However, partially encoded characters will not be written.
Writes string to buf at offset according to the character encoding in encoding . The length parameter is the number of bytes to write . If buf did not contain enough space to fit the entire string only part of string will be written . However partially encoded characters will not be written .
write(string, offset = 0, length = this.length) {
    return new TextEncoder().encodeInto(
      string,
      this.subarray(offset, offset + length),
    ).written;
  }
write ( string , offset = 0 , length = this . length ) { return new TextEncoder ( ) . encodeInto ( string , this . subarray ( offset , offset + length ) , ) . written ; }
Writes string to buf at offset according to the character encoding in
 encoding.
Writes string to buf at offset according to the character encoding in encoding .