Пример #1
0
func (v SList) Find(data unsafe.Pointer) *SList {
	return &SList{C.g_slist_find(v.GSList, C.gconstpointer(data))}
}
Пример #2
0
func (v SList) Index(data unsafe.Pointer) int {
	return int(C.g_slist_index(v.GSList, C.gconstpointer(data)))
}
Пример #3
0
func (v List) Find(data unsafe.Pointer) *List {
	return &List{C.g_list_find(v.GList, C.gconstpointer(data))}
}
Пример #4
0
func (v SList) RemoveAll(data unsafe.Pointer) *SList {
	return &SList{C.g_slist_remove_all(v.GSList, C.gconstpointer(data))}
}
Пример #5
0
func (v List) RemoveAll(data unsafe.Pointer) *List {
	return &List{C.g_list_remove_all(v.GList, C.gconstpointer(data))}
}
Пример #6
0
// =================================
//  gsize       gst_buffer_fill                (GstBuffer *buffer, gsize offset, gconstpointer src, gsize size);
func (this *Buffer) Fill(offset uint, src unsafe.Pointer, size uint) int {
	return (int)(C.gst_buffer_fill((*C.GstBuffer)(this.GstBuffer), C.gsize(offset), C.gconstpointer(src), C.gsize(size)))
}
Пример #7
0
//GList*              g_list_insert_sorted                (GList *list,
//                                                         gpointer data,
//                                                         GCompareFunc func);
func (v GList) Remove(data unsafe.Pointer) *GList {
	return &GList{C.g_list_remove(v.GList, C.gconstpointer(data))}
}
Пример #8
0
func (this *Value) SetBoxedInterface(x interface{}) {
	Holder.Grab(x)
	newboxed := C.malloc(C.size_t(unsafe.Sizeof([2]unsafe.Pointer{})))
	C.memcpy(newboxed, unsafe.Pointer(&x), C.size_t(unsafe.Sizeof([2]unsafe.Pointer{})))
	C.g_value_take_boxed(this.asC(), C.gconstpointer(newboxed))
}
Пример #9
0
// g_value_take_boxed
func (this *Value) SetBoxed(x unsafe.Pointer) {
	C.g_value_take_boxed(this.asC(), C.gconstpointer(x))
}