Skip to content

Reconcile table ownership semantics #439

Closed
@molpopgen

Description

@molpopgen

We currently have two representations of each low-level table -- one that owns its data and one that does not.
This design is arguably confusing and arose primarily over concerns about memory safety.
However, it should be fixed to give a clearer API.

We should be able to write something like:

pub struct EdgeTable(TableManager<tsk_edge_table_t>)

where the manager type is responsible for ownership.
Then, EdgeTable is just a smart pointer and can Deref/DerefMut safely to the manager's public API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions