Available on crate feature
core only.Expand description
Contains mostly unsafe functions for interacting with raw memory.
Functions§
- nstd_
core_ ⚠mem_ align - Returns a pointer that is properly aligned to
alignbased on the offsetptr. - nstd_
core_ ⚠mem_ align_ mut - Returns a pointer that is properly aligned to
alignbased on the offsetptr. - nstd_
core_ ⚠mem_ compare - Compares two memory buffers of
numbytes. - nstd_
core_ ⚠mem_ copy - Copies
numbytes fromsrctodest. - nstd_
core_ ⚠mem_ copy_ overlapping - Copies
numbytes fromsrctodest. Unlikenstd_core_mem_copythis operation can be used when the two memory buffers overlap. - nstd_
core_ mem_ dangling - Creates a new dangling pointer to some immutable memory. The pointer is guaranteed to have valid alignment for any scalar type.
- nstd_
core_ mem_ dangling_ mut - Creates a new dangling pointer to some mutable memory. The pointer is guaranteed to have valid alignment for any scalar type.
- nstd_
core_ ⚠mem_ fill - Fills the memory buffer
bufwith bytefill. - nstd_
core_ mem_ is_ aligned - Checks if
ptris aligned toalign. - nstd_
core_ ⚠mem_ search - Iterates through each byte in a raw memory buffer until
delimis reached, returning a pointer to the delimiter byte if it is found. - nstd_
core_ ⚠mem_ swap - Swaps
numbytes between the memory buffersxandy. - nstd_
core_ ⚠mem_ zero - Zeros out a memory buffer.