Home
last modified time | relevance | path

Searched refs:code_buff (Results 1 – 3 of 3) sorted by relevance

/arkcompiler/runtime_core/libpandabase/tests/
Dcode_allocator_test.cpp61 void *code_buff = ca.AllocateCode(sizeof(buff), static_cast<void *>(&buff[0])); variable
63 ASSERT_EQ(static_cast<uint8_t *>(code_buff)[i], 0xCC);
65 ASSERT_TRUE(IsAligned(code_buff, 4 * SIZE_1K));
/arkcompiler/runtime_core/libpandabase/mem/
Dcode_allocator.cpp47 void *CodeAllocator::AllocateCode(size_t size, const void *code_buff) in AllocateCode() argument
51 if (UNLIKELY(code_ptr == nullptr || memcpy_s(code_ptr, size, code_buff, size) != EOK)) { in AllocateCode()
Dcode_allocator.h40 [[nodiscard]] void *AllocateCode(size_t size, const void *code_buff);