|
Functions |
int | write_option_string (ntar_option *option, void *buffer, size_t *buffer_size) |
| This fcn writes a string option in a caller provided buffer.
|
int | write_option_raw (ntar_option *option, void *buffer, size_t *buffer_size, void *raw_data, u_int16 raw_data_size) |
| This fcn writes a raw buffer option in a caller provided buffer.
|
int | write_option_uint64 (ntar_option *option, void *buffer, size_t *buffer_size) |
| This fcn writes a 64-bit integer option in a caller provided buffer.
|
int | write_option_uint32 (ntar_option *option, void *buffer, size_t *buffer_size) |
| This fcn writes a 32-bit integer option in a caller provided buffer.
|
int | write_null_option (void *buffer, size_t *buffer_size) |
| This fcn writes the NULL (aka END OPTION) in a buffer.
|
int | read_option_string (option_header *oh, int byte_order, void *buffer, size_t *buffer_length) |
| This function reads a string out of an option and copies it to a caller provided buffer.
|
int | read_option_uint64 (option_header *oh, int byte_order, void *buffer, size_t *buffer_length) |
| This function reads a 64-bit integer out of an option and copies it to a caller provided buffer in host byte order.
|
int | read_option_uint32 (option_header *oh, int byte_order, void *buffer, size_t *buffer_length) |
| This function reads a 32-bit integer out of an option and copies it to a caller provided buffer in host byte order.
|
int | read_option_raw (option_header *oh, int byte_order, void *buffer, size_t *buffer_length) |
| This function reads the data of an option as a raw buffer, and copies it to a caller provided buffer without applying any byte order fixup.
|
int | reallocate_memory (void **buffer, size_t *buffer_size, size_t new_size) |
| This fcn reallocates a given buffer if it's too small.
|
int | ntar_convert_errno (int local_errno) |
| This fcn converts an errno value to the corresponding ntar error code.
|
int | ntar_native_file_write (void *handle, void *buffer, size_t size) |
int | ntar_native_file_read (void *handle, void *buffer, size_t size, size_t *read_bytes) |
int | ntar_native_file_seek (void *handle, ntar_foff new_position, int origin, ntar_foff *old_position) |
int | ntar_native_file_close (ntar_file_handlers file_handlers) |
int | ntar_native_file_open (char *filename, char *flags, ntar_file_handlers *file_handlers) |