pub fn buffer_reserve(buffer: &mut PlatformBuffer, needed: usize) -> boolExpand description
Reserves bounded capacity for a platform buffer.
§Parameters
buffer: Input consumed bycrate::platform::buffer_reserve.needed: Input consumed bycrate::platform::buffer_reserve.
§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!());§Related
crate::platformfor adjacent helpers that share the same runtime surface.