Add a rac.Reader

This commit is contained in:
Nigel Tao committed 2019-08-04 22:07:43 +10:00
1 parent e292a22ccb
commit 861ae95f8c
5 files changed
+819 -24

No files matched your search

+3 -3
View File
@@ -65,9 +65,6 @@ type Writer struct {
// Zero is an invalid value.
Codec Codec
// initialized is set true after the first AddXxx call.
initialized bool
// IndexLocation is whether the index is at the start or end of the RAC
// file.
//
@@ -127,6 +124,9 @@ type Writer struct {
// each chunk's starting offset will be aligned to a page boundary.
CPageSize uint64
// initialized is set true after the first AddXxx call.
initialized bool
// err is the first error encountered. It is sticky: once a non-nil error
// occurs, all public methods will return that error.
err error