OpenMPI  0.1.1
OTF_WBuffer.h File Reference

Provides write access to trace buffers. More...

#include <stdlib.h>
#include <stdio.h>
#include "OTF_inttypes.h"
#include "OTF_File.h"
#include "OTF_Filenames.h"
#include "OTF_KeyValue.h"

Go to the source code of this file.

Data Structures

struct  struct_OTF_WBuffer
 

Typedefs

typedef struct struct_OTF_WBuffer OTF_WBuffer
 

Functions

OTF_WBufferOTF_WBuffer_open (const char *filename, OTF_FileManager *manager)
 Constructor - internal use only.
 
int OTF_WBuffer_close (OTF_WBuffer *wbuffer)
 Destructor - internal use only.
 
int OTF_WBuffer_setSize (OTF_WBuffer *wbuffer, size_t size)
 Set the size of the buffer. More...
 
void OTF_WBuffer_setZBufferSize (OTF_WBuffer *wbuffer, uint32_t size)
 Set the size of the zbuffer. More...
 
int OTF_WBuffer_flush (OTF_WBuffer *wbuffer)
 Writes the buffer contents to 'file' and marks the buffer empty again. More...
 
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 is necessary. More...
 
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'. More...
 
uint32_t OTF_WBuffer_writeKeyword (OTF_WBuffer *wbuffer, const char *keyword)
 Append a key word to the write buffer. More...
 
uint32_t OTF_WBuffer_writeString (OTF_WBuffer *wbuffer, const char *string)
 Append a string to the write buffer. More...
 
uint32_t OTF_WBuffer_writeChar (OTF_WBuffer *wbuffer, const char character)
 Append a char to the write buffer. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
uint32_t OTF_WBuffer_writeNewline (OTF_WBuffer *wbuffer)
 Append a newline character to the buffer. More...
 
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. More...
 
uint32_t OTF_WBuffer_writeKeyValuePair_short (OTF_WBuffer *buffer, OTF_KeyValuePair *pair)
 Append a KeyValuePair to the buffer (short format). More...
 
uint32_t OTF_WBuffer_writeKeyValuePair_long (OTF_WBuffer *buffer, OTF_KeyValuePair *pair)
 Append a KeyValuePair to the buffer (long format). More...
 
uint32_t OTF_WBuffer_writeKeyValueList_short (OTF_WBuffer *buffer, OTF_KeyValueList *list)
 Append a KeyValueList to the buffer (short format). More...
 
uint32_t OTF_WBuffer_writeKeyValueList_long (OTF_WBuffer *buffer, OTF_KeyValueList *list)
 Append a KeyValueList to the buffer (long format). More...
 
OTF_WBufferOTF_WBuffer_open_zlevel (const char *filename, OTF_FileManager *manager, OTF_FileCompression compression)
 internal use
 

Detailed Description

Provides write access to trace buffers.

Function Documentation

int OTF_WBuffer_flush ( OTF_WBuffer wbuffer)

Writes the buffer contents to 'file' and marks the buffer empty again.

References struct_OTF_WBuffer::buffer, OTF_File_write(), and struct_OTF_WBuffer::pos.

Referenced by OTF_WBuffer_close(), OTF_WBuffer_guarantee(), and OTF_WStream_flush().

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 is necessary.

Return 1 on success.

References OTF_WBuffer_flush(), struct_OTF_WBuffer::pos, and struct_OTF_WBuffer::size.

Referenced by OTF_WBuffer_writeBytes(), OTF_WBuffer_writeChar(), OTF_WBuffer_writeKeyword(), OTF_WBuffer_writeNewline(), OTF_WBuffer_writeString(), OTF_WBuffer_writeUint16(), OTF_WBuffer_writeUint32(), OTF_WBuffer_writeUint64(), and OTF_WBuffer_writeUint8().

int OTF_WBuffer_setSize ( OTF_WBuffer wbuffer,
size_t  size 
)
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'.

