Lines Matching refs:destination

132 ZYAN_INLINE ZyanStatus ZydisStringAppend(ZyanString* destination, const ZyanStringView* source)  in ZydisStringAppend()  argument
134 ZYAN_ASSERT(destination && source); in ZydisStringAppend()
135 ZYAN_ASSERT(!destination->vector.allocator); in ZydisStringAppend()
136 ZYAN_ASSERT(destination->vector.size && source->string.vector.size); in ZydisStringAppend()
138 if (destination->vector.size + source->string.vector.size - 1 > destination->vector.capacity) in ZydisStringAppend()
143 ZYAN_MEMCPY((char*)destination->vector.data + destination->vector.size - 1, in ZydisStringAppend()
146 destination->vector.size += source->string.vector.size - 1; in ZydisStringAppend()
147 ZYDIS_STRING_NULLTERMINATE(destination); in ZydisStringAppend()
162 ZYAN_INLINE ZyanStatus ZydisStringAppendCase(ZyanString* destination, const ZyanStringView* source, in ZydisStringAppendCase() argument
165 ZYAN_ASSERT(destination && source); in ZydisStringAppendCase()
166 ZYAN_ASSERT(!destination->vector.allocator); in ZydisStringAppendCase()
167 ZYAN_ASSERT(destination->vector.size && source->string.vector.size); in ZydisStringAppendCase()
169 if (destination->vector.size + source->string.vector.size - 1 > destination->vector.capacity) in ZydisStringAppendCase()
174 ZYAN_MEMCPY((char*)destination->vector.data + destination->vector.size - 1, in ZydisStringAppendCase()
183 const ZyanUSize index = destination->vector.size - 1; in ZydisStringAppendCase()
185 char* s = (char*)destination->vector.data + index; in ZydisStringAppendCase()
199 const ZyanUSize index = destination->vector.size - 1; in ZydisStringAppendCase()
201 char* s = (char*)destination->vector.data + index; in ZydisStringAppendCase()
217 destination->vector.size += source->string.vector.size - 1; in ZydisStringAppendCase()
218 ZYDIS_STRING_NULLTERMINATE(destination); in ZydisStringAppendCase()
231 ZYAN_INLINE ZyanStatus ZydisStringAppendShort(ZyanString* destination, in ZydisStringAppendShort() argument
234 ZYAN_ASSERT(destination && source); in ZydisStringAppendShort()
235 ZYAN_ASSERT(!destination->vector.allocator); in ZydisStringAppendShort()
236 ZYAN_ASSERT(destination->vector.size && source->size); in ZydisStringAppendShort()
238 if (destination->vector.size + source->size > destination->vector.capacity) in ZydisStringAppendShort()
243 ZYAN_MEMCPY((char*)destination->vector.data + destination->vector.size - 1, source->data, in ZydisStringAppendShort()
246 destination->vector.size += source->size; in ZydisStringAppendShort()
247 ZYDIS_STRING_ASSERT_NULLTERMINATION(destination); in ZydisStringAppendShort()
262 ZYAN_INLINE ZyanStatus ZydisStringAppendShortCase(ZyanString* destination, in ZydisStringAppendShortCase() argument
265 ZYAN_ASSERT(destination && source); in ZydisStringAppendShortCase()
266 ZYAN_ASSERT(!destination->vector.allocator); in ZydisStringAppendShortCase()
267 ZYAN_ASSERT(destination->vector.size && source->size); in ZydisStringAppendShortCase()
269 if (destination->vector.size + source->size > destination->vector.capacity) in ZydisStringAppendShortCase()
274 ZYAN_MEMCPY((char*)destination->vector.data + destination->vector.size - 1, source->data, in ZydisStringAppendShortCase()
283 const ZyanUSize index = destination->vector.size - 1; in ZydisStringAppendShortCase()
285 char* s = (char*)destination->vector.data + index; in ZydisStringAppendShortCase()
299 const ZyanUSize index = destination->vector.size - 1; in ZydisStringAppendShortCase()
301 char* s = (char*)destination->vector.data + index; in ZydisStringAppendShortCase()
317 destination->vector.size += source->size; in ZydisStringAppendShortCase()
318 ZYDIS_STRING_ASSERT_NULLTERMINATION(destination); in ZydisStringAppendShortCase()