Exemplo n.º 1
0
Arquivo: dump.go Projeto: reusee/ggi
func DumpFieldInfo(info *C.GIFieldInfo) {
	flags := C.g_field_info_get_flags(info)
	if flags&C.GI_FIELD_IS_READABLE > 0 {
		p("readable\n")
	}
	if flags&C.GI_FIELD_IS_WRITABLE > 0 {
		p("writable\n")
	}
	offset := C.g_field_info_get_offset(info)
	p("offset %d\n", offset)
	size := C.g_field_info_get_size(info)
	p("size %d\n", size)
	t := C.g_field_info_get_type(info)
	DumpTypeInfo(t)
}
Exemplo n.º 2
0
// g_field_info_get_flags
func (fi *FieldInfo) Flags() FieldInfoFlags {
	return FieldInfoFlags(C.g_field_info_get_flags((*C.GIFieldInfo)(fi.c)))
}