internal unsafe CBForestQueryStatus(C4QueryEnumerator *e) { Key = e->key; Value = e->value; DocSequence = (long)e->docSequence; _docIDSlice = e->docID; _fullTextTerms = e->fullTextTerms; FullTextTermCount = e->fullTextTermCount; BoundingBox = e->geoBBox; GeoJSONRaw = e->geoJSON; }
internal unsafe CBForestQueryStatus(C4Slice docID, C4KeyReader key, C4Slice value, long docSequence) { _docID = new Lazy <string>(() => (string)docID); Key = key; Value = value; DocSequence = docSequence; _keyJSON = new Lazy <string>(() => { var localKey = key; return(Native.c4key_toJSON(&localKey)); }); _valueJSON = new Lazy <string>(() => (string)value); }