mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 16:32:11 +01:00
Rename io_reader.available_valid_utf_8
This commit is contained in:
1 parent
0291a47dc8
commit
79b923c322
4 files changed
+27
-27
No files matched your search
@@ -413,7 +413,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
|
||||
continue
|
||||
}
|
||||
n64 = string_length.min(a: 0xFFFF)
|
||||
n64 = args.src.available_valid_utf_8(up_to: n64)
|
||||
n64 = args.src.valid_utf_8_length(up_to: n64)
|
||||
token_length = (n64 & 0xFFFF) as base.u32
|
||||
if token_length <= 0 {
|
||||
// The longest UTF-8 code point is 4 bytes.
|
||||
|
||||
Reference in new issue
Block a user