@itwin/core-common
Version:
iTwin.js components common to frontend and backend
30 lines • 1.3 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* 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.CompositeTileHeader = void 0;
const TileIO_1 = require("./TileIO");
/** Header preceding tile content in [composite](https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification/TileFormats/Composite) format, containing any number of tiles in other standard 3D tile formats.
* @internal
*/
class CompositeTileHeader extends TileIO_1.TileHeader {
length;
tileCount;
tilePosition;
get isValid() { return TileIO_1.TileFormat.Cmpt === this.format; }
constructor(stream) {
super(stream);
this.length = stream.readUint32();
this.tileCount = stream.readUint32();
this.tilePosition = stream.curPos;
if (stream.isPastTheEnd)
this.invalidate();
}
}
exports.CompositeTileHeader = CompositeTileHeader;
//# sourceMappingURL=CompositeTileIO.js.map