Skip to content

Instantly share code, notes, and snippets.

Luke Wagner lukewagner

Block or report user

Report or block lukewagner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lukewagner / ArrayBuffer.transfer
Created Nov 13, 2014
ArrayBuffer.transfer strawman
View ArrayBuffer.transfer
The proposal is to add a static ArrayBuffer.transfer(oldBuffer [, newByteLength]). This
method returns a new ArrayBuffer whose contents are taken from oldBuffer.[[ArrayBufferData]]
and then either truncated or zero-extended to be newByteLength. This operation leaves
oldBuffer in a detached state. If newByteLength is undefined, oldBuffer.byteLength is
var buf1 = new ArrayBuffer(40);
You can’t perform that action at this time.