folly::IOBuf::writableBuffer

Get a writable pointer to the start of the buffer.

Synopsis

Declared in <folly/io/IOBuf.h>

uint8_t*
writableBuffer() noexcept;

Description

The caller is responsible for calling unshare() first to ensure that it is actually safe to write to the buffer.

Return Value

A writable pointer to the start of the buffer. methodset Access