#ifndef MOJO_PUBLIC_CPP_SYSTEM_DATA_PIPE_H_
#define MOJO_PUBLIC_CPP_SYSTEM_DATA_PIPE_H_
#include <stddef.h>
#include <stdint.h>
#include "base/containers/span.h"
#include "base/numerics/safe_conversions.h"
#include "mojo/public/c/system/data_pipe.h"
#include "mojo/public/c/system/types.h"
#include "mojo/public/cpp/system/handle.h"
namespace mojo {
class DataPipeProducerHandle : public Handle { … };
static_assert …;
ScopedDataPipeProducerHandle;
static_assert …;
class DataPipeConsumerHandle : public Handle { … };
static_assert …;
ScopedDataPipeConsumerHandle;
static_assert …;
inline MojoResult CreateDataPipe(
const MojoCreateDataPipeOptions* options,
ScopedDataPipeProducerHandle& data_pipe_producer,
ScopedDataPipeConsumerHandle& data_pipe_consumer) { … }
inline MojoResult CreateDataPipe(
uint32_t capacity_num_bytes,
ScopedDataPipeProducerHandle& data_pipe_producer,
ScopedDataPipeConsumerHandle& data_pipe_consumer) { … }
}
#endif