mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Add a writer1.slice method.
This commit is contained in:
1 parent
519ec373f2
commit
18e32d61e5
10 files changed
+115
-24
No files matched your search
@@ -94,7 +94,11 @@ pub func decoder.decode?(dst writer1, src reader1)() {
|
||||
var z status = try this.decode_blocks?(dst:in.dst, src:in.src)
|
||||
if z.is_suspension() {
|
||||
// TODO: add some way to specify the bounds of the slice.
|
||||
var written[] u8 // = in.dst.slice()
|
||||
//
|
||||
// TODO: should "slice" be "slice!", as the return value lets you
|
||||
// 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()
|
||||
}
|
||||
return z
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user