Add missing io.Stream_Mode responses

This commit is contained in:
Feoramund
2024-08-28 19:53:19 +02:00
committed by Laytan
parent eb6e5ee3a1
commit 981a2e1a00
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -402,7 +402,7 @@ _buffer_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte, offse
buffer_destroy(b) buffer_destroy(b)
return return
case .Query: case .Query:
return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Size, .Destroy}) return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Size, .Destroy, .Query})
} }
return 0, .Empty return 0, .Empty
} }
+1 -1
View File
@@ -368,7 +368,7 @@ to_stream :: proc(file: ^FILE) -> io.Stream {
return 0, .Empty return 0, .Empty
case .Query: case .Query:
return io.query_utility({ .Close, .Flush, .Read, .Read_At, .Write, .Write_At, .Seek, .Size }) return io.query_utility({ .Close, .Flush, .Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Query })
} }
return return
} }
+1 -1
View File
@@ -446,7 +446,7 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
return return
case .Query: case .Query:
return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Flush, .Close, .Query}) return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Flush, .Close, .Destroy, .Query})
case: case:
return 0, .Empty return 0, .Empty
+1 -1
View File
@@ -813,7 +813,7 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
err = error_to_io_error(ferr) err = error_to_io_error(ferr)
return return
case .Query: case .Query:
return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Flush, .Close, .Query}) return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Flush, .Close, .Destroy, .Query})
} }
return 0, .Empty return 0, .Empty
} }