fn write_offset_at_pos( buf: &mut [u8], start_pos: usize, value: usize, nbytes: u8, )
Write little-endian integer to buffer at a specific position