e21d7a1010
* chore: move as_byte_span() to new shell/common/mac_util.h this way it can be used by multiple mm files Co-authored-by: Charles Kerr <charles@charleskerr.com> * fix: -Wunsafe-buffer-usage warnings in UNNotificationResponseToNSDictionary Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: use base::HexEncode() instead of rolling our own Co-authored-by: Charles Kerr <charles@charleskerr.com> * fixup! chore: move as_byte_span() to new shell/common/mac_util.h Co-authored-by: Charles Kerr <charles@charleskerr.com> * fixup! chore: move as_byte_span() to new shell/common/mac_util.h fix: move mac_util to the right place in filenames.gni Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
18 lines
414 B
Objective-C
18 lines
414 B
Objective-C
// Copyright (c) 2024 Microsoft, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ELECTRON_SHELL_MAC_UTIL_H_
|
|
#define ELECTRON_SHELL_MAC_UTIL_H_
|
|
|
|
#include "base/containers/span.h"
|
|
|
|
@class NSData;
|
|
|
|
namespace electron::util {
|
|
|
|
base::span<const uint8_t> as_byte_span(NSData* data);
|
|
|
|
} // namespace electron::util
|
|
|
|
#endif // ELECTRON_SHELL_MAC_UTIL_H_
|