| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef BASE_WIN_WINRT_STORAGE_UTIL_H_ |
| #define BASE_WIN_WINRT_STORAGE_UTIL_H_ |
| #include <windows.storage.streams.h> |
| #include "base/base_export.h" |
| // Gets an array of bytes in the |buffer|, |out| represents a array of |
| // bytes used by byte stream read and write. |
| GetPointerToBufferData(ABI::Windows::Storage::Streams::IBuffer* buffer, |
| // Creates stream |buffer| from |data| that represents a array of bytes |
| // and the |length| of bytes. |
| BASE_EXPORT HRESULT CreateIBufferFromData( |
| Microsoft::WRL::ComPtr<ABI::Windows::Storage::Streams::IBuffer>* buffer); |
| #endif // BASE_WIN_WINRT_STORAGE_UTIL_H_ |