If 'p' is the current process and 't' is the current time stamp nothing is done. If the process has changed a process record will be written. If the time has changed the new time stamp and the current process will be written. If 't' is lower than the current time stamp it is regarded as an error. Return != 1 on success and 0 on error.

References OTF_WBuffer_writeChar(), OTF_WBuffer_writeKeyword(), OTF_WBuffer_writeNewline(), OTF_WBuffer_writeString(), OTF_WBuffer_writeUint32(), OTF_WBuffer_writeUint64(), struct_OTF_WBuffer::process, and struct_OTF_WBuffer::time.

Referenced by OTF_WStream_writeBeginCollectiveOperationKV(), OTF_WStream_writeBeginCollopSnapshotKV(), OTF_WStream_writeBeginFileOperationKV(), OTF_WStream_writeBeginFileOpSnapshotKV(), OTF_WStream_writeBeginProcessKV(), OTF_WStream_writeCollectiveOperationKV(), OTF_WStream_writeCollopSummaryKV(), OTF_WStream_writeCounterKV(), OTF_WStream_writeEndCollectiveOperationKV(), OTF_WStream_writeEndFileOperationKV(), OTF_WStream_writeEndProcessKV(), OTF_WStream_writeEnterKV(), OTF_WStream_writeEnterSnapshotKV(), OTF_WStream_writeEventCommentKV(), OTF_WStream_writeFileGroupOperationSummaryKV(), OTF_WStream_writeFileOperationKV(), OTF_WStream_writeFileOperationSummaryKV(), OTF_WStream_writeFunctionGroupSummaryKV(), OTF_WStream_writeFunctionSummaryKV(), OTF_WStream_writeLeaveKV(), OTF_WStream_writeMessageSummaryKV(), OTF_WStream_writeNoOpKV(), OTF_WStream_writeOpenFileSnapshotKV(), OTF_WStream_writeRecvMsgKV(), OTF_WStream_writeRMAEndKV(), OTF_WStream_writeRMAGetKV(), OTF_WStream_writeRMAPutKV(), OTF_WStream_writeRMAPutRemoteEndKV(), OTF_WStream_writeSendMsgKV(), OTF_WStream_writeSendSnapshotKV(), OTF_WStream_writeSnapshotCommentKV(), and OTF_WStream_writeSummaryCommentKV().

void OTF_WBuffer_setZBufferSize ( OTF_WBuffer wbuffer,
uint32_t  size 
)
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.

Buffer flush is done if necessary. The return value is the number of written characters.

References struct_OTF_WBuffer::buffer, OTF_WBuffer_guarantee(), and struct_OTF_WBuffer::pos.

Referenced by OTF_WBuffer_writeKeyValuePair_long(), and OTF_WBuffer_writeKeyValuePair_short().

uint32_t OTF_WBuffer_writeChar ( OTF_WBuffer wbuffer,
const char  character 
)
uint32_t OTF_WBuffer_writeKeyValueList_long ( OTF_WBuffer buffer,
OTF_KeyValueList list 
)

Append a KeyValueList to the buffer (long format).

Return the number of bytes written.

References OTF_KeyValueList_reset(), and OTF_WBuffer_writeKeyValuePair_long().

