// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IPCZ_SRC_IPCZ_FRAGMENT_DESCRIPTOR_H_ #define IPCZ_SRC_IPCZ_FRAGMENT_DESCRIPTOR_H_ #include <cstdint> #include <tuple> #include "ipcz/buffer_id.h" #include "ipcz/ipcz.h" namespace ipcz { // Represents a span of memory within the shared memory regions owned by a // BufferPool. A FragmentDescriptor can be resolved to a concrete Fragment // by passing it to GetFragment() on an appropriate BufferPool object. // // NOTE: This is a wire structure which must remain stable over time. struct IPCZ_ALIGN(8) FragmentDescriptor { … }; static_assert …; } // namespace ipcz #endif // IPCZ_SRC_IPCZ_FRAGMENT_DESCRIPTOR_H_