         self.skipUntilNextByte()
         var result: UInt32 = 0
         for i: UInt32 in 0..<count {
-            result |= UInt32(self.bitArray[self.index]) << (8 * i)
+            result |= UInt32(self.data[self.index]) << (8 * i)
             self.index += 1
         }
         return result

    }

    func bit() -> Int {
        let bit = self.bitArray[self.index] & self.bitMask > 0 ? 1 : 0

        switch self.bitOrder {
        case .reversed:

                power = i
            }

            let bit = self.data[self.index] & self.bitMask > 0 ? 1 : 0
            result += (1 << power) * bit

            switch self.bitOrder {
