Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ xorWith
Method
xorWith
source/core/StarByteArray.cpp:218–220 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
216
}
217
218
ByteArray ByteArray::xorWith(ByteArray const& rhs, bool extend) {
219
return combineWith([](char a, char b) { return a ^ b; }, rhs, extend);
220
}
221
222
void ByteArray::insert(size_t pos, char byte) {
223
starAssert(pos <= m_size);
Callers
1
TEST
Function · 0.80
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.64