public void Dispose() { _StaticMap.Remove(_id); var flSliceResult = new FLSliceResult { buf = C4Params.optionsDictFleece.buf, size = C4Params.optionsDictFleece.size }; flSliceResult.Dispose(); }
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(); } }
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);
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);
public void FLSliceResult_Release(FLSliceResult slice) => Native.FLSliceResult_Release(slice);
public FLDoc *FLDoc_FromResultData(FLSliceResult data, FLTrust x, FLSharedKeys *shared, FLSlice externData) => Native.FLDoc_FromResultData(data, x, shared, externData);