AsmJit
Low-Latency Machine Code Generation
Docs
Interactive Parser
Support
GitHub
API Reference
Index
Class List
Build Instructions
Breaking Changes
Core
Assembler
Builder
Compiler
Function
Logging
Error Handling
Instruction DB
Virtual Memory
Zone Memory
Utilities
X86 Backend
ARM Commons
AArch64 Backend
asmjit::StringTmp< N > Class Template Reference
Utilities
Inheritance diagram for asmjit::StringTmp< N >:
template<size_t N>
class asmjit::StringTmp< N >
Temporary string builder, has statically allocated
N
bytes.
Public Members
char
_embeddedData
[Support::alignUp(N+1,
sizeof
(
size_t
))]
Member Functions
StringTmp
(
const
StringTmp
& other) =
delete
StringTmp
&
operator=
(
const
StringTmp
& other) =
delete
Construction & Destruction
StringTmp
()
noexcept
void
_resetToTemporary
()
noexcept
Public Member Functions inherited from
asmjit::String
String
(
const
String
& other) =
delete
String
&
operator=
(
const
String
& other) =
delete
String
()
noexcept
String
(
String
&& other)
noexcept
~String
()
noexcept
Error
reset
()
noexcept
String
&
operator=
(
String
&& other)
noexcept
bool
operator==
(
const
char
* other)
const
noexcept
bool
operator!=
(
const
char
* other)
const
noexcept
bool
operator==
(
const
String
& other)
const
noexcept
bool
operator!=
(
const
String
& other)
const
noexcept
bool
isExternal
()
const
noexcept
bool
isLargeOrExternal
()
const
noexcept
bool
empty
()
const
noexcept
size_t
size
()
const
noexcept
size_t
capacity
()
const
noexcept
char
*
data
()
noexcept
const
char
*
data
()
const
noexcept
char
*
start
()
noexcept
const
char
*
start
()
const
noexcept
char
*
end
()
noexcept
const
char
*
end
()
const
noexcept
void
swap
(
String
& other)
noexcept
Error
clear
()
noexcept
char
*
prepare
(
ModifyOp
op,
size_t
size
)
noexcept
Error
_opString
(
ModifyOp
op,
const
char
* str,
size_t
size
= SIZE_MAX)
noexcept
Error
_opChar
(
ModifyOp
op,
char
c)
noexcept
Error
_opChars
(
ModifyOp
op,
char
c,
size_t
n)
noexcept
Error
_opNumber
(
ModifyOp
op,
uint64_t
i,
uint32_t
base = 0,
size_t
width = 0,
StringFormatFlags
flags =
StringFormatFlags::kNone
)
noexcept
Error
_opHex
(
ModifyOp
op,
const
void
*
data
,
size_t
size
,
char
separator = '\0')
noexcept
Error
_opFormat
(
ModifyOp
op,
const
char
* fmt, ...)
noexcept
Error
_opVFormat
(
ModifyOp
op,
const
char
* fmt,
va_list
ap)
noexcept
Error
assign
(
const
char
*
data
,
size_t
size
= SIZE_MAX)
noexcept
Error
assign
(
const
String
& other)
noexcept
Error
assign
(
char
c)
noexcept
Error
assignChars
(
char
c,
size_t
n)
noexcept
Error
assignInt
(
int64_t
i,
uint32_t
base = 0,
size_t
width = 0,
StringFormatFlags
flags =
StringFormatFlags::kNone
)
noexcept
Error
assignUInt
(
uint64_t
i,
uint32_t
base = 0,
size_t
width = 0,
StringFormatFlags
flags =
StringFormatFlags::kNone
)
noexcept
Error
assignHex
(
const
void
*
data
,
size_t
size
,
char
separator = '\0')
noexcept
template<typename... Args>
Error
assignFormat
(
const
char
* fmt, Args&&... args)
noexcept
Error
assignVFormat
(
const
char
* fmt,
va_list
ap)
noexcept
Error
append
(
const
char
* str,
size_t
size
= SIZE_MAX)
noexcept
Error
append
(
const
String
& other)
noexcept
Error
append
(
char
c)
noexcept
Error
appendChars
(
char
c,
size_t
n)
noexcept
Error
appendInt
(
int64_t
i,
uint32_t
base = 0,
size_t
width = 0,
StringFormatFlags
flags =
StringFormatFlags::kNone
)
noexcept
Error
appendUInt
(
uint64_t
i,
uint32_t
base = 0,
size_t
width = 0,
StringFormatFlags
flags =
StringFormatFlags::kNone
)
noexcept
Error
appendHex
(
const
void
*
data
,
size_t
size
,
char
separator = '\0')
noexcept
template<typename... Args>
Error
appendFormat
(
const
char
* fmt, Args&&... args)
noexcept
Error
appendVFormat
(
const
char
* fmt,
va_list
ap)
noexcept
Error
padEnd
(
size_t
n,
char
c = ' ')
noexcept
Error
truncate
(
size_t
newSize)
noexcept
bool
equals
(
const
char
* other,
size_t
size
= SIZE_MAX)
const
noexcept
bool
equals
(
const
String
& other)
const
noexcept
void
_resetInternal
()
noexcept
void
_setSize
(
size_t
newSize)
noexcept
Additional Inherited Members
Public Types inherited from
asmjit::String
enum class
ModifyOp
:
uint32_t
Member Data Documentation
template<size_t N>
char
StringTmp
<N>::
_embeddedData
[Support::alignUp(N+1,
sizeof
(
size_t
))]
◆
Embedded data.