Skip to content

Verify DoubleArray input on construction#32

Open
vabr-g wants to merge 1 commit intotakuyaa:masterfrom
vabr-g:issue-24
Open

Verify DoubleArray input on construction#32
vabr-g wants to merge 1 commit intotakuyaa:masterfrom
vabr-g:issue-24

Conversation

@vabr-g
Copy link

@vabr-g vabr-g commented Feb 3, 2026

This change adds a check that data passed to DoubleArray::new is a valid description of a DoubleArray. It also adds an unchecked unsafe version of DoubleArray::new for cases where performance is important and validity externally guaranteed.

This follows the proposal from #24.

The change was done with the help of Gemini (AI), but understood and cross-checked by a human.

This change adds a check that data passed to DoubleArray::new is
a valid description of a DoubleArray. It also adds an unchecked
unsafe version of DoubleArray::new for cases where performance
is important and validity externally guaranteed.

This follows the proposal from takuyaa#24.

The change was done with the help of Gemini (AI), but understood and
cross-checked by a human.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant