mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -98,8 +98,8 @@ pub struct InstanceWrapper {
|
||||
instance: Instance,
|
||||
// The memory instance of the `instance`.
|
||||
//
|
||||
// It is important to make sure that we don't make any copies of this to make it easier to proof
|
||||
// See `memory_as_slice` and `memory_as_slice_mut`.
|
||||
// It is important to make sure that we don't make any copies of this to make it easier to
|
||||
// proof See `memory_as_slice` and `memory_as_slice_mut`.
|
||||
memory: Memory,
|
||||
table: Option<Table>,
|
||||
// Make this struct explicitly !Send & !Sync.
|
||||
@@ -399,9 +399,9 @@ impl InstanceWrapper {
|
||||
self.memory.data_ptr()
|
||||
}
|
||||
|
||||
/// Removes physical backing from the allocated linear memory. This leads to returning the memory
|
||||
/// back to the system. While the memory is zeroed this is considered as a side-effect and is not
|
||||
/// relied upon. Thus this function acts as a hint.
|
||||
/// Removes physical backing from the allocated linear memory. This leads to returning the
|
||||
/// memory back to the system. While the memory is zeroed this is considered as a side-effect
|
||||
/// and is not relied upon. Thus this function acts as a hint.
|
||||
pub fn decommit(&self) {
|
||||
if self.memory.data_size() == 0 {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user