<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Typed Arrays have no public facing API"
   href="https://bugs.webkit.org/show_bug.cgi?id=120112#c34">Comment # 34</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Typed Arrays have no public facing API"
   href="https://bugs.webkit.org/show_bug.cgi?id=120112">bug 120112</a>
              from <span class="vcard"><a class="email" href="mailto:ggaren&#64;apple.com" title="Geoffrey Garen &lt;ggaren&#64;apple.com&gt;"> <span class="fn">Geoffrey Garen</span></a>
</span></b>
        <pre><span class="quote">&gt; Create a TypedArray:
&gt; JSObjectRef JSObjectMakeTypedArray(JSContextRef ctx, JSTypedArrayType
&gt; arrayType, size_t numElements);</span >

I would say &quot;length&quot; instead of numElements. We don't like to abbreviate in API names, and length is the name in JavaScript.

<span class="quote">&gt; Query byte length and element count:
&gt; size_t JSObjectGetTypedArrayByteLength(JSContextRef ctx, JSObjectRef object);
&gt; size_t JSObjectGetTypedArrayNumElements(JSContextRef ctx, JSObjectRef
&gt; object);</span >

Once again, length.

<span class="quote">&gt; Obtain a pointer to the array's data (retains the pointer):
&gt; void * JSObjectGetTypedArrayDataPtr(JSContextRef ctx, JSObjectRef object);
&gt; or
&gt; void * JSObjectGetTypedArrayDataPtr(JSContextRef ctx, JSObjectRef object,
&gt; size_t &amp;byteLength);</span >

We say &quot;Create&quot; or &quot;Copy&quot; when we make something that needs a release. Here I would use &quot;Copy&quot; I guess.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>