Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -0,0 +1,22 @@
package lgres
import "io"
type blockFunc func(index int) (io.Reader, error)
type blockReader struct {
blockCount int
blockFunc blockFunc
}
// BlockCount returns the number of available blocks.
func (reader *blockReader) BlockCount() int {
return reader.blockCount
}
// Block returns the reader for the identified block.
// Each call returns a new reader instance.
// Data provided by this reader is always uncompressed.
func (reader *blockReader) Block(index int) (io.Reader, error) {
return reader.blockFunc(index)
}