Improved data structure for structs.

Thanks gopls with VS Code
This commit is contained in:
Caleb Gardner
2020-12-28 11:50:56 -06:00
parent 89ec7eb0fb
commit 47c28baf87
4 changed files with 14 additions and 13 deletions
+3 -3
View File
@@ -18,11 +18,11 @@ var (
//DataReader reads data from data blocks.
type dataReader struct {
r *Reader
offset int64 //offset relative to the beginning of the squash file
blocks []dataBlock
curBlock int //Which block in sizes is currently cached
curData []byte
curReadOffset int //offset relative to the currently cached data
offset int64 //offset relative to the beginning of the squash file
curBlock int //Which block in sizes is currently cached
curReadOffset int //offset relative to the currently cached data
}
//DataBlock holds info about a given data block from it's size