Example #1
0
 public ReindexerBufferHandle(byte[] byteArray)
 {
     _gcHandle = GCHandle.Alloc(byteArray, GCHandleType.Pinned);
     Buffer    = new reindexer_buffer
     {
         data = _gcHandle.AddrOfPinnedObject(),
         len  = byteArray?.Length ?? 0
     };
 }
Example #2
0
 public ReindexerBufferHandle(Memory <byte> byteMem)
 {
     _memoryHandle = byteMem.Pin();
     unsafe
     {
         Buffer = new reindexer_buffer
         {
             data = (IntPtr)_memoryHandle.Pointer,
             len  = byteMem.Length
         };
     }
 }
Example #3
0
 public static reindexer_ret reindexer_update_query(uintptr_t rx, reindexer_buffer @in, reindexer_ctx_info ctx_info)
 {
     _responseBufferConcurrenyLimit.Wait();
     return(reindexer_update_query_native(rx, @in, ctx_info));
 }
Example #4
0
 public static reindexer_ret reindexer_select_query(uintptr_t rx, reindexer_buffer @in, int as_json, int32_t[] pt_versions /* int32_t* */, int pt_versions_count, reindexer_ctx_info ctx_info)
 {
     _responseBufferConcurrenyLimit.Wait();
     return(reindexer_select_query_native(rx, @in, as_json, pt_versions, pt_versions_count, ctx_info));
 }
Example #5
0
 public static reindexer_ret reindexer_modify_item_packed(uintptr_t rx, reindexer_buffer args, reindexer_buffer data, reindexer_ctx_info ctx_info)
 {
     _responseBufferConcurrenyLimit.Wait();
     return(reindexer_modify_item_packed_native(rx, args, data, ctx_info));
 }