aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/api/efl/io/buffer/method/adopt_readwrite.txt
blob: 6e9535c3c60fa55b4f6bdb8558d4e08c88572c76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
~~Title: Efl.Io.Buffer.adopt_readwrite~~
===== Description =====

%%Adopt a read-write slice as buffer's backing store.%%

%%The slice memory will not be copied and must remain alive during the buffer's lifetime. Usually this is guaranteed by some global static memory or some parent object and this buffer being a view of that -- be aware of parent memory remaining alive, such as "slice,changed" events.%%

%%The memory will be disposed using free() and reallocated using realloc().%%

//Since 1.19//
{{page>:develop:api-include:efl:io:buffer:method:adopt_readwrite:description&nouser&nolink&nodate}}

===== Signature =====

<code>
adopt_readwrite {
    params {
        @in slice: Eina.Rw_Slice;
    }
}
</code>

===== C signature =====

<code c>
void efl_io_buffer_adopt_readwrite(Eo *obj, Eina_Rw_Slice slice);
</code>

===== Parameters =====

  * **slice** //(in)// - %%Slice to adopt as read-write%%

===== Implemented by =====

  * **Efl.Io.Buffer.adopt_readwrite**