82 const char *type)
FLAPI;
#define FL_NULLABLE
Definition CompilerSupport.h:94
#define LIFETIMEBOUND
Definition CompilerSupport.h:293
#define FLEECE_PUBLIC
Definition CompilerSupport.h:269
#define FL_ASSUME_NONNULL_BEGIN
Definition CompilerSupport.h:92
#define FLPURE
Definition CompilerSupport.h:130
#define NODISCARD
Definition CompilerSupport.h:63
#define FL_ASSUME_NONNULL_END
Definition CompilerSupport.h:93
#define FLAPI
Definition CompilerSupport.h:292
FLEECE_PUBLIC FLSlice FLDoc_GetData(FLDoc FL_NULLABLE doc LIFETIMEBOUND) FLPURE
Returns the encoded Fleece data backing the document.
FLEECE_PUBLIC FLValue FLDoc_GetRoot(FLDoc FL_NULLABLE doc LIFETIMEBOUND) FLPURE
Returns the root value in the FLDoc, usually an FLDict.
NODISCARD FLEECE_PUBLIC FLDoc FLDoc_FromResultData(FLSliceResult data, FLTrust, FLSharedKeys FL_NULLABLE, FLSlice externData)
Creates an FLDoc from Fleece-encoded data that's been returned as a result from FLSlice_Copy or other...
FLEECE_PUBLIC FLSharedKeys FLDoc_GetSharedKeys(FLDoc FL_NULLABLE) FLPURE
Returns the FLSharedKeys used by this FLDoc, as specified when it was created.
FLEECE_PUBLIC FLSliceResult FLDoc_GetAllocedData(FLDoc FL_NULLABLE) FLPURE
Returns the FLSliceResult data owned by the document, if any, else a null slice.
FLEECE_PUBLIC bool FLDoc_SetAssociated(FLDoc FL_NULLABLE doc, void *FL_NULLABLE pointer, const char *type)
Associates an arbitrary pointer value with a document, and thus its contained values.
FLEECE_PUBLIC void FLDoc_Release(FLDoc FL_NULLABLE)
Releases a reference to an FLDoc.
NODISCARD FLEECE_PUBLIC FLDoc FL_NULLABLE FLValue_FindDoc(FLValue FL_NULLABLE) FLPURE
Looks up the Doc containing the Value, or NULL if there is none.
FLEECE_PUBLIC void * FLDoc_GetAssociated(FLDoc FL_NULLABLE doc, const char *type) FLPURE
Returns the pointer associated with the document.
FLEECE_PUBLIC FLDoc FLDoc_Retain(FLDoc FL_NULLABLE)
Adds a reference to an FLDoc.
struct _FLDoc * FLDoc
A reference to a document.
Definition FLBase.h:42
FLTrust
Specifies whether not input data is trusted to be 100% valid Fleece.
Definition FLBase.h:65
struct _FLSharedKeys * FLSharedKeys
A reference to a shared-keys mapping.
Definition FLBase.h:43
const struct _FLValue * FLValue
A reference to a value of any type.
Definition FLBase.h:35
A simple reference to a block of memory.
Definition FLSlice.h:45
A heap-allocated block of memory returned from an API call.
Definition FLSlice.h:66