diff options
Diffstat (limited to 'core/io')
| -rw-r--r-- | core/io/multi.odin | 4 | ||||
| -rw-r--r-- | core/io/util.odin | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/io/multi.odin b/core/io/multi.odin index e25e8133e..abd9b9c5e 100644 --- a/core/io/multi.odin +++ b/core/io/multi.odin @@ -8,7 +8,7 @@ _multi_reader_proc :: proc(stream_data: rawptr, mode: Stream_Mode, p: []byte, of if mode == .Query { return query_utility({.Read, .Query}) } else if mode != .Read { - return 0, .Empty + return 0, .Unsupported } mr := (^Multi_Reader)(stream_data) for len(mr.readers) > 0 { @@ -61,7 +61,7 @@ _multi_writer_proc :: proc(stream_data: rawptr, mode: Stream_Mode, p: []byte, of if mode == .Query { return query_utility({.Write, .Query}) } else if mode != .Write { - return 0, .Empty + return 0, .Unsupported } mw := (^Multi_Writer)(stream_data) for w in mw.writers { diff --git a/core/io/util.odin b/core/io/util.odin index a956a5975..86a89cfb1 100644 --- a/core/io/util.odin +++ b/core/io/util.odin @@ -354,7 +354,7 @@ _tee_reader_proc :: proc(stream_data: rawptr, mode: Stream_Mode, p: []byte, offs case .Query: return query_utility({.Read, .Query}) } - return 0, .Empty + return 0, .Unsupported } // tee_reader_init returns a Reader that writes to 'w' what it reads from 'r' @@ -404,7 +404,7 @@ _limited_reader_proc :: proc(stream_data: rawptr, mode: Stream_Mode, p: []byte, case .Query: return query_utility({.Read, .Query}) } - return 0, .Empty + return 0, .Unsupported } limited_reader_init :: proc(l: ^Limited_Reader, r: Reader, n: i64) -> Reader { |