Module ptr

Module ptr 

Source
Available on crate feature core only.
Expand description

A sized pointer to some arbitrary type.

Structs§

NSTDPtr
A sized immutable pointer to some arbitrary type.
NSTDPtrMut
A sized pointer to some arbitrary type.

Functions§

nstd_core_ptr_align
Returns the alignment of the object being pointed to.
nstd_core_ptr_get
Returns a raw immutable pointer to the object pointed to by ptr.
nstd_core_ptr_mut_align
Returns the alignment of the object being pointed to.
nstd_core_ptr_mut_as_const
Creates an immutable version of a mutable pointer.
nstd_core_ptr_mut_get
Returns a raw pointer to the object pointed to by ptr.
nstd_core_ptr_mut_get_const
Returns a raw immutable pointer to the object pointed to by ptr.
nstd_core_ptr_mut_new
Creates a new instance of NSTDPtrMut.
nstd_core_ptr_mut_new_unchecked
Creates a new instance of NSTDPtrMut without checking if obj is null.
nstd_core_ptr_mut_size
Returns the size of the object being pointed to.
nstd_core_ptr_mut_write
Writes data from obj to ptr. The number of bytes written is determined by ptr.size.
nstd_core_ptr_new
Creates a new instance of NSTDPtr.
nstd_core_ptr_new_unchecked
Creates a new instance of NSTDPtr without checking if obj is null.
nstd_core_ptr_size
Returns the size of the object being pointed to.

Type Aliases§

NSTDOptionalPtr
Represents an optional value of type NSTDPtr.
NSTDOptionalPtrMut
Represents an optional value of type NSTDPtrMut.