aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bitio/bitreader.nim (renamed from src/bitreader.nim)2
-rw-r--r--src/bitio/bitwriter.nim (renamed from src/bitwriter.nim)2
-rw-r--r--src/huffmandecoder.nim2
-rw-r--r--src/huffmanencoder.nim2
-rw-r--r--src/huffmantree.nim2
-rw-r--r--src/lzssblock.nim2
-rw-r--r--src/main.nim2
-rw-r--r--src/rawblock.nim2
-rw-r--r--src/streamblock.nim2
9 files changed, 9 insertions, 9 deletions
diff --git a/src/bitreader.nim b/src/bitio/bitreader.nim
index baa8bf8..e4ad225 100644
--- a/src/bitreader.nim
+++ b/src/bitio/bitreader.nim
@@ -15,7 +15,7 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import streams 17import streams
18import integers 18import ../integers
19 19
20type BitReader* = ref object 20type BitReader* = ref object
21 stream: Stream 21 stream: Stream
diff --git a/src/bitwriter.nim b/src/bitio/bitwriter.nim
index 4fe499a..f1b44ca 100644
--- a/src/bitwriter.nim
+++ b/src/bitio/bitwriter.nim
@@ -15,7 +15,7 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import streams 17import streams
18import integers 18import ../integers
19 19
20type BitWriter* = ref object 20type BitWriter* = ref object
21 stream: Stream 21 stream: Stream
diff --git a/src/huffmandecoder.nim b/src/huffmandecoder.nim
index 4df712a..5cf4ca5 100644
--- a/src/huffmandecoder.nim
+++ b/src/huffmandecoder.nim
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU Affero General Public License 14# You should have received a copy of the GNU Affero General Public License
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import huffmantree, bitreader 17import huffmantree, bitio/bitreader
18 18
19type HuffmanDecoder*[T: SomeUnsignedInt] = object 19type HuffmanDecoder*[T: SomeUnsignedInt] = object
20 tree: HuffmanTreeNode[T] 20 tree: HuffmanTreeNode[T]
diff --git a/src/huffmanencoder.nim b/src/huffmanencoder.nim
index 60c3d46..05ed64f 100644
--- a/src/huffmanencoder.nim
+++ b/src/huffmanencoder.nim
@@ -15,7 +15,7 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import tables 17import tables
18import integers, huffmantree, bitwriter 18import integers, huffmantree, bitio/bitwriter
19 19
20type HuffmanEncoder*[T, U: SomeUnsignedInt] = object 20type HuffmanEncoder*[T, U: SomeUnsignedInt] = object
21 codebook: TableRef[T, U] 21 codebook: TableRef[T, U]
diff --git a/src/huffmantree.nim b/src/huffmantree.nim
index 0266dfb..6208ecf 100644
--- a/src/huffmantree.nim
+++ b/src/huffmantree.nim
@@ -15,7 +15,7 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import tables, heapqueue 17import tables, heapqueue
18import integers, bitreader, bitwriter 18import integers, bitio/bitreader, bitio/bitwriter
19 19
20const valueLengthFieldBitLength* = 6 # 64 20const valueLengthFieldBitLength* = 6 # 64
21 21
diff --git a/src/lzssblock.nim b/src/lzssblock.nim
index be8c4f0..317e768 100644
--- a/src/lzssblock.nim
+++ b/src/lzssblock.nim
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU Affero General Public License 14# You should have received a copy of the GNU Affero General Public License
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import bitreader, bitwriter 17import bitio/bitreader, bitio/bitwriter
18 18
19type LzssBlock* = object 19type LzssBlock* = object
20 discard 20 discard
diff --git a/src/main.nim b/src/main.nim
index 4fc137f..450f52d 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -15,7 +15,7 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import os, streams, sugar 17import os, streams, sugar
18import bitreader, bitwriter, streamblock 18import bitio/bitreader, bitio/bitwriter, streamblock
19 19
20proc transform*(operation: (BitReader, BitWriter) -> void, input, output: string) = 20proc transform*(operation: (BitReader, BitWriter) -> void, input, output: string) =
21 let inputStream = openFileStream(input, fmRead) 21 let inputStream = openFileStream(input, fmRead)
diff --git a/src/rawblock.nim b/src/rawblock.nim
index 4a83b1d..b9a1e63 100644
--- a/src/rawblock.nim
+++ b/src/rawblock.nim
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU Affero General Public License 14# You should have received a copy of the GNU Affero General Public License
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import integers, bitreader, bitwriter 17import integers, bitio/bitreader, bitio/bitwriter
18 18
19const maxDataBitLength = high(uint16).int 19const maxDataBitLength = high(uint16).int
20const bitLengthFieldBitLength = 2 * wordBitLength 20const bitLengthFieldBitLength = 2 * wordBitLength
diff --git a/src/streamblock.nim b/src/streamblock.nim
index 403687e..ff649b1 100644
--- a/src/streamblock.nim
+++ b/src/streamblock.nim
@@ -15,7 +15,7 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import sequtils 17import sequtils
18import integers, bitreader, bitwriter 18import integers, bitio/bitreader, bitio/bitwriter
19import rawblock, lzssblock 19import rawblock, lzssblock
20 20
21type BlockKind* = enum 21type BlockKind* = enum