Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner allows reading fileblocks from PBF files, one at a time.
func NewScanner ¶
func (*Scanner) Blob ¶
Blob returns the latest blob. May be nil if Scan has not been called or an unknown blob type has been encountered.
func (*Scanner) BlobHeader ¶
func (s *Scanner) BlobHeader() *pbfproto.BlobHeader
func (*Scanner) BlobLocation ¶
BlobLocation returns the start position and size of the latest blob in the PBF file.
func (*Scanner) Scan ¶
Scan reads the next fileblock, which can be retrieved with the BlobHeader and Blob functions. If it returns false, no new fileblock has been read. This is either because there are no more fileblocks or because there was an error. In the latter case, the Err method will return the encountered error.
Click to show internal directories.
Click to hide internal directories.