Start a write operation.
| 93 | |
| 94 | // Start a write operation. |
| 95 | void |
| 96 | write(TSVConn vconn, TSCont contp) |
| 97 | { |
| 98 | TSReleaseAssert(this->vio == nullptr); |
| 99 | |
| 100 | this->iobuf = TSIOBufferCreate(); |
| 101 | this->reader = TSIOBufferReaderAlloc(this->iobuf); |
| 102 | this->vio = TSVConnWrite(vconn, contp, this->reader, INT64_MAX); |
| 103 | } |
| 104 | |
| 105 | // Transfer data from this IO object to the target IO object. We use |
| 106 | // TSIOBufferCopy to move the data without actually duplicating it. |