| Index: net/quic/core/quic_iovector.h
|
| diff --git a/net/quic/core/quic_iovector.h b/net/quic/core/quic_iovector.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ee1fe60741146faa0d89abf61656c4f3a00c3405
|
| --- /dev/null
|
| +++ b/net/quic/core/quic_iovector.h
|
| @@ -0,0 +1,28 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_QUIC_QUIC_IOVECTOR_H_
|
| +#define NET_QUIC_QUIC_IOVECTOR_H_
|
| +
|
| +#include <stddef.h>
|
| +
|
| +#include "net/base/iovec.h"
|
| +#include "net/base/net_export.h"
|
| +
|
| +namespace net {
|
| +
|
| +// Convenience wrapper to wrap an iovec array and the total length, which must
|
| +// be less than or equal to the actual total length of the iovecs.
|
| +struct NET_EXPORT_PRIVATE QuicIOVector {
|
| + QuicIOVector(const struct iovec* iov, int iov_count, size_t total_length)
|
| + : iov(iov), iov_count(iov_count), total_length(total_length) {}
|
| +
|
| + const struct iovec* iov;
|
| + const int iov_count;
|
| + const size_t total_length;
|
| +};
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_QUIC_QUIC_IOVECTOR_H_
|
|
|