Skip to content

Commit c22a330

Browse files
committed
fix buffer types
1 parent 775973e commit c22a330

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SharedBuffer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ class SharedBuffer {
151151

152152
inline bool writable() const { return writableBytes() > 0; }
153153

154-
ASIO::const_buffers_1 const_asio_buffer() const {
155-
return ASIO::const_buffers_1(ptr_ + readIdx_, readableBytes());
154+
ASIO::const_buffer const_asio_buffer() const {
155+
return ASIO::const_buffer(ptr_ + readIdx_, readableBytes());
156156
}
157157

158-
ASIO::mutable_buffers_1 asio_buffer() {
158+
ASIO::mutable_buffer asio_buffer() {
159159
assert(data_);
160160
return ASIO::buffer(ptr_ + writeIdx_, writableBytes());
161161
}

0 commit comments

Comments
 (0)