Skip to main content

buffer_reserve

Function buffer_reserve 

Source
pub fn buffer_reserve(buffer: &mut PlatformBuffer, needed: usize) -> bool
Expand description

Reserves bounded capacity for a platform buffer.

§Parameters

§Returns

Returns true when the condition checked by crate::platform::buffer_reserve holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::platform::buffer_reserve(&mut [], todo!());
  • crate::platform for adjacent helpers that share the same runtime surface.