File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,7 @@ unsafe fn buffer_store_intrinsic<T>(
44
44
}
45
45
46
46
/// `ByteAddressableBuffer` is a view to an untyped blob of data, allowing
47
- /// loads and stores of arbitrary basic data types at arbitrary indices. Use
48
- /// `from_slice()` or `from_mut_slice()` to create the `ByteAddressableBuffer`,
49
- /// with only the mutable slice allowing stores.
47
+ /// loads and stores of arbitrary basic data types at arbitrary indices.
50
48
///
51
49
/// # Alignment
52
50
/// All data must be aligned to size 4, each element within the data (e.g.
@@ -58,9 +56,9 @@ unsafe fn buffer_store_intrinsic<T>(
58
56
///
59
57
/// # Safety
60
58
/// Using these functions allows reading a different type from the buffer than
61
- /// was originally written (by [`MutByteAddressableBuffer`] or the host API),
62
- /// allowing all sorts of safety guarantees to be bypassed ( effectively a
63
- /// transmute) .
59
+ /// was originally written (by a previous `store()` or the host API), allowing
60
+ /// all sorts of safety guarantees to be bypassed, making it effectively a
61
+ /// transmute.
64
62
#[ repr( transparent) ]
65
63
pub struct ByteAddressableBuffer < T > {
66
64
/// The underlying array of bytes, able to be directly accessed.
You can’t perform that action at this time.
0 commit comments