Referenced by OTF_WStream_writeBeginCollectiveOperationKV(), OTF_WStream_writeBeginCollopSnapshotKV(), OTF_WStream_writeBeginFileOperationKV(), OTF_WStream_writeBeginFileOpSnapshotKV(), OTF_WStream_writeBeginProcessKV(), OTF_WStream_writeCollectiveOperationKV(), OTF_WStream_writeCollopSummaryKV(), OTF_WStream_writeCounterKV(), OTF_WStream_writeDefAttributeListKV(), OTF_WStream_writeDefCollectiveOperationKV(), OTF_WStream_writeDefCounterAssignments(), OTF_WStream_writeDefCounterGroupKV(), OTF_WStream_writeDefCounterKV(), OTF_WStream_writeDefCreatorKV(), OTF_WStream_writeDefFileGroupKV(), OTF_WStream_writeDefFileKV(), OTF_WStream_writeDefFunctionGroupKV(), OTF_WStream_writeDefFunctionKV(), OTF_WStream_writeDefinitionCommentKV(), OTF_WStream_writeDefKeyValueKV(), OTF_WStream_writeDefMarkerKV(), OTF_WStream_writeDefProcessGroupKV(), OTF_WStream_writeDefProcessKV(), OTF_WStream_writeDefProcessOrGroupAttributesKV(), OTF_WStream_writeDefProcessSubstitutes(), OTF_WStream_writeDefSclFileKV(), OTF_WStream_writeDefSclKV(), OTF_WStream_writeDefTimeRange(), OTF_WStream_writeDefTimerResolutionKV(), OTF_WStream_writeEndCollectiveOperationKV(), OTF_WStream_writeEndFileOperationKV(), OTF_WStream_writeEndProcessKV(), OTF_WStream_writeEnterKV(), OTF_WStream_writeEnterSnapshotKV(), OTF_WStream_writeEventCommentKV(), OTF_WStream_writeFileGroupOperationSummaryKV(), OTF_WStream_writeFileOperationKV(), OTF_WStream_writeFileOperationSummaryKV(), OTF_WStream_writeFunctionGroupSummaryKV(), OTF_WStream_writeFunctionSummaryKV(), OTF_WStream_writeLeaveKV(), OTF_WStream_writeMarkerKV(), OTF_WStream_writeMessageSummaryKV(), OTF_WStream_writeNoOpKV(), OTF_WStream_writeOpenFileSnapshotKV(), OTF_WStream_writeRecvMsgKV(), OTF_WStream_writeRMAEndKV(), OTF_WStream_writeRMAGetKV(), OTF_WStream_writeRMAPutKV(), OTF_WStream_writeRMAPutRemoteEndKV(), OTF_WStream_writeSendMsgKV(), OTF_WStream_writeSendSnapshotKV(), OTF_WStream_writeSnapshotCommentKV(), and OTF_WStream_writeSummaryCommentKV().

uint32_t OTF_WBuffer_writeKeyValueList_short ( OTF_WBuffer buffer,
OTF_KeyValueList list 
)

Append a KeyValueList to the buffer (short format).

Return the number of bytes written.

References OTF_KeyValueList_reset(), and OTF_WBuffer_writeKeyValuePair_short().

Referenced by OTF_WStream_writeBeginCollectiveOperationKV(), OTF_WStream_writeBeginCollopSnapshotKV(), OTF_WStream_writeBeginFileOperationKV(), OTF_WStream_writeBeginFileOpSnapshotKV(), OTF_WStream_writeBeginProcessKV(), OTF_WStream_writeCollectiveOperationKV(), OTF_WStream_writeCollopSummaryKV(), OTF_WStream_writeCounterKV(), OTF_WStream_writeDefAttributeListKV(), OTF_WStream_writeDefCollectiveOperationKV(), OTF_WStream_writeDefCounterAssignments(), OTF_WStream_writeDefCounterGroupKV(), OTF_WStream_writeDefCounterKV(), OTF_WStream_writeDefCreatorKV(), OTF_WStream_writeDefFileGroupKV(), OTF_WStream_writeDefFileKV(), OTF_WStream_writeDefFunctionGroupKV(), OTF_WStream_writeDefFunctionKV(), OTF_WStream_writeDefinitionCommentKV(), OTF_WStream_writeDefKeyValueKV(), OTF_WStream_writeDefMarkerKV(), OTF_WStream_writeDefProcessGroupKV(), OTF_WStream_writeDefProcessKV(), OTF_WStream_writeDefProcessOrGroupAttributesKV(), OTF_WStream_writeDefProcessSubstitutes(), OTF_WStream_writeDefSclFileKV(), OTF_WStream_writeDefSclKV(), OTF_WStream_writeDefTimeRange(), OTF_WStream_writeDefTimerResolutionKV(), OTF_WStream_writeEndCollectiveOperationKV(), OTF_WStream_writeEndFileOperationKV(), OTF_WStream_writeEndProcessKV(), OTF_WStream_writeEnterKV(), OTF_WStream_writeEnterSnapshotKV(), OTF_WStream_writeEventCommentKV(), OTF_WStream_writeFileGroupOperationSummaryKV(), OTF_WStream_writeFileOperationKV(), OTF_WStream_writeFileOperationSummaryKV(), OTF_WStream_writeFunctionGroupSummaryKV(), OTF_WStream_writeFunctionSummaryKV(), OTF_WStream_writeLeaveKV(), OTF_WStream_writeMarkerKV(), OTF_WStream_writeMessageSummaryKV(), OTF_WStream_writeNoOpKV(), OTF_WStream_writeOpenFileSnapshotKV(), OTF_WStream_writeRecvMsgKV(), OTF_WStream_writeRMAEndKV(), OTF_WStream_writeRMAGetKV(), OTF_WStream_writeRMAPutKV(), OTF_WStream_writeRMAPutRemoteEndKV(), OTF_WStream_writeSendMsgKV(), OTF_WStream_writeSendSnapshotKV(), OTF_WStream_writeSnapshotCommentKV(), and OTF_WStream_writeSummaryCommentKV().

