Function itoap::write_to_ptr[][src]

pub unsafe fn write_to_ptr<V: Integer>(buf: *mut u8, value: V) -> usize

Write integer to the buffer pointer directly.

This is fast operation, but does not check any safety.

Safety

Behaviour is undefined if any of the following conditions are violated:

  • buf must point to sufficient valid bytes of memory to write value
  • buf must be aligned with core::mem::align_of::<u8>() bytes