mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Rename rac.Parser as rac.ChunkReader
This commit is contained in:
1 parent
c36b4d79c4
commit
7a82d135ff
4 files changed
+56
-56
No files matched your search
@@ -159,12 +159,12 @@ func Example_indexLocationAtStart() {
|
||||
// original "One sheep.\nTwo sheep\.Three sheep.\n" source.
|
||||
|
||||
fmt.Printf("Decoded:\n")
|
||||
p := &rac.Parser{
|
||||
r := &rac.ChunkReader{
|
||||
ReadSeeker: bytes.NewReader(encoded),
|
||||
}
|
||||
zr := io.ReadCloser(nil)
|
||||
for {
|
||||
chunk, err := p.NextChunk()
|
||||
chunk, err := r.NextChunk()
|
||||
if err == io.EOF {
|
||||
break
|
||||
} else if err != nil {
|
||||
|
||||
Reference in new issue
Block a user