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
@@ -297,7 +297,7 @@ pri func decoder.swizzle!(dst: ptr base.pixel_buffer, src: base.io_reader) base.
while.outer true {
while this.pending_pad > 0 {
if args.src.available() <= 0 {
if args.src.length() <= 0 {
return "@internal note: short read"
}
this.pending_pad -= 1