8000 Bytes::unsafe_get performs bounds check indeed · Issue #2321 · moonbitlang/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bytes::unsafe_get performs bounds check indeed #2321
Closed
@hackwaly

Description

@hackwaly

Current behavior: Performs bounds check
Expected behavior: No bounds check

See:

pub fn Bytes::unsafe_get(self : Bytes, idx : Int) -> Byte = "%bytes_get"

There's no way to avoid the bounds check for now.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0