public static bool c4blob_create(C4BlobStore *store, byte[] contents, C4BlobKey *expectedKey, C4BlobKey *outKey, C4Error *error) { fixed(byte *contents_ = contents) { return(NativeRaw.c4blob_create(store, new C4Slice(contents_, contents == null ? 0 : (ulong)contents.Length), expectedKey, outKey, error)); } }
public static bool c4blob_create(C4BlobStore *store, byte[] content, C4BlobKey *outKey, C4Error *outError) { fixed(byte *p = content) { var c4Slice = new C4Slice(p, (ulong)content.Length); return(NativeRaw.c4blob_create(store, c4Slice, outKey, outError)); } }
private bool GetBlobStore(C4BlobStore **outBlobStore, C4BlobKey *outKey) { try { *outBlobStore = _db.BlobStore; return(Digest != null && Native.c4blob_keyFromString(Digest, outKey)); } catch (InvalidOperationException) { return(false); } }
public bool c4blob_create(C4BlobStore *store, byte[] contents, C4BlobKey *expectedKey, C4BlobKey *outKey, C4Error *error) => Native.c4blob_create(store, contents, expectedKey, outKey, error);
public static bool c4blob_keyFromString(string str, C4BlobKey *x) { using (var str_ = new C4String(str)) { return(NativeRaw.c4blob_keyFromString(str_.AsC4Slice(), x)); } }
public static extern bool c4blob_create(C4BlobStore *store, C4Slice contents, C4BlobKey *expectedKey, C4BlobKey *outKey, C4Error *error);
public static extern bool c4blob_keyFromString(C4Slice str, C4BlobKey *x);
public static extern bool c4stream_install(C4WriteStream *stream, C4BlobKey *expectedKey, C4Error *outError);
public bool c4stream_install(C4WriteStream *stream, C4BlobKey *expectedKey, C4Error *outError) => Native.c4stream_install(stream, expectedKey, outError);
public static extern bool c4doc_dictIsBlob(FLDict *dict, FLSharedKeys *sk, C4BlobKey *outKey);
public bool c4blob_keyFromString(string str, C4BlobKey *x) => Native.c4blob_keyFromString(str, x);
public static bool c4blob_create(C4BlobStore *store, FLSlice contents, C4BlobKey *expectedKey, C4BlobKey *outKey, C4Error *error) => Impl.c4blob_create(store, contents, expectedKey, outKey, error);
public bool c4blob_keyFromString(C4Slice str, C4BlobKey *x) => NativeRaw.c4blob_keyFromString(str, x);
public bool c4doc_dictIsBlob(FLDict *dict, FLSharedKeys *sk, C4BlobKey *outKey) => Native.c4doc_dictIsBlob(dict, sk, outKey);
public static extern bool c4doc_dictIsBlob(FLDict *dict, C4BlobKey *outKey);
public static extern bool c4doc_getDictBlobKey(FLDict *dict, C4BlobKey *outKey);
public static bool c4blob_keyFromString(string str, C4BlobKey *x) => Impl.c4blob_keyFromString(str, x);