/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Tile
 */
import { TileFormat, TileHeader } from "./TileIO";
/** Header preceding tile content in [pnts](https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification/TileFormats/PointCloud) format.
 * @internal
 */
export class PntsHeader extends TileHeader {
    length;
    featureTableJsonLength;
    featureTableBinaryLength;
    batchTableJsonLength;
    batchTableBinaryLength;
    get isValid() { return TileFormat.Pnts === this.format; }
    constructor(stream) {
        super(stream);
        this.length = stream.readUint32();
        this.featureTableJsonLength = stream.readUint32();
        this.featureTableBinaryLength = stream.readUint32();
        this.batchTableJsonLength = stream.readUint32();
        this.batchTableBinaryLength = stream.readUint32();
    }
}
//# sourceMappingURL=PntsTileIO.js.map