Module osm.io.pbf.limits
Resource and format limits used by the OSMPBF storage layer.
The hard header and uncompressed-blob limits come from the canonical
OSM-binary implementation and the OSM PBF format documentation. The
serialized Blob-message limit additionally mirrors the reference Java
reader's defensive body-size check so streaming callers never have to
reserve an unbounded amount of memory from an untrusted datasize field.
Date
2026-09-12
Manifest constants
| Name | Type | Description |
|---|---|---|
maxBlobHeaderSize
|
Exclusive hard upper bound for a serialized BlobHeader message.
|
|
maxSerializedBlobSize
|
Defensive upper bound for the serialized Blob message named by
BlobHeader.
|
|
maxUncompressedBlobSize
|
Exclusive hard upper bound for an uncompressed block payload. | |
recommendedBlobHeaderSize
|
Recommended upper size for a serialized BlobHeader message.
|
|
recommendedUncompressedBlobSize
|
Recommended upper size for an uncompressed block payload. |