"use strict";
/*---------------------------------------------------------------------------------------------
* 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
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.PntsHeader = void 0;
const TileIO_1 = require("./TileIO");
/** Header preceding tile content in [pnts](https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification/TileFormats/PointCloud) format.
 * @internal
 */
class PntsHeader extends TileIO_1.TileHeader {
    get isValid() { return TileIO_1.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();
    }
}
exports.PntsHeader = PntsHeader;
//# sourceMappingURL=PntsTileIO.js.map