Rename I/O available methods to length

This commit is contained in:
Nigel Tao committed 2020-08-13 23:26:08 +10:00
1 parent 79b923c322
commit be8542e313
15 files changed
+149 -152

No files matched your search

+1 -1
View File
@@ -299,7 +299,7 @@ pri func decoder.decode_uncompressed?(dst: base.io_writer, src: base.io_reader)
return ok
}
length -= n_copied
if args.dst.available() == 0 {
if args.dst.length() == 0 {
yield? base."$short write"
} else {
yield? base."$short read"