Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 766611 of ByteString

  • Revision slug: Web/API/ByteString
  • Revision title: ByteString
  • Revision id: 766611
  • Created:
  • Creator: ddbeck
  • Is current revision? No
  • Comment Editorial review: added missing subject to a sentence

Revision Content

{{APIRef("DOM")}}

ByteString is a UTF-8 String that corresponds to the set of all possible sequences of bytes. ByteString maps to a {{jsxref("String")}} when returned in JavaScript; generally, it's only used when interfacing with protocols that use bytes and strings interchangably, such as HTTP.

Specifications

Specification Status Comment
{{SpecName('WebIDL', '#idl-ByteString', 'ByteString')}} {{Spec2('WebIDL')}} Initial definition.

See also

Revision Source

<p>{{APIRef("DOM")}}</p>

<p><strong><code>ByteString</code></strong> is a UTF-8 String that corresponds to the set of all possible sequences of bytes. <strong><code>ByteString</code></strong> maps to a {{jsxref("String")}} when returned in JavaScript; generally, it's&nbsp;only used when interfacing with protocols that use bytes and strings interchangably, such as HTTP.</p>

<h2 id="Specification" name="Specification">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('WebIDL', '#idl-ByteString', 'ByteString')}}</td>
   <td>{{Spec2('WebIDL')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="See_also">See also</h2>

<ul>
 <li><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" title="/en-US/docs/Web/API/DOMString">String</a></li>
 <li><a href="/en-US/docs/Web/JavaScript/Typed_arrays/String_view" title="/en-US/docs/Web/JavaScript/Typed_arrays/String_view"><code>StringView</code> – a C-like representation of strings based on typed arrays</a></li>
 <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/DOMString/Binary">Binary strings</a></li>
</ul>
Revert to this revision