uint32_t OTF_WBuffer_writeKeyValuePair_long ( OTF_WBuffer buffer,
OTF_KeyValuePair pair 
)
uint32_t OTF_WBuffer_writeKeyValuePair_short ( OTF_WBuffer buffer,
OTF_KeyValuePair pair 
)
uint32_t OTF_WBuffer_writeKeyword ( OTF_WBuffer wbuffer,
const char *  keyword 
)

Append a key word to the write buffer.

A key word is a string without quotes. Buffer flush is done if necessary. Return the number of bytes written.

References struct_OTF_WBuffer::buffer, OTF_WBuffer_guarantee(), and struct_OTF_WBuffer::pos.

Referenced by OTF_WBuffer_setTimeAndProcess(), OTF_WBuffer_writeKeyValuePair_long(), OTF_WBuffer_writeKeyValuePair_short(), OTF_WStream_writeBeginCollectiveOperationKV(), OTF_WStream_writeBeginCollopSnapshotKV(), OTF_WStream_writeBeginFileOperationKV(), OTF_WStream_writeBeginFileOpSnapshotKV(), OTF_WStream_writeBeginProcessKV(), OTF_WStream_writeCollectiveOperationKV(), OTF_WStream_writeCollopSummaryKV(), OTF_WStream_writeCounterKV(), OTF_WStream_writeDefAttributeListKV(), OTF_WStream_writeDefCollectiveOperationKV(), OTF_WStream_writeDefCounterAssignments(), OTF_WStream_writeDefCounterGroupKV(), OTF_WStream_writeDefCounterKV(), OTF_WStream_writeDefCreatorKV(), OTF_WStream_writeDefFileGroupKV(), OTF_WStream_writeDefFileKV(), OTF_WStream_writeDefFunctionGroupKV(), OTF_WStream_writeDefFunctionKV(), OTF_WStream_writeDefinitionCommentKV(), OTF_WStream_writeDefKeyValueKV(), OTF_WStream_writeDefMarkerKV(), OTF_WStream_writeDefProcessGroupKV(), OTF_WStream_writeDefProcessKV(), OTF_WStream_writeDefProcessOrGroupAttributesKV(), OTF_WStream_writeDefProcessSubstitutes(), OTF_WStream_writeDefSclFileKV(), OTF_WStream_writeDefSclKV(), OTF_WStream_writeDefTimeRange(), OTF_WStream_writeDefTimerResolutionKV(), OTF_WStream_writeEndCollectiveOperationKV(), OTF_WStream_writeEndFileOperationKV(), OTF_WStream_writeEndProcessKV(), OTF_WStream_writeEnterKV(), OTF_WStream_writeEnterSnapshotKV(), OTF_WStream_writeEventCommentKV(), OTF_WStream_writeFileGroupOperationSummaryKV(), OTF_WStream_writeFileOperationKV(), OTF_WStream_writeFileOperationSummaryKV(), OTF_WStream_writeFunctionGroupSummaryKV(), OTF_WStream_writeFunctionSummaryKV(), OTF_WStream_writeLeaveKV(), OTF_WStream_writeMarkerKV(), OTF_WStream_writeMessageSummaryKV(), OTF_WStream_writeNoOpKV(), OTF_WStream_writeOpenFileSnapshotKV(), OTF_WStream_writeRecvMsgKV(), OTF_WStream_writeRMAEndKV(), OTF_WStream_writeRMAGetKV(), OTF_WStream_writeRMAPutKV(), OTF_WStream_writeRMAPutRemoteEndKV(), OTF_WStream_writeSendMsgKV(), OTF_WStream_writeSendSnapshotKV(), OTF_WStream_writeSnapshotCommentKV(), and OTF_WStream_writeSummaryCommentKV().

