Add a slice.length method.

This commit is contained in:
Nigel Tao committed 2017-09-22 12:37:07 +10:00
1 parent fda696bf95
commit 51f2b183a2
7 files changed
+57 -6

No files matched your search

+2
View File
@@ -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
}