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