MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / orWith

Method orWith

source/core/StarByteArray.cpp:214–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214ByteArray ByteArray::orWith(ByteArray const& rhs, bool extend) {
215 return combineWith([](char a, char b) { return a | b; }, rhs, extend);
216}
217
218ByteArray ByteArray::xorWith(ByteArray const& rhs, bool extend) {
219 return combineWith([](char a, char b) { return a ^ b; }, rhs, extend);

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64