Skip to main content

krypteia_init

Function krypteia_init 

Source
pub unsafe fn krypteia_init(_base: *mut u8, _size: usize) -> i32
Expand description

No-op initialiser for os-alloc mode (the platform heap needs no setup).

§Parameters

  • _base: ignored (the OS owns the heap region).
  • _size: ignored.

§Returns

Always 0 (success), matching the self-alloc krypteia_init contract (0 = ok, -1 = failure) so FFI callers can treat both backends identically.

§Safety

Always safe; arguments are ignored.