OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 #ifndef CryptoUtilities_h |
| 6 #define CryptoUtilities_h |
| 7 |
| 8 #include "core/dom/DOMArrayPiece.h" |
| 9 #include "public/platform/WebVector.h" |
| 10 |
| 11 namespace blink { |
| 12 inline WebVector<uint8_t> CopyBytes(const DOMArrayPiece& source) { |
| 13 return WebVector<uint8_t>(static_cast<const uint8_t*>(source.Data()), |
| 14 source.ByteLength()); |
| 15 } |
| 16 } // namespace blink |
| 17 |
| 18 #endif // CryptoUtilities_h |
OLD | NEW |