forked from enlightenment/efl
emile: remove use of deprecated eina binbuf function.
This commit is contained in:
parent
9d29f80eb1
commit
5412be48e1
|
@ -75,7 +75,7 @@ emile_compress(const Eina_Binbuf *data,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
return eina_binbuf_manage_new_length(compact, length);
|
||||
return eina_binbuf_manage_new(compact, length, EINA_FALSE);
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
|
@ -125,7 +125,7 @@ emile_decompress(const Eina_Binbuf *data, Emile_Compressor_Type t, unsigned int
|
|||
expanded = malloc(dest_length);
|
||||
if (!expanded) return NULL;
|
||||
|
||||
out = eina_binbuf_manage_new_length(expanded, dest_length);
|
||||
out = eina_binbuf_manage_new(expanded, dest_length, EINA_FALSE);
|
||||
if (!out) goto on_error;
|
||||
|
||||
if (!emile_expand(data, out, t))
|
||||
|
|
|
@ -469,7 +469,7 @@ _emile_tgv_data(Emile_Image *image,
|
|||
/* Allocate space for each ETC block (8 or 16 bytes per 4 * 4 pixels group) */
|
||||
block_count = image->block.width * image->block.height / (4 * 4);
|
||||
if (image->compress)
|
||||
buffer = eina_binbuf_manage_read_only_new_length(alloca(etc_block_size * block_count), etc_block_size * block_count);
|
||||
buffer = eina_binbuf_manage_new(alloca(etc_block_size * block_count), etc_block_size * block_count, EINA_TRUE);
|
||||
|
||||
for (plane = 0; plane < num_planes; plane++)
|
||||
for (y = 0; y < image->size.height + 2; y += image->block.height)
|
||||
|
@ -488,7 +488,7 @@ _emile_tgv_data(Emile_Image *image,
|
|||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
data_start = eina_binbuf_manage_read_only_new_length(m + offset, block_length);
|
||||
data_start = eina_binbuf_manage_new(m + offset, block_length, EINA_TRUE);
|
||||
offset += block_length;
|
||||
|
||||
EINA_RECTANGLE_SET(¤t, x, y,
|
||||
|
|
|
@ -142,9 +142,9 @@ emile_pbkdf2_sha1(const char *key,
|
|||
buf = alloca(salt_len + 4);
|
||||
if (!buf) return EINA_FALSE;
|
||||
|
||||
step1 = eina_binbuf_manage_read_only_new_length(buf, salt_len + 4);
|
||||
step1 = eina_binbuf_manage_new(buf, salt_len + 4, EINA_TRUE);
|
||||
if (!step1) return EINA_FALSE;
|
||||
step2 = eina_binbuf_manage_read_only_new_length(digest, 20);
|
||||
step2 = eina_binbuf_manage_new(digest, 20, EINA_TRUE);
|
||||
if (!step2) return EINA_FALSE;
|
||||
|
||||
for (i = 1; len; len -= tmp_len, p += tmp_len, i++)
|
||||
|
|
Loading…
Reference in New Issue