Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Comments

improve Rust bindings#718

Open
LorenzSchueler wants to merge 1 commit intoipsilon:master from
LorenzSchueler:rust-bindings-slice
Open

improve Rust bindings #718
LorenzSchueler wants to merge 1 commit intoipsilon:master from
LorenzSchueler:rust-bindings-slice

Conversation

@LorenzSchueler
Copy link

@LorenzSchueler LorenzSchueler commented Aug 21, 2024

  • make ExecutionTxContext a new type (instead of alias) which holds slices instead of pointers and lengths
  • change type of input and code fields of ExecutionMessage from Option<Vec<u8>> to Option<&[u8]> thereby eliminating allocations
  • no not call alloc and dealloc directly but convert between *mut T, usize and Box<[T]>
  • make into_ffi_pointer safe as there is no unsafe operation involved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /