SStrPack
function · storm · primitive
- Address
0x64a760· 142 bytes, up to0x64a7ed- Signature
uint32_t __stdcall (char *dest, const char *src, uint32_t size)- Meaning
- Appends a string to another below a buffer size, terminates it and returns the new length
- Confidence
- verified, proof two
- Finding
- storm/strings#string-length-and-append
- Test
storm::sstrpack_whole
Finding: String length and append in storm: string conversions
SStrLen(s) (0x64a6f0) returns the count of bytes before the first NUL. SStrPack(dest, src, size) (0x64a760)
appends src to the string in dest and returns the new length of dest. A size of 0 returns 0 and writes
nothing. Otherwise bytes of src are copied to the end of dest while the write address is below
dest + size - 1 (unsigned 32-bit address arithmetic), and a NUL follows the last byte copied; a dest already at the
limit gets no byte and its NUL is rewritten at its old end. size 0x7fffffff has no limit. A null s, dest or
src sets error 0x57 and gives 0, SStrPack writing nothing even for a size of 0.
The derivation is in the doc.
Callers 88
- DisplayErrorLevelStatus client
- PrintSysMsgFilter client
- FormatErrorLogHeader client
- FormatErrorLogZone client
- FormatErrorLogObject client
- 0x41e4d0 base
- 0x42aa80 os
- 0x42ab00 os
- EnumerateFolderFiles os
- 0x42af20 os
- 0x42b000 os
- 0x42e7f0 os
- 0x42e830 os
- FormatTgaMipPattern gx
- TexturePickAlternateFilename gx
- ReceiveServerAlertData glue
- GenerateRandomName glue
- GetFlatSavedVariablesPath ui
- SaveFlatSavedVariables ui
- AddChatLine ui
- RewriteInLanguage ui
- PrintChannelMemberList ui
- ClientChatHandler ui
- Script::ListChannels ui
- OnBattlefieldNameJoined ui
- Script::GetPackageInfo ui
- Script::GetInboxHeaderInfo ui
- ShowReadyCheckSummary ui
- GetLootRowIcon ui
- GetLootRowName ui
- CGMinimapFrame::OnMouseMove ui
- LoadMacroFiles ui
- SaveMacroFiles ui
- Script::GetTradeSkillItemStats ui
- TabardModel::GetUpperEmblemTexture ui
- TabardModel::GetLowerEmblemTexture ui
- ExpandServerText ui
- ExpandServerToken ui
- ExpandSpellText ui
- ExpandSpellToken ui
- ExpandGenderToken ui
- ExpandPluralToken ui
- ExpandTargetTokens ui
- ExpandWorldStateText ui
- RegisterCameraCVars uicamera
- SaveAddOnEnableState ui
- SaveAddOnVariables ui
- CGTooltip::AddStudiedCreatureLines ui
- CGTooltip::BuildItem ui
- CGTooltip::BuildSpell ui
- SendBugReport net
- OpenAccountDataFile net
- ReadLootMoneyNotify objectlayer
- CGPlayer_C::AppendAfkTag objectlayer
- CGPlayer_C::AppendDndTag objectlayer
- CGPlayer_C::AppendGmTag objectlayer
- CGUnit_C::GetPvPName objectlayer
- AppendDamageTrailers objectlayer
- LogExtraAttacks objectlayer
- ConsoleCommand_Font console
- PasteInInputLine console
- CvarListCommandHandler cvar
- SaveConfig cvar
- ConsoleCommandHelp console
- AddLineToExecFile unassigned
- BuildLooseIndex storm
- SFile::OpenEx storm
- SFileResolveOpen storm
- 0x648180 storm
- SFileSetBasePath storm
- SFileSetDataPath storm
- SFileSetExtraIndexPath storm
- BuildFullKeyName storm
- 0x64d870 storm
- 0x64d960 storm
- 0x64db80 storm
- 0x64f4b0 storm
- 0x654f20 storm
- 0x6571d0 storm
- 0x65a3e0 storm
- FormatCoinIconPath unassigned
- ReportCastFailure spell
- LoadTocFile ui
- LoadFrameXMLFile ui
- FormatFontFlags ui
- CScriptRegion::ExpandName ui
- CSimpleHTML::BuildTextBlock ui
- OpenFallLog collision
Callees 1
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.