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

Method andWith

source/core/StarByteArray.cpp:210–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210ByteArray ByteArray::andWith(ByteArray const& rhs, bool extend) {
211 return combineWith([](char a, char b) { return a & b; }, rhs, extend);
212}
213
214ByteArray ByteArray::orWith(ByteArray const& rhs, bool extend) {
215 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