|
navit
0.5.3-trunk
|
Functions | |
| void | save_buffer (char *filename, struct buffer *b, long long offset) |
| Saves a buffer to a file. More... | |
| int | load_buffer (char *filename, struct buffer *b, long long offset, long long size) |
| Loads a buffer from a file. More... | |
| long long | sizeof_buffer (char *filename) |
| Determines size of buffer for file. More... | |
| int load_buffer | ( | char * | filename, |
| struct buffer * | b, | ||
| long long | offset, | ||
| long long | size | ||
| ) |
Loads a buffer from a file.
This function loads a buffer from a file.
| filename | The name of the while to where the buffer is loaded from. |
| b | Buffer in which file is loaded. |
| offset |
References buffer::base, dbg, dbg_assert, filename, lvl_warning, buffer::malloced, offset, size, and buffer::size.
Referenced by maptool_load_node_table(), osm_count_references(), and osm_resolve_coords_and_split_at_intersections().
| void save_buffer | ( | char * | filename, |
| struct buffer * | b, | ||
| long long | offset | ||
| ) |
Saves a buffer to a file.
This function saves a buffer to a file.
| filename | The name of the while to where the buffer is saved to. |
| b | Buffer which is saved to file. |
| offset |
References buffer::base, dbg_assert, filename, offset, and buffer::size.
Referenced by flush_nodes(), and osm_count_references().
| long long sizeof_buffer | ( | char * | filename | ) |
Determines size of buffer for file.
This function determines the size of the buffer required to read a file.
| filename | Name of file for which the required size of the buffer is determined |
References filename.
Referenced by maptool_load_node_table().