aboutsummaryrefslogtreecommitdiff
path: root/src/blocks
diff options
context:
space:
mode:
authorpacien2018-12-02 18:08:38 +0100
committerpacien2018-12-02 18:08:38 +0100
commit3a3b727f09ad4a2f610649d8a9ea7deb36d3075d (patch)
tree5dc0b615984d0027f98ad9ddf7cdf31a68de31ff /src/blocks
parent56bfed7e2cdd44dc4ad0c5e233224cf0080e05ac (diff)
downloadgziplike-3a3b727f09ad4a2f610649d8a9ea7deb36d3075d.tar.gz
make lzss blocks the default
Diffstat (limited to 'src/blocks')
-rw-r--r--src/blocks/streamblock.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blocks/streamblock.nim b/src/blocks/streamblock.nim
index c904af7..8351b6f 100644
--- a/src/blocks/streamblock.nim
+++ b/src/blocks/streamblock.nim
@@ -53,7 +53,7 @@ proc writeSerialisedTo*(streamBlock: StreamBlock, bitWriter: BitWriter) =
53 of lzss: streamBlock.lzssBlock.writeSerialisedTo(bitWriter) 53 of lzss: streamBlock.lzssBlock.writeSerialisedTo(bitWriter)
54 else: raise newException(ValueError, "unhandled block type") 54 else: raise newException(ValueError, "unhandled block type")
55 55
56proc readRaw*(bitReader: BitReader, kind: BlockKind = uncompressed): StreamBlock = 56proc readRaw*(bitReader: BitReader, kind: BlockKind = lzss): StreamBlock =
57 result.kind = kind 57 result.kind = kind
58 case kind: 58 case kind:
59 of uncompressed: result.rawBlock = rawblock.readRaw(bitReader) 59 of uncompressed: result.rawBlock = rawblock.readRaw(bitReader)