Add a slice.suffix method.

This commit is contained in:
Nigel Tao committed 2017-09-22 14:12:54 +10:00
1 parent 51f2b183a2
commit 2fb9972bb9
10 files changed
+176 -2

No files matched your search

+1
View File
@@ -100,6 +100,7 @@ pub func decoder.decode?(dst writer1, src reader1)() {
// change the veracity of any in.dst assertions?
var written[] u8 = in.dst.slice()
if written.length() >= (32 * 1024) {
written = written.suffix(up_to:32 * 1024)
}
}
return z