mirror of
https://github.com/Noratrieb/crimes.git
synced 2026-01-14 17:15:01 +01:00
oops should have added size asserts
This commit is contained in:
parent
25efb79783
commit
ac2f87f81a
1 changed files with 2 additions and 2 deletions
|
|
@ -8,9 +8,9 @@ use std::mem::MaybeUninit;
|
||||||
compile_error!("not supported");
|
compile_error!("not supported");
|
||||||
|
|
||||||
// a pointer sized buffer used to store a single pointer
|
// a pointer sized buffer used to store a single pointer
|
||||||
type Buf = MaybeUninit<[u8; 1]>;
|
type Buf = MaybeUninit<[u8; 8]>;
|
||||||
// a double pointer sized buffer used to store two pointers and rip out the center
|
// a double pointer sized buffer used to store two pointers and rip out the center
|
||||||
type DBuf = MaybeUninit<[u8; 2]>;
|
type DBuf = MaybeUninit<[u8; 16]>;
|
||||||
|
|
||||||
/// just a pointer, doesn't matter which one
|
/// just a pointer, doesn't matter which one
|
||||||
type Ptr = *const u8;
|
type Ptr = *const u8;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue