diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/streamblock.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/streamblock.nim b/src/streamblock.nim index 10639ed..49c3dcd 100644 --- a/src/streamblock.nim +++ b/src/streamblock.nim | |||
@@ -38,8 +38,8 @@ proc readSerialised*(bitReader: BitReader): StreamBlock = | |||
38 | result.last = bitReader.readBool() | 38 | result.last = bitReader.readBool() |
39 | result.kind = bitReader.readBits(2, uint8).BlockKind | 39 | result.kind = bitReader.readBits(2, uint8).BlockKind |
40 | case result.kind: | 40 | case result.kind: |
41 | of uncompressed: result.rawBlock = rawblock.readRaw(bitReader) | 41 | of uncompressed: result.rawBlock = rawblock.readSerialised(bitReader) |
42 | of lzss: result.lzssBlock = lzssblock.readRaw(bitReader) | 42 | of lzss: result.lzssBlock = lzssblock.readSerialised(bitReader) |
43 | else: raise newException(ValueError, "unhandled block type") | 43 | else: raise newException(ValueError, "unhandled block type") |
44 | 44 | ||
45 | proc writeSerialisedTo*(streamBlock: StreamBlock, bitWriter: BitWriter) = | 45 | proc writeSerialisedTo*(streamBlock: StreamBlock, bitWriter: BitWriter) = |