[][src]Module cgc::mem

Structs

Address
FormattedSize
Ptr
Region
TaggedPointer

Structure wrapping a raw, tagged pointer.

Enums

Access

Functions

align

rounds the given value val up to the nearest multiple of align

align_i32

rounds the given value val up to the nearest multiple of align

align_usize

rounds the given value val up to the nearest multiple of align.

bit_is_set

Returns true if the pointer has the given bit set to 1.

commit
commit_at
discard
fits_i32

returns true if value fits into i32 (signed 32bits).

fits_u8

returns true if value fits into u8 (unsigned 8bits).

formatted_size
is_aligned

returns 'true' if th given value is already aligned to align.

is_page_aligned

returns true if given value is a multiple of a page size.

map_gc_mem
memory_limit
page_align

round the given value up to the nearest multiple of a page

page_size
page_size_bits
protect
ptr_width

return pointer width: either 4 or 8 (although only 64bit architectures are supported right now)

ptr_width_usize
reserve
reserve_align
uncommit
untagged

Returns the given pointer without any tags set.

with_bit

Returns the pointer with the given bit set.

without_bit