blob_model

Members

Classes

Blob
class Blob

A uniquely identifiable blob and its content.

BlobEdit
class BlobEdit
Undocumented in source.
BlobIdentifier
class BlobIdentifier

Unique identifier for the blob.

BlobVfs
class BlobVfs

A virtual file system of blobs.

Edit
class Edit

Replace interval with content.

Functions

change
Blob change(Blob blob, const(Edit)[] edits)

Modify the blob.

merge
BlobEdit merge(Blob blob, Edit[] edits_)

Merge edits by concatenation when the intervals overlap.

overlaps
bool overlaps(IntervalType1 int1, IntervalType2 int2)

Detect overlap between this interval and other given interval in a * half-open coordinate system [start, end) * * return true in any of the following four situations: * int1 ===== ======= * int2 ======= ======= * * int1 ======= ======= * int2 === ======= * * return false in any other scenario: * int1 ===== | ===== * int2 ===== | ===== * * NOTE that in half-open coordinates [start, end) * i1.end == i2.start => Adjacent, but NO overlap * * Note: This code is copied from the dub package intervaltree. * Author: James S. Blachly, MD <james.blachly@gmail.com> * Copyright: Copyright (c) 2019 James Blachly * License: MIT

Structs

Interval
struct Interval
Undocumented in source.
Location
struct Location
Undocumented in source.
Offset
struct Offset
Undocumented in source.
Uri
struct Uri
Undocumented in source.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)