mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Add a slice.length method.
This commit is contained in:
1 parent
fda696bf95
commit
51f2b183a2
7 files changed
+57
-6
No files matched your search
@@ -99,6 +99,8 @@ pub func decoder.decode?(dst writer1, src reader1)() {
|
||||
// modify the state of in.dst, so future mutations (via the slice) can
|
||||
// change the veracity of any in.dst assertions?
|
||||
var written[] u8 = in.dst.slice()
|
||||
if written.length() >= (32 * 1024) {
|
||||
}
|
||||
}
|
||||
return z
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user