You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
In case the bytes pointer of svm_byte_array points to data of a Vec,
we need in the Rust side to use Vec::from_raw_parts
This is required mainly for managing Receipts.
Since the length of a Vec might be strictly less than its capacity, it's better not to assume anything about the relation of these two fields and add explicit capacity field to the svm_byte_array.
The text was updated successfully, but these errors were encountered:
Motivation
In case the
bytes
pointer ofsvm_byte_array
points to data of aVec
,we need in the Rust side to use
Vec::from_raw_parts
This is required mainly for managing
Receipts
.Since the
length
of aVec
might be strictly less than itscapacity
, it's better not to assume anything about the relation of these two fields and add explicitcapacity
field to thesvm_byte_array
.The text was updated successfully, but these errors were encountered: