Example #1
0
 public void Dispose()
 {
     _StaticMap.Remove(_id);
     var flSliceResult = new FLSliceResult
     {
         buf = C4Params.optionsDictFleece.buf,
         size = C4Params.optionsDictFleece.size
     };
     flSliceResult.Dispose();
 }
Example #2
0
 private static void SocketWrittenTo(C4Socket *socket, FLSliceResult allocatedData)
 {
     try {
         _externalWrite?.Invoke(socket, ((FLSlice)allocatedData).ToArrayFast());
     } catch (Exception e) {
         _error?.Invoke(socket, new Exception("Error writing to socket", e));
         Native.c4socket_closed(socket, new C4Error(C4ErrorCode.UnexpectedError));
     } finally {
         allocatedData.Dispose();
     }
 }
Example #3
0
 public static extern void FLSliceResult_Free(FLSliceResult slice);
 public static extern FLDoc *FLDoc_FromResultData(FLSliceResult data, FLTrust x, FLSharedKeys *shared, FLSlice externData);
 public static void FLSliceResult_Release(FLSliceResult flSliceResult) => _FLBuf_Release(flSliceResult.buf);
Example #6
0
 public static extern void FLSliceResult_Release(FLSliceResult slice);
 public void FLSliceResult_Free(FLSliceResult slice) => Native.FLSliceResult_Free(slice);
 public static extern FLSliceResult FLSliceResult_Retain(FLSliceResult slice);
Example #9
0
 public void FLSliceResult_Release(FLSliceResult slice) => Native.FLSliceResult_Release(slice);
Example #10
0
 public FLDoc *FLDoc_FromResultData(FLSliceResult data, FLTrust x, FLSharedKeys *shared, FLSlice externData) => Native.FLDoc_FromResultData(data, x, shared, externData);