зеркало из https://github.com/mozilla/gecko-dev.git
10 строки
277 B
JavaScript
10 строки
277 B
JavaScript
|
/* Any copyright is dedicated to the Public Domain.
|
||
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||
|
|
||
|
/**
|
||
|
* Strips spaces, and returns a byte array.
|
||
|
*/
|
||
|
function formatHexAndCreateByteArray(hexStr) {
|
||
|
return SEUtils.hexStringToByteArray(hexStr.replace(/\s+/g, ""));
|
||
|
}
|