|
gwenhywfar 5.12.0
|
#include <gwenhywfar/gwenhywfarapi.h>#include <gwenhywfar/types.h>#include <stdio.h>#include <string.h>
Go to the source code of this file.
Macros | |
| #define | GWEN_BUFFER_MAX_BOOKMARKS 64 |
| #define | GWEN_BUFFER_MODE_ABORT_ON_MEMFULL 0x0002 |
| #define | GWEN_BUFFER_MODE_DEFAULT |
| #define | GWEN_BUFFER_MODE_DYNAMIC 0x0001 |
| #define | GWEN_BUFFER_MODE_READONLY 0x0020 |
Typedefs | |
| typedef struct GWEN_BUFFER | GWEN_BUFFER |
| A dynamically resizeable text buffer. | |
Variables | |
| GWENHYWFAR_API const char * | fmt |
| #define GWEN_BUFFER_MAX_BOOKMARKS 64 |
Definition at line 64 of file buffer.h.
Referenced by GWEN_Buffer_AdjustBookmarks(), GWEN_Buffer_Dump(), GWEN_Buffer_dup(), GWEN_Buffer_GetBookmark(), and GWEN_Buffer_SetBookmark().
| #define GWEN_BUFFER_MODE_ABORT_ON_MEMFULL 0x0002 |
Definition at line 67 of file buffer.h.
Referenced by GWEN_Buffer_AllocRoom(), GWEN_Buffer_AppendBuffer(), GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendBytes(), GWEN_Buffer_Crop(), GWEN_Buffer_Dump(), GWEN_Buffer_FillLeftWithBytes(), GWEN_Buffer_FillWithBytes(), GWEN_Buffer_InsertByte(), GWEN_Buffer_InsertBytes(), GWEN_Buffer_InsertRoom(), GWEN_Buffer_RemoveRoom(), and GWEN_Buffer_ReplaceBytes().
| #define GWEN_BUFFER_MODE_DEFAULT |
| #define GWEN_BUFFER_MODE_DYNAMIC 0x0001 |
Definition at line 66 of file buffer.h.
Referenced by GWEN_Buffer_AllocRoom(), GWEN_Buffer_Dump(), GWEN_Buffer_GetSize(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_XMLContext_ReadFromString(), and GWEN_XMLNode_fromString().
| #define GWEN_BUFFER_MODE_READONLY 0x0020 |
Definition at line 68 of file buffer.h.
Referenced by GWEN_Buffer_AllocRoom(), GWEN_Buffer_AppendBuffer(), GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendBytes(), GWEN_Buffer_Crop(), GWEN_Buffer_Dump(), GWEN_Buffer_FillLeftWithBytes(), GWEN_Buffer_FillWithBytes(), GWEN_Buffer_InsertByte(), GWEN_Buffer_InsertBytes(), GWEN_Buffer_InsertRoom(), GWEN_Buffer_RemoveRoom(), GWEN_Buffer_ReplaceBytes(), GWEN_XMLContext_ReadFromString(), and GWEN_XMLNode_fromString().
| GWENHYWFAR_API void GWEN_Buffer_AddMode | ( | GWEN_BUFFER * | bf, |
| uint32_t | mode ) |
Adds the give mode to the current mode of the buffer (such as GWEN_BUFFER_MODE_DYNAMIC).
Definition at line 203 of file buffer.c.
Referenced by GWEN_XMLContext_ReadFromString(), and GWEN_XMLNode_fromString().

| GWENHYWFAR_API int GWEN_Buffer_AdjustUsedBytes | ( | GWEN_BUFFER * | bf | ) |
The functions GWEN_Buffer_IncrementPos and GWEN_Buffer_DecrementPos only modify the internal position pointer. This function here adjusts the number of used bytes to just before the internal position pointer. This is often used to avoid copying, like in the following example:
Definition at line 468 of file buffer.c.
References DBG_DEBUG, DBG_ERROR, GWEN_ERROR_BUFFER_OVERFLOW, and GWEN_LOGDOMAIN.
Referenced by _addRandomBytes(), _decode(), _encode(), _writeTagToBuffer(), GWEN_Buffer_AppendArgs(), GWEN_Crypt_TokenFile__Decipher(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenOHBCI__DecryptFile(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgrKeys_DecryptKey(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_CryptMgrKeys_VerifyData(), GWEN_Gui_ConvertString(), GWEN_Gui_StdPrintf(), GWEN_MsgEngine__WriteValue(), GWEN_Sar_ExtractAndDigestFileDir(), GWEN_Sar_ExtractAndDigestFileLink(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_ScanFile(), GWEN_Sar_Verify(), GWEN_SmallTresor_Decrypt(), GWEN_SmallTresor_Encrypt(), GWEN_SyncIo_Buffered_ReadLineToBuffer(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Tls__readFile(), GWEN_Tag16_StartTagInBuffer(), GWEN_Text_UnescapeXmlToBuffer(), readFile(), and readFile().

| GWENHYWFAR_API int GWEN_Buffer_AllocRoom | ( | GWEN_BUFFER * | bf, |
| uint32_t | size ) |
Make sure that the buffer has enough room for the given bytes.
Definition at line 285 of file buffer.c.
References DBG_ERROR, GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_DYNAMIC, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_BUFFER_OVERFLOW, GWEN_ERROR_MEMORY_FULL, GWEN_ERROR_PERMISSIONS, GWEN_LOGDOMAIN, GWEN_Memory_malloc(), GWEN_Memory_realloc(), and NULL.
Referenced by _addRandomBytes(), _decode(), _encode(), _writeTagToBuffer(), GWEN_Buffer_AppendArgs(), GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendBytes(), GWEN_Buffer_FillWithBytes(), GWEN_Buffer_InsertRoom(), GWEN_Buffer_ReserveBytes(), GWEN_Crypt_TokenFile__Sign(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_Gui_ConvertString(), GWEN_Gui_StdPrintf(), GWEN_MsgEngine__WriteValue(), GWEN_Path_AppendPathElement(), GWEN_Sar_ScanFile(), GWEN_SmallTresor_Decrypt(), GWEN_SmallTresor_Encrypt(), GWEN_SyncIo_Buffered_ReadLineToBuffer(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Tls__readFile(), GWEN_Tag16_StartTagInBuffer(), readFile(), and readFile().


| GWENHYWFAR_API int GWEN_Buffer_AppendBuffer | ( | GWEN_BUFFER * | bf, |
| GWEN_BUFFER * | sf ) |
Append the content of the buffer sf at the end of the buffer bf. The size of bf will be increased accordingly. Returns zero on success or nonzero if this failed (e.g. because of out of memory error).
Definition at line 506 of file buffer.c.
References DBG_ERROR, GWEN_Buffer_AppendBytes(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by _checkPlugin(), check2(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgrKeys_DecryptKey(), GWEN_Directory_FindFileInPaths(), GWEN_MsgEngine__WriteValue(), GWEN_PathManager_FindFile(), and GWEN_XMLNode_GetXPath().


| GWENHYWFAR_API int GWEN_Buffer_AppendByte | ( | GWEN_BUFFER * | bf, |
| char | c ) |
Appends a single byte to this GWEN_BUFFER, if there is enough room. The position pointer is adjusted accordingly.
Definition at line 393 of file buffer.c.
References DBG_DEBUG, DBG_ERROR, GWEN_Buffer_AllocRoom(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by _addRandomBytes(), _addVirtualFunctions(), _checkStringListOption(), _convertAndSetCharValue(), _createPluginFromLibloader(), _makeAbsolutePaths(), _readQuotedToken(), _readTokenUntilChar(), _retrieveVariable(), _searchAndLoadModule(), addMemberInfoToCallDb(), Gtk2Gui_WListBox_GetCharProperty(), Gtk3Gui_WListBox_GetCharProperty(), GWB_Parser_ReplaceVarsBetweenAtSigns(), GWEN_Args__AppendTXT(), GWEN_Base64_Decode(), GWEN_Base64_Encode(), GWEN_Crypt_TokenOHBCI__EncodeKey(), GWEN_CryptHead_toBuffer(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgr_Sign(), GWEN_Date_toStringWithTemplate(), GWEN_DB__ReadValues(), GWEN_DB_EscapeToBufferTolerant(), GWEN_DB_UnescapeToBufferTolerant(), GWEN_DBIO__XmlDb_ReadDataTags(), GWEN_DBIO_OldDb__ParseLine(), GWEN_Directory_HandlePathElement(), GWEN_Directory_OsifyPath(), GWEN_Gui_CProgress_Log(), GWEN_Logger__CreateMessage(), GWEN_Logger_Log(), GWEN_Msg_Dump(), GWEN_MsgEngine__ReadGroup(), GWEN_MsgEngine__ReadValue(), GWEN_MsgEngine__WriteGroup(), GWEN_MsgEngine__WriteValue(), GWEN_Padd_PaddWithAnsiX9_23ToMultipleOf(), GWEN_Padd_PaddWithIso9796_2(), GWEN_Padd_PaddWithZkaToMultipleOf(), GWEN_Path_AppendPathElement(), GWEN_Path_Handle(), GWEN_Path_HandleWithIdx(), GWEN_PluginManager_LoadPluginFile(), GWEN_SigHead_toBuffer(), GWEN_SigTail_toBuffer(), GWEN_SmallTresor_Encrypt(), GWEN_Text_DumpString2Buffer(), GWEN_Text_EscapeToBuffer(), GWEN_Text_EscapeToBufferTolerant(), GWEN_Text_EscapeToBufferTolerant2(), GWEN_Text_EscapeXmlToBuffer(), GWEN_Text_FromBcdBuffer(), GWEN_Text_FromHexBuffer(), GWEN_Text_GetWordToBuffer(), GWEN_Text_ReplaceVars(), GWEN_Text_ToBcdBuffer(), GWEN_Text_ToHexBuffer(), GWEN_Text_UnescapeToBuffer(), GWEN_Text_UnescapeToBufferTolerant(), GWEN_Time__toString(), GWEN_TLV_DirectlyToBuffer(), GWEN_TLV_WriteHeader(), GWEN_XML__ReadData(), GWEN_XML__ReadTag(), GWEN_XML_AddNameSpace(), GWEN_XML_FindNameSpace(), GWEN_XMLNode__CheckAndSetNameSpace(), TM2C_AddVirtualFnsFromSlots(), TM2C_BuildCodeVirtualFns(), TM2C_BuildDefineEnums(), TM2C_BuildDefineVirtualFns(), TM2C_BuildEnumToString(), TM2C_BuildFromDb(), TM2C_BuildFromObject(), TM2C_BuildFromXml(), TM2C_BuildGetterVirtualFns(), TM2C_BuildProtoGetterVirtualFns(), TM2C_BuildProtoSetterVirtualFns(), TM2C_BuildProtoVirtualFns(), TM2C_BuildSetterVirtualFns(), TM2C_BuildSignalFunctions(), TM2C_BuildSlotFunctions(), Typemaker2_Builder_ReplaceVars(), write_c_enums(), write_code_duprec_c(), write_h_enums(), write_ha_file_c(), write_hl_file_c(), and write_hp_file_c().


| GWENHYWFAR_API int GWEN_Buffer_AppendBytes | ( | GWEN_BUFFER * | bf, |
| const char * | buffer, | ||
| uint32_t | size ) |
Copies the contents of the given buffer to this GWEN_BUFFER, if there is enough room. The position pointer is adjusted accordingly.
Definition at line 360 of file buffer.c.
References DBG_DEBUG, DBG_ERROR, GWEN_Buffer_AllocRoom(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by _decode(), _encode(), _makeAbsolutePaths(), _stringListToDb(), Gtk2Gui_GetRawText(), Gtk3Gui_GetRawText(), GWB_File_ReplaceExtension(), GWEN_Buffer_AppendBuffer(), GWEN_Buffer_AppendString(), GWEN_Crypt_Token_KeyInfo_ReadDb(), GWEN_Crypt_Token_KeyInfo_SetCertificate(), GWEN_Crypt_Token_KeyInfo_SetExponent(), GWEN_Crypt_Token_KeyInfo_SetModulus(), GWEN_Crypt_TokenFile__Encipher(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), GWEN_Crypt_TokenOHBCI__EncodeKey(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgr_Verify(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_FastBuffer_ReadLineToBuffer(), GWEN_Gui_ConvertString(), GWEN_Gui_GetRawText(), GWEN_MsgEngine__ReadValue(), GWEN_Padd_PaddWithISO9796(), GWEN_PasswordStore_Digest(), GWEN_PasswordStore_EncryptWriteFile(), GWEN_SmallTresor_Decrypt(), GWEN_SmallTresor_Encrypt(), GWEN_SyncIo_Memory_fromBuffer(), GWEN_SyncIo_Memory_Write(), GWEN_Text_ConvertCharset(), GWEN_TLV_DirectlyToBuffer(), GWEN_Url_fromCommandString(), and GWEN_Url_fromString().


| GWENHYWFAR_API int GWEN_Buffer_AppendString | ( | GWEN_BUFFER * | bf, |
| const char * | buffer ) |
Appends a string to the buffer (without the trailing null char!) The position pointer is adjusted accordingly.
Definition at line 992 of file buffer.c.
References GWEN_Buffer_AppendBytes().
Referenced by _addAssignNewValueCode(), _addAssignValueCode(), _addAssignValueCode(), _addBuildFileNameToGwBuild(), _addCompareMemberImplementation(), _addCompareMemberProtoType(), _addCopyMemberCode(), _addDupMemberCode(), _addDupNewValueCode(), _addDupValueCode(), _addDupValueCode(), _addFilePathsToDb(), _addFlagFnsImplementation(), _addFlagSpecificSystemHeaders(), _addFreeHookPrototype(), _addFunctionDeclaration(), _addGetByMemberDeclaration(), _addGetByMemberDeclaration(), _addGetByMemberDeclaration(), _addGetByMemberImplementation(), _addGetByMemberImplementation(), _addGetByMemberImplementation(), _addGetByMemberProtoType(), _addGetByMemberProtoType(), _addGetByMemberProtoType(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addListDupImplementation(), _addListDupProtoType(), _addMatchingFiles(), _addMember(), _addMemberFinis(), _addMemberImplementation(), _addMemberInits(), _addMemberProtoTypes(), _addOneSubTargetForTarget(), _addPreHeaders(), _addPrototypes(), _addReadMemberCode(), _addReadMemberCode(), _addReadMemberCode(), _addReleaseOldValueCode(), _addSetterFnDeclaration(), _addSetterImplementation(), _addSetterPrototype(), _addSignalInits(), _addSignalObjects(), _addSlotInits(), _addSortByMemberImplementation(), _addSortByMemberProtoType(), _addStringListToBuffer(), _addTargetForLanguage(), _addTypeInits(), _addTypeSpecificDefs(), _addVirtualFns(), _addVirtualFunctions(), _addWriteMemberCode(), _addWriteMemberCode(), _addWriteMemberCode(), _appendVarValue(), _buildApiDoc(), _buildAttach(), _buildCacheFunctions(), _buildDefineDefines(), _buildEndHeaders(), _buildGetByMember(), _buildGroupApiDoc(), _buildImplementation(), _buildPostHeaders(), _buildPrototypes(), _buildToHashString(), _callPkgConfig(), _checkHeader(), _checkPlugin(), _checkStringListOption(), _checkStringOption(), _checkVersion(), _convertAndSetCharValue(), _createPluginFromLibloader(), _generateInstallList(), _getPathBetween(), _getSourcePathForFileName(), _getToolPath(), _makeAbsolutePaths(), _parseDefines(), _parseLib(), _parseWriteFile(), _prepareBaseLogPath(), _readAndStoreNextVersionPart(), _readArgsFixed(), _readArgsHaveConfigH(), _readArgsIncludes(), _readArgsLoop(), _readArgsOutputFiles(), _readBuilderDescrList(), _readMainFilename(), _retrieveVariable(), _runModule(), _runTest(), _setDefineFunctionExists(), _setDefineHeaderExists(), _setVarFunctionExists(), _setVarHeaderExists(), _writeConfigH(), _writeDistFiles(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), _writeVarValueToBuffer(), addMemberInfoToCallDb(), addToList(), buildFile2(), check2(), COCOA_Gui_GetFileName(), Dlg_Test1_new(), Dlg_Test2_new(), doBuildDefs(), FOX16_Gui::getFileName(), QT4_Gui::getFileName(), QT5_Gui::getFileName(), GTK2_Gui_GetFileName(), Gtk2Gui_GetRawText(), Gtk2Gui_WListBox_GetCharProperty(), GTK3_Gui_GetFileName(), Gtk3Gui_GetRawText(), Gtk3Gui_WListBox_GetCharProperty(), GWB_BuildCtx_CreateAndSetLogFilenameForSubCmd(), GWB_Builder_AddAbsFileNameToBuffer(), GWB_Builder_AddFileNamesToBuffer(), GWB_Builder_AddFileNameToBuffer(), GWB_Builder_AddRelativeFolderToBuffer(), GWB_Clean(), GWB_File_List2_GetOrCreateFile(), GWB_File_ReplaceExtension(), GWB_File_WriteFileNameToTopBuildDirString(), GWB_GenericBuilder_Factory(), GWB_InstallFiles(), GWB_KeyValuePair_List_SampleValuesByKey(), GWB_KeyValuePair_List_WriteAllPairsToBuffer(), GWB_Parser_ReadXmlDataIntoBufferAndExpand(), GWB_Parser_ReplaceVarsBetweenAtSigns(), GWB_Parser_SetItemValue(), GWB_Project_SetDefineQuoted(), GWB_Tools_CheckCompilerArgs(), GWB_Tools_TryCompile(), GWB_Tools_TryLink(), GWB_Utils_VersionStringToDb(), GWB_Utils_VersionToDbVar(), GWEN_Args_UsageTXT(), GWEN_Base64_Encode(), GWEN_ConfigMgr_ModuleInit(), GWEN_ConfigMgrDir__GetUniqueId(), GWEN_ConfigMgrDir__UpdateLastUniqueId(), GWEN_ConfigMgrDir_AddGroupDirName(), GWEN_ConfigMgrDir_AddGroupFileName(), GWEN_ConfigMgrDir_new(), GWEN_Crypt_Token__CreatePasswordName(), GWEN_Crypt_Token_ModuleInit(), GWEN_Date_toStringWithTemplate(), GWEN_DB_WriteVarValueToBuffer(), GWEN_DBIO__XmlDb_ReadDataTags(), GWEN_DBIO_ModuleInit(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Dialog_ListReadColumnSettings(), GWEN_Dialog_ListWriteColumnSettings(), GWEN_Directory_FindFileInPaths(), GWEN_Directory_FindPathForFile(), GWEN_Directory_GetAbsoluteFolderPath(), GWEN_Directory_GetDirEntries(), GWEN_Directory_GetFileEntries(), GWEN_Directory_GetFileEntriesWithType(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_Directory_HandlePathElement(), GWEN_DlgProgress_AddLogText(), GWEN_Gui_CProgress_Log(), GWEN_Gui_ReadString(), GWEN_JsonElement_DumpToBuffer(), GWEN_LoadPluginDescrsByType(), GWEN_Logger__CreateMessage(), GWEN_MDigest__HashFileTree(), GWEN_MDigest_CheckFileTree(), GWEN_MsgEngine__GetInline(), GWEN_MsgEngine__ReadGroup(), GWEN_PasswordStore_EncryptWriteFile(), GWEN_PasswordStore_ReadDecryptFile(), GWEN_Path_AppendPathElement(), GWEN_Path_GetPathBetween(), GWEN_PathManager_AddRelPath(), GWEN_PathManager_FindFile(), GWEN_PathManager_GetMatchingFilesRecursively(), GWEN_PathManager_InsertRelPath(), GWEN_PluginManager_LoadPluginFile(), GWEN_ProgressData_AddLogText(), GWEN_StringList_toBuffer(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), GWEN_SyncIo_Http_WriteStatus(), GWEN_SyncIo_Tls_GetPeerCert(), GWEN_SyncIo_Tls_ShowCipherInfo(), GWEN_Text_DoubleToBuffer(), GWEN_Text_DumpString2Buffer(), GWEN_Text_EscapeXmlToBuffer(), GWEN_Time__toString(), GWEN_Url_toCommandString(), GWEN_Url_toString(), GWEN_Url_toUiShortString(), GWEN_XML__ReadTag(), GWEN_XML_AddNameSpace(), GWEN_XML_FindNameSpace(), GWEN_XMLNode__CheckAndSetNameSpace(), GWEN_XMLNode_GetXPath(), hashTree(), main(), setCharValueWithTypePrefix(), TM2C_AddReleaseOldValueCode(), TM2C_AddVirtualFnsFromSlots(), TM2C_BuildCodeVirtualFns(), TM2C_BuildCreateColumnList(), TM2C_BuildCreateObject(), TM2C_BuildCreateTable(), TM2C_BuildDefineEnums(), TM2C_BuildDefineVirtualFns(), TM2C_BuildEnumFromString(), TM2C_BuildEnumToString(), TM2C_BuildFromDb(), TM2C_BuildFromObject(), TM2C_BuildFromXml(), TM2C_BuildGetterVirtualFns(), TM2C_BuildMacroFunctions(), TM2C_BuildProtoGetterVirtualFns(), TM2C_BuildProtoSetterVirtualFns(), TM2C_BuildProtoVirtualFns(), TM2C_BuildSetterVirtualFns(), TM2C_BuildSignalFunctions(), TM2C_BuildSlotFunctions(), TM2C_BuildStruct(), TM2C_BuildToDb(), TM2C_BuildToObject(), TM2C_BuildToXml(), TM2C_BuildTypedef(), TM2C_SetEnumStringFns(), Typemaker2_Builder_DetermineOutFileNames(), Typemaker2_Builder_ReplaceVars(), Typemaker2_Builder_WriteFile(), Typemaker2_Builder_WriteFiles(), Typemaker2_TypeManager_LoadType(), Typemaker2_TypeManager_SetMemberTypePtrs(), write_c_enums(), write_code_duprec_c(), write_code_file_c(), write_code_fromdbArg_c(), write_code_setget_c(), write_code_todbArg_c(), write_h_elem_c(), write_h_enums(), write_h_setget_c(), write_ha_file_c(), write_hl_file_c(), and write_hp_file_c().


| GWENHYWFAR_API void GWEN_Buffer_Attach | ( | GWEN_BUFFER * | bf | ) |
Increases the internal reference counter. It is decreased by GWEN_Buffer_free().
Definition at line 81 of file buffer.c.
Referenced by GWEN_Buffer_CacheFn_Attach().

| GWENHYWFAR_API int GWENHYWFAR_CB GWEN_Buffer_CacheFn_Attach | ( | void * | ptr | ) |
This is a callback function to be used by GWEN_MULTICACHE (and only for that). It internally calls GWEN_Buffer_Attach().
Definition at line 1071 of file buffer.c.
References GWEN_Buffer_Attach(), and GWENHYWFAR_CB.

| GWENHYWFAR_API int GWENHYWFAR_CB GWEN_Buffer_CacheFn_Free | ( | void * | ptr | ) |
This is a callback function to be used by GWEN_MULTICACHE (and only for that). It internally calls GWEN_Buffer_free().
Definition at line 1079 of file buffer.c.
References GWEN_Buffer_free(), and GWENHYWFAR_CB.

| GWENHYWFAR_API int GWEN_Buffer_Crop | ( | GWEN_BUFFER * | bf, |
| uint32_t | pos, | ||
| uint32_t | l ) |
Definition at line 950 of file buffer.c.
References DBG_ERROR, DBG_INFO, GWEN_Buffer_AdjustBookmarks(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by addToList(), GWEN_Buffer_KeepTextBetweenStrings(), GWEN_Dialog_ListReadColumnSettings(), GWEN_Dialog_ListWriteColumnSettings(), GWEN_Directory_GetDirEntries(), GWEN_Directory_GetFileEntries(), GWEN_Directory_GetFileEntriesWithType(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_HttpSession_RecvCommand(), GWEN_HttpSession_RecvPacket(), GWEN_LoadPluginDescrsByType(), GWEN_MDigest__HashFileTree(), GWEN_MsgEngine__WriteGroup(), GWEN_Padd__UnpaddWithPkcs1Bt1Or2(), GWEN_Padd_PaddWithISO9796(), GWEN_Padd_UnpaddWithAnsiX9_23FromMultipleOf(), GWEN_Padd_UnpaddWithIso9796_2(), GWEN_Padd_UnpaddWithZkaFromMultipleOf(), GWEN_PasswordStore_ReadDecryptFile(), GWEN_Text_CondenseBuffer(), GWEN_Text_GetWordToBuffer(), GWEN_Text_ReplaceVars(), GWEN_XmlCtxStore_AddData(), HtmlCtx_SanitizeData(), write_c_enums(), and write_h_enums().


| GWENHYWFAR_API int GWEN_Buffer_DecrementPos | ( | GWEN_BUFFER * | bf, |
| uint32_t | i ) |
Move the position pointer backward by the given number i.
Definition at line 490 of file buffer.c.
References DBG_ERROR, GWEN_ERROR_BUFFER_OVERFLOW, and GWEN_LOGDOMAIN.
Referenced by GWEN_MsgEngine__ReadValue().

| GWENHYWFAR_API void GWEN_Buffer_Dump | ( | GWEN_BUFFER * | bf, |
| unsigned int | insert ) |
Print the current content of buffer bf into the file f.
Definition at line 585 of file buffer.c.
References GWEN_BUFFER_MAX_BOOKMARKS, GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_DYNAMIC, GWEN_BUFFER_MODE_READONLY, and GWEN_Text_DumpString().
Referenced by check1(), check2(), GWEN_DB_ReadFromFastBuffer(), and GWEN_XML__ReadTag().


| GWENHYWFAR_API GWEN_BUFFER * GWEN_Buffer_dup | ( | GWEN_BUFFER * | bf | ) |
Create a new copy as a duplicate of the buffer bf.
Definition at line 105 of file buffer.c.
References GWEN_BUFFER_MAX_BOOKMARKS, GWEN_Memory_malloc(), and GWEN_NEW_OBJECT.
Referenced by _checkPlugin(), GWEN_Crypt_Token_KeyInfo_copy(), and GWEN_Crypt_Token_KeyInfo_dup().


| GWENHYWFAR_API int GWEN_Buffer_FillLeftWithBytes | ( | GWEN_BUFFER * | bf, |
| unsigned char | c, | ||
| uint32_t | size ) |
Definition at line 1044 of file buffer.c.
References DBG_ERROR, DBG_INFO, GWEN_Buffer_InsertRoom(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by GWEN_Padd_ApplyPaddAlgo().


| GWENHYWFAR_API const char GWENHYWFAR_API int GWEN_Buffer_FillWithBytes | ( | GWEN_BUFFER * | bf, |
| unsigned char | c, | ||
| uint32_t | size ) |
Definition at line 1012 of file buffer.c.
References DBG_DEBUG, DBG_ERROR, GWEN_Buffer_AllocRoom(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by _runTest(), GWEN_JsonElement_DumpToBuffer(), and GWEN_Padd_ApplyPaddAlgo().


| GWENHYWFAR_API void GWEN_Buffer_free | ( | GWEN_BUFFER * | bf | ) |
Frees the given buffer.
If the internal storage was allocated for this new buffer, then it will freed here. If the internal storage is used from a different buffer, then it will only be freed if the argument take_ownership of GWEN_Buffer_new() was nonzero.
Definition at line 89 of file buffer.c.
References GWEN_FREE_OBJECT, and GWEN_Memory_dealloc().
Referenced by _addAssignNewValueCode(), _addAssignValueCode(), _addAssignValueCode(), _addBuildFileNameToGwBuild(), _addCompareMemberImplementation(), _addCompareMemberProtoType(), _addCopyMemberCode(), _addDupMemberCode(), _addDupNewValueCode(), _addDupValueCode(), _addDupValueCode(), _addFilePathsToDb(), _addFlagFnsImplementation(), _addFlagFnsPrototype(), _addFreeHookPrototype(), _addGetByMemberImplementation(), _addGetByMemberImplementation(), _addGetByMemberImplementation(), _addGetByMemberProtoType(), _addGetByMemberProtoType(), _addGetByMemberProtoType(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addListDupImplementation(), _addListDupProtoType(), _addMemberFinis(), _addMemberImplementation(), _addMemberInits(), _addMemberProtoTypes(), _addOneSubTargetForTarget(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototypes(), _addReadMemberCode(), _addReadMemberCode(), _addReadMemberCode(), _addReleaseOldValueCode(), _addSetterImplementation(), _addSetterPrototype(), _addSignalObjects(), _addSortByMemberImplementation(), _addSortByMemberProtoType(), _addTargetForLanguage(), _addWriteMemberCode(), _addWriteMemberCode(), _addWriteMemberCode(), _appendVarValue(), _buildApiDoc(), _buildAttach(), _buildCacheFunctions(), _buildDefineDefines(), _buildEndHeaders(), _buildFieldIds(), _buildGroupApiDoc(), _buildImplementation(), _buildInlines(), _buildMemberInlines(), _buildPostHeaders(), _buildPrototypes(), _buildToHashString(), _callPkgConfig(), _checkFunction(), _checkHeader(), _checkPlugin(), _checkStringListOption(), _checkStringOption(), _checkVersion(), _convertAndSetCharValue(), _convertAndSetCharValue(), _createPluginFromLibloader(), _csvImport(), _decode(), _determineNamePath(), _encode(), _exportDbToXml(), _generateInstallList(), _getToolPath(), _groupReadElement(), _handleDbSetCharValue_internal(), _handleDbSetCharValue_internal(), _logHook(), _makeAbsolutePaths(), _parseAndSetBuildMessage(), _parseBuildCommand(), _parseDefines(), _parseLib(), _parseOutFile(), _parseSetVar(), _parseWriteFile(), _prepareBaseLogPath(), _printCmdOutputIfNotEmptyAndDeleteFile(), _readAndStoreNextVersionPart(), _readArgs(), _readArgsFixed(), _readBuilderDescrList(), _readBuildMessage(), _readCommandLine(), _readCsvLine(), _readDepFile(), _readDepFile(), _readFilesFromDataNode(), _readModifyWriteFile(), _readObject(), _readSubCmd(), _readValue(), _readXmlDataIntoBufferAndExpand(), _retrieveVariable(), _runModule(), _runTest(), _searchAndLoadModule(), _setDefineFunctionExists(), _setDefineHeaderExists(), _setupTargetLinkSpec(), _setVarFunctionExists(), _setVarHeaderExists(), _stringListToDb(), _tryReadPasswdViaInputBox(), _writeConfigH(), _writeDistFiles(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), _xmlSetCharValue(), activateKey(), add2Archive(), addMemberInfoToCallDb(), addToList(), buildFile2(), changePin(), checkArchive(), checkTree(), CocoaGui_WPushButton_Setup(), createArchive(), createToken(), cryptWithNew(), Dlg_Test1_new(), Dlg_Test2_new(), doBuildDefs(), extractArchive(), genKey(), FOX16_GuiDialog::getIcon(), FOX16_HtmlCtx::getImage(), Gtk2Gui_WLabel_SetCharProperty(), Gtk2Gui_WLabel_Setup(), Gtk2Gui_WListBox_GetCharProperty(), Gtk2Gui_WPushButton_Setup(), Gtk2Gui_WTextBrowser_SetCharProperty(), Gtk2Gui_WTextBrowser_Setup(), Gtk3Gui_WLabel_SetCharProperty(), Gtk3Gui_WLabel_Setup(), Gtk3Gui_WListBox_GetCharProperty(), Gtk3Gui_WPushButton_Setup(), Gtk3Gui_WTextBrowser_SetCharProperty(), Gtk3Gui_WTextBrowser_Setup(), GWB_BuildCtx_CreateAndSetLogFilenameForSubCmd(), GWB_Builder_AddAbsFileNameToBuffer(), GWB_Builder_AddFileNameToBuffer(), GWB_Builder_AddRelativeFolderToBuffer(), GWB_File_List2_GetOrCreateFile(), GWB_File_ReplaceExtension(), GWB_GenericBuilder_Factory(), GWB_InstallFiles(), GWB_MkDist(), GWB_ParseOption(), GWB_Parser_ReadBuildFile(), GWB_Parser_ReadNamedXmlDataIntoBufferAndExpand(), GWB_Parser_ReadXmlDataIntoBufferAndExpand(), GWB_Parser_ReadXmlDataIntoStringList(), GWB_Parser_SetItemValue(), GWB_Project_SetDefineQuoted(), GWB_Tools_CheckCompilerArgs(), GWB_Tools_TryCompile(), GWB_Tools_TryLink(), GWB_Utils_VersionStringToDb(), GWB_Utils_VersionToDbVar(), GWEN_Args_Check(), GWEN_Buffer_CacheFn_Free(), GWEN_ConfigMgr_ModuleInit(), GWEN_ConfigMgrDir__GetUniqueId(), GWEN_ConfigMgrDir__UpdateLastUniqueId(), GWEN_ConfigMgrDir_DeleteGroup(), GWEN_ConfigMgrDir_GetGroup(), GWEN_ConfigMgrDir_HasGroup(), GWEN_ConfigMgrDir_ListSubGroups(), GWEN_ConfigMgrDir_LockGroup(), GWEN_ConfigMgrDir_MkUniqueIdFromId(), GWEN_ConfigMgrDir_new(), GWEN_ConfigMgrDir_SetGroup(), GWEN_ConfigMgrDir_UnlockGroup(), GWEN_Crypt_Token_Context_ReadXml(), GWEN_Crypt_Token_Context_WriteXml(), GWEN_Crypt_Token_GetPin(), GWEN_Crypt_Token_KeyInfo_copy(), GWEN_Crypt_Token_KeyInfo_dup(), GWEN_Crypt_Token_KeyInfo_free(), GWEN_Crypt_Token_KeyInfo_ReadDb(), GWEN_Crypt_Token_KeyInfo_ReadXml(), GWEN_Crypt_Token_KeyInfo_SetCertificate(), GWEN_Crypt_Token_KeyInfo_SetExponent(), GWEN_Crypt_Token_KeyInfo_SetModulus(), GWEN_Crypt_Token_KeyInfo_WriteXml(), GWEN_Crypt_Token_ModuleInit(), GWEN_Crypt_Token_SetPinStatus(), GWEN_Crypt_TokenFile__Decipher(), GWEN_Crypt_TokenFile__Encipher(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_Crypt_TokenOHBCI__DecryptFile(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), GWEN_Crypt_TokenOHBCI__DecryptTresor(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_CryptMgr_Decode(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Encode(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgr_Sign(), GWEN_CryptMgrKeys_DecryptKey(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_CryptMgrKeys_VerifyData(), GWEN_Date_fromTime(), GWEN_DB__ReadValues(), GWEN_DB_ReadFromFastBuffer(), GWEN_DB_WriteGroupToIoLayer(), GWEN_DBIO__XmlDb_ImportVar(), GWEN_DBIO__XmlDb_ReadDataTags(), GWEN_DBIO_ModuleInit(), GWEN_DBIO_OldDb__ParseLine(), GWEN_DBIO_OldDb_Import(), GWEN_DBIO_XmlDb__ExportVar(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Dialog_CreateAndLoadWithPath(), GWEN_Dialog_ListReadColumnSettings(), GWEN_Dialog_ListWriteColumnSettings(), GWEN_Directory_FindFileInPaths(), GWEN_Directory_FindPathForFile(), GWEN_Directory_GetFileEntries(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_Directory_GetPath(), GWEN_Directory_HandlePathElement(), GWEN_DlgInput_new(), GWEN_DlgProgress_AddLogText(), GWEN_DlgProgress_FreeData(), GWEN_DlgShowBox_new(), GWEN_Gui_CGui_InputBox(), GWEN_Gui_CGui_MessageBox(), GWEN_Gui_CGui_ShowBox(), GWEN_Gui_CheckCertBuiltIn(), GWEN_Gui_CProgress_free(), GWEN_Gui_CProgress_Log(), GWEN_Gui_ExtendSyncIo(), GWEN_Gui_Internal_GetPassword(), GWEN_Gui_Internal_SetPasswordStatus(), GWEN_Gui_StdPrintf(), GWEN_LoadPluginDescrsByType(), GWEN_Logger__Log(), GWEN_Logger_Log(), GWEN_MDigest__HashFileTree(), GWEN_MDigest_CheckFileTree(), GWEN_MsgEngine__ReadGroup(), GWEN_MsgEngine__WriteElement(), GWEN_Param_SetCurrentValueAsDouble(), GWEN_PasswordStore__GetPassword(), GWEN_PasswordStore__SetPassword(), GWEN_PasswordStore_EncryptWriteFile(), GWEN_PasswordStore_GetTokenList(), GWEN_PasswordStore_ReadDecryptFile(), GWEN_PasswordStore_ReadFile(), GWEN_PasswordStore_WriteFile(), GWEN_Path_Handle(), GWEN_Path_HandleWithIdx(), GWEN_PathManager_AddPath(), GWEN_PathManager_AddRelPath(), GWEN_PathManager_FindFile(), GWEN_PathManager_GetMatchingFilesRecursively(), GWEN_PathManager_InsertRelPath(), GWEN_PluginManager_LoadPluginFile(), GWEN_ProgressData_free(), GWEN_Sar_AddAndDigestFileLink(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_AddFile(), GWEN_Sar_ExtractAndDigestFileDir(), GWEN_Sar_ExtractAndDigestFileLink(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_FileHeaderToTlv(), GWEN_Sar_ScanFile(), GWEN_Sar_Sign(), GWEN_Sar_Verify(), GWEN_SigHead_toBuffer(), GWEN_SmallTresor_Decrypt(), GWEN_SmallTresor_Encrypt(), GWEN_StringList_fromString2(), GWEN_SyncIo_Buffered_ReadLinesToStringList(), GWEN_SyncIo_Http_Read(), GWEN_SyncIo_Http_ReadChunk(), GWEN_SyncIo_Http_ReadChunkSize(), GWEN_SyncIo_Http_ReadCommand(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadStatus(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), GWEN_SyncIo_Http_WriteStatus(), GWEN_SyncIo_Memory_FreeData(), GWEN_SyncIo_Tls_GetPeerCert(), GWEN_SyncIo_Tls_Prepare(), GWEN_SyncIo_Tls_ShowCipherInfo(), GWEN_Text_LogString(), GWEN_Url_fromCommandString(), GWEN_Url_fromString(), GWEN_XML__ReadData(), GWEN_XML__ReadTag(), GWEN_XML_AddNameSpace(), GWEN_XML_FindNameSpace(), GWEN_XML_ReadFromFastBuffer(), GWEN_XMLContext_ReadFromString(), GWEN_XmlCtxStore_AddAttr(), GWEN_XmlCtxStore_AddData(), GWEN_XMLNode__CheckAndSetNameSpace(), GWEN_XMLNode__CheckNameSpaceDecls1(), GWEN_XMLNode__WriteCommentToStream(), GWEN_XMLNode__WriteDataToStream(), GWEN_XMLNode__WritePropertiesToStream(), GWEN_XMLNode_ExpandProperties(), GWEN_XMLNode_fromString(), GWEN_XMLNode_GetXPath(), hashTree(), HtmlGroup_Box_AddData(), listArchive(), main(), mkArchiveKey(), releaseFillIn(), setCharValueWithTypePrefix(), setKey(), setSignSeq(), showKey(), showPasswords(), showUser(), signArchive(), signWithNew(), test_json(), TM2C_AddReleaseOldValueCode(), TM2C_AddVirtualFnsFromSlots(), TM2C_BuildCodeVirtualFns(), TM2C_BuildCreateColumnList(), TM2C_BuildCreateObject(), TM2C_BuildCreateTable(), TM2C_BuildDefineEnums(), TM2C_BuildDefineVirtualFns(), TM2C_BuildEnumFromString(), TM2C_BuildEnumToString(), TM2C_BuildFromDb(), TM2C_BuildFromObject(), TM2C_BuildFromXml(), TM2C_BuildGetterVirtualFns(), TM2C_BuildMacroFunctions(), TM2C_BuildProtoGetterVirtualFns(), TM2C_BuildProtoSetterVirtualFns(), TM2C_BuildProtoVirtualFns(), TM2C_BuildSetterVirtualFns(), TM2C_BuildSignalFunctions(), TM2C_BuildSlotFunctions(), TM2C_BuildStruct(), TM2C_BuildToDb(), TM2C_BuildToObject(), TM2C_BuildToXml(), TM2C_BuildTypedef(), TM2C_SetEnumStringFns(), Typemaker2_Builder_DetermineOutFileNames(), Typemaker2_Builder_WriteFile(), Typemaker2_Builder_WriteFiles(), Typemaker2_Group_readXml(), Typemaker2_Member_readXml(), Typemaker2_Type_readXml(), Typemaker2_TypeManager_LoadType(), Typemaker2_TypeManager_SetMemberTypePtrs(), updateToken(), verifyArchive(), write_c_enums(), write_code_duprec_c(), write_code_file_c(), write_code_fromdbArg_c(), write_code_setget_c(), write_code_todbArg_c(), write_h_elem_c(), write_h_enums(), write_h_setget_c(), write_ha_file_c(), write_hl_file_c(), write_hp_file_c(), and write_xml_to_bio().


| GWENHYWFAR_API uint32_t GWEN_Buffer_GetBookmark | ( | const GWEN_BUFFER * | bf, |
| unsigned int | idx ) |
Returns the given bookmark
Definition at line 566 of file buffer.c.
References GWEN_BUFFER_MAX_BOOKMARKS.
| GWENHYWFAR_API uint32_t GWEN_Buffer_GetBytesLeft | ( | GWEN_BUFFER * | bf | ) |
Returns the number of bytes from pos to the end of the used area.
Definition at line 536 of file buffer.c.
Referenced by _groupReadElement(), GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), GWEN_MsgEngine__ReadGroup(), GWEN_MsgEngine__ReadValue(), GWEN_MsgEngine_ReadMessage(), GWEN_MsgEngine_SkipSegment(), GWEN_Sar_TlvToFileHeader(), GWEN_SyncIo_Memory_Read(), GWEN_Text_EscapeToBufferTolerant2(), and GWEN_TLV_fromBuffer().

| GWENHYWFAR_API uint32_t GWEN_Buffer_GetHardLimit | ( | GWEN_BUFFER * | bf | ) |
Returns the hard limit. This is the maximum size of a GWEN_BUFFER in dynamic mode.
| GWENHYWFAR_API uint32_t GWEN_Buffer_GetMaxUnsegmentedWrite | ( | GWEN_BUFFER * | bf | ) |
Returns the maximum number of bytes which can be written to the buffer at once (i.e. without reallocation).
Definition at line 527 of file buffer.c.
Referenced by GWEN_Buffer_AppendArgs(), GWEN_Crypt_TokenFile__Decipher(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgrKeys_DecryptKey(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_CryptMgrKeys_VerifyData(), GWEN_Gui_ConvertString(), GWEN_Gui_StdPrintf(), GWEN_SyncIo_Buffered_ReadLineToBuffer(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_RecvBody(), GWEN_Text_UnescapeXmlToBuffer(), readFile(), and readFile().

| GWENHYWFAR_API uint32_t GWEN_Buffer_GetMode | ( | GWEN_BUFFER * | bf | ) |
Returns the current mode of the buffer (such as GWEN_BUFFER_MODE_DYNAMIC).
| GWENHYWFAR_API uint32_t GWEN_Buffer_GetPos | ( | const GWEN_BUFFER * | bf | ) |
Returns the current position within the buffer. This pointer is adjusted by the various read and write functions.
Definition at line 253 of file buffer.c.
Referenced by _groupReadElement(), _readSimpleValueAndReturnType(), addToList(), GWEN_Buffer_AppendArgs(), GWEN_ConfigMgrDir_AddGroupDirName(), GWEN_ConfigMgrDir_AddGroupFileName(), GWEN_Crypt_TokenOHBCI__EncodeKey(), GWEN_CryptHead_toBuffer(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgr_Sign(), GWEN_Dialog_ListReadColumnSettings(), GWEN_Dialog_ListWriteColumnSettings(), GWEN_Directory_GetDirEntries(), GWEN_Directory_GetFileEntries(), GWEN_Directory_GetFileEntriesWithType(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_HttpSession_RecvCommand(), GWEN_HttpSession_RecvPacket(), GWEN_MDigest__HashFileTree(), GWEN_MsgEngine__ReadGroup(), GWEN_MsgEngine__ReadValue(), GWEN_MsgEngine__WriteGroup(), GWEN_MsgEngine__WriteValue(), GWEN_MsgEngine_ReadMessage(), GWEN_MsgEngine_SkipSegment(), GWEN_PasswordStore_ReadDecryptFile(), GWEN_SigHead_toBuffer(), GWEN_SigTail_toBuffer(), GWEN_SyncIo_Http_ReadHeader(), GWEN_Tag16_EndTagInBuffer(), GWEN_Tag16_StartTagInBuffer(), GWEN_Text_GetWordToBuffer(), GWEN_Text_ReplaceVars(), GWEN_TLV_fromBuffer(), write_c_enums(), and write_h_enums().

| GWENHYWFAR_API char * GWEN_Buffer_GetPosPointer | ( | const GWEN_BUFFER * | bf | ) |
Returns a pointer to the current position within the buffer.
Definition at line 548 of file buffer.c.
Referenced by _addRandomBytes(), _decode(), _encode(), _groupReadElement(), _writeTagToBuffer(), GWEN_CryptMgrKeys_DecryptKey(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_CryptMgrKeys_VerifyData(), GWEN_Gui_ConvertString(), GWEN_MsgEngine__ReadValue(), GWEN_MsgEngine__WriteValue(), GWEN_Path_AppendPathElement(), GWEN_SmallTresor_Decrypt(), GWEN_SmallTresor_Encrypt(), GWEN_SyncIo_Buffered_ReadLineToBuffer(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Memory_Read(), GWEN_SyncIo_Tls__readFile(), GWEN_Tag16_fromBuffer(), GWEN_Tag16_StartTagInBuffer(), GWEN_Text_UnescapeXmlToBuffer(), GWEN_TLV_Buffer_To_DB(), GWEN_TLV_fromBuffer(), readFile(), and readFile().

| GWENHYWFAR_API uint32_t GWEN_Buffer_GetSize | ( | const GWEN_BUFFER * | bf | ) |
Returns the size of the buffer (i.e. the number of bytes allocated).
Definition at line 243 of file buffer.c.
References GWEN_BUFFER_MODE_DYNAMIC.
| GWENHYWFAR_API char * GWEN_Buffer_GetStart | ( | const GWEN_BUFFER * | bf | ) |
Returns the start of the buffer. You can use the function GWEN_Buffer_GetPos to navigate within the buffer.
Definition at line 235 of file buffer.c.
Referenced by _addAssignNewValueCode(), _addAssignValueCode(), _addAssignValueCode(), _addBuildFileNameToGwBuild(), _addCompareMemberImplementation(), _addCompareMemberProtoType(), _addDupNewValueCode(), _addDupValueCode(), _addDupValueCode(), _addFilePathsToDb(), _addFlagFnsImplementation(), _addFlagFnsPrototype(), _addFreeHookPrototype(), _addGetByMemberImplementation(), _addGetByMemberImplementation(), _addGetByMemberImplementation(), _addGetByMemberProtoType(), _addGetByMemberProtoType(), _addGetByMemberProtoType(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addListDupImplementation(), _addListDupProtoType(), _addMemberFinis(), _addMemberImplementation(), _addMemberInits(), _addMemberProtoTypes(), _addOneSubTargetForTarget(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototypes(), _addReadMemberCode(), _addReadMemberCode(), _addReadMemberCode(), _addReleaseOldValueCode(), _addSetterImplementation(), _addSetterPrototype(), _addSignalObjects(), _addSortByMemberImplementation(), _addSortByMemberProtoType(), _addTargetForLanguage(), _addWriteMemberCode(), _addWriteMemberCode(), _addWriteMemberCode(), _appendVarValue(), _buildApiDoc(), _buildAttach(), _buildCacheFunctions(), _buildDefineDefines(), _buildEndHeaders(), _buildFieldIds(), _buildImplementation(), _buildInlines(), _buildMemberInlines(), _buildPostHeaders(), _buildPrototypes(), _buildToHashString(), _callPkgConfig(), _checkFunction(), _checkHeader(), _checkPlugin(), _checkStringListOption(), _checkStringOption(), _checkVersion(), _convertAndSetCharValue(), _convertAndSetCharValue(), _createPluginFromLibloader(), _csvImport(), _decode(), _determineNamePath(), _encode(), _exportDbToXml(), _fileListToTopBuildDirStringList(), _generateInstallList(), _getToolPath(), _groupReadElement(), _handleDbSetCharValue_internal(), _handleDbSetCharValue_internal(), _logHook(), _makeAbsolutePaths(), _overwriteEscapedLineFeedsWithSpace(), _parseAndSetBuildMessage(), _parseArg(), _parseBuildCommand(), _parseDefines(), _parseLib(), _parseOutFile(), _parseSetVar(), _parseWriteFile(), _prepareBaseLogPath(), _printCmdOutputIfNotEmptyAndDeleteFile(), _readAndStoreNextVersionPart(), _readArgsFixed(), _readBuilderDescrList(), _readBuildMessage(), _readCommandLine(), _readCsvLine(), _readDepFile(), _readDepFile(), _readFilesFromDataNode(), _readModifyWriteFile(), _readObject(), _readSimpleValueAndReturnType(), _readSubCmd(), _readValue(), _recvPacket(), _retrieveVariable(), _runModule(), _runTest(), _searchAndLoadModule(), _setDefineFunctionExists(), _setDefineHeaderExists(), _setupTargetLinkSpec(), _setVarFunctionExists(), _setVarHeaderExists(), _stringListToDb(), _tryReadPasswdViaInputBox(), _writeConfigH(), _writeDistFiles(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), _xmlSetCharValue(), activateKey(), add2Archive(), addMemberInfoToCallDb(), addToList(), buildFile2(), changePin(), check1(), check2(), checkArchive(), checkTree(), COCOA_Gui_GetFileName(), CocoaGui_WPushButton_Setup(), createArchive(), createToken(), cryptWithNew(), Dlg_Test1_new(), Dlg_Test2_new(), doBuildDefs(), extractArchive(), genKey(), FOX16_Gui::getFileName(), QT4_Gui::getFileName(), QT5_Gui::getFileName(), FOX16_GuiDialog::getIcon(), FOX16_HtmlCtx::getImage(), GTK2_Gui_GetFileName(), Gtk2Gui_WLabel_SetCharProperty(), Gtk2Gui_WLabel_Setup(), Gtk2Gui_WListBox_GetCharProperty(), Gtk2Gui_WPushButton_Setup(), Gtk2Gui_WTextBrowser_SetCharProperty(), Gtk2Gui_WTextBrowser_Setup(), GTK3_Gui_GetFileName(), Gtk3Gui_WLabel_SetCharProperty(), Gtk3Gui_WLabel_Setup(), Gtk3Gui_WListBox_GetCharProperty(), Gtk3Gui_WPushButton_Setup(), Gtk3Gui_WTextBrowser_SetCharProperty(), Gtk3Gui_WTextBrowser_Setup(), GWB_BuildCtx_CreateAndSetLogFilenameForSubCmd(), GWB_Builder_AddAbsFileNameToBuffer(), GWB_Builder_AddFileNameToBuffer(), GWB_Builder_AddRelativeFolderToBuffer(), GWB_Clean(), GWB_File_FileListToTopBuildDirStringList(), GWB_File_List2_GetOrCreateFile(), GWB_File_ReplaceExtension(), GWB_GenericBuilder_Factory(), GWB_InstallFiles(), GWB_MkDist(), GWB_ParseOption(), GWB_Parser_ReadBuildFile(), GWB_Parser_ReadXmlDataIntoStringList(), GWB_Parser_SetItemValue(), GWB_Project_SetDefineQuoted(), GWB_Tools_CheckCompilerArgs(), GWB_Tools_TryCompile(), GWB_Tools_TryLink(), GWB_Utils_VersionStringToDb(), GWB_Utils_VersionToDbVar(), GWEN_Args_Check(), GWEN_Buffer_AppendArgs(), GWEN_ConfigMgr_ModuleInit(), GWEN_ConfigMgrDir__GetUniqueId(), GWEN_ConfigMgrDir__UpdateLastUniqueId(), GWEN_ConfigMgrDir_AddGroupDirName(), GWEN_ConfigMgrDir_AddGroupFileName(), GWEN_ConfigMgrDir_DeleteGroup(), GWEN_ConfigMgrDir_GetGroup(), GWEN_ConfigMgrDir_HasGroup(), GWEN_ConfigMgrDir_ListSubGroups(), GWEN_ConfigMgrDir_LockGroup(), GWEN_ConfigMgrDir_MkUniqueIdFromId(), GWEN_ConfigMgrDir_new(), GWEN_ConfigMgrDir_SetGroup(), GWEN_ConfigMgrDir_UnlockGroup(), GWEN_Crypt_Token_Context_ReadXml(), GWEN_Crypt_Token_Context_WriteXml(), GWEN_Crypt_Token_GetPin(), GWEN_Crypt_Token_KeyInfo_GetCertificateData(), GWEN_Crypt_Token_KeyInfo_GetExponentData(), GWEN_Crypt_Token_KeyInfo_GetModulusData(), GWEN_Crypt_Token_KeyInfo_WriteDb(), GWEN_Crypt_Token_KeyInfo_WriteXml(), GWEN_Crypt_Token_ModuleInit(), GWEN_Crypt_Token_SetPinStatus(), GWEN_Crypt_TokenFile__Decipher(), GWEN_Crypt_TokenFile__Encipher(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenOHBCI__DecryptFile(), GWEN_Crypt_TokenOHBCI__DecryptTresor(), GWEN_Crypt_TokenOHBCI__EncodeKey(), GWEN_Crypt_TokenOHBCI_Plugin_CheckToken(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_CryptHead_toBuffer(), GWEN_CryptMgr_Decode(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Encode(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgr_Sign(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_CryptMgrKeys_VerifyData(), GWEN_Date_fromTime(), GWEN_DB__ReadValues(), GWEN_DB_ReadFromFastBuffer(), GWEN_DB_WriteGroupToIoLayer(), GWEN_DBIO__XmlDb_ImportVar(), GWEN_DBIO__XmlDb_ReadDataTags(), GWEN_DBIO_ModuleInit(), GWEN_DBIO_OldDb__ParseLine(), GWEN_DBIO_OldDb_Import(), GWEN_DBIO_XmlDb__ExportVar(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Dialog_CreateAndLoadWithPath(), GWEN_Dialog_ListReadColumnSettings(), GWEN_Dialog_ListWriteColumnSettings(), GWEN_Directory_FindFileInPaths(), GWEN_Directory_FindPathForFile(), GWEN_Directory_GetDirEntries(), GWEN_Directory_GetFileEntries(), GWEN_Directory_GetFileEntriesWithType(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_Directory_GetPath(), GWEN_Directory_HandlePathElement(), GWEN_DlgInput_new(), GWEN_DlgProgress_AddLogText(), GWEN_DlgShowBox_new(), GWEN_Gui_CGui_InputBox(), GWEN_Gui_CGui_MessageBox(), GWEN_Gui_CGui_ShowBox(), GWEN_Gui_CheckCertBuiltIn(), GWEN_Gui_CProgress_GetLogBuf(), GWEN_Gui_CProgress_Log(), GWEN_Gui_ExtendSyncIo(), GWEN_Gui_Internal_GetPassword(), GWEN_Gui_Internal_SetPasswordStatus(), GWEN_Gui_StdPrintf(), GWEN_LoadPluginDescrsByType(), GWEN_Logger__Log(), GWEN_Logger_Log(), GWEN_MDigest__HashFileTree(), GWEN_MDigest_CheckFileTree(), GWEN_MsgEngine__ReadGroup(), GWEN_MsgEngine__ReadValue(), GWEN_MsgEngine__WriteElement(), GWEN_MsgEngine_ReadMessage(), GWEN_Padd__UnpaddWithPkcs1Bt1Or2(), GWEN_Padd_PaddWithISO9796(), GWEN_Padd_PaddWithIso9796_2(), GWEN_Padd_PaddWithPkcs1Bt1(), GWEN_Padd_PaddWithPkcs1Bt2(), GWEN_Padd_UnpaddWithAnsiX9_23FromMultipleOf(), GWEN_Padd_UnpaddWithIso9796_2(), GWEN_Padd_UnpaddWithZkaFromMultipleOf(), GWEN_Param_SetCurrentValueAsDouble(), GWEN_PasswordStore__GetPassword(), GWEN_PasswordStore__SetPassword(), GWEN_PasswordStore_EncryptWriteFile(), GWEN_PasswordStore_GetTokenList(), GWEN_PasswordStore_ReadDecryptFile(), GWEN_PasswordStore_ReadFile(), GWEN_PasswordStore_WriteFile(), GWEN_Path_Handle(), GWEN_Path_HandleWithIdx(), GWEN_PathManager_AddPath(), GWEN_PathManager_AddRelPath(), GWEN_PathManager_FindFile(), GWEN_PathManager_GetMatchingFilesRecursively(), GWEN_PathManager_InsertRelPath(), GWEN_PluginManager_LoadPluginFile(), GWEN_ProgressData_GetLogText(), GWEN_Sar_AddAndDigestFileLink(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_AddFile(), GWEN_Sar_ExtractAndDigestFileDir(), GWEN_Sar_ExtractAndDigestFileLink(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_FileHeaderToTlv(), GWEN_Sar_ScanFile(), GWEN_Sar_Sign(), GWEN_Sar_Verify(), GWEN_SigHead_toBuffer(), GWEN_SigTail_toBuffer(), GWEN_SmallTresor_Decrypt(), GWEN_SmallTresor_Encrypt(), GWEN_StringList_fromString2(), GWEN_SyncIo_Buffered_ReadLinesToStringList(), GWEN_SyncIo_Http_ReadChunkSize(), GWEN_SyncIo_Http_ReadCommand(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadStatus(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), GWEN_SyncIo_Http_WriteStatus(), GWEN_SyncIo_Tls_GetPeerCert(), GWEN_SyncIo_Tls_Prepare(), GWEN_SyncIo_Tls_ShowCipherInfo(), GWEN_Tag16_EndTagInBuffer(), GWEN_Text_CondenseBuffer(), GWEN_Text_LogString(), GWEN_Url_fromCommandString(), GWEN_Url_fromString(), GWEN_XML__ReadData(), GWEN_XML__ReadTag(), GWEN_XML_AddNameSpace(), GWEN_XML_FindNameSpace(), GWEN_XmlCtxStore_AddAttr(), GWEN_XmlCtxStore_AddData(), GWEN_XMLNode__CheckAndSetNameSpace(), GWEN_XMLNode__CheckNameSpaceDecls1(), GWEN_XMLNode__WriteCommentToStream(), GWEN_XMLNode__WriteDataToStream(), GWEN_XMLNode__WritePropertiesToStream(), GWEN_XMLNode_ExpandProperties(), GWEN_XMLNode_GetXPath(), hashTree(), HtmlCtx_SanitizeData(), HtmlGroup_Box_AddData(), listArchive(), main(), mkArchiveKey(), releaseFillIn(), setCharValueWithTypePrefix(), setKey(), setSignSeq(), showKey(), showPasswords(), showUser(), signArchive(), signWithNew(), test_json(), TM2C_AddReleaseOldValueCode(), TM2C_AddVirtualFnsFromSlots(), TM2C_BuildCodeVirtualFns(), TM2C_BuildCreateColumnList(), TM2C_BuildCreateObject(), TM2C_BuildCreateTable(), TM2C_BuildDefineEnums(), TM2C_BuildDefineVirtualFns(), TM2C_BuildEnumFromString(), TM2C_BuildEnumToString(), TM2C_BuildFromDb(), TM2C_BuildFromObject(), TM2C_BuildFromXml(), TM2C_BuildGetterVirtualFns(), TM2C_BuildMacroFunctions(), TM2C_BuildProtoGetterVirtualFns(), TM2C_BuildProtoSetterVirtualFns(), TM2C_BuildProtoVirtualFns(), TM2C_BuildSetterVirtualFns(), TM2C_BuildSignalFunctions(), TM2C_BuildSlotFunctions(), TM2C_BuildStruct(), TM2C_BuildToDb(), TM2C_BuildToObject(), TM2C_BuildToXml(), TM2C_BuildTypedef(), TM2C_SetEnumStringFns(), Typemaker2_Builder_DetermineOutFileNames(), Typemaker2_Builder_WriteFile(), Typemaker2_Builder_WriteFiles(), Typemaker2_Group_readXml(), Typemaker2_Member_readXml(), Typemaker2_Type_readXml(), Typemaker2_TypeManager_LoadType(), Typemaker2_TypeManager_SetMemberTypePtrs(), updateToken(), verifyArchive(), write_c_enums(), write_code_duprec_c(), write_code_file_c(), write_code_fromdbArg_c(), write_code_setget_c(), write_code_todbArg_c(), write_h_elem_c(), write_h_enums(), write_h_setget_c(), write_ha_file_c(), write_hl_file_c(), write_hp_file_c(), and write_xml_to_bio().

| GWENHYWFAR_API uint32_t GWEN_Buffer_GetStep | ( | GWEN_BUFFER * | bf | ) |
| GWENHYWFAR_API uint32_t GWEN_Buffer_GetUsedBytes | ( | const GWEN_BUFFER * | bf | ) |
Definition at line 277 of file buffer.c.
Referenced by _addFilePathsToDb(), _addMatchingFiles(), _addStringListToBuffer(), _convertAndSetCharValue(), _decode(), _encode(), _getPathBetween(), _groupReadElement(), _makeAbsolutePaths(), _parseSetVar(), _readArgs(), _readFilesFromDataNode(), _readModifyWriteFile(), _recvPacket(), _writeConfigH(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), check1(), check2(), COCOA_Gui_GetFileName(), FOX16_Gui::getFileName(), QT4_Gui::getFileName(), QT5_Gui::getFileName(), GTK2_Gui_GetFileName(), GTK3_Gui_GetFileName(), GWB_Builder_AddAbsFileNameToBuffer(), GWB_Builder_AddFileNameToBuffer(), GWB_Builder_AddRelativeFolderToBuffer(), GWB_ParseOption(), GWB_Parser_ReadNamedXmlDataIntoBufferAndExpand(), GWB_Parser_ReadXmlDataIntoBufferAndExpand(), GWB_Tools_TryCompile(), GWB_Tools_TryLink(), GWEN_Crypt_Token_Context_ReadXml(), GWEN_Crypt_Token_KeyInfo_GetCertificateLen(), GWEN_Crypt_Token_KeyInfo_GetExponentLen(), GWEN_Crypt_Token_KeyInfo_GetModulusLen(), GWEN_Crypt_Token_KeyInfo_WriteDb(), GWEN_Crypt_Token_KeyInfo_WriteXml(), GWEN_Crypt_TokenFile__Decipher(), GWEN_Crypt_TokenFile__Encipher(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenOHBCI__DecryptFile(), GWEN_Crypt_TokenOHBCI__DecryptTresor(), GWEN_Crypt_TokenOHBCI_Plugin_CheckToken(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_CryptMgr_Decode(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Encode(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgr_Sign(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_CryptMgrKeys_VerifyData(), GWEN_DB__ReadValues(), GWEN_DB_ReadFromFastBuffer(), GWEN_DB_WriteGroupToIoLayer(), GWEN_DB_WriteVarValueToBuffer(), GWEN_DBIO__XmlDb_ImportVar(), GWEN_DBIO__XmlDb_ReadDataTags(), GWEN_DBIO_OldDb__ParseLine(), GWEN_Directory_HandlePathElement(), GWEN_DlgProgress_AddLogText(), GWEN_Gui_CProgress_Log(), GWEN_LoadPluginDescrsByType(), GWEN_Logger__Log(), GWEN_MsgEngine__ReadGroup(), GWEN_MsgEngine__ReadValue(), GWEN_MsgEngine__WriteElement(), GWEN_MsgEngine__WriteValue(), GWEN_MsgEngine_ReadMessage(), GWEN_MsgEngine_SkipSegment(), GWEN_Padd__UnpaddWithPkcs1Bt1Or2(), GWEN_Padd_ApplyPaddAlgo(), GWEN_Padd_PaddWithAnsiX9_23ToMultipleOf(), GWEN_Padd_PaddWithISO9796(), GWEN_Padd_PaddWithIso9796_2(), GWEN_Padd_PaddWithPkcs1Bt1(), GWEN_Padd_PaddWithPkcs1Bt2(), GWEN_Padd_PaddWithZkaToMultipleOf(), GWEN_Padd_UnpaddWithAnsiX9_23FromMultipleOf(), GWEN_Padd_UnpaddWithIso9796_2(), GWEN_Padd_UnpaddWithZkaFromMultipleOf(), GWEN_PasswordStore_EncryptWriteFile(), GWEN_PasswordStore_ReadDecryptFile(), GWEN_PasswordStore_ReadFile(), GWEN_PasswordStore_WriteFile(), GWEN_Sar_AddAndDigestFileLink(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_AddFile(), GWEN_Sar_ExtractAndDigestFileDir(), GWEN_Sar_ExtractAndDigestFileLink(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_FileHeaderToTlv(), GWEN_Sar_Sign(), GWEN_Sar_Verify(), GWEN_SmallTresor_Decrypt(), GWEN_SmallTresor_Encrypt(), GWEN_SyncIo_Buffered_ReadLineToBuffer(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_ReadStatus(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), GWEN_SyncIo_Http_WriteStatus(), GWEN_SyncIo_Tls_GetPeerCert(), GWEN_SyncIo_Tls_Prepare(), GWEN_SyncIo_Tls_ShowCipherInfo(), GWEN_Tag16_fromBuffer(), GWEN_Text_CondenseBuffer(), GWEN_Url_fromCommandString(), GWEN_Url_fromString(), GWEN_XML__ReadData(), GWEN_XML__ReadTag(), GWEN_XmlCtxStore_AddData(), HtmlCtx_SanitizeData(), HtmlGroup_Box_AddData(), and write_xml_to_bio().

| GWENHYWFAR_API int GWEN_Buffer_IncrementPos | ( | GWEN_BUFFER * | bf, |
| uint32_t | i ) |
Move the position pointer forward by the given number i.
Definition at line 451 of file buffer.c.
References DBG_DEBUG, and GWEN_LOGDOMAIN.
Referenced by _addRandomBytes(), _decode(), _encode(), _groupReadElement(), _writeTagToBuffer(), GWEN_Buffer_AppendArgs(), GWEN_Crypt_TokenFile__Decipher(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenOHBCI__DecryptFile(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgrKeys_DecryptKey(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_CryptMgrKeys_VerifyData(), GWEN_Gui_StdPrintf(), GWEN_MsgEngine__ReadGroup(), GWEN_MsgEngine__ReadValue(), GWEN_MsgEngine__WriteValue(), GWEN_MsgEngine_SkipSegment(), GWEN_Sar_ExtractAndDigestFileDir(), GWEN_Sar_ExtractAndDigestFileLink(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_ScanFile(), GWEN_Sar_Verify(), GWEN_SmallTresor_Decrypt(), GWEN_SmallTresor_Encrypt(), GWEN_SyncIo_Buffered_ReadLineToBuffer(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Memory_Read(), GWEN_SyncIo_Tls__readFile(), GWEN_Tag16_fromBuffer(), GWEN_Tag16_StartTagInBuffer(), GWEN_Text_UnescapeXmlToBuffer(), GWEN_TLV_Buffer_To_DB(), GWEN_TLV_fromBuffer(), readFile(), and readFile().

| GWENHYWFAR_API int GWEN_Buffer_InsertBuffer | ( | GWEN_BUFFER * | bf, |
| GWEN_BUFFER * | sf ) |
Insert the content of the buffer sf into the buffer bf at the position of its current position pointer. The size of bf will be increased accordingly. Returns zero on success or nonzero if this failed (e.g. because of out of memory error).
Definition at line 939 of file buffer.c.
References GWEN_Buffer_InsertBytes().

| GWENHYWFAR_API int GWEN_Buffer_InsertByte | ( | GWEN_BUFFER * | bf, |
| char | c ) |
Inserts a byte at the current position. If the current position is 0 and there is reserved space at the beginning of the buffer then that space will be used. Otherwise the data at the current position will be moved out of the way and the new byte inserted. The position pointer will not be altered, but after calling this function at that position there is the begin of the newly inserted byte. All pointers obtained from this module (e.g. via GWEN_Buffer_GetStart) become invalid ! This function updates the bookmarks accordingly.
Definition at line 914 of file buffer.c.
References DBG_ERROR, DBG_INFO, GWEN_Buffer_InsertRoom(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by GWEN_XMLNode_GetXPath().


| GWENHYWFAR_API int GWEN_Buffer_InsertBytes | ( | GWEN_BUFFER * | bf, |
| const char * | buffer, | ||
| uint32_t | size ) |
Inserts multiple bytes at the current position. If the current position is 0 and there is reserved space at the beginning of the buffer then that space will be used. Otherwise the data at the current position will be moved out of the way and the new bytes inserted. The position pointer will not be altered, but all pointers obtained from this module (e.g. via GWEN_Buffer_GetStart) become invalid !
Definition at line 886 of file buffer.c.
References DBG_ERROR, DBG_INFO, GWEN_Buffer_InsertRoom(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by GWEN_Buffer_InsertBuffer(), GWEN_Buffer_InsertString(), GWEN_Crypt_TokenOHBCI_Write(), and GWEN_Sar_AddFile().


| GWENHYWFAR_API int GWEN_Buffer_InsertRoom | ( | GWEN_BUFFER * | bf, |
| uint32_t | size ) |
This function makes room for the given number of bytes at the current buffer position. It moves any existing data at the current position out of the way. The position pointer will not be altered, but after calling this function at that position there is the begin of the newly inserted room. All pointers obtained from this module (e.g. via GWEN_Buffer_GetStart) become invalid ! This function updates the bookmarks accordingly.
Definition at line 739 of file buffer.c.
References DBG_DEBUG, DBG_ERROR, GWEN_Buffer_AdjustBookmarks(), GWEN_Buffer_AllocRoom(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by GWEN_Buffer_FillLeftWithBytes(), GWEN_Buffer_InsertByte(), GWEN_Buffer_InsertBytes(), GWEN_Buffer_ReplaceBytes(), GWEN_Padd_PaddWithIso9796_2(), GWEN_Padd_PaddWithPkcs1Bt1(), and GWEN_Padd_PaddWithPkcs1Bt2().


| GWENHYWFAR_API int GWEN_Buffer_InsertString | ( | GWEN_BUFFER * | bf, |
| const char * | buffer ) |
Inserts the given string at the current position (without the trailing null byte) The position pointer will not be altered, but after calling this function at that position there is the begin of the newly inserted string. All pointers obtained from this module (e.g. via GWEN_Buffer_GetStart) become invalid ! This function updates the bookmarks accordingly.
Definition at line 1002 of file buffer.c.
References GWEN_Buffer_InsertBytes().
Referenced by GWEN_XMLNode_GetXPath().


| GWENHYWFAR_API int GWEN_Buffer_KeepTextBetweenStrings | ( | GWEN_BUFFER * | bf, |
| const char * | openingString, | ||
| const char * | closingString, | ||
| int | onlyBetween ) |
Look for the openingString and the closingString in the buffer, if they exist remove all outside those strings, in some cases including the opening/closing string.
| bf | buffer to operate on |
| openingString | string which starts the area you are interested in |
| closingString | string which ends the area you are interested in |
| onlyBetween | if !=0 the opening/closing string are also removed from the buffer |
Definition at line 1130 of file buffer.c.
References GWEN_Buffer_Crop(), GWEN_ERROR_NOT_FOUND, and GWEN_Text_StrCaseStr().

| GWENHYWFAR_API GWEN_BUFFER * GWEN_Buffer_new | ( | char * | buffer, |
| uint32_t | size, | ||
| uint32_t | used, | ||
| int | take_ownership ) |
Creates a new GWEN_BUFFER, which is a dynamically resizeable text buffer.
| buffer | If non-NULL, then this buffer will be used as actual storage space. Otherwise a new buffer will be allocated (with size bytes) |
| size | If buffer was non-NULL, then this argument must specifiy the size of that buffer. If buffer was NULL, then this argument specifies the number of bytes that will be allocated. |
| used | Number of bytes of the buffer actually used. This is interesting when reading from a buffer. |
| take_ownership | If buffer was non-NULL and this argument is nonzero, then the new GWEN_BUFFER object takes over the ownership of the given buffer so that it will be freed on GWEN_Buffer_free(). If this argument is zero, the given buffer will not be freed. If buffer was NULL, this argument has no effect. |
Definition at line 42 of file buffer.c.
References GWEN_BUFFER_MODE_DEFAULT, GWEN_Memory_malloc(), and GWEN_NEW_OBJECT.
Referenced by _addAssignNewValueCode(), _addAssignValueCode(), _addAssignValueCode(), _addBuildFileNameToGwBuild(), _addCompareMemberImplementation(), _addCompareMemberProtoType(), _addDupNewValueCode(), _addDupValueCode(), _addDupValueCode(), _addFilePathsToDb(), _addFlagFnsImplementation(), _addFlagFnsPrototype(), _addFreeHookPrototype(), _addGetByMemberImplementation(), _addGetByMemberImplementation(), _addGetByMemberImplementation(), _addGetByMemberProtoType(), _addGetByMemberProtoType(), _addGetByMemberProtoType(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addImplementation(), _addListDupImplementation(), _addListDupProtoType(), _addMemberFinis(), _addMemberImplementation(), _addMemberInits(), _addMemberProtoTypes(), _addOneSubTargetForTarget(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototype(), _addPrototypes(), _addReadMemberCode(), _addReadMemberCode(), _addReadMemberCode(), _addReleaseOldValueCode(), _addSetterImplementation(), _addSetterPrototype(), _addSignalObjects(), _addSortByMemberImplementation(), _addSortByMemberProtoType(), _addTargetForLanguage(), _addWriteMemberCode(), _addWriteMemberCode(), _addWriteMemberCode(), _appendVarValue(), _buildApiDoc(), _buildAttach(), _buildCacheFunctions(), _buildDefineDefines(), _buildEndHeaders(), _buildFieldIds(), _buildGetByMember(), _buildImplementation(), _buildInlines(), _buildMemberInlines(), _buildPostHeaders(), _buildPrototypes(), _buildToHashString(), _callPkgConfig(), _checkFunction(), _checkHeader(), _checkStringListOption(), _checkStringOption(), _checkVersion(), _convertAndSetCharValue(), _convertAndSetCharValue(), _createPluginFromLibloader(), _createTestCodeForLib(), _csvImport(), _decode(), _determineNamePath(), _encode(), _exportDbToXml(), _fileListToTopBuildDirStringList(), _generateInstallList(), _getSourcePathForFileName(), _getToolPath(), _groupReadElement(), _handleDbSetCharValue_internal(), _handleDbSetCharValue_internal(), _logHook(), _makeAbsolutePaths(), _parseDefines(), _parseLib(), _prepareBaseLogPath(), _printCmdOutputIfNotEmptyAndDeleteFile(), _readAndStoreNextVersionPart(), _readArgs(), _readBuilderDescrList(), _readCommandLine(), _readCsvLine(), _readDepFile(), _readFilesFromDataNode(), _readMainFilename(), _readModifyWriteFile(), _readObject(), _readSubCmd(), _readValue(), _readXmlDataIntoBufferAndExpand(), _retrieveVariable(), _runModule(), _runTest(), _searchAndLoadModule(), _setDefineFunctionExists(), _setDefineHeaderExists(), _setVarFunctionExists(), _setVarHeaderExists(), _stringListToDb(), _tryReadPasswdViaInputBox(), _writeConfigH(), _writeDistFiles(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), _writeFileFlagsToXml(), _xmlSetCharValue(), activateKey(), add2Archive(), addMemberInfoToCallDb(), addToList(), buildFile2(), changePin(), check1(), check2(), checkArchive(), checkTree(), CocoaGui_WPushButton_Setup(), createArchive(), createToken(), cryptWithNew(), Dlg_Test1_new(), Dlg_Test2_new(), doBuildDefs(), extractArchive(), genKey(), FOX16_GuiDialog::getIcon(), FOX16_HtmlCtx::getImage(), Gtk2Gui_WLabel_SetCharProperty(), Gtk2Gui_WLabel_Setup(), Gtk2Gui_WListBox_GetCharProperty(), Gtk2Gui_WPushButton_Setup(), Gtk2Gui_WTextBrowser_SetCharProperty(), Gtk2Gui_WTextBrowser_Setup(), Gtk3Gui_WLabel_SetCharProperty(), Gtk3Gui_WLabel_Setup(), Gtk3Gui_WListBox_GetCharProperty(), Gtk3Gui_WPushButton_Setup(), Gtk3Gui_WTextBrowser_SetCharProperty(), Gtk3Gui_WTextBrowser_Setup(), GWB_BuildCtx_CreateAndSetLogFilenameForSubCmd(), GWB_Builder_AddAbsFileNameToBuffer(), GWB_Builder_AddFileNameToBuffer(), GWB_Builder_AddRelativeFolderToBuffer(), GWB_Clean(), GWB_File_FileListToTopBuildDirStringList(), GWB_File_List2_GetOrCreateFile(), GWB_File_ReplaceExtension(), GWB_GenericBuilder_Factory(), GWB_InstallFiles(), GWB_MkDist(), GWB_Parser_ReadXmlDataIntoBufferAndExpand(), GWB_Parser_SetItemValue(), GWB_Project_SetDefineQuoted(), GWB_Tools_CheckCompilerArgs(), GWB_Tools_TryCompile(), GWB_Tools_TryLink(), GWB_Utils_VersionStringToDb(), GWB_Utils_VersionToDbVar(), GWEN_Args_Check(), GWEN_ConfigMgr_ModuleInit(), GWEN_ConfigMgrDir__GetUniqueId(), GWEN_ConfigMgrDir__UpdateLastUniqueId(), GWEN_ConfigMgrDir_DeleteGroup(), GWEN_ConfigMgrDir_GetGroup(), GWEN_ConfigMgrDir_HasGroup(), GWEN_ConfigMgrDir_ListSubGroups(), GWEN_ConfigMgrDir_LockGroup(), GWEN_ConfigMgrDir_MkUniqueIdFromId(), GWEN_ConfigMgrDir_new(), GWEN_ConfigMgrDir_SetGroup(), GWEN_ConfigMgrDir_UnlockGroup(), GWEN_Crypt_Token_Context_ReadXml(), GWEN_Crypt_Token_Context_WriteXml(), GWEN_Crypt_Token_GetPin(), GWEN_Crypt_Token_KeyInfo_ReadDb(), GWEN_Crypt_Token_KeyInfo_ReadXml(), GWEN_Crypt_Token_KeyInfo_SetCertificate(), GWEN_Crypt_Token_KeyInfo_SetExponent(), GWEN_Crypt_Token_KeyInfo_SetModulus(), GWEN_Crypt_Token_KeyInfo_WriteXml(), GWEN_Crypt_Token_ModuleInit(), GWEN_Crypt_Token_SetPinStatus(), GWEN_Crypt_TokenFile__Decipher(), GWEN_Crypt_TokenFile__Encipher(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_Crypt_TokenOHBCI__DecryptFile(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), GWEN_Crypt_TokenOHBCI__DecryptTresor(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_CryptMgr_Decode(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Encode(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgr_Sign(), GWEN_CryptMgrKeys_DecryptKey(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SignData(), GWEN_CryptMgrKeys_VerifyData(), GWEN_Date_fromTime(), GWEN_DB__ReadValues(), GWEN_DB_ReadFromFastBuffer(), GWEN_DB_WriteGroupToIoLayer(), GWEN_DBIO__XmlDb_ImportVar(), GWEN_DBIO__XmlDb_ReadDataTags(), GWEN_DBIO_ModuleInit(), GWEN_DBIO_OldDb__ParseLine(), GWEN_DBIO_OldDb_Import(), GWEN_DBIO_XmlDb__ExportVar(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Dialog_CreateAndLoadWithPath(), GWEN_Dialog_ListReadColumnSettings(), GWEN_Dialog_ListWriteColumnSettings(), GWEN_Directory_FindFileInPaths(), GWEN_Directory_FindPathForFile(), GWEN_Directory_GetDirEntries(), GWEN_Directory_GetFileEntries(), GWEN_Directory_GetFileEntriesWithType(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_Directory_GetPath(), GWEN_Directory_HandlePathElement(), GWEN_DlgInput_new(), GWEN_DlgProgress_AddLogText(), GWEN_DlgProgress_new(), GWEN_DlgShowBox_new(), GWEN_Gui_CGui_InputBox(), GWEN_Gui_CGui_MessageBox(), GWEN_Gui_CGui_ShowBox(), GWEN_Gui_CheckCertBuiltIn(), GWEN_Gui_CProgress_Log(), GWEN_Gui_CProgress_new(), GWEN_Gui_ExtendSyncIo(), GWEN_Gui_Internal_GetPassword(), GWEN_Gui_Internal_SetPasswordStatus(), GWEN_Gui_StdPrintf(), GWEN_LoadPluginDescrsByType(), GWEN_Logger__Log(), GWEN_Logger_Log(), GWEN_MDigest__HashFileTree(), GWEN_MDigest_CheckFileTree(), GWEN_MsgEngine__ReadGroup(), GWEN_MsgEngine__WriteElement(), GWEN_Param_SetCurrentValueAsDouble(), GWEN_PasswordStore__GetPassword(), GWEN_PasswordStore__SetPassword(), GWEN_PasswordStore_EncryptWriteFile(), GWEN_PasswordStore_GetTokenList(), GWEN_PasswordStore_ReadDecryptFile(), GWEN_PasswordStore_ReadFile(), GWEN_PasswordStore_WriteFile(), GWEN_Path_Handle(), GWEN_Path_HandleWithIdx(), GWEN_PathManager_AddPath(), GWEN_PathManager_AddRelPath(), GWEN_PathManager_FindFile(), GWEN_PathManager_GetMatchingFilesRecursively(), GWEN_PathManager_InsertRelPath(), GWEN_PluginManager_LoadPluginFile(), GWEN_ProgressData_new(), GWEN_Sar_AddAndDigestFileLink(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_AddFile(), GWEN_Sar_ExtractAndDigestFileDir(), GWEN_Sar_ExtractAndDigestFileLink(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_FileHeaderToTlv(), GWEN_Sar_ScanFile(), GWEN_Sar_Sign(), GWEN_Sar_Verify(), GWEN_SigHead_toBuffer(), GWEN_SmallTresor_Decrypt(), GWEN_SmallTresor_Encrypt(), GWEN_StringList_fromString2(), GWEN_SyncIo_Buffered_ReadLinesToStringList(), GWEN_SyncIo_Http_Read(), GWEN_SyncIo_Http_ReadChunk(), GWEN_SyncIo_Http_ReadChunkSize(), GWEN_SyncIo_Http_ReadCommand(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadStatus(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), GWEN_SyncIo_Http_WriteStatus(), GWEN_SyncIo_Memory_fromBuffer(), GWEN_SyncIo_Memory_new(), GWEN_SyncIo_Tls_GetPeerCert(), GWEN_SyncIo_Tls_Prepare(), GWEN_SyncIo_Tls_ShowCipherInfo(), GWEN_Text_LogString(), GWEN_Url_fromCommandString(), GWEN_Url_fromString(), GWEN_XML__ReadData(), GWEN_XML__ReadTag(), GWEN_XML_AddNameSpace(), GWEN_XML_FindNameSpace(), GWEN_XML_ReadFromFastBuffer(), GWEN_XMLContext_ReadFromString(), GWEN_XmlCtxStore_AddAttr(), GWEN_XmlCtxStore_AddData(), GWEN_XMLNode__CheckAndSetNameSpace(), GWEN_XMLNode__CheckNameSpaceDecls1(), GWEN_XMLNode__WriteCommentToStream(), GWEN_XMLNode__WriteDataToStream(), GWEN_XMLNode__WritePropertiesToStream(), GWEN_XMLNode_ExpandProperties(), GWEN_XMLNode_fromString(), GWEN_XMLNode_GetXPath(), hashTree(), HtmlGroup_Box_AddData(), listArchive(), main(), mkArchiveKey(), releaseFillIn(), setCharValueWithTypePrefix(), setKey(), setSignSeq(), showKey(), showPasswords(), showUser(), signArchive(), signWithNew(), test_json(), TM2C_AddReleaseOldValueCode(), TM2C_AddVirtualFnsFromSlots(), TM2C_BuildCodeVirtualFns(), TM2C_BuildCreateColumnList(), TM2C_BuildCreateObject(), TM2C_BuildCreateTable(), TM2C_BuildDefineEnums(), TM2C_BuildDefineVirtualFns(), TM2C_BuildEnumFromString(), TM2C_BuildEnumToString(), TM2C_BuildFromDb(), TM2C_BuildFromObject(), TM2C_BuildFromXml(), TM2C_BuildGetterVirtualFns(), TM2C_BuildMacroFunctions(), TM2C_BuildProtoGetterVirtualFns(), TM2C_BuildProtoSetterVirtualFns(), TM2C_BuildProtoVirtualFns(), TM2C_BuildSetterVirtualFns(), TM2C_BuildSignalFunctions(), TM2C_BuildSlotFunctions(), TM2C_BuildStruct(), TM2C_BuildToDb(), TM2C_BuildToObject(), TM2C_BuildToXml(), TM2C_BuildTypedef(), TM2C_SetEnumStringFns(), Typemaker2_Builder_DetermineOutFileNames(), Typemaker2_Builder_WriteFile(), Typemaker2_Builder_WriteFiles(), Typemaker2_Group_readXml(), Typemaker2_Member_readXml(), Typemaker2_Type_readXml(), Typemaker2_TypeManager_LoadType(), Typemaker2_TypeManager_SetMemberTypePtrs(), updateToken(), verifyArchive(), write_c_enums(), write_code_duprec_c(), write_code_file_c(), write_code_fromdbArg_c(), write_code_setget_c(), write_code_todbArg_c(), write_h_elem_c(), write_h_enums(), write_h_setget_c(), write_ha_file_c(), write_hl_file_c(), write_hp_file_c(), and write_xml_to_bio().


| GWENHYWFAR_API void GWEN_Buffer_OverwriteContent | ( | GWEN_BUFFER * | bf, |
| int | c ) |
Definition at line 556 of file buffer.c.
Referenced by GWEN_PasswordStore_EncryptWriteFile(), GWEN_PasswordStore_ReadFile(), and GWEN_PasswordStore_WriteFile().

| GWENHYWFAR_API int GWEN_Buffer_PeekByte | ( | GWEN_BUFFER * | bf | ) |
Returns the byte from the current position without changing the position pointer. So multiple calls to this function will result in returning the same character.
Definition at line 425 of file buffer.c.
References GWEN_ERROR_EOF.
Referenced by _groupReadElement(), and GWEN_MsgEngine__ReadGroup().

| GWENHYWFAR_API int GWEN_Buffer_ReadByte | ( | GWEN_BUFFER * | bf | ) |
Returns the byte from the current position. The position pointer is adjusted accordingly.
Definition at line 438 of file buffer.c.
References GWEN_ERROR_EOF.
Referenced by GWEN_MsgEngine__ReadValue(), GWEN_MsgEngine__WriteValue(), GWEN_MsgEngine_SkipSegment(), GWEN_Text_EscapeToBufferTolerant2(), GWEN_TLV_Buffer_To_DB(), and GWEN_TLV_ParseLength().

| GWENHYWFAR_API int GWEN_Buffer_ReadBytes | ( | GWEN_BUFFER * | bf, |
| char * | buffer, | ||
| uint32_t * | size ) |
Returns the bytes from the current position. The position pointer is adjusted accordingly.
Definition at line 671 of file buffer.c.
References DBG_VERBOUS, and GWEN_LOGDOMAIN.
| GWENHYWFAR_API int GWEN_Buffer_Relinquish | ( | GWEN_BUFFER * | bf | ) |
This function relinquishes ownership of the internal buffer if possible. It returns an error if this object does not own the buffer (it can't give you what it doesn't possess) or if the internal pointer to the memory allocated does not match the internal pointer to the current start of the buffer (this can be the case when GWEN_Buffer_ReserveBytes() of GWEN_Buffer_Crop() have been called).
Definition at line 143 of file buffer.c.
References GWEN_ERROR_INVALID.
Referenced by GWEN_Crypt_Token_Context_ReadXml().

| GWENHYWFAR_API int GWEN_Buffer_RemoveRoom | ( | GWEN_BUFFER * | bf, |
| uint32_t | size ) |
This function removes the given number of bytes at the current buffer position. It moves any existing bytes behind the area to be removed to the current position. The position pointer will not be altered, but after calling this function at that position there is the begin of the data behind the removed area. All pointers obtained from this module (e.g. via GWEN_Buffer_GetStart) become invalid ! This function updates the bookmarks accordingly.
Definition at line 801 of file buffer.c.
References DBG_ERROR, GWEN_Buffer_AdjustBookmarks(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_ERROR_INVALID, GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.
Referenced by GWEN_Buffer_ReplaceBytes().


| GWENHYWFAR_API int GWEN_Buffer_ReplaceBytes | ( | GWEN_BUFFER * | bf, |
| uint32_t | rsize, | ||
| const char * | buffer, | ||
| uint32_t | size ) |
This function remplaces the given number of bytes at the current buffer position with some new bytes. If the number of bytes to be replaced does not equal the number of replacement bytes then the buffer is resized accordingly (e.g. shrunk or extended). The position pointer will not be altered. All pointers obtained from this module (e.g. via GWEN_Buffer_GetStart) become invalid ! This function updates the bookmarks accordingly.
Definition at line 844 of file buffer.c.
References DBG_ERROR, GWEN_Buffer_InsertRoom(), GWEN_BUFFER_MODE_ABORT_ON_MEMFULL, GWEN_BUFFER_MODE_READONLY, GWEN_Buffer_RemoveRoom(), GWEN_ERROR_PERMISSIONS, and GWEN_LOGDOMAIN.

| GWENHYWFAR_API int GWEN_Buffer_ReserveBytes | ( | GWEN_BUFFER * | bf, |
| uint32_t | res ) |
Reserves the given amount of bytes at the beginning of the buffer. Please note that this most likely results in a shift of the current position inside the buffer, so after this call all pointers obtained from this module (e.g. via GWEN_Buffer_GetStart) are invalid ! You can use this function to save some memory copy actions when inserting bytes at the beginning of the buffer.
Definition at line 157 of file buffer.c.
References GWEN_Buffer_AllocRoom().
Referenced by GWEN_Crypt_TokenOHBCI_Write(), GWEN_Sar_AddFile(), and GWEN_XMLNode_GetXPath().


| GWENHYWFAR_API void GWEN_Buffer_Reset | ( | GWEN_BUFFER * | bf | ) |
Resets the position pointer and the byte counter.
Definition at line 653 of file buffer.c.
Referenced by _addFilePathsToDb(), _addSignalObjects(), _addTargetForLanguage(), _buildAttach(), _buildCacheFunctions(), _buildDefineDefines(), _buildInlines(), _buildMemberInlines(), _buildToHashString(), _checkPlugin(), _csvImport(), _decode(), _encode(), _fileListToTopBuildDirStringList(), _generateInstallList(), _parseWriteFile(), _readCsvLine(), _readObject(), _runTest(), _writeDistFiles(), COCOA_Gui_GetFileName(), FOX16_Gui::getFileName(), QT4_Gui::getFileName(), QT5_Gui::getFileName(), GTK2_Gui_GetFileName(), GTK3_Gui_GetFileName(), GWB_Clean(), GWB_File_FileListToTopBuildDirStringList(), GWB_InstallFiles(), GWEN_Args_Check(), GWEN_ConfigMgr_ModuleInit(), GWEN_ConfigMgrDir_ListSubGroups(), GWEN_Crypt_Token_ModuleInit(), GWEN_DB__ReadValues(), GWEN_DB_ReadFromFastBuffer(), GWEN_DBIO__XmlDb_ImportVar(), GWEN_DBIO_ModuleInit(), GWEN_DBIO_OldDb__ParseLine(), GWEN_DBIO_OldDb_Import(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Padd_PaddWithISO9796(), GWEN_Path_Handle(), GWEN_Path_HandleWithIdx(), GWEN_PathManager_FindFile(), GWEN_PathManager_GetMatchingFilesRecursively(), GWEN_ProgressData_ClearLogText(), GWEN_Sar_AddFile(), GWEN_Sar_ScanFile(), GWEN_StringList_fromString2(), GWEN_SyncIo_Buffered_ReadLinesToStringList(), GWEN_SyncIo_Http_ReadChunkSize(), GWEN_SyncIo_Tls_GetPeerCert(), GWEN_XML__ReadData(), GWEN_XML__ReadTag(), GWEN_XML_ReadFromFastBuffer(), GWEN_XMLNode__WritePropertiesToStream(), GWEN_XMLNode_ExpandProperties(), GWEN_XMLNode_GetXPath(), showKey(), test_json(), TM2C_BuildCodeVirtualFns(), TM2C_BuildCreateColumnList(), TM2C_BuildCreateObject(), TM2C_BuildCreateTable(), TM2C_BuildDefineEnums(), TM2C_BuildDefineVirtualFns(), TM2C_BuildEnumFromString(), TM2C_BuildEnumToString(), TM2C_BuildFromDb(), TM2C_BuildFromObject(), TM2C_BuildFromXml(), TM2C_BuildGetterVirtualFns(), TM2C_BuildProtoGetterVirtualFns(), TM2C_BuildProtoSetterVirtualFns(), TM2C_BuildProtoVirtualFns(), TM2C_BuildSetterVirtualFns(), TM2C_BuildSignalFunctions(), TM2C_BuildSlotFunctions(), TM2C_BuildToDb(), TM2C_BuildToObject(), TM2C_BuildToXml(), and TM2C_SetEnumStringFns().

| GWENHYWFAR_API void GWEN_Buffer_Rewind | ( | GWEN_BUFFER * | bf | ) |
Resets the pos pointer
Definition at line 663 of file buffer.c.
Referenced by _groupReadElement(), GWEN_Crypt_TokenFile__Encipher(), GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI__DecryptFile(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), GWEN_Crypt_TokenOHBCI__DecryptTresor(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_Padd_PaddWithIso9796_2(), GWEN_Padd_PaddWithPkcs1Bt1(), GWEN_Padd_PaddWithPkcs1Bt2(), GWEN_Sar_ScanFile(), and GWEN_SyncIo_Memory_fromBuffer().

| GWENHYWFAR_API void GWEN_Buffer_SetBookmark | ( | GWEN_BUFFER * | bf, |
| unsigned int | idx, | ||
| uint32_t | v ) |
Set a bookmark. These bookmarks are not used by the GWEN_BUFFER functions, but may be usefull for an application.
Definition at line 575 of file buffer.c.
References GWEN_BUFFER_MAX_BOOKMARKS.
| GWENHYWFAR_API void GWEN_Buffer_SetHardLimit | ( | GWEN_BUFFER * | bf, |
| uint32_t | l ) |
Changes the hard limit. This is the maximum size of a GWEN_BUFFER in dynamic mode.
| GWENHYWFAR_API void GWEN_Buffer_SetMode | ( | GWEN_BUFFER * | bf, |
| uint32_t | mode ) |
Changes the current mode of the buffer (such as GWEN_BUFFER_MODE_DYNAMIC).
| GWENHYWFAR_API int GWEN_Buffer_SetPos | ( | GWEN_BUFFER * | bf, |
| uint32_t | i ) |
Definition at line 261 of file buffer.c.
References DBG_ERROR, GWEN_ERROR_BUFFER_OVERFLOW, and GWEN_LOGDOMAIN.
Referenced by GWEN_Gui_ConvertString(), GWEN_LoadPluginDescrsByType(), GWEN_MsgEngine__WriteGroup(), GWEN_MsgEngine_ReadMessage(), GWEN_Padd_UnpaddWithAnsiX9_23FromMultipleOf(), GWEN_Padd_UnpaddWithZkaFromMultipleOf(), GWEN_Sar_AddFile(), and write_c_enums().

| GWENHYWFAR_API void GWEN_Buffer_SetStep | ( | GWEN_BUFFER * | bf, |
| uint32_t | step ) |
In dynamic mode, whenever there is new data to allocate then this value specifies how much data to allocate in addition. The allocated data in total for this buffer will be aligned to this value. 1024 is a reasonable value. This value NEEDS to be aligned 2^n (i.e. only ONE bit must be set !)
Definition at line 716 of file buffer.c.
Referenced by GWEN_MsgEngine__WriteElement(), GWEN_Path_Handle(), and GWEN_Path_HandleWithIdx().

| GWENHYWFAR_API void GWEN_Buffer_SubMode | ( | GWEN_BUFFER * | bf, |
| uint32_t | mode ) |
Removes the give mode from the current mode of the buffer (such as GWEN_BUFFER_MODE_DYNAMIC).
Definition at line 210 of file buffer.c.
Referenced by GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_XMLContext_ReadFromString(), and GWEN_XMLNode_fromString().

| GWENHYWFAR_API GWEN_FORMAT | ( | printf | , |
| 2 | , | ||
| 3 | ) |
Append strings to buffer with a sprintf()-like argument list.
| bf | buffer to append data to |
| fmt | format string like that for sprintf(). |
References GWENHYWFAR_API.
| GWENHYWFAR_API const char* fmt |
Definition at line 283 of file buffer.h.
Referenced by _getLocalizedLongDescrByFormat(), GWEN_Buffer_AppendArgs(), GWEN_Debug_Snprintf(), GWEN_Gui_ProgressLog2(), GWEN_Gui_ShowError(), GWEN_Gui_StdPrintf(), and GWEN_Gui_StdPrintf().