Skip to content

Commit

Permalink
Add Channel::setReadBuf for (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
ithewei committed Oct 23, 2023
1 parent cb62e73 commit 9308d5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions evpp/Channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ class Channel {
}

// iobuf setting
void setReadBuf(void* buf, size_t len) {
if (io_ == NULL) return;
hio_set_readbuf(io_, buf, len);
}
void setMaxReadBufsize(uint32_t size) {
if (io_ == NULL) return;
hio_set_max_read_bufsize(io_, size);
Expand Down

0 comments on commit 9308d5e

Please sign in to comment.