mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
rose_build_engine_blob: add func for bytecode_ptr
This commit is contained in:
parent
2698e534e4
commit
befdbb781d
@ -33,6 +33,7 @@
|
||||
|
||||
#include "ue2common.h"
|
||||
#include "util/alloc.h"
|
||||
#include "util/bytecode_ptr.h"
|
||||
#include "util/container.h"
|
||||
#include "util/multibit_build.h"
|
||||
#include "util/noncopyable.h"
|
||||
@ -76,6 +77,11 @@ public:
|
||||
return verify_u32(rv);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
u32 add(const bytecode_ptr<T> &a) {
|
||||
return add(a.get(), a.size(), a.align());
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
u32 add(const T &a) {
|
||||
static_assert(std::is_pod<T>::value, "should be pod");
|
||||
|
Loading…
x
Reference in New Issue
Block a user