cbor_string_set_handle

Set the handle to the underlying string

More...
extern (C)
void
cbor_string_set_handle

Detailed Description

\rst .. warning:: Using a pointer to a stack allocated constant is a common mistake. Lifetime of the string will expire when it goes out of scope and the CBOR item will be left inconsistent. \endrst

@param itemborrow A definite string @param data The memory block. The caller gives up the ownership of the block. libcbor will deallocate it when appropriate using its free function @param length Length of the data block

Meta