@coderline/alphatab 1.9.0-alpha.1804 → 1.9.0-alpha.1813

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7272,6 +7272,14 @@ declare class ElementStyle<TSubElements extends number> {
7272
7272
  colors: Map<TSubElements, Color | null>;
7273
7273
  }
7274
7274
 
7275
+ /**
7276
+ * Thrown whenever we hit the end of input data unexpectedly.
7277
+ * @public
7278
+ */
7279
+ declare class EndOfReaderError extends AlphaTabError {
7280
+ constructor();
7281
+ }
7282
+
7275
7283
  /**
7276
7284
  * Represents the end of the track indicating that no more events for this track follow.
7277
7285
  * @public
@@ -9645,6 +9653,17 @@ export declare class ImporterSettings {
9645
9653
  * ![Disabled](https://alphatab.net/img/reference/property/beattextaslyrics-disabled.png)
9646
9654
  */
9647
9655
  beatTextAsLyrics: boolean;
9656
+ /**
9657
+ * This setting controls the escape hatch for handling potentially malicous or corrupt
9658
+ * input files. At selected spots in the codebase, we use this buffer size as maximum
9659
+ * allowed sizes. e.g. during unzipping or decoding strings.
9660
+ * This prevents resource exhaustion, especially when alphaTab is used on server side.
9661
+ * Increase this buffer size if you need to handle very big files.
9662
+ * @defaultValue `128000000`
9663
+ * @category Core
9664
+ * @since 1.9.0
9665
+ */
9666
+ maxDecodingBufferSize: number;
9648
9667
  }
9649
9668
 
9650
9669
  /**
@@ -9711,6 +9730,17 @@ declare interface ImporterSettingsJson {
9711
9730
  * ![Disabled](https://alphatab.net/img/reference/property/beattextaslyrics-disabled.png)
9712
9731
  */
9713
9732
  beatTextAsLyrics?: boolean;
9733
+ /**
9734
+ * This setting controls the escape hatch for handling potentially malicous or corrupt
9735
+ * input files. At selected spots in the codebase, we use this buffer size as maximum
9736
+ * allowed sizes. e.g. during unzipping or decoding strings.
9737
+ * This prevents resource exhaustion, especially when alphaTab is used on server side.
9738
+ * Increase this buffer size if you need to handle very big files.
9739
+ * @defaultValue `128000000`
9740
+ * @category Core
9741
+ * @since 1.9.0
9742
+ */
9743
+ maxDecodingBufferSize?: number;
9714
9744
  }
9715
9745
 
9716
9746
  /**
@@ -9775,6 +9805,8 @@ export declare namespace io {
9775
9805
  export {
9776
9806
  IWriteable,
9777
9807
  IReadable,
9808
+ OverflowError,
9809
+ EndOfReaderError,
9778
9810
  ByteBuffer,
9779
9811
  IOHelper
9780
9812
  }
@@ -13346,6 +13378,14 @@ declare enum Ottavia {
13346
13378
  _15mb = 4
13347
13379
  }
13348
13380
 
13381
+ /**
13382
+ * Thrown whenever an overflow in data or buffer sizes is detected.
13383
+ * @public
13384
+ */
13385
+ declare class OverflowError extends AlphaTabError {
13386
+ constructor(message: string);
13387
+ }
13388
+
13349
13389
  /**
13350
13390
  * Lists all types of pick strokes.
13351
13391
  * @public