Function setLen [src]

Sets the length of an Managed. If setLen is used, then the Managed must be normalized to suit.

Prototype

pub fn setLen(self: *Managed, new_len: usize) void

Parameters

self: *Managednew_len: usize

Source

pub fn setLen(self: *Managed, new_len: usize) void { self.metadata &= sign_bit; self.metadata |= new_len; }