uint32_t OTF_WBuffer_writeNewline ( OTF_WBuffer wbuffer)

Append a newline character to the buffer.

Buffer flush is done if necessary. Return the number of bytes written.

References struct_OTF_WBuffer::buffer, OTF_WBuffer_guarantee(), and struct_OTF_WBuffer::pos.

Referenced by OTF_MasterControl_write(), OTF_WBuffer_setTimeAndProcess(), OTF_WBuffer_writeKeyValuePair_long(), OTF_WBuffer_writeKeyValuePair_short(), OTF_WStream_writeBeginCollectiveOperationKV(), OTF_WStream_writeBeginCollopSnapshotKV(), OTF_WStream_writeBeginFileOperationKV(), OTF_WStream_writeBeginFileOpSnapshotKV(), OTF_WStream_writeBeginProcessKV(), OTF_WStream_writeCollectiveOperationKV(), OTF_WStream_writeCollopSummaryKV(), OTF_WStream_writeCounterKV(), OTF_WStream_writeDefAttributeListKV(), OTF_WStream_writeDefCollectiveOperationKV(), OTF_WStream_writeDefCounterAssignments(), OTF_WStream_writeDefCounterGroupKV(), OTF_WStream_writeDefCounterKV(), OTF_WStream_writeDefCreatorKV(), OTF_WStream_writeDefFileGroupKV(), OTF_WStream_writeDefFileKV(), OTF_WStream_writeDefFunctionGroupKV(), OTF_WStream_writeDefFunctionKV(), OTF_WStream_writeDefinitionCommentKV(), OTF_WStream_writeDefKeyValueKV(), OTF_WStream_writeDefMarkerKV(), OTF_WStream_writeDefProcessGroupKV(), OTF_WStream_writeDefProcessKV(), OTF_WStream_writeDefProcessOrGroupAttributesKV(), OTF_WStream_writeDefProcessSubstitutes(), OTF_WStream_writeDefSclFileKV(), OTF_WStream_writeDefSclKV(), OTF_WStream_writeDefTimeRange(), OTF_WStream_writeDefTimerResolutionKV(), OTF_WStream_writeEndCollectiveOperationKV(), OTF_WStream_writeEndFileOperationKV(), OTF_WStream_writeEndProcessKV(), OTF_WStream_writeEnterKV(), OTF_WStream_writeEnterSnapshotKV(), OTF_WStream_writeEventCommentKV(), OTF_WStream_writeFileGroupOperationSummaryKV(), OTF_WStream_writeFileOperationKV(), OTF_WStream_writeFileOperationSummaryKV(), OTF_WStream_writeFunctionGroupSummaryKV(), OTF_WStream_writeFunctionSummaryKV(), OTF_WStream_writeLeaveKV(), OTF_WStream_writeMarkerKV(), OTF_WStream_writeMessageSummaryKV(), OTF_WStream_writeNoOpKV(), OTF_WStream_writeOpenFileSnapshotKV(), OTF_WStream_writeRecvMsgKV(), OTF_WStream_writeRMAEndKV(), OTF_WStream_writeRMAGetKV(), OTF_WStream_writeRMAPutKV(), OTF_WStream_writeRMAPutRemoteEndKV(), OTF_WStream_writeSendMsgKV(), OTF_WStream_writeSendSnapshotKV(), OTF_WStream_writeSnapshotCommentKV(), and OTF_WStream_writeSummaryCommentKV().

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.

