Lines Matching full:contents

39 					       ptr_d(buffer_contents_t, contents),  in HB_WASM_API()
42 HB_PTR_PARAM (buffer_contents_t, contents); in HB_WASM_API()
43 if (unlikely (!contents)) in HB_WASM_API()
46 if (size <= contents->length) in HB_WASM_API()
53 glyph_info_t *info = HB_ARRAY_APP2NATIVE (glyph_info_t, contents->info, contents->length); in HB_WASM_API()
54 glyph_position_t *pos = HB_ARRAY_APP2NATIVE (glyph_position_t, contents->pos, contents->length); in HB_WASM_API()
64 unsigned old_bytes = contents->length * sizeof (glyph_info_t); in HB_WASM_API()
68 module_free (contents->info); in HB_WASM_API()
69 contents->info = new_inforef; in HB_WASM_API()
74 module_free (contents->pos); in HB_WASM_API()
75 contents->pos = new_posref; in HB_WASM_API()
80 contents->length = size; in HB_WASM_API()
88 ptr_d(buffer_contents_t, contents)) in HB_WASM_API()
90 HB_PTR_PARAM (buffer_contents_t, contents); in HB_WASM_API()
91 if (unlikely (!contents)) in HB_WASM_API()
94 module_free (contents->info); in HB_WASM_API()
95 module_free (contents->pos); in HB_WASM_API()
97 contents->info = nullref; in HB_WASM_API()
98 contents->pos = nullref; in HB_WASM_API()
99 contents->length = 0; in HB_WASM_API()
104 ptr_d(buffer_contents_t, contents)) in HB_WASM_API()
107 HB_PTR_PARAM (buffer_contents_t, contents); in HB_WASM_API()
108 if (unlikely (!contents)) in HB_WASM_API()
118 if (length <= contents->length) in HB_WASM_API()
120 glyph_info_t *info = HB_ARRAY_APP2NATIVE (glyph_info_t, contents->info, length); in HB_WASM_API()
121 glyph_position_t *pos = HB_ARRAY_APP2NATIVE (glyph_position_t, contents->pos, length); in HB_WASM_API()
125 contents->length = 0; in HB_WASM_API()
136 module_free (contents->info); in HB_WASM_API()
137 module_free (contents->pos); in HB_WASM_API()
139 contents->length = length; in HB_WASM_API()
141 contents->info = wasm_runtime_module_dup_data (module_inst, (const char *) buffer->info, bytes); in HB_WASM_API()
142 contents->pos = wasm_runtime_module_dup_data (module_inst, (const char *) buffer->pos, bytes); in HB_WASM_API()
144 if (length && (!contents->info || !contents->pos)) in HB_WASM_API()
146 contents->length = 0; in HB_WASM_API()
155 ptr_d(const buffer_contents_t, contents)) in HB_WASM_API()
158 HB_PTR_PARAM (buffer_contents_t, contents); in HB_WASM_API()
159 if (unlikely (!contents)) in HB_WASM_API()
162 unsigned length = contents->length; in HB_WASM_API()
170 …fo_t *info = (glyph_info_t *) (validate_app_addr (contents->info, bytes) ? addr_app_to_native (con… in HB_WASM_API()
171 …t *pos = (glyph_position_t *) (validate_app_addr (contents->pos, bytes) ? addr_app_to_native (cont… in HB_WASM_API()