-
Notifications
You must be signed in to change notification settings - Fork 0
Tier_2_Features
David Crook edited this page Dec 18, 2016
·
2 revisions
WIP
bvr = bv1 + bv2 // Concatenate
bv[0..<31] = bv32 // Overlaybv.hexStringed() // hexString value
bv.hexDebugStringed() // hexString value in init() format
bv.textStringed() // bits converted to bytes, then to a Unicode (UTF-8) string
bv.bitArrayed() // bits in bit array
bv.hexDecodedRange(4..<11) // hex Representation of bits [4:10]let bvRotatedLeft = bv.rotatedLeft(5) //
let bvRotatedRight = bv.rotatedRight(5) //
let bvShiftedLeft = bv.shiftedLeft(5) //
let bvShiftedRight = bv.shiftedRight(5) //
let populationCount = bv.popcnt() // number of bits set
let trueOrFalse = bv.singleBitSetOnly() // whether a solitary bit is set