MCPcopy Create free account
hub / github.com/apache/arrow / garrow_buffer_class_init

Function garrow_buffer_class_init

c_glib/arrow-glib/buffer.cpp:138–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static void
139garrow_buffer_class_init(GArrowBufferClass *klass)
140{
141 GParamSpec *spec;
142
143 auto gobject_class = G_OBJECT_CLASS(klass);
144
145 gobject_class->dispose = garrow_buffer_dispose;
146 gobject_class->finalize = garrow_buffer_finalize;
147 gobject_class->set_property = garrow_buffer_set_property;
148 gobject_class->get_property = garrow_buffer_get_property;
149
150 spec = g_param_spec_pointer(
151 "buffer",
152 "Buffer",
153 "The raw std::shared_ptr<arrow::Buffer> *",
154 static_cast<GParamFlags>(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
155 g_object_class_install_property(gobject_class, PROP_BUFFER, spec);
156
157 spec = g_param_spec_boxed(
158 "data",
159 "Data",
160 "The raw data passed as GBytes *",
161 G_TYPE_BYTES,
162 static_cast<GParamFlags>(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
163 g_object_class_install_property(gobject_class, PROP_DATA, spec);
164
165 spec = g_param_spec_object(
166 "parent",
167 "Parent",
168 "The parent GArrowBuffer *",
169 GARROW_TYPE_BUFFER,
170 static_cast<GParamFlags>(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
171 g_object_class_install_property(gobject_class, PROP_PARENT, spec);
172}
173
174/**
175 * garrow_buffer_new:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected