diff options
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/bufreader.nim | 11 | ||||
-rw-r--r-- | src/io/bufwriter.nim | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/io/bufreader.nim b/src/io/bufreader.nim index bd2486be..5f522666 100644 --- a/src/io/bufreader.nim +++ b/src/io/bufreader.nim @@ -230,13 +230,16 @@ proc sread*(reader: var BufferedReader; bmp: var Bitmap) = ) reader.sread(bmp.px) else: - var outputId: int + var cacheId: int var imageId: int - reader.sread(outputId) + var contentType: string + reader.sread(cacheId) reader.sread(imageId) + reader.sread(contentType) bmp = NetworkBitmap( width: width, height: height, - outputId: outputId, - imageId: imageId + cacheId: cacheId, + imageId: imageId, + contentType: contentType ) diff --git a/src/io/bufwriter.nim b/src/io/bufwriter.nim index 56e30f5b..8166eab8 100644 --- a/src/io/bufwriter.nim +++ b/src/io/bufwriter.nim @@ -208,5 +208,6 @@ proc swrite*(writer: var BufferedWriter; bmp: Bitmap) = if bmp of ImageBitmap: writer.swrite(bmp.px) else: - writer.swrite(NetworkBitmap(bmp).outputId) + writer.swrite(NetworkBitmap(bmp).cacheId) writer.swrite(NetworkBitmap(bmp).imageId) + writer.swrite(NetworkBitmap(bmp).contentType) |