Explorar o código

Add Channel::setReadBuf for (#415)

ithewei %!s(int64=2) %!d(string=hai) anos
pai
achega
9308d5eded
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      evpp/Channel.h

+ 4 - 0
evpp/Channel.h

@@ -155,6 +155,10 @@ public:
     }
 
     // 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);