1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 function hexify(value, length) {
7 var hex = value.toString(16);
8 while (hex.length < length)
13 function dumpArray(bytes) {
15 for (var i = 0; i < bytes.length; ++i) {
16 dumped += hexify(bytes[i], 2);
32 exports.dumpArray = dumpArray;