9 LV::intrusive_ptr_add_ref (
self.
get ());
15 VisBuffer *visual_buffer_new_wrap_data (
void *data, visual_size_t size,
int own)
19 LV::intrusive_ptr_add_ref (
self.
get ());
25 VisBuffer *visual_buffer_new_allocate (visual_size_t size)
29 LV::intrusive_ptr_add_ref (
self.
get ());
37 visual_return_val_if_fail (source !=
nullptr,
nullptr);
41 LV::intrusive_ptr_add_ref (
self.
get ());
53 void visual_buffer_set_data_pair (
VisBuffer *
self,
void *data, visual_size_t size)
55 visual_return_if_fail (
self !=
nullptr);
57 self->set (data, size);
60 void visual_buffer_set_data (
VisBuffer *
self,
void *data)
62 visual_return_if_fail (
self !=
nullptr);
64 self->set_data (data);
67 void *visual_buffer_get_data (
VisBuffer *
self)
69 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
71 return self->get_data ();
74 void *visual_buffer_get_data_offset (
VisBuffer *
self, visual_size_t offset)
76 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
78 return self->get_data (offset);
81 void visual_buffer_set_size (
VisBuffer *
self, visual_size_t size)
83 visual_return_if_fail (
self !=
nullptr);
85 self->set_size (size);
88 visual_size_t visual_buffer_get_size (
VisBuffer *
self)
90 visual_return_val_if_fail (
self !=
nullptr, 0);
92 return self->get_size ();
95 int visual_buffer_is_allocated (
VisBuffer *
self)
97 visual_return_val_if_fail (
self !=
nullptr, FALSE);
99 return self->is_allocated ();
102 void visual_buffer_allocate (
VisBuffer *
self, visual_size_t size)
104 visual_return_if_fail (
self !=
nullptr);
106 return self->allocate (size);
109 void visual_buffer_destroy_content (
VisBuffer *
self)
111 visual_return_if_fail (
self !=
nullptr);
113 self->destroy_content ();
118 visual_return_if_fail (
self !=
nullptr);
119 visual_return_if_fail (dest !=
nullptr);
121 self->copy_to (dest);
124 void visual_buffer_copy_to_data (
VisBuffer *
self,
void *dest, visual_size_t size)
126 visual_return_if_fail (
self !=
nullptr);
127 visual_return_if_fail (dest !=
nullptr);
129 self->copy_to (dest, size);
134 visual_return_if_fail (
self !=
nullptr);
139 void visual_buffer_put_data (
VisBuffer *
self,
const void *data, visual_size_t size, visual_size_t offset)
141 visual_return_if_fail (
self !=
nullptr);
143 self->put (data, size, offset);
146 void visual_buffer_fill (
VisBuffer *
self, uint8_t value)
148 visual_return_if_fail (
self !=
nullptr);
153 void visual_buffer_fill_with_pattern (
VisBuffer *
self,
const void *data, visual_size_t size)
155 visual_return_if_fail (
self !=
nullptr);
157 self->fill_with_pattern (data, size);
162 visual_return_if_fail (
self !=
nullptr);
164 LV::intrusive_ptr_add_ref (
self);
167 void visual_buffer_unref (
VisBuffer *
self)
169 visual_return_if_fail (
self !=
nullptr);
171 LV::intrusive_ptr_release (
self);