#include "mojo/core/ipcz_driver/transmissible_platform_handle.h"
#include <utility>
#include "base/check.h"
#include "base/notreached.h"
#include "build/build_config.h"
namespace mojo::core::ipcz_driver {
TransmissiblePlatformHandle::TransmissiblePlatformHandle() = default;
TransmissiblePlatformHandle::TransmissiblePlatformHandle(PlatformHandle handle)
: … { … }
TransmissiblePlatformHandle::~TransmissiblePlatformHandle() = default;
void TransmissiblePlatformHandle::Close() { … }
bool TransmissiblePlatformHandle::IsSerializable() const { … }
bool TransmissiblePlatformHandle::GetSerializedDimensions(
Transport& transmitter,
size_t& num_bytes,
size_t& num_handles) { … }
bool TransmissiblePlatformHandle::Serialize(
Transport& transmitter,
base::span<uint8_t> data,
base::span<PlatformHandle> handles) { … }
scoped_refptr<TransmissiblePlatformHandle>
TransmissiblePlatformHandle::Deserialize(base::span<const uint8_t> data,
base::span<PlatformHandle> handles) { … }
}