#include <ntar.h>
These callbacks are useful when the application wants to read and write data from non-standard files, or compressed/cripted files, or directly to memory.
Data Fields | |
ntar_read_handler | read_handler |
This function is called by ntar to read some data out of the underlying storage. It is necessary to define this function when the file is opened in read mode. | |
ntar_write_handler | write_handler |
This function is called by ntar to write some data to the underlying storage. It is necessary to define this function when the file is opened in write mode. | |
ntar_seek_handler | seek_handler |
This function is used by ntar in various occasions when the file is opened in both read or write mode. It is usually used to perform backwards seeks in the file, block skipping, and to rewrite some fields in the trace file. This function is optional (in case it's missing, it should be set to NULL). | |
void * | handle |
Opaque handler defined by the application defining the read/write/seek handlers. This pointer is passed untouched by the library to the handlers as their first parameter. The user usually uses this opaque handle to store a pointer to some sort of descriptor (e.g. the typical FILE* pointer) of the underlying file. |
|
Opaque handler defined by the application defining the read/write/seek handlers. This pointer is passed untouched by the library to the handlers as their first parameter. The user usually uses this opaque handle to store a pointer to some sort of descriptor (e.g. the typical FILE* pointer) of the underlying file.
|
|
This function is called by ntar to read some data out of the underlying storage. It is necessary to define this function when the file is opened in read mode.
|
|
This function is used by ntar in various occasions when the file is opened in both read or write mode. It is usually used to perform backwards seeks in the file, block skipping, and to rewrite some fields in the trace file. This function is optional (in case it's missing, it should be set to NULL).
|
|
This function is called by ntar to write some data to the underlying storage. It is necessary to define this function when the file is opened in write mode.
|
NTAR documentation. Copyright (c) 2004 - 2005 Condor Engineering, Inc. All rights reserved.