mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(big): add SBigMul
This commit is contained in:
parent
e74654800d
commit
6e96e0a767
11 changed files with 179 additions and 0 deletions
|
|
@ -32,3 +32,15 @@ int32_t BigBuffer::IsUsed(uint32_t index) const {
|
|||
void BigBuffer::SetCount(uint32_t count) {
|
||||
this->m_data.SetCount(this->m_offset + count);
|
||||
}
|
||||
|
||||
void BigBuffer::Trim() const {
|
||||
while (this->Count()) {
|
||||
auto& data = const_cast<TSGrowableArray<uint32_t>&>(this->m_data);
|
||||
|
||||
if (*data.Top()) {
|
||||
break;
|
||||
}
|
||||
|
||||
data.SetCount(data.Count() - 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue