[ CCode ( has_construct_function = false , simple_generics = true ) ]
public static Memory new_wrapped<T> (MemoryFlags flags, uint8[] data, size_t offset, size_t size, owned T user_data)
Allocate a new memory block that wraps the given data
.
The prefix/padding must be filled with 0 if flags
contains
ZERO_PREFIXED and ZERO_PADDED respectively.
flags | |
data |
data to wrap |
offset |
offset in |
user_data |
user_data |
maxsize |
allocated size of |
notify |
called with |
size |
size of valid data |
a new Memory. |