xref: /aosp_15_r20/external/libchrome/mojo/public/mojom/base/read_only_buffer.mojom (revision 635a864187cb8b6c713ff48b7e790a6b21769273)
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
5module mojo_base.mojom;
6
7// This struct is typemapped to base::span<const uint8_t>.
8// Note: At the receiving end, this base::span<const uint8_t> refers to a memory
9// range within the received message.
10struct ReadOnlyBuffer {
11  array<uint8> buffer;
12};
13