docs

您正在閱讀 v0.1.0 的文件。Nabi 0.1.0 已停止支援。 最新版本:v0.1.3 →

bare::volatile

API 參考只有英文版,由標準函式庫原始碼中的英文文件註解產生。

accesses the optimizer keeps exactly as written: MMIO, signal flags, DMA buffers. Not atomic.

Functions

readSource

pub unsafe fn read<T>(src: ConstPtr<T>) -> T

The T at src, read exactly once as written. UB unless it points at a live, initialized T.

writeSource

pub unsafe fn write<T>(dst: Ptr<T>, value: T)

Store value at dst, written exactly once as written. UB unless dst is writable T memory.