MCPcopy Create free account
hub / github.com/blend2d/blend2d / make_mutable

Method make_mutable

blend2d/core/array.h:497–499  ·  view source on GitHub ↗

Makes the array mutable by possibly creating a deep copy of the data if it's either read-only or shared with another array. Stores the pointer to the beginning of mutable data in `data_out`. ``` BLArray a; if (a.append(0, 1, 2, 3, 4, 5, 6, 7) != BL_SUCCESS) { // Handle error condition. } uint8_t* data; if (a.make_mutable(&data) != BL_SUCCESS) { // Handle error condition. } // `data` is

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

bl_array_make_mutableFunction · 0.85

Tested by

no test coverage detected