Function polyline_ffi::encode_coordinates_ffi [] [src]

pub extern fn encode_coordinates_ffi(coords: Array,
                                     precision: uint32_t)
                                     -> *mut c_char

Convert an array of coordinates into a Polyline

Callers must pass two arguments:

A decoding failure will return one of the following:

Implementations calling this function must call drop_cstring with the returned c_char pointer, in order to free the memory it allocates.

Safety

This function is unsafe because it accesses a raw pointer which could contain arbitrary data