1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-08-01 01:44:22 +03:00

Change Buf -> BufPtr and RawBuf -> Buf

Summary:
Previously,
* `RawBuf` was a typealias for `std::unique_ptr<folly::IOBuf>`
* `Buf` was a typealias for `folly::IOBuf`

In this diff,
* `Buf` is a typealias for `folly::IOBuf`
* `BufPtr` is a typealias for `std::unique_ptr<folly::IOBuf>`

Reviewed By: hanidamlaj

Differential Revision: D73206576

fbshipit-source-id: 454bf6ccfce3d6571e5e931889263ed98cc24af3
This commit is contained in:
Aman Sharma
2025-04-21 20:14:02 -07:00
committed by Facebook GitHub Bot
parent 153668148e
commit 41667ff7c5
108 changed files with 533 additions and 515 deletions

View File

@ -1447,7 +1447,7 @@ void writeCloseCommon(
increaseNextPacketNum(connection, pnSpace);
// best effort writing to the socket, ignore any errors.
Buf packetBufPtr = packetBuf.clone();
BufPtr packetBufPtr = packetBuf.clone();
iovec vec[kNumIovecBufferChains];
size_t iovec_len = fillIovec(packetBufPtr, vec);
auto ret = sock.write(connection.peerAddress, vec, iovec_len);