Buffer flush is done if necessary. The return value is the number of written characters.

References struct_OTF_WBuffer::buffer, OTF_WBuffer_guarantee(), and struct_OTF_WBuffer::pos.

Referenced by OTF_WBuffer_writeKeyValuePair_long(), and OTF_WBuffer_writeKeyValuePair_short().

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.

Buffer flush is done if necessary. The return value is the number of written characters.

References struct_OTF_WBuffer::buffer, OTF_WBuffer_guarantee(), and struct_OTF_WBuffer::pos.

Referenced by OTF_MasterControl_write(), OTF_WBuffer_setTimeAndProcess(), OTF_WBuffer_writeKeyValuePair_long(), OTF_WBuffer_writeKeyValuePair_short(), OTF_WStream_writeBeginCollectiveOperationKV(), OTF_WStream_writeBeginCollopSnapshotKV(), OTF_WStream_writeBeginFileOperationKV(), OTF_WStream_writeBeginFileOpSnapshotKV(), OTF_WStream_writeCollectiveOperationKV(), OTF_WStream_writeCollopSummaryKV(), OTF_WStream_writeCounterKV(), OTF_WStream_writeDefAttributeListKV(), OTF_WStream_writeDefCollectiveOperationKV(), OTF_WStream_writeDefCounterAssignments(), OTF_WStream_writeDefCounterGroupKV(), OTF_WStream_writeDefCounterKV(), OTF_WStream_writeDefFileGroupKV(), OTF_WStream_writeDefFileKV(), OTF_WStream_writeDefFunctionGroupKV(), OTF_WStream_writeDefFunctionKV(), OTF_WStream_writeDefKeyValueKV(), OTF_WStream_writeDefMarkerKV(), OTF_WStream_writeDefProcessGroupKV(), OTF_WStream_writeDefProcessKV(), OTF_WStream_writeDefProcessOrGroupAttributesKV(), OTF_WStream_writeDefProcessSubstitutes(), OTF_WStream_writeDefSclFileKV(), OTF_WStream_writeDefSclKV(), OTF_WStream_writeEndFileOperationKV(), OTF_WStream_writeEnterKV(), OTF_WStream_writeEnterSnapshotKV(), OTF_WStream_writeFileGroupOperationSummaryKV(), OTF_WStream_writeFileOperationKV(), OTF_WStream_writeFileOperationSummaryKV(), OTF_WStream_writeFunctionGroupSummaryKV(), OTF_WStream_writeFunctionSummaryKV(), OTF_WStream_writeLeaveKV(), OTF_WStream_writeMarkerKV(), OTF_WStream_writeMessageSummaryKV(), OTF_WStream_writeOpenFileSnapshotKV(), OTF_WStream_writeRecvMsgKV(), OTF_WStream_writeRMAEndKV(), OTF_WStream_writeRMAGetKV(), OTF_WStream_writeRMAPutKV(), OTF_WStream_writeRMAPutRemoteEndKV(), OTF_WStream_writeSendMsgKV(), and OTF_WStream_writeSendSnapshotKV().

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.

Buffer flush is done if necessary. The return value is the number of written characters.

References struct_OTF_WBuffer::buffer, OTF_WBuffer_guarantee(), and struct_OTF_WBuffer::pos.

Referenced by OTF_WBuffer_writeKeyValuePair_long(), and OTF_WBuffer_writeKeyValuePair_short().