<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" docName="draft-ietf-cbor-array-tags-08" indexInclude="true" ipr="trust200902" number="8746" prepTime="2020-02-28T15:45:08" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-cbor-array-tags-08" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc8746" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="CBOR tags for typed arrays">Concise Binary Object Representation (CBOR) Tags for Typed Arrays</title>
    <seriesInfo name="RFC" value="8746" stream="IETF"/>
    <author initials="C." surname="Bormann" fullname="Carsten Bormann" role="editor">
      <organization showOnFrontPage="true">Universität Bremen TZI</organization>
      <address>
        <postal>
          <street>Postfach 330440</street>
          <city>Bremen</city>
          <code>D-28359</code>
          <country>Germany</country>
        </postal>
        <phone>+49-421-218-63921</phone>
        <email>cabo@tzi.org</email>
      </address>
    </author>
    <date month="02" year="2020"/>
    <keyword>binary format</keyword>
    <keyword>data interchange format</keyword>
    <keyword>JSON</keyword>
    <abstract pn="section-abstract">
      <t pn="section-abstract-1">The Concise Binary Object Representation (CBOR), as defined in RFC
      7049, is a data format whose design goals include the possibility of
      extremely small code size, fairly small message size, and extensibility
      without the need for version negotiation.</t>
      <t pn="section-abstract-2">This document makes use of this extensibility to define a number of
      CBOR tags for typed arrays of numeric data, as well as additional
      tags for multi-dimensional and homogeneous arrays.  It is intended as
      the reference document for the IANA registration of the CBOR tags
      defined.</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc8746" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t pn="section-boilerplate.2-1">
            Copyright (c) 2020 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Simplified BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Simplified BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t keepWithNext="true" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-terminology">Terminology</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t keepWithNext="true" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-typed-arrays">Typed Arrays</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2">
              <li pn="section-toc.1-1.2.2.1">
                <t keepWithNext="true" pn="section-toc.1-1.2.2.1.1"><xref derivedContent="2.1" format="counter" sectionFormat="of" target="section-2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-types-of-numbers">Types of Numbers</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.3">
            <t keepWithNext="true" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-additional-array-tags">Additional Array Tags</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2">
              <li pn="section-toc.1-1.3.2.1">
                <t keepWithNext="true" pn="section-toc.1-1.3.2.1.1"><xref derivedContent="3.1" format="counter" sectionFormat="of" target="section-3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-multi-dimensional-array">Multi-dimensional Array</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2.1.2">
                  <li pn="section-toc.1-1.3.2.1.2.1">
                    <t keepWithNext="true" pn="section-toc.1-1.3.2.1.2.1.1"><xref derivedContent="3.1.1" format="counter" sectionFormat="of" target="section-3.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-row-major-order">Row-Major Order</xref></t>
                  </li>
                  <li pn="section-toc.1-1.3.2.1.2.2">
                    <t keepWithNext="true" pn="section-toc.1-1.3.2.1.2.2.1"><xref derivedContent="3.1.2" format="counter" sectionFormat="of" target="section-3.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-column-major-order">Column-Major Order</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.3.2.2">
                <t keepWithNext="true" pn="section-toc.1-1.3.2.2.1"><xref derivedContent="3.2" format="counter" sectionFormat="of" target="section-3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-homogeneous-array">Homogeneous Array</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.4">
            <t keepWithNext="true" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-discussion">Discussion</xref></t>
          </li>
          <li pn="section-toc.1-1.5">
            <t keepWithNext="true" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-cddl-typenames">CDDL Typenames</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t keepWithNext="true" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.7">
            <t keepWithNext="true" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t keepWithNext="true" pn="section-toc.1-1.8.1"><xref derivedContent="8" format="counter" sectionFormat="of" target="section-8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.8.2">
              <li pn="section-toc.1-1.8.2.1">
                <t keepWithNext="true" pn="section-toc.1-1.8.2.1.1"><xref derivedContent="8.1" format="counter" sectionFormat="of" target="section-8.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.2">
                <t keepWithNext="true" pn="section-toc.1-1.8.2.2.1"><xref derivedContent="8.2" format="counter" sectionFormat="of" target="section-8.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.9">
            <t keepWithNext="true" pn="section-toc.1-1.9.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.a"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgements">Acknowledgements</xref></t>
          </li>
          <li pn="section-toc.1-1.10">
            <t keepWithNext="true" pn="section-toc.1-1.10.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-contributors">Contributors</xref></t>
          </li>
          <li pn="section-toc.1-1.11">
            <t keepWithNext="true" pn="section-toc.1-1.11.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.c"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-address">Author's Address</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="intro" numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t pn="section-1-1">The Concise Binary Object Representation (CBOR) <xref target="RFC7049" format="default" sectionFormat="of" derivedContent="RFC7049"/> provides for the interchange of
      structured data without a requirement for a pre-agreed schema.  <xref target="RFC7049" format="default" sectionFormat="of" derivedContent="RFC7049"/> defines a basic set of data types as well as a
      tagging mechanism that enables extending the set of data types supported
      via an IANA registry.</t>
      <t pn="section-1-2">Recently, a simple form of typed arrays of numeric data has received
      interest both in the Web graphics community <xref target="TypedArray" format="default" sectionFormat="of" derivedContent="TypedArray"/> and in the JavaScript specification (see <eref target="https://www.ecma-international.org/ecma-262/10.0/index.html#sec-typedarray-objects" brackets="none">Section
      22.2</eref> of <xref target="ECMA-ES10" format="default" sectionFormat="of" derivedContent="ECMA-ES10"/>) as well as
      in corresponding implementations <xref target="ArrayBuffer" format="default" sectionFormat="of" derivedContent="ArrayBuffer"/>.</t>
      <t pn="section-1-3">Since these typed arrays may carry significant amounts of data, there
      is interest in interchanging them in CBOR without the need of lengthy
      conversion of each number in the array.  This can also save space
      overhead with encoding a type for each element of an array.</t>
      <t pn="section-1-4">This document defines a number of interrelated CBOR tags that cover
      these typed arrays, as well as additional tags for multi-dimensional and
      homogeneous arrays.  It is intended as the reference document for the
      IANA registration of the tags defined.</t>
      <t pn="section-1-5">Note that an application that generates CBOR with these tags has
      considerable freedom in choosing variants (e.g., with respect to
      endianness, embedded type (signed vs. unsigned), and number of bits per
      element) or whether a tag defined in this specification is used at all
      instead of more basic CBOR.  In contrast to representation variants of
      single CBOR numbers, there is no representation that could be identified
      as "preferred".  If deterministic encoding is desired in a CBOR-based
      protocol making use of these tags, the protocol has to define which of
      the encoding variants are used for each individual case.</t>
      <section anchor="terms" numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-terminology">Terminology</name>
        <t pn="section-1.1-1">
    The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
    "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>",
    "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
    "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are
    to be interpreted as described in BCP 14 <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/>
          <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/> when, and only when, they appear in all capitals,
    as shown here.
        </t>
        <t pn="section-1.1-2">The term "byte" is used in its now-customary sense as a synonym for
        "octet".  Where bit arithmetic is explained, this document uses
        familiar notation from the programming language C <xref target="C" format="default" sectionFormat="of" derivedContent="C"/> (including C++14's 0bnnn binary literals <xref target="CPlusPlus" format="default" sectionFormat="of" derivedContent="CPlusPlus"/>) with the exception of the
        operator "**", which stands for exponentiation.</t>
        <t pn="section-1.1-3">The term "array" is used in a general sense in this document unless
        further specified.  The term "classical CBOR array" describes an array
        represented with CBOR major type 4.  A "homogeneous array" is an array
        of elements that are all the same type (the term is neutral as to
        whether that is a representation type or an application data model
        type).</t>
        <t pn="section-1.1-4">The terms "big endian" and "little endian" are used to indicate a
        most significant byte first (MSB first) representation of integers and
        a least significant byte first (LSB first) representation,
        respectively.</t>
      </section>
    </section>
    <section anchor="typedarrays" numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-typed-arrays">Typed Arrays</name>
      <t pn="section-2-1">Typed arrays are homogeneous arrays of numbers, all of which are
      encoded in a single form of binary representation.  The concatenation of
      these representations is encoded as a single CBOR byte string (major
      type 2), enclosed by a single tag indicating the type and encoding of
      all the numbers represented in the byte string.</t>
      <section anchor="dataTypes" numbered="true" toc="include" removeInRFC="false" pn="section-2.1">
        <name slugifiedName="name-types-of-numbers">Types of Numbers</name>
        <t pn="section-2.1-1">Three classes of numbers are of interest: unsigned integers (uint),
        signed integers (two's complement, sint), and IEEE 754 binary floating
        point numbers (which are always signed).  For each of these classes,
        there are multiple representation lengths in active use:</t>
        <table anchor="lengths" align="center" pn="table-1">
          <name slugifiedName="name-length-values">Length Values</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Length ll</th>
              <th align="left" colspan="1" rowspan="1">uint</th>
              <th align="left" colspan="1" rowspan="1">sint</th>
              <th align="left" colspan="1" rowspan="1">float</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">0</td>
              <td align="left" colspan="1" rowspan="1">uint8</td>
              <td align="left" colspan="1" rowspan="1">sint8</td>
              <td align="left" colspan="1" rowspan="1">binary16</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">1</td>
              <td align="left" colspan="1" rowspan="1">uint16</td>
              <td align="left" colspan="1" rowspan="1">sint16</td>
              <td align="left" colspan="1" rowspan="1">binary32</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">2</td>
              <td align="left" colspan="1" rowspan="1">uint32</td>
              <td align="left" colspan="1" rowspan="1">sint32</td>
              <td align="left" colspan="1" rowspan="1">binary64</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">3</td>
              <td align="left" colspan="1" rowspan="1">uint64</td>
              <td align="left" colspan="1" rowspan="1">sint64</td>
              <td align="left" colspan="1" rowspan="1">binary128</td>
            </tr>
          </tbody>
        </table>
        <t pn="section-2.1-3">Here, sintN stands for a signed integer of exactly N bits (for
        instance, sint16), and uintN stands for an unsigned integer of exactly
        N bits (for instance, uint32).  The name binaryN stands for the number
        form of the same name defined in IEEE 754 <xref target="IEEE754" format="default" sectionFormat="of" derivedContent="IEEE754"/>.</t>
        <t pn="section-2.1-4">Since one objective of these tags is to be able to directly ship the
 ArrayBuffers underlying the Typed Arrays without re-encoding them, and these
 may be either in big-endian (network byte order) or in little-endian form, we
 need to define tags for both variants.</t>
        <t pn="section-2.1-5">In total, this leads to 24 variants.  In the tag, we need to
        express the choice between integer and floating point, the signedness
        (for integers), the endianness, and one of the four length values.</t>
        <t pn="section-2.1-6">In order to simplify implementation, a range of tags is being
        allocated that allows retrieving all this information from the bits of
        the tag: tag values from 64 to 87.
        </t>
        <t pn="section-2.1-7">The value is split up into 5 bit fields: 0b010, f, s, e, and ll as
        detailed in <xref target="fields" format="default" sectionFormat="of" derivedContent="Table 2"/>.</t>
        <table anchor="fields" align="center" pn="table-2">
          <name slugifiedName="name-bit-fields-in-the-low-8-bit">Bit Fields in the Low 8 Bits of the Tag</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Field</th>
              <th align="left" colspan="1" rowspan="1">Use</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">0b010</td>
              <td align="left" colspan="1" rowspan="1">the constant bits 0, 1, 0</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">f</td>
              <td align="left" colspan="1" rowspan="1">0 for integer, 1 for float</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">s</td>
              <td align="left" colspan="1" rowspan="1">0 for float or unsigned integer, 1 for signed integer</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">e</td>
              <td align="left" colspan="1" rowspan="1">0 for big endian, 1 for little endian</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">ll</td>
              <td align="left" colspan="1" rowspan="1">A number for the length (<xref target="lengths" format="default" sectionFormat="of" derivedContent="Table 1"/>).</td>
            </tr>
          </tbody>
        </table>
        <t pn="section-2.1-9">The number of bytes in each array element can then be calculated by
        <tt>2**(f + ll)</tt> (or <tt>1 &lt;&lt; (f + ll)</tt> in a typical
        programming language).  (Notice that 0f and ll are the two least
        significant bits, respectively, of each 4-bit nibble in the byte.)</t>
        <t pn="section-2.1-10">In the CBOR representation, the total number of elements in the
        array is not expressed explicitly but is implied from the length of
        the byte string and the length of each representation.  It can be
        computed from the length, in bytes, of the byte string comprising the
        representation of the array by inverting the previous formula:
        <tt>bytelength &gt;&gt; (f + ll)</tt>.</t>
        <t pn="section-2.1-11">For the uint8/sint8 values, the endianness is redundant.  Only the
        tag for the big-endian variant is used and assigned as such.  The tag
        that would signify the little-endian variant of sint8 <bcp14>MUST NOT</bcp14> be used; its tag number is marked as reserved.  As a
        special case, the tag that would signify the little-endian variant of
        uint8 is instead assigned to signify that the numbers in the array are
        using clamped conversion from integers, as described in more detail in
        <eref target="http://www.ecma-international.org/ecma-262/6.0/#sec-touint8clamp" brackets="none">Section 7.1.11</eref>
        of the ES10 JavaScript specification (<tt>ToUint8Clamp</tt>) <xref target="ECMA-ES10" format="default" sectionFormat="of" derivedContent="ECMA-ES10"/>; the assumption here is that a
        program-internal representation of this array after decoding would be
        marked this way for further processing providing "roundtripping" of
        JavaScript-typed arrays through CBOR.</t>
        <t pn="section-2.1-12">IEEE 754 binary floating numbers are always signed.  Therefore, for
        the float variants (<tt>f</tt> == 1), there is no need to distinguish
        between signed and unsigned variants; the <tt>s</tt> bit is always
        zero.  The tag numbers where <tt>s</tt> would be one (which would have
        tag values 88 to 95) remain free to use by other specifications.</t>
      </section>
    </section>
    <section anchor="additional-array-tags" numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-additional-array-tags">Additional Array Tags</name>
      <t pn="section-3-1">This specification defines three additional array tags.  The
      Multi-dimensional Array tags can be combined with classical CBOR arrays
      as well as with Typed Arrays in order to build multi-dimensional arrays
      with constant numbers of elements in the sub-arrays.  The Homogeneous
      Array tag can be used as a signal by an application to identify a
      classical CBOR array as a homogeneous array, even when a Typed Array
      does not apply.</t>
      <section anchor="multi-dimensional-array" numbered="true" toc="include" removeInRFC="false" pn="section-3.1">
        <name slugifiedName="name-multi-dimensional-array">Multi-dimensional Array</name>
        <t pn="section-3.1-1">A multi-dimensional array is represented as a tagged array that
        contains two (one-dimensional) arrays.  The first array defines the
        dimensions of the multi-dimensional array (in the sequence of outer
        dimensions towards inner dimensions) while the second array represents
        the contents of the multi-dimensional array.  If the second array is
        itself tagged as a Typed Array, then the element type of the
        multi-dimensional array is known to be the same type as that of the
        Typed Array.</t>
        <t pn="section-3.1-2">Two tags are defined by this document: one for elements arranged in
        row-major order and another for column-major order <xref target="RowColMajor" format="default" sectionFormat="of" derivedContent="RowColMajor"/>.</t>
        <section anchor="row-major-order" numbered="true" toc="include" removeInRFC="false" pn="section-3.1.1">
          <name slugifiedName="name-row-major-order">Row-Major Order</name>
          <dl newline="false" spacing="normal" pn="section-3.1.1-1">
            <dt pn="section-3.1.1-1.1">Tag:</dt>
            <dd pn="section-3.1.1-1.2">
  40</dd>
            <dt pn="section-3.1.1-1.3">Data Item:</dt>
            <dd pn="section-3.1.1-1.4">
  Array (major type 4) of two arrays: one array (major type 4) of dimensions,
  which are unsigned integers distinct from zero; and one array (any one of a
  CBOR array of major type 4, a Typed Array, or a Homogeneous Array) of
  elements.</dd>
          </dl>
          <t pn="section-3.1.1-2">Data in the second array consists of consecutive values where the
          last dimension is considered contiguous (row-major order).</t>
          <t pn="section-3.1.1-3"><xref target="ex-multidim" format="default" sectionFormat="of" derivedContent="Figure 1"/> shows a declaration
          of a two-dimensional array in the C language, a representation of
          that in CBOR using both a multi-dimensional array tag and a typed
          array tag.</t>
          <figure anchor="ex-multidim" align="left" suppress-title="false" pn="figure-1">
            <name slugifiedName="name-multi-dimensional-array-in-">Multi-dimensional Array in C and CBOR</name>
            <sourcecode type="C" markers="false" pn="section-3.1.1-4.1">
uint16_t a[2][3] = {
  {2, 4, 8},   /* row 0 */
  {4, 16, 256},
};

&lt;Tag 40&gt; # multi-dimensional array tag
   82       # array(2)
     82      # array(2)
       02     # unsigned(2) 1st Dimension
       03     # unsigned(3) 2nd Dimension
     &lt;Tag 65&gt; # uint16 array
       4c     # byte string(12)
         0002 # unsigned(2)
         0004 # unsigned(4)
         0008 # unsigned(8)
         0004 # unsigned(4)
         0010 # unsigned(16)
         0100 # unsigned(256)
</sourcecode>
          </figure>
          <t pn="section-3.1.1-5"><xref target="ex-multidim1" format="default" sectionFormat="of" derivedContent="Figure 2"/> shows the same
          two-dimensional array using the multi-dimensional array tag in
          conjunction with a basic CBOR array (which, with the small numbers
          chosen for the example, happens to be shorter).</t>
          <figure anchor="ex-multidim1" align="left" suppress-title="false" pn="figure-2">
            <name slugifiedName="name-multi-dimensional-array-usi">Multi-dimensional Array Using Basic CBOR Array</name>
            <sourcecode type="CBOR" markers="false" pn="section-3.1.1-6.1">
&lt;Tag 40&gt; # multi-dimensional array tag
   82       # array(2)
     82      # array(2)
       02     # unsigned(2) 1st Dimension
       03     # unsigned(3) 2nd Dimension
     86     # array(6)
       02      # unsigned(2)
       04      # unsigned(4)
       08      # unsigned(8)
       04      # unsigned(4)
       10      # unsigned(16)
       19 0100 # unsigned(256)
</sourcecode>
          </figure>
        </section>
        <section anchor="column-major-order" numbered="true" toc="include" removeInRFC="false" pn="section-3.1.2">
          <name slugifiedName="name-column-major-order">Column-Major Order</name>
          <t pn="section-3.1.2-1">The multi-dimensional arrays specified in the previous
          sub-subsection are in "row major" order, which is the preferred
          order for the purposes of this specification.  An analogous
          representation that uses "column major" order arrays is provided in
          this subsection under the tag 1040, as illustrated in <xref target="ex-multidim2" format="default" sectionFormat="of" derivedContent="Figure 3"/>.</t>
          <dl newline="false" spacing="normal" pn="section-3.1.2-2">
            <dt pn="section-3.1.2-2.1">Tag:</dt>
            <dd pn="section-3.1.2-2.2">
  1040</dd>
            <dt pn="section-3.1.2-2.3">Data Item:</dt>
            <dd pn="section-3.1.2-2.4">
  The same as tag 40, except the data in the second array consists of
  consecutive values where the first dimension is considered contiguous
  (column-major order).</dd>
          </dl>
          <figure anchor="ex-multidim2" align="left" suppress-title="false" pn="figure-3">
            <name slugifiedName="name-multi-dimensional-array-usin">Multi-dimensional Array Using Basic CBOR Array, Column-Major Order</name>
            <sourcecode type="CBOR" markers="false" pn="section-3.1.2-3.1">
&lt;Tag 1040&gt; # multi-dimensional array tag, column-major order
   82       # array(2)
     82      # array(2)
       02     # unsigned(2) 1st Dimension
       03     # unsigned(3) 2nd Dimension
     86     # array(6)
       02      # unsigned(2)
       04      # unsigned(4)
       04      # unsigned(4)
       10      # unsigned(16)
       08      # unsigned(8)
       19 0100 # unsigned(256)
</sourcecode>
          </figure>
        </section>
      </section>
      <section anchor="homogeneous-array" numbered="true" toc="include" removeInRFC="false" pn="section-3.2">
        <name slugifiedName="name-homogeneous-array">Homogeneous Array</name>
        <dl newline="false" spacing="normal" pn="section-3.2-1">
          <dt pn="section-3.2-1.1">Tag:</dt>
          <dd pn="section-3.2-1.2">
  41</dd>
          <dt pn="section-3.2-1.3">Data Item:</dt>
          <dd pn="section-3.2-1.4">
  Array (major type 4)</dd>
        </dl>
        <t pn="section-3.2-2">This tag identifies the classical CBOR array (a one-dimensional
        array) tagged by it as a homogeneous array, that is, it has elements
        that are all of the same application model data type.  The element
        type of the array is therefore determined by the application model
        data type of the first array element.</t>
        <t pn="section-3.2-3">This can be used in application data models that apply specific
        semantics to homogeneous arrays.  Also, in certain cases,
        implementations in strongly typed languages may be able to create
        native homogeneous arrays of specific types instead of ordered lists
        while decoding.  Which CBOR data items constitute elements of the same
        application type is specific to the application.</t>
        <t pn="section-3.2-4"><xref target="ex-homogeneous" format="default" sectionFormat="of" derivedContent="Figure 4"/> shows an example
        for a homogeneous array of booleans in C++ <xref target="CPlusPlus" format="default" sectionFormat="of" derivedContent="CPlusPlus"/> and CBOR.</t>
        <figure anchor="ex-homogeneous" align="left" suppress-title="false" pn="figure-4">
          <name slugifiedName="name-homogeneous-array-in-c-and-">Homogeneous Array in C++ and CBOR</name>
          <sourcecode type="C++" markers="false" pn="section-3.2-5.1">
bool boolArray[2] = { true, false };

&lt;Tag 41&gt;  # Homogeneous Array Tag
   82           #array(2)
      F5        # true
      F4        # false
</sourcecode>
        </figure>
        <t pn="section-3.2-6"><xref target="ex-homogeneous1" format="default" sectionFormat="of" derivedContent="Figure 5"/> extends the
        example with a more complex structure.</t>
        <figure anchor="ex-homogeneous1" align="left" suppress-title="false" pn="figure-5">
          <name slugifiedName="name-homogeneous-array-in-c-and-c">Homogeneous Array in C++ and CBOR</name>
          <sourcecode type="C++" markers="false" pn="section-3.2-7.1">
typedef struct {
  bool active;
  int value;
} foo;
foo myArray[2] = { {true, 3}, {true, -4} };

&lt;Tag 41&gt;
    82  # array(2)
       82  #  array(2)
             F5  # true
             03  # 3
       82 # array(2)
             F5  # true
             23  # -4
</sourcecode>
        </figure>
      </section>
    </section>
    <section anchor="discussion" numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-discussion">Discussion</name>
      <t pn="section-4-1">Support for both little- and big-endian representation may seem out
      of character with CBOR, which is otherwise fully big endian.  This
      support is in line with the intended use of the typed arrays and the
      objective not to require conversion of each array element.</t>
      <t pn="section-4-2">This specification allocates a sizable chunk out of the single-byte
      tag space.  This use of code point space is justified by the wide use of
      typed arrays in data interchange.</t>
      <t pn="section-4-3">Providing a column-major order variant of the multi-dimensional array
      may seem superfluous to some and useful to others.  It is cheap to
      define the additional tag so that it is available when actually needed.
      Allocating it out of a different number space makes the preference for
      row-major evident.</t>
      <t pn="section-4-4">Applying a Homogeneous Array tag to a Typed Array would usually be
      redundant and is therefore not provided by the present
      specification.</t>
      <t pn="section-4-5"/>
    </section>
    <section anchor="cddl-typenames" numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-cddl-typenames">CDDL Typenames</name>
      <t pn="section-5-1">For use with CDDL <xref target="RFC8610" format="default" sectionFormat="of" derivedContent="RFC8610"/>, the
      typenames defined in <xref target="tag-cddl" format="default" sectionFormat="of" derivedContent="Figure 6"/> are
      recommended:</t>
      <figure anchor="tag-cddl" align="left" suppress-title="false" pn="figure-6">
        <name slugifiedName="name-recommended-typenames-for-c">Recommended Typenames for CDDL</name>
        <sourcecode type="CDDL" markers="false" pn="section-5-2.1">
ta-uint8 = #6.64(bstr)
ta-uint16be = #6.65(bstr)
ta-uint32be = #6.66(bstr)
ta-uint64be = #6.67(bstr)
ta-uint8-clamped = #6.68(bstr)
ta-uint16le = #6.69(bstr)
ta-uint32le = #6.70(bstr)
ta-uint64le = #6.71(bstr)
ta-sint8 = #6.72(bstr)
ta-sint16be = #6.73(bstr)
ta-sint32be = #6.74(bstr)
ta-sint64be = #6.75(bstr)
; reserved: #6.76(bstr)
ta-sint16le = #6.77(bstr)
ta-sint32le = #6.78(bstr)
ta-sint64le = #6.79(bstr)
ta-float16be = #6.80(bstr)
ta-float32be = #6.81(bstr)
ta-float64be = #6.82(bstr)
ta-float128be = #6.83(bstr)
ta-float16le = #6.84(bstr)
ta-float32le = #6.85(bstr)
ta-float64le = #6.86(bstr)
ta-float128le = #6.87(bstr)
homogeneous&lt;array&gt; = #6.41(array)
multi-dim&lt;dim, array&gt; = #6.40([dim, array])
multi-dim-column-major&lt;dim, array&gt; = #6.1040([dim, array])
</sourcecode>
      </figure>
      <t pn="section-5-3"/>
    </section>
    <section anchor="iana-considerations" numbered="true" toc="include" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t pn="section-6-1">IANA has allocated the tags in <xref target="tab-tag-values" format="default" sectionFormat="of" derivedContent="Table 3"/> using this document as the specification reference.
      (The reserved value is for a future revision of typed array tags.)</t>
      <t pn="section-6-2">The allocations were assigned from the "specification required" space
      (24..255) with the exception of 1040, which was assigned from the "first come
      first served" space (256..).</t>
      <table anchor="tab-tag-values" align="center" pn="table-3">
        <name slugifiedName="name-values-for-tags">Values for Tags</name>
        <thead>
          <tr>
            <th align="right" colspan="1" rowspan="1">Tag</th>
            <th align="left" colspan="1" rowspan="1">Data Item</th>
            <th align="left" colspan="1" rowspan="1">Semantics</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="right" colspan="1" rowspan="1">40</td>
            <td align="left" colspan="1" rowspan="1">array of two arrays*</td>
            <td align="left" colspan="1" rowspan="1">Multi-dimensional Array, row-major order</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">41</td>
            <td align="left" colspan="1" rowspan="1">array</td>
            <td align="left" colspan="1" rowspan="1">Homogeneous Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">64</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">uint8 Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">65</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">uint16, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">66</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">uint32, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">67</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">uint64, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">68</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">uint8 Typed Array, clamped arithmetic</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">69</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">uint16, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">70</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">uint32, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">71</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">uint64, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">72</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">sint8 Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">73</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">sint16, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">74</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">sint32, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">75</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">sint64, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">76</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">(reserved)</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">77</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">sint16, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">78</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">sint32, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">79</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">sint64, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">80</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">IEEE 754 binary16, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">81</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">IEEE 754 binary32, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">82</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">IEEE 754 binary64, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">83</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">IEEE 754 binary128, big endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">84</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">IEEE 754 binary16, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">85</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">IEEE 754 binary32, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">86</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">IEEE 754 binary64, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">87</td>
            <td align="left" colspan="1" rowspan="1">byte string</td>
            <td align="left" colspan="1" rowspan="1">IEEE 754 binary128, little endian, Typed Array</td>
          </tr>
          <tr>
            <td align="right" colspan="1" rowspan="1">1040</td>
            <td align="left" colspan="1" rowspan="1">array of two arrays*</td>
            <td align="left" colspan="1" rowspan="1">Multi-dimensional Array, column-major order</td>
          </tr>
        </tbody>
      </table>
      <t pn="section-6-4">*40 or 1040 data item: The second element of the outer array in the data
item is a native CBOR array (major type 4) or Typed Array (one of tag
64..87)</t>
    </section>
    <section anchor="security-considerations" numbered="true" toc="include" removeInRFC="false" pn="section-7">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t pn="section-7-1">The security considerations of <xref target="RFC7049" format="default" sectionFormat="of" derivedContent="RFC7049"/> apply;
      special attention is drawn to the second paragraph of <xref target="RFC7049" sectionFormat="of" section="8" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7049#section-8" derivedContent="RFC7049"/>.</t>
      <t pn="section-7-2">The tag for homogeneous arrays makes a promise about its tagged data
      item, which a maliciously constructed CBOR input can then choose to
      ignore.  As always, the decoder therefore has to ensure that it is not
      driven into an undefined state by array elements that do not fulfill the
      promise, and that it does continue to fulfill its API contract in this
      case as well.</t>
      <t pn="section-7-3">As with all formats that are used for data interchange, an attacker
      may have control over the shape of the data delivered as input to the
      application, which therefore needs to validate that shape before it
      makes it the basis of its further processing.  One unique aspect that
      typed arrays add to this is that an attacker might substitute a
      Uint8ClampedArray for where the application expects a Uint8Array, or
      vice versa, potentially leading to very different (and unexpected)
      processing semantics of the in-memory data structures constructed.
      Applications that could be affected by this will therefore need to be
      careful about making this distinction in their input validation.</t>
      <t pn="section-7-4"/>
    </section>
  </middle>
  <back>
    <references pn="section-8">
      <name slugifiedName="name-references">References</name>
      <references pn="section-8.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="C" quoteTitle="true" derivedAnchor="C">
          <front>
            <title>Information technology - Programming languages - C</title>
            <seriesInfo name="ISO/IEC" value="9899:2018, Fourth Edition"/>
            <author>
              <organization showOnFrontPage="true">International Organization for Standardization</organization>
            </author>
            <date month="June" year="2018"/>
          </front>
        </reference>
        <reference anchor="CPlusPlus" quoteTitle="true" derivedAnchor="CPlusPlus">
          <front>
            <title>Programming languages - C++</title>
            <seriesInfo name="ISO/IEC" value="14882:2017, Fifth Edition"/>
            <author>
              <organization showOnFrontPage="true">International Organization for Standardization</organization>
            </author>
            <date month="December" year="2017"/>
          </front>
        </reference>
        <reference anchor="ECMA-ES10" target="https://www.ecma-international.org/ecma-262/10.0/index.html" quoteTitle="true" derivedAnchor="ECMA-ES10">
          <front>
            <title>ECMAScript 2019 Language Specification</title>
            <author>
              <organization showOnFrontPage="true">ECMA International</organization>
            </author>
            <date year="2019" month="June"/>
          </front>
          <refcontent>Standard ECMA-262 10th Edition</refcontent>
        </reference>
        <reference anchor="IEEE754" target="https://ieeexplore.ieee.org/document/8766229" quoteTitle="true" derivedAnchor="IEEE754">
          <front>
            <title>IEEE Standard for Floating-Point Arithmetic</title>
            <author>
              <organization showOnFrontPage="true">IEEE</organization>
            </author>
            <date/>
          </front>
          <seriesInfo name="IEEE" value="754-2019"/>
          <seriesInfo name="DOI" value="10.1109/IEEESTD.2019.8766229"/>
        </reference>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" fullname="S. Bradner">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1997" month="March"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC7049" target="https://www.rfc-editor.org/info/rfc7049" quoteTitle="true" derivedAnchor="RFC7049">
          <front>
            <title>Concise Binary Object Representation (CBOR)</title>
            <author initials="C." surname="Bormann" fullname="C. Bormann">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="P." surname="Hoffman" fullname="P. Hoffman">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2013" month="October"/>
            <abstract>
              <t>The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation.  These design goals make it different from earlier binary serializations such as ASN.1 and MessagePack.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7049"/>
          <seriesInfo name="DOI" value="10.17487/RFC7049"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author initials="B." surname="Leiba" fullname="B. Leiba">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="May"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC8610" target="https://www.rfc-editor.org/info/rfc8610" quoteTitle="true" derivedAnchor="RFC8610">
          <front>
            <title>Concise Data Definition Language (CDDL): A Notational Convention to Express Concise Binary Object Representation (CBOR) and JSON Data Structures</title>
            <author initials="H." surname="Birkholz" fullname="H. Birkholz">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Vigano" fullname="C. Vigano">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Bormann" fullname="C. Bormann">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2019" month="June"/>
            <abstract>
              <t>This document proposes a notational convention to express Concise Binary Object Representation (CBOR) data structures (RFC 7049).  Its main goal is to provide an easy and unambiguous way to express structures for protocol messages and data formats that use CBOR or JSON.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8610"/>
          <seriesInfo name="DOI" value="10.17487/RFC8610"/>
        </reference>
      </references>
      <references pn="section-8.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="ArrayBuffer" target="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays" quoteTitle="true" derivedAnchor="ArrayBuffer">
          <front>
            <title>JavaScript typed arrays</title>
            <author>
              <organization showOnFrontPage="true">Mozilla Developer Network</organization>
            </author>
            <date month="June" year="2010"/>
          </front>
        </reference>
        <reference anchor="RowColMajor" target="https://en.wikipedia.org/w/index.php?title=Row-_and_column-major_order&amp;oldid=917905325" quoteTitle="true" derivedAnchor="RowColMajor">
          <front>
            <title>Row- and column-major order</title>
            <author>
              <organization showOnFrontPage="true">Wikipedia</organization>
            </author>
            <date year="2019" month="September"/>
          </front>
        </reference>
        <reference anchor="TypedArray" target="https://web.archive.org/web/20110207024413/http://www.khronos.org/registry/typedarray/specs/latest/" quoteTitle="true" derivedAnchor="TypedArray">
          <front>
            <title>Typed Array Specification</title>
            <author initials="V." surname="Vukicevic" fullname="Vladimir Vukicevic">
              <organization showOnFrontPage="true">Mozilla Corporation</organization>
            </author>
            <author initials="K." surname="Russell" fullname="Kenneth Russell">
              <organization showOnFrontPage="true">Google, Inc.</organization>
            </author>
            <date year="2011" month="February"/>
          </front>
        </reference>
      </references>
    </references>
    <section numbered="false" anchor="acknowledgements" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-acknowledgements">Acknowledgements</name>
      <t pn="section-appendix.a-1"><contact fullname="Jim Schaad"/> provided helpful comments and reminded us that
      column-major order still is in use.  <contact fullname="Jeffrey Yaskin"/> helped improve the
      definition of homogeneous arrays.  IANA helped correct an error in a
      previous draft version.  <contact fullname="Francesca Palombini"/> acted as Shepherd, and
      <contact fullname="Alexey Melnikov"/> as responsible Area Director.
      <contact fullname="Elwyn Davies"/> as Gen-ART
      reviewer and IESG members <contact fullname="Martin Vigoureux"/>,
      <contact fullname="Adam Roach"/>, <contact fullname="Roman       Danyliw"/>,
      and <contact fullname="Benjamin Kaduk"/> helped in finding further improvements to the text;
      thanks also to the other reviewers.</t>
    </section>
    <section numbered="false" anchor="contributors" toc="include" removeInRFC="false" pn="section-appendix.b">
      <name slugifiedName="name-contributors">Contributors</name>
      <t pn="section-appendix.b-1">The initial draft version of this
      specification was written by <contact fullname="Johnathan Roatch"/> &lt;roatch@gmail.com&gt;.
      Many thanks for getting this ball rolling.</t>
      <t pn="section-appendix.b-2"><contact fullname="Glenn Engel"/> suggested the tags for multi-dimensional arrays and
      homogeneous arrays.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.c">
      <name slugifiedName="name-authors-address">Author's Address</name>
      <author initials="C." surname="Bormann" fullname="Carsten Bormann" role="editor">
        <organization showOnFrontPage="true">Universität Bremen TZI</organization>
        <address>
          <postal>
            <street>Postfach 330440</street>
            <city>Bremen</city>
            <code>D-28359</code>
            <country>Germany</country>
          </postal>
          <phone>+49-421-218-63921</phone>
          <email>cabo@tzi.org</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
