Skip to content

SVec to &[u8] #25

@pu0238

Description

@pu0238

Hi in my case i need to get &[u8] from SVec. I n typical Vec i would do &&Vec but with SVec i tryed blob.as_dyn_size_bytes() and to get typical vec blob.iter().map(|el| *el).collect::<Vec<_>>();.

In first case I got error that i have shape [256, 24] insted of [u8] in second Reject text: Canister bkyz2-fmaaa-aaaaa-qaaaq-cai trapped: stable memory out of bounds.

How can i get [u8] from SVec or Typical Vec from SVec

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