static byteLength(string, encoding = "utf8") {
    if (typeof string != "string") return string.byteLength;
    encoding = normalizeEncoding(encoding) || "utf8";
    return encodingOps[encoding].byteLength(string);
  }
/**
   * Returns the byte length of a string when encoded. This is not the same as
   * String.prototype.length, which does not account for the encoding that is
   * used to convert the string into bytes.
   */
Returns the byte length of a string when encoded. This is not the same as
String.prototype.length, which does not account for the encoding that is
used to convert the string into bytes.
Returns the byte length of a string when encoded . This is not the same as String . prototype . length which does not account for the encoding that is used to convert the string into bytes .
static byteLength(string, encoding = "utf8") {
    if (typeof string != "string") return string.byteLength;
    encoding = normalizeEncoding(encoding) || "utf8";
    return encodingOps[encoding].byteLength(string);
  }
static byteLength ( string , encoding = "utf8" ) { if ( typeof string != "string" ) return string . byteLength ; encoding = normalizeEncoding ( encoding ) || "utf8" ; return encodingOps [ encoding ] . byteLength ( string ) ; }
Returns the byte length of a string when encoded.
Returns the byte length of a string when encoded .