[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] TypedArray specification and DataView
- To: "alan@mechnicality.com" <alan@mechnicality.com>
- Subject: Re: [Public WebGL] TypedArray specification and DataView
- From: Kenneth Russell <kbr@google.com>
- Date: Wed, 13 Oct 2010 14:19:30 -0700
- Cc: public webgl <public_webgl@khronos.org>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1287004773; bh=bG2y0qNSF8bGmCFL/rFAYte5rvI=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=cU+HgBoExutjio0kuMsjS70y/wH84kOwKL40GT2wB21uhjpyP4NW+StrNO9cR4YFQ r4eiGc0e3Ygq+4OwQX0yw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=NenFqWDksbEa0hS6VUvCg4eP0y1Vz/Rj0b1Q4Iw0mP8=; b=D5cPtd9iWAbKbgGMuRhQcCX6Kf9kT58GXC/OLhbDGV44yEBvlPH1XSpXLgXXJ717t8 FxGmWhWB2ir5c9uSfWrw==
- Domainkey-signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=SVVwj6a7LoeVNr3C4q0jYRFhVcAtu6kloELztG5tvPWy9QMZrQT/k2iU0XEUfjTKUb 5ouNscy/W2Po0/v6xbWw==
- In-reply-to: <4CA52029.2010008@mechnicality.com>
- References: <4CA52029.2010008@mechnicality.com>
- Sender: owner-public_webgl@khronos.org
On Thu, Sep 30, 2010 at 4:41 PM, alan@mechnicality.com
<alan@mechnicality.com> wrote:
> Hi
>
> There is an inference in the DataView part of the specification that the
> optional constructor elements byteOffset and byteLength are used to provide
> a 'window' on the underlying ArrayBuffer (or that's how I'm reading it.)
>
> My assumptions are:
>
> if byteLength and byteOffset are not specifed in the constructor then the
> 'window' is a view on the entire array buffer - ie the 'default' byteOffset
> = 0 and byteLength = the number of bytes in the array buffer.
>
> When the constructor byteOffset is != 0 then any setter/getter byte offset
> is added to the constructor byteOffset to calculate the relative position in
> the underlying array buffer.
>
> It is possible for the constructor to be invoked with illegal argument
> values for length and offset - will implementations detect this error or
> is/(will) the behavior (be) undefined?
>
> Sorry if I'm being a bit pedantic here, but the spec could probably benefit
> from a couple of extra lines just stating the above.
I've documented the constructor and getters/setters of DataView
similarly to those of the other Typed Array views. Does this address
your concerns?
-Ken
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: