Skip to content

Custom offsets support? #4

@ghost

Description

I needs custom offsets support. I'm using offsetof from native addon (for support correct packing and align).

const struct = new StructBuffer("Player", {
  hp: float({offset=0}),
  mp: float({offset=4}),,
  name: string_t({offset=8})[3],
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions