From e881be867eae40bbb9009dec09359129bfbe37b6 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Thu, 15 Dec 2016 23:37:11 +0300 Subject: [PATCH] Added intFromAlingedBytes. --- Sources/DataWithPointer.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/DataWithPointer.swift b/Sources/DataWithPointer.swift index c7f1490e..f086db49 100644 --- a/Sources/DataWithPointer.swift +++ b/Sources/DataWithPointer.swift @@ -126,6 +126,16 @@ class DataWithPointer { return self.bitArray[self.index - 1] } + func intFromAlingedBytes(count: Int) -> Int { + self.skipUntilNextByte() + var result = 0 + for i in 0..