public GroongaContext(GroongaContextFlags flags) { _library.Initialize(); GroongaResultCode result = GroongaApi.grn_ctx_init(out _context, flags); if (result != GroongaResultCode.Success) throw new GroongaException(result, "failed: grn_ctx_init"); }
public GroongaContext(GroongaContextFlags flags) { // ライブラリの初期化(初回のみ) _library.Initialize(); // コンテキストの初期化 GroongaResultCode result = GroongaApi.grn_ctx_init(out _context, flags); if (result != GroongaResultCode.Success) throw new GroongaException(result, "grn_ctx_init() faield"); }
public static extern GroongaResultCode grn_ctx_init(out grn_ctx ctx, GroongaContextFlags flags);