[Bug 23332] Support Binary Keys

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23332

Joshua Bell <jsbell@google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonas@sicking.cc

--- Comment #2 from Joshua Bell <jsbell@google.com> ---
Initial thoughts:

* APIs that accept keys accept any kind of ArrayBufferView
* Raw ArrayBuffer is not accepted as an input type
* The input type is not retained; i.e. it doesn't matter if you pass in a
Uint8Array, a Float64Array or a DataView, it's just the backing bytes (as seen
through the view's offset/byteLength) that form the key
* APIs that emit keys return a new Uint8Array backed by a new ArrayBuffer
* Binary keys sort between strings and arrays
* Binary keys are compared like strings/arrays; bytewise comparison, otherwise
longer is greater

Thoughts?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 23 September 2013 21:45:28 UTC