96 uint64_t t, uint32_t p );
uint32_t OTF_WBuffer_writeKeyValuePair_long(OTF_WBuffer *buffer, OTF_KeyValuePair *pair)
Append a KeyValuePair to the buffer (long format).
Definition: OTF_WBuffer.c:731
Definition: OTF_File.c:78
OTF_WBuffer * OTF_WBuffer_open(const char *filename, OTF_FileManager *manager)
Constructor - internal use only.
Definition: OTF_WBuffer.c:72
uint32_t OTF_WBuffer_writeKeyValueList_short(OTF_WBuffer *buffer, OTF_KeyValueList *list)
Append a KeyValueList to the buffer (short format).
Definition: OTF_WBuffer.c:809
uint32_t OTF_WBuffer_writeKeyValuePair_short(OTF_WBuffer *buffer, OTF_KeyValuePair *pair)
Append a KeyValuePair to the buffer (short format).
Definition: OTF_WBuffer.c:654
uint32_t pos
Next write position in buffer.
Definition: OTF_WBuffer.h:49
int OTF_WBuffer_setSize(OTF_WBuffer *wbuffer, size_t size)
Set the size of the buffer.
Definition: OTF_WBuffer.c:128
OTF_WBuffer * OTF_WBuffer_open_zlevel(const char *filename, OTF_FileManager *manager, OTF_FileCompression compression)
internal use
Definition: OTF_WBuffer.c:862
uint32_t OTF_WBuffer_writeBytes(OTF_WBuffer *wbuffer, const uint8_t *value, uint32_t len)
This function append an byte array in hex format to the write buffer.
Definition: OTF_WBuffer.c:616
uint32_t OTF_WBuffer_writeUint8(OTF_WBuffer *wbuffer, uint8_t value)
This function append an 8bit unsigned integer 'value' in hex format to the write buffer.
Definition: OTF_WBuffer.c:407
struct OTF_KeyValuePair_struct OTF_KeyValuePair
Object type which holds a key-value pair.
Definition: OTF_KeyValue.h:245
uint32_t OTF_WBuffer_writeUint64(OTF_WBuffer *wbuffer, uint64_t value)
This function append an 64bit unsigned integer 'value' in hex format to the write buffer...
Definition: OTF_WBuffer.c:550
uint32_t OTF_WBuffer_writeKeyValueList_long(OTF_WBuffer *buffer, OTF_KeyValueList *list)
Append a KeyValueList to the buffer (long format).
Definition: OTF_WBuffer.c:836
Provides a low-level API for accessing files.
uint32_t process
Current process inside this file buffer, necessary for state machine.
Definition: OTF_WBuffer.h:54
uint32_t OTF_WBuffer_writeKeyword(OTF_WBuffer *wbuffer, const char *keyword)
Append a key word to the write buffer.
Definition: OTF_WBuffer.c:313
uint32_t OTF_WBuffer_writeString(OTF_WBuffer *wbuffer, const char *string)
Append a string to the write buffer.
Definition: OTF_WBuffer.c:343
uint64_t time
Current time inside this file buffer, necessary for state machine.
Definition: OTF_WBuffer.h:59
uint32_t OTF_WBuffer_writeUint16(OTF_WBuffer *wbuffer, uint16_t value)
This function append an 16bit unsigned integer 'value' in hex format to the write buffer...
Definition: OTF_WBuffer.c:455
int OTF_WBuffer_guarantee(OTF_WBuffer *wbuffer, size_t space)
Ask the buffer to guarantee at least 'space' bytes at current writing position before the next flush ...
Definition: OTF_WBuffer.c:216
int OTF_WBuffer_flush(OTF_WBuffer *wbuffer)
Writes the buffer contents to 'file' and marks the buffer empty again.
Definition: OTF_WBuffer.c:194
int OTF_WBuffer_close(OTF_WBuffer *wbuffer)
Destructor - internal use only.
Definition: OTF_WBuffer.c:80
int OTF_WBuffer_setTimeAndProcess(OTF_WBuffer *wbuffer, uint64_t t, uint32_t p)
Set process state machine to 'p' and time stamp state machine to 't'.
Definition: OTF_WBuffer.c:249
Definition: OTF_WBuffer.h:36
Provides an additional list of key value pairs that can be added to records.
struct OTF_KeyValueList_struct OTF_KeyValueList
Object type which holds a key-value list.
Definition: OTF_KeyValue.h:242
uint32_t OTF_WBuffer_writeNewline(OTF_WBuffer *wbuffer)
Append a newline character to the buffer.
Definition: OTF_WBuffer.c:597
uint32_t OTF_WBuffer_writeUint32(OTF_WBuffer *wbuffer, uint32_t value)
This function append an unsigned integer 'value' in hex format to the write buffer.
Definition: OTF_WBuffer.c:503
file handles management structure
Definition: OTF_FileManager.c:32
Handles file naming issues.
Deals with all data type related issues.
uint32_t OTF_WBuffer_writeChar(OTF_WBuffer *wbuffer, const char character)
Append a char to the write buffer.
Definition: OTF_WBuffer.c:386
void OTF_WBuffer_setZBufferSize(OTF_WBuffer *wbuffer, uint32_t size)
Set the size of the zbuffer.
Definition: OTF_WBuffer.c:158
uint32_t size
Current size of buffer.
Definition: OTF_WBuffer.h:46
char * buffer
Begin of the actual buffer.
Definition: OTF_WBuffer.h:43