about summary refs log tree commit diff stats
path: root/src/io/bufreader.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/bufreader.nim')
-rw-r--r--src/io/bufreader.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/io/bufreader.nim b/src/io/bufreader.nim
index 6de269ac..3ee36208 100644
--- a/src/io/bufreader.nim
+++ b/src/io/bufreader.nim
@@ -6,6 +6,7 @@ import std/tables
 
 import io/dynstream
 import types/blob
+import types/color
 import types/formdata
 import types/opt
 import types/url
@@ -53,6 +54,7 @@ proc sread*(reader: var BufferedReader; part: var FormDataEntry)
 proc sread*(reader: var BufferedReader; blob: var Blob)
 proc sread*[T](reader: var BufferedReader; o: var Option[T])
 proc sread*[T, E](reader: var BufferedReader; o: var Result[T, E])
+proc sread*(reader: var BufferedReader; c: var RGBAColor) {.inline.}
 
 proc readData(reader: var BufferedReader; buffer: pointer; len: int) =
   assert reader.bufIdx + len <= reader.buffer.len
@@ -198,3 +200,6 @@ proc sread*[T, E](reader: var BufferedReader; o: var Result[T, E]) =
       o.err(e)
     else:
       o.err()
+
+proc sread*(reader: var BufferedReader; c: var RGBAColor) =
+  reader.sread(uint32(c))