[Groonga-commit] groonga/grnxx at 010d86e [master] Gnx: add comment about grn_cgo_column_get_X_vector().

Back to archive index

susumu.yata null+****@clear*****
Wed May 6 14:02:23 JST 2015


susumu.yata	2015-05-06 14:02:23 +0900 (Wed, 06 May 2015)

  New Revision: 010d86e01bcc9fe01ea700b8501dae4ed08532db
  https://github.com/groonga/grnxx/commit/010d86e01bcc9fe01ea700b8501dae4ed08532db

  Message:
    Gnx: add comment about grn_cgo_column_get_X_vector().

  Modified files:
    go3/gnx/grn_cgo.h

  Modified: go3/gnx/grn_cgo.h (+6 -0)
===================================================================
--- go3/gnx/grn_cgo.h    2015-05-06 13:52:20 +0900 (d0fefe2)
+++ go3/gnx/grn_cgo.h    2015-05-06 14:02:23 +0900 (9fcc334)
@@ -104,6 +104,12 @@ grn_bool grn_cgo_column_set_text_vector(grn_ctx *ctx, grn_obj *column,
                                         grn_id id,
                                         const grn_cgo_vector *value);
 
+// grn_cgo_column_get_X_vector() sets *(X *)(value.ptr)[i] if value->size >=
+// the actual vector size.
+// In the case of Text, bodies are copied to (X *)(value.ptr)[i].ptr if
+// (X *)(value.ptr)[i].size >= the actual body size.
+// Then, grn_cgo_column_get_X_vector() sets value->size.
+
 // grn_cgo_column_get_bool() gets a stored Bool value.
 grn_bool grn_cgo_column_get_bool(grn_ctx *ctx, grn_obj *column,
                                  grn_id id, grn_bool *value);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index