{"hits":[{"kind":"Lab","title":"Inspect a merge","tool":"InspectBcrdtMerge()","snippet":"Runs the real engine on concurrent edits made by two to four replicas - text, map, array, set and counter operations - exchanges their updates in every delivery order, and reports..."},{"kind":"API method","title":"BcrdtMap.EnsureMap","context":"BcrdtMap","tool":"GetBcrdtApi(typeName: \"BcrdtMap\")","snippet":"...in a way it is not in a database: if two clients call this concurrently, one of the two maps wins deterministically and the loser's contents are discarded. To merge rather than di..."},{"kind":"Guide section","title":"Writing a collaborative type","context":"Extending it","tool":"GetBcrdtGuideSection(heading: \"Writing a collaborative type\")","snippet":"...}      // Each client accumulates into its own key, so concurrent increments add up     // instead of overwriting one another.     public void Add(long amount) => Doc.Transact..."},{"kind":"Guide section","title":"Drawings and node editors","tool":"GetBcrdtGuideSection(heading: \"Drawings and node editors\")","snippet":"...layer, element, node or edge - never an array   of objects. Concurrent changes to different objects touch different entries, and a deletion is by identifier, so it   cannot land on..."},{"kind":"Guide section","title":"Data model","context":"Architecture","tool":"GetBcrdtGuideSection(heading: \"Data model\")","snippet":"...fine the *interval* into which the block was inserted, so a concurrent block can be placed relative to the interval instead of relative to a single neighbour.  Content is a strateg..."},{"kind":"API property","title":"BcrdtUndoManagerOptions.IgnoreRemoteMapChanges","context":"BcrdtUndoManagerOptions","tool":"GetBcrdtApi(typeName: \"BcrdtUndoManagerOptions\")","snippet":"Whether a map key redone locally should ignore a concurrent remote write to the same key. Off by default: if somebody else has since written the key, redoing over their value would..."},{"kind":"Guide section","title":"Choosing a data type","tool":"GetBcrdtGuideSection(heading: \"Choosing a data type\")","snippet":"...n that matters most, and it is worth two minutes.  | Type | Concurrent edits resolve as | Reach for it when | |---|---|---| | `BcrdtText` | Both edits survive, each author's run st..."},{"kind":"API method","title":"BcrdtOrderedCollection.Move","context":"BcrdtOrderedCollection","tool":"GetBcrdtApi(typeName: \"BcrdtOrderedCollection\")","snippet":"...y sort at the target position. Two replicas moving one item concurrently each write its key; one write wins, so the item ends up at one of the two positions, exactly once."},{"kind":"Guide section","title":"Map the relay","context":"Getting started","tool":"GetBcrdtGuideSection(heading: \"Map the relay\")","snippet":"### Map the relay  The hub lives in a separate server-side package, so that the client transport carries no ASP.NET Core server dependency:  ```bash dotnet add package Bit.Bcrdt.Se..."},{"kind":"Guide section","title":"Ordering and task boards","tool":"GetBcrdtGuideSection(heading: \"Ordering and task boards\")","snippet":"...f its new neighbours - one field, last-writer-wins - so two concurrent moves of one card leave it at one of the two places, exactly once, and an edit to any other field of the card..."},{"kind":"API method","title":"BcrdtContentString.Write","context":"BcrdtContentString","tool":"GetBcrdtApi(typeName: \"BcrdtContentString\")","snippet":"Writes the payload, skipping the first offset logical units. Only the units from offset on are copied. A keystroke at the end of a long block is merged into it before the transacti..."},{"kind":"API method","title":"BcrdtDeleteSet.Write","context":"BcrdtDeleteSet","tool":"GetBcrdtApi(typeName: \"BcrdtDeleteSet\")","snippet":"Writes the set with clocks delta-encoded within each client run. The delta encoding only works on sorted, non-overlapping ranges; anything else would encode negative gaps. A set th..."}],"hasMore":true}