mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
dep/vixl: Add Reset-to-new-buffer overload
This commit is contained in:
parent
52e0d8d473
commit
9d14ba0541
|
@ -43,6 +43,7 @@ class CodeBuffer {
|
||||||
~CodeBuffer();
|
~CodeBuffer();
|
||||||
|
|
||||||
void Reset();
|
void Reset();
|
||||||
|
void Reset(byte* buffer, size_t capacity);
|
||||||
|
|
||||||
#ifdef VIXL_CODE_BUFFER_MMAP
|
#ifdef VIXL_CODE_BUFFER_MMAP
|
||||||
void SetExecutable();
|
void SetExecutable();
|
||||||
|
|
|
@ -156,6 +156,11 @@ void CodeBuffer::Reset() {
|
||||||
SetClean();
|
SetClean();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CodeBuffer::Reset(byte* buffer, size_t capacity) {
|
||||||
|
buffer_ = buffer;
|
||||||
|
cursor_ = buffer;
|
||||||
|
capacity_ = capacity;
|
||||||
|
}
|
||||||
|
|
||||||
void CodeBuffer::Grow(size_t new_capacity) {
|
void CodeBuffer::Grow(size_t new_capacity) {
|
||||||
VIXL_ASSERT(managed_);
|
VIXL_ASSERT(managed_);
|
||||||
|
|
Loading…
Reference